Technical data

Character Class
Description
Hiragana Phonetic
Katakana Phonetic Katakana characters exist in
full width (2-column) and half width
(single-column) formats. The single-column
format of Katakana is referred to as Hankaku.
During a single session, a Japanese user can work with Kanji, Hiragana,
and Katakana characters in various combinations. The user therefore must
be able to customize terminal input mode to suit the character being entered.
When the input device is a JIS terminal rather than a workstation, the
user must adjust line discipline and terminal code settings in the software
to match hardware capabilities (for example, whether the terminal uses
7-bit or 8-bit encoding).
The tty driver supports a mechanism known as Kana-Kanji conversion.
This term refers to the conversion between phonetic and ideographic
characters and the support for keyboard entry sequences that make
Japanese character selection more efficient for the user. You use the stty
command to enable or disable the Kana-Kanji conversion method and other
aspects of Japanese input support. The stty options that support Japanese
input are described in Table 2–5 and, unless noted otherwise, are used in
conjunction with the jdec option. For example, the following command sets
the terminal line discipline to support Japanese character encoding and
also enables Kana-Kanji conversion:
% stty jdec ikk
Table 2–5: The stty Options to Enable and Customize Japanese Input
stty Option
Description
clause mode
Sets the character attribute for marking
a clause that results from Kana-Kanji
conversion.
The mode argument can be bold,
underline, reverse,ornone.
esc.alw
Changes the terminal state to “shift out”
whenever a newline character is output.
This option applies only when the tcode
(terminal code) stty option is set to jis7
or jis8.
esc.alw
Does not change the current terminal
state when a newline character is output.
This option applies only when the tcode
(terminal code) option is set to jis7 or
jis8.
2–12 Using Asian Input Methods and Terminal Drivers