diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/polyglossia-cjk-spacing.lua')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/polyglossia-cjk-spacing.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia-cjk-spacing.lua b/Master/texmf-dist/tex/latex/polyglossia/polyglossia-cjk-spacing.lua index 7102dc0cf37..4c1ba185455 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/polyglossia-cjk-spacing.lua +++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia-cjk-spacing.lua @@ -1,6 +1,6 @@ -- -- polyglossia-cjk-spacing.lua --- part of polyglossia v2.2 -- 2024/07/15 +-- part of polyglossia v2.3 -- 2024/09/23 -- local glyph_id = node.id"glyph" @@ -409,7 +409,9 @@ local function cjk_break (head) curr, next = next, node.getnext(next) end - if next and (next.id == glyph_id or next.id == math_id and next.subtype == 0) then + if next and node.has_attribute(next, attr_cjk) + and (next.id == glyph_id or next.id == math_id and next.subtype == 0) then + local n = next.char or 0 f = f or next.font or 0 -- in case of curr == math_off |