summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-09-09 22:42:22 +0000
committerKarl Berry <karl@freefriends.org>2016-09-09 22:42:22 +0000
commit88326b0265503824247320367cec7787c6bfbdf5 (patch)
tree394c032bffe83188673d4bebedfa255fd4210d26 /Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
parentecb4ba2af7bc72e6d8b8adccc45796aa726bda97 (diff)
xepersian (9sep16)
git-svn-id: svn://tug.org/texlive/trunk@42028 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx')
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx47
1 files changed, 27 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
index db3545cff81..d7ebdb1a171 100644
--- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
+++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
@@ -5,7 +5,7 @@
%<*readme>
____________________
The XePersian package
-v16.5
+v16.6
XePersian is a package written for XeLaTeX that allows users to typeset
Persian easily.
@@ -22,13 +22,13 @@ If you want to report any bugs or typos and corrections in the documentation,
or ask for any new features, or suggest any improvements, or ask any questions
about the package, then please do not send any direct email to me; I will not
answer any direct email. Instead please use the issue tracker:
- <https://github.com/persian-tex/xepersian/issues>
+ <https://sourceforge.net/p/persian-tex/tickets>
In doing so, please always explain your issue well enough, always include
a minimal working example showing the issue, and always choose the appropriate
label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
-Current version release date: 2016/05/03
+Current version release date: 2016/09/09
______________
Vafa Khalighi
persian-tex@tug.org
@@ -244,6 +244,7 @@ by Vafa Khalighi.
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\@Latintrue % the documentation is in English
\makeatother
\pagestyle{docheadings}
\newcounter{local}
@@ -272,7 +273,7 @@ by Vafa Khalighi.
%\changes{v13.1}{2013/09/23}{Added implementation of the package.}
% \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\
%\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt]
-%\large Documentation for \textcolor{blue!65!black}{version 16.5}}
+%\large Documentation for \textcolor{blue!65!black}{version 16.6}}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
%\setcounter{page}{0}
@@ -283,7 +284,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
%
%\Large
-%Documentation for \textcolor{blue!65!black}{version 16.5}}
+%Documentation for \textcolor{blue!65!black}{version 16.6}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -296,7 +297,7 @@ by Vafa Khalighi.
%answer any direct email. Instead please use the issue tracker:
%
%\medskip
-% \centerline{\url{https://github.com/persian-tex/xepersian/issues}}
+% \centerline{\url{https://sourceforge.net/p/persian-tex/tickets}}
%
%\medskip
%In doing so, please always explain your issue well enough, always include
@@ -338,14 +339,14 @@ by Vafa Khalighi.
%*
%* Copyright (c) 2008--2016 Vafa Khalighi
%*
-%* v16.5, 2016/05/03
+%* v16.6, 2016/09/09
%*
%* License: LaTeX Project Public License, version
%* 1.3c or higher (your choice)
%*
%* Location on CTAN: /macros/xetex/latex/xepersian
%*
-%* Issue tracker: https://github.com/persian-tex/xepersian/issues
+%* Issue tracker: https://sourceforge.net/p/persian-tex/tickets
%*
%* Support: persian-tex@tug.org
%****************************************************
@@ -2359,7 +2360,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{10082}
+%% \CheckSum{10099}
%% \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
@@ -4413,7 +4414,7 @@ by Vafa Khalighi.
%\fi
% \subsection{\textsf{kashida-xepersian.def}}
% \begin{macrocode}
-\ProvidesFile{kashida-xepersian.def}[2016/05/03 v0.4 implementation of Kashida for xepersian package]
+\ProvidesFile{kashida-xepersian.def}[2016/09/09 v0.5 implementation of Kashida for xepersian package]
\chardef\xepersian@zwj="200D % zero-width joiner
\chardef\xepersian@D=10 % dual-joiner class
@@ -4424,8 +4425,9 @@ by Vafa Khalighi.
% \end{macrocode}
%\changes{v13.6}{2013/11/15}{Used \cs{XeTeXglyphbounds} to find the true height and depth of the Kashida character.}
% \begin{macrocode}
-\def\xepersian@kashida{\xepersian@zwj\nobreak%
- \leaders\hrule height \XeTeXglyphbounds2 \the\XeTeXcharglyph"0640 depth \XeTeXglyphbounds4 \the\XeTeXcharglyph"0640 \hskip0pt plus 0.5em \xepersian@zwj}
+\newif\if@Kashida@on
+\def\xepersian@kashida{\if@Kashida@on\xepersian@zwj\nobreak%
+ \leaders\hrule height \XeTeXglyphbounds2 \the\XeTeXcharglyph"0640 depth \XeTeXglyphbounds4 \the\XeTeXcharglyph"0640 \hskip0pt plus 0.5em \xepersian@zwj\fi}
\def\setclass#1#2{\def\theclass{#1}\def\charlist{#2}%
\expandafter\dosetclass\charlist,\end}
@@ -4455,8 +4457,8 @@ by Vafa Khalighi.
\XeTeXinterchartoks \xepersian@L \xepersian@R = {\xepersian@kashida}
\XeTeXinterchartoks \xepersian@L \xepersian@A = {}
-\newcommand{\KashidaOn}{\XeTeXinterchartokenstate=1}
-\newcommand{\KashidaOff}{\XeTeXinterchartokenstate=0}
+\newcommand{\KashidaOn}{\@Kashida@ontrue}
+\newcommand{\KashidaOff}{\@Kashida@onfalse}
\KashidaOn
% \end{macrocode}
% \iffalse
@@ -5667,8 +5669,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \subsection{\textsf{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v16.5}
-\def\xepersiandate{2016/05/03}
+\def\xepersianversion{v16.6}
+\def\xepersiandate{2016/09/09}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -5692,7 +5694,7 @@ Persian typesetting in XeLaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/xepersian^^J%
* ^^J%
-* Issue tracker: https://github.com/persian-tex/xepersian/issues^^J%
+* Issue tracker: https://sourceforge.net/p/persian-tex/tickets^^J%
* ^^J%
* Support: persian-tex@tug.org^^J%
****************************************************}
@@ -5993,7 +5995,7 @@ Persian typesetting in XeLaTeX]
% \end{macrocode}
%\changes{v13.2}{2013/09/25}{Replaced \cs{reflect} with \cs{bidi@reflect@box}.}
% \begin{macrocode}
-\def\XePersian{\leavevmode$\smash{\hbox{X\lower.5ex
+\bidi@newrobustcmd*{\XePersian}{\leavevmode$\smash{\hbox{X\lower.5ex
\hbox{\kern-.125em\bidi@reflect@box{E}}Persian}}$}
\def\figurename{\if@RTL شکل\else Figure\fi}
\def\tablename{\if@RTL جدول\else Table\fi}
@@ -6024,7 +6026,7 @@ Persian typesetting in XeLaTeX]
\else\@ctrerr\fi}
\def\Abjad#1{\expandafter\@Abjad\csname c@#1\endcsname}
\let\Abjadnumeral\@Abjad
-\def\@harfi#1{\ifcase#1\or آ‍\or ب\or پ\or ت\or ث\or
+\def\@harfi#1{\ifcase#1\or آ\or ب\or پ\or ت\or ث\or
ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or ژ\or س\or ش\or ص\or ض\or ط\or ظ\or ع\or غ\or
ف\or ق\or ک\or گ\or ل\or م\or ن\or و\or ه\or ی\else\@ctrerr\fi}
\def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname}
@@ -6210,11 +6212,16 @@ number is 999,999,999.}%
\ifnum#2#3<20%
\ifnum#5#2#3>\@ne\ifnum#1#2#3#4#5=10001 اول\else#6{#2#3}\fi\fi%
\else%
-\xepersian@dahgan#2%
+\xepersian@dahgan@tartibi#2%
\ifnum#3>\z@\ و \xepersian@yekanv#3\fi%
#60%
\fi%
}
+\def\xepersian@dahgan@tartibi#1{%
+\ifcase#1\or\or بیست\or سی‌ا\or چهل%
+\or پنجاه\or شصت\or هفتاد\or هشتاد%
+\or نود\fi%
+}
\def\xepersian@tartibi#1{%
\ifcase#1م\or یکم\or دوم\or سوم\or چهارم%
\or پنجم\or ششم\or هفتم\or هشتم\or نهم%