summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def12
1 files changed, 5 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
index c93d7c4a76a..6639ff7f743 100644
--- a/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/plain-xetex-bidi.def
@@ -12,9 +12,9 @@
%% License information appended.
%%
%%
-\ifx\TeXXeTstate\undefined\else%
- \TeXXeTstate=1
-\fi
+\def\TeXXeTOn{\TeXXeTstate=1 }
+\def\TeXXeTOff{\TeXXeTstate=0 }
+\TeXXeTOn
\def\Bidi@RTL@everypar{\if@RTL{\setbox\z@\lastbox\beginR\box\z@}\fi}
\let\o@everypar=\everypar
\newtoks\n@everypar
@@ -45,18 +45,16 @@
\everyvbox{%
\aftergroup\egroup
\everyvbox{}%
- \beginR
+ \@RTLtrue
\bgroup
- \aftergroup\endR
\aftergroup\egroup
}\vbox}
\protected\def\vboxL{\vbox\bgroup
\everyvbox{%
\aftergroup\egroup
\everyvbox{}%
- \beginL
+ \@RTLfalse
\bgroup
- \aftergroup\endL
\aftergroup\egroup
}\vbox}
\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}