SUBSYSTEM OVERVIEW
Utility Native Language (UNL) Subsystem
The UNL subsystem provides support for converting between different standards of foreign language characters. There are currently five standards supported. These are JIS 208, JIS 212, Unicode, Shift JIS, and EUC. The information in these five standards is contained in three tables created by unl_Initialize which should be called after pdx_Initialize and before any other unl_... functions. The other two standards, EUC and Shift JIS, are based upon conversion algorithms. The JIS 208 and JIS 212 tables contain incompatible information so no conversions, direct or indirect, should ever be made between them. Following is a list of public functions contained in the UNL subsystem.
FUNCTIONS
Initialize the unl data structures so comparisons may be made
Convert from EUC standard to JIS 208 standard
Convert from EUC standard to JIS 212 standard
Convert from JIS 208 standard to EUC standard
Convert from JIS 212 standard to EUC standard
Convert from JIS standard to Shift JIS standard
Convert from JIS standard to Unicode standard
Convert from Shift JIS standard to JIS standard
Convert from Unicode standard to JIS standard
Termination module for the UNL subsystem
There is not direct support for all conversions. For instance, there is no direct conversion between EUC and Shift JIS or EUC and Unicode. In these cases JIS should be used as the middle-man for all conversions. Therefore if EUC was to be converted to Unicode, the application would first use unl_EucToJis208 or unl_EucToJis212 and then unl_JisToUnicode. For more information on the above functions read their manual pages. unl_Terminate should be called after all other unl_... functions and before a call to pdx_Terminate.