Simplified Chinese Solaris User's Guide

New QuanPin and New ShuangPin Input Methods

This section describes the features in the New QuanPin and New ShuangPin input methods, and how to use some of the features in the zh_CN.EUC and zh_CN.GBK locales.

PinYin is a popular input method in PRC, and there are various PinYin-based input methods. Two of them, New QuanPin and New ShuangPin, contain the following features:

These features are described in detail in the following sections.

Defining Phrases for Later Use

The following example shows how to define the phrase "ke lin dun" and store it for later use.

  1. Type the phrase kelindun without spaces.

    The New QuanPin and New ShuangPin input methods will insert spaces for you automatically.

    Graphic
  2. Type the number representing the first character you want to select.

    The following example shows the second character selected.

    Graphic
  3. Select Chinese for the second and third parts of the phrase.

    Graphic

    The new phrase is defined and added to the user dictionary file. The next time you type ke lin dun, you will see the phrase you defined in the candidate area.

    Graphic
Selecting Frequently-Used Candidates

In these input methods, candidates that have been selected are moved to the start of the list to facilitate repeated use.

  1. Type sh yi.

    Notice the order of the five available candidates.

  2. Select the fifth candidate.

    Graphic
  3. Type sh yi again.

    Graphic

    Notice that the fifth candidate has moved to the first position because you previously selected it. Frequently-used candidates are promoted for faster selection.

Other Features

Typing Long PinYin Strings

The New QuanPin input methods accepts PinYin strings up to 222 characters long. The following illustrations use the string below:


>>meiguozhongtongkelindunzhengzaitaolunhaiwanjushiwenti<<
Graphic

The result is the following Chinese string:

Graphic
Note -

The New ShuangPin input method supports up to 30-character strings.


Typing ShengMu

You can also type ShengMu only. Candidates are supplied for ShengMu, as shown in the following illustration:

Graphic

GBK Support

The zh_CN.GBK locale supports GBK by default, as shown in the following illustration:

Graphic

The second Chinese character in the following illustration is defined only in the GBK standard.

Graphic

Single GBK candidates are placed at the end of the list of candidates. Press Return to scroll to the GBK area. For easier selection next time, you can define the GBK candidate as a phrase (for more information, see "Defining Phrases for Later Use"). Once a phrase is defined, you can insert it easily.

Both New QuanPin and New ShuangPin support GBK Hanzi by default in the zh.GBK locale. However, because several Hanzi have the same ShengMu (the first part of Pinyin), New QuanPin and New ShuangPin do not display GBK candidates if you provide only the ShengMu.

For example, typing the string rong will display GBK candidates because it is a complete Pinyin string. However, typing r alone will not display any GBK candidates because it is only a ShengMu.

Keyboard Definition

Edit Keys

The following table shows the definitions of the edit keys.


Note -

The preedit line is a normal X text field.


Table 4-1 Edit Key Definitions

Key 

Definition 

[a-z] 

PinYin character. 

Home 

Moves to the start of the preedit line. 

End 

Moves to the end of the preedit line. 

Left 

Moves the caret in the preedit line to the left. If left is Hanzi, the original PinYin is recovered. 

Right 

Moves the caret in the preedit line to the right. 

Delete 

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

Backspace 

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

Page Scroll Keys

The candidates of a Pinyin string belong to the following groups:

Some Pinyin strings may have more candidates than can be displayed in the same window. In that case, use the keys described in the following table to scroll through the candidates.

Table 4-2 Page Scroll Key Definitions

Key 

Definition 

- = 

Scrolls to previous/next candidate(s) 

[ ] 

Scrolls to previous/next candidate(s) 

, . 

Scrolls to previous/next candidate(s) 

Return 

Quickly scrolls through all candidates 

Select Keys

New QuanPin and New ShuangPin use the numeric selection keys.

Separators

In accord with the national Pinyin standard, the separator (') is supported to avoid ambiguous interpretations of Pinyin strings. For example, the Pinyin string [jiang] can be interpreted as [jiang] or [ji][ang]; both are valid. In New QuanPin, however, [jiang] is interpreted only as [jiang]. You must use the separator and enter [ji'ang] for it to be interpreted as [ji] and [ang]. New ShuangPin does not require the use of separators.

Dictionary Files

New QuanPin and New ShuangPin share two dictionary files: PyCiku.dat and Ud.Ciku.dat. In the zh_CN.EUC and zh_CN.GBKlocale, the default path names are /usr/lib/im/locale/zh_CN/data/PyCiku.dat and /usr/lib/im/locale/zh_CN/data/UdCiku.dat.

Users cannot normally write to these files. However, since users can affect the way New QuanPin and New ShuangPin work through features such as frequency adjustment and user-defined phrases, it is necessary to update the dictionary files frequently.

A user's dictionary is normally located in ~/.Xlocale/PyCiku.dat or ~/.Xlocale/UdCiku.dat (~ indicates the home directory of the user who starts the htt command). When New QuanPin and New ShuangPin are started, they locate and read the dictionary files in the user's home directory. If a dictionary file is not found, the system default path is used (that is, /usr/lib/im/locale/zh_CN/...).

New ShuangPin Features

ShuangPin is an abbreviated form of QuanPin. It is faster but more difficult to use than QuanPin. New ShuangPin supports all of the features, keyboard definitions, and dictionary files of New QuanPin.

There are various ShuangPin keyboard mapping designs in PRC. The most popular three are ZiRanMa, Chinese Star, and Intelligent_ABC. The New ShuangPin input method supports all three of these keyboard mappings.

New ShuangPin Keyboard Mapping

The following tables contain keyboard mappings for the ZiRanMa, Chinese Star, and Intelligent_ABC keyboards.

Table 4-3 ZiRanMa Keyboard Mapping

Key 

Definition  

ch 

sh 

zh 

ou 

iao 

uang, iang 

en 

eng 

ang 

an 

ao 

ai 

ian 

in 

o, uo 

un 

iu 

uan, er 

iong, ong 

ue 

v, ui 

ua, ia 

ie 

uai, ing 

ei 

Table 4-4 CStar2.97 Keyboard Mapping

Key 

Definition  

ch 

sh 

zh 

ia, ua 

uan 

ao 

an 

ang 

iang, uang 

ian 

iao 

in 

ie 

iu 

o, uo 

ou 

er, ing 

en 

ai 

eng 

v, ui 

ei 

uai, ue 

iong, ong 

un 

Table 4-5 Intelligent ABC Keyboard Mapping

Key 

Definition  

ch 

sh 

zh 

ou 

in, uai 

ua, ia 

en 

eng 

ang 

an 

ao 

ai 

ue, ui 

un 

o, uo 

uan 

ei 

iu, er 

ong, iong 

uang, iang 

ian 

ie 

ing 

iao