From: Hironori Kitagawa Date: Sat, 1 Feb 2014 23:06:22 +0000 (+0900) Subject: Compatibility with LuaTeX 0.76.0 X-Git-Tag: 20140204.0~8^2 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=7179c9a27e961a5f88fa05feb97f4583a7b866ec;p=luatex-ja%2Fluatexja.git Compatibility with LuaTeX 0.76.0 --- diff --git a/src/ltj-adjust.lua b/src/ltj-adjust.lua index 09125a1..5c0a781 100644 --- a/src/ltj-adjust.lua +++ b/src/ltj-adjust.lua @@ -3,7 +3,7 @@ -- luatexbase.provides_module({ name = 'luatexja.adjust', - date = '2014/02/01', + date = '2014/02/02', description = 'Advanced line adjustment for LuaTeX-ja', }) module('luatexja.adjust', package.seeall) @@ -29,9 +29,9 @@ local node_traverse_id = Dnode.traverse_id local node_new = Dnode.new local node_copy = Dnode.copy local node_hpack = Dnode.hpack -local node_next = Dnode.getnext +local node_next = (Dnode ~= node) and Dnode.getnext or node.next local node_free = Dnode.free -local node_prev = Dnode.getprev +local node_prev = (Dnode ~= node) and Dnode.getprev or node.prev local node_tail = Dnode.tail local has_attr = Dnode.has_attribute local set_attr = Dnode.set_attribute diff --git a/src/ltj-jfmglue.lua b/src/ltj-jfmglue.lua index 8946027..bd308a5 100644 --- a/src/ltj-jfmglue.lua +++ b/src/ltj-jfmglue.lua @@ -3,7 +3,7 @@ -- luatexbase.provides_module({ name = 'luatexja.jfmglue', - date = '2014/02/01', + date = '2014/02/02', description = 'Insertion process of JFM glues and kanjiskip', }) module('luatexja.jfmglue', package.seeall) @@ -31,7 +31,7 @@ local has_attr = Dnode.has_attribute local set_attr = Dnode.set_attribute local insert_before = Dnode.insert_before local insert_after = Dnode.insert_after -local node_next = Dnode.getnext +local node_next = (Dnode ~= node) and Dnode.getnext or node.next local round = tex.round local ltjf_font_metric_table = ltjf.font_metric_table local ltjf_find_char_class = ltjf.find_char_class @@ -271,7 +271,7 @@ local function set_attr_icflag_processed(p) end local function check_next_ickern(lp) - if getid(lp) == id_kern and ITALIC == get_attr_icflag(lp) then + if lp and getid(lp) == id_kern and ITALIC == get_attr_icflag(lp) then set_attr(lp, attr_icflag, IC_PROCESSED) Np.last = lp; return node_next(lp) else @@ -284,7 +284,7 @@ local function calc_np_pbox(lp) local lpa, nc = KINSOKU, nil set_attr(lp, attr_icflag, get_attr_icflag(lp)); while lp and (lpa>=PACKED) and (lpa