Hi,
I'm just trying to load hyphenation patterns in *plain* LuaTeX.

I wrote two files:

  loadhyphen.lua:
  ----------------------------------------------------------
    local german=lang.new()

    fh=assert(io.open('hyph-de-1996.pat.txt', 'r'))
    local patterns_de=fh:read('*all')
    fh:close()

    lang.patterns(german, patterns_de)
  ----------------------------------------------------------

  testhypen.tex:
  ----------------------------------------------------------
    \directlua{dofile('loadhyphen.lua')}

    \language1
    \showhyphens{löste Fassade modernste Abendstern Mordopfer}
    \bye
  ----------------------------------------------------------

The result is

  löste Fas-sade mo-dernste Abend-stern Mord-op-fer

instead of

  lös-te Fas-sa-de mo-derns-te Abend-stern Mord-op-fer

Am I really using the latest patterns?  Or is there something else
wrong with my approach?

The file 'hyph-de-1996.pat.txt' is in the current directory and it's
definitely used (checked with strace).

Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:[email protected]
------------------------------------------------------------------

Reply via email to