This chapter provides procedures and other information that you can use to enter Traditional Chinese text. The chapter discusses the following topics:
This chapter describes the Traditional Chinese Solaris input modes that you can use to enter the following kinds of characters.
ASCII/English characters
Traditional Chinese characters
Special symbols
You can type all of these characters in the input areas of the following application windows:
In terminal emulation (TTY) windows, such as Terminal windows
In text entry areas, such as those found in the Text Editor and Mailer applications
In dialog boxes, such as the new folder name box in the File Manager application
In other special use subwindows, such as pop-ups
The Traditional Chinese Operating System conforms to the CNS 11643 standard, updated in late 1992, and the BIG5 character sets.
The BIG5 character sets are part of the CNS 11643-1992 standard. The BIG5 standard includes 13,461 characters defined by five major Taiwanese computer vendors (including the Institute of Information Industry) in May, 1984. Although BIG5 is not the national standard, it is more widely used than the CNS 11634-1992.
Traditional Chinese Solaris software provides code conversion between Chinese code conventions and three levels of support:
User commands support file transfers for existing files in different codes.
Library functions support application development for existing codes.
STREAMS modules support existing TTY devices using different codes.
In the Traditional Chinese operating system, application subwindows contain two areas that are used to enter Traditional Chinese characters. A lookup choice window and an auxiliary window are also available in Chinese input mode.
Preedit area – The text entry area that holds your character formations before you commit them.
When you commit characters, the characters are put in the text block that is assembled for the application.
Status area – The area at the lower left of the application subwindow that displays the current conversion mode and the active keyboard. Later sections in this chapter discuss keyboard switching and using the available conversion modes.
Lookup choice window – A popup window that displays Hanja or special character lookup choices which are available for the conversion of characters or radicals in the preedit area.
Auxiliary window – This window contains a palette of icons that provide you the following functions and utilities to simplify text entry and to manage input methods:
Input method switching
Chinese full-width/half-width character mode switching
Chinese/English punctuation mode switching
Input method properties setting
Input method selection
Lookup tables for BIG5, EUC_TW, BIG5 HKSCS, and Unicode characters sets
Virtual keyboard
The input method auxiliary windows support all the UTF-8 locales and the following Traditional Chinese locales:
zh_TW/zh_TW.EUC
zh_TW.BIG5
zh_TW.UTF-8
zh_HK.BIG5HK
zh_HK.UTF-8
Two kinds of input methods are supported:
Methods based on a code table, such as TsangChieh
Methods developed by a vendor, such as NewChuYin or NeiMa
This section provides procedures that you can use to select and switch between different input methods.
In the typing area, press Control-spacebar to turn on Traditional Chinese conversion.
An auxiliary window appears.
Select the desired input method through one of the following actions:
In the status area of the application subwindow, use the function keys to switch input methods: the F2 key for the first input method, the F3 key for the second input method, and so on.
You can also press Control-Escape repeatedly until you reach the desired input method.
Use the input method panel.
a. Click the utilities button in the auxiliary window.
The utilities menu appears.
b. Click the input method selection item from the utilities menu.
The input method selection panel appears.
c. Select the input method you want to use from the input selection panel.
After you select an input method, click OK or Apply to activate the setting. The first input method you select is the default input method.
When you press Control-spacebar to activate Chinese input, the default input method is selected.
If you change input methods, you can press Control-Escape to return to the default input method.
Help pages display in the default browser, such as Netscape NavigatorTM.
Switch between half_width character mode and full_width character mode through one of the following actions.
In the status area of an application subwindow, type Shift-spacebar to switch between half_width character mode and full_width character mode.
In the auxiliary window, click the half_width/full_width button.
The input method system is in full_width character mode when this button appears in the auxiliary window:
The input method system is in half_width character mode when this button appears in the auxiliary window:
When the system is in full_width mode, the full_width character of the input key is committed. For example, when you input an a in full_width mode, the full_width a is committed.
Switch between Chinese punctuation mode and English punctuation mode through one of the following actions.
In the status area of an application subwindow, type Control- to switch between Chinese punctuation mode and English punctuation mode.
In the auxiliary window, click the Chinese/English punctuation button.
The input method system is in Chinese punctuation mode when this button appears in the auxiliary window:
The input method system is in English punctuation mode when this button appears in the auxiliary window:
When you type a function key in Chinese punctuation mode, the corresponding Chinese punctuation character is committed to the application. For example, when you type the $ key in Chinese punctuation mode, the Traditional Chinese currency symbol character NT$ is committed to the application.
The punctuation key includes the characters: , . / > :;’”\$!^_-
The map between English keys and Chinese punctuation is shown in the following illustration.
Four code table input options are available for the input method you select.
Display candidates key by key – This option causes the input method to search a dictionary table when you press a valid key. Candidates for selection then display in the lookup window.
If this option is not active, the character mapped to the key you press appears in the preedit area. When you press the spacebar, the input method engine searches the dictionary table and displays the available candidates for the character in the preedit area.
Display external codes – This option displays the external codes of the candidates you enter display in a lookup window.
Automatically commit if only one candidate – This option commits the external code of a character when only one candidate is available. If this option is not selected, the external code of a character appears in a lookup window even when only one candidate is available.
Display keymap character for every external code – This option displays the character mapped to a valid key in the preedit area when you press the key.
You can use this procedure to make selections in the input method options panel.
Click the input method selection item from the utilities menu.
The input method selection panel appears.
Select an input method from the selection panel.
The input method options panel appears.
Select an input method option.
Click OK or Apply to activate the selection.
After you make your input method selections, you can use the information and the procedures in this section to take the following actions:
Activate lookup table selection
Select a virtual keyboard
Create user defined characters
From a lookup table, you can search for and select the Chinese characters you want to input. Three kinds of lookup tables are available:
Lookup table with native encoding, such as EUC_TW in the zh_TW/zh_TW.EUC locale, or BIG5 encoding in the zh_TW.BIG5 locale
Lookup table for special characters, such as Greek letters or Mathematical symbols
Click the lookup item from the selection menu.
When you activate the lookup option, the characters that are available for a string you type in the preedit area display for selection in a lookup choice window.
Type a string you want to convert in the preedit area.
The lookup choice window appears.
You can use the following keys to search through the characters and radicals that are available for your string.
Moves forward to the next page of choices
Moves backward through the choices
Type the number or letter of the label of the lookup choice you want to select.
Your choice is substituted for the string in the preedit area.
You can use virtual keyboards as lookup utilities to simplify the input of certain special symbols. You can also use virtual keyboards to display the keymap of input methods, such as TsangChieh.
The Traditional Chinese system supports several virtual keyboards.
The following figure shows the PC virtual keyboard.
The TsangChieh keyboard displays the keymap of TsangChieh input method that is based on Chinese radicals.
The following figure shows the Array virtual keyboard.
The following figure shows the DaYi virtual keyboard.
The following figure shows the Boshiamy virtual keyboard.
Click the virtual keyboard button in the auxiliary window.
The virtual keyboard for the active input method appears.
The user-defined character (UDC) editor tool enables you to draw and save new characters. Once you ascribe a character to an input method, the character can be displayed in an application.
Applications start in ASCII mode. You can toggle ASCII mode on or off by pressing Control-spacebar or the Chinese/English key on a Chinese keyboard. For example, you can use ASCII mode to type the echo command shown in the following figure.
When you turn on the ASCII input mode, the following indicator appears in the status area.
When you turn off ASCII input mode, an indicator for the default input mode appears.
In the array input mode, 260 radicals that compose Chinese characters are assigned to the keys in ten columns of three rows in the array virtual keyboard. To use the array input mode effectively, you need to memorize only ten basic keystrokes. All radicals are naturally allocated on the keyboard by the basic keystrokes.
Select the Array input mode.
Follow the steps in the procedure How to Select an Input Method to select the input mode.
Array appears in the status window.
Type the x key and press the spacebar.
The array input converter finds several matching characters that display in a lookup choice window.
Type the 1 key to commit the first character.
The radicals are converted and the corresponding character appears.
Boshiamy input mode works with the radicals that you use to compose Chinese characters. The radicals in this mode are easy to memorize by the shape, the sound, or the meaning. You can memorize the following rules to help you quickly enter Chinese characters:
Cut off long
Patch up short
Select the Boshiamy input mode.
Follow the steps in the procedure How to Select an Input Method to select the input mode.
Boshiamy appears in the status window.
Type the set of radicals uoo.
Press the spacebar to commit the corresponding Chinese character.
Similar to the TsangChieh input mode, DaYi conversion works with the radicals that compose Chinese characters. The keystroke sequence of the DaYi input mode follows the Chinese writing sequence. You need to memorized only a few rules to use this input mode.
Select the input method.
Follow the steps in the procedure How to Select an Input Method to select the input method.
DaYi appears in the status window.
Type the set of radicals: ;o.
Press the spacebar to commit the corresponding Chinese character.
This section describes the features in the New ChuYin input method. The section also explains how to use some of the features in the following Traditional Chinese locales: zh_TW.EUC, zh_TW.BIG5, zh_TW.UTF8, zh_HK.BIG5HK, and zh_HK.UTF-8.
The New ChuYin input method provides support for the following features:
Phrase input
Storing and recalling user-defined phrases
Using only consonants to input simplified ChuYin
Editing the preedit string
Adjusting the frequency of phrase lookup and single Chinese character lookup
Select the input method.
Follow the steps in the procedure How to Select an Input Method to select the input method.
New ChuYin appears in the status window.
This procedure describes how to enter the following character:
Using the New ChuYin input method, type the key sequence 5j.
The lookup table appears for the characters highlighted in the preedit area.
Type tone 4.
The preedit area and the lookup table change.
The first candidate is committed when you press the spacebar. If you type another tone value, the choices for that tone appear. For example, when you type tone 1 for a Chinese character, the choices for tone 1 appear.
Press Shift-D to commit the fourth candidate.
The committed character appears.
New ChuYin input method provides intelligent word and phrase input functions. When you type ChuYin key sequences, the input method automatically locates the related words and phrases in a system dictionary.
For example, this procedure describes how to enter the following phrase:
Using the New ChuYin input method, type the key sequence m06fm06
The lookup table appears for the characters that are highlighted in the preedit area.
Press the spacebar or type Shift-A to commit the selection.
You can define single phrases with up to 8 Chinese characters.
For example, this procedure describes how to define the following new phrase:
Using the New ChuYin input method, type the key sequence 5jaj4x;3a83z/.
The new ChuYin input method automatically adds spaces between each syllable.
The first Chinese character is not shown in the lookup window.
Press the Return key to change to the single character group.
Press the spacebar to select the first character.
The first character is inserted into the preedit string. The second character does not appear in the lookup window.
Press the ] key to go to next page, which contains the second Chinese character.
Press the spacebar to select the second Chinese character.
Repeat the previous steps to input the third, fourth, and fifth Chinese characters.
The phrase is committed automatically after the last Chinese character is selected.
The new phrase is saved.
When you type the string 5jaj4x;3a83z/ now, the new phrase appears for selection in the lookup window.
The New ChuYin input method automatically recalls the most recently selected list items. The items appear at the top of a list of phrases and characters for easy selection.
Using the New ChuYin input method, type the key sequence gfu.
Note the sequence of the choices that appear.
Select the third item, C, from the list of lookup choices.
Type the gfu key sequence again.
The selection you made for gfu in the previous step now appears as the first choice in the list.
You can enter a complete phrase with a single Chinese consonant.
For example, this procedure describes how to input the following phrase:
Using the New ChuYin input method, type the consonant of the Chinese character g1e1.
The complete phrase appears in the lookup window.
Using the New ChuYin input method, press the Shift key with the A, B, C, D, E, F, or G key to select the preedit string.
Press an edit key.
The following table shows the definitions of the edit keys.
ChuYin keystroke
Moves to the start of the preedit line
Moves to the end of the preedit line
Moves the caret in the preedit line to the right.
Deletes the PinYin character following the caret on the preedit line.
Deletes the PinYin character preceding the caret on the preedit line.
The selections related to a ChuYin preedit string can be split to two groups, one group for phrases and the other group for single Chinese characters. The phrase candidates are at the top of the list. You can uses the keys defined in the following table scroll through the available candidates.
Table 4–1 Page Scroll Key Definitions
Key |
Definition |
---|---|
[ |
Scrolls to previous page |
] |
Scrolls to next page |
Return |
More to another group |
You can toggle back and forth between PinYin mode and ChuYin mode with a keystroke.
Using the New ChuYin input method, press Alt-1 to switch between ChuYin mode and PinYin mode.
In PinYin mode, the PinYin phonetics are same as the keystroke.
ChuYin is another common input mode. This mode applies the Chinese phonetic symbols to the phonetics of Mandarin Chinese. When a typed sequence of phonetics uniquely matches a Chinese character, the phonetics are automatically converted and the character is displayed. However, if more than one character matches a sequence of phonetics, a lookup selection area appears that shows you the available choices. Several pages of lookup choices are available for some phonetic sequences.
The following example uses ChuYin mode to enter Chinese characters that represent the statement, “Taipei's weather is very hot.”
Select the input method.
Follow the steps in the procedure How to Select an Input Method to select the input method.
ChuYin appears in the status window.
Type w96.
The ChuYin input converter finds several matching characters and displays a lookup choice window.
Press the spacebar or 1 to select the appropriate character.
The radicals are converted and the correct character appears.
Telecode conversion uses the old four-digit codes used by the Taiwan Telephone & Telegraph Bureau. The four-digit codes uniquely identify 16356 Chinese characters. The codes are organized into two planes: plane 1, numbered from 0000 to 8045 and plane 2, numbered from .0000 to.8489.
This section contains instructions on how to use the Telecode input mode to input Chinese characters
Select the input method.
Follow the steps in the procedure How to Select an Input Method to select the input method.
Telecode appears in the status area.
Type the first three digits of the code 3456.
Press the spacebar.
The Telecode input converter finds a single matching character.
TsangChieh is the default input mode that you use to type Chinese and other non-ASCII characters when ASCII mode is toggled off. TsangChieh conversion works with the radicals that compose Chinese characters. Each Chinese character has a keystroke sequence that is made up of the radicals that compose a character. A TsangChieh keystroke sequence often defines a single Chinese character. When a sequence defines more than one character, you are presented with different input choices.
You can also use the TsangChieh conversion mode to type the characters in the Chinese National Standard 11643. To type characters in this mode, press the Z key then the three-letter code assigned to the character by the standard.
To type Chinese characters in the TsangChieh input mode, type the Chinese radicals that make up the Chinese character. If you do not have a Taiwan Chinese keyboard that shows the radicals on the keycaps, refer to a picture of the Chinese keyboard to see how the Chinese radicals map to your keyboard.
Select the input method.
Follow the steps in the procedure How to Select an Input Method to select the input method.
TsangChieh appears in the status area.
Type ir.
The radicals appear highlighted in the preedit area.
Press the spacebar to commit the corresponding character.
The ChienI input mode is a simplification of the TsangChieh mode. In the ChienI mode, you enter only the first and last keystrokes of a TsangChieh sequence for a Chinese character. Lookup selections then appear for the keystrokes you enter.
Select the input mode.
Follow the steps in the procedure How to Select an Input Method to select the input mode.
ChienI appears in the status area.
Type the key sequence ak.
The ChienI input converter finds several matching characters and displays a lookup choice window.
Press 1 to select the appropriate character.
The radical is converted and the correct character appears.
In the NeiMa input method, you use a four-digit or an eight-digit hexadecimal internal code to enter Chinese characters or symbols. You can use the following input methods in the Traditional Chinese locales.
EUC_TW NeiMa input method in the zh_TW.EUC locale
BIG5 NeiMa input method in the zh_TW.BIG5 locale
BIG5+HKSCS input method in the zh_HK.BIG5HK locale
This section contains instructions on how to use the BIG5 internal codes to input Chinese characters and symbols.
Select the input method.
Follow the steps in the procedure How to Select an Input Method to select the input mode.
BIG5 NeiMa code input method appears in the status area.
Type the first three keys of a four-key sequence that represent a character. In this example, type the b96 keys of the sequence b968.
Type the fourth key. In this example, type the 8 key.
The character is automatically committed in the preedit area.
You can use the English_Chinese input method in both zh_TW.EUC and zh_TW.BIG5 locales. With this method, you type English words of up to 15 keystrokes that are mapped to Chinese phrases. For each keystroke, a lookup window displays characters that match your input. To select a character, you type the number that corresponds to your lookup choice. For more information, see How to Search and Select Lookup Choices.
The following procedure shows you how to use this input method to enter the Traditional Chinese phrase for the English word, “hello”.
Follow the steps in the procedure How to Select an Input Method to select the input mode.
English_Chinese conversion mode appears in the status area.
Type the key sequence hello.
Type the 4 key to select the corresponding Traditional Chinese phrase.
The current Solaris operating system provides a code table input method interface that enables Chinese users to add new input methods into their system.
A code table is a plain text dictionary file that contains a list Chinese characters, words, and phrases that are mapped to input keystrokes. When you type the specified keystrokes, the associated characters, words, and phrases appear for selection.
The code table file contains the following sections:
[Description] This section describes the following attributes of the code table.
Name: Code table name
Encode: UTF-8, GB, GB2312, GBK, or BIG5 encoding used the code table
WildChar: Wild character used for input codes
UsedCodes: Valid characters for input
MaxCodes: Maximum number of input codes for one item
[Comment]
[Key_Prompt] This section specifies the prompt string of an input key. The prompt string appears in the preedit area of the application subwindow.
[Function_Key] This section specifies the key definitions of certain function keys.
PageUp: Scroll up a list of selection items
PageDown: Scroll down a list of selection items
BackSpace: Delete an input code
ClearAll: Clears all the input areas, such as preedit area and the lookup area
[Phrase] This section specifies the input codes and the corresponding phrases. The Chinese phrases must be separated by spaces. The format of each line is keystroke_sequence word1 word2 word3 ...
[Single] This section specifies the input codes and the corresponding Chinese characters. The format of each line is keystroke_sequence Characterlist. The Characterlist characters are not separated by spaces.
[Options] This section specifies the options of the code table input method that you can turn on or off in the following entries.
HelpInfo_Mode: Display help information
KeyByKey_Mode: Display lookup candidates key by key or only when the spacebar is pressed.
KeyPrompt_Mode: Display the prompt string of the input key in the preedit area.
AutoSelect_Mode: Commit the lookup choice automatically when only a single candidate is available.
SelectKey_Mode: Select numbers, uppercase letters, or lowercase letters.
The following example shows a code table file.
Create and edit the code table source file.
Prepare the code table source file to define the mapping of characters, words, or phrases to input keystrokes.
Convert the source code table file to binary format.
Use the txt2bin utility to convert the code table text file to binary file.
# /usr/lib/im/locale/zh_TW/common/txt2bin source_codetable_file binary_codetable_file
You can find the txt2bin and bin2txt are utilities in the directory: /usr/lib/im/locale/zh_TW/common/
Add the code table to the input method specification file, /usr/lib/im/locale/zh_TW/sysime.cfg.
For example, if your new code table binary file is called newim.data, add the entry newim to the input method specification file, sysime.cfg.
Restart the htt input method server by typing the following commands as root.
# /etc/init.d/IIim stop
# /etc/init.d/IIim start
The new input method is ready to use when you log in to the system.