[XeTeX] problems with fontspec and german sharp s ligature

Yves Codet ycodet at club-internet.fr
Tue Apr 8 10:07:24 CEST 2008


Hello.

Le 8 avr. 08 à 09:11, Will Robertson a écrit :

> However, this might be missing a subtle point of German typsetting  
> -- how is the sharp s supposed to be hyphenated? I don't have time  
> to look into the babel code to see what it does, but this will  
> cause any german words to be potentially hyphenated at a ß  
> character, replacing it with s-s where the hyphenation occurs:
>
> \documentclass{scrbook}
> \usepackage{fontspec}
> \setmainfont[Mapping=tex-text]{Adobe Garamond Pro}
> \begin{document}
> \Huge
> \catcode`\ß=13
> \defß{\discretionary{s-}{s}{\char`\ß}}
> \fbox{\parbox{6cm}{Außerdem Außerdem}}
> \end{document}
>
> Peter (or whomever), is this the right thing to do? How have you  
> set up XeTeX to typeset in German?

Maybe the xu-****.tex file corresponding to German hyphenation  
patterns can be modified so as to allow Aus-serdem instead of Au- 
ßerdem, if this is the correct hyphenation. I don’t know whether it’s  
the right way to do it, but it would be simpler for users.

Best wishes,

Yves



More information about the XeTeX mailing list