On 3/14/2015 5:57 PM, Élie Roux wrote:
Le 14/03/2015 15:17, Élie Roux a écrit :
Dear All,
First I would like to remind a bug I've reported here[1] and that has
already been discussed on the list here[2]. It starts to be blocking for
me... do you think it's possible for someone who doesn't really know
LuaTeX codebase to work on it?
The answer seems to be yes: this patch fixes the issue for my case:
Index: source/texk/web2c/luatexdir/tex/linebreak.w
===================================================================
--- source/texk/web2c/luatexdir/tex/linebreak.w (révision 5187)
+++ source/texk/web2c/luatexdir/tex/linebreak.w (copie de travail)
@@ -1950,7 +1950,7 @@
/* The following code knows that discretionary texts
contain
only character nodes, kern nodes, box nodes, and rule
nodes. */
- if (second_pass) {
+ if (second_pass || subtype(cur_p) == discretionary_disc) {
int actual_penalty = hyphen_penalty;
if (subtype(cur_p) == automatic_disc)
actual_penalty = ex_hyphen_penalty;
Is it ok or are there other subtypes that need to be included?
Adding stuff at that level is not going to happen in this stage of
freezing for texlive 2015.
I'll have a look at it but a change in such core functionality doesn't
come easy (there are some more things possible so maybe as part of that).
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
-----------------------------------------------------------------