summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/biditools.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/biditools.sty27
1 files changed, 25 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty b/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
index a1827a90a6b..17fb43fbfc8 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
+++ b/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{44787}
+%% \CheckSum{44926}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -35,7 +35,7 @@
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biditools}[2015/10/03 v0.6 Programming tools for bidi package]
+\ProvidesPackage{biditools}[2015/10/31 v0.7 Programming tools for bidi package]
\providecommand{\@bidi@saveprimitive}[2]{\begingroup\escapechar`\\\relax
\edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
\ifx\@tempa\@tempb \global\let#2#1%
@@ -98,6 +98,29 @@
\fi
\bidi@process@envbody % A little tricky! Note the grouping
}
+\long\def\bidi@new@ifnextchar#1#2#3{%
+ \let\reserved@d= #1%
+ \def\reserved@a{#2}\def\reserved@b{#3}%
+ \futurelet\@let@token\bidi@new@ifnch
+}
+\def\bidi@new@ifnch{%
+ \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi
+ \reserved@b
+}
+\def\bidi@matrix@check#1{%
+ \expandafter\ifx\csname\@currenvir\endcsname#1%
+ \else\bidi@matrix@error#1%
+ \expandafter\@gobble
+ \fi
+}
+\def\bidi@matrix@error#1{%
+ \PackageError{biditools}{%
+Old form `\string#1' should be \string\begin{\expandafter\@gobble\string#1}%
+ }{%
+`\string#1{...}' is old bidi package syntax whose use is
+ill-advised in the old versions of bidi package.%
+ }%
+}
\def\@tagsextension{clo}
\def\@definitionfileextension{def}
\def\@iftagsloaded{\@ifl@aded\@tagsextension}