summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-07-03 22:04:32 +0000
committerKarl Berry <karl@freefriends.org>2015-07-03 22:04:32 +0000
commit7bccd1325cbbedb9f5352aabe50e75d0c1f20cca (patch)
treecc6cfb9077b5d1333e643a89c96e2ee7284ab2ae /Master/texmf-dist/tex/xelatex/bidi/biditools.sty
parentbe23614d2a6893dde069ce369010cd1b1bbfadb4 (diff)
bidi (3jul15)
git-svn-id: svn://tug.org/texlive/trunk@37745 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/biditools.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/biditools.sty13
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty b/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
index 4d6d92d74a9..0d22d70b5c6 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{44377}
+%% \CheckSum{44602}
%% \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/02/16 v0.4 Programming tools for bidi package]
+\ProvidesPackage{biditools}[2015/06/29 v0.5 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%
@@ -68,6 +68,15 @@
\expandafter\@gobbletwo\string#3\endcsname
{\let#2#3%
\let#1#3}}
+\def\@bidi@removefromreset#1#2{{%
+ \expandafter\let\csname c@#1\endcsname\@removefromreset
+ \def\@elt##1{%
+ \expandafter\ifx\csname c@##1\endcsname\@removefromreset
+ \else
+ \noexpand\@elt{##1}%
+ \fi}%
+ \expandafter\xdef\csname cl@#2\endcsname{%
+ \csname cl@#2\endcsname}}}
\newcommand*{\if@bidi@csdef}[1]{%
\ifcsname#1\endcsname
\expandafter\@firstoftwo