[luatex] \hyphenpenalty not working

Hans Hagen pragma at wxs.nl
Mon Jul 8 23:09:24 CEST 2013


On 7/8/2013 7:48 PM, Élie Roux wrote:
> Le 08/07/2013 17:05, Élie Roux a écrit :
>> Dear Taco,
>>
>> Thank you very much for your quick answer!
>>
>>> I think that bug is only for negative values? I tested some positive
>>> ones, and these seemed ok.
>>
>> I have to say I don't know how to test positive values simply... I'll
>> try though.
>
> There is something more I don't understand: if you take the following
> example:
>
> \hsize=2cm
> aaaaab\discretionary{1}{2}{3}\penalty-10000cd
>
> \hyphenpenalty=-10000
> aaaaab\discretionary{1}{2}{3}cd
> \bye
>
> (with pdfTeX), hyphenpenalty seems to be something more than just a
> penalty after the discretionary. The question is: how is it possible to
> set it with nodes? Discretionary nodes don't have a "penalty" field (not
> in the manual at least)...

afaik (ex) hyphenpenalty is only applied with automatic discretionaries 
(the ones inserted by the hyphenation pass)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the luatex mailing list