summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-09-14 21:11:23 +0000
committerKarl Berry <karl@freefriends.org>2016-09-14 21:11:23 +0000
commitf01fb1e261d2db20de20955d45643ba21d94c3e4 (patch)
tree25c862f69a7546539f22c487c71c5d34ad43624e /Master/texmf-dist/source/xelatex
parentfb5830e320c5ab416455dc9dbf51a9c49e29e4c8 (diff)
xepersian (14sep16)
git-svn-id: svn://tug.org/texlive/trunk@42061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx52
1 files changed, 30 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
index d7ebdb1a171..5cebffe2c6b 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.6
+v16.7
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://sourceforge.net/p/persian-tex/tickets>
+ <https://github.com/vafa/xepersian/issues>
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/09/09
+Current version release date: 2016/09/14
______________
Vafa Khalighi
persian-tex@tug.org
@@ -244,7 +244,6 @@ 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}
@@ -273,7 +272,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.6}}
+%\large Documentation for \textcolor{blue!65!black}{version 16.7}}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
%\setcounter{page}{0}
@@ -284,7 +283,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
%
%\Large
-%Documentation for \textcolor{blue!65!black}{version 16.6}}
+%Documentation for \textcolor{blue!65!black}{version 16.7}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -297,7 +296,7 @@ by Vafa Khalighi.
%answer any direct email. Instead please use the issue tracker:
%
%\medskip
-% \centerline{\url{https://sourceforge.net/p/persian-tex/tickets}}
+% \centerline{\url{https://github.com/vafa/xepersian/issues}}
%
%\medskip
%In doing so, please always explain your issue well enough, always include
@@ -339,14 +338,14 @@ by Vafa Khalighi.
%*
%* Copyright (c) 2008--2016 Vafa Khalighi
%*
-%* v16.6, 2016/09/09
+%* v16.7, 2016/09/14
%*
%* License: LaTeX Project Public License, version
%* 1.3c or higher (your choice)
%*
%* Location on CTAN: /macros/xetex/latex/xepersian
%*
-%* Issue tracker: https://sourceforge.net/p/persian-tex/tickets
+%* Issue tracker: https://github.com/vafa/xepersian/issues
%*
%* Support: persian-tex@tug.org
%****************************************************
@@ -2360,7 +2359,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{10099}
+%% \CheckSum{10108}
%% \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
@@ -5669,8 +5668,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \subsection{\textsf{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v16.6}
-\def\xepersiandate{2016/09/09}
+\def\xepersianversion{v16.7}
+\def\xepersiandate{2016/09/14}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -5694,7 +5693,7 @@ Persian typesetting in XeLaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/xepersian^^J%
* ^^J%
-* Issue tracker: https://sourceforge.net/p/persian-tex/tickets^^J%
+* Issue tracker: https://github.com/vafa/xepersian/issues^^J%
* ^^J%
* Support: persian-tex@tug.org^^J%
****************************************************}
@@ -5892,14 +5891,14 @@ Persian typesetting in XeLaTeX]
\let\normalfont\persianfont%
\let\reset@font\normalfont%
\persianfont}
-\bidi@newrobustcmd*{\lr}[1]{\LRE{\@Latintrue\latinfont#1}}
-\bidi@newrobustcmd*{\rl}[1]{\RLE{\@Latinfalse\persianfont#1}}
-\def\latin{\LTR\LatinAlphs\@Latintrue\@RTL@footnotefalse\resetlatinfont}
+\bidi@newrobustcmd*{\lr}[1]{\LRE{\@nonlatinfalse\latinfont#1}}
+\bidi@newrobustcmd*{\rl}[1]{\RLE{\@nonlatintrue\persianfont#1}}
+\def\latin{\LTR\LatinAlphs\@nonlatinfalse\@RTL@footnotefalse\resetlatinfont}
\def\endlatin{\endLTR}
-\def\persian{\RTL\PersianAlphs\@RTL@footnotetrue\setpersianfont}
+\def\persian{\RTL\PersianAlphs\@nonlatintrue\@RTL@footnotetrue\setpersianfont}
\def\endpersian{\endRTL}
-\newenvironment{latinitems}{\begin{LTRitems}\LatinAlphs\@Latintrue\@RTL@footnotefalse\resetlatinfont}{\end{LTRitems}}
-\newenvironment{parsiitems}{\begin{RTLitems}\PersianAlphs\@RTL@footnotetrue\setpersianfont}{\end{RTLitems}}
+\newenvironment{latinitems}{\begin{LTRitems}\LatinAlphs\@nonlatinfalse\@RTL@footnotefalse\resetlatinfont}{\end{LTRitems}}
+\newenvironment{parsiitems}{\begin{RTLitems}\PersianAlphs\@nonlatintrue\@RTL@footnotetrue\setpersianfont}{\end{RTLitems}}
\let\originaltoday=\today
\def\latintoday{\lr{\originaltoday}}
\def\today{\rl{\persiantoday}}
@@ -6343,6 +6342,14 @@ number is 999,999,999.}%
\or
\@RTLfalse
\fi}
+
+\define@choicekey{xepersian.sty}{script}[\xepersian@tempa\xepersian@tempb]{latin,nonlatin}[latin]{%
+ \ifcase\xepersian@tempb\relax
+ \@nonlatinfalse
+ \or
+ \@nonlatintrue
+ \fi}
+
\define@choicekey{xepersian.sty}{rldocument}[\xepersian@tempa\xepersian@tempb]{on,off}[on]{%
\ifcase\xepersian@tempb\relax
\@RTLtrue
@@ -6444,6 +6451,7 @@ number is 999,999,999.}%
\ExecuteOptionsX{%
RTLdocument=on,
+ script=nonlatin,
footnotedirection=righttoleft,
footnoterule=automatic,
abjadvariant=two
@@ -7559,9 +7567,9 @@ indexblock environment may only appear inside frontpage environment.
\ifx\persianmathsfdigits\undefined\else\persianmathsfdigits\fi%
\ifx\persianmathttdigits\undefined\else\persianmathttdigits\fi}}
\def\AutoMathsDigits{\def\SetMathsDigits{%
-\ifx\persianmathsdigits\undefined\else\if@Latin\else\persianmathsdigits\fi\fi%
-\ifx\persianmathsfdigits\undefined\else\if@Latin\else\persianmathsfdigits\fi\fi%
-\ifx\persianmathttdigits\undefined\else\if@Latin\else\persianmathttdigits\fi\fi}}
+\ifx\persianmathsdigits\undefined\else\if@nonlatin\persianmathsdigits\fi\fi%
+\ifx\persianmathsfdigits\undefined\else\if@nonlatin\persianmathsfdigits\fi\fi%
+\ifx\persianmathttdigits\undefined\else\if@nonlatin\persianmathttdigits\fi\fi}}
\AutoMathsDigits
\everymath\expandafter{\the\everymath\SetMathsDigits}
\g@addto@macro\document{\everydisplay\expandafter{\the\everydisplay\SetMathsDigits}}