From: Hironori Kitagawa Date: Tue, 25 Feb 2014 08:03:07 +0000 (+0900) Subject: Bugfix: JFM glue whose priority is not zero didn't stretched in \ltjruby. X-Git-Tag: 20140504.0~13 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=773e61075d4d2c1ebc87ae1c7f82dbb84ef3e71d;p=luatex-ja%2Fluatexja.git Bugfix: JFM glue whose priority is not zero didn't stretched in \ltjruby. --- diff --git a/src/ltj-ruby.lua b/src/ltj-ruby.lua index 42c4074..6cf1b3f 100644 --- a/src/ltj-ruby.lua +++ b/src/ltj-ruby.lua @@ -176,11 +176,10 @@ do local hh, hd = getfield(box, 'height'), getfield(box, 'depth') local hx = h while hx do - if has_attr(hx, attr_icflag) == KANJI_SKIP - or has_attr(hx, attr_icflag) == KANJI_SKIP_JFM - or has_attr(hx, attr_icflag) == XKANJI_SKIP - or has_attr(hx, attr_icflag) == XKANJI_SKIP_JFM - or has_attr(hx, attr_icflag) == FROM_JFM then + local hic = has_attr(hx, attr_icflag) + if (hic == KANJI_SKIP) or (hic == KANJI_SKIP_JFM) + or (hic == XKANJI_SKIP) or (hic == XKANJI_SKIP_JFM) + or ((hic<=FROM_JFM+2) and (hic>=FROM_JFM-2)) then -- この 5 種類の空白をのばす if getid(hx) == id_kern then local k = node_new(id_glue)