Apply the Word-Break table to match the Codepage used.1. Ensure there is a valid backup of the database, in the event it is necessary to revert to.
2. Determine database code page: Data Administration
> Utilities
> Information
3. Find the appropriate *.wbt file from
DLC/prolang/convmap depending on the database codepage.
Word Break File Codepage
m1250bas.wbt 1250 (Windows Latin-2 Central Europe)
m1251bas.wbt 1251 (Windows Cyrillic)
m1252bas.wbt 1252 (Windows Latin-1)
m1253bas.wbt 1253 (Windows Greek)
m1254bas.wbt 1254 (Turkish)
m1255bas.wbt 1255 (Windows Hebrew)
m1256bas.wbt 1256 (Windows Arabic)
m1257bas.wbt 1257 (Windows Baltic Rim)
big5-bas.wbt big-5
cp936bas.wbt cp936
cp949bas.wbt cp949
cp950bas.wbt cp950
cp950hkbas.wbt cp950-hkscs
eucj-bas.wbt eucjis
g2312bas.wbt gb2312
iso01bas.wbt ISO-8859-1 (ISO Latin-1)
iso15bas.wbt ISO-8859-15 (ISO Latin-15)
k5601bas.wbt ksc5601
sjis-bas.wbt shift-jis
utf8-bas.wbt utf-8
4. Compile the new version of word break table file to a number <N>:
$ proutil -C wbreak-compiler <file-name> <N>
Where file-name is the *.wbt file found previously and <N> is number between 1 and 255
5. Provide access to word-break table
Place the newly created compiled version of the word-break table in:
DLC/proword.<N> (The Progress install directory).
Alternatively define an Environment Variable PROWD<N>=<file-directory>\proword.<N> (In Version 9.0A, you must set the environment variable PROWD<N>)
6. Associate the word-break table with the database
$ proutil <database> -C word-rules <N>
7. Rebuild all Word indexes:
To find all Word Indexes, run the following Query on the
_file,
_index metaschema tables.
OUTPUT TO indexword.file.
FOR EACH _file WHERE _file-number > 0 AND NOT _file-name BEGINS "SYS":
FOR EACH _index OF _file WHERE _Wordidx = 1:
PUT UNFORM _file-name SKIP _index-name SKIP.
END.
END.
OUTPUT CLOSE.
So that the database's word indexes reflect the changes in the word-break table, these indexes need to be rebuilt. Alternatively all indexes can be rebuilt.
- Offline IDXBUILD or IDXFIX utilities can be used.
- Online IDXACTIVATE utility can be used, but given the nature of word indexes (they're big) this is best done offline.