Try OpenEdge Now
skip to main content
Internationalizing Applications
Understanding Character Processing Tables : The convmap.dat file and its tables : Character attribute tables
 

Character attribute tables

A character attribute table tells OpenEdge whether an element of a code page represents a character or not. Noncharacters include numerals, punctuation, spaces, and carriage returns.
The following figure shows code page 1256's character attribute table, the first table in the arabic.dat file.

Code page 1256's character attribute table

# This table contains the attributes for code page 1256
CODEPAGE
CODEPAGE-NAME "1256"
TYPE "1"
ISALPHA
/*000-015*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*016-031*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*032-047*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*048-063*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*064-079*/ 000 001 001 001 001 001 001 001 001 001 001 001 001 001 001 001
/*080-095*/ 001 001 001 001 001 001 001 001 001 001 001 000 000 000 000 000
/*096-111*/ 000 001 001 001 001 001 001 001 001 001 001 001 001 001 001 001
/*112-127*/ 001 001 001 001 001 001 001 001 001 001 001 000 000 000 000 000
/*128-143*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*144-159*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*160-175*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*176-191*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
/*192-207*/ 000 001 001 001 001 001 001 001 001 001 001 001 001 001 001 001
/*208-223*/ 001 001 001 001 001 001 001 000 001 001 001 001 000 001 001 001
/*224-239*/ 000 001 000 001 001 001 001 000 000 000 000 000 001 001 000 000
/*240-255*/ 001 001 001 001 000 001 001 000 001 000 001 000 000 000 000 000
ENDTABLE
ENDCODEPAGE
A character processing table contains a value for each element in the code page. The values are arranged in rows of sixteen. The first value in the first row corresponds to the first element (element 0), the second value in the first row corresponds to the second element (element 1), the first value in the second row corresponds to the seventeenth element (element 16), and the last value in the last row corresponds to the last element (element 255).
The value 1 means the corresponding element is alphabetic, while the value 0 means the corresponding element is not alphabetic. The figure shows that elements 67, 210, and 250 are alphabetic, while elements 48, 63, and 238 are nonalphabetic.