Stephan Hennig wrote:
Hi,

is there any way to get the hyphenation patterns matching a word handed on a silver platter by luatex? Seeing callback hyphenate() and function lang.hyphenate() as the only related API parts, I assume the answer is no.

No. The best luatex can do is give you all the patterns for a language
as a space-delimited string:

   <string> s = lang.patterns(<number> l)

but you will have to extract the ones that fit a particular word
yourself.

Best wishes,
Taco

Reply via email to