Subject: [comp] CCTeach software release "~{��� � �� � �~}"

From: Xiaokun Zhu <[email-masked]>
Date: 27 Aug 1993 19:39:50 +0800

Archive-name: comp/chinese-utils

向大力提倡拼形输入的高手伍盛良大师，
              帝国五笔教总护法黄鱼，
                五笔教掌门师兄李鱼，
                                      学习！

这里是，帝国五笔教妓术妆配对，新上市的软件，称为〖中文师傅〗．
我己上供到李鱼庙（ｇｒｕｍｐｙ．ｓｓｃ．ｇｏｖ）和（ｉｆｃｓｓ
．ｏｒｇ）．

〖中文师傅〗的用途是指导用户学习中文输入，它的功力覆盖国标ＧＢ
和ＢＩＧ５（台湾的ＥＴｅｎ和香港的）两种环境，支持现有的和将来
的所有输入方法．有两种套路，四种造形．

第一套隔山打牛功，从一种输入方法转换到另一种输入方法．例如从拼
音到五笔，从ＢＩＧ５内码到仓颉等．第二套想入非非功，告诉你的心
愿，〖中文师傅〗给出所有可能的答案．例如五笔的ｚ功夫．

ＧＢ和ＥＴｅｎ的ＢＩＧ５造形显示由〖中文师傅〗自动确定，用户可
在ＧＢ环境中指定ＨＺ造形显示，在ＢＩＧ５环境中指定ＨｏｎｇＫｏｎｇ
ＢＩＧ５造形．

〖中文师傅〗有ＰＣ和ｕｎｉｘ两种版本，内含三个程序，ｃｃｔｃｈ
是师傅，ｉｔ２ｄｉｃ是大师兄，ｃｚ２ｗｂ是二师兄．请〖中文师傅〗
需中文环境，如ｃｘｔｅｒｍ，ＺＷＤＯＳ，ＫＣ等．

开包ＰＣ版〖中文师傅〗：
①ｆｔｐ　ＣＣＴｅａｃｈ０９．ｚｉｐ，
②执行命令
ｐｋｕｎｚｉｐ　ＣＣＴｅａｃｈ０９
③就可开始请师傅ｃｃｔｃｈ．

开包ｕｎｉｘ版〖中文师傅〗：
①ｆｔｐ　ＣＣＴｅａｃｈ０．９．ｔａｒ．Ｚ
②执行命令
ｚｃａｔ　ＣＣＴｅａｃｈ０．９．ｔａｒ．Ｚ｜ｔａｒ　ｘｖｆ　－
ｃｄ　ＣＣＴｅａｃｈ０．９
ｍａｋｅ
③就可开始请师傅ｃｃｔｃｈ．
（ＦＡＱ：
　问：Ｒ６０００机上ｍａｋｅ异常中止．
　答：手动执行命令
      it2dic -k4 -wz < wubi.it > wubi.dic
      it2dic -k6 < tonepy.it > tonepy.dic
      it2dic -k4 -mb < etzy.it > etzy.dic
      it2dic -k5 -mb < cj.it > cj.dic
      保证外部字典＂＊．ｄｉｃ＂正确．
　）

英文版的使用说明，见ＣＣＴｅａｃｈ．ｒｅａｄｍｅ文件，中文版
下次再贴．

帝国五笔教妓术妆配对――临时工
小昆虫　　　　　　　　〖自己动手　丰衣足食〗
捅鸡⊙切她的哥⊙淫过  [email-masked] 

======================CCTeach.readme=======================
I wrote three short programs (cctch, it2dic, wb2cz) known as
Chinese Character Teacher. I have unloaded the package to 
ifcss.org /incoming (CCTeacher.readme, CCTeacher0.9.tar.Z, 
CCTeacher09.zip) and grumpy.ssc.gov (143.202.140.25)

"cctch" can help new users learn Chinese Character input method. 
It suppots Both GB and Big5 (ETen and HongKong) standard. GB interal 
code, QuWei code and Big5 (ETen and HongKong) 
interal code are integrated into "cctch", others CC input method
also are supported by external dictionary file. 
The program "it2dic" will help users convert text input
table of Chinese Character into external dictionary format.
The program "wb2cz" will help users encode Chinese Character 
Phrase with Wu Bi input method.

There are two work modes and four display modes in "cctch". The first 
is mapping a kind of CC input method to another. The second is 
supporting wildcode match in a CC input method. If you know a kind of 
CC input method, for example PinYin, You may use the first mode to 
learn some new input method, for example WuBi. If you do not know any
CC input method, but you like to learn, you may use the second mode. 
"cctch" selects automaticly GB or ETen Big5 display mode according 
to its dictionary, but user can also override to set display mode to
HZ or HongKong Big5. 

This release is beta version (0.9), but it is stable enough.
I have included four popular input dictionary  "wubi.dic", 
"tonepy.dic" based GB. and "cj.dic", "etzy.dic" based ETen Big5.
For any other input method, if you got its original text input table, 
for example "*.tit" files from cxterm packages, you can use 
program "it2dic" to convert it to dictionary format. 

