--
--- luatexja/jfmglue.lua
+-- luatexja/ltj-jfmglue.lua
--
luatexbase.provides_module({
name = 'luatexja.jfmglue',
- date = '2012/07/19',
- version = '0.5',
+ date = '2013/04/27',
description = 'Insertion process of JFM glues and kanjiskip',
})
module('luatexja.jfmglue', package.seeall)
local function check_box(box_ptr, box_end)
local p = box_ptr; local found_visible_node = false
if not p then
- find_first_char = false; first_char = nil; last_char = nil
+ find_first_char = false; last_char = nil
return true
end
while p and p~=box_end do
if not ihb_flag then
local pm = Np.met
return new_jfm_glue(pm,
- fast_find_char_class(((Nq.id == id_math and -1) or 'jcharbdd'), pm), Np.class)
+ fast_find_char_class(((Nq.id == id_math and -1) or (type(Nq.char)=='string' and Nq.char or 'jcharbdd')), pm), Np.class)
else return nil
end
end
local g = get_OA_skip() or get_kanjiskip() -- O_A->K
handle_penalty_normal(0, Np.pre, g); real_insert(g)
elseif Nq.pre then
- local g = get_OA_skip() or get_xkanjiskip(Np) -- O_A->X
+ local g = get_OA_skip() or get_xkanjiskip(Np) -- O_A->X
handle_penalty_normal((qid==id_hlist and 0 or Nq.post), Np.pre, g); real_insert(g)
else
local g = get_OA_skip() -- O_A