[XeTeX] Zero Width Non Joiner, or how not to make a ligature

François Charette firmicus at ankabut.net
Thu Nov 15 14:22:47 CET 2007


> I tried it in Fontforge in the metric window, and of Computer Modern, Gentium 
> and Linux Libertine, only Computer Modern works as espected.
>   
Not sure I understand what you mean...

> I don’t think
> {\addfontfeature{Ligatures=NoCommon} fi}
> is so handy, because that would delete all fi ligatures. In Fraktur, it is 
> possible to have a ligature in one word and no ligature in another
> compare “hoffen” with “auffangen”, the second one should be “auf|fangen” with 
> no ligature.
>   
You're right.
By the way, if you don't like inputing invisible glyphs in your editor, 
you could use a font mapping (like tex-text.map) specifically for 
Fraktur with this line in it:

U+007C > U+200C; | -> ZWNJ

But of course, you first need to find a Fraktur font which supports 
ZWNJ, which does not seem obvious!

An alternative would be to make a character (such as |) active in your 
Fraktur environment, and define it as a \strut : this will also prevent 
the ligature.

François



More information about the XeTeX mailing list