This is the EHZ 2.0 package, which replaces EHZ 1.0. It provides a pair of encoder/decoder for the EHZ framework. It also contains a simple patch to the hztty program (hztty was written by ygz@cs.purdue.edu) to support EHZ automatically. Please read the file EHZusage.txt for a proposed guideline for using EHZ on Usenet Newsgroups. The generated file ehz.aliases can be put in your .cshrc file. It provides convenient aliases. They are named in the following convention: e for EHZ, eb for EHZ-BIG5, ec for EHZ-CNS, eg for EHZ-GB, g for GB, b for BIG5, and c for CNS. For examples, b2egeb convert BIG5 to EHZ-GB and EHZ-BIG5 (Notice that this involves BIG5->GB conversion, and only unconvertible BIG5 codes are encoded in EHZ-BIG5.) b2eb convert BIG5 to EHZ-BIG5 Aliases for hztty modules are similar but with the hztty- prefix. For example, hztty-g2b means convert GB to BIG5 Changes from EHZ 1.0: - Added module "egeb2b" to hztty. This modules decodes EHZ-BIG5 and EHZ-GB (HZ) codes, and turn all GB codes to BIG5. Added module "ebeg2g" to hztty. Similar to "egeb2b". - Integrated the Hanzi Converter software (hclib) into ehzencode. Unconvertible characters are preserved through EHZ code instead of a squared blank. - Integrated the Hanzi Converter software into ehzdecode. - Added the "b2eb" module to hztty. - Disabled the "gb2big" and "big2gb" modules which used a hard-wired table. They are now replaced by "g2b" and "b2g" which conforms to the original Hanzi Converter software. It is more flexible and more maintainable. These new modules take a file name as argument. See ehztty/README-ehz for detail. - Fixed a minor problem on mixed 8-bit & ASCII codes. - Took away the order restriction for ehzdecode command line arguments. Notice that this is a superset of the HZ software. It could completely replace the HZ functionalities. With the hztty patch, hztty users see no lost of functionality (such as ASCII transparency) and have the additional ability to display EHZ encoded BIG5 and/or GB in an application-unawared fashion. Enjoy. -Ricky Bugs and comments should be reported to Ricky.Yeung@Eng.Sun.Com. Thanks to Fung Fung Lee for his help and suggestions on EHZ-BIG5 and EHZ-CNS. This work has no connection with my employer. Main files ========== COPYRIGHT Copyright notice EHZ.spec Ricky Yeung's EHZ spec document. EHZ-CNS-BIG5.spec Fung Fung Lee's EHZ-BIG5 and EHZ-CNS spec document. EHZusage.txt A proposed usage of EHZ by Fung Fung Lee & Ricky Yeung. ehzdecode.1 Man page for ehzdecode. ehzencode.1 Man page for ehzencode. poem1.b5 Example Tang poems that contains unconvertible BIG5 codes. poem1.gb Poem1.b5 in GB. poem1.ehz Poem1.b5 encoded in EHZ-GB and EHZ-BIG5. Could be viewed by the alias commands e2g/e2b or hztty-e2g/hztty-e2b. makefile Source code. decode_main.c ehz_big5dec.c ehz_big5encode.c ehz_cnsdec.c ehz_cnsencode.c ehz_gbdec.c ehz_gbencode.c ehzdecode.c ehzdecode.h ehzencode.c ehzencode.h encode_main.c ehz.script hclib.h Hanzi Converter library file and table. hclib.c hc.tab ehztty/README-ehz Instructions on how to patch hztty to understand EHZ ehztty/ehzpatch patches to hztty ehztty/io.c.diff ehztty/Makefile.diff ehztty/ehztty.h ehztty/ehztty.c ehztty/ehzdecode.c Link to the ones in ../ ehztty/ehzdecode.c ehztty/ehz_gbdec.c ehztty/ehz_cnsdec.c ehztty/ehz_big5dec.c ehztty/hclib.h ehztty/hclib.c ehztty/hc.tab