Try OpenEdge Now
skip to main content
Internationalizing Applications
Understanding Character Processing Tables : Word-break tables : Creating and modifying word-break tables
 

Creating and modifying word-break tables

OpenEdge provides a collection of word-break tables in the OpenEdge/prolang/convmap directory. the following figure shows one of them, big5-bas.wbt. This filename reflects the code page big-5, a code page used for Traditional Chinese.

The big5-bas.wbt word-break table

/* NAME: big5-bas.wbt
* OpenEdge Word Break Source File for codepage big-5
*/
version = 9
codepage = big-5
wordrules-name = basic
type = 3
/* Special word break rules table */
word_attr =
{ '.', BEFORE_DIGIT, /* part of a word only if followed by a digit */
',', BEFORE_DIGIT,
'-', BEFORE_DIGIT,
''', IGNORE, /* completely ignore it */
'$', USE_IT, /* always part of a word */
'%', USE_IT,
'#', USE_IT,
'@', USE_IT,
'_', USE_IT
};
* Understanding word-delimiter attributes
* Word-break table syntax