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.sty17
1 files changed, 15 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty b/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
index 743569a883f..a6e8554854a 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{50654}
+%% \CheckSum{50675}
%% \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}[2018/10/03 v1.5 Programming tools for bidi package]
+\ProvidesPackage{biditools}[2018/10/04 v1.6 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%
@@ -782,6 +782,19 @@ ill-advised in the old versions of bidi package.%
Patching '\string\end' failed!\MessageBreak
'\string\bidi@AfterEndEnvironment' will not work\@gobble}}
+\def\bidi@namedef#1{\expandafter\def\csname #1\endcsname}
+\def\bidi@namegdef#1{\expandafter\gdef\csname #1\endcsname}
+\def\bidi@nameedef#1{\expandafter\edef\csname #1\endcsname}
+\def\bidi@namexdef#1{\expandafter\xdef\csname #1\endcsname}
+
+\bidi@pretocmd\stepcounter
+ {%
+ \if@bidi@csundef{bidi@stepcounterhook@@#1}{}{%
+ \csname bidi@stepcounterhook@@#1\endcsname
+ }%
+ }{}%
+ {\PackageWarning{biditools}{Patching `\string\stepcounter' failed}}
+
\chardef\bidi@backslash`\\
\def\bidics#1{\texttt{\char\bidi@backslash#1}}