[XeTeX] Faking an accent when that glyph is unavailable

Juan Acevedo juan.acevedo at gmx.net
Thu Apr 9 16:30:26 CEST 2009


Hi Henry

Back in 2005 I got some help from JK for this same kind of need; you  
can check the XeTeX archives on the date below. Also have a look at  
the lines below, where I applied JK's original idea using also  
diacritics from another font if necessary, and in one case adding the  
diacritic under the character. I do not understand much of these  
commands, just about the \raise part of it (!), but I think there are  
plenty of wizards in the list who could explian what is happening,  
should you need to clarify.

---------------------------------
% MISSING CHARACTERS KLUGES

%% for a missing character, gratia Musa Furber and JK, XTX archives  
20051102
\def\vontop#1{\leavevmode \vtop{\offinterlineskip \ialign{##\cr #1\cr
    \setbox0=\hbox{\raise.46ex\hbox{\char"EB0A}}\ht0=0pt\dp0=0pt 
\hidewidth\box0
\hidewidth\cr}}}

%caron on top of GREEK, i.e. lower
\def\Gvontop#1{\leavevmode \vtop{\offinterlineskip \ialign{##\cr #1\cr
    \setbox0=\hbox{\raise.1ex\hbox{\char"EB0A}}\ht0=0pt\dp0=0pt 
\hidewidth\box0
\hidewidth\cr}}}

%ring underneath
\def\ounder#1{\leavevmode \vtop{\offinterlineskip \ialign{##\cr #1\cr
    \setbox0=\hbox{\raise-.1ex\hbox{{\IPA\char"02F3}}}\ht0=0pt\dp0=0pt 
\hidewidth\box0
\hidewidth\cr}}}
-------------------------------

Suerte!
Juan


More information about the XeTeX mailing list