summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-09-25 21:41:18 +0000
committerKarl Berry <karl@freefriends.org>2014-09-25 21:41:18 +0000
commitf1cd3caa2905cec5cd83d4b53e3c11287dcc50cb (patch)
tree58bfb624e8d7bdd2a4d1573e55ba1efec71d9199 /Master/texmf-dist/tex/xelatex/bidi/bidi.sty
parent1774462ee3e140412a989f454c5f8763ba6e7758 (diff)
bidi (25sep14)
git-svn-id: svn://tug.org/texlive/trunk@35259 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi.sty61
1 files changed, 52 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
index 96fc8390513..bc61b69bb4b 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
+++ b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
@@ -7,7 +7,7 @@
%% bidi.dtx (with options: `table,bidi.sty')
%%
%% __________________________________________________
-%% Copyright © 2009–2014 Vafa Khalighi <tex.ctan@gmail.com>
+%% Copyright © 2009–2014 Vafa Khalighi <persian-tex@tug.org>
%%
%% It may be distributed and/or modified under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{42025}
+%% \CheckSum{42082}
%% \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,8 +35,8 @@
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2014/09/20}
-\def\bidiversion{v15.6}
+\def\bididate{2014/09/25}
+\def\bidiversion{v15.7}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\@bidi@info{****************************************************^^J%
@@ -58,7 +58,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/bidi^^J%
* ^^J%
-* Support: tex.ctan@gmail.com^^J%
+* Issue tracker: https://github.com/persian-tex/bidi/issues^^J%
+* ^^J%
+* Support: persian-tex@tug.org^^J%
****************************************************}
\typeout{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
@@ -69,6 +71,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
\RequirePackage{zref-abspage}
\RequirePackage{auxhook}
\RequirePackage{ltxcmds}
+\RequirePackage{xkeyval}
\eqnewif{\if@RTLmain}{\if@rlmain}
\eqnewif{\if@RTL}{\if@rl}
\newif\if@Latin
@@ -100,10 +103,50 @@ Bidirectional typesetting in plain TeX and LaTeX]
\errmessage{Missing left brace has been substituted}\fi \bgroup}
\input{latex-xetex-bidi.def}
\input{loadingorder-xetex-bidi.def}
-\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
-\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
-\DeclareOption{extrafootnotefeatures}{\@extrafootnotefeaturestrue}
-\ProcessOptions
+\define@choicekey{bidi.sty}{RTLdocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \@RTLtrue
+ \or
+ \@RTLfalse
+ \fi}
+\define@choicekey{bidi.sty}{rldocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \@RTLtrue
+ \or
+ \@RTLfalse
+ \fi}
+\define@choicekey{bidi.sty}{footnoterule}[\bidi@tempa\bidi@tempb]{automatic,left,right,split,textwidth}{%
+ \ifcase\bidi@tempb\relax
+ \autofootnoterule
+ \or
+ \leftfootnoterule
+ \or
+ \rightfootnoterule
+ \or
+ \SplitFootnoteRule
+ \or
+ \textwidthfootnoterule
+ \fi}
+\define@choicekey{bidi.sty}{footnotedirection}[\bidi@tempa\bidi@tempb]{righttoleft,lefttoright}{%
+ \ifcase\bidi@tempb\relax
+ \@RTL@footnotetrue
+ \or
+ \@RTL@footnotefalse
+ \fi}
+\define@choicekey{bidi.sty}{debugfootnotedirection}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \footdir@debugtrue
+ \or
+ \footdir@debugfalse
+ \fi}
+\define@choicekey{bidi.sty}{extrafootnotefeatures}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \@extrafootnotefeaturestrue
+ \or
+ \@extrafootnotefeaturesfalse
+ \fi}
+
+\ProcessOptionsX
\if@extrafootnotefeatures
\input{extrafootnotefeatures-xetex-bidi.def}