From: Hironori Kitagawa Date: Fri, 2 Aug 2019 04:17:37 +0000 (+0900) Subject: Revert "check_box: ignore JFM glue between 'boxbdd'" X-Git-Tag: 20190826.0~8 X-Git-Url: http://git.osdn.net/view?p=luatex-ja%2Fluatexja.git;a=commitdiff_plain;h=3613db91c12dae3275d70f4bc3c9b52d2fc3b915;hp=9a6b24dad229f0c279d46b8243ebb6691cf0c684 Revert "check_box: ignore JFM glue between 'boxbdd'" This reverts commit e3338432ebf1187e93c2d7a2b8ebb194763162ed. --- diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx index 1af2e55..e8a79e0 100644 --- a/doc/luatexja.dtx +++ b/doc/luatexja.dtx @@ -9588,9 +9588,6 @@ $\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$の算出は, \verb+\lower1pt\hbox{xyz}+ に対応するノードである. \item また,先頭にアクセント付きの文字がきたり,末尾にイタリック補正用のカーンが 来ることもあり得る.この場合は,クラスタの定義のところにもあったように,それらは無視して算出を行う. -\item 最初・最後のノードが「文字コード\texttt{'boxbdd'}の文字」との間に入るJFMグルーという場合も, - これらは無視して算出を行う. - % TODO: 欧文フォント由来のカーニング \item 最初・最後のノードが合字によって作られた\textit{glyph\_node}のときは,それぞれに対して\textit{id\_glyph}% と同様に再帰的に構成要素をたどっていく. \end{itemize} diff --git a/src/ltj-jfmglue.lua b/src/ltj-jfmglue.lua index 574302a..f94b028 100644 --- a/src/ltj-jfmglue.lua +++ b/src/ltj-jfmglue.lua @@ -191,8 +191,7 @@ local function check_box(box_ptr, box_end) end if pid==id_kern then local pa = get_attr_icflag(p) - if (pa==IC_PROCESSED)or(pa==BOXBDD) then - --if (pa==IC_PROCESSED)or(pa==BOXBDD)or(getsubtype(p)==0) then + if pa==IC_PROCESSED then -- do nothing elseif getsubtype(p)==2 then p = node_next(node_next(p)); @@ -222,8 +221,7 @@ local function check_box(box_ptr, box_end) first_char = p; find_first_char = false end last_char = p; found_visible_node = true - elseif (pid==id_rule and get_attr_icflag(p)==PACKED) - or (pid==id_glue and get_attr_icflag(p)==BOXBDD) then + elseif pid==id_rule and get_attr_icflag(p)==PACKED then -- do nothing elseif not (pid==id_ins or pid==id_mark or pid==id_adjust or pid==id_whatsit