From: Hironori Kitagawa Date: Sun, 29 Jun 2014 02:07:15 +0000 (+0900) Subject: luatexja-core.sty: \iftdir etc. now works in \hbox{{\tate ...}\iftdir T\fi}. X-Git-Tag: 20150420.0~176 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=2f800c33dacec1e80b0271b5ee7b2e5c816f63b7;hp=-c;p=luatex-ja%2Fluatexja.git luatexja-core.sty: \iftdir etc. now works in \hbox{{\tate ...}\iftdir T\fi}. --- 2f800c33dacec1e80b0271b5ee7b2e5c816f63b7 diff --git a/src/ltj-direction.lua b/src/ltj-direction.lua index fe708bb..e0d16cd 100644 --- a/src/ltj-direction.lua +++ b/src/ltj-direction.lua @@ -74,13 +74,13 @@ local function adjust_badness(hd) end local get_dir_count --- \tate, \yoko do local function get_dir_count_inner(h) if h then if h.id==id_whatsit and h.subtype==sid_user and h.user_id==DIR then local ic = node.has_attribute(h, attr_icflag) - return (ic ', tex.print)}\par} \setbox0=\hbox{\yoko \ltjsetwd1=50pt} +{\obeylines\seventt\baselineskip=10pt +\directlua{luatexja.ext_show_node_list(tex.box[1], 'dir node1> ', tex.print)}\par} \setbox0=\hbox{\dtou \ltjsetwd1=2pt} {\obeylines\seventt\baselineskip=10pt -\directlua{luatexja.ext_show_node_list(tex.box[1], 'dir node> ', tex.print)}\par} +\directlua{luatexja.ext_show_node_list(tex.box[1], 'dir node2> ', tex.print)}\par} \setbox0=\hbox{\yoko \ltjsetht1=30pt} {\obeylines\seventt\baselineskip=10pt @@ -337,5 +344,8 @@ p\kern-.15em\TeX\ bug (2011-02-24) \vbox{\tate\hsize=4\zw\R\R\R\R} ABCDE +%\tracingall +\hbox{\tate {\dtou 感じ\ifddir D\fi\iftdir T\fi}\ifddir D\fi\iftdir T\fi} + \end