diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-31 23:43:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-31 23:43:38 +0000 |
commit | 21d4c66b858e7e5a624693762b51ccd29c7c989e (patch) | |
tree | 005b3ed5046446a5ce9182096963a5cf91db7c8a /Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | |
parent | cf49355b168ebe03a87c8c80e7c92f25ca0c0add (diff) |
xepersian (31mar13)
git-svn-id: svn://tug.org/texlive/trunk@29574 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index 02718c10f02..d81991127b6 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -7,14 +7,15 @@ %% xepersian.dtx (with options: `xepersian.sty') %% %% ______________________________________ -%% Copyright © 2008–2012 Vafa Khalighi +%% Copyright © 2008–2013 Vafa Khalighi %% %% License information appended. %% %% + \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v12 (Final Version)} -\def\xepersiandate{2012/12/12} +\def\xepersianversion{v12.1} +\def\xepersiandate{2013/04/01} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -25,7 +26,7 @@ Persian typesetting in XeLaTeX] xepersian package (Persian for LaTeX over XeTeX)^^J Description: The package supports Persian^^J typesetting, using fonts provided in the distribution.^^J -Copyright © 2008–2012 Vafa Khalighi^^J +Copyright © 2008–2013 Vafa Khalighi^^J \xepersianversion, \xepersiandate^^J License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J Location on CTAN: /macros/xetex/latex/xepersian} @@ -165,12 +166,14 @@ Location on CTAN: /macros/xetex/latex/xepersian} \setiranicfont[ExternalLocation,BoldFont={persian-modern-boldoblique}]{persian-modern-oblique} \def\resetlatinfont{% \let\normalfont\latinfont% +\let\reset@font\normalfont% \latinfont} \def\setpersianfont{% \let\normalfont\persianfont% +\let\reset@font\normalfont% \persianfont} -\bidi@newrobustcmd*{\lr}[1]{\LRE{\latinfont#1}} -\bidi@newrobustcmd*{\rl}[1]{\RLE{\persianfont#1}} +\bidi@newrobustcmd*{\lr}[1]{\LRE{\@Latintrue\latinfont#1}} +\bidi@newrobustcmd*{\rl}[1]{\RLE{\@Latinfalse\persianfont#1}} \def\latin{\LTR\LatinAlphs\@Latintrue\@RTL@footnotefalse\resetlatinfont} \def\endlatin{\endLTR} \def\persian{\RTL\PersianAlphs\@RTL@footnotetrue\setpersianfont} @@ -241,7 +244,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \vfil \color@hbox \normalcolor - \hb@xt@\textwidth{\if@RTLmain\beginR\fi\@thehead\if@RTLmain\endR\fi}% + \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thehead\if@RTLmain\endR\else\endL\fi}% \color@endbox }% %% 22 Feb 87 \dp\@tempboxa \z@ @@ -251,7 +254,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \baselineskip \footskip \color@hbox \normalcolor - \hb@xt@\textwidth{\if@RTLmain\beginR\fi\@thefoot\if@RTLmain\endR\fi}% + \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thefoot\if@RTLmain\endR\else\endL\fi}% \color@endbox }% }% @@ -603,7 +606,7 @@ number is 999,999,999.}% \ExecuteOptions{localise} \ProcessOptions %% -%% Copyright © 2008–2012 Vafa Khalighi <vafak12@gmail.com> +%% Copyright © 2008–2013 Vafa Khalighi <vafa[dot]kgh[at]gmail[dot]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 |