X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fluatexja.lua;h=2f83b48ac79760a4be19e52791a89367a1e2afad;hb=c35bc9236b8c249d3089a824fe197d0d1cde7e78;hp=98b0ae7dc5d6a38e85b21e47efd575bf833e2657;hpb=4b746683891210cff75916d8afd7c0c60ccfa622;p=luatex-ja%2Fluatexja.git diff --git a/src/luatexja.lua b/src/luatexja.lua index 98b0ae7..2f83b48 100644 --- a/src/luatexja.lua +++ b/src/luatexja.lua @@ -79,14 +79,15 @@ local cat_lp = luatexbase.catcodetables['latex-package'] local ITALIC = 1 local PACKED = 2 local KINSOKU = 3 -local FROM_JFM = 4 -local LINE_END = 5 -local KANJI_SKIP = 6 -local XKANJI_SKIP = 7 -local PROCESSED = 8 -local IC_PROCESSED = 9 +local FROM_JFM = 6 +-- FROM_JFM: 4, 5, 6, 7, 8 →優先度高 +-- 6 が標準 +local KANJI_SKIP = 9 +local XKANJI_SKIP = 10 +local PROCESSED = 11 +local IC_PROCESSED = 12 local BOXBDD = 15 -local PROCESSED_BEGIN_FLAG = 16 +local PROCESSED_BEGIN_FLAG = 32 -- Three aux. functions, bollowed from tex.web @@ -180,14 +181,16 @@ function luatexja.ext_get_parameter_binary(k,c) c=0 end if k == 'jacharrange' then - if c<0 or c>216 then + if c>=7*ltjc.ATTR_RANGE then ltjb.package_error('luatexja', 'invalid character range number (' .. c .. ')', - 'A character range number should be in the range 0..216,\n'.. + 'A character range number should be in the range 0..' + .. 7+ATTR_RANGE-1 .. ",\n".. 'So I changed this one to zero.') c=0 end - tex.write(ltjc.get_range_setting(c)) + -- 負の値は 0x10FFFF then ltjb.package_error('luatexja', @@ -287,8 +290,8 @@ local function debug_show_node_X(p,print_fn) debug_depth=k elseif pt == 'glue' then s = base .. ' ' .. print_spec(p.spec) - if get_attr_icflag(p)==FROM_JFM then - s = s .. ' (from JFM)' + if get_attr_icflag(p)>KINSOKU and get_attr_icflag(p)KINSOKU and get_attr_icflag(p)