summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/xepersian/xepersian.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/xetex/latex/xepersian/xepersian.dtx')
-rw-r--r--macros/xetex/latex/xepersian/xepersian.dtx91
1 files changed, 43 insertions, 48 deletions
diff --git a/macros/xetex/latex/xepersian/xepersian.dtx b/macros/xetex/latex/xepersian/xepersian.dtx
index 28e5a2eff7..7bf394e7b3 100644
--- a/macros/xetex/latex/xepersian/xepersian.dtx
+++ b/macros/xetex/latex/xepersian/xepersian.dtx
@@ -5,7 +5,7 @@
%<*readme>
____________________
The XePersian package
-v23.7
+v23.9
The xepersian package provides a convenient interface for
typesetting Persian and English texts in LaTeX, using XeTeX
@@ -16,7 +16,7 @@ documentation, or ask for any new features, or suggest any
improvements, or ask any questions about the package, then
please use the issue tracker:
- <https://github.com/tex-persian/xepersian/issues>
+ <https://github.com/kvafa/xepersian/issues>
In doing so, please always explain your issue well enough, and always
include a minimal working example showing the issue.
@@ -24,17 +24,16 @@ include a minimal working example showing the issue.
You may also have conversations, ask questions and post answers
without opening issues using the Discussions space:
- <https://github.com/tex-persian/xepersian/discussions>
+ <https://github.com/kvafa/xepersian/discussions>
The announcements for the new releases of the package will
also appear in the Discussions space under the Announcements
category.
-Current version release date: 2022/02/20
+Current version release date: 2022/05/20
___________________________________________
Vafa Khalighi
-tex-persian@vafa.ac
Copyright (c) Vafa Khalighi 2008--2022
Copyright (c) bidi-tex GitHub Organization 2018--2020
@@ -59,7 +58,6 @@ by Vafa Khalighi.
__________________________________________________
Vafa Khalighi
- tex-persian@vafa.ac
Copyright (c) 2008--2022 Vafa Khalighi
Copyright (c) 2018--2020 bidi-tex GitHub Organization
@@ -168,7 +166,7 @@ by Vafa Khalighi.
\documentclass{ltxdoc}
\input{xepersian-doc-preamble.ltx}
\hypersetup{%
- pdftitle={Source documentation for version 23.7 of the XePersian
+ pdftitle={Source documentation for version 23.9 of the XePersian
package}%
}
\EnableCrossrefs
@@ -187,9 +185,8 @@ by Vafa Khalighi.
% \GetFileInfo{\jobname.dtx}
% \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\
%\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt]
-%\large Source documentation for \textcolor{blue!65!black}{version 23.7}}
-% \author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the {\LaTeX} team to maintain the package in the period 2018--2020.}\\
-% \url{tex-persian@vafa.ac}}
+%\large Source documentation for \textcolor{blue!65!black}{version 23.9}}
+% \author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the {\LaTeX} team to maintain the package in the period 2018--2020.}}
%\setcounter{page}{0}
%\thispagestyle{empty}
%\includegraphics[width=.3\textwidth]{xepersian-logo}\qquad
@@ -198,7 +195,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
%
%\Large
-%Source documentation for \textcolor{blue!65!black}{version 23.7}}
+%Source documentation for \textcolor{blue!65!black}{version 23.9}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -209,7 +206,7 @@ by Vafa Khalighi.
%or ask for any new features, or suggest any improvements, or ask any questions about the package, then please use the issue tracker:
%
%\medskip
-% \centerline{\url{https://github.com/tex-persian/xepersian/issues}}
+% \centerline{\url{https://github.com/kvafa/xepersian/issues}}
%
%\medskip
%In doing so, please always explain your issue well enough, and always include
@@ -220,7 +217,7 @@ by Vafa Khalighi.
%without opening issues using the Discussions space:
%
%\medskip
-% \centerline{\url{https://github.com/tex-persian/xepersian/discussions}}
+% \centerline{\url{https://github.com/kvafa/xepersian/discussions}}
%
%\medskip
%The announcements for the new releases of the package will
@@ -246,7 +243,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{10978}
+%% \CheckSum{10976}
%% \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
@@ -3477,8 +3474,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \section{File \texttt{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersian@version{23.7}
-\def\xepersiandate{2022/02/20}
+\def\xepersian@version{23.9}
+\def\xepersiandate{2022/05/20}
\ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -3503,11 +3500,9 @@ Persian typesetting in XeLaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/xepersian^^J%
* ^^J%
-* Issue tracker: https://github.com/tex-persian/xepersian/issues^^J%
+* Issue tracker: https://github.com/kvafa/xepersian/issues^^J%
* ^^J%
-* Discussions: https://github.com/tex-persian/xepersian/discussions^^J%
-* ^^J%
-* Support Email: tex-persian@vafa.ac^^J%
+* Discussions: https://github.com/kvafa/xepersian/discussions^^J%
* ^^J%
* Primary author of xepersian package: Vafa Khalighi.^^J%
* ^^J%
@@ -4329,7 +4324,7 @@ Persian typesetting in XeLaTeX]
\newcommand*{\@xepersian@pdfcustomproperties}{%
This is the xepersian package, Version \xepersian@version,
- Released February 20, 2022.
+ Released May 20, 2022.
}
\newcommand\twocolumnstableofcontents{%
@@ -5892,7 +5887,7 @@ indexblock environment may only appear inside frontpage environment.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xepersian-mathdigitspec}
- [2022/02/04 v1.1.9 Unicode Persian math digits in XeLaTeX]
+ [2022/05/20 v1.2.0 Unicode Persian math digits in XeLaTeX]
\def\new@mathgroup{\alloc@8\mathgroup\chardef\@cclvi}
\let\newfam\new@mathgroup
\def\select@group#1#2#3#4{%
@@ -6104,7 +6099,7 @@ indexblock environment may only appear inside frontpage environment.
\SetMathCode{`8}{\mathalpha}{OPERATORS}{`8}
\SetMathCode{`9}{\mathalpha}{OPERATORS}{`9}
\SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪}
- \SetMathCharDef{\decimalseparator}{\mathord}{OPERATORS}{"066B}
+ \SetMathCharDef{\persiandecimalseparator}{\mathord}{OPERATORS}{"066B}
\tl_set_eq:NN \mathbf \new@mathbf
\tl_set_eq:NN \mathit \new@mathit
\tl_set_eq:NN \mathrm \new@mathrm}
@@ -6143,26 +6138,26 @@ indexblock environment may only appear inside frontpage environment.
\cs_set_eq:NN \__xepersian_setmathttdigitfont_hook:nn \use_none:nn
\ExplSyntaxOff
-\ifx\newcommand\undefined\else
- \newcommand{\ZifferAn}{}
-\fi
-\mathchardef\ziffer@DotOri="013A
-{\ZifferAn
- \catcode`\.=\active\gdef.{\begingroup\obeyspaces\futurelet\n\ziffer@dcheck}}
-\def\ziffer@dcheck{\ziffer@check\ZifferLeer\ziffer@DotOri}
-\def\ziffer@check#1#2{%
- \ifx\n1\endgroup#1\else
- \ifx\n2\endgroup#1\else
- \ifx\n3\endgroup#1\else
- \ifx\n4\endgroup#1\else
- \ifx\n5\endgroup#1\else
- \ifx\n6\endgroup#1\else
- \ifx\n7\endgroup#1\else
- \ifx\n8\endgroup#1\else
- \ifx\n9\endgroup#1\else
- \ifx\n0\endgroup#1\else
- \ifx\n\overline\endgroup#1\else
- \endgroup#2%
+\mathchardef\decimalseparator@point="013A
+{%
+ \catcode`\.=\active
+ \gdef.{\begingroup\obeyspaces\futurelet\@let@token\decimalseparator@pointcheck}}
+\def\decimalseparator@pointcheck{\decimalseparator@check\MathDecimalSeparator\decimalseparator@point}
+\def\decimalseparator@check#1#2{%
+ \ifx\@let@token1\endgroup#1\else
+ \ifx\@let@token2\endgroup#1\else
+ \ifx\@let@token3\endgroup#1\else
+ \ifx\@let@token4\endgroup#1\else
+ \ifx\@let@token5\endgroup#1\else
+ \ifx\@let@token6\endgroup#1\else
+ \ifx\@let@token7\endgroup#1\else
+ \ifx\@let@token8\endgroup#1\else
+ \ifx\@let@token9\endgroup#1\else
+ \ifx\@let@token0\endgroup#1\else
+ \ifx\@let@token\dot\endgroup#1\else
+ \ifx\@let@token\overline\endgroup#1\else
+ \endgroup#2%
+ \fi
\fi
\fi
\fi
@@ -6175,8 +6170,8 @@ indexblock environment may only appear inside frontpage environment.
\fi
\fi}
\mathcode`.="8000\relax
-\def\ZifferLeer{\ifx\decimalseparator\undefined .\else \decimalseparator\fi}
-\def\DefaultZifferLeer{.}
+\def\MathDecimalSeparator{\ifx\persiandecimalseparator\undefined .\else \persiandecimalseparator\fi}
+\def\DefaultMathDecimalSeparator{.}
\def\DefaultInlineMathDigits{\def\SetInlineMathDigits{}}
\def\DefaultDisplayMathDigits{\def\SetDisplayMathDigits{}}
\def\DefaultMathDigits{%
@@ -6217,14 +6212,14 @@ indexblock environment may only appear inside frontpage environment.
}
\ExplSyntaxOn
-\cs_new_eq:NN \orig_ZifferLeer \ZifferLeer
+\cs_new_eq:NN \orig_MathDecimalSeparator \MathDecimalSeparator
\NewDocumentCommand \SwitchToDefaultMathDigits { } {
\int_step_inline:nnnn { `0 } { \c_one_int } { `9 } {
\SetMathCode{##1}{\mathalpha}{operators}{##1}
}
\SetMathCode{`\%}{\mathbin}{operators}{`\%}
- \tl_set_eq:NN \ZifferLeer \DefaultZifferLeer
+ \tl_set_eq:NN \MathDecimalSeparator \DefaultMathDecimalSeparator
\tl_set_eq:NN \mathbf \orig_mathbf:n
\tl_set_eq:NN \mathit \orig_mathit:n
\tl_set_eq:NN \mathrm \orig_mathrm:n
@@ -6237,7 +6232,7 @@ indexblock environment may only appear inside frontpage environment.
\SetMathCode{##1}{\mathalpha}{OPERATORS}{##1}
}
\SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪}
- \tl_set_eq:NN \ZifferLeer \orig_ZifferLeer
+ \tl_set_eq:NN \MathDecimalSeparator \orig_MathDecimalSeparator
\tl_set_eq:NN \mathbf \new@mathbf
\tl_set_eq:NN \mathit \new@mathit
\tl_set_eq:NN \mathrm \new@mathrm