[XeTeX] Diacritics in color

Ross Moore ross.moore at mq.edu.au
Wed Nov 30 00:58:23 CET 2011


Hi Heiko,

On 30/11/2011, at 10:32 AM, Heiko Oberdiek wrote:

> or
>  ^^^^00c4\\
>  A^^^^0308\\
>  A\textcolor{red}{^^^^0308}
> 
> As you can see, this problem is not related to color,
> both XeTeX and LuaTeX fail:

With this font (Latin Modern) yes. I noticed this too.

But try switching the font:

\documentclass{minimal}
\usepackage{fontspec}
\usepackage{color}
\pagestyle{empty}

\setmainfont{Charis SIL}

\begin{document}
\fontsize{100pt}{100pt}\selectfont
\noindent
^^^^00e4\\
a^^^^0308\\
a\textcolor{red}{^^^^0308}\"a
\hbox{U^^^^0308} U\textcolor{red}{^^^^0308}\"U

 ^^^^00c4\\
 A^^^^0308\\
 A\textcolor{red}{^^^^0308}

\end{document}


Now it *does* depend upon having the color commands.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 118037 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111130/aedcab1a/attachment-0001.jpeg>
-------------- next part --------------



> 
>> 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


Cheers,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-419      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------





More information about the XeTeX mailing list