Try OpenEdge Now
skip to main content
Internationalizing Applications
Character Processing Table Formats : Character attribute table
 

Character attribute table

The following figure shows a typical character attribute table.
# This table contains the attributes for code page ibm850
CODEPAGE
CODEPAGE-NAME ibm850
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*/ 001 001 001 001 001 001 001 001 001 001 001 001 001 001 001 001
/*144-159*/ 001 001 001 001 001 001 001 001 001 001 001 001 000 001 000 000
/*160-175*/ 001 001 001 001 001 001 000 000 000 000 000 000 000 000 000 000
/*176-191*/ 000 000 000 000 000 001 001 001 000 000 000 000 000 000 000 000
/*192-207*/ 000 000 000 000 000 000 001 001 000 000 000 000 000 000 000 000
/*208-223*/ 001 001 001 001 001 001 001 001 001 000 000 000 000 000 001 000
/*224-239*/ 001 001 001 001 001 001 000 001 001 001 001 001 001 001 000 000
/*240-255*/ 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
ENDTABLE
ENDCODEPAGE
The CODEPAGE keyword signals the start of the table entry. The CODEPAGE-NAME keyword precedes the name of the code page the character attribute table applies to. A code-page name cannot exceed 19 characters and can consist of the characters A-Z and a-z, the numerals 0-9, and the dash (-). The TYPE keyword tells OpenEdge whether the code page is single byte or multi-byte. For single byte, TYPE is 1. The ISALPHA keyword signals the start of a character attribute table. A value of 1 means the corresponding character is alphabetic; a value of 0 means the corresponding character is not alphabetic.
To build a character attribute table for a single-byte code page, provide 256 values in 16 rows of 16 values each. Be sure to format the rows of data exactly as shown in the figure.
The ENDTABLE keyword signals the end of the character attribute table. The ENDCODEPAGE keyword signals the end of the table entry.