[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Skip more irrelevant stuff in harf (3561c37)

Marcel Fabian Krüger tex at 2krueger.de
Sat Feb 22 11:29:06 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/3561c3781fcd9c7028faafef40e07ca1e1908eb6

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

commit 3561c3781fcd9c7028faafef40e07ca1e1908eb6
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Feb 22 11:29:06 2020 +0100

    Skip more irrelevant stuff in harf


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

3561c3781fcd9c7028faafef40e07ca1e1908eb6
 src/luaotfload-harf-plug.lua | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua
index bdd862e..adf096c 100644
--- a/src/luaotfload-harf-plug.lua
+++ b/src/luaotfload-harf-plug.lua
@@ -189,20 +189,21 @@ local function itemize(head, fontid, direction)
 
   for n, id, subtype in direct.traverse(head) do
     local code = 0xFFFC -- OBJECT REPLACEMENT CHARACTER
-    local skip = false
+    local skip = lastskip
 
     if id == glyph_t then
       if is_char(n) and getfont(n) == fontid then
         code = getchar(n)
+        skip = false
       else
         skip = true
       end
     elseif id == glue_t and subtype == spaceskip_t then
       code = 0x0020 -- SPACE
-      skip = lastskip
     elseif id == disc_t then
       if uses_font(n, fontid) then
         code = 0x00AD -- SOFT HYPHEN
+        skip = false
       else
         skip = true
       end
@@ -217,10 +218,8 @@ local function itemize(head, fontid, direction)
         -- Pop the last direction from the stack.
         currdir = tableremove(dirstack)
       end
-      skip = lastskip
     elseif id == localpar_t then
       currdir = getdir(n)
-      skip = lastskip
     end
 
     if not skip and texlig then





More information about the latex3-commits mailing list.