[Dev-luatex] Hyphenation/lccode

David Kastrup dak at gnu.org
Thu Jun 23 12:09:48 CEST 2011

Patrick Gundlach <patrick at gundla.ch> writes:

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

The pattern 1nu would appear to fit since Ö is not mentioned in the
hyphenation patterns, but is a word constituent nevertheless (its lccode
is nonzero).

David Kastrup

More information about the dev-luatex mailing list