Manuel Pégourié-Gonnard wrote:
Le 20/05/2010 12:06, Taco Hoekwater a écrit :
Stephan Hennig wrote:
That results in the following hyphenation weights:
Text -20- il -0- lus -10- tra -15- ti -5- on
Tal -20- ent -0- wäs -10- se -15- rung
My implementation plan for luatex 0.70 is to attach fixed penalty
values to each of the A-E pattern types. The cumulation of these
penalties are then stored inside the generated discretionaries.
So no 'weights', but actual TeX-style penalties.
[...]
Text[30]il[10000]lus[50]tra[45]ti[1050]on
Tal[30]ent[10000]wäs[50]se[45]rung
Sounds very nice.
By the way, how would hyphenation exceptions fit into this model?
Exceptions and patterns are independent, so the only thing needed
is to devise a way to input hyphenation exceptions containing penalties.
Which is needed anyway, an extension to \discretionary is the logical
solution.
Best wishes,
Taco