"cctch" need some Chinese Character enviroment to support CC display,
for example, cxterm in X-window, ZWDOS or KC in PC, etc. 

1. FILE LIST:
	CCTeach.doc --- this file
        CCTeach09.zip --- Wu Bi tools of PC version 0.9
           it2dic.exe --- convert CC input table into dictionary format
	   cctch.exe --- CC input method Teacher
	   cz2wb.exe --- encode CC phrase with Wu Bi input method
	   README --- this file
	   wubi.dic --- Wu Bi input method dictionary
	   tonepy.dic --- Tone PiYin input method dictionary
	   cj.dic --- CJ input table
           etzy.dic --- ETZY input method dictionary 
	   wubi.it --- Wu Bi input method table
	   1000.gb --- test file GB format
	   1.cz --- test file of Ci Zu
           1.b5 --- test file of ETen big5
           1.hb5 --- test file of HongKong Big5
        CCTeach0.9.tar.Z --- Wu Bi tools of unix version 0.9
	   Makefile
	   it2dic.c --- convert CC input table into dictionary format
	   cctch.c --- CC input method Teacher
	   cz2wb.c --- encode CC phrase with Wu Bi input method
	   README --- this file
	   wubi.it --- Wu Bi input table
	   tonepy.it --- Tone PiYin input table
	   cj.it --- CJ input table
           etzy.it --- ETZY input table 
	   1000.gb --- test file GB format
	   1.cz --- test file of Ci Zu
           1.b5 --- test file of ETen Big5
           1.hb5 --- test file of HongKong Big5

2. Install:

  For PC user, pkunzip file wbtools09.zip. everything is OK!

  For unix user, 
      zcat CCTeach0.9.tar.Z | tar xvf -
      cd CCTeach0.9
      make
if you have cxterm software package, 
      cp *.dic $(HZINPUTDIR)

3. File Format:
  
   cz2wb : receive Chinese Character phrase, but ignore CC word.
           character '#' or '*' starts comments.
   it2cit: receive CC word only. The format is 
                    key CCstring 
           the same as *.tit fo cxterm packages. The comments line
           is the same as cz2wb. The dictionary of it2cit output is
             HEAD[3] ARRAY[MODE][KEY_LEN] ARRAY_A[7693][KEY_LEN]
           for GB MODE is 6768 and no ARRAY_A, for BIG5 MODE is 5401.
   cctch : output format is 
                  in_key CC out_key 
           if no multi-match, or
                  in_key CC out_key [CC out_key] ...
           If in_key or out_key is internal code, the corresponding key
           will be omitted.

4. Usage:
   
      cz2wb < 1.cz > 1.tit
in file 1.tit you get 9 lines Wu Bi Ci Zu encode table. 

      it2dit -kkey_len -wsymbol [-m[g,b,h]] < infile.it > infile.dic
where option -k defines input key length limited in [4,8]; option -w 
defnes wildcode (defaults is ?); and -m[g,b,h] g for GB, b for ETen 
Big5, h for HongKong (defaults is GB). for example,
      it2dic -k4 -wz < wubi.it > wubi.dic
      it2dic -k5 -mb < cj.it > cj.dic

      cctch -i[g,q,b,in.dic] -o[q,g,b,out.dic] [-h] [< infile] [> outfile]
where option -i is for CC input encoding method, its includes four 
selections: g for GB internal code, q for Qu Wei code, b for ETen Big 5 
internal code, and  in.dic for external dictionary. Option -o is for 
output encoding method, its  also includes four selections. Option -h is 
for displaying HZ instead of GB. 
for example,             
      cctch -ig -oq < 1000.gb 
      cctch -ig -owubi.dic < 1000.gb > 1000.wb
      cctch -ig -otonepy.py < 1000.py 
      cctch -itonepy.dic -owubi.dic
      cctch -iwubi.dic -ow 
      cctch -ib -ocj.dic < 1.b5 > 1.cj
      cctch -ib -oetzy.dic < 1.b5
      cctch -ib -ocj.dic -h < 1.hb5
      cctch -icj.dic -ob < 1.cj
      cctch -icj.dic -ow
      cctch -icj.dic -ow -h

5. CCTeach is distributed under a GNU COPYING "copyleft" license.

6. ACKNOWLEDGE

   "wubi.it" comes from "wubicizu.gb" which is writen by Yu Huang 
   ([email-masked]).

   "tonepy.it" comes from "TONEPY.tit" which is part of cxterm package,
   The authors are:
      Yongguang Zhang			Man-Chi Pong
    ([email-masked])		     ([email-masked])

   "cj.it" comes from CJ.tit and "etzy.it" from "ETZY.tit". Both of
   them are the part of "NCTU-CSIE*.tit", which are modified by
   Wei-Chung Hwang ([email-masked]) from cxterm packages.

   "1000.gb" is inputed by XiaoYu Li ([email-masked]).

   Many thanks to them.

Enjoy!

---
xiaokun Zhu ([email-masked])