[Dev-luatex] Hyphenation/lccode

Patrick Gundlach patrick at gundla.ch
Thu Jun 23 12:20:58 CEST 2011

Am 23.06.2011 um 12:00 schrieb Taco Hoekwater:

> On 06/23/11 11:35, Patrick Gundlach wrote:
>> Before I ask my second question, I ask a third:
>> I load German hyphenation patterns and want to hyphenate a word. Before that I use
>> for i in string.utfvalues("äÄöÖüÜß") do
>>  tex.lccode[i] = i
>> end
>> and then I hyphenate for example "Krönung", which gets (if I understand TeX) translated to lowercase characters (with lccode) and then gets hyphenated. Works fine.
>> Now I want to hyphenate the word "KRÖNUNG" (the same word, only all upper case letters), and I wonder why that works. The lowercase equivalent would be "krÖnung" (according to the lccode setting above), and I wonder why this gets hyphenated. Just luck? Good weather? 
> Can you give an actual source file please?

\directlua{ dofile("hyph-de.lua")}



local l = lang.new()

(big chunk of patterns from hyph-de-1996.pat.txt)

for i in string.utfvalues("äÄöÖüÜß") do
  tex.lccode[i] = i

But David's mail explains it, as far as I can judge.


More information about the dev-luatex mailing list