[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: [harf] Never break cluster at disc start (51272db)

Marcel Fabian Krüger tex at 2krueger.de
Sun Aug 23 21:22:35 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/51272db0578a886e83e5f5b74d3e581c6efb88e8

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

commit 51272db0578a886e83e5f5b74d3e581c6efb88e8
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun Aug 23 21:22:35 2020 +0200

    [harf] Never break cluster at disc start


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

51272db0578a886e83e5f5b74d3e581c6efb88e8
 src/luaotfload-harf-plug.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index 4d154d7..482ac53 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -432,7 +432,8 @@ function shape(head, firstnode, run)
             while startglyph > 1
               and codes[glyphs[startglyph - 1].cluster + 1] ~= 0x20
               and codes[glyphs[startglyph - 1].cluster + 1] ~= 0xFFFC
-              and unsafetobreak(glyphs[startglyph]) do
+              and (unsafetobreak(glyphs[startglyph])
+                or glyphs[startglyph].cluster == glyphs[startglyph-1].cluster) do
               startglyph = startglyph - 1
             end
             -- Get the corresponding character index.





More information about the latex3-commits mailing list.