comparison cWnn/manual/chap6 @ 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 ©§ £Ã£è£á£ð£ô£å£ò £¶ £Ã£Ï£Í£Í£Á£Î£Ä£Ó ©§
4 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
5 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
6
7
8 ©³©¥©¥©¥©¥©¥©¥©¥©·
9 ©§ 6.1 OVERVIEW ©§
10 ©»©¥©¥©¥©¥©¥©¥©¥©¿
11
12 This chapter gives a description of the cWnn commands and other utilities available.
13
14 cWnn Commands:
15 ©¥©¥©¥©¥©¥©¥©¥©¥
16 1. cserver - Startup of the server
17 2. cuum - Startup of the front-end processor
18 3. cwnnstat - Current usage status of the server
19 4. cwnnkill - Termination of the server
20 5. cwnntouch - Rewrite of dictionary header
21
22 cWnn Utilities:
23 ©¥©¥©¥©¥©¥©¥©¥©¥
24 5. catod - Creation of the binary form of a dictionary
25 6. cdtoa - Restoration of a dictionary to its text form
26 7. catof - Creation of the binary form of a grammar file
27 8. cwdreg - Registration of characters/words into a specified dictionary
28 9. cwddel - Deletion of characters/words from a specified dictionary
29 10. cdicsort - Sorting of a specified text format dictionary
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 - 6-1 -
51 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
52 ©§ 6.2 STARTUP OF SERVER - cserver ©§
53 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
54
55 * Description
56 cserver - To start the Chinese server.
57
58 * Default Path
59 /usr/local/bin/cWnn4/cserver
60
61 * Command Format
62 cserver [-f <file>] [-s <file>]
63
64 * Function
65 During Chinese input, cserver provides the services (such as conversion
66 services etc.) and resources (such as dictionaries, grammar files etc.),
67 required by the users (front-end processors).
68 The input environment is provided by the front-end processor(cuum), which sends
69 its request to the cserver, which subsequently performs the service and return
70 the result back to the front-end processor. Refer to the "Client-Server Model"
71 in Section 1.3.
72
73 Normally, once the system is up, fork() will be executed and the server runs as
74 a background process.
75 The startup of cserver can be set in "/etc/rc" to be executed automatically in
76 the Unix system.
77
78 When the "cserver" command is executed, all the settings in the initialization
79 file "/usr/local/lib/wnn/zh_CN/cserverrc" will be read and the corresponding
80 initialization operations will be performed.
81 Besides, all resources such as dictionaries and usage frequency files of the
82 clients will be maintained by the cserver. Refer to Section 5.3 for details
83 on "cserverrc".
84
85 If the user happens to start up cserver after it has already been started, an
86 error message will be given. Refer to Section 2.3.
87
88 * Function Options
89 -f <file> <file> is the specified initialization file for the server.
90 If this option is not specified, the default initialization
91 file "/usr/local/bin/cWnn4/cserverrc" will be read.
92
93 -s <file> <file> is the specified logfile of cserver.
94 All error messages will be directed to this specified logfile.
95 When <file> is specified as "-", (eg. cserver -s -), the
96 error messages will be sent to the standard error output.
97
98
99
100 - 6-2 -
101 * Note
102 The command options inside [ ] shown in the Command Format indicates that they
103 are optional. If they are not required, "cserver" alone is sufficient to
104 start up the Chinese server.
105
106 * Related files
107 /tmp/cd_sockV4
108
109 * Reference
110 cserverrc(5.3)
111
112
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 - 6-3 -
151 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
152 ©§ 6.3 STARTUP OF FRONT-END PROCESSOR - cuum ©§
153 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
154
155 * Description
156 cuum - To start the front-end processor
157 (Refer to Section 3.2 for details in input environment)
158
159 * Default Path
160 /usr/local/bin/cWnn4/cuum
161
162 * Command Format
163 cuum [-h/H] [-x/X]
164 [-k <uumkey_file>] [-c <convert_key_file>]
165 [-r <rk_file>] [-D <hostname>]
166 [-n <username>] [-l <number_of_lines_for_conversion_input>]
167
168 There are two more input environments: (1) Pinyin centred input enivornment
169 (2) Zhuyin centred input environment
170 These two environments can be started up by using the "-r" option of the "cuum"
171 command together with the default path of each input environment.
172 The "-r" option will be explained below. You may refer to Section 3.2 for
173 examples on starting up these two environments.
174
175 * Function
176 Once "cuum" is executed, the initialization file for the front-end processor
177 will be read from ONE of the following paths, in decreasing order:
178 (1) The file specified by the UUMRC C-Shell environment variable.
179 (2) @HOME/.uumrc
180 (3) /usr/local/lib/wnn/zh_CN/uumrc (default path)
181
182 After the initialization file is read, all the initializing operations set in
183 the file will be performed. Refer to Sections 5.4 (uumrc) and 5.5 (wnnenvrc)
184 for the initialization details.
185
186 The communication between the front-end processor(cuum) and the server(cserver)
187 is via the socket. Refer to Section 1.3 for details.
188
189 If the user happens to start up cuum after it has already been started, an
190 error message will be given. Refer to Section 2.3.
191
192
193
194
195
196
197
198
199
200 - 6-4 -
201 * Function Options
202 -H The input mode will be set to ON after the startup of cuum.
203
204 -h The input mode will be set to OFF after the startup of cuum (default).
205
206 -X During cuum startup, the flow control of tty is ON (default).
207
208 -x During cuum startup, the flow control of tty is OFF.
209
210 -k <uumkey_file>
211 Specify the keyboard definition file. If this option is not specified,
212 ONE of the following definition files will be read by default, in
213 decreasing order:
214 (1) The filename indicated by "setuumkey" in the initialization file
215 "uumrc". Refer to Sections 5.3(uumrc) and 5.6(uumkey).
216 (2) /usr/local/lib/wnn/zh_CN/uumkey
217
218 -c <convert_key_file>
219 Specify the conversion file for the keyboard input codes.
220 If this option is not specified, ONE of the following files will be
221 read by default, in decreasing order:
222 (1) The filename indicated by "setconvkey" in the initialization file
223 "uumrc" . Refer to Sections 5.3(uumrc) and 5.7(cvt_key_tbl).
224 (2) /usr/local/lib/wnn/cvt_key_tbl
225
226 -r <rk_file>
227 Specify the input mode definition file of the input automaton.
228 If this option is not specified, ONE of the following files will be
229 read by default, in decreasing order:
230 (1) The filename indicated by "setautofile" in the initialization file
231 "uumrc". Refer to Section 5.3(uumrc) and Section 7.5.
232 (2) /usr/local/lib/wnn/zh_CN/rk/mode
233
234 -l <lines>
235 Specify the number of lines for input at the front-end processor.
236 (0 < lines < window_line-1). The maximum input line is the window
237 line minus one. The default line number is 1.
238
239 -D <hostname>
240 Specify the server at another host indicated by <hostname>.
241 In this case, each user environment may be set via "setenv" in the
242 front-end processor initialization file, for example "uumrc".
243 If no <hostname> is specified, the one specified by the environment
244 variable CSERVER will be used.
245
246
247
248
249
250 - 6-5 -
251 -n <username>
252 Specify the username for the front-end processor.
253 If the <username> is not specified, the value in environment variable
254 UUMUSER will be taken as the default value. If UUMUSER is not defined,
255 the username of the current front-end processor will be taken.
256
257
258 * Note
259 - The command options inside [ ] shown in the Command Format indicates that
260 they are optional. If they are not required, "cuum" alone is sufficient to
261 start up the front-end processor.
262 - During the startup of cuum, a "pty" is required from the operating system.
263 If "pty" is unable to be obtained, cuum startup will fail.
264 Similarly, if the initialization file, input automaton definition files and
265 keyboard definition file cannot be read in, cuum startup will also fail.
266
267 * Reference
268 cserver(6.2) uumrc(5.3) wnnenvrc(5.4) uumkey(5.6) cvt_key_tbl(5.7)
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 - 6-6 -
301 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
302 ©§ 6.4 CURRENT STATUS REPORT OF SERVER - cwnnstat ©§
303 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
304
305 * Description
306 cwnnstat - To show the current status of cserver.
307
308 * Default Path
309 /usr/local/bin/cWnn4/cwnnstat
310
311 * Command Format
312 cwnnstat [-w] [-e] [-E] [-f] [-F] [-d] [-D] [-L <lang>] [<hostname>]
313
314 * Function
315 To request for the current execution status of the cserver for the current host.
316 If <hostname> is specified, the status of the that specified host will be given.
317 With the function options as shown below, different information may be obtained.
318
319 * Function Options
320 -w To list the username, hostname, socket number and the environment number.
321
322 -e To list the environment number, environment name and reference count.
323
324 -E To list the environment number, environment name, reference count, grammar
325 file number, number of dictionary used, (list of dictionary numbers) and
326 the numbers of the files used in the current environment.
327
328 -f To list the file ID of each cWnn file in the cserver, the file type, the
329 location of file, reference count and the filename.
330
331 -F Same as -f option
332
333 -d To list the dictionary number of dictionaries managed by the host, the
334 dictionary type, dictionary file number, dictionary filename, usage
335 frequency filename and usage frequency file number.
336
337 -D To list the dictionary number, type, conversion method, number of entries,
338 static/dynamic, current usage status, priority, alias, filename,
339 [(alias:usage frequency filename)], [password (frequency password)] of the
340 dictionaries.
341
342 -L To specify the language name which is referred during selection of
343 cserver. If no <lang> is specified, the one specified by the
344 environment variable LANG will be used. The default is "zh_CN".
345
346
347
348
349
350 - 6-7 -
351 * Note
352 - The command options inside [ ] shown in the Command Format indicates that they
353 are optional. If they are not required, "cwnnstat" alone is sufficient to
354 obtain the status of cserver.
355 - Dictionary number is different from file number.
356 * File number refers to the standardized number among all cWnn files.
357 * Dictionary number refers to the logical dictionary number in the server.
358 - One dictionary file may consist of different usage frequency files, and each
359 will form an individual dictionary.
360 - One dictionary file with different conversion methods (forward/reverse) will
361 form different dictionaries.
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400 - 6-8 -
401 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
402 ©§ 6.5 SERVER TERMINATION - cwnnkill ©§
403 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
404
405 * Description
406 cwnnkill - To terminate the cserver.
407
408 * Default Path
409 /usr/local/bin/cWnn4/cwnnkill
410
411 * Command Format
412 cwnnkill [-L <lang>] [<hostname>]
413
414 * Function
415 To terminate the cserver.
416 If <hostname> is given, the cserver at the specified host will be terminated.
417
418 If no <hostname> is given, "cwnnkill" will terminate the cserver of UNIX_domain.
419 This is the cserver specified in the environment variable CSERVER. If this
420 environment variable is not specified, "cwnnkill" will terminate the cserver
421 of the local machine.
422
423 If some other front-end processors are still using the cserver to be killed,
424 the current usage condition of the cserver will be shown, and termination will
425 fail. Refer to Section 2.3.
426
427 * Function Options
428 -L To specify the language name which is referred during selection of
429 cserver. If no <lang> is specified, the one specified by the
430 environment variable LANG will be used. The default is "zh_CN".
431
432
433 * Note
434 The hostname inside [ ] shown in the Command Format indicates that it is
435 optional. If this option is not required, "cwnnkill" alone is sufficient to
436 terminate the cserver.
437
438
439
440
441
442
443
444
445
446
447
448
449
450 - 6-9 -
451 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
452 ©§ 6.6 DICTIONARY HEADER UPDATE - cwnntouch ©§
453 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
454
455 * Description
456 cwnntouch - To rewrite the header of the dictionary
457
458 * Default Path
459 /usr/local/bin/cWnn4/cwnntouch
460
461 * Command Format
462 cwnntouch <dict_filename>
463
464 * Function
465 To rewrite the header of the specified dictionary. This is for matching the
466 inode of the dictionary with the inode of the file.
467
468 <dict_filename> is the filename of the binary format dictionary.
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 - 6-10 -
501 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
502 ©§ 6.7 CREATION OF DICTIONARY - catod ©§
503 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
504
505 * Description
506 catod - To convert the text format of a dictionary to binary format.
507
508 * Default Path
509 /usr/local/bin/cWnn4/catod
510
511 * Command Format
512 catod [-s <max_word>] [-R] [-r] [-e] [-S] [-U] [-P <dic_passwd>]
513 [-p <fre_passwd>] [-h <cixing_file>] <out_filename>
514
515 * Function
516 This command converts a dictionary from text format into binary format.
517 <out_filename> is the name of the binary format dictionary.
518 If <out_filename> is not given, the output will be passed to the standard
519 output device(stdout).
520
521 The input file may be piped in by using the "<" command. For example,
522 ©°©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©´
523 ©¦ catod basic.dic < basic.u ©¦
524 ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¼
525 "basic.dic" here is the output binary format dictionary, while the "basic.u"
526 is the input text format dictionary.
527
528 If the input text dictionary is not given, the input will be taken from the
529 standard input(stdin). To end the input via standard input, press ^D.
530
531 * Function Options
532 -s <max_word> To specify the maximum number of words. Default is 70000.
533
534 -R To create a dictionary for both forward and reverse
535 conversion. (Default).
536
537 -r To create a reverse format dictionary only for reverse
538 conversion.
539
540 -e If the Hanzi inside the text dictionary contains characters
541 such as space and tab, they will be compacted to special
542 format. (Default).
543
544 -S To create a static dictionary.
545
546 -U To create a dynamic dictionary.
547
548
549
550 - 6-11 -
551 -P <dic_passwd> To specify the password for the dictionary.
552 If "-N" is used instead, the password of the dictionary will
553 be set to "*".
554
555 -p <fre_passwd> To specify the password for the usage frequency file.
556 If "-n" is used instead, the password of the frequency file
557 will be set to "*".
558
559 -h <cixing_file> To specify the Cixing definition file.
560
561
562 * Note
563 - The parts in [ ] are options. They may be omitted.
564 - The Pinyin and Zhuyin dictionary has the same format.
565 - For details on the structure of a dictionary file, refer to Section 8.2.
566
567 * Reference
568 cdtoa(4.7)
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 - 6-12 -
601 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
602 ©§ 6.8 CONVERSION OF BINARY DICTIONARY TO TEXT FORMAT - cdtoa ©§
603 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
604
605 * Description
606 cdtoa - To convert the binary format of a dictionary back to text format.
607
608 * Default Path
609 /usr/local/bin/cWnn4/cdtoa
610
611 * Command Format
612 cdtoa [-n] [-s] [-z] [-e] [-E] <in_filename>
613 [-h <cixing_file>] [<usage_frequency_file>....]
614
615 * Function
616 To convert the binary format of the dictionary to text format, and output to
617 standard output (stdout).
618 <in_filename> is the name of the input binary format dictionary.
619
620 The output may be piped into a file by using the ">" command. For example,
621 ©°©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©´
622 ©¦ cdtoa dict.dic > dict.u ©¦
623 ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¼
624 "dict.u" here is the output text format dictionary, while the "dict.dic" is the
625 input binary format dictionary.
626
627 [< usage_frequency_file>....] may indicate more than one user usage frequency
628 files (for a particular user). These usage frequency information will be
629 reflected in the text format dictionary created.
630
631 * Function Options
632 -s To order the entries in text dictionary according to Pinyin or
633 Zhuyin.
634
635 -n To attach sequence numbers to the output.
636
637 -z To convert the binary format back to text format in Zhuyin.
638 (Note: default is Pinyin)
639
640 -e If the Hanzi inside the text dictionary contains characters
641 such as space and tab, they will be compacted to special
642 format. (Default)
643
644 -E If the Hanzi inside the text dictionary contains characters
645 such as space and tab, they will NOT be compacted to special
646 format.
647
648 -h <cixing_file> To specify the Cixing definition file.
649
650 - 6-13 -
651 * Note
652 - The parts in [ ] are options. They may be omitted.
653 - The Pinyin and Zhuyin dictionary has the same format.
654 - The default conversion result of the text dictionary is in Pinyin.
655
656 * Reference
657 catod(4.6)
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700 - 6-14 -
701 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
702 ©§ 6.9 CREATION OF USAGE FREQUENCY FILE - catof ©§
703 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
704
705 * Description
706 catof - To convert the text format of grammatical rules into binary format.
707
708 * Default Path
709 /usr/local/bin/cWnn4/catof
710
711 * Command Format
712 catof [-h <cixing_file>] <out_grammar_file>
713
714 * Function
715 This command converts a text file of grammatical rules into binary format.
716 <out_grammar_file> is the name of the output grammar file. If it is not
717 specified, the grammatical rules will be passed to the standard output (stdout).
718
719 * Function Options
720 -h <cixing_file> To specify the Cixing definition file.
721
722 * Note
723 - The parts in [ ] are options. They may be omitted.
724 - For details on the structure of grammar file, refer to Section 8.4.
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750 - 6-15 -
751 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
752 ©§ 6.10 REGISTRATION OF CHARACTERS/WORDS INTO A DICTIONARY - cwdreg ©§
753 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
754
755 * Description
756 cwdreg - To register characters/words into the binary format dictionary.
757
758 * Default Path
759 /usr/local/bin/cWnn4/cwdreg
760
761 * Command Format
762 cwdreg [-D <server_name>] -n <env_name> -d <dic_no> < <text_dict>
763 OR
764 cwdreg [-D <server_name>] -n <env_name> -L <filename> < <text_dict>
765
766 * Function
767 This function allows user to register characters/words into the specified
768 binary dictionary, with either dictionary number <dic_no> or dictionary
769 filename <filename> specified.
770
771 <server_name> is the machine name of the server. If this is not specified,
772 the default cserver indicated by the the environment variable CSERVER will
773 be taken.
774
775 "-n <env_name>" must be specified. <env_name> is the environment name.
776 You may execute "cwnnstat -E" to see the current environment name.
777
778 Either "-d <dic_no>" or "-L <filename>" must be specified.
779 <dic_no> is the dictionary number.
780 <filename> is the filename of the dictionary. "-L" is used for when the
781 dictionary is from the local machine.
782
783 "<" means to pipe the <text_dict> as an input to "cwdreg" command.
784
785 <text_dict> is the text file which user enters the characters/words to be
786 registered. The format of this text file must be the same as that in the
787 system text format dictionary. That is,
788 ©°©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©´
789 ©¦ Pinyin Word Cixing Frequency ©¦
790 ©¦ : : : : ©¦
791 ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¼
792 Refer to Section 8.2 for details.
793 By using "cwdreg", all the characters/words in <text_dict> will be
794 registered into the specified binary dictionary permanently.
795
796 * Note
797 - The parts in [ ] are options. They may be omitted.
798
799
800 - 6-16 -
801 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
802 ©§ 6.11 DELETION OF CHARACTERS/WORDS INTO A DICTIONARY - cwddel ©§
803 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
804
805 * Description
806 cwddel - To delete characters/words from the binary format dictionary.
807
808 * Default Path
809 /usr/local/bin/cWnn4/cwddel
810
811 * Command Format
812 cwddel [<server_name>] <env_name> <dic_no> < <text_dict>
813
814 * Function
815 This function allows user to delete characters/words from the specified
816 binary dictionary, with the dictionary number <dic_no> specified.
817
818 <server_name> is the machine name of the server. If this is not specified,
819 the default cserver indicated by the the environment variable CSERVER will
820 be taken.
821
822 <env_name> must be specified. <env_name> is the environment name.
823 You may execute "cwnnstat -E" to see the current environment name.
824
825 <dic_no> also must be specified. <dic_no> is the dictionary number.
826
827 "<" means to pipe the <text_dict> as an input to "cwddel" command.
828
829 <text_dict> is the user text file which contains the serial number of the
830 characters/words to be deleted from the binary dictionary. The serial
831 number of the characters/words can be found by using environment
832 operation "Word/character search ¼ìË÷" as described in Section 5.2.
833 By using "cwddel", all the characters/words with serial number specified
834 in <text_dict> will be deleted from the specified binary dictionary
835 permanently.
836
837 * Note
838 - The parts in [ ] are options. They may be omitted.
839
840
841
842
843
844
845
846
847
848
849
850 - 6-17 -
851 ©³©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©·
852 ©§ 6.12 DICTIONARY SORT - cdicsort ©§
853 ©»©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¥©¿
854
855 * Description
856 cdicsort - To sort the text format dictionary
857
858 * Default Path
859 /usr/local/bin/cWnn4/cdicsort
860
861 * Command Format
862 cdicsort < <text_dict>
863
864 * Function
865 This function allows user to sort the specified text format dictionary, which is
866 piped in as <text_dict>.
867 If the input text dictionary is not given, the input will be taken from the
868 standard input(stdin). To end the input via standard input, press ^D.
869
870 "<" means to pipe the <text_dict> as an input to "cdicsort" command.
871
872 <text_dict> is the text format dictionary. The format of this text file must be
873 the same as that in the system text format dictionary. That is,
874 ©°©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©´
875 ©¦ Pinyin Word Cixing Frequency ©¦
876 ©¦ : : : : ©¦
877 ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¼
878 Refer to Section 8.2 for details.
879 By using "cdicsort", all the Pinyin tuples in <text_dict> will be sorted.
880
881 The result of "cdicsort" will be output to standard output (stdout). It may
882 also be piped into a file by using the ">" command. For example,
883 ©°©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©´
884 ©¦ cdictsort < dict.u > sort_dict.u ©¦
885 ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¼
886 "dict.u" here is the input text format dictionary, while the "sort_dict.u" is
887 the sorted text format dictionary.
888
889
890
891
892
893
894
895
896
897
898
899
900 - 6-18 -
901