# [XeTeX] On cross-language font selection

Yin Dian yindian at gmail.com
Wed Feb 14 16:03:52 CET 2007

```Hi,

2007/2/14, Jjgod Jiang <gzjjgod at gmail.com>:
>
> Hi Peter and Bruno,
>
> 2007/2/14, Peter Dyballa <Peter_Dyballa at web.de>:
> > Font switching is not all, there should also happen a switch to a
> > different language with other typographic rules. Something like
> > Babel's \selectlanguage{} might be the right thing: switching the
> > text's language, switching the font and its script and language (like
> > fontspec offers), plus some internals like writing direction, glue ...
>
> I can understand your points now. Indeed, we guys using XeTeX
> to typeset Chinese are not very satified with glue between CJK
> characters and Latin characters. So the questions is, can we solve

If it's only the glue, we can just redefine the active tilder to behave like
\CJKtilde. Also we may let the tilde to toggle the font, although in that
way we can't use tilde in English context as before. But that does not solve
all the problem, especially for UCS4.

this problem at TeX macro level? If not, we still need low level
> mechanism provided by some XeTeX primitives.

Maybe preprocessing *is* a good idea. We can even dynamically create fonts
just like Omega does when running preprocessing script before executing