Warning: Replacing COUNTRY.SYS for compiling IPF files is undocumented
and not supported officially.
You'll need to replace COUNTRY.SYS file before compiling IPF files and copy the APSYMBOL file for DBCS OS/2 Warp except for the Japanese version (Files to Be Modified). The following file names are used for each language version of APSYMBOL file. Rename the appropriate symbol files to APSYMBOL.APS:
APSYM932.APS
The following compiler options are provided. If you do not specify these options, the values of the compiler runtime environment are applied.
The IPF Compiler, IPFC supports the DBCS as well as SBCS. Like the resource compiler, you need to specify a valid country code, code page and language option to have a correct compile result for your IPF source file written in DBCS languages. The options are -D:, -C: and -L:, respectively.
ipfc -D:88 -C:950 -L:TWN test.ipf
The combinations are as follows:
┌───────────────┬───────────────┬───────────────┬───────────────┐ │Country code │Code page ID │Language ID │Description │ ├───────────────┼───────────────┼───────────────┼───────────────┤ │81 │932/942 │JPN │Japan │ ├───────────────┼───────────────┼───────────────┼───────────────┤ │82 │949 │KOR │Korea │ ├───────────────┼───────────────┼───────────────┼───────────────┤ │86 │1381 │PRC │P.R.C │ ├───────────────┼───────────────┼───────────────┼───────────────┤ │88 │950 │TWN │R.O.C │ └───────────────┴───────────────┴───────────────┴───────────────┘
A DBCS unique command, sortkey, for country-unique sorting of help items are supported by SBCS IPF compiler as well. Application developers or translators can add a phonetic reading (or whatever they prefer) to each translated help index topic (ICMD tags). Then, help indexes will be sorted in a meaningful sequence (typically, in the order of the phonetic readings).
The following example shows the usage of the sortkey tag:
:i1 id=mcdonald sortkey='MacDonald'.HamburgerThe item is indexed with the value "MacDonald", not with "Hamburger".
The information resources can include the code page information. If you specify the code page parameter on the command line, then the code page is assigned to the whole document. If you use the :font. tag to specify the code page in a header section, then only that section has the specified code page applied. If you do not specify the code page, then the default code page is applied.
Some block characters or graphic characters have the different code values among code pages. Thus, these characters may not be represented correctly when they are displayed in the environment other than one in which the source file was created. Use the defined symbol characters, such as &Lt. &Rt., for the translatability.