X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fluatexja.lua;fp=src%2Fluatexja.lua;h=1013684496a434d2c3639b272ad8b022fe4a9115;hb=20459b277fc117f254d76886bf00c63e5abdfcc7;hp=f4536580e36ac5465f8d950fe48c9eded78f0906;hpb=cc1d4882211e26f5c48d1f57dc41c873eb04e397;p=luatex-ja%2Fluatexja.git diff --git a/src/luatexja.lua b/src/luatexja.lua index f453658..1013684 100644 --- a/src/luatexja.lua +++ b/src/luatexja.lua @@ -424,7 +424,8 @@ local function debug_show_node_X(p,print_fn, limit, inner_depth) local k = prefix local s local pt, pic = node_type(p.id), (get_attr(p, attr_icflag) or 0) % icflag_table.PROCESSED_BEGIN_FLAG - local base = prefix .. string.format('%X', pic) .. ' ' .. pt .. ' ' .. tostring(p.subtype) .. ' ' + local base = prefix .. '[' .. string.format('%7d', node.direct.todirect(p)) .. '] ' .. + string.format('%X', pic) .. ' ' .. pt .. ' ' .. tostring(p.subtype) .. ' ' if pt == 'glyph' then s = base .. ' ' .. (p.char<0xF0000 and utfchar(p.char) or '') @@ -531,7 +532,7 @@ local function debug_show_node_X(p,print_fn, limit, inner_depth) local t = tostring(p.user_id) .. ' (' .. luatexbase.get_user_whatsit_name(p.user_id) .. ') ' if p.type ~= 110 then - s = s .. ' userid:' .. t .. p.value + s = s .. ' userid:' .. t .. tostring(p.value) print_fn(s) else s = s .. ' userid:' .. t .. '(node list)'