[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Disable creation of init/select discretionary node (40ccc82)

Marcel Fabian Krüger tex at 2krueger.de
Sat Feb 20 18:31:47 CET 2021


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/40ccc823a926030d412cd1c49bb77aa06fd239da

>---------------------------------------------------------------

commit 40ccc823a926030d412cd1c49bb77aa06fd239da
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Feb 20 18:31:47 2021 +0100

    Disable creation of init/select discretionary node


>---------------------------------------------------------------

40ccc823a926030d412cd1c49bb77aa06fd239da
 src/luaotfload-harf-plug.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index c5dab06..e0fda7e 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -439,6 +439,7 @@ function shape(head, firstnode, run)
         while disc_cluster and after_cluster <= cluster
            or not disc_cluster and anchor_cluster <= cluster do
           if disc_cluster then
+            if false then -- The saved_... are for nested (aka first/second or init/select) discretionary nodes. The code is currently disabled because the linebreaking for these is broken on the engine level.
             if not saved_after and saved_anchor < cluster then
               saved_after = discs.next.after_cluster + offset
               if saved_after > cluster then
@@ -448,6 +449,7 @@ function shape(head, firstnode, run)
             elseif saved_after then
               saved_after, after_cluster = after_cluster, saved_after
             end
+            end
             local rep_glyphs = table.move(glyphs, disc_glyph, i - 1, 1, {})
             for j = 1, #rep_glyphs do
               local glyph = rep_glyphs[j]





More information about the latex3-commits mailing list.