Welcome to the Zhongwen locker! If you are using this software, then it is a good idea to add yourself to the "athena-chinese" mailing list, which contains discussions on Chinese computing on the Athena Computing Environment. You can do so on Athena by typing: athena% blanche athena-chinese -a $user ---------------------------------------------------------------------- To use the programs in this locker, you should first run: athena% add zhongwen STARTING A CHINESE XTERM To get a Chinese xterm, you can just do one of: To run cxterm with GB encoding, type: CXterm -gb & with Big5, type: CXterm -big5 & with Japanese (JIS), type: CXterm -jis & with Korean (KS), type: CXterm -ks & Keep in mind that the CXterm will easily display characters when you view them with a program such as "more", "less", or "cat" -- but when you try to directly type a Chinese character in at the command-line, you will get gibberish. You should either be directing your input to file with: cat > filename or you should edit a file with "celvis", "joe", "jpico", or "jmacs" (all are available in the zhongwen locker). There is some tutorial documentation in /mit/zhongwen/doc/cxterm which might be useful to read. READING CHINESE FILES Inside a cxterm, you can use the utility "less" to read files encoded in GB format. You can also use the standard "more" program to read files as well. To read files in BIG5 format in a cxterm try: athena% b2g < file.big5 The g2b utility is also available to convert from GB encoding to BIG5: athena% g2b < file.gb READING CHINESE TEXT IN A SEPARATE WINDOW Before running xhzview, you will need to add the Chinese fonts to your server. If you have already run "CXterm" you don't need to do this, but otherwise, just type: athena% xset fp+ /mit/zhongwen/lib/fonts If you are running on a non-MIT AFS site, use the directory path /afs/sipb.mit.edu/project/zhongwen/lib/fonts instead. To read Chinese text encoded in GuoBiao, just use: athena% xhzview It will take a short while to load the fonts, since there are many of them, and they are quite large. To use traditional characters instead of simplified ones try: athena% xhzview -cfn txian16 -afn 8x18 PRINTING CHINESE FILES You can use the "gb2ps" program to print GB and HZ encoded files. Just do: athena% gb2ps file.gb file.ps athena% lpr -Pprintername file.ps For help, you can just type: athena% gb2ps -h CONVERTING A CHINESE XTERM TO A DIFFERENT ENCODING The hztty utility allows you to use GB on a BIG5 cxterm, or vice versa. In the cxterm, type "hztty". If sucessful, you will see "[hztty start]" and then the new shell prompt. To exit hztty, exit the second shell. Typically, "hztty" can be used for these purposes: To use HZ or a GB cxterm or other GB terminal (e.g., via modem communication on Chinese DOS, TwinBridge, etc.): athena% hztty -I gb2hz -O hz2gb To use GB on a Big5 cxterm or other Big5 terminal (e.g. on ETen DOS): athena% hztty -I big2gb -O gb2big To use Big5 on GB cxterm or terminal: athena% hztty -I gb2big -O big2gb To use HZ or GB on a Big5 cxterm: athena% hztty -I big2gb:gb2hz -O hz2gb:gb2big To use Unicode UTF8 on a GB cxterm: athena% hztty -I gb2uni:uni-utf -O utf-uni:uni2gb To use Unicode UTF7 on a Big5 cxterm: athena% hztty -I big2uni:uni-utf7 -O utf7-uni:uni2big To emulate a real unicode terminal on GB cxterm: athena% hztty -I gb2uni -O uni2gb All combinations are possible, just type "hztty -h" for the list of supported modules. USING A CHINESE EDITOR The Chinese versions of "elvis" and "joe" are available for your use. Just edit in them as you would in standard vi or joe. There is a multi-lingual version of Emacs available in the "babel" locker as well by the name of "mule". USING A CHINESE "TALK" PROGRAM A version of ytalk which supports multi-byte characters (and hence Chinese) is available as "cytalk". It is functionally similar to ytalk. -------------------------------------------------------------------- Please be patient as I add (and test) programs to the zhongwen locker. Thank you! -William (wchuang@mit.edu)