I am trying to make ConTeXt to do the automatic discretionary hyphenations native to the Hungarian language.
In fact, a Hungarian word asszonnyal is explicitly included in lang-hyp.lua
source code's comment section at the top: It should be hyphenated as asz-szony-nyal. Note that ssz becomes sz-sz when hyphenated and same happens with nny.
Unfortunately it does not apply when typesetting Hungarian text:
\setuppapersize[A9]
\mainlanguage[hu]
\setuphyphenation[method=traditional]
\setuppagenumbering[location=]
\starttext
Xxxxxx asszonnyal
Xxxxxx a\discretionary{sz-}{sz}{ssz}o\discretionary{ny-}{ny}{nny}al
\stoptext
Note that method=default
and method=expanded
yields the same result.
As a workaround one can add \discretionary
calls to the needed places.
This problem has also not been solved in LaTeX (magyar.ldf
) which uses an active character before doubled multicharacter consonants to indicate the correct hyphenation rule.
As ConTeXt/LuaTeX seems to have more capabilities than LaTeX I wonder whether I can finally write in Hungarian and assume correct hyphenation of doubled multicharacter consonants as those are common in our language? Surely there are exceptions which require human attention but dealing with exceptions only would be timesaving.
Even better would be to have them in the hyphenation patterns somehow.
How can I make the common hyphenation mechanism to hyphenate this word correctly by default? Plus, how can I also add the exceptional word leggyakoribb
to the hyphenation patterns of ConTeXt as well which should be hyphenated as leg-gyakoribb
instead of legy-gyakoribb
?