OSDN Git Service

fix '(linebreak): invalid list tail, probably missing glue' error
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 21 May 2022 12:18:04 +0000 (21:18 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 21 May 2022 12:18:04 +0000 (21:18 +0900)
src/addons/luatexja-preset.sty
src/ltj-setwidth.lua
src/luatexja.lua

index b0ce39b..3da21dd 100644 (file)
   gt-m .code:n = % gtfamily , medium series
      \prop_put:Nnn \g__ltjpreset_font_prop { gt-u } {#1}
      \prop_put:Nnn \g__ltjpreset_font_prop { gt-d } {#1},
-  % gt-d, gt-u は隠し
   gt .groups:n = { preset },   gt .value_required:n = true,
   gt-m .groups:n = { preset }, gt-m .value_required:n = true,
 }
index a407393..0e8e39f 100644 (file)
@@ -128,8 +128,7 @@ local function capsule_glyph_yoko(p, met, char_data, head, dir)
       end
    end
 
-   local q
-   head, q = node_remove(head, p)
+   local q; head, q = node_remove(head, p)
    if pwidth > fwidth then
       if char_data.round_threshold then
          local frac = pwidth / fwidth
index f375d72..f7957a1 100644 (file)
@@ -323,13 +323,14 @@ do
    local to_node = node.direct.tonode
    local to_direct = node.direct.todirect
    local ensure_tex_attr = ltjb.ensure_tex_attr
-
+   local slide = node.slide
    -- mode = true iff main_process is called from pre_linebreak_filter
    local function main_process(head, mode, dir, gc)
       ensure_tex_attr(attr_icflag, 0)
       if gc == 'fin_row' then return head
       else
             start_time_measure('jfmglue')
+            slide(head);
             local p = ltjj.main(to_direct(head),mode, dir)
             stop_time_measure('jfmglue')
             return to_node(p)