summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty68
1 files changed, 41 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index 584c19a6473..484770bd964 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -7,23 +7,37 @@
%% xepersian.dtx (with options: `table,xepersian.sty')
%%
%% __________________________________________________
-%%
-%% Copyright (c) Vafa Khalighi 2007-2019
-%% bidi-tex GitHub Organisation 2018-2020
-%%
-%%
+%% Copyright (c) 2008--2020 Vafa Khalighi
+%% Copyright (c) 2018--2020 bidi-tex GitHub Organization
%%
%% 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 “author-maintained” (as per LPPL maintenance status)
-%% by bidi-tex GitHub Organisation.
+%% by Vafa Khalighi.
%%
%%
+%% \CheckSum{10968}
+%% \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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
\NeedsTeXFormat{LaTeX2e}
-\def\xepersian@version{22.8}
-\def\xepersiandate{2020-01-31}
+\def\xepersian@version{22.9}
+\def\xepersiandate{2020/05/14}
\ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -38,8 +52,8 @@ Persian typesetting in XeLaTeX]
* typesetting, using fonts provided in the^^J%
* distribution.^^J%
* ^^J%
-* Copyright (c) 2008-2019 Vafa Khalighi^^J%
-* 2018-2020 bidi-tex GitHub Organisation^^J%
+* Copyright (c) 2008--2020 Vafa Khalighi^^J%
+* Copyright (c) 2018--2020 bidi-tex GitHub Organization^^J%
* ^^J%
* v\xepersian@version, \xepersiandate^^J%
* ^^J%
@@ -48,7 +62,7 @@ Persian typesetting in XeLaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/xepersian^^J%
* ^^J%
-* Issue tracker: https://github.com/bidi-tex/xepersian/issues^^J%
+* Issue tracker: https://github.com/persiantex/xepersian/issues^^J%
* ^^J%
****************************************************}
\typeout{\@xepersian@info}
@@ -108,9 +122,8 @@ Persian typesetting in XeLaTeX]
\keys_define:nn {fontspec-opentype}
{
Ligatures / PersianTeX .code:n = { \tl_set:Nn \l__fontspec_mapping_tl {persian-tex-text} },
- Ligatures / PersianTeX .groups:n = {opentype},
+ Ligatures / PersianTeXOff .code:n = { \tl_clear:N \l__fontspec_mapping_tl },
Ligatures / PersianTeXReset .code:n = { \tl_clear:N \l__fontspec_mapping_tl },
- Ligatures / PersianTeXReset .groups:n = {opentype},
}
\keys_define:nn {fontspec-aat}
@@ -178,8 +191,6 @@ Persian typesetting in XeLaTeX]
\XeTeXinterchartoks \bidi@digits@charclass \xepersian@A = {\xepersian@@stop@switch@textdigitfont}
\XeTeXinterchartoks \xepersian@R \bidi@digits@charclass = {\xepersian@@start@switch@textdigitfont}
\XeTeXinterchartoks \bidi@digits@charclass \xepersian@R = {\xepersian@@stop@switch@textdigitfont}
- \XeTeXinterchartoks \xepersian@H \bidi@digits@charclass = {\xepersian@@start@switch@textdigitfont}
- \XeTeXinterchartoks \bidi@digits@charclass \xepersian@H = {\xepersian@@stop@switch@textdigitfont}
}
}
@@ -849,7 +860,7 @@ Persian typesetting in XeLaTeX]
\newcommand*{\@xepersian@pdfcustomproperties}{%
This is the xepersian package, Version \xepersian@version,
- Released May 1, 2019.
+ Released May 14, 2020.
}
\newcommand\twocolumnstableofcontents{%
@@ -1306,12 +1317,6 @@ number is 999,999,999.}%
\ifcase\xepersian@tempb\relax
\input{kashida-xepersian.def}
\fi}
-\define@choicekey{xepersian.sty}{KashidaXBFix}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{%
- \ifcase\xepersian@tempb\relax
- \@Kashida@XB@fixtrue
- \or
- \@Kashida@XB@fixfalse
- \fi}
\define@choicekey{xepersian.sty}{localise}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{%
\ifcase\xepersian@tempb\relax
\input{localise-xepersian.def}
@@ -1453,15 +1458,13 @@ number is 999,999,999.}%
\@bidi@perpage@footnotefalse
\fi}
-\ExplSyntaxOn
-\bool_new:N \l__xepersian_fontsloadable_bool
+\newif\if@xepersian@fontsloadable@bool
\define@choicekey{xepersian.sty}{fontsloadable}[\xepersian@tempa\xepersian@tempb]{true,false}[true]{%
\ifcase\xepersian@tempb\relax
- \bool_set_true:N \l__xepersian_fontsloadable_bool
+ \@xepersian@fontsloadable@booltrue
\or
- \bool_set_false:N \l__xepersian_fontsloadable_bool
+ \@xepersian@fontsloadable@boolfalse
\fi}
-\ExplSyntaxOff
\ExecuteOptionsX{%
fontsloadable=false,
@@ -1486,6 +1489,17 @@ number is 999,999,999.}%
\input{extrafootnotefeatures-xepersian.def}%
\fi
+\if@xepersian@fontsloadable@bool
+ \PackageWarningNoLine{xepersian}{%
+ The option `fontsloadable' should only be used in exceptional
+ cases.
+ You are not allowed to use the option `fontsloadable' unless
+ you have a written permission from the primary author of the
+ xepersian package}%
+\else
+ \input{fontspec-xepersian.def}%
+\fi
+
\bidi@patchcmd{\set@fontsize}{\@tempdimb#2pt}{%
\@tempdimb\xepersian@@fontsize@scale\dimexpr#2pt\relax
}{}{}