[XeTeX] Looking for a better font selection method

Jonathan Kew jonathan_kew at sil.org
Fri May 5 10:24:22 CEST 2006


On 5 May 2006, at 8:26 am, Jjgod Jiang wrote:

> 2006/5/5, Will Robertson <wspr81 at gmail.com>:
>> On 05/05/2006, at 16:21 , Jjgod Jiang wrote:
>>
>>> It's relatively hard to find a CJK font with high quality Roman
>>> characters
>>
>> :( That's unfortunate and surprising to me.
>> If people keep on pressuring Jonathan, he may think of something. On
>> the other hand, he might persist in saying that changes in script/
>> language cannot automagically be detected and acted upon reliably, so
>> the only solution is to provide markup or one-gigantic-font support.
>
> Thanks anyway. I guess I could do some preprocessing to the
> source .tex and produce a \cjk{}ed file for xelatex (but not sure
> how to solve those line-breaking problems).

(If your documents are mainly Chinese, I'd be more inclined to set  
the Chinese font as the default and mark up the Roman fragments.)

For line-breaking, it should be OK to set

	\XeTeXlinebreaklocale = "zh"
	\XeTeXlinebreakskip = 0pt plus 1pt

or similar, and leave this in effect throughout the document... in  
general, this shouldn't have any bad effects in the Roman-script  
text. (It may sometimes allow extra line-break opportunities, such as  
after certain punctuation characters -- slash, perhaps -- but the  
rules should be fine for English as well as Chinese.)

JK




More information about the XeTeX mailing list