5

I found that XeLaTeX cannot map letters with more than two diacritics correctly. For example, \v{\"{u}} or \v{ü} cannot produce the expected ǚ correctly. I've tried many fonts, so I think it may not depend on fonts. Any tricky way to fix this? Thanks!

7

It certainly does depend on the font. Here's a selection from my machine (a Mac).

% !TEX TS-program = XeLaTeX

\documentclass[12pt]{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\newfontfamily\libertine{Linux Libertine O}
\newfontfamily\times{Times New Roman}
\newfontfamily\charis{Charis SIL}
\newfontfamily\minion{Minion Pro}
\newfontfamily\luxiserif{Luxi Serif}
\newfontfamily\biolinum{Linux Biolinum O}
\newfontfamily\lmr{Latin Modern Roman}
\newfontfamily\junicode{Junicode}
\newfontfamily\cambria{Cambria}
\newfontfamily\arialmt{Arial Unicode MS}
\newfontfamily\doulos{Doulos SIL}
\newcommand{\testchar}{\v{\"{u}} or \v{ü}}
\begin{document}
\begin{tabular}{lr}
Linux Libertine O &{\libertine\testchar}\\
Junicode & {\junicode\testchar}\\
Charis SIL &{\charis\testchar}\\
Doulos SIL & {\doulos\testchar}\\
Latin Modern &{\lmr\testchar}\\
Times New Roman &{\times\testchar}\\
Minion Pro &{\minion\testchar}\\
Luxi Serif & {\luxiserif\testchar}\\
Linux Biolinum O & {\biolinum\testchar}\\
Cambria & {\cambria\testchar}\\
Arial Unicode MS & {\arialmt\testchar}
\end{tabular}
\end{document}

output of code

  • Linux Libertine does not work for me on Linux. Might be OS dependent. – Caramdir Apr 16 '11 at 3:38
  • @Caramdir Linux Libertine or Linux Libertine O? Or maybe you have duplicate fonts in your system? – Alan Munn Apr 16 '11 at 3:43
  • Linux Libertine O (I just copied your example and removed all other fonts (as I don't have most of them). – Caramdir Apr 16 '11 at 3:46
  • 1
    Charis SIL works. Maybe I have an outdated version of Linux Libertine O. – Caramdir Apr 16 '11 at 3:48
  • 3
    Yes. Version 4.7.5 (from the website) works, while 4.4.1 (from Ubuntu packages) doesn't. – Caramdir Apr 16 '11 at 3:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.