summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-09-17 22:11:40 +0000
committerKarl Berry <karl@freefriends.org>2013-09-17 22:11:40 +0000
commit389d70f9a442ed180389f17c2586983b861528e9 (patch)
tree3f7df46aa197a6317469dc4d65edf623b3482fdd /Master/texmf-dist/tex/xelatex/bidi/bidi.tex
parentbdc62c04f9ae222f720432f1651df51fba21f7bb (diff)
bidi (17sep13)
git-svn-id: svn://tug.org/texlive/trunk@31682 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.tex')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi.tex63
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.tex b/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
new file mode 100644
index 00000000000..5f932818a2d
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
@@ -0,0 +1,63 @@
+%%
+%% This is file `bidi.tex'.
+%%
+%% ______________________________________
+%% Copyright © 2009–2013 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\def\bididate{2013/09/06}
+\def\bidiversion{v0.2}
+\catcode`@=11
+\let \protect \relax
+\newlinechar`\^^J
+\edef\bidiinfo{%
+bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
+Description: A convenient interface for typesetting bidirectional^^J
+texts in plain TeX and LaTeX. The package includes adaptations for use^^J
+with many other commonly-used packages.^^J
+Copyright © 2009–2013 Vafa Khalighi^^J
+\bidiversion, \bididate^^J
+License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
+Location on CTAN: /macros/latex/contrib/bidi}
+\message{\bidiinfo}
+\edef\bidi@everyjob{\the\everyjob}
+\everyjob{\bidi@everyjob\message{\bidiinfo}}
+\input iftex.sty
+\RequireXeTeX
+\newif\if@RTLmain
+\newif\if@RTL
+\newif\if@sentdir
+\newif\if@RTL@footnote
+\@RTLmainfalse
+\def\setRTLmain{%
+ \if@RTLmain\else
+ \if@RTL\@RTLmaintrue%
+ \else\@RTLmainfalse%
+ \fi%
+ \fi%
+}
+\let\n@xt=\
+\protected\def\LRE{\protect\pLRE}%
+\def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
+\protected\def\RLE{\protect\pRLE}
+\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
+\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
+ \errmessage{Missing left brace has been substituted}\fi \bgroup}
+\input plain-xetex-bidi.def
+\catcode`@=12
+%%
+%% Copyright © 2009–2013 Vafa Khalighi <vafakh@me.com>
+%%
+%% It may be distributed and/or modified under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `bidi.tex'.