This chapter describes the input methods for entering Chinese characters. There are two groups of input methods, one for traditional Chinese and the other for Simplified Chinese.
The traditional Chinese has the following input methods:
Simplified Chinese has the following input methods:
This chapter also describes:
This section describes how to activate and deactivate the Chinese Input Methods for character-cell terminal applications, DECwindows Motif applications, and CDE applications.
For character-cell terminal applications, traditional and Simplified Chinese input methods are implemented by the firmware of the VT382-D traditional Chinese terminal and VT382-C Simplified Chinese terminal respectively, or incorporated in the terminal emulation software, such as Hanyu DECterm for the former and Hanzi DECterm for the latter. Applications do not need to provide their own support for Chinese input. They can rely on the terminal or emulation software to provide the input method services.
Hanyu DECterm and Hanzi DECterm are considered part of the DECwindows Motif applications. Therefore, the activating and deactivating method follows those of DECwindows Motif, discussed in the Section 7.1.2.
On a VT382-D or VT382-C terminal, you select the input mode using the Compose key, which is located on the lower-left side of the main keyboard. On the Chinese version of LK201 or LK401 keyboard (that is, LK201-C, LK201-D, LK401-C, or LK401-D), the Compose key is labeled as 中/英. For details, see Chapter 6.
Once the Chinese input mode is activated, the firmware of the terminal or the input methods incorporated in DECterm automatically compose Chinese characters and return the input data as appropriate.
For DECwindows Motif applications, Chinese input methods are implemented in the form of independent processes called input servers. These Chinese input servers are X client processes that can work on a standard X server provided the X server has the required Chinese fonts installed. This means that the Chinese input server can run on any system which can access your X display device, including the device itself.
Although the codesets returned by traditional and Simplified Chinese input servers are fixed, the Compaq Tru64 UNIX software allows you to connect applications to the input servers using any valid Chinese locale. The Compaq Tru64 UNIX software provides the required codeset conversion.
The traditional Chinese input server provided with the Compaq Tru64 UNIX software is interoperable with all existing DECwindows Motif /Hanyu platforms, including OpenVMS DECwindows Motif /Hanyu and UWS/Hanyu. The Simplified Chinese input server provided with the Compaq Tru64 UNIX software is also interoperable with all existing DECwindows Motif /Hanzi platforms, including OpenVMS DECwindows Motif /Hanzi and UWS/Hanzi. Both input servers also provide input method services to the R6 X library (Xlib) supported by the Compaq Tru64 UNIX software. You can write internationalized applications using the standard R6 application programming interface and communicate with this input server. For details about developing internationalized software with X11R6, see Writing Software for the International Market.
Before you can input Chinese data, you must start the Chinese input server on your workstation or any system on your network that can be accessed by your workstation.
English and Chinese user interfaces are provided, so be sure to set the correct session language before starting the input server. There are several ways to start the Chinese input server:
You can start the Chinese input server after logging in to a session by selecting Hanyu IM or Hanzi IM from the Applications menu of the Session Manager, just like starting an ordinary DECwindows application.
If you start up your session in one of the traditional Chinese locales, by default, the Hanyu IM menu item is added to the Session Manager's Automatic Startup list. Hanzi IM is the default for Simplified Chinese. When you log in, the input server starts automatically. If you do not want to auto-start the input server, you can remove this item from the Automatic Startup list by using the Session Manager's Customize menu.
Note
Applications which are started before Hanyu IM or Hanzi IM cannot connect to the input server. Therefore, Hanyu IM or Hanzi IM should be the first item on the Automatic Startup list.
You can start the input server on a workstation that you are using by entering one of the following commands:
% /usr/bin/X11/dxhanyuim &
% /usr/bin/X11/dxhanziim &
You can start the input server on a remote system for Hanyu IM by entering the following command on that system:
% setenv DISPLAY <display-name>
% /usr/bin/X11/dxhanyuim &
In these examples, <display-name> is the display name of your workstation.
After you invoke the Chinese input server, the DECwindows Motif applications which have been internationalized to support Chinese can communicate with it to provide input method services.
For CDE applications, Chinese input methods are implemented by input servers. Before you can input Chinese data, you must start the Chinese input server. There are two ways to start the Chinese input servers in CDE:
If Chinese language is selected on the CDE login menu, the Chinese input server starts automatically. When you log in, the following script runs:
/usr/dt/config/Xsession.d/0020.dtims
The value of the DTSTARTIMS environment variable determines whether the script will automatically start the specified Chinese input server.
You can enter one of the following commands to start the input server on a workstation you are using:
% /usr/bin/X11/dxhanyuim &
% /usr/bin/X11/dxhanziim &
You can enter the following commands on a remote system to start the input server on that system for Hanuy IM:
% setenv DISPLAY <display-name>
% /usr/bin/X11/dxhanyuim &
In these examples, <display-name> is the display name of your workstation.
After you invoke the Chinese input server, the CDE applications which are internationalized to support Chinese can communicate with it to provide input method services.
Table 7-1 shows the key sequences for toggling between the English and Chinese input modes.
Terminal or Keyboard Type |
Default Key Sequence |
---|---|
VT382-D |
[Compose] |
VT382-C |
|
DECwindows Motif |
|
LK201 |
[Compose/Space] |
LK401 |
[Compose] |
PCXAL |
[Alt/Space] |
Note
You can use the input server options menu to customize the key sequences used to invoke the Chinese input method.
Table 7-2 shows the key sequences for selecting a specific traditional Chinese or Simplified Chinese input method once you are in the Chinese input mode.
Input Method |
Default Key Sequence |
---|---|
Full-Form Alphabets |
<Shift/Space> |
Tsang-Chi (倉頡) |
[F6] |
Quick Tsang-Chi (倉頡) |
[F7] |
Internal Code (內碼) |
[F8] |
Phrase (片語) |
[F9] |
Phonetic (注音) |
[F10] |
Symbol Input (符號) |
[Z] (in Tsang-Chi or Quick Tsang-Chi mode) |
Input Method |
Default Key Sequence |
---|---|
Phrase Input 〔片语〕 |
[F5] |
5-Stroke 〔五笔画〕 |
[F6] |
Qu-Wei 〔国标区位码〕 |
[F7] |
Pin-Yin 〔拼音〕 |
[F8] |
Telex Code 〔电报码〕 |
[F9] |
5-Shape 〔五笔字型〕 |
[F10] |
Note
You can use the input server options menu to customize the key sequences used to select the input method.
In standard Motif, the function key [F10] is defined as the accelerator of the pull-down menu bar. In DECwindows Motif, the menu accelerator by default is Ctrl/F10 so that [F10] can be used to invoke the Phonetic Input Method. To make your DECwindows Motif applications Motif compliant, insert the following line in your $HOME/.Xdefaults file:
*menuAccelerator: Ctrl <Key> F10:
Note
If you change [F10] to the menu accelerator, you cannot invoke the Phonetic Input Method unless you change the invocation key to another key sequence.
You can interact with the Chinese input server through a Motif-style user-interface. This interface allows an input method to provide feedback about the data being edited, to help you compose a character, list choices for selection, provide options for customizing the input server, and so on.
The X Input Method specification defines the three input areas shown in Table 7-4.
Region |
Description |
---|---|
Auxiliary area |
An option menu helps you customize the Chinese input methods and the input method window. |
Status area |
Critical information about the internal state of the Chinese input methods is displayed in this area. |
Pre-edit area |
The intermediate text that is being composed is displayed in this area, which also displays a list of valid candidates for the input key sequences. |
The use of the input areas depends on the interaction style (or pre-edit style) selected for the application. The Chinese input server supports two interaction styles:
You can choose the root window interaction style if you want to display the pre-edit data in an input window which is separate from the application window. You can scale and move the input to meet your preferences. If you want to free up more screen space, you can iconize the input method window. You can also choose to display pre-edit data in vertical or horizontal layout.
You can continue to input Chinese characters through a Chinese application window when the input window is iconized. The input state is displayed on the icon title, which is updated according to the input mode and the input focus. If you want to see the pre-edit data, you can double click the icon to redisplay the input window.
If you want to display the pre-edit data in a fixed location of the application window, you can choose the off-the-spot interaction style. With this interaction style, the Chinese input server creates the input window at the bottom of the application window. You need not refer to the root window and you can iconize it to save screen area.
You can specify the priority of the interaction styles of DECwindows Motif or CDE applications by specifying the VendorShell resource, XmNpreeditType. By default, the resource value is overthespot,offthespot,root,onthespot. This list is in priority order. The first style is used if available in an input method, else the second, and so on.
There are two ways to choose your preferred interaction style:
% dtcm -xrm '*preeditType: root,offthespot' &
To start CDE Calendar Manager with the off-the-spot interactive style, you can enter:
% dtcm -xrm '*preeditType: offthespot,root' &
- From the Session Manager's Options menu, select Input Method...
- In the popup Input Method Options window, click on the appropriate pre-edit style button
The XmNpreeditType resource is then set to a priority list beginning with the pre-edit style that you have chosen.
After you select your preferred interaction style, the applications you invoke start up with the new setting.
Note
Some applications, such as DECterm, may provide their own user interface to handle interaction styles. Those mechanisms may override the methods described here.
When you start a Chinese input server, no application is connected to it and the title bar indicates that there is no connection. When an internationalized application starts in a Chinese locale, the string 英語 is displayed in the status area for dxhanyuim, and 英语 is displayed for dxhanziim, indicating that the application is connected to the Chinese input server and the mode is English. If you invoke a Chinese input method, the input state displayed in the status area and the title bar is updated accordingly. If you change the input focus to a noninternationalized application window, the title bar of the input window changes to indicate there is no connection.
The input server can maintain an individual state of composition for different input contexts or application windows. In addition, under the root window interaction style, each application window can be associated with its own attributes, such as font size, font style, layout, input window size, and position. You can set the input focus to an application window and then compose a Chinese character or customize the input window. The input server stores information about the composing state and input window attributes so that next time this application window gets the input focus, the original composing state and attributes are restored.
The auxiliary area of the input window provides an Options menu that you use to customize the input server. You can click on the Options button to access the customization pull-down menu. The menu provides options for traditional Chinese:
For traditional Chinese,
You can choose the vertical layout option only if the current layout is horizontal. When you choose this option, the input window and the layout of its contexts immediately display in a vertical orientation. The vertical input window remains at the same origin.
You can choose this option only if the current layout is vertical. When you choose this option, the input window and the layout of its context immediately display in a horizontal orientation. The horizontal input window remains at the same origin.
You can use the Select Phrase option to customize the phrase input mode. DECwindows Motif shares the phrase databases that are created and managed by the Compaq Tru64 UNIX Phrase Utility. After you create a phrase database and define your phrases, both character-cell terminal applications and DECwindows Motif applications can use the data for phrase input. In order to use the phrase databases, the LANGe environment variable must be set to reflect the required codeset, that is, zh_TW.dechanyu. For details about the Compaq Tru64 UNIX Phrase Utility and phrase definition file, see Writing Software for the International Market.
The Select Phrase Input Class option allows you to focus on a particular class of phrases during phrase input. When you choose this option, a dialog box pops up and you can select the phrase class that you want to use.
To select all classes, you can choose the * option. If you do this, the phrase input method searches all classes of phrase definitions for the phrase code that you entered.
The Phrase Input method allows you to access two phrase definition databases: the system phrase database and the user phrase database. The former is for public access by all users using your system. It should be created and modified by your system administrator. You can also create and maintain your own private phrase database for storing your frequently used phrases. This is called the user phrase database.
Note
The databases that you can access are the ones available on the system on which you start your Chinese input server.
For details about creating a phrase database, see Writing Software for the International Market.
If you choose this option, you will access your private user phrase database.
If you choose the System Phrase Database option, you will access the system phrase database.
The Current Window option allows you to customize the attributes of a specific application window.
Note
The Current Window option is available only if you chose root window as your interaction style and you focused to an internationalized application input area. Otherwise, this option is greyed out. If you choose the off-the-spot interaction style, the application determines the attributes.
When you choose this option, a dialog box pops up and the following options are displayed:
You can choose the font size for displaying pre-edit data. Click on eitehr the Big Font or Small Font toggle buttons.
You can choose the font typeface to be used in the input window. To select the font typeface in a traditional Chinese input server, click on one of the following toggle buttons:
- Hei
- Sung
- Screen
To choose the font typeface in a Simplified Chinese input server, click on one of the following toggle buttons:
- Heiti
- Songti
- Kaiti
- FangSongti
- Screen
You can define a typeface that does not exist in the options list in the Chinese input server resource file. This typeface will be displayed beside the Other: label in the customization window.
The Chinese input server can display pre-edit data on more than one text line. Usually, this happens when a list of items is displayed for your selection. You use the Line Spacing option to specify the spacing between text lines in pixels. To adjust the line spacing, drag the Line Spacing slider or move the pointer to the desired position on the slider and click MB1.
You can customize the foreground and background colors of the input window.
For monochrome display, the following options are provided:
- Dark Text, Light Background
- Light Text, Dark Background
For color display, you can choose from a palette of colors to design a visually pleasing input window. To customize the foreground or background color, you should first select the color that you want to change by clicking one of the following toggle buttons:
- Input Window Foreground Color
- Input Window Background Color
A color mixing window pops up in which you can mix the color using the three sliders, which represent the intensities of the primary colors. The modified color is displayed in the right-half of the color box while the left-half displays the original color.
There are several customizable attributes which apply to all input windows. In the traditional Chinese input server, they are:
In the Simplified Chinese input server, they are:
When you choose the Input Method Customization option, a dialog box pops up in which you can customize the attributes.
When the Chinese input server is activated, the default Chinese input method is set to the one you choose via this option. The input methods you can choose in the traditional Chinese input server are:
- Tsang-chi
- Quick Tsang-chi
- Phonetic
- Internal code
The input methods you can choose in the Simplified Chinese input server are:
- 5-Stroke
- Row-Column
- Pin-Yin
- Telex Code
- 5-Shape
When you make an error while composing a Chinese character, the bell rings to alert you. To adjust the bell volume, drag the Bell Volume slider or move the pointer to the desired position on the slider and click MB1.
The traditional Chinese input server supports the input of both CNS 11643 and DTSCS (that is, EDPC) characters. However, you can choose to disable the input of EDPC characters so that the data that you can enter contains only CNS 11643 characters. This option is useful if you need to prepare Chinese data and interchange it with systems supporting only CNS 11643.
To enable or disable the input of EDPC characters, click on the EDPC Characters Input button.
The Simplified Chinese input server supports the display of 5-shape radicals when you choose the 5-stroke input method. The radicals are displayed after each candidate in the candidate list during the pre-edit.
The key sequences for invoking and switching Chinese input methods are set by default. You can change these default key sequences to meet your personal preference or working style. This option allows you to customize the following key sequences for both dxhanyuim and dxhanziim:
- Start Input Method
- End Input Method
- Phrase Input
- Invoke Next Input Method
The following choices are for dxhanyuim only:
- Start Full Form
- End Full Form
- Tsang-chi
- Quick Tsang-chi
- Internal Code
- Phonetic
The following choices are for dxhanziim only:
- 5-Stroke
- Row-Column
- Pin-Yin
- Telex Code
- 5-Shape
In the bottom part of the dialog box is an easy-to-use interface where you can customize a key sequence. You can select a trigger key and toggle the on/off state of the Ctrl, Alt, and Shift modifiers. The trigger keys that you can choose include NoSymbol, [F1] - [F20], [Space], [Return], [Compose] and [A] - [Z]. If you choose NoSymbol, no invocation sequence will be provided for the selected action.
For each modifier key, you can select the on/off state with the toggle buttons defined in Table 7-5.
Modifier |
On State |
Off State |
---|---|---|
Ctrl |
Ctrl |
~Ctrl |
Shift |
Shift |
~Shift |
Alt |
Alt |
~Alt |
The tilde (~) sign means that you should not press that modifier key when invoking the action. In addition to the on/off state, you can also deselect both of the states for a modifier key, so that neither state is selected. To do this, click the toggle button which is currently set on. If you deselect a modifier, the input server will accept the invocation key with or without holding the modifier key.
When an invocation key sequence is selected, the state of the toggle switches and the trigger key displayed at the bottom of the dialog box is updated to reflect the current value, and the label at the bottom left-hand side changes.
For example, if you want to change the End Input Method key sequence to [Ctrl/Space], select the Ctrl, ~Alt and ~Shift buttons.
To reduce the number of keys required for selecting input methods, set the hot keys for all the input methods to "NoSymbol", and define a key sequence for the Choose Next Input Method option. This method releases the [F6] to [F10] function keys for use by other DECwindows applications. To switch the input method, press the key sequence for Choose Next Input Method and the Chinese input server will cycle through all supported input methods. For example, if you use the Tsang-Chi input method and you want to switch to the internal code input method, press the hot key twice.
The Help option provides the following menu items that you use to display help for the Chinese input server:
Use the Quit option to terminate the input server. If you select this option, a dialog box pops up and asks if you really want to exit.
All attributes that you customize with the Current Window and Input Method Customization menus can be saved into a resource file in your login directory. Each customization window provides the following options:
Save all current attributes as default values. These attributes are saved to a private resource file in your login directory; DXhanziim if you are using dxhanziim and DXhanyuim if you are using dxhanyuim.
Restores all system default attributes
There are two alphabetic input methods available under the English mode:
The Half form alphabet method allows you to enter uppercase and lowercase English characters, numerals, and symbols marked on the keyboard. Full form alphabet allows you to enter 2-byte alphabets, numerals, and symbols defined in the Chinese character sets.
To invoke the Full Form Alphabet input method, press [Shift/Space]. The string 全 形 (full form) is displayed in the status area, as shown in Figure 7-6. Once the prompt appears, all characters that you enter at the keyboard are sent as 2-byte characters.
To exit the Full Form Alphabet input method, press [Shift/Space] again.
ABAB_
〔全形〕
To undertstand the Tsang-Chi input method you must understand the concepts of Tsang-Chi root radicals, auxiliary forms, and character-splitting methods.
The Tsang-Chi input method is based on the concept of root radicals. The input method requires a Chinese character to be broken down into various root radicals according to its shape. Altogether 24 Tsang-Chi root radicals have been defined with which almost all existing Chinese characters can be composed. The root radicals are divided into four groups and assigned to the alphabet keys [A] - [Y] (with the exception of the [X] key) on the main keyboard. Table 7-6 a-d illustrate the classification of the root radicals, their corresponding English keys, their auxiliary forms, and the way that they are derived. Table 7-7 is a shorter table for quick reference.
a. Philosophical:
To input a Chinese character using the Tsang-Chi input method, its Tsang-Chi code should be generated based on character decomposition. Most Chinese characters can be divided into two categories: the composite form and the connected form. The composite form can be split into a character head and a character body while the connected form cannot.
Composite Form |
Examples |
---|---|
Left-right form |
針﹑憶﹑轉﹑謝 |
Top-bottom form |
哲﹑靈 |
Inclusion form |
國﹑圓 |
Connected Form |
Examples |
---|---|
Connected form |
亞﹑兩﹑爾 |
The general rules for generating Tsang-Chi codes are:
Connected characters are those which cannot be split due to the existence of crossed or connected strokes, such as 武, 面, 貞. Each character can be input by entering at most 4 radicals. If more than 4 radicals can be derived, the first 3 radicals and the last can be taken to generate the Tsang-Chi code. Table 7-10 illustrates some examples of decomposing connected characters.
Composite characters are those that can be split from top to bottom, left to right, and outside to inside, such as 思, 珠, 圓. You can decompose the character head into 1 to 2 radicals. If more than 2 radicals are generated, take the first and the last radicals. The character body can be decomposed into 1 to 3 radicals. If it is made up of 3 or fewer radicals, you should enter all the radicals. If it is made up of more than 3 radicals which are connected, enter the first two radicals and the last. If the character body is itself a composite character, you can further decompose the character body into subhead and subbody. The radicals you should enter are the first and last radicals of the subhead, and the last radical of the subbody.
Table 7-11 illustrates examples of decomposing composite characters. In the "Shape" column, a solid square represents a character head while a square represents a radical of the character body.
Approximately 95% of Chinese characters can be decomposed according to the rules described in Section 7.5.2.3. The remaining 5% are exceptional characters that need to be entered in different ways. The exceptional characters can be divided into the following groups:
The Tsang-Chi input method has defined 9 compound characters. A compound can be a connected character, or the character head or body of a composite character. In any case, compound characters must be represented by their first and last radicals.
Difficult characters are those which are difficult to decompose in the Tsang-Chi method. Usually, these characters are composed of some special root radicals which are neither the Tsang-Chi root radicals nor their auxiliary forms. Using the Tsang-Chi input method you can press the [X] key (which is labeled with 難 and therefore will be referred to as the [難] in this document) to access the special root radicals and use them to compose difficult characters.
The rules of decomposing difficult characters are:
- If it is easy to identify the first and the last radicals, you can enter the first radical, the [難] key, and the last radical.
For example, 身 can be decomposed into 竹難竹 (HXH).
- If the first radical is easy to identify while the others are difficult, enter the first radical and then press the [難] key for the rest.
For example,齊 can be decomposed into 卜難 (YX), and 臼 can be decomposed into 竹難 (HX).
- Never use the [難] key for the first radical.
Some special characters are composed by superimposing the root radicals 木 , 大, and 火 on other strokes or radicals. To keep the decomposed radicals as simple as possible, take the root radicals first, before the rest of the character is entered.
When you invoke the Tsang-Chi input method, the Chinese string 倉頡 is displayed in the status area, as shown in Figure 7-7.
〔倉頡〕:▌
The radicals that you enter with the Tsang-Chi input method are displayed in the pre-edit area, as shown in Figure 7-8. To correct the data, press the Delete key and reenter the correct radical. Alternatively, you can press the 倉頡 key (that is, F6 on a standard LK201 or LK401 keyboard) to erase all radicals in the pre-edit buffer. If fewer radicals are required to input a character, you can press the Return key or Space bar to signal the end of input.
〔倉頡〕:木▌
If there is exactly one character represented by a Tsang-Chi code, the character is sent directly to the application. Sometimes, multiple candidates for a Tsang-Chi code are available for selection when the code represents more than one Chinese character. In this case, the candidates are displayed in the pre-edit area in the following order:
The pre-edit area can display up to 9 candidates at a time.
1 XXX 4 XXX 7 XXX →
The numbers 1, 4, and 7 divide the 9 characters into 3 groups so that you can easily select the desired candidate. To select a character that is displayed in the pre-edit area, press the corresponding numeric key on the main keyboard.
When there are more than 9 candidates for selection, the indicators , →,←→ and ← are displayed in the pre-edit area. Table7-15 lists the indicators and their definitions.
Indicator |
Definition |
---|---|
→ |
The current row is the first row and you can press [Space] or [Þ] to move to the next row. |
←→ |
The current row is somewhere between the first and the last row. You can press:
|
← |
The current row is the last row and you can press [Ü] to move to the previous row or [Ý] to the first row. |
If you enter another Tsang-Chi code without selecting a candidate, the first candidate in the list is sent to the application.
If you do not want to select any candidate, but want to clear the Tsang-Chi code, press the Return key or the 倉頡 key (that is, F6).
If you want to repeat input of the same character, press the equals (=) key.
If you input incorrect data, the bell will ring. If no character is generated after you enter a Tsang-Chi code, this indicates that there is no character for the code. The radicals entered remain in the pre-edit buffer. To handle the error, you can do one of the following:
The Quick Tsang-Chi input method, also known as the Quick input method or the so-called Easy input method, is a variant of the Tsang-Chi input method and follows the same principles and rules for decomposing characters into radicals. However, the process for entering radicals is simplified and requires only the first and the last radicals. For example, the character 商 is decomposed in the Tsang-Chi input method into 卜,金, 月, 口. The Quick Tsang-Chi input method, in this case, requires input of only 卜 and 口.
This section discusses the mechanism of the Quick Tsang-Chi input method. For details about character decomposition, see Section 7.5, Tsang-Chi Input Method.
As in the Tsang-Chi input method, the character decomposition in Quick Tsang-Chi is based on whether a character is of the composite form or the connected form. However, the Quick Tsang-Chi input method requires only the first and the last radicals regardless of the number of radicals obtained.
When you invoke the Quick Tsang-Chi input method, the Chinese string 速成 is displayed in the status area, as shown in Figure 7-10.
〔速成〕:▌
The radical that you enter is displayed in the pre-edit area, as shown in Figure 7-11. To correct the data, press the Delete key and reenter the correct radical. Alternatively, you can press the [速成] key (that is, F7 on a standard LK201 or LK401 keyboard) to erase all radicals in the pre-edit buffer. If only one radical is required to input a character, press the Return key or Space bar to signal the end of input.
〔速成〕:月▌
If exactly one character is represented by a Quick Tsang-Chi code, the character is sent directly to the application. Frequently, multiple candidates for a Quick Tsang-Chi code are available for selection when the Quick Tsang-Chi code represents more than one Chinese characters. In this case, the candidates are displayed in the pre-edit area.
If you do not want to select any candidate, but want to clear the Tsang-Chi code, press the Return key or the 速成 key (that is, F7).
If you want to repeat the input of the same character, press the equals (=) key.
If you input incorrect data, the bell will ring. If no character is generated after you enter a Quick Tsang-Chi code, this indicates that there is no character for the code. The radicals entered remain in the pre-edit buffer. To handle the error, you can do one of the following:
The Phonetic input method is based on Chinese phonetic symbols (bopomofo) that represent the pronunciation of Chinese characters.
Phonetic symbols can be divided into 3 categories: consonants, vowels, and tone marks. There are 21 consonants, 16 vowels, and 5 tone marks. The 5 tone marks for Chinese pronunciation are the first, the second, the third, the fourth and the light tones. Chinese phonetic symbols are assigned to the alphanumeric keys on the main keyboard. Table 7-16 summaries all consonants, vowels, and tone marks.
Note
The vowels ㄧ, ㄨ, and ㄩ are also called semi-vowels.
The pronunciation of a Chinese character is composed of consonants, vowels, and tone marks. Therefore, a phonetic code can be generated according to the following rules:
Code Format |
Phonetic Symbols |
Characters |
---|---|---|
Consonant + vowel + tone mark |
ㄕㄟˊ |
誰 |
Consonant + [vowel] + tone mark |
ㄓ |
知, 織 |
Vowel + tone mark |
ㄢ |
安, 庵 |
Consonant + semivowel + vowel + tone mark |
ㄒㄧㄠˇ |
曉 , 小 |
Semivowel + vowel + tone mark |
ㄨㄛˇ |
我 |
When you invoke the Phonetic input method, the Chinese string 注音 is displayed in the status area, as shown in Figure 7-12.
The example in Figure 7-12 shows how to input the character 吉 by entering the phonetic symbols ㄐㄧˊ (RU6) at the main keyboard.
吉
[注音]:ㄐㄧˊ▌ 1 及吉吃 4 即急級 7 集極擊 →The phonetic symbols that you enter are displayed in the pre-edit area. To correct the data, press the Delete key and re-enter the correct symbol. Alternatively, you can press the 注音 key (that is, F10 on a standard LK201 or LK401 keyboard) to erase all phonetic symbols in the pre-edit buffer.
You can press various termination keys to signal that you are done entering the phonetic symbol. Table 7-18 shows the results of entering phonetic symbols with different termination keys.
Tone |
Key |
Description |
Example |
---|---|---|---|
1st |
Space |
Lists characters with the same consonant or vowel in the order of the first, second, third, fourth, and light tone marks. |
Type ㄓ, then press the Space bar, , ㄓ﹑之﹑支..., 直﹑姪﹑值..., 止﹑ 只﹑旨..., 至﹑志﹑... will be listed. |
2nd |
6 |
Lists characters of the second tone. |
Type ㄋㄧㄢˊ, 年﹑黏﹑哖... will be listed. |
3rd |
3 |
Lists characters of the third tone. |
Type ㄌㄧㄠˇ, 了﹑暸﹑瞭... will be listed. |
4th |
4 |
Lists characters of the fourth tone. |
Type ㄌㄧㄝˋ, 列﹑劣﹑冽... will be listed. |
light |
7 |
Lists characters of the light tone. |
Type ㄕ˙, 匙... will be listed |
none |
Return |
Characters corresponding to the phonetic symbols are displayed according to the order of tone marks. If only a consonant is entered before pressing Return, characters corresponding to any valid combinations of this consonant and other vowels are also displayed. |
Type ㄓ,, then press the Return key, characters corresponding to the order ㄓ﹑ㄓˊ﹑ㄓ ˇ﹑ㄓˋ﹑ㄓㄚ﹑ㄓㄚ ˊ﹑...,ㄓㄜ﹑ㄓㄜ ˊ﹑...,ㄓㄨㄚ... will be listed. |
If a phonetic string matches exactly one character, the character is sent directly to the application. Frequently, a phonetic string matches multiple Chinese characters. In this case, the candidates are displayed in the pre-edit area.
If you do not want to select any candidate, but want to clear the phonetic code, press the Return key or the 注音 key (that is, F10).
If you want to repeat the input of the same character, press the equals (=) key.
If you input incorrect data, the bell will ring. If no character is generated after you enter a phonetic code, this indicates that there is no character for the code. The phonetic symbols entered remain in the pre-edit buffer. To handle the error, you can do one of the following:
Each character in DEC Hanyu has been assigned a unique internal code, just like the ID number of a company employee. For a complete list of the characters and their internal codes, see The DEC Chinese Code Book (Part Number EK-VT38D-CB-001).
Note
In this Compaq Tru64 UNIX release, the Internal Code input method supports only the DEC Hanyu internal code. The internal codes for Taiwanese EUC and Big-5 are not supported. Even if you set the locale to one of the Taiwanese EUC or Big-5 locales, this input method still requires you to specify the DEC Hanyu internal code.
When you invoke the Internal Code input method, the Chinese string 內碼 is displayed in the status area.
To enter an internal code, you can optionally enter a character set number to be followed by a four-digit hexadecimal number which specifies the position of the character with respect to the character set. The character set number can be 1 for the CNS11643-1986 character set, or 2 for the DTSCS character set.
If you omit the character set number and enter only the four-digit hexadecimal code, you must press the Return key or the Space bar to signal the end of input. If you enter the character set number and the four-digit hexadecimal code, the respective character is sent automatically without pressing the Return key. Figure 7-13 shows the input of 例 using the Internal Code input method.
租賃契約條_
〔內碼〕﹕
1CBF▌The internal code that you enter is displayed in the pre-edit area. To correct the data, press the Delete key and re-enter the correct code. Alternatively, you can press the 內碼 key (that is, F8 on a standard LK201 or LK401 keyboard) to erase all characters in the pre-edit buffer.
Since internal codes are unique for any symbols or Chinese character in DEC Hanyu, there are not multiple candidates for an internal code.
If you want to repeat the input of the same character, press the equals (=) key.
If you input incorrect data, the bell will ring. If no character is generated after you enter an internal code, this indicates that there is no character for the code. The internal code entered remains in the pre-edit buffer. To handle the error, you can do one of the following:
The Phrase input method is a mechanism designed to facilitate the input of frequently used phrases. You can define your own frequently used phrases by preparing your own phrase database. Each phrase is identified by a phrase code. To input a phrase, you enter its phrase code and then convert it to the respective phrase.
The Compaq Tru64 UNIX operating system provides a Phrase Utility that you use to create phrase databases. For details, see Writing Software for the International Market.
In addition, the firmware of the VT382-D traditional Chinese terminal is designed to allow you to download phrases into its built-in memory. For DECwindows Motif applications, you do not need to download phrase definitions because the Chinese input servers can directly access the phrase databases. In addition, you can select the phrase database being used.
When you invoke the Phrase input method, the Chinese string 片語 is displayed in the status area of dxhanyuim, and 古陋 in the status area of dxhanziim. Figure 7-14 shows an example of entering a phrase in dxhanyuim and Figure 7-15 shows an example of converting the phrase code to the phrase.
國際觀光旅館名錄
名稱﹕國賓大飯店/AMBASSADOR
地址﹕台北市中山北路二段63號
63, Chung Shan N. Rd., Sec. 2, Taipei
名稱﹕_
〔片語〕﹕ASIA▌
國際觀光旅館名錄
名稱﹕國賓大飯店/AMBASSADOR
地址﹕台北市中山北路二段63號
63, Chung Shan N. Rd., Sec. 2, Taipei
名稱﹕環亞大飯店/ASIA WORLD PLAZA_
[倉頡]:▌
The phrase code that you enter is displayed in the pre-edit area, as shown in Figure 7-14. To correct the data, press the Delete key and reenter the correct code. Alternatively, you can press the 片語 key (that is, F9 on a standard LK201 or LK401 keyboard) to erase all characters in the pre-edit buffer.
The phrase code can consist of at most 8 characters. If it has fewer than 8 characters, press the Return key or the Space bar to signal the end of input. If it has exactly 8 characters, the respective phrase is sent automatically without having to press the Return key after you enter the last character.
The Phrase input method is different from other input methods in the sense that once a phrase is entered, the input mode switches back to the original input mode from which the Phrase input method was invoked. To input another phrase, press [片語] again and then enter another phrase code.
If the data that you input is incorrect, the bell will ring.
If the message 此片語不存在 (Requested phrase does not exist) is displayed when you enter a phrase code, you can check the following:
If the phrase has been defined but it does not exist in the in-memory phrase database, reload or reselect the phrase definition file.
Errors can occur in the phrase definition file. If you cannot solve the problem using the procedures in Section 7.9.2.1, you can do one of the following:
The Symbol input method is a more intuitive way to input two-byte symbols, such as punctuation marks, table and mathematical symbols, foreign characters, phonetic symbols, and traditional Chinese control characters.
You can invoke the Symbol input method only from the Tsang-Chi or the Quick Tsang-Chi input method. You can use it to input more than 600 symbols, including all full form alphabets (A -Z, a-z), full form numerals (0-9), full form symbols (such as #,$, % ...), phonetic elements (such as ㄅ, ㄆ, ㄇ, ㄈ), Chinese radicals and special symbols (such as a a 「, 」, ※).
To enter the Symbol input mode, press the Z key when invoking Tsang-Chi or the Quick Tsang-Chi input method. When you invoke the Symbol input mode, the Chinese string 符號 is displayed in the status area.
Use the following rules when entering symbols:
Symbol |
Input Code |
Key Sequence |
---|---|---|
! |
! |
<Shift/1> |
# |
# |
<Shift/3> |
$ |
$ |
<Shift/4> |
A |
A |
[A] |
a |
a |
[a] |
Symbol |
Input Code |
Description |
---|---|---|
( |
( |
vertical parenthesis |
) |
) |
vertical parenthesis |
︵ |
( |
horizontal parenthesis |
︶ |
) |
horizontal parenthesis |
Symbol |
Key Sequence |
---|---|
≠ |
[=][/] |
♀ |
[O][+] |
§ |
[S][S] |
㎏ |
[K][G] |
Symbol |
Key Sequence |
Symbol |
Key Sequence |
---|---|---|---|
▁ |
[-][1] |
▏ | [|][1] |
▂ |
[-][2] |
▎ | [|][2] |
▃ |
[-][3] |
▍ | [|][3] |
█ |
[-][8] |
▉ | [|][7] |
Symbol |
Key Sequence |
---|---|
└ |
[T]{Z] |
┴ |
[T][X] |
┘ |
[T][C] |
├,╞ |
[T][A] |
┼ ,╪ |
[T][S] |
┌ Q |
┬ W |
┐ E |
├ A |
┼ S |
┤D |
└ Z |
┴ X |
┘ C |
Symbol |
Key Sequence |
---|---|
↙ |
[A][Z] |
↓ |
[A][X] |
↘ |
[A][C] |
← |
[A][A] |
↖ Q |
↑ W |
↗ E |
←A | → D |
|
↙ Z |
↓ X |
↘ C |
Symbol |
Key Sequence |
---|---|
ㄅ |
[P][1] |
ㄆ |
[P][Q] |
ㄇ |
[P][A] |
ㄈ |
[P][Z] |
ㄉ |
[P][2] |
Symbol |
Key Sequence |
---|---|
Α |
[G][A][L] |
Β |
[G][B][E] |
α |
[g][a][l] |
β |
[g][b][e] |
Ε |
[G][E][P] |
You can input a symbol by entering its symbol code and then pressing the Return key or Space bar to signal the end of input.
The following example describes how to enter the full form alphabet A:
If a symbol code matches exactly one character, the character is sent directly to the application. However, sometimes a symbol code matches multiple candidates. In this case, the candidates are displayed in the pre-edit area. To continue the preceeding example:
A_
〔倉頡〕:▌
Note
After the symbol is input, the input mode switches back to the original input mode.
If no symbol is input after you enter a symbol code, the symbol code is invalid and the input mode switches back to the original input mode. You can press the Z key to invoke the Symbol input mode again and reenter the correct symbol code.
The Compaq Tru64 UNIX software supports the input of user-defined characters (UDC) through the Tsang-Chi and Quick Tsang-Chi input methods. When you invoke the Chinese input server, the following Tsang-Chi dictionaries are loaded:
The Tsang-Chi and Quick Tsang-Chi input methods display candidates, which match the input key sequence you enter, in this order.
You can use the cedit utility to define the input sequences of user-defined characters and then use the cgen command with the -iks option to produce a UDC Tsang-Chi dictionary for the Chinese input server. You should also define the corresponding font glyphs (both 18X16 and 24X24 size fonts). After you define the user-defined characters and their corresponding information in the system or user database, restart the input server to reread the database. For details, see Writing Software for the International Market or the cgen reference pages.
By default, the Chinese input server puts your private UDC Tsang-Chi dictionary in the ~/.iks/dwimdb-dechanyu directory. You can use the USER_UDC_DICT environment variable to override this default location.
The system-wide UDC Tsang-Chi dictionary is, by default, placed in the /var/i18n/iks/dwimdb-dechanyu directory. If the dictionary is located elsewhere on your system, you can use the SYSTEM_UDC_DICT environment variable to override the default location. If you are a system administrator, you can install a UDC Tsang-Chi dictionary by placing it at the default location and setting proper access mode for system-wide use.
The system default Tsang-Chi dictionary, which is shipped with the Compaq Tru64 UNIX system, is placed in the /usr/i18n/hanyu/hanyu_tsangchi.dic directory. If it is installed at a different location, you can use the HANYU_SYSTEM_DICT environment variable to specify the location.
Note
In this Compaq Tru64 UNIX release, the Chinese input server supports UDC input key sequences only in the DEC Hanyu codeset.
To display UDC in DECwindows Motif applications or the Chinese input server, UDC fonts should be available on your system. For instance, the Chinese input server will display UDC using the fonts -adecw-screen-*--18-*-cns11643.1986-udc or -adecw-screen-*--24-*-cns11643.1986-udc.
If you define your own UDC fonts, you can override the system UDC fonts by adding the directory in which the UDC fonts are located to the font path. For example, if your private UDC fonts are located in the ~/fonts directory, enter the following command to update the font path:
%xset +fp ~/fonts
Use the cedit utility to define UDC font glyphs (both 18X16 and 24X24 size fonts) and the cgen utility to generate fonts for use in DECwindows Motif. For details, see Writing Software for the International Market.
The 5-Stroke input method makes use of the basic strokes to construct the Chinese characters. A stroke is a segment of continuous line or curve that constitutes a Chinese character. Table 7-19 describes the five categories of strokes.
Category |
Description |
---|---|
Horizontal strokes or 横 〔一〕 |
Horizontal lines and left-to-right ticks 〔提〕 |
Vertical strokes or 竖 〔丨〕 |
Vertical lines and right-to-left hooks 〔竖左钩〕 |
Slash or 撇 〔丿〕 |
Slanting lines and curves drawn towards lower-left |
Backslash or 捺 〔丶〕 |
Dots 〔点〕, slanting lines, and curves drawn towards lower-right |
Zip-zap curves or 折 〔乙〕 |
Including different types of joints or corners which can be drawn in single continuous strokes |
Using the 5-Stroke input method you can input single Chinese characters and Chinese terms. Approximatley 5,000 terms can be input using this method.
To input a Chinese character using the 5-Stroke input method, enter its 5-stroke code through the numeric keypad according to the writing order. Table 7-20 shows the codes representing the five categories of strokes.
Stroke |
Code |
Key |
---|---|---|
一 |
1 |
[KP1] |
丨 |
2 |
[KP2] |
丿 |
3 |
[KP3] |
丶 |
4 |
[KP4] |
乙 |
5 |
[KP5] |
Figure 6-5 shows the numeric keypad layout for entering 5-stroke codes.
The following are the general rules of writing order for Chinese characters:
If a Chinese character is composed of exactly five strokes, enter the strokes according to the writing order. If it is composed of fewer than five strokes, press the KP0 key to signal the end of input. If it is composed of more than five strokes, enter the first four strokes and the last stroke. Table 7-21 shows some examples of using the 5-Stroke input method.
Character |
No. of Strokes |
Write Order |
5-Stroke Code |
Key Sequence |
---|---|---|---|---|
用 |
5 |
丿, 乙, 一,一, 丨 |
35112 |
[KP3][KP5][KP1][KP1][KP2] |
五 |
4 |
一, 丨, 乙, 一 |
12510 |
[KP1][KP2][KP5][KP1][KP0] |
总 |
9 |
丶, 丿, 丨, 乙,丶 |
43254 |
[KP4][KP3][KP2][KP5][KP4] |
If you are uncertain about the type of strokes or the writing order of strokes, press the wildcard key (KP6) in place of the strokes. For details, see Section 7.12.5, WildCard Key.
The 5-Stroke input method can be used to input terms. A maximum of eight strokes is required for entering terms. Press the KP7 key before inputting strokes. The KP7 key signals the system that the subsequent key strokes are for composing a term instead of a character.
The number of strokes input for each character in a term depends on the number of characters composing the term, as shown in Table 7-22.
No. of Characters in Term |
Strokes to be Input |
---|---|
2 |
First 4 strokes of each character |
3 |
First 2 strokes of the first two characters and the first 4 strokes of the last character |
4 |
First 2 strokes of each character |
> 4 |
First 2 strokes of the first three characters and the last character |
If a character is composed of fewer strokes than required, press the KP6 key for the outstanding strokes. If this character is the last character, press the KP0 key to signal the end of input.
|
No. of Characters |
|
No. of Strokes |
Reg'd Strokes |
5-Stroke Code |
|
---|---|---|---|---|---|---|
世界 |
2 |
世 界 |
5 |
4 |
1221 |
[KP7][KP1][KP2] |
工人 |
2 |
工 人 |
3 |
4 |
121(6) |
[KP7][KP1][KP2] |
计算机 |
3 |
计 算 机 |
4 |
2 |
45 |
[KP7][KP4][KP5] |
星期一 |
3 |
星 期 一 |
9 |
2 |
25 |
[KP7][KP2][KP5] |
百货公 司 |
4 |
百 货 公 司 |
6 |
2 |
13 |
[KP7][KP1][KP3] |
一分为 二 |
4 |
一 分 为 二 |
1 |
2 |
1(6) |
[KP7][KP1][KP6] |
中华人 民共和 国 |
7 |
中 华 人 国 |
4 |
2 |
25 |
[KP7][KP2][KP5] |
When you invoke the 5-Stroke input method, the string 五笔画 is displayed in the status area. When you input the 5-Stroke code, all the Chinese characters that match the code sequence are displayed in the 26th line of the terminal or the pre-edit area of the display. Each character is associated with a number and you can select the character immediately using the corresponding numeric key on the main keyboard.
For example, if you press the KP1 key, all characters starting with a horizontal stroke are displayed in the pre-edit area.
五笔画
:1 1有DEF 2地FBN 3来GOI 4于GFK 5下GHI +If you press the KP2 key, all Chinese characters with starting 5-Stroke code 12 are displayed in the pre-edit area.
五笔画:12 1地FBN 2下GHI 3可SKD 4机SMN 5本SGD +
You can use the Delete key to correct the 5-Stroke code. When you delete digits in the 5-Stroke code, the characters displayed in the pre-edit area change to match the remaining 5-Stroke code.
For example, press the Delete key once:
五笔画:1 1有DEF 2地FBN 3来GOI 4于GFK 5下GHI +
Press the Delete key once more:
五笔画:
Alternatively you can press the Return key without selecting any character. The pre-edit area is refreshed and you can enter a new 5-Stroke code.
Because the same 5-stroke code can represent more than one Chinese character, sometimes, multiple candidates are available for selection when you enter a 5-Stroke code. For example:
将所有区域_
五笔画: 12345 1机SMN 2榜SUPY 3概SUCQ 4棍SJXX 5杭SYMN +
To select a character that is displayed in the pre-edit area, press the corresponding numeric key on the main keyboard. In the example, press numeric key 3 to select 概. If the desired character is displayed at the first position (in this case, the 机 character), you do not need to press the 1 key to select 机. Enter another 5-Stroke code and the character will automatically be selected. This character is called the default character.
If there are too many candidates for selection, the candidates are displayed in two or more rows and a plus (+) sign is displayed to signal this. Press the Space bar or the KP9 key to display the next row of characters. If you want to see the previous row of characters, press <Shift/Space> or the KP8 key.
To enhance input efficiency, the Chinese input method maintains a list of built-in phrases in memory. If you select a character from the candidate list (See Section 7.12.3, Multiple Candidates) and there is a built-in phrase whose first character matches this character, the Association Mode is automatically activated. For example:
将所有区域划_
联 想 → 1―分
The string 联想→ is displayed in the status area. You can select one of the built-in phrases in Association Mode. After you select the phrase, you automatically exit Association Mode.
If there are many built-in phrases, they are displayed in two or more rows and a plus (+) sign is displayed to signal this. Press the Space bar or the KP9 key to view the next row of phrases. To move backwards, press [Shift/Space] or the KP8 key.
If you do not want to use any of the associated phrases, enter another 5-Stroke code to automatically exit Association Mode.
Notes
Association Mode is only active during single character input. It can not be activated during term input.
Association Mode is activated only if you press a numeric key to select a single character. If you do not press the 1 key to select the default character, the Association Mode is not activated though the default character is entered.
The KP6 key is a wildcard key, like an asterisk in a file specification, which can replace any strokes about which you are uncertain. For example:
字 - 丶, ?, 乙, 乙, 一
This example assumes you are uncertain about the second stroke and so press KP4, KP6, KP5, KP5, KP1.
Another example:
化 - 丿, 丨, ?, ?
This example assumes you are uncertain about the third and the fourth strokes and so press KP3, KP2, KP6, KP6, KP0.
The 5-Shape input method is a high performance input method which composes root radicals 〔字根〕 to form Chinese characters. Using te 5-Shape input method, you can enter one to four root radicals to input thousands of Chinese characters and terms.
In addition to character input, the 5-Shape input method also supports term input. The 5-Shape input method supports approximately 5,000 terms, each of which can be defined by four radicals.
Note
When using a VT382-C terminal with SoftODL enabled, you can use a user-defined key sequence in the 5-Shape input method to input a user-defined character (UDC). This assumes the key sequence does not apply to other existing characters. Use cedit to create UDCs and their corresponding key sequences.
There are 130 root radicals defined on 25 keys on the main keyboard. (See Figure 6-3 and Figure 6-4 for the layout of LK201-C and LK401-C keyboards). The 25 keys are divided into five groups, each containing five keys, as shown in Table 7-23.
Key 1 |
Key 2 |
Key 3 |
Key 4 |
Key 5 |
|
---|---|---|---|---|---|
Group 1 |
[11]/[G] |
[12]/[F] |
[13]/[D] |
[14]/[S] |
[15]/[A] |
Group 2 |
[21]/[H] |
[22]/[J] |
[23]/[K] |
[24]/[L] |
[25]/[M] |
Group 3 |
[31]/[T] |
[32]/[R] |
[33]/[E] |
[34]/[W] |
[35]/[Q] |
Group 4 |
[41]/[Y] |
[42]/[U] |
[43]/[I] |
[44]/[O] |
[45]/[P] |
Group 5 |
[51]/[N] |
[52]/[B] |
[53]/[V] |
[54]/[C] |
[55]/[X] |
Figure 7-16 and Figure 7-17 show that the distribution of radicals has three characteristics:
The 5-Shape input method decomposes Chinese characters according to their root radicals. The decomposition can be categorized as follows:
If a character is composed of fewer than four root radicals, you must enter a code which represents the decomposition type and the type of the last stroke, which is called the Distinction code.
For example, the codes for 汀, 洒 and 沐 are all [43][14]. To distinguish among them, you must enter the distinction code.
Character |
Last Stroke |
Decomposition |
Distinction Code |
---|---|---|---|
汀 |
丨 (2) |
Left-Right (1) |
[21] |
洒 |
一 (1) |
Left-Right (1) |
[11] |
沐 |
丶 (4) |
Left-Right (1) |
[41] |
Notes
The root radicals available on the main keyboard do not require a distinction code. Although the characters which are key names (such as 大) and radical names (such as 上) are composed of fewer than four radicals, no distinction code is required. For example, 厂 can be decomposed into 一 and 丿.
For those characters which do not have a unique writing order, such as 刀,切, 力, 九 and 匕, you can use zip-zap stroke code (5) for the last stroke. For example, 仇 can be decomposed into 亻 and 九, and you may add the distinction code [51].
For those inclusion type characters, such as 国, 围, 团, 进, and 这, you should take the last stroke of the interior radical. For example, the distinction code for 进 is [23] because the last stroke is [2].
Single dots located near a radical, such as the point in 义 and 太, belong to decomposition type 3. For example, the distinction code of 为 is [43].
The following four principles can be used for decomposing Chinese characters:
The 5-Shape input method allows for single character input and term input.
Each Chinese character can be composed of one to four root radicals. If the character is available on the keycap as a keyname, press the key four times, for example:
言 -
If the character is a root radical, press the key for the radical and enter the first, second and last strokes. If the character is defined with fewer than four codes, press the Space bar to signal the end of input, for example:
Character |
Decomposed Radicals |
Number of Radicals |
Key Sequence |
---|---|---|---|
西 |
西, 一, 丨, 一 |
4 |
[14][11][21][11] |
厂 | 厂, 一, 丿 |
3 |
[12][11][31][Space] |
There is one exception for the five basic strokes. The characters 一, 丨, 丿, 丶, and 乙 are single-stroke characters and they require two codes for input. To avoid multiple candidates for the same code, the 5-Shape input method requires adding two more codes [24] [24]. Table 7-24 shows the key sequences for entering these basic strokes.
Basic Stroke |
Key Sequence |
---|---|
一 |
[11][11][24][24] |
丨 |
[21][21][24][24] |
丿 |
[31][31][24][24] |
丶 |
[41][41][24][24] |
乙 |
[51][51][24][24] |
If the character does not appear on the keycap, follow the decomposition principles described in the previous section. If the character is composed of exactly four root radicals, enter the root radicals according to the writing order. If it is composed of more than four root radicals, enter the first, second, third, and last root radicals. If it is composed of less than four radicals, enter the radicals together with the distinction code. If the number of codes is still less than four, press the Space bar to signal the end of input. For example:
Character |
Decomposed Radicals |
Distinction Code |
Key Sequence |
---|---|---|---|
到 |
一 , 厶, 土, 刂 |
- |
[11][54][12][22] |
攀 |
木, X, X, 手 |
- |
[14][35][35][32] |
汉 | 氵, 又 |
[41] |
[43][54][41][Space] |
Approximately 5,000 built-in terms are defined in the Chinese input methods. You can use the 5-Shape input method to input multiple character terms by entering four root radicals, as shown in Table 7-25.
Number of |
|
---|---|
2 |
The first two root radicals of each character |
3 |
The first root radicals of the first two characters and the first two root radicals of the last character |
4 |
The first root radical of each character |
> 4 |
The first root radicals of the first three characters and the last character |
|
Number of |
|
Number of Req'd |
|
|
---|---|---|---|---|---|
经济 |
2 |
经济 |
2 |
纟 , 又氵, 文 |
[55][54][43][41] |
计算机 |
3 |
计算机 |
1 |
讠 竹 木, 几 |
[41][31][14][25] |
艰苦奋斗 |
4 |
艰苦奋斗 |
1 |
又 艹 大 冫 |
[54][51][13][42] |
电子计 算机 |
5 |
电子计机 |
1 |
曰 子 讠 木 |
[22][52][41][14] |
When the 5-Shape input method is invoked, the string 五笔字型 is displayed in the status area. You can enter a 5-Shape code through the main keyboard and the data is dislayed in the pre-edit area. When a complete 5-Shape code is entered, the character that matches the code is sent. For example:
吊_
五笔字型:kmhj
To correct the input data, press the Delete or Return key to erase the data.
If there is no valid character for the 5-Shape code, the bell rings to signal an error and you can enter another code.
If input codes match multiple candidates, valid candidates are displayed in the pre-edit area.
五笔字型:bnh_ 1了BNH 2卩BNH 3阝BNH 4凵BNH
The mechanism for selecting candidates is similar to that for the 5-Stroke input method. For details, see Section 7.12, 5-Stroke Input Method.
As with the 5-Stroke input method, Association Mode is activated automatically when you select a character from the candidate list. For details, see Section 7.12, 5-Stroke Input Method.
There are three levels of simple code characters; Frequently-Used Characters (Level 1), Level 2, and Level 3.
Among the 6,000 Chinese characters defined in GB2312-80, there are 25 very frequently-used characters. These are defined on the keys [11] to [55]. To input these characters, press the key associated with the character (such as [11], [25]) and then press the Space bar.
The 25 frequently-used characters are:
[*1] |
[*2] |
[*3] |
[*4] |
[*5] |
|
---|---|---|---|---|---|
[1*] |
一 |
地 |
在 |
要 |
工 |
[2*] |
上 |
是 |
中 |
国 |
同 |
[3*] |
和 |
的 |
有 |
人 |
我 |
[4*] |
主 |
产 |
不 |
为 |
这 |
[5*] | 民 |
了 |
发 |
以 |
经 |
The 5-Shape input method has about 600 Level 2 Simple Code Characters. To input a Level 2 Simple Code Character, enter the first two radicals and then press the Space bar. For example, the 5-Shape code for 帮 is [13][31][52][21] (that is, DTBH). But since it is a Level 2 Simple Code Character, you can press [13][31] and the Space bar to input the character.
The Level 2 Simple Code Characters include:
啊阿爱安暗芭吧百瓣半办帮包保报北
Approximately 4,000 Chinese characters defined in GB2312-80 are classified as Level 3 Simple Code Characters. To input these characters, enter the first three radicals and then press the Space bar.
The Z key on the main keyboard is the wildcard key for the 5-Shape input method. When inputting a single character, the Z key can replace any root radicals about which you are uncertain.
For example, if you are not sure whether 律 should be decomposed into 彳, 彐, 二, and 丨 (TVFH) or 彳, 彐, 丨, and 二 (TVHF), you can enter [31][53][Z][Z] and all characters with starting root radicals [31] and [53] will be displayed for your selection. For example:
五笔字型:tvzz_ 1很TVEY 2律TVFH 3笋TVTR 4魏TVRC +
The 25 keys on the main keyboard are usually used to enter 5-Shape code. But you can also enter 5-Shape codes through the numeric keypad.
For instance, the 5-shape code of 丙 is [11][[25][34][43] (GMWI). To enter 丙, you can press [KP1][KP1][KP2][KP5][KP3][KP4][KP4][KP3] on the numeric keypad. The function of the KP0 key is similar to the function of the Space bar.
To enter the wildcard code through the numeric keypad, press the KP6 key twice.
The 6,000 Chinese characters defined in GB2312-80 are sorted according to the Pin-Yin (phonetic) representation. Each character has its own Pin-Yin representation that you can use to input the character. To use this input method, you should have basic knowledge of Putonghua (Mandarin) and Chinese pronunciation.
The Pin-Yin input method requires each character to be entered by using 1 to 6 Roman characters and one tone mark (-, /, v, \, or o).
Only single characters can be entered using the Pin-Yin input method. Term input is not supported. But you can activate Association Mode when selecting a character.
Each Chinese character has a phonetic representation that can be specified in a sequence of syllables. To enter the pronunciation, enter the syllables through the main keyboard (keys A - Z). To enter the tone marks, press the key with preassigned tone marks as defined in Table 7-26.
Tone Mark |
Symbol |
Key Label |
---|---|---|
First tone |
- |
; |
Second tone |
/ |
, |
Third tone |
v |
\ |
Fourth tone |
\ |
[ |
Light tone |
o |
] |
For example, the phonetic representation of 日 is "ri". Press [R][I].
When you invoke the Pin-Yin input method, the string 汉语拼音 is displayed in the status area. When you enter the phonetic representation, the data is displayed in the pre-edit. All characters that match the representation are displayed.
For example, when you press the A key, all characters with phonetic representations starting with "a" are displayed in the pre-edit area:
汉语拼音:a_ 1呵KSKG 2吖KUHH 3啊KBSK 4锕QBSK +
When you press the N key, all characters with phonetic representations starting with "an" are displayed:
汉语拼音:
an_ 1鞍AFPV 2桉SPVG 3厂DGT 4鹌DJNG +If the phonetic representation is invalid, the bell rings. You can correct the data by using the delete key or by pressing return to clear the data.
Note
If the phonetic representation has only one character, you must still press the 1 key to select the character.
If a Pin-Yin string matches multiple candidates, the candidates are displayed in the pre-edit area. To select one, press the corresponding numeric key. For details, see Section 7.12, 5-Stroke Input Method.
To reduce the number of candidates, you can enter a tone mark after the phonetic representation. The input method displays only those characters with the specified tone, for example, the phonetic representation of 牛 is "niu". Eight characters are displayed for selection after you press [N][I][U]:
汉语拼音:niu_ 1妞VNFG 2牛RHK 3扭RNFG 4钮QNFG +
If you press the / key after [N][I][U], there will be only one candidate for selection:
汉语拼音:
niu2_ 1牛RHKNote
If you enter a tone mark after entering a phonetic representation, you do not need to press the 1 key to select the character in the first position. The first candidate is selected automatically when you enter another phonetic representation.
Similar to the 5-Stroke input method, Association Mode is activated automatically when you select a character from the candidate list. For details, see Section 7.12, 5-Stroke Input Method.
It is possible to have multiple phonetic representations for the same character. For example, 调 can be pronounced as "diao" and "tiao". Therefore, you can enter either [D][I][A][O] or [T][I][A][O] for 调.
Approximately 20 radical characters are defined in GB2312-80. To input those characters using the Pin-Yin input method, input the phonetic representation of the first character of the radical name. For example, the radical name of 艹 is "cao zi tou" 〔草字头〕. You would enter [C][A][O].
The Qu-Wei code is the representation of Qu (row) and Wei (column) in the DEC Hanzi codeset. For example, 啊 is placed in the first column of the sixteenth row. Its Qu-Wei code is 1601. To input 啊, press [1][6][0][1].
Since each Qu-Wei code unambiguously defines one Chinese character, the Qu-Wei input method does not support term input and Association mode.
When you invoke the Qu-Wei input method the string 国标区位 is displayed in the status area. To input a Qu-Wei code, enter the code by using the numeric keys (0 - 9) on the main keyboard.
啊
is defined in the DEC GB2312 character set and its Qu-Wei code is 1601. To input 啊, enter [0][1][6][0][1] or [1][6][0][1] from the main keyboard, and press the Space bar to complete the input.The Qu-Wei codes of characters in the extended GB character set start with "1". For example, if you press [1][1][6][0][1], the user-defined character in the first column of the sixteenth row is entered.
If you make a mistake during input, you can correct the data by pressing the Delete key to erase the last key stroke, or the Return key to clear the entire code.
Telex Code is a four-digit code used to define:
It is based on the Standard Telex Code 《标准电码本》 published by the People's Republic of China. The Telex Code input method is simple and straight-forward. You can input characters, terms, or symbols by entering their corresponding Telex Code from the keyboard.
When you invoke the Telex Code input method, the string 电报码 is displayed in the status area. Use the numeric keys 0 - 9 on the main keyboard to enter the codes for characters, terms, or symbols.
Character/String |
Type |
Telex Code |
Key Sequence |
---|---|---|---|
乎 |
Character |
0039 |
[0][0][3][9] |
十六日 |
Term |
9916 |
[9][9][1][6] |
Ⅸ |
Symbol |
9949 |
[9][9][4][9] |
When you press [Ctrl/0] in the 5-Stroke, 5-Shape, or Pin-Yin mode, the string 符号 is displayed in the status area. All letters and numerals that you enter will be converted to two-byte letters and numerals.
To return to the original input mode, press [Ctrl/0] again.
If you need to work with both Simplified and traditional Chinese data, you can use DECwindows Motif to enter Simplified Chinese data with the traditional Chinese input server, and vice versa.
To set up the environment for entering Simplified Chinese data with the traditional Chinese input server, you should:
%setenv XMODIFIERS @im=DECTW
Hereafter, applications start in Simplified Chinese and are connected to the traditional Chinese input server. You can enter Simplified Chinese data using the input methods provided by the Chinese input server, such as the Tsang-Chi input method.
If you do not set this modifier and both Simplified and traditional Chinese input servers are running, a Chinese application connects to the first input server that is started.
Note
The data in the pre-edit area of the Chinese input server is displayed in Simplified Chinese.
Those Chinese characters that cannot be converted to Simplified Chinese characters, are represented by a reverse question mark. If two or more user-defined characters have the same input key sequence, two or more reverse question marks might appear near the end of the line. In that case, you should try each one to find the character you want.
You should use the UDC Manager (cedit) to define the user-defined characters and their corresponding input key sequences. Since a VT382-D terminal is a DEC Hanyu terminal, you can create an input key sequence file only under the DEC Hanyu locale. Generation of an input key sequence file under the Taiwanese EUC and BIG-5 locales is not supported in this release.
To set up the environment for entering traditional Chinese data with the Simplified Chinese input server:
%setenv XMODIFIERS @im=DECCN
Hereafter, applications start in Chinese and are connected to the Simplified Chinese input server. You can enter Chinese data using the input methods provided by the Simplified Chinese input server, such as the 5-Shape and the 5-Stroke input methods.