[luatex] fontspec prevents German hyphenation

Pablo Rodríguez oinos at web.de
Sun Aug 1 19:45:15 CEST 2010


Hi there,

I have just realized that fontspec prevents a particular hyphenation in 
LuaLaTeX. Here you have the sample:

\documentclass{book}
\usepackage{fontspec}
\usepackage[german,spanish]{babel}
\newcommand{\getext}[1]{\foreignlanguage{german}{#1}}
\newcommand{\geit}[1]{\foreignlanguage{german}{\emph{#1}}}
\begin{document}
\showhyphens{documento (documento)}
\showhyphens{\emph{documento (documento)}}
\showhyphens{(\getext{Umwelterlebnis}) (\getext{Andenken})}
\showhyphens{(\geit{Umwelterlebnis}) (\geit{Andenken})}
\end{document}

The fourth pair won't be hyphenated if fontspec is loaded. I guess this 
might be a bug.

BTW, for the German native speakers: isn't Andenken hyphenated as 
An-den-ken?

Thanks for your help,


Pablo


More information about the luatex mailing list