From: Hironori Kitagawa Date: Mon, 3 Apr 2017 00:40:36 +0000 (+0900) Subject: Fix ticket #37100 X-Git-Tag: 20170505.0~13 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=a07138797b6adcac6f2dfa5195fac782f055c657;p=luatex-ja%2Fluatexja.git Fix ticket #37100 --- diff --git a/src/ltj-jfmglue.lua b/src/ltj-jfmglue.lua index 174e0aa..97498ad 100644 --- a/src/ltj-jfmglue.lua +++ b/src/ltj-jfmglue.lua @@ -1237,6 +1237,8 @@ do elseif Np and getfield(lp, 'user_id') == BPAR then Np.first = lp; Np.nuc = lp; Np.last = lp return Np + else + return Np end end diff --git a/src/ltj-ruby.lua b/src/ltj-ruby.lua index 85f7568..4d3804f 100644 --- a/src/ltj-ruby.lua +++ b/src/ltj-ruby.lua @@ -673,9 +673,9 @@ luatexbase.add_to_callback('hpack_filter', post_high_hbox, 'ltj.ruby.post_hbox', ---------------------------------------------------------------- do local RIPRE = luatexja.stack_table_index.RIPRE - local function whatsit_callback(Np, lp, Nq, bsl) + local function whatsit_callback(Np, lp, Nq) if Np.nuc then return Np - elseif getfield(lp, 'user_id') == RUBY_PRE then + elseif getfield(lp, 'user_id') == RUBY_PRE then Np.first, Np.nuc, Np.last = lp, lp, lp local lpv = getfield(lp, 'value') local x = node_next(node_next(lpv)) @@ -711,6 +711,8 @@ do set_attr(lpv, attr_ruby_maxprep, 0) end return Np + else + return Np end end luatexbase.add_to_callback("luatexja.jfmglue.whatsit_getinfo", whatsit_callback,