On 29 Jan 2014, at 19:47, Stephan Hennig <[email protected]> wrote:

> Thanks, that is similar to the one currently implemented in
> lua-modules/pdnm_nl_iterate_words.lua, except for the lccode checking.
> But this iterator doesn't fully cover TeX's rules with regards to
> hyphenation.  E.g., words with a leading or trailing \hbox aren't
> hyphenated by TeX.  If anyone feels like it …

… then, the C version of the algorithm is in this file:

https://foundry.supelec.fr/scm/viewvc.php/trunk/source/texk/web2c/luatexdir/lang/texlang.w?root=luatex&view=markup

find_next_wordstart() and valid_wordend() are the most important tests, but 
there
are a few extra inline tests done in hnj_hyphenation().

Best wishes,
Taco



Reply via email to