[luatex] fontspec prevents German hyphenation

Reinhard Kotucha reinhard.kotucha at web.de
Mon Aug 2 02:04:38 CEST 2010


On 1 August 2010 Pablo Rodríguez wrote:

 > 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?

Yes.  I get the same result with and without fontspec

[][] \OT1/cmr/m/n/10 (Um-welt-er-leb-nis) (An-denken)

while with pdflatex (without fontspec) I get:

[] \OT1/cmr/m/n/10 ([]Um-welter-leb-nis[]) ([]An-den-ken[])

Please note that LuaTeX doesn't have hyphenation patterns except those
for English in the format file anymore.  Please check your log file.

So probably you are using English patterns.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the luatex mailing list