[XeTeX] problems with fontspec and german sharp s ligature

Yves Codet ycodet at club-internet.fr
Tue Apr 8 09:00:37 CEST 2008


Hello.

Le 8 avr. 08 à 05:40, Niels Provos a écrit :

> \usepackage[latin1]{inputenc}

Being no expert I couldn't say where your problem comes from but it  
might have something to do with the above line; XeTeX expects Unicode.

> % in regular font, italic
> {\itshape Au"serdem Au{^^^^00df}erdem }

In Unicode you can write ß directly.

The following works for me (I changed some fonts because I don't have  
all the fonts you used):

%%%%%%%%%%
\documentclass{scrbook}
\usepackage{xunicode,fontspec,xltxtra}
\usepackage[german]{babel}
\selectlanguage{german}

\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text]{Charis SIL}
\setsansfont[Mapping=tex-text]{Lucida Grande}

\begin{document}
\Huge

Außerdem Au{^^^^00df}erdem

{\itshape Außerdem Au{^^^^00df}erdem}

\fontspec{Lucida Grande}
Außerdem Au{^^^^00df}erdem

\end{document}
%%%%%%%%%%

Maybe the following would be even better, since François created a  
replacement of Babel, Polyglossia which especially meant for XeTeX:

%%%%%%%%%%
\documentclass{scrbook}
\usepackage{xunicode,fontspec,xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{german}

\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text]{Charis SIL}
\setsansfont[Mapping=tex-text]{Lucida Grande}

\begin{document}
\Huge

Außerdem Au{^^^^00df}erdem

{\itshape Außerdem Au{^^^^00df}erdem}

\fontspec{Lucida Grande}
Außerdem Au{^^^^00df}erdem

\end{document}
%%%%%%%%%%

Best wishes,

Yves




More information about the XeTeX mailing list