X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test%2Ftest12-ltjtarticle.tex;h=98c142c913f51f1c0812f47de35cd38f68be7851;hb=refs%2Fheads%2Ffix_morisawa-pr6n_luatexja-preset;hp=6aabd3cbcb795e3c69af76f2ba038de33f4da064;hpb=ca556d0d35d8850305379001632f86df7dc48225;p=luatex-ja%2Fluatexja.git diff --git a/test/test12-ltjtarticle.tex b/test/test12-ltjtarticle.tex index 6aabd3c..98c142c 100644 --- a/test/test12-ltjtarticle.tex +++ b/test/test12-ltjtarticle.tex @@ -12,7 +12,7 @@ \else\hbox{\yoko\@textsuperscript{\normalfont\@thefnmark}}\fi} \makeatother \fi -\usepackage{sansmathfonts} +%\usepackage{sansmathfonts} \usepackage[no-math]{fontspec} \usepackage[b5j,lines=20, textwidth=30\zw]{geometry} \usepackage[kozuka-pr6n]{luatexja-preset} @@ -53,6 +53,49 @@ baselineskip: \the\baselineskip}\par} あいうえおabc$-\vcenter{\noindent abc}$あいう$adxvsv\footnote{あいうえおabc}Ha$. \newpage + +\newpage +\ExplSyntaxOn +\cs_new:Nn \my_test_dir: {\texttt{ + \platex_if_direction_yoko:T { Y } + \platex_if_direction_tate_nomath:T { T } + \platex_if_direction_dtou:T { D } + \platex_if_direction_utod:T { U } + \space + \platex_if_direction_tate:T { Tx } + \platex_if_direction_tate_math:T { Tm } +}} +\cs_new:Nn \my_test_box: {\texttt{ + \platex_if_box_yoko:NT \l_tmpa_box { Y } + \platex_if_box_tate_nomath:NT \l_tmpa_box { T } + \platex_if_box_dtou:NT \l_tmpa_box { D } + \platex_if_box_utod:NT \l_tmpa_box { U } + \space + \platex_if_box_tate:NT \l_tmpa_box { Tx } + \platex_if_box_tate_math:NT \l_tmpa_box { Tm } +}} + +\mode_leave_vertical: +\hbox:n { \platex_direction_yoko: ABCあーいう \my_test_dir: } +\hbox:n { \platex_direction_tate: ABCあーいう \my_test_dir: } +\hbox:n { \platex_direction_dtou: ABCあーいう \my_test_dir: } + +\par +\mode_leave_vertical: +\hbox:n { \platex_direction_tate: $\hbox{PBCあーいう \my_test_dir:}$ } +\hbox:n { \platex_direction_utod: ABCあーいう \my_test_dir: } + +\par +1.~\hbox_set:Nn \l_tmpa_box { \platex_direction_yoko: ABCあーいう } \my_test_box:\par +2.~\hbox_set:Nn \l_tmpa_box { \platex_direction_tate: ABCあーいう } \my_test_box:\par +3.~\hbox_set:Nn \l_tmpa_box { \platex_direction_dtou: ABCあーいう } \my_test_box:\par +4.~\hbox_set:Nn \l_tmpa_box { \platex_direction_utod: ABCあーいう } \my_test_box:\par +5.~\hbox:n { \platex_direction_tate: $ \hbox_gset:Nn \l_tmpa_box { ABCあーいう } $ } \my_test_box: +\ExplSyntaxOff + + +\newpage \dtou あいうえお\footnote{あいうえおabc}あ + \end{document}