diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-16 22:46:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-16 22:46:28 +0000 |
commit | 30aa22dbd2e2adf3201d3bcbd83ae739c2d5c2de (patch) | |
tree | ca65cc13d3ef071aff7394e882a6a1bf2dfe2638 /Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | |
parent | c1940873407987b1fc01c8e71f35aa506689d8e6 (diff) |
xepersian (16jan18)
git-svn-id: svn://tug.org/texlive/trunk@46337 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 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index df8e113de6c..103fd695399 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{10569} +%% \CheckSum{10566} %% \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,9 +35,9 @@ %% Right brace \} Tilde \~} %% \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v20.6} -\def\xepersiandate{2018/01/08} -\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space +\def\xepersian@version{20.7} +\def\xepersiandate{2018/01/17} +\ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} \RequirePackage{xepersian-persiancal} @@ -53,7 +53,7 @@ Persian typesetting in XeLaTeX] * ^^J% * Copyright (c) 2008--2018 Vafa Khalighi^^J% * ^^J% -* \xepersianversion, \xepersiandate^^J% +* v\xepersian@version, \xepersiandate^^J% * ^^J% * License: LaTeX Project Public License, version^^J% * 1.3c or higher (your choice)^^J% @@ -68,21 +68,21 @@ Persian typesetting in XeLaTeX] \typeout{\@xepersian@info} \edef\xepersian@everyjob{\the\everyjob} \everyjob{\xepersian@everyjob\typeout{\@xepersian@info}} -\edef\@bidi@strip@v@xepersianversion{\expandafter\@gobble\xepersianversion} +\newcommand*{\xepersianversion}{$\xepersian@version$} \newcommand*{\IfxepersianPackageVersionLater}[1]{% - \ifdim\@bidi@strip@v@xepersianversion pt > #1 pt % + \ifdim\xepersian@version pt > #1 pt % \expandafter\@firstoftwo \else \expandafter\@secondoftwo \fi} \newcommand*{\IfxepersianPackageVersionBefore}[1]{% - \ifdim\@bidi@strip@v@xepersianversion pt < #1 pt % + \ifdim\xepersian@version pt < #1 pt % \expandafter\@firstoftwo \else \expandafter\@secondoftwo \fi} \newcommand*{\IfxepersianPackageVersion}[1]{% - \ifdim\@bidi@strip@v@xepersianversion pt = #1 pt % + \ifdim\xepersian@version pt = #1 pt % \expandafter\@firstoftwo \else \expandafter\@secondoftwo @@ -148,7 +148,7 @@ Persian typesetting in XeLaTeX] } \cs_new:Nn \__xepersian_main_settextdigitfont:nn { - \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Mapping=parsidigits,#1} {#2} + \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} \use:x { \exp_not:n { \DeclareRobustCommand \xepersian@textdigitfont } @@ -163,7 +163,7 @@ Persian typesetting in XeLaTeX] \XeTeXinterchartoks \bidi@digits@charclass \e@alloc@intercharclass@top = {\xepersian@@stop@switch@textdigitfont} \XeTeXinterchartoks \z@ \bidi@digits@charclass = {\xepersian@@start@switch@textdigitfont} \XeTeXinterchartoks \bidi@digits@charclass \z@ = {\xepersian@@stop@switch@textdigitfont} - \XeTeXinterchartoks \bidi@digits@charclass \bidi@sepmark@charclass = {\DigitsDotDashInterCharToks\xepersian@@stop@switch@textdigitfont} + \XeTeXinterchartoks \bidi@digits@charclass \bidi@sepmark@charclass = {\xepersian@@stop@switch@textdigitfont} \XeTeXinterchartoks \bidi@sepmark@charclass \bidi@digits@charclass = {\DigitsDotDashInterCharToks\xepersian@@start@switch@textdigitfont} \if@bidi@csundef{xepersian@D}{}{% \XeTeXinterchartoks \xepersian@D \bidi@digits@charclass = {\xepersian@@start@switch@textdigitfont} |