[XeTeX] STFangsong punctuation kerning

Jonathan Kew jonathan_kew at sil.org
Mon Jun 12 15:26:03 CEST 2006


On 12 Jun 2006, at 2:13 pm, Jjgod Jiang wrote:

> Recently I'm working on a XeTeX preprocessor for Chinese document to
> solve the following problems:
>
> 1. mixed-script font selection & switching.
> 2. prevent extra spaces between 2 lines in Chinese
> (aka. insert % at the end of line), for example:
>
> 中文
> 测试
>
> without a '%' after "文",there will be an extra space between 文  
> and 测,
> which is usually not we want when we prefered to break the lines
> manually.

One way to suppress this space within (Xe)TeX is to set the \catcode  
of ^^M to "ignored" (9) when processing Chinese text -- then the end- 
of-line character should simply be ignored, instead of generating a  
space.

JK




More information about the XeTeX mailing list