[XeTeX] Diacritics

José Carlos Santos jcsantos at fc.up.pt
Mon May 3 14:48:50 CEST 2010


On 03-05-2010 13:24, Ulrike Fischer wrote:

>> If I compile this file:
>>
>> \documentclass{article}
>> \usepackage{fontspec}
>> \usepackage{xunicode}
>> \usepackage{xltxtra}
>> \begin{document}
>> \'n
>> \end{document}
>>
>> then I get a PDF file which, besides the page number, only contains the
>> diacritic «ń». That's what I would expect.
>>
>> However, if I add the line
>>
>> \setmainfont[Mapping=tex-text]{DTLUnicoST}
>>
>> before \begin{document}, then I get a page with only the page number and
>> the log file says:
>>
>> Missing character: There is no ń in font DTL Unico ST/ICU:mapping=tex-text,!
>>
>> Now, I am not surprised by the fact that that specific font doesn't have
>> that specific character, but shouldn't it be able to create one just by
>> putting an acute accent over the letter _n_?
>>
>> Can anyone suggest a way around this problem?
>
> Try this (I can't test as I don't have your font):
>
> \documentclass{article}
> \usepackage{xltxtra}
> \setmainfont[Mapping=tex-text]{DTLUnicoST}
> \UndeclareUTFcomposite[\UTFencname]{x0144}{\'}{n}
> \begin{document}
> \'n
> \end{document}

Thanks, but that does not work. What I get is just the letter "n". 
Besides, the log file then says "Missing character: There is no ́ in font 
DTL Unico ST/ICU:mapping=tex-text,!"

Best regards,

Jose Carlos Santos


More information about the XeTeX mailing list