summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-15 23:19:04 +0000
committerKarl Berry <karl@freefriends.org>2010-04-15 23:19:04 +0000
commit8369ad5a44fba9e4154c1a9d2e12b68bd53d35e5 (patch)
treefa10280aa5ff26827700bff52d2f5f219d49575b /Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
parentd76b75890bbe6fcc8e7417b910a6e548a7a5fe42 (diff)
bidi update (14apr10)
git-svn-id: svn://tug.org/texlive/trunk@17886 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xetex-bidi.def81
1 files changed, 40 insertions, 41 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
index ef377a15db1..3080f735671 100644
--- a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
@@ -20,42 +20,42 @@
\let\everypar=\n@everypar
\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
-\def\hboxR#1#{%
- \getarg@hboxR{#1}%
- }
-\def\getarg@hboxR#1#2{%
- \hbox#1{\beginR#2\endR}%
- }
-\def\hboxL#1#{%
- \getarg@hboxL{#1}%
- }
-\def\getarg@hboxL#1#2{%
- \hbox#1{\beginL#2\endL}%
- }
-\def\vboxR#1#{%
- \getarg@vboxR{#1}%
- }
-\def\getarg@vboxR#1#2{%
- \vbox#1{\beginR#2\endR}%
- }
-\def\vboxL#1#{%
- \getarg@vboxL{#1}%
- }
-\def\getarg@vboxL#1#2{%
- \vbox#1{\beginL#2\endL}%
- }
-\def\halignR#1#{%
- \getarg@halignR{#1}%
- }
-\def\getarg@halignR#1#2{%
- \hbox{\beginR\vbox{\halign#1{#2}}\endR}%
- }
-\def\halignL#1#{%
- \getarg@halignL{#1}%
- }
-\def\getarg@halignL#1#2{%
- \hbox{\beginL\vbox{\halign#1{#2}}\endL}%
- }
+\protected\def\hboxR{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \beginR
+ \bgroup
+ \aftergroup\endR
+ \aftergroup\egroup
+ }\hbox}
+\protected\def\hboxL{\hbox\bgroup
+ \everyhbox{%
+ \aftergroup\egroup
+ \everyhbox{}%
+ \beginL
+ \bgroup
+ \aftergroup\endL
+ \aftergroup\egroup
+ }\hbox}
+\protected\def\vboxR{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \beginR
+ \bgroup
+ \aftergroup\endR
+ \aftergroup\egroup
+ }\vbox}
+\protected\def\vboxL{\vbox\bgroup
+ \everyvbox{%
+ \aftergroup\egroup
+ \everyvbox{}%
+ \beginL
+ \bgroup
+ \aftergroup\endL
+ \aftergroup\egroup
+ }\vbox}
\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
\def\endLTR{\par}
\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
@@ -284,10 +284,6 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\renewcommand{\@outputdblcol}{\if@RTLmain\RTL@outputdblcol\else\LTR@outputdblcol\fi}
\newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL@outputdblcol}}
\newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR@outputdblcol}}
-\def \@setminipage{%
- \@minipagetrue
- \everypar{\@minipagefalse\everypar{}\if@RTL\beginR\else\beginL\fi}%
-}
\def\endminipage{%
\par
\unskip
@@ -299,6 +295,9 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\fi
\@minipagefalse %% added 24 May 89
\color@endgroup
+ \egroup
+ \if@RTL\endL\fi
+ \egroup
\egroup
\expandafter\@iiiparbox\@mpargs{\leavevmode\unvbox\@tempboxa}}
\def\@arrayparboxrestore{%
@@ -440,7 +439,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\hb@xt@\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}%
\fi
\vskip\belowcaptionskip}
-\everydisplay{\predisplaydirection=0}
+\everydisplay{\predisplaydirection=0 }
\def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
\input{footnote-xetex-bidi.def}
\@iftagsloaded{leqno}{\input{leqno-xetex-bidi.def}}{}