[XeTeX] Combining grapheme joiner
Fr. Michael Gilmary
FrMichaelGilmary at MaroniteMonks.org
Wed Jun 10 15:24:18 CEST 2009
Benct Philip Jonsson wrote:
> Could someone please suggest a TeX macro for
> placing two diacritics beside each other over a
> letter, and which places the diacritics correctly
> if the letter is a capital?
Hi Benct:
I just noodled with some code that Jonathan gave a long time ago and
others have submitted, too --- try this in your preamble:
\def\acutewdot#1{\leavevmode
\setbox0=\hbox{#1}\setbox1=\hbox{\raise.4ex\hbox{\char"00B4}}\setbox2=\hbox{\raise.4ex\hbox{\char"0307}}\copy0
\kern -0.75\wd0 \kern -0.5\wd1 \copy1 \kern -0.5\wd1 \kern 0.5\wd0
\kern 0.65\wd0 \kern -0.5\wd2 \copy2 \kern -0.5\wd1 \kern 0.5\wd0}
Then use as:
\acutewdot{E}
Maybe it will work with other capitals, although I only tried one.
HTH.
--
United in adoration of Jesus,
fr. michael gilmary, mma
Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725
More information about the XeTeX
mailing list