Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Previous Previous     Contents     Index     Next Next

Typing ShengMu

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

GBK Support

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

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

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:

  • G1 - Highest frequency Hanzi + Long (3 or more) Cizu + Double Chinese Cizu

  • G2 - GB Single Hanzi

  • G3 - GBK Single Hanzi (in the zh_CN.GBK locale)

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

i

ch

u

sh

v

zh

a

a

b

ou

c

iao

d

uang, iang

e

e

f

en

g

eng

h

ang

i

i

j

an

k

ao

l

ai

m

ian

n

in

o

o, uo

p

un

q

iu

r

uan, er

s

iong, ong

t

ue

u

u

v

v, ui

w

ua, ia

x

ie

y

uai, ing

z

ei

Table 4-4 CStar2.97 Keyboard Mapping

Key

Definition

u

ch

i

sh

v

zh

a

a

b

ia, ua

c

uan

d

ao

e

e

f

an

g

ang

h

iang, uang

i

i

j

ian

k

iao

l

in

m

ie

n

iu

o

o, uo

p

ou

q

er, ing

r

en

s

ai

t

eng

u

u

v

v, ui

w

ei

x

uai, ue

y

iong, ong

z

un

Previous Previous     Contents     Index     Next Next