KJCODE(1J) — NEWS-OS Programmer’s Manual
NAME
kjcode − displays kanji code
SYNOPSIS
kjcode [ kanji ] ...
kjcode [ option ] code ...
DESCRIPTION
kjcode displays the kuten code, JIS code, EUC (extended UNIX code) and Shift JIS code for the kanji specified and then the kanji in that order.
If no kanji is specified, the codes for all characters are displayed in the format described above.
With the −k option it is possible to specify the kuten code to display the same information about the corresponding kanji by using two adjacent 2-digit decimal numbers. (Kuten code refers to official kanji codes as prescribed in official kanji/data correspondence tables issued in Japan where each kanji is classified into a major category, ku, and further classified into a subdivision of that category, ten. In the tables, a desired kanji can be found at the intersection of its ku and ten numbers and the particular code for a desired character can be found by reversing the process.) With the −j, −e or −s options it is also possible to specify the JIS code, EUC code or Shift JIS code of a kanji, respectively, to display the same information by using the appropriate 4-digit hexadecimal number.
If no explicit option is used, code is interpreted in accordance with the current setting of the environment variable LC_CTYPE or LANG.
It is possible to pass kjcode multiple codes at once. A separate display will be shown for each code passed. The type of code that kjcode expects is the last option (or default if there was no option) encountered on the command line. By inserting an option in mid-line, it is possible to tell kjcode how to correctly interpret codes between that option and the next such option (if any).
EXAMPLES
kjcode XX (XX is a kanji character.)
kjcode −k 1601
kjcode −j 3021
kjcode −e b0a1 (or input "kjcode b0a1" if LANG = ja_JP.EUC)
kjcode −s 889f (or input "kjcode 889f" if LANG = ja_JP.SJIS)
The output obtained by inputting any of the above is as follows.
1601 3021 b0a1 889f XX
SEE ALSO
NEWS-OSRelease 4.1C