comparison cWnn/manual.en/app @ 0:bbc77ca4def5

initial import
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 13 Dec 2007 04:30:14 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bbc77ca4def5
1
2 *************************************************
3 * Appendix 1 CWNN INSTALLATION *
4 *************************************************
5
6
7
8
9 1. Introduction of cWnn System
10 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11
12 cWnn is an integrated Chinese Input System which adopts the Server-Client Model.
13 "cserver" is the server which represents the Chinese Server. The client that uses the
14 server is called "cuum".
15
16 All the files which are installed in the cWnn system are listed in the table
17 below. Only directories (1) and (2) are necessary to run cWnn. Directory (1) contains
18 all the cWnn commands and tools. Directory (2) contains the environment files of cWnn.
19 It mainly consists of input automaton, definitions of convert keys, dictionaries and
20 definitions of client environments.
21
22 For more details on the commands and data files, please refer to
23 "USER'S MANUAL OF THE CHINESE INPUT SYSTEM CWNN".
24
25 Directories (3) and (4) contain the Chinese font files for X-window and GMW.
26 If you already have the fonts, you need not load them in. Both 16x16 dot and 24x24 dot
27 fonts are available.
28
29 Directory (5) contains some include files defined in cWnn. Directory (6)
30 contains the cWnn library files. Users can develop applications using the contents
31 under directories (5) and (6). For details on (5) and (6), please refer to
32 "PROGRAMMER'S MANUAL OF CHINESE INPUT SYSTEM CWNN".
33
34 +---------------------------------------------------------------+
35 | No. | Content | Standard Path (default) | Memory Size|
36 |------+----------------+--------------------------+------------|
37 | (1) | bin | /usr/local/bin/cWnn4/ | 1.1 MB |
38 |------+----------------+--------------------------+------------|
39 | (2) | environment | /usr/local/lib/wnn/zh_CN/| 2.5 MB |
40 |------+----------------+--------------------------+------------|
41 | (3) | X-window font | /usr/lib/X11/fonts/misc/ | 2.0 MB |
42 |------+----------------+--------------------------+------------|
43 | (4) | GMW font | /usr/lib/gmw/font/ | 0.9 MB |
44 |------+----------------+--------------------------+------------|
45 | (5) | cWnn include | /usr/include/cwnn/ | 0.045 MB |
46 |------+----------------+--------------------------+------------|
47 | (6) | cWnn library | /usr/lib/ | 0.26 MB |
48 |---------------------------------------------------------------+
49
50 - A-1 -
51 2. Procedure for Installing cWnn
52 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53
54 (1) Create a working directory
55
56 +------------------------------------------------------+
57 | % mkdir /tmp/tmp <CR> |
58 +------------------------------------------------------+
59
60 (2) Change directory to the working directory
61
62 +------------------------------------------------------+
63 | % cd /tmp/tmp <CR> |
64 +------------------------------------------------------+
65
66 (3) Read in the install program
67
68 Insert the installation tape into the streamer drive and read in the install
69 program using the "tar" command.
70
71 +------------------------------------------------------+
72 | % tar xvof /dev/st0 install <CR> |
73 +------------------------------------------------------+
74
75 (4) Change to superuser
76
77 +------------------------------------------------------+
78 | % su <CR> |
79 | # |
80 +------------------------------------------------------+
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100 - A-2 -
101 (5) Execute the install program
102
103 +------------------------------------------------------+
104 | # ./install <CR> |
105 +------------------------------------------------------+
106
107 (6) During the installation, some questions will be asked for user's confirmation.
108
109 +---------------------------------------------------------------------------+
110 | |
111 | cWnn ------ Chinese Input System |
112 | |
113 | Install Program |
114 | |
115 | version 1.0 |
116 | |
117 | > cWnn will be installed directly from tape into system. |
118 | |
119 | > Please answer following questions. |
120 | If you type [RETURN] to the question, it will be regarded as default. |
121 | |
122 | > Do you want to continue(*/n)? y <CR> |
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 - A-3 -
151 (7) The system status will be displayed and some user interactions are required.
152
153 +---------------------------------------------------------------------------+
154 | |
155 | > Your disk free: |
156 | . |
157 | . |
158 | . |
159 | |
160 | > cWnn disk usage: |
161 | ([...] means you can choose other disks instead of /usr) |
162 | |
163 | 1. bin (1.1MB) [/usr/local/bin/cWnn4] |
164 | 2. environment (2.5MB) [/usr/local/lib/wnn/zh_CN] |
165 | 3. X-fonts (2.0MB) /usr/lib/X11/fonts/misc |
166 | 4. GMW-fonts (0.9MB) /usr/lib/gmw/font |
167 | 5. include (0.045MB) /usr/include/cwnn |
168 | 6. lib (0.26MB) /usr/lib/ |
169 | |
170 | > Where to set bin directory [/usr/local/bin/cWnn4] ? <CR> (*) |
171 | ~~~~ |
172 | > Where to set environments directory [/usr/local/lib/wnn/zh_CN]?<CR>(**)|
173 | ~~~~~ |
174 | > Do you use X-window(*/n)? y <CR> |
175 | ~ ~~~~ |
176 | > Do you use GMW-window(*/n)? y <CR> |
177 | ~ ~~~~ |
178 | > Begin to install files from install tape: |
179 | |
180 | . |
181 | . |
182 | . |
183 | > Installation completed |
184 | |
185 | > If you use X-window, please make font alias by yourself. |
186 | then, you can login by your user name and open a Chinese window, |
187 | run cserver and run the client module cuum. |
188 | |
189 | # |
190 +---------------------------------------------------------------------------+
191
192
193
194
195
196
197
198
199
200 - A-4 -
201 (8) If you use X-window, please make the font alias as follows :
202
203 - If your X-window system is R3, you must add the following 6 lines to
204
205 /usr/lib/X11/fonts/misc/fonts.dir
206
207 - If your X-window system is R4, you must add the following 6 lines to
208
209 /usr/lib/X11/fonts/misc/fonts.alias
210
211 +-------------------------------------------------------+
212 | chasc-16.snf chasc-16 |
213 | chkan-16.snf chkan-16 |
214 | chkana-16.snf chkana-16 |
215 | chasc-24.snf chasc-24 |
216 | chkan-24.snf chkan-24 |
217 | chkana-24.snf chkana-24 |
218 +-------------------------------------------------------+
219
220
221 (9) End of installation
222
223 (*) If the directory which you set for bin exists, install program will ask the
224 following question.
225
226 +--------------------------------------------------------------------+
227 | > I will remove $BIN and remake it, if it exists. OK(*/n)? y <CR> |
228 | ~ ~~~~ |
229 +--------------------------------------------------------------------+
230
231 Check the bin directory, and answer yes or no.
232
233 (**) If the directory which you set for cWnn environment exists, install
234 program will ask the following question.
235
236 +--------------------------------------------------------------------+
237 | > I will remove $LIB and remake it, if it exists. OK(*/n)? y <CR> |
238 | ~ ~~~~ |
239 +--------------------------------------------------------------------+
240
241 Check the environment directory, and answer yes or no.
242
243
244 Note: In this manual, symbol "%" and "#" are the prompts for C shell and
245 Bourne shell respectively.
246 "<CR>" refers to the return key.
247 Underlined characters are the user's input.
248
249
250 - A-5 -
251
252 *************************************************
253 * Appendix 2 PINYIN/ZHUYIN *
254 * DEFINITION TABLE *
255 *************************************************
256
257
258
259 Pinyin and Zhuyin are both external representations of Chinese pronunciation.
260 These external representations of Chinese pronunciation are made up English alphabets
261 that are used in Hanyu Pinyin as well as characters defined in cWnn for the input of
262 Pinyin and Zhuyin.
263
264 The structures of Pinyin and Zhuyin follow certain rules given below. The
265 following are the definitions of Pinyin and Zhuyin in the cWnn system.
266
267 (1) Construction of Pinyin -- In accordance to Xinhua dictionary.
268 (2) Construction of Zhuyin -- In accordance to Xinhua dictionary and conforms in
269 representation with dictionaries commonly used in
270 Taiwan.
271 (3) Initial Pinyin character -- For a Pinyin that contains a consonant, the first
272 character is in upper case, and the subsequent
273 characters are in lower case.
274 If a Pinyin does not begin with a consonant, only
275 lower case characters are used.
276 (4) Input using Pinyin can only be done in Pinyin mode, and input using Zhuyin can
277 only be done in Zhuyin mode.
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300 - A-6 -
301 (0) External Representation of Characters
302 <Table-a-2.1>
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350 - A-7 -
351 (1) Pinyin Definition Table
352 +-----------------------------------------------------------------------+
353 | 1 a Cui Guai Kua N Qing Suan Yin |
354 | 2 ai Cun Guan Kuai Na Qiong Sui Ying |
355 | 3 an Cuo Guang Kuan Nai Qiu Sun Yo |
356 | 4 ang Da Gui Kuang Nan Qu Suo Yong |
357 | 5 ao Dai Gun Kui Nang Quan Ta You |
358 | 6 Ba Dan Guo Kun Nao Que Tai Yu |
359 | 7 Bai Dang Ha Kuo Ne Qun Tan Yuan |
360 | 8 Ban Dao Hai La Nei Ran Tang Yue |
361 | 9 Bang De Han Lai Nen Rang Tao Yun |
362 | 10 Bao Dei Hang Lan Neng Rao Te Za |
363 | 11 Bei Den Hao Lang Ng Re Tei Zai |
364 | 12 Ben Deng He Lao Ni Ren Teng Zan |
365 | 13 Beng Di Hei Le Nia Reng Ti Zang |
366 | 14 Bi Dia Hen Lei Nian Ri Tian Zao |
367 | 15 Bian Dian Heng Leng Niang Rong Tiao Ze |
368 | 16 Biao Diao Hm Li Niao Rou Tie Zei |
369 | 16 Bie Die Hng Lia Nie Ru Ting Zen |
370 | 18 Bin Ding Hong Lian Nin Rua Tong Zeng |
371 | 19 Bing Diu Hou Liang Ning Ruan Tou Zha |
372 | 20 Bo Dong Hu Liao Niu Rui Tu Zhai |
373 | 21 Bu Dou Hua Lie Nong Run Tuan Zhan |
374 | 22 Ca Du Huai Lin Nou Ruo Tui Zhang |
375 | 23 Cai Duan Huan Ling Nu Sa Tun Zhao |
376 | 24 Can Dui Huang Liu Nuan Sai Tuo Zhe |
377 | 25 Cang Dun Hui Lo Nuo San Wa Zhei |
378 | 26 Cao Duo Hun Long NŽ¹ Sang Wai Zhen |
379 | 27 Ce e Huo Lou NŽ¹e Sao Wan Zheng |
380 | 28 Cen ei Ji Lu o Se Wang Zhi |
381 | 29 Ceng en Jia Luan ou Sen Wei Zhong |
382 | 30 Cha eng Jian Lun Pa Seng Wen Zhou |
383 | 31 Chai er Jiang Luo Pai Sha Weng Zhu |
384 | 32 Chan Fa Jiao LŽ¹ Pan Shai Wo Zhua |
385 | 33 Chang Fan Jie LŽ¹e Pang Shan Wu Zhuai |
386 | 34 Chao Fang Jin M Pao Shang Xi Zhuan |
387 | 35 Che Fei Jing Ma Pei Shao Xia Zhuang |
388 | 36 Chen Fen Jiong Mai Pen She Xian Zhui |
389 | 37 Cheng Feng Jiu Man Peng Shei Xiang Zhun |
390 | 38 Chi Fo Ju Mang Pi Shen Xiao Zhuo |
391 | 39 Chong Fou Juan Mao Pian Sheng Xie Zi |
392 | 40 Chou Fu Jue Me Piao Shi Xin Zong |
393 +-----------------------------------------------------------------------+
394
395
396
397
398
399
400 - A-8 -
401 +-----------------------------------------------------------------------+
402 | 41 Chu Ga Jun Mei Pie Shou Xing Zou |
403 | 42 Chua Gai Ka Men Pin Shu Xiong Zu |
404 | 43 Chuai Gan Kai Meng Ping Shua Xiu Zuan |
405 | 44 Chuan Gang Kan Mi Po Shuai Xu Zui |
406 | 45 Chuang Gao Kang Mian Pou Shuan Xuan Zun |
407 | 46 Chui Ge Kao Miao Pu Shuang Xue Zuo |
408 | 47 Chun Gei Ke Mie Qi Shui Xun |
409 | 48 Chuo Gen Kei Min Qia Shun Ya |
410 | 49 Ci Geng Ken Ming Qian Shuo Yan |
411 | 50 Cong Gong Keng Miu Qiang Si Yang |
412 | 51 Cou Gou Kong Mo Qiao Song Yao |
413 | 52 Cu Gu Kou Mou Qie Sou Ye |
414 | 53 Cuan Gua Ku Mu Qin Su Yi |
415 +-----------------------------------------------------------------------+
416
417
418 (2) Zhuyin Definition Table
419 <Table-a-2.2>
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450 - A-9 -
451 <Table-a-2.3>
452
453
454
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 - A-10 -
501
502 *************************************************
503 * Appendix 3 ERPIN KEYBOARD *
504 * LAYOUT TABLES *
505 *************************************************
506
507
508
509 Erpin is also known as Shuangpin, which uses two keys to input a Pinyin. The
510 Erpin input in cWnn is defined in the input automaton. Any Erpin input method can be
511 defined in cWnn. There are many ways of arranging the keyboard layout for Erpin. Two
512 common Erpin keyboard arrangements are provided by cWnn. The two keyboard arrangement
513 tables are shown below.
514
515 1. Guangming Ribao Erpin Table
516
517 <Table-a-3.1>
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550 - A-11 -
551 <Table-a-3.2>
552
553
554
555
556
557
558
559
560 2. Puji Hanzi Conversion System (PJY) Erpin Table
561 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
562
563 Input consonants using the corresponding alphabets. The three consonants, "Ch",
564 "Sh" and "Zh" are input using "E", "A" and "V" respectively. Pinyin which has no vowels
565 uses "O" as the first key.
566
567 <Table-a-3.3>
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 - A-12 -
601
602 *************************************************
603 * Appendix 4 ZHUYIN KEYBIARD *
604 * LAYOUT TABLE *
605 *************************************************
606
607
608
609 Zhuyin was used before Pinyin is introduced. It is now commonly used in Taiwan
610 and Hong Kong.
611
612 Zhuyin characters are not found on the standard keyboard. In order to input
613 Zhuyin, each key has to be defined on the standard keyboard. There are several Zhuyin
614 keyboard arrangements. cWnn provides two arrangements which are commonly used in Taiwan
615
616 -- (1) Yitian arrangement
617 -- (2) Xiyong arrangement
618
619 The two keyboard arrangement tables are shown below.
620
621 Note that the consonants and vowels of Pinyin and Zhuyin are different.
622 However, user is able to input both Pinyin and Zhuyin using the front-end processor
623 "cuum".
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650 - A-13 -
651 1. Zhuyin Arrangement Table (Yitian)
652 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
653
654 a. Consonants Table
655
656 <Table-a-4.1>
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675 b. Vowels Table
676
677 <Table-a-4.2>
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700 - A-14 -
701 2. Zhuyin Arrangement Table (Xiyong)
702 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
703
704 a. Consonants Table
705
706 < Table-a-4.3>
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727 b. Vowels Table
728
729 <Table-a-4.4>
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750 - A-15 -
751
752 *************************************************
753 * Appendix 5 STANDARD FUNCTION *
754 * KEYS DEFINITION *
755 *************************************************
756
757
758
759 The Definition of Standard Function Keys
760 +---------------------------------------------------------------------------+
761 | Function Key | Input State | Edit State | Env Op State |
762 |------------------+----------------------+--------------+------------------|
763 |Activate Pinyin | Standard Pinyin | <- | <- |
764 |mode PF1 | Input | | |
765 |------------------+----------------------+--------------+------------------|
766 |Activate Bianma | Wubi / Cangjie / | <- | <- |
767 |mode PF2 | Qianma | | |
768 |------------------+----------------------+--------------+------------------|
769 |Quanjiao / | Quanjiao / Banjiao| <- | <- |
770 |Banjiao PF3 | | | |
771 |------------------+----------------------+--------------+------------------|
772 |Guobiao / Quwei / | Guobiao / Quwei / | <- | <- |
773 |Neima PF4 | Neima | | |
774 |------------------+----------------------+--------------+------------------|
775 |Keyboard | Options | <- | <- |
776 |Arrangement PF5 | | | |
777 |------------------+----------------------+--------------+------------------|
778 |Environment | Environment | <- | <- |
779 |Operations PF6 | operations | | |
780 |------------------+----------------------+--------------+------------------|
781 |Cancel PF10| Cancel environment| <- | <- |
782 | | operations | | |
783 |------------------+----------------------+--------------+------------------|
784 |Conversion Key ^W | Conversion | Extract | - |
785 | | | candidates | |
786 |------------------+----------------------+--------------+------------------|
787 |Phrase ^Z | Phrase | Extract | - |
788 |Conversion | conversion | phrase | |
789 | | | candidates | |
790 |------------------+----------------------+--------------+------------------|
791 |Confirm Key ^L | -> | Confirm | - |
792 | | | | |
793 |------------------+----------------------+--------------+------------------|
794 | -> ^F | Move cursor to | Move a word | Move cursor |
795 | | the right | to the right | to the right |
796 |------------------+----------------------+--------------+------------------|
797 | <- ^B | Move cursor to | Move a word | Move cursor |
798 | | the left | to the left | to the left |
799 +---------------------------------------------------------------------------+
800 - A-16 -
801 +---------------------------------------------------------------------------+
802 | Function Key | Input State | Edit State | Env Op State |
803 |------------------+----------------------+--------------+------------------|
804 | ^ ^P | Extract previous | Extract | Return to |
805 | | | memory contents | previous | previous |
806 | | | candidates | menu |
807 |------------------+----------------------+--------------+------------------|
808 | | ^N | Extract next | Extract | Go to next |
809 | V | memory contents | next | menu |
810 | | | candidates | |
811 |------------------+----------------------+--------------+------------------|
812 |Delete ^D | Delete a character| - | Delete a |
813 | | | | character |
814 |------------------+----------------------+--------------+------------------|
815 | ->| ^E | Move to right end | <- | <- |
816 | | | | |
817 |------------------+----------------------+--------------+------------------|
818 | |<- ^A | Move to left end | <- | <- |
819 | | | | |
820 |------------------+----------------------+--------------+------------------|
821 | ->| ^K | Remove contents | To undo the | - |
822 | | after cursor | conversion | |
823 |------------------+----------------------+--------------+------------------|
824 | Segmentation-> ^O| - | Increase by | - |
825 | | | a character | |
826 |------------------+----------------------+--------------+------------------|
827 | Segmentation<- ^I| - | Decrease by | - |
828 | | | a character | |
829 |------------------+----------------------+--------------+------------------|
830 | Cancel ^G | - | Extract | Quit |
831 | | | candidates | dictionary |
832 |------------------+----------------------+--------------+------------------|
833 | Reverse ^C | Reverse | Enter input | - |
834 | Conversion | conversion | mode | |
835 |------------------+----------------------+--------------+------------------|
836 | ^@ ^SP | Toggle conversion | <- | <- |
837 | | on/off | | |
838 +---------------------------------------------------------------------------+
839
840
841
842
843
844
845
846
847
848
849
850 - A-17 -
851
852 *****************************************
853 * Appendix 6 BIANMA INPUT *
854 * DEFINITION *
855 *****************************************
856
857
858
859 Example
860 ~~~~~~~
861
862 1. Mode Definition Table (mode)
863 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
864
865 <Table-a-6.1>
866
867
868
869
870 2. Initial Mapping Table (1B_TOLOWER)
871 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
872
873 (defvar up (all))
874 (up) (tolower(up))
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900 - A-18 -
901 3. Intermediate Mapping Table (2B_WuBi)
902 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
903
904 (defvar str (list 0 1 2 3 4 5 6 7 8 9 ? \
905 a b c d e f g h i j k l m n o p q r s t u v w x y z))
906
907 <Table-a-6.2>
908
909
910
911
912
913
914
915
916
917
918
919 (if strk1)'R' '\x08''\x08' 'S' ; 'R': back_space
920 (if strk2)'R' '\x08' 'S' ;
921 (if strk3)'R' '\x08' 'S' ;
922 (if strk0)'R' '\x08'
923 (if strk3)'S' (off strk3)(on strk2)
924 (if strk2)'S' (off strk2)(on strk1)
925 (if strk1)'S' (off strk1)(on strk0)
926
927 (unless strk0)'\x20' '\x9E' 'T' ; 0x89: Tan Transfer
928 ; 0x20: space key
929 '\x9f' '\x9f' 'T' ; 0x9f: Certification
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950 - A-19 -