For information about the Japanese language facility, see Using the Japanese Language Facilities.
Each JIS character has a distinct representation in the Gensym character set. A JIS character is represented as a kanji code, which is a positive integer that can be represented in two bytes. The first byte contains the most significant eight bits of the kanji code's value.
| Character | Encoding | Character | Encoding | Character | Encoding |
|---|---|---|---|---|---|
|
|
|
|
|
|
|
To express a JIS character that is part of the Gensym character set:
Specify the \ (backslash) escape character, followed optionally by a prefix ASCII character, followed by two ASCII characters.
To determine a kanji code's representation in the Gensym character set, you perform the following algorithm (expressed in pseudocode):
/* Operators:
!= : is not equal to
>> : shift bits right
& : AND operator
% : MODULO operator
*/
/* Include a prefix ASCII character? */
if (kanji_code >> 13) != 1 then
/* Produce the prefix ASCII character */
prefix_character = (kanji_code >> 13) + 32
/* Produce first ASCII character */
first_character = ((kanji_code & 0x1fff) / 95) + 40
/* Produce second ASCII character */
second_character = ((kanji_code & 0x1fff) % 95) + 32
\+;
\"0t