diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/supp-dir.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/supp-dir.mkiv | 51 |
1 files changed, 22 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/supp-dir.mkiv b/Master/texmf-dist/tex/context/base/mkiv/supp-dir.mkiv index 277f2b7cac2..0b643709916 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/supp-dir.mkiv +++ b/Master/texmf-dist/tex/context/base/mkiv/supp-dir.mkiv @@ -13,41 +13,34 @@ \unprotect -\chardef\directionlefttoright\zerocount -\chardef\directionrighttoleft\plusone - -\edef\??bdir{\ifdefined\bodydir bdir\else direction\fi} - -\unexpanded\edef\naturalhbox {\hbox \??bdir\directionlefttoright} -\unexpanded\edef\naturalvbox {\vbox \??bdir\directionlefttoright} -\unexpanded\edef\naturalvtop {\vtop \??bdir\directionlefttoright} -\unexpanded\edef\naturalhpack {\hpack \??bdir\directionlefttoright} -\unexpanded\edef\naturalvpack {\vpack \??bdir\directionlefttoright} -\unexpanded\edef\naturaltpack {\tpack \??bdir\directionlefttoright} - -\unexpanded\edef\reversehbox {\hbox \??bdir\directionrighttoleft} -\unexpanded\edef\reversevbox {\vbox \??bdir\directionrighttoleft} -\unexpanded\edef\reversevtop {\vtop \??bdir\directionrighttoleft} -\unexpanded\edef\reversehpack {\hpack \??bdir\directionrighttoleft} -\unexpanded\edef\reversevpack {\vpack \??bdir\directionrighttoleft} -\unexpanded\edef\reversetpack {\tpack \??bdir\directionrighttoleft} - -\ifdefined\bodydir - \let\bodydir \undefined \let\normalbodydir \undefined - \let\bodydirection\undefined \let\normalbodydirection\undefined -\fi - -\ifdefined\pagedir - \let\pagedir \undefined \let\normalpagedir \undefined - \let\pagedirection\undefined \let\normalpagedirection\undefined -\fi +% \immutable\chardef\directionlefttoright\zerocount +% \immutable\chardef\directionrighttoleft\plusone + +\setnewconstant\directionlefttoright\zerocount +\setnewconstant\directionrighttoleft\plusone + +\immutable\edef\??bdir{\ifdefined\bodydir bdir\else direction\fi} + +\permanent\protected\edef\naturalhbox {\hbox \??bdir\directionlefttoright} +\permanent\protected\edef\naturalvbox {\vbox \??bdir\directionlefttoright} +\permanent\protected\edef\naturalvtop {\vtop \??bdir\directionlefttoright} +\permanent\protected\edef\naturalhpack {\hpack \??bdir\directionlefttoright} +\permanent\protected\edef\naturalvpack {\vpack \??bdir\directionlefttoright} +\permanent\protected\edef\naturaltpack {\tpack \??bdir\directionlefttoright} + +\permanent\protected\edef\reversehbox {\hbox \??bdir\directionrighttoleft} +\permanent\protected\edef\reversevbox {\vbox \??bdir\directionrighttoleft} +\permanent\protected\edef\reversevtop {\vtop \??bdir\directionrighttoleft} +\permanent\protected\edef\reversehpack {\hpack \??bdir\directionrighttoleft} +\permanent\protected\edef\reversevpack {\vpack \??bdir\directionrighttoleft} +\permanent\protected\edef\reversetpack {\tpack \??bdir\directionrighttoleft} % \expanded{\defineactivecharacter \number"2000E} {\textdirection\directionrighttoleft\relax} % \expanded{\defineactivecharacter \number"2000F} {\textdirection\directionlefttoright\relax} \def\syst_direction_string#1{\ifcase#1=\plusone r2l\else l2r\fi} -\unexpanded\def\showdirsinmargin +\permanent\protected\def\showdirsinmargin {\normalexpanded{\inleft{\naturalhbox {\ttxx[\syst_direction_string\pardirection,\syst_direction_string\textdirection]}}}} |