[XeTeX] [solved] Conflict between xunicode and fontspec?

Ross Moore ross at ics.mq.edu.au
Thu Feb 7 23:11:51 CET 2008


Hi Julien,

On 08/02/2008, at 6:31 AM, Julien ÉLIE wrote:

>> I don't know exactly how fontenc gets involved here; it may mean that
>> you end up using different virtual fonts, or something.
>
> I think that inputenc is guilty there:  it converts "î" to "\^{\i}"
> or something like that.  Afterwards, the circumflex is badly centered.

Aaah; there is a fault in  xunicode.sty .
It should catch this conversion and map it back to the correct code- 
point.

Currently  xunicode.sty  has:

\DeclareUTFcomposite[\UTFencname]{x00EC}{\`}{i}
\DeclareUTFcomposite[\UTFencname]{x00ED}{\'}{i}
\DeclareUTFcomposite[\UTFencname]{x00EE}{\^}{i}
\DeclareUTFcomposite[\UTFencname]{x00EF}{\"}{i}

It should have 4 extra declarations, to become:

\DeclareUTFcomposite[\UTFencname]{x00EC}{\`}{i}
\DeclareUTFcomposite[\UTFencname]{x00EC}{\`}{\i}
\DeclareUTFcomposite[\UTFencname]{x00ED}{\'}{i}
\DeclareUTFcomposite[\UTFencname]{x00ED}{\'}{\i}
\DeclareUTFcomposite[\UTFencname]{x00EE}{\^}{i}
\DeclareUTFcomposite[\UTFencname]{x00EE}{\^}{\i}
\DeclareUTFcomposite[\UTFencname]{x00EF}{\"}{i}
\DeclareUTFcomposite[\UTFencname]{x00EF}{\"}{\i}

The other (TIPA) accents have the appropriate extra rules.

>
> -- 
> Julien ÉLIE
>
> « -- Essayons d'interroger ce garde habilement sans éveiller ses  
> soupçons...
>   -- Hep ! Où est enfermé Assurancetourix ? » (Astérix)
>


Hope this helps,

	Ross

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




More information about the XeTeX mailing list