diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/biditools.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/biditools.sty | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty b/Master/texmf-dist/tex/xelatex/bidi/biditools.sty index 81da215939c..5bd8c553213 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{50046} +%% \CheckSum{50078} %% \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/12 v1.7 Programming tools for bidi package] +\ProvidesPackage{biditools}[2018/12/10 v1.8 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% @@ -942,20 +942,28 @@ ill-advised in the old versions of bidi package.% \long\def\@bidi@prepend@to@cslist#1#2#3{\begingroup\bidi@toks@lista=#2{#3}% \global#1=\expandafter\expandafter\expandafter{\expandafter\the\expandafter\bidi@toks@lista\the#1}\endgroup} \def\@bidi@append@to@list{\bidi@csarg\@bidi@append@to@cslist} +\def\@bidi@prepend@to@list{\bidi@csarg\@bidi@prepend@to@cslist} \long\def\bidi@append@to@list#1#2{\@bidi@append@to@list{#1}{}{#2}} +\long\def\bidi@prepend@to@list#1#2{\@bidi@prepend@to@list{#1}{}{#2}} \def\bidi@append@list@to@list#1#2{% \@bidi@append@to@list{#1}{\expandafter\expandafter\expandafter}{\expandafter\the\csname#2\endcsname}} +\def\bidi@prepend@list@to@list#1#2{% + \@bidi@prepend@to@list{#1}{\expandafter\expandafter\expandafter}{\expandafter\the\csname#2\endcsname}} \def\bidi@append@cslist@to@cslist#1#2{% \@bidi@append@to@cslist{#1}\expandafter{\the#2}} +\def\bidi@prepend@cslist@to@cslist#1#2{% + \@bidi@prepend@to@cslist{#1}\expandafter{\the#2}} \def\bidi@append@toks@cs@to@list#1#2{\@bidi@append@to@list{#1}\expandafter{\the#2}} +\def\bidi@prepend@toks@cs@to@list#1#2{\@bidi@prepend@to@list{#1}\expandafter{\the#2}} \let\bidi@willbeunhskip\unhskip -\def\NewList:#1 {\bidi@csarg\newtoks{#1}\global\csname#1\endcsname{}} -\def\EmptyList:#1 {\global\csname#1\endcsname{}} -\long\def\AppendToList:#1=#2 {\@bidi@append@to@list{#1}{}{#2}} -\def\TheList:#1 {\let\bidi@oldwbuskip\bidi@willbeunhskip \let\bidi@willbeunhskip\@empty - \if\bidi@undefinedcs{#1}\bidi@error{List <#1> undefined} +\def\NewTokenList:#1 {\bidi@csarg\newtoks{#1}\global\csname#1\endcsname{}} +\def\EmptyTokenList:#1 {\global\csname#1\endcsname{}} +\long\def\AppendToTokenList:#1=#2 {\@bidi@append@to@list{#1}{}{#2}} +\long\def\PrependToTokenList:#1=#2 {\@bidi@prepend@to@list{#1}{}{#2}} +\def\TheTokenList:#1 {\let\bidi@oldwbuskip\bidi@willbeunhskip \let\bidi@willbeunhskip\@empty + \if\bidi@undefinedcs{#1}\bidi@error{Token List <#1> undefined} \else\bidi@csarg\the{#1}\fi \let\bidi@willbeunhskip\bidi@oldwbuskip} |