[luatex] wrong hyphenation in four-letter word

Stephan Hennig mailing_list at arcor.de
Tue May 10 15:55:10 CEST 2011


[sending to luatex and lualatex list]

Hi,

I'm observing a wrong hyphenation of a four-letter word with lualatex
and German hyphenation patterns.  For the German language,
\lefthyphenmin and \righthyphenmin are both set to 2, so that
four-letter words can indeed be hyphenated, such as ei-ne.  But the word
"sich" shouldn't be hyphenated at all, whereas it is
hyphenated as si-ch:

\listfiles
\documentclass{minimal}
\usepackage{fontspec}
\usepackage[ngerman]{babel}
\begin{document}
\showhyphens{sich eine}
\end{document}

> Underfull \hbox (badness 10000) in paragraph at lines 9--9
> [][] \EU2/lmr/m/n/10 si-ch ei-ne


Decomposing "sich" into patterns with file

  >kpsewhich hyph-de-1996.tex
  f:/texlive/2010/texmf-dist/tex/generic/hyph-utf8/patterns/tex/
  hyph-de-1996.tex

I find the following matching patterns[1]

  2ic
  5si1c
  4ch.
  1si
  c4h

which give

    2i c
  5s i1c
      4c h.
  1s i
       c4h
  ---------
  5s2i4c4h.

That is, according to the patterns, the word shouldn't be hyphenated.
It looks like the pattern "4ch." isn't taken into account.  Any idea
what's going wrong here?

Best regards,
Stephan Hennig

[1] Please re-check the pattern decomposition.  I have done that with a
self-written programme that dates back to my first Lua experiments and
is hardly documented.  A re-write of that tool is stuck at an unusable
state, unfortunately. :(


> >lualatex -version
> This is LuaTeX, Version beta-0.70.0-2011050815 (Web2C 2011) (rev 4247)


>  *File List*
>  minimal.cls    2001/05/25 Standard LaTeX minimal class
> fontspec.sty    2011/02/26 v2.1f Advanced font selection for XeLaTeX/LuaLaTeX
>    expl3.sty    2011/04/09 v2222 L3 Experimental code bundle wrapper
>  l3names.sty    2011/01/08 v2122 L3 Experimental Naming Scheme for TeX Primitiv
> es
>   luatex.sty    2010/03/09 v0.4 LuaTeX basic definition package (HO)
> infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
> ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
>     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
> luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)
> pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
>  ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
>    ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
> l3basics.sty    2011/04/23 v2246 L3 Experimental basic definitions
>  l3expan.sty    2011/04/09 v2223 L3 Experimental Argument Expansion module
>     l3tl.sty    2011/04/09 v2223 L3 Experimental Token Lists
>    l3int.sty    2011/04/11 v2229 L3 Experimental Integer module
>  l3quark.sty    2011/04/14 v2234 L3 Experimental Quark Commands
>    l3seq.sty    2011/04/21 v2245 The LaTeX3 kernel: sequences and stacks
>   l3toks.sty    2011/04/09 v2223 L3 Experimental Token Registers
>    l3prg.sty    2011/04/09 v2223 L3 Experimental control structures
>  l3clist.sty    2011/04/09 v2223 L3 Experimental comma separated lists
>  l3token.sty    2011/04/09 v2223 L3 Experimental token investigation and manipu
> lation
>   l3prop.sty    2011/04/09 v2223 L3 Experimental Property Lists
>    l3msg.sty    2010/10/02 v2052 L3 Experimental LaTeX Messages module
>     l3io.sty    2010/10/03 v2063 L3 Experimental i/o module
>   l3skip.sty    2011/02/15 v2149 L3 Experimental skip registers
>    l3box.sty    2011/04/09 v2223 L3 Experimental Box module
> l3keyval.sty    2011/04/09 v2223 L3 Experimental keyval processing
>   l3keys.sty    2010/11/11 v2082 L3 Experimental key-value support
> l3precom.sty    2011/04/09 v2223 L3 Experimental precompilation module
>   l3xref.sty    2011/04/09 v2223 L3 Experimental cross referencing
>   l3file.sty    2011/04/21 v2242 The LaTeX3 kernel: file operations
>     l3fp.sty    2011/03/19 v2201 L3 Experimental floating-point operations
> l3luatex.sty    2010/07/18 v1985 L3 Experimental LuaTeX functions
>     calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
>   xparse.sty    2011/04/08 v2219 Generic document command parser
> luaotfload.sty    2011/04/21 v1.25 OpenType layout system
> luatexbase.sty    2010/10/06 v0.3 Module utilities for LuaTeX
> luatexbase-compat.sty    2010/10/10 v0.3 Compatibility tools for LuaTeX
> luatexbase-loader.sty    2010/10/10 v0.3 Lua module loader for LuaTeX
> luatexbase-regs.sty    2010/10/10 v0.3 Registers allocation for LuaTeX
> luatexbase-attr.sty    2010/10/10 v0.3 Attributes allocation for LuaTeX
> luatexbase-cctb.sty    2010/10/10 v0.3 Catcodetable allocation for LuaTeX
> luatexbase-mcb.sty    2010/10/10 v0.3 Callback management for LuaTeX
> luatexbase-modutils.sty    2010/10/10 v0.3 Module utilities for LuaTeX
>  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
> fontspec-patches.sty    2011/02/26 v2.1f Advanced font selection for XeLaTeX/Lu
> aLaTeX
> fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX
>  fontenc.sty
>   eu2enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
>   eu2lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
> xunicode.sty    2010/11/06 v0.96 provides access to latin accents and many othe
> r characters in Unicode lower plane
> fontspec.cfg
>    babel.sty    2008/07/06 v3.8l The Babel package
> ngermanb.ldf    2008/07/06 v2.6n new German support from the babel system
>  ***********



More information about the luatex mailing list