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? Patrick
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?
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?
document.tex: ----------------- \directlua{ dofile("hyph-de.lua")} \language1 \showhyphens{Krönung} \showhyphens{KrÖnung} \bye ----------------- hyph-de.lua: ----------------- local l = lang.new() l:patterns([==[ (big chunk of patterns from hyph-de-1996.pat.txt) ]==]) for i in string.utfvalues("äÄöÖüÜß") do tex.lccode[i] = i end ----------------- But David's mail explains it, as far as I can judge. Patrick
Patrick Gundlach
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
participants (3)
-
David Kastrup
-
Patrick Gundlach
-
Taco Hoekwater