Am 11.05.2009 um 16:55 schrieb Yue Wang:
Dear list:
Chinese TeX Society is proud to announce the t-zhspacing module to the ConTeXt society. The module is developed by Yue Wang based on Yin Dian's zhspacing.sty macro package and Jonathan Kew's unicode-letters.tex + xetex interchartoks mechanism. It is designed for the audience who interested perfect Chinese typesetting using ConTeXt and XeTeX. It handles Chinese font loading, switching, line breaking, and punctuation compression rules quite well. Moreover, since the freetype's performance is much better than fontforge's on large cjk fonts, so the document compilation can be much faster. Users are free to visit http://code.google.com/p/ctex-kit/, and the code is in svn (the trunk/zhspacing directory) now.
After taking a closer look in zhspacing.sty I think it's better to include the code in your t-zhspacing module and to replace a lot of macros with their ConTeXT equivalent (e.g. \@for...\do.. with \processcommalist). The content from unicode-letters.tex should also be moved to a separate file (e.g. t-zhspacing-unicode.tex) which can be removed when the information is added to char-def.lua. Wolfgang