0
|
1
|
|
2 *************************************************
|
|
3 * Chapter 2 BASIC OPERATIONS *
|
|
4 *************************************************
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9 2.1 CWNN STARTUP AND TERMINATION
|
|
10 ================================
|
|
11
|
|
12 After the installation of cWnn (refer to appendix 1), the system is ready to be
|
|
13 used. First of all, the user needs to startup the server before he can use cWnn, which
|
|
14 is the client. Only one server is needed. Once the server is up, it can be shared by
|
|
15 several uum's.
|
|
16
|
|
17
|
|
18 1. Startup of Cserver
|
|
19 ~~~~~~~~~~~~~~~~~~~~~
|
|
20 To start the server, type the following command at the C-Shell prompt :
|
|
21 +------------------------------------------------------------+
|
|
22 | % cserver <CR> |
|
|
23 +------------------------------------------------------------+
|
|
24
|
|
25 The standard path of cserver is "/usr/local/bin/cWnn4/ ". If the user has not set this
|
|
26 path, he can either set the path or type the full pathname of cserver while executing
|
|
27 this command.
|
|
28
|
|
29 Once the cserver is up, all the clients are able to use it. The server will read in all
|
|
30 the necessary dictionaries and grammar files, after which the C-Shell prompt will be
|
|
31 ready to receive commands again.
|
|
32
|
|
33
|
|
34 2. Startup of cWnn
|
|
35 ~~~~~~~~~~~~~~~~~~
|
|
36 To start cWnn, type the following command at the C-Shell prompt of a Chinese window
|
|
37 ( eg. X-window and Gmw ).
|
|
38 +------------------------------------------------------------+
|
|
39 | % cuum <CR> |
|
|
40 +------------------------------------------------------------+
|
|
41
|
|
42 The standard path for cWnn is similar to that of the server, "/usr/local/bin/cWnn4/".
|
|
43 Many clients can be started at the same time on different windows, but served by the
|
|
44 same server.
|
|
45
|
|
46
|
|
47
|
|
48
|
|
49
|
|
50 - 2-1 -
|
|
51
|
|
52 During the execution of the uum command, the folloing status will apper.
|
|
53
|
|
54 +---------------------------------------------------------------+
|
|
55 | |
|
|
56 | % |
|
|
57 | [---] |
|
|
58 +---------------------------------------------------------------+
|
|
59
|
|
60
|
|
61 cWnn is now ready to be used. To enter the input mode, press <CTRL-SP>.
|
|
62 To leave the input mode, press <CTRL-SP> again.
|
|
63
|
|
64
|
|
65 3. Termination of cWnn
|
|
66 ~~~~~~~~~~~~~~~~~~~~~~
|
|
67 In order to terminate a cWnn process, type the following :
|
|
68 +------------------------------------------------------------+
|
|
69 | |
|
|
70 | % exit <CR> (or) % Ctrl + d |
|
|
71 | [---] |
|
|
72 +------------------------------------------------------------+
|
|
73
|
|
74 The server will save all the usage frequency files and dictionaries of the particular
|
|
75 client and terminate the connection between itself and that client.
|
|
76
|
|
77
|
|
78 4. Termination of cserver
|
|
79 ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
80 To terminate the server, type the following command :
|
|
81 +------------------------------------------------------------+
|
|
82 | % cwnnkill <CR> |
|
|
83 | Cserver Terminated |
|
|
84 | % |
|
|
85 +------------------------------------------------------------+
|
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
|
91
|
|
92
|
|
93
|
|
94
|
|
95
|
|
96
|
|
97
|
|
98
|
|
99
|
|
100 - 2-2 -
|
|
101 If some other clients still exist, the following message will be displayed.
|
|
102 +------------------------------------------------------------+
|
|
103 | % cwnnkill <CR> |
|
|
104 | Cserver Not Killed |
|
|
105 | % |
|
|
106 | [---] |
|
|
107 +------------------------------------------------------------+
|
|
108
|
|
109 For more details, please refer to Chapter 4.
|
|
110
|
|
111
|
|
112 Note : The <CR> at the end of the command line represents a carriage return.
|
|
113
|
|
114
|
|
115
|
|
116
|
|
117
|
|
118
|
|
119
|
|
120
|
|
121
|
|
122
|
|
123
|
|
124
|
|
125
|
|
126
|
|
127
|
|
128
|
|
129
|
|
130
|
|
131
|
|
132
|
|
133
|
|
134
|
|
135
|
|
136
|
|
137
|
|
138
|
|
139
|
|
140
|
|
141
|
|
142
|
|
143
|
|
144
|
|
145
|
|
146
|
|
147
|
|
148
|
|
149
|
|
150 - 2-3 -
|
|
151
|
|
152 2.2 STANDARD INPUT ENVIRONMENT
|
|
153 ==============================
|
|
154
|
|
155 The standard input environment of cWnn is supported by the automaton.
|
|
156
|
|
157 Standard path : /usr/local/lib/wnn/zh_CN/rk/ (default)
|
|
158
|
|
159 The following shows the input methods that are available in this environment :
|
|
160
|
|
161 Pinyin input, Zhuyin input (PF1)
|
|
162 Wubi input, Cangjie input (PF2)
|
|
163 Quanjiao input, Banjiao input (PF3)
|
|
164 Quwei input, Neima input (PF4)
|
|
165
|
|
166
|
|
167
|
|
168
|
|
169
|
|
170
|
|
171
|
|
172
|
|
173
|
|
174
|
|
175
|
|
176
|
|
177
|
|
178
|
|
179
|
|
180
|
|
181
|
|
182
|
|
183
|
|
184
|
|
185
|
|
186
|
|
187
|
|
188
|
|
189
|
|
190
|
|
191
|
|
192
|
|
193
|
|
194
|
|
195
|
|
196
|
|
197
|
|
198
|
|
199
|
|
200 - 2-4 -
|
|
201
|
|
202 2.3 PHONETIC INPUT METHOD
|
|
203 =========================
|
|
204
|
|
205 This input method makes use of the Chinese pronunciation to perform the Pinyin
|
|
206 to Chinese character conversion. We will now show how the Pinyin input method is used.
|
|
207 For details on the Pinyin-Hanzi conversion, refer to Chapter 3.
|
|
208
|
|
209 After the startup of uum, press <Ctrl-SP> to enter into the input environment.
|
|
210 The user will be able to see the prompt as shown below, after which Pinyin input is
|
|
211 possible.
|
|
212
|
|
213
|
|
214 <Table-c-2.2>
|
|
215
|
|
216
|
|
217
|
|
218 1. Keyboard Layout
|
|
219 ~~~~~~~~~~~~~~~~~~
|
|
220 The keyboard layout can be shown in the diagram below :
|
|
221 +-------------------------------------------------+
|
|
222 | PF1| PF2| PF3| PF4| PF5| PF6| PF7| PF8| PF9|PF10|
|
|
223 +-------------------------------------------------+
|
|
224 +----------------------------------------------------------+ +----++----+
|
|
225 | | |Add ||Dic |
|
|
226 | | +----++----+
|
|
227 | |+--------++--------+
|
|
228 | ||Segment ||Segment |
|
|
229 | QWERTY keyboard |+--------++--------+
|
|
230 | | +------------------+
|
|
231 | | |Previous candidate|
|
|
232 | | +------------------+
|
|
233 | | +----++----+
|
|
234 |----------+ +------| | <- || -> |
|
|
235 | Shift | | Shift| +----++----+
|
|
236 |----------+-----------------------------------------------| +--------------+
|
|
237 | Confirm | Meta | CAP | SPACE | Kana | Conversion | |Next candidate|
|
|
238 +----------------------------------------------------------+ +--------------+
|
|
239
|
|
240
|
|
241
|
|
242
|
|
243
|
|
244
|
|
245
|
|
246
|
|
247
|
|
248
|
|
249
|
|
250 - 2-5 -
|
|
251 2. The Different Types of Input Mode
|
|
252 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
253 Different input methods will have different input modes. The following input modes are
|
|
254 available in cWnn :
|
|
255
|
|
256 <Table-c-2.3>
|
|
257
|
|
258
|
|
259
|
|
260
|
|
261
|
|
262
|
|
263
|
|
264
|
|
265
|
|
266
|
|
267
|
|
268
|
|
269
|
|
270
|
|
271
|
|
272
|
|
273
|
|
274
|
|
275
|
|
276
|
|
277
|
|
278
|
|
279
|
|
280
|
|
281
|
|
282
|
|
283
|
|
284
|
|
285
|
|
286
|
|
287
|
|
288
|
|
289
|
|
290
|
|
291
|
|
292
|
|
293
|
|
294
|
|
295
|
|
296
|
|
297
|
|
298
|
|
299
|
|
300 - 2-6 -
|
|
301 <Table-c-2.4>
|
|
302
|
|
303
|
|
304
|
|
305
|
|
306
|
|
307
|
|
308
|
|
309
|
|
310
|
|
311
|
|
312 3. Toggle Among the Different Input Modes
|
|
313 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
314 * To enter or exit the uum input mode ---- <Ctrl-SP>
|
|
315
|
|
316 * To enter and toggle Pinyin input mode ---- PF1
|
|
317 Example : Quanpin, Erpin, Sanpin input methods.
|
|
318
|
|
319 * To enter and toggle Bixing input mode ---- PF2
|
|
320 Example : Wubi, Qianma input methods.
|
|
321
|
|
322 * To enter and toggle ASCII character input mode ---- PF3
|
|
323 Example : Quanjiao, Banjiao input methods.
|
|
324
|
|
325 * To enter and toggle other input modes ---- PF4
|
|
326 Example : Guobiao, Quwei, Neima input methods.
|
|
327
|
|
328
|
|
329
|
|
330
|
|
331
|
|
332
|
|
333
|
|
334
|
|
335
|
|
336
|
|
337
|
|
338
|
|
339
|
|
340
|
|
341
|
|
342
|
|
343
|
|
344
|
|
345
|
|
346
|
|
347
|
|
348
|
|
349
|
|
350 - 2-7 -
|
|
351 4. The Input Process
|
|
352 ~~~~~~~~~~~~~~~~~~~~
|
|
353
|
|
354 (a) Pinyin input method
|
|
355 ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
356 First, the user needs to enter into the required input mode. For example, enter
|
|
357 Pinyin mode through PF1.
|
|
358 The Chinese pronunciation can be entered with or without the four tones. Any
|
|
359 arbitrary length of pronunciations is allowed and user can correct his mistakes
|
|
360 by just moving the cursor to the particular position and do the correction,
|
|
361 without having to re-type the entire Pinyin string again.
|
|
362
|
|
363 The system will perform an auto-checking for the Pinyin entered, to ensure a
|
|
364 legal Pinyin input.
|
|
365
|
|
366
|
|
367 The following keys can be used to manupulate the input :
|
|
368
|
|
369 Function keys Functions
|
|
370 --------------------------------------------------------------------
|
|
371 ^F (or ->|) To move the cursor one position to the right.
|
|
372
|
|
373 ^B (or |<-) To move the cursor one position to the left.
|
|
374
|
|
375 ^D To delete the character on the cursor.
|
|
376
|
|
377 ^E To move the cursor to the end of the input string.
|
|
378
|
|
379 ^A To move the cursor to the front of the input string.
|
|
380
|
|
381 ^K To delete all the input characters from the cursor
|
|
382 position till the end of the input string.
|
|
383
|
|
384
|
|
385
|
|
386
|
|
387
|
|
388
|
|
389
|
|
390
|
|
391
|
|
392
|
|
393
|
|
394
|
|
395
|
|
396
|
|
397
|
|
398
|
|
399
|
|
400 - 2-8 -
|
|
401 (b) Pinyin-Hanzi conversion
|
|
402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
403
|
|
404 <Table-c-2.5>
|
|
405
|
|
406
|
|
407
|
|
408
|
|
409
|
|
410
|
|
411
|
|
412
|
|
413
|
|
414
|
|
415
|
|
416
|
|
417
|
|
418
|
|
419
|
|
420
|
|
421
|
|
422
|
|
423
|
|
424
|
|
425
|
|
426
|
|
427
|
|
428
|
|
429
|
|
430
|
|
431
|
|
432
|
|
433
|
|
434
|
|
435
|
|
436 (c) Conversion confirmation
|
|
437 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
438 <Table-c-2.6>
|
|
439
|
|
440
|
|
441
|
|
442
|
|
443
|
|
444
|
|
445
|
|
446
|
|
447
|
|
448
|
|
449
|
|
450 - 2-9 -
|
|
451 5. An example of Pinyin-Hanzi Conversion
|
|
452 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
453
|
|
454 <Table-c-2.7>
|
|
455
|
|
456
|
|
457
|
|
458
|
|
459
|
|
460
|
|
461
|
|
462
|
|
463
|
|
464
|
|
465
|
|
466
|
|
467
|
|
468
|
|
469
|
|
470
|
|
471
|
|
472
|
|
473
|
|
474
|
|
475
|
|
476
|
|
477
|
|
478
|
|
479
|
|
480
|
|
481
|
|
482
|
|
483
|
|
484
|
|
485
|
|
486
|
|
487
|
|
488
|
|
489
|
|
490
|
|
491
|
|
492
|
|
493
|
|
494
|
|
495
|
|
496
|
|
497
|
|
498
|
|
499
|
|
500 - 2-10 -
|
|
501
|
|
502 2.4 OTHER INPUT METHODS
|
|
503 =======================
|
|
504
|
|
505 Besides Pinyin input method, cWnn provides other methods to input Chinese.
|
|
506
|
|
507 1. Encoded Input Method (Bianma Input Method)
|
|
508 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
509 To input a Chinese character, the user needs to input according to the components
|
|
510 of the character. Currently, a few hundred types of Bianma input methods have been
|
|
511 developed. cWnn provides the commonly used methods such as Wubi and Qianma. However,
|
|
512 being system independent, any input method can be installed easily into cWnn. To input
|
|
513 via Wubi or Qianma method, just enter into the respective input mode using the function
|
|
514 keys.
|
|
515
|
|
516 (a) Wubi input method This method uses up to four keys to represent one Chinese
|
|
517 character, and each key represents one component of the
|
|
518 character. Once the four components are entered, the
|
|
519 system automatically performs the conversion to Hanzi.
|
|
520 If components do not correspond to a Chinese character,
|
|
521 the input will be cancelled automatically.
|
|
522
|
|
523 If the Chinese character requires less than four keys,
|
|
524 the input can be completed by pressing the space bar.
|
|
525
|
|
526 When the user is uncertain of the components of the
|
|
527 Chinese character, he can enter "?" or "z" as a wildcard
|
|
528 to select all the possible characters. The way to select
|
|
529 the correct candidate is similar to Pinyin input method.
|
|
530
|
|
531 (b) Qianma input method This method uses three keys to represent one Chinese
|
|
532 character, and each key represents one component of the
|
|
533 character. Once the three components are entered, the
|
|
534 system automatically perform the conversion to Hanzi. If
|
|
535 the components do not correspond to a Chinese character,
|
|
536 the input will be cancelled automatically.
|
|
537
|
|
538 If the Chinese character requires less than three keys,
|
|
539 the input can be completed by pressing the space bar.
|
|
540
|
|
541 When the user is uncertain of the components of the
|
|
542 Chinese character, he can enter "?" or "z" as a wildcard
|
|
543 to select all the possible characters.
|
|
544 The way to select the correct candidate is similar to
|
|
545 Pinyin input method.
|
|
546
|
|
547
|
|
548
|
|
549
|
|
550 - 2-11 -
|
|
551 <Table-c-2.8>
|
|
552
|
|
553
|
|
554
|
|
555
|
|
556
|
|
557
|
|
558
|
|
559
|
|
560
|
|
561
|
|
562
|
|
563
|
|
564
|
|
565
|
|
566
|
|
567
|
|
568
|
|
569
|
|
570
|
|
571
|
|
572
|
|
573
|
|
574
|
|
575
|
|
576
|
|
577
|
|
578
|
|
579
|
|
580
|
|
581
|
|
582
|
|
583
|
|
584
|
|
585
|
|
586
|
|
587
|
|
588
|
|
589
|
|
590
|
|
591
|
|
592
|
|
593
|
|
594
|
|
595
|
|
596
|
|
597
|
|
598
|
|
599
|
|
600 - 2-12 -
|