[XeTeX] color some Hebrew vowels

Lorenz Haas lorenz at lorenz-haas.de
Sat Sep 19 10:29:37 CEST 2009


Am Samstag, 19. September 2009 09:45:57 schrieb Jonathan Kew:
> > As soon i use any kind of a command (e.g \textit{#1}) inside my "hem"
> > definition the vowels get shifted.
>
> Yes; this is a limitation of how xetex interacts with opentype fonts.
> When you insert \special{}s to change the color, or anything else that
> breaks up the "run" of consecutive characters being typeset from the
> same font, opentype features such as diacritic positioning will not
> apply across that boundary. The same thing would apply if you tried to
> color the "i" of an "fi" ligature: the presence of the color-changing
> command would prevent the ligature forming.
>
> One solution would be to use luatex, which should allow you to color
> the vowels independently and still apply the proper positioning rules;
> however, you might have to do some fairly technical setup in order to
> get there.

Ok, thanks for that info! Then for right now I will live with that vowel-shift 
and will have a closer look at luatex next month.


Am Samstag, 19. September 2009 09:20:12 schrieb Vafa Khalighi:
> \newcommand{\he}[1]{\RL{\HebFont #1}} this is how \RL should be used.

Yes, my wrong use was a relict of various "wild" testing...


Thanks,
Lorenz


More information about the XeTeX mailing list