Traditional Chinese Solaris User's Guide

Chapter 4 Entering Traditional Chinese Text

This chapter provides procedures and other information that you can use to enter Traditional Chinese text. The chapter discusses the following topics:

Character Input Overview

This chapter describes the Traditional Chinese Solaris input modes that you can use to enter the following kinds of characters.

You can type all of these characters in the input areas of the following application windows:

Character Sets

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:

Input Window Areas

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.

Using Traditional Chinese Input Methods

This section provides procedures that you can use to select and switch between different input methods.

How to Select an Input Method

  1. In the typing area, press Control-spacebar to turn on Traditional Chinese conversion.

    An auxiliary window appears.

    The preceding context describes the graphic.
  2. 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.


      Tip –

      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 preceding context describes the graphic.

        The utilities menu appears.

        The preceding context describes the graphic.
      • b. Click the input method selection item from the utilities menu.

        The input method selection panel appears.

        The preceding context describes the graphic.
      • 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.


        Note –

        When you press Control-spacebar to activate Chinese input, the default input method is selected.



        Note –

        If you change input methods, you can press Control-Escape to return to the default input method.


How Access Input Method Help

Help pages display in the default browser, such as Netscape NavigatorTM.

  1. Select the input method help option from the utility menu to display the help pages in a browser.

How to Switch Between Half_width and Full_width Character Mode

    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 preceding context describes the graphic.

    The input method system is in half_width character mode when this button appears in the auxiliary window:

    The preceding context describes the graphic.

    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.

    The preceding context describes the graphic.

How Switch Between Chinese and English Punctuation Modes

    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 preceding context describes the graphic.

    The input method system is in English punctuation mode when this button appears in the auxiliary window:

    The preceding context describes the graphic.

    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 preceding context describes the graphic.

    The punctuation key includes the characters: , . / > :;’”\$!^_-

    The map between English keys and Chinese punctuation is shown in the following illustration.

    The preceding context describes the graphic.

Setting Input Method Options

Four code table input options are available for the input method you select.

How to Select an Input Method Option

You can use this procedure to make selections in the input method options panel.

  1. Click the input method selection item from the utilities menu.

    The input method selection panel appears.

  2. Select an input method from the selection panel.

    The input method options panel appears.

    The preceding context describes the graphic.
  3. Select an input method option.

  4. Click OK or Apply to activate the selection.

Input Method Utilities

After you make your input method selections, you can use the information and the procedures in this section to take the following actions:

Lookup Table

From a lookup table, you can search for and select the Chinese characters you want to input. Three kinds of lookup tables are available:

How to Activate Lookup Table Selection

  1. Click the utilities button in the auxiliary window.

  2. 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.

How to Search and Select Lookup Choices

  1. 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.

    Period (.)

    Moves forward to the next page of choices

    Comma (,)

    Moves backward through the choices

  2. 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.

Virtual Keyboards

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.

PC Keyboard

The following figure shows the PC virtual keyboard.

The preceding context describes the graphic.

TsangChieh Keyboard

The TsangChieh keyboard displays the keymap of TsangChieh input method that is based on Chinese radicals.

The preceding context describes the graphic.

Array Keyboard

The following figure shows the Array virtual keyboard.

The preceding context describes the graphic.

DaYi Keyboard

The following figure shows the DaYi virtual keyboard.

The preceding context describes the graphic.

Boshiamy Keyboard

The following figure shows the Boshiamy virtual keyboard.The preceding context describes the graphic.

ChienI Keyboard

The preceding context describes the graphic.

How to Select a Virtual Keyboard

    Click the virtual keyboard button in the auxiliary window.

    The virtual keyboard for the active input method appears.

User-Defined Characters (UDC)

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.

How to Activate the UDC Tool

  1. Select the user defined character item on the utility menu to activate the UDC tool.

    The preceding context describes the graphic.

ASCII Character Input

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.

The preceding context describes the graphic.

When you turn on the ASCII input mode, the following indicator appears in the status area.

The preceding context describes the graphic.

When you turn off ASCII input mode, an indicator for the default input mode appears.

Array Input Mode

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.

How to Type Array Text

  1. 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.

    The preceding context describes the graphic.
  2. Type the x key and press the spacebar.

    The array input converter finds several matching characters that display in a lookup choice window.

    The preceding context describes the graphic.
  3. Type the 1 key to commit the first character.

    The radicals are converted and the corresponding character appears.

    The preceding context describes the graphic.

Boshiamy Input Mode

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:

How to Type Boshiamy Text

  1. 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.

    The preceding context describes the graphic.
  2. Type the set of radicals uoo.

    The preceding context describes the graphic.
  3. Press the spacebar to commit the corresponding Chinese character.

    The preceding context describes the graphic.

DaYi Input Mode

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.

How to Type DaYi Text

  1. 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.

    The preceding context describes the graphic.
  2. Type the set of radicals: ;o.

    The preceding context describes the graphic.
  3. Press the spacebar to commit the corresponding Chinese character.

    The preceding context describes the graphic.

New ChuYin Input Method

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:

How to Type New ChuYin Text

    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.

    The preceding context describes the graphic.

How to Enter a Single Character

This procedure describes how to enter the following character:

