[XeTeX] Diacritics in color
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Wed Nov 30 00:32:38 CET 2011
Hi Ross,
On Wed, Nov 30, 2011 at 06:23:54AM +1100, Ross Moore wrote:
> Hi Heiko,
>
> On 29/11/2011, at 9:29 AM, Heiko Oberdiek wrote:
>
> > The same also works in XeLaTeX:
> >
> > \documentclass{minimal}
> > \usepackage{fontspec}
> > \usepackage{color}
> > \pagestyle{empty}
> >
> > \begin{document}
> > \fontsize{100pt}{100pt}\selectfont
> > \noindent
> > ^^^^00e4\\
> > a^^^^0308\\
> > a\textcolor{red}{^^^^0308}
> > \end{document}
> >
> > stream
> > q 1 0 0 1 72 769.89 cm 0 G 0 g 0 G 0 g 0 G 0 g BT /F1 99.626 Tf 0 -63.86
> > Td[<00a0>]TJ 0 -99.63 Td[<001c00ee>]TJ 0 -99.62 Td[<001c>]TJ ET 1 0 0 RG 1
> > 0 0 rg BT /F1 99.626 Tf 45.73 -263.11 Td[<00ee>]TJ ET 0 G 0 g 0 G 0 g 0 G
> > 0 g Q
> >
> > endstream
>
>
> Yes, this is OK with lower-case letters.
> But try with uppers:
>
> \begin{document}
> \fontsize{100pt}{100pt}\selectfont
> \noindent
> ^^^^00e4\\
> a^^^^0308\\
> a\textcolor{red}{^^^^0308}\"a
> U\textcolor{red}{^^^^0308}\"U
>
> \end{document}
or
^^^^00c4\\
A^^^^0308\\
A\textcolor{red}{^^^^0308}
As you can see, this problem is not related to color,
both XeTeX and LuaTeX fail:
> Both the vertical and horizontal position are now wrong.
The Unicode input neither seems to be normalized in XeTeX or LuaTeX
nor the accent seems to know its base letter. Manual fixing
of the accent position remains as (only?) option.
Yours sincerely
Heiko Oberdiek
More information about the XeTeX
mailing list