There are two groups of input methods for entering Chinese characters on Tru64 UNIX. One group of input methods supports traditional Chinese and the other group supports simplified Chinese.
Traditional Chinese has the following input methods:
Simplified Chinese has the following input methods:
In addition to these input methods, the operating system provides the dxim, dxhanziim, and dxhanyuim input servers. The dxhanziim input server supports the simplified Chinese input methods. The dxhanyuim input server supports the traditional Chinese input methods. dxim is a menu-driven input server that allows you to configure, manage, and use both the traditional and simplified Chinese input methods. dxim also provides a Phrase input method that is separate from the operating system Phrase Utility.
This chapter describes:
You must activate traditional and simplified Chinese input methods for response to the requirements of applications that are internationalized for the Chinese language. The steps you follow to activate Chinese input methods differ for character-cell terminals, DECwindows Motif and CDE environments, and the dxim input server. The following sections describe these activation steps.
Traditional Chinese input methods for character-cell terminal applications are incorporated in Hanyu DECterm terminal emulation software. Simplified Chinese input methods for character-cell terminal applications are incorporated in the Hanzi DECterm terminal emulation software. 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 DECwindows Motif applications and are activated and deactivated using the same methods as similar applications. See Section 7.1.2 for more information.
On the LK201-C, LK201-D, LK401-C, or LK401-D keyboards, select input mode by using the [Compose] key, which is labeled 中/英. See Chapter 6 for more information on keyboards.
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.
The operating system provides a traditional Chinese input server dxhanyuim that is interoperable with all existing DECwindows Motif /Hanyu platforms, including OpenVMS DECwindows Motif /Hanyu and UWS/Hanyu. The operating system also provides a simplified Chinese input server dxhanziim that is interoperable with all existing DECwindows Motif /Hanzi platforms, including OpenVMS DECwindows Motif /Hanzi and UWS/Hanzi. Both input servers provide input method services to the R6 X library (Xlib) supported by Tru64 UNIX. You can write internationalized applications using the standard R6 application programming interface and communicate with these input servers. For details about developing internationalized software with X11R6, see Writing Software for the International Market.
Although the codesets returned by traditional and simplified Chinese input servers are fixed, Tru64 UNIX allows you to connect applications to the input servers using any valid Chinese locale. The operating system provides the required codeset conversion.
Before you can input Chinese data, you must start the appropriate 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 dxhanziim or dxhanyuim Chinese input server:
After you log into a session, start the Chinese input server as you would any other DECwindows application and select the Hanyu or Hanzi Input Method from the Applications menu of the Session Manager.
If you start up your session in one of the traditional Chinese locales, the Hanyu Input Method menu item is added to the Session Manager's Automatic Startup list by default. Likewise, if you start up your session in one of the simplified Chinese locales, the Hanzi Input Method item is added to the Session Manager's Automatic Startup list by default. When you log in, the appropriate input server starts automatically. If you do not want to auto-start the input server, use the Session Manager's Customize menu to remove this item from the Automatic Startup list.
To start the input server on a workstation, enter one of the following commands:
% /usr/bin/X11/dxhanyuim &
% /usr/bin/X11/dxhanziim &
To start the input server for the Hanyu Input Method on a remote system, enter the following command on that system:
% setenv DISPLAY
<display-name>:0
% /usr/bin/X11/dxhanyuim &
To start
the input server for the Hanzi Input Method on a remote system, enter the following
command on that system:
% setenv DISPLAY <display-name>:0
% /usr/bin/X11/dxhanziim &
In these examples, <display-name> is the display name of your workstation.
After you invoke the Chinese input server, DECwindows Motif applications that have been internationalized to support Chinese can communicate with it to obtain input method services.
Note
Applications that are started before the dxhanziim or dxhanyuim servers cannot connect to the input server. Therefore, the input method server should be the first item on the Automatic Startup list. However, if the application contains an XmText or XmTextField widget with the reconnectable resource set to True, the application is able to establish a connection with the input server if the application starts before the input server or when the application is running and the input server stops and restarts. For more information, see XmText(3X) and XmTextField(3X).
For CDE applications, Chinese input methods are implemented by input servers. Before you can input Chinese data, you must start the Chinese input server on your workstation or on any system that can be accessed by your workstation through the network.
Both English and Chinese user interfaces are provided. Make sure you set up the correct session language before you start the input server.
There are two ways to start the Chinese input servers in CDE:
If a traditional or simplified Chinese language is selected on the CDE login menu, the appropriate 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.
Enter one of the following commands to start the input server on a workstation you are using:
% /usr/bin/X11/dxhanyuim &
or
% /usr/bin/X11/dxhanziim &
Enter the following commands on a remote system to start the Hanyu Input Method server on that system:
% setenv DISPLAY <display-name>:0
% /usr/bin/X11/dxhanyuim
&
Enter the following commands on a remote system to start
the Hanzi Input Method server on that system:
%
setenv DISPLAY <display-name>:0
% /usr/bin/X11/dxhanziim &
In these examples, <display-name> is the display name of your workstation.
After you invoke the Chinese input server, the CDE applications that are internationalized to support that specified Chinese language can communicate with it to provide input method services.
Note
Applications that are started before the dxhanziim or dxhanyuim input method servers cannot connect to the input server. Therefore, the Hanyu or Hanzi Input Method should be the first item on the Automatic Startup list. However, if the application contains an XmText or XmTextField widget with the reconnectable resource set to True, the application is able to establish a connection with the input server if the application starts before the input server or when the application is running and the input server stops and restarts. For more information, see XmText(3X) and XmTextField(3X).
The Configure International Software utility (i18nconfig) is an option on the SysMan menu that you can use to select a default input method for locales, such as simplified or traditional Chinese, that support multiple input methods. To set a default input method with i18nconfig, you must be logged in as superuser and use the following steps:
To have the change take effect, log off the system then log back in.
Use the dxim input server to activate a traditional or simplified Chinese input method, which converts alphabetic keyboard entry to the appropriate Chinese characters and sends them to an X client application.
As with the dxhanziim and dxhanyuim input servers, the dxim input server is an X client process that runs on a standard X server. The dxim input server can run on any system that can access your X display device.
To run successfully, the dxim input server requires that you perform the following prerequisite steps:
Start the dxim input server as a background process with the following command:
% /usr/bin/X11/dxim &
If you want to start dxim from a remote system, log on to the remote system and enter the following command:
%
setenv DISPLAY
% /usr/bin/X11/dxim &
In the
After you activate a Chinese input method, applications that have been internationalized to support that input method can communicate with the server to obtain input method services. You must start these applications after the input server starts.
Note
Applications that are started before dxim cannot connect to the input server. However, if the application contains an XmText or XmTextField widget with the reconnectable resource set to True, the application is able to establish a connection with the input server if the application starts before the input server or when the application is running and the input server stops and restarts. For more information, see XmText(3X) and XmTextField(3X).
The dxim input server is a multilingual input server because it gives you the means to use and manage input methods for Korean, as well as traditional and simplified Chinese. This manual focuses on dxim and the Chinese input methods. For additional information on the input server, see the dxim online help.
The dxim input server menu is a single menu system divided into two functional parts; Customizing Input Method Classes and Methods and Customizing Input Method Window. The Customizing Input Method Classes and Methods menus are described in Section 7.5.1 and allow you to do the following:
The Customizing Input Method Window menus are described in Section 7.5.1.2 and allow you to do the following:
The dxim input server can support multiple clients working under different locales. When a client application connects to dxim, the input server determines the client's locale and, if compatible, uses the default input method. If the client locale is not compatible with the default, dxim searches for an active input method that is compatible. The input server uses the first compatible input method it finds.
For example, when you connect a zh_CH.dechanzi client application to dxim, the input server checks the application's locale and determines that either the simplified or traditional Chinese input method is available for use with the application. You then enter the invocation key for the Chinese input method and any keyboard input, which dxim converts and transmits to the application. If you attempt to enter the invocation key for Korean, which is inappropriate for this application, dxim ingnores it.
Systemwide default definitions for the dxim input server are stored in the resource file, /usr/lib/X11/app-defaults/DXim, and in the configuration file, /usr/i18n/share/dxim/im_modules.conf. As superuser, the system administrator can modify these files to make systemwide changes. For example, the seek order that dxim uses in its search for an input method compatible with a client's locale is defined in /usr/i18n/share/dxim/im_modules.conf and can be modified by the system administrator.
Depending on the locale, the dxim input server does not restrict an application to a single input method. For example, an application under a Unicode locale, such as zh_CN.UTF-8 can be supported by all of the Korean and Chinese input methods.
By default, a client application starts in English language input mode and, depending on which input server is active on your system (dxhanziim, dxhanyuim, or dxim), you use different key combinations to switch from English language input mode to Chinese or Phrase input mode.
The key sequences in this section can be customized by means of the dxhanziim and dxhanyuim Options menu or the dxim) Customize Input Method menu.
If the traditional or simplified Chinese input server (dxhanziim or dxhanyuim) is active on the system, select the Chinese input mode by using the key sequence shown in Table 7-1.
Terminal or Keyboard Type | Default Key Sequence |
|---|---|
DECwindows Motif | |
LK201 | [Compose/Space] |
LK401 | [Compose] |
PCXAL | [Alt/Space]
for traditional Chinese |
Table 7-2 and Table 7-3 describe 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 |
|---|---|
Intelligent ABC | [F4] |
Phrase Input 〔片语〕 | [F5] |
5-Stroke 〔五笔画〕 | [F6] |
Qu-Wei 〔国标区位码〕 | [F7] |
Pin-Yin 〔拼音〕 | [F8] |
Telex Code 〔电报码〕 | [F9] |
5-Shape 〔五笔字型〕 | [F10] |
If the dxim input server is active on your system, use the [Ctrl/Space] key sequence to shift from English language input to non-English language input. When you use [Ctrl/Space] to shift to non-English mode, keyboard character input is transmitted to dxim, which converts the input using a selected input method and transmits the converted input to the client application.
To select a traditional or simplified Chinese input method under dxim, use the appropriate key sequence from Table 7-4. Keep in mind that you do not repeat the invocation key for the input method class if you are switching input methods within that class. For example, use the [F1][F10] key sequence to invoke the 5-Shape input method under simplified Chinese, but to switch from 5-Shape to 5-Stroke within simplified Chinese, use only [F6].
Input Method Class | Input Method | Default Key Sequence |
|---|---|---|
Simplified | [F1] | |
Intelligent ABC | [F5] | |
Symbol Input (符號) | [F11] | |
5-Stroke 〔五笔画〕 | [F6] | |
Qu-Wei 〔国标区位码〕 | [F7] | |
Pin-Yin 〔拼音〕 | [F8] | |
Telex Code 〔电报码〕 | [F9] | |
5-Shape 〔五笔字型〕 | [F10] | |
Traditional | [F2] | |
Tsang-Chi (倉頡) | [F5] | |
Quick Tsang-Chi (倉頡) | [F6] | |
Symbol Input (符號) | [F8] | |
Internal Code (內碼) | [F9] | |
Phonetic (注音) | [F7] |
To select the Phrase input method, use the [F12] key.
Note
In standard Motif, the function key [F10] is defined as the accelerator of the pull-down menu bar. In DECwindows Motif, the default menu accelerator is [Ctrl/F10] and [F10] is used to invoke the Phonetic Input Method. To make your DECwindows Motif applications Motif compliant (and change [F10] from Phonetic Input Method invocation to the menu accelerator), insert the following line in your $HOME/.Xdefaults file:
*menuAccelerator: Ctrl <Key> F10:
If you change [F10] to the menu accelerator, you must change the Phonetic Input Method invocation key to another key sequence to invoke that input method.
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-5.
Region | Description |
|---|---|
Auxiliary area | An option menu that helps you customize the Chinese input methods and the input method window. |
Status area | Displays critical information about the internal state of the Chinese input methods. |
Preedit area | Displays the intermediate text that is being composed. Also displays a list of valid candidates for the input key sequences. |
The use of the input areas depends on the interaction style (or preedit style) selected for the application. The Chinese input method servers enable you to type multiple keystrokes to compose Asian characters. The process of composing characters from keystrokes is called preediting and the type of preediting used is called the interaction style.
The Chinese input server supports two interaction styles:
You can use the VendorShell resource XmNpreeditType to specify the priority of the interaction styles for DECwindows Motif applications. By default, the resource value priority order is set to "overthespot,offthespot,root,onthespot". The first style in the list is used in an input method. If that interaction style is not available, the second style in the list is use, and so on.
To set a preferred interaction style, you can do one of the following:
% dxcardfiler -xrm '*preeditType: root' &
From the Session Manager's Options menu, select Input Method...
In the popup Input Style Options window, click on one of the preedit styles
The XmNpreeditType resource is set to a priority list beginning with the preedit style that you have chosen.
From the command line, enter the following command:
% /usr/dt/bin/dtimsstart
From the dtimsstart dialog box, click on an interaction style.
Click on the Default Input Method radio button.
Click on OK. The preferences you set remain in effect until you change them.
After you choose your preferred interaction style, the applications you invoke start up with the new setting.
Keep in mind that the dxim input server supports only Root window and Off-the-Spot interaction styles. If you use an unsupported interaction style, client applications will be unable to connect to the dxim input server.
Note
Some applications, such as DECterm, may provide their own user interface to handle interaction styles. Those mechanisms may override the methods described here.
Choose the Root window interaction style (see Figure 7-1)if you want to display the preedit data in an input window that 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 preedit data in vertical or horizontal layout.
You can continue to input Chinese characters through a Chinese application window when the input window is iconized (Figure 7-2). 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 preedit data, you can double click the icon to redisplay the input window.
To display the preedit data in a fixed location of the application window, choose the Off-the-Spot interaction style (Figure 7-3). 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.
When you start a Chinese input server, no application is connected to it and the title bar displays "No Connection" in the status area.
If an application is internationalized, started in a Chinese locale, and brought to the foreground, the input state displayed in the status area and the title bar are updated accordingly. If you bring an noninternationalized application window to the foreground, the title bar of the input window changes to indicate there is no connection. (In some environments, bringing an application to the foreground is known as bringing it into focus.)
The input server can maintain an individual state of composition for different input contexts or application windows.
In addition, under the dxhanziim and dxhanyuim input servers running 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 retains the composing state and input window attributes. Thus, when you bring an application window into focus (that is, from the background to the foreground), the input server restores its original composing state and attributes. For example, if you are using an input window under the 5-Stroke Input Method, then shift focus to an input window under the Pin-Yin Input Method, when you bring the original window back in focus, the 5-Stroke Input Method will be active.
The dxim, dxhanziim, and dxhanyuim Chinese input servers have different levels and different methods of customization.
Under the dxim input server, the input window provides an options menu containing the following selections:
Under the dxhanziim and dxhanyuim input servers, the auxiliary area of the input window provides an options menu where you can customize the input server. You click on the Options button to view the customization pull-down menu.
The following sections describe the dxim, dxhanziim, and dxhanyuim customization menues. Keep in mind that each of these input servers has an extensive online help system that can provide you with details and examples of each option.
If you select Customize Class from the dxim options menu, it displays the dxim Input Method Class and Module Customization menu. This series of menus enables you to customize the following attributes:
If you select Customize Window from the dxim options menu, it displays the dxim Input Method Window Customization menu. This series of menues enables you to customize the following attributes:
If you log in as superuser to use the dxim input server customization menus, the changes you make are written to /.dxim/DXim and apply to root. If you log in as a non-root user, the changes you make are written to ~user/.dxim/DXim and apply to that user ID.
The following sections provide an overview of these menus. For a complete description of the menu options, see the dxim online help system.
The Input Method Class and Module Customization menus enable you to activate, deactivate, and customize the simplified and traditional Chinese and Phrase input method classes and input methods within those classes. Keep in mind that you must use either the OK or Apply button in conjunction with the Save Current Settings pull-down menu option to save a customized setting for use by the dxim input server.
The Customize Class menu is the primary input method customization menu. The following table briefly describes each of the Customize Class menu options. For a full description of the menu options, see the dxim input server online help.
Menu Field | Description |
|---|---|
Active Class | Displays the input method classes that are currently active on the system. Select one or more of these classes to customize or delete. |
Invocation Key | Displays the key sequence used to invoke the selected input method class. Use the checkboxes under the display to change the invocation key. |
Bell Volume Slider | A bell rings when an error is made during character composition. Drag the slider to adjust the volume of the bell. |
Options pull-down menu | Select Get System Default to reset the Customize Class menu. Select Save Current Settings to save values for use by the dxim input server. |
Add | Opens a dialog box that allows you to select and activate a currently inactive input method class. |
Delete | Deactivates a selected input method class. The class and its methods are made inactive and not available to applications. |
Customize | Opens a dialog box that allows you to activate, deactivate, and customize the input method modules associated with a selected input method class. The Customize Input Method dialog box selections are similar to the Customize Class menu selections described in this table. |
Set Default | Establishes the selected input method class as the default. |
OK | Saves the customizations to become effective the next time you start dxim. Closes the menu. |
Apply | Same as OK, except that the menu does not close. |
Cancel | Closes the menu without making any changes. |
Help | Displays help on this menu. |
The Input Method Window Customization menus enable you to modify the dxim root input window characteristics. Keep in mind that you must use either the OK or Apply button in conjunction with the Save Settings as Defaults pull-down menu option to save a customized setting for use by the dxim input server.
The Customize Window menu is the primary input window customization menu. The following table briefly describes each of the Customize Window menu options. For a full description of the menu options, see the dxim input server online help.
Menu Field | Description |
|---|---|
Big Font/Small Font | Select the font size for displaying preedit data in the dxim root input window. |
Foreground Color/Background Color | Select either foreground or background. A color mixing dialog box opens that enables you to customize the foreground or background colors of the root input window. |
Line Spacing Slider | Drag the slider to specify the line spacing, in pixels, between the preedit data text lines. |
Options pull-down menu | Select Restore System Defaults to reset the Customize Window menu. Select Save Settings as Defaults to save values for use by the dxim input server. |
OK | Saves the customizations to become effective the next time you start dxim. Closes the menu. |
Apply | Same as OK, except that the menu does not close. |
Cancel | Closes the menu without making any changes. |
Help | Displays help on this menu. |
The dxhanziim and dxhanyuim input server options menu enables you to customize the following attributes:
The following sections describe each of these menu options.
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 contents 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 contents 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 base operating system 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 LANG environment variable must be set to reflect the required codeset (for example, zh_TW.dechanyu). For details about the Phrase Utility and phrase definition file, see Using International Software in the operating system documentation set.
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 * (wildcard) option. If you choose this option, the phrase input method searches all classes of phrase definitions for the phrase code that you entered.
When there is more than one phrase that matches the phrase definition, a list box is displayed. To choose the right phrase definition, select the appropriate item in the list box.
Note
The dxim input server uses a different Phrase input method and phrase database than the operating system Phrase Utility and phrase database described in this section. See Section 7.11.1 for a description of the dxim Phrase input method.
Use the User Phrase Database option to access your private user phrase database.
The Phrase Input Method allows you to access two phrase definition databases: the system phrase database and the private user phrase database. You create and maintain your own private phrase database for storing your frequently used phrases. This is called the user phrase database.
For details about creating a phrase database, see Using International Software.
The system phrase database is for public access by all users using your system. It should be created and modified by your system administrator. Use the System Phrase Database option to access the system phrase database.
Note
The databases that you can access are the ones available on the system on which you start your Chinese input server.
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 an internationalized application input area is in the foreground. Otherwise, this option is dimmed 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:
Choose the font size for displaying preedit data. Click on either the Big Font or Small Font toggle buttons.
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 preedit 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, 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.
When you choose the Input Method Customization option, a dialog box displays in which you can customize the following attributes.
In the traditional Chinese input server, the customizable attributes are:
In the simplified Chinese input server, the customizable attributes are:
The following list describes each of the customizable attributes:
Use the Default Input Method option to choose the Chinese input method invoked by default when you activate the Chinese input server. The input methods you can choose in the traditional Chinese input server (dxhanyuim) are:
- Alphabetic
- Tsang-Chi
- Quick Tsang-chi
- Phonetic
- Internal code
- Phrase
The input methods you can choose in the simplified Chinese input server (dxhanziim) are:
- Alphabetic
- Phrase
- 5-Stroke
- Qu-Wei (Row-Column)
- Pin-Yin
- Telex Code
- 5-Shape
- Intelligent ABC
The Active Input Method option allows you to decide which input methods can be activated at run time. By default, all input methods, except for the simplified Chinese Telex input method, are active.
You use the Active Input Method list to add or remove an input method on the Active list. If you remove an input method from the Active list, you can no longer select that input method with an invocation key.
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, thus ensuring that the data that you 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.
If you choose the Input Method Customization option while running the 5-Stroke, Pin-Yin, Qu-Wei, or Telex input methods on the simplified Chinese input server, a dialog box is displayed in which you can choose the Display 5-Shape Radicals option.
When you choose the 5-Shape Radicals option, the character candidates displayed in the 5-Stroke, Pin-Yin, Qu-Wei, or Telex input methods are associated with the 5-Shape key sequences required to enter those characters in the 5-Shape Input Method.
You can use this option as an instructional tool. For example, if this option is active and you enter a character using the Pin-Yin Input Method, the resulting display provides instruction on the 5-Shape Radical sequence required to produce that same Pin-Yin character in the 5-Shape Input Method.
If you choose the Input Method Customization option while running the Intelligent ABC input method on the simplified Chinese input server, a pull-down menu is displayed in which you can automatically adjust word frequency in repeated selections and specify Bixing input in repeated selections.
These property selections are described in Basic Input Methods.
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
- Full and Half Form Alphabetic Input Method
The following choices are for dxhanyuim only:
- Tsang-chi
- Quick Tsang-chi
- Internal Code
- Phonetic
The following choices are for dxhanziim only:
- 5-Stroke
- Qu-Wei (Row-Column)
- Pin-Yin
- Telex Code
- 5-Shape
- Intelligent ABC
You customize key sequences using the interface in the bottom part of the dialog box. 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] through [F20], [Space], [Return], [Compose] and [A] through [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-6.
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 that 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 you select an invocation key sequence, 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 language mode: Half Form Alphabet and Full Form Alphabet.
The Half Form Alphabet Input Method allows you to enter uppercase and lowercase English characters, numerals, and symbols marked on the keyboard. Full Form Alphabet Input Method 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 understand the Tsang-Chi Input Method you must understand the concepts of Tsang-Chi root radicals, auxiliary forms, and character-splitting.
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 the character's shape.
Altogether 24 Tsang-Chi root radicals have been defined from 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] on the main keyboard (the [X] and [Z] keys are not defined). The following tables illustrate the classification of the root radicals, their corresponding English keys, their auxiliary forms, and the way that they are derived.
Table 7-8 is a quick reference to all of the root radical classifications.
To input a Chinese character using the Tsang-Chi Input Method, you must generate the character's Tsang-Chi code based on character decomposition. Most Chinese characters can be divided into two categories: the composite form (Table 7-9) and the connected form (Table 7-10). The composite formcan 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:
For connected character decomposition, the maximum number of radicals is four.
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 four radicals. If more than four radicals can be derived, enter the first three radicals and the last to generate the Tsang-Chi code. Table 7-11 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 one to two radicals. If more than two radicals are generated, enter the first and the last radicals.
The character body can be decomposed into one to three radicals. If it is made up of three or fewer radicals, you should enter all the radicals. If it is made up of more than three radicals that 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. Enter the first and last radicals of the subhead, and the last radical of the subbody.
Table 7-12 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 percent of Chinese characters can be decomposed according to the rules described in Composite Characters. The remaining 5 percent 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 nine 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. Table 7-13 lists the compound characters.
Difficult characters are those which are difficult to decompose in the Tsang-Chi input method. Usually, these characters are composed of some special root radicals that 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. Table 7-14 lists the difficult characters.
The rules of decomposing difficult characters are:
For example, 身 can be decomposed into 竹難竹 (HXH).
For example,齊 can be decomposed into 卜難 (YX), and 臼 can be decomposed into 竹難 (HX).
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, enter the root radicals first, before the rest of the character is entered. Table 7-15 lists the special characters.
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 preedit area, as shown in Figure 7-8. To correct the data, do one of the following:
To signal end of input, press the Return key or Space bar.
〔倉頡〕:木
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 preedit area in the following order:
The preedit area can display up to nine candidates at a time, as shown in Figure 7-9.
1 XXX 4 XXX 7 XXX →
The numbers 1, 4, and 7 divide the nine characters into three groups so that you can easily select the desired candidate. To select a character that is displayed in the preedit area, press the corresponding numeric key on the main keyboard.
When there are more than nine candidates for selection, the indicators , →,←→ and ← are displayed in the preedit area. Table 7-16 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 already entered remain in the preedit buffer. To handle the error, do one of the following:
The Quick Tsang-Chi input method, also known as the Quick input method or the Easy input method, is a variant of the Tsang-Chi input method and follows the same principles and rules for decomposing characters into radicals as described in General Rules. However, the process for entering radicals is simplified and requires only the first and the last radicals.
For example, the character 商 is decomposed into the following:
This section discusses the mechanism of the Quick Tsang-Chi input method. For details about character decomposition, see Section 7.7.
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 preedit 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 preedit 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 preedit area.
To clear the Tsang-Chi code and not select any candidate, 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, the bell indicates that there is no character for the code. The radicals you entered remain in the preedit buffer. To handle the error, you can do one of the following: