
729
APPENDIX A
Code Conversion Tables
e rst table in this appendix, which spans the following two pages, is useful when deal-
ing with material indexed by the various native CJKV encoding methods. e second
table provides the correspondences between Row-Cell rows 95 through 120 and the Shi-
JIS user-dened encoding range.
All of these columns are fairly self-explanatory, except perhaps for the two Shi-JIS col-
umns. Confusion may occur when you try to convert the rst Shi-JIS byte to another
code, or when you try to convert the second byte of another code to Shi-JIS. e follow-
ing two sets of rules should help:
Row-Cell/ISO-2022/EUC to Shi-JIS
e rst byte converts using both conversion tables—nd the rst byte value in 1.
Row-Cell/ISO-2022/EUC code, and then simply slide over to the Shi-JIS First Byte
column.
e second byte is a bit tricky. If the rst byte (yes, the rst byte!) of the Row-Cell/2.
ISO-2022/EUC code is odd (the hexadecimal digits , , and are odd), select the
lehand value in the Shi-JIS Second Byte column. Otherwise, select the right-hand
value.
Shi-JIS to Row-Cell/ISO-2022/EUC
If the second Shi-JIS byte is the lehand entry in the Shi-JIS Second Byte column, 1.
use the rst occurrence of the rst Shi-JIS byte to determine the rst byte value of
another code. Otherwise, use the second occurrence of the rst Shi-JIS byte.
e second Shi-JIS b ...