The preceding context describes the graphic.
  1. Using the New ChuYin input method, type the key sequence 5j.

    The lookup table appears for the characters highlighted in the preedit area.

    The preceding context describes the graphic.
  2. Type tone 4.

    The preedit area and the lookup table change.

    The preceding context describes the graphic.
    Note –

    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.


  3. Press Shift-D to commit the fourth candidate.

    The committed character appears.

    The preceding context describes the graphic.

How to Type Stored Words and Phrases

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:

The preceding context describes the graphic.
  1. 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.

    The preceding context describes the graphic.
  2. Press the spacebar or type Shift-A to commit the selection.

    The preceding context describes the graphic.

How to Define New Phrases

You can define single phrases with up to 8 Chinese characters.

For example, this procedure describes how to define the following new phrase:

The preceding context describes the graphic.
  1. 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.

    The preceding context describes the graphic.
  2. Press the Return key to change to the single character group.

    The preceding context describes the graphic.
  3. 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.

    The preceding context describes the graphic.
  4. Press the ] key to go to next page, which contains the second Chinese character.

    The preceding context describes the graphic.
  5. Press the spacebar to select the second Chinese character.

    The preceding context describes the graphic.
  6. 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 preceding context describes the graphic.

    The new phrase is saved.

    When you type the string 5jaj4x;3a83z/ now, the new phrase appears for selection in the lookup window.

    The preceding context describes the graphic.

How to Change the Sequence of Frequently Used Chinese Characters and Phrases

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.

  1. Using the New ChuYin input method, type the key sequence gfu.

    Note the sequence of the choices that appear.

    The preceding context describes the graphic.
  2. Select the third item, C, from the list of lookup choices.

    The preceding context describes the graphic.
  3. 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.

    The preceding context describes the graphic.

How to Display Input Phrases by Typing a Consonant

You can enter a complete phrase with a single Chinese consonant.

For example, this procedure describes how to input the following phrase:

The preceding context describes the graphic.
  1. Using the New ChuYin input method, type the consonant of the Chinese character g1e1.

    The complete phrase appears in the lookup window.

How to Edit the Preedit String

  1. 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.

  2. Press an edit key.

    The following table shows the definitions of the edit keys.

    [a-z, 0-9, ,./;'-]

    ChuYin keystroke

    Home

    Moves to the start of the preedit line

    End

    Moves to the end of the preedit line

    Right

    Moves the caret in the preedit line to the right.

    Delete

    Deletes the PinYin character following the caret on the preedit line.

    Backspace

    Deletes the PinYin character preceding the caret on the preedit line.

Using Page Scroll Keys

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 

How to Switch Between PinYin and ChuYin Mode

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 Input Mode

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.

How to Type ChuYin Text

The following example uses ChuYin mode to enter Chinese characters that represent the statement, “Taipei's weather is very hot.”

  1. 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.

    The preceding context describes the graphic.
  2. Type w96.

    The ChuYin input converter finds several matching characters and displays a lookup choice window.

    The preceding context describes the graphic.
  3. Press the spacebar or 1 to select the appropriate character.

    The radicals are converted and the correct character appears.

    The preceding context describes the graphic.

Telecode Input Mode

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.

How to Type Telecode Input

This section contains instructions on how to use the Telecode input mode to input Chinese characters

  1. 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.

    The preceding context describes the graphic.
  2. Type the first three digits of the code 3456.

    The preceding context describes the graphic.
  3. Press the spacebar.

    The Telecode input converter finds a single matching character.

    The preceding context describes the graphic.

TsangChieh Input Mode

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.

How to Type in the TsangChieh Mode

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.

  1. 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.

    The preceding context describes the graphic.
  2. Type ir.

    The radicals appear highlighted in the preedit area.

    The preceding context describes the graphic.
  3. Press the spacebar to commit the corresponding character.

    The preceding context describes the graphic.

ChienI Input Mode

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.

Typing ChienI Input

  1. 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.

    The preceding context describes the graphic.
  2. Type the key sequence ak.

    The ChienI input converter finds several matching characters and displays a lookup choice window.

    The preceding context describes the graphic.
  3. Press 1 to select the appropriate character.

    The radical is converted and the correct character appears.

    The preceding context describes the graphic.

NeiMa Input Method

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.

How to Input NeiMa Text

This section contains instructions on how to use the BIG5 internal codes to input Chinese characters and symbols.

  1. 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.

    The preceding context describes the graphic.
  2. 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.

    The preceding context describes the graphic.
  3. Type the fourth key. In this example, type the 8 key.

    The character is automatically committed in the preedit area.

    The preceding context describes the graphic.

English_Chinese Input Method

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.

How to Type English_Chinese Characters

The following procedure shows you how to use this input method to enter the Traditional Chinese phrase for the English word, “hello”.

  1. 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.

    The preceding context describes the graphic.
  2. Type the key sequence hello.

    The preceding context describes the graphic.
  3. Type the 4 key to select the corresponding Traditional Chinese phrase.

    The preceding context describes the graphic.

Code Table Input Method Interface

The current Solaris operating system provides a code table input method interface that enables Chinese users to add new input methods into their system.

Creating a Code Table

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:

The following example shows a code table file.

The preceding context describes the graphic.

How to Create a New Code Table Input Method

  1. 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.

  2. 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
    


    Note –

    You can find the txt2bin and bin2txt are utilities in the directory: /usr/lib/im/locale/zh_TW/common/


  3. 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.

  4. 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.