summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/xepersian
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-01-16 23:10:19 +0000
committerKarl Berry <karl@freefriends.org>2017-01-16 23:10:19 +0000
commitc3967481d7fdf4163ba0f40114f15dd12cfb555f (patch)
treef20f529e3f9d867edbf25c86f1ec833d1478a95c /Master/texmf-dist/source/xelatex/xepersian
parentbbdcfbc2b8f537da6c148a5e3cfc669664657baa (diff)
xepersian (16jan17)
git-svn-id: svn://tug.org/texlive/trunk@42968 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xepersian')
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx57
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.ins4
2 files changed, 44 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
index 6930dd0574c..a0ad1d4627b 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
-v17.1
+v17.2
XePersian is a package written for XeLaTeX that allows users to typeset
Persian easily.
@@ -28,12 +28,12 @@ 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/11/30
+Current version release date: 2017/01/16
______________
Vafa Khalighi
persian-tex@tug.org
-Copyright (c) 2008--2016
+Copyright (c) 2008--2017
Distributed under the LaTeX Project Public License
It may be distributed and/or modified under the LaTeX Project Public License,
version 1.3c or higher (your choice). The latest version of
@@ -53,7 +53,7 @@ by Vafa Khalighi.
\preamble
__________________________________________________
- Copyright (c) 2008--2016 Vafa Khalighi <persian-tex@tug.org>
+ Copyright (c) 2008--2017 Vafa Khalighi <persian-tex@tug.org>
It may be distributed and/or modified under the LaTeX Project Public License,
version 1.3c or higher (your choice). The latest version of
@@ -272,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 17.1}}
+%\large Documentation for \textcolor{blue!65!black}{version 17.2}}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
%\setcounter{page}{0}
@@ -283,7 +283,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
%
%\Large
-%Documentation for \textcolor{blue!65!black}{version 17.1}}
+%Documentation for \textcolor{blue!65!black}{version 17.2}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -307,7 +307,7 @@ by Vafa Khalighi.
%
%\vskip 0pt plus 3fill
%
-%Copyright (c) 2008--2016 Vafa Khalighi
+%Copyright (c) 2008--2017 Vafa Khalighi
%
%\medskip
%Permission is granted to distribute and/or modify \emph{both the documentation and the code} under the conditions of the \LaTeX{} Project Public License, either version 1.3c of this license or (at your option) any later version.
@@ -336,9 +336,9 @@ by Vafa Khalighi.
%* typesetting, using fonts provided in the
%* distribution.
%*
-%* Copyright (c) 2008--2016 Vafa Khalighi
+%* Copyright (c) 2008--2017 Vafa Khalighi
%*
-%* v17.1, 2016/11/30
+%* v17.2, 2017/01/16
%*
%* License: LaTeX Project Public License, version
%* 1.3c or higher (your choice)
@@ -2359,7 +2359,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{10160}
+%% \CheckSum{10207}
%% \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
@@ -5676,8 +5676,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \subsection{\textsf{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v17.1}
-\def\xepersiandate{2016/11/30}
+\def\xepersianversion{v17.2}
+\def\xepersiandate{2017/01/16}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -5692,7 +5692,7 @@ Persian typesetting in XeLaTeX]
* typesetting, using fonts provided in the^^J%
* distribution.^^J%
* ^^J%
-* Copyright (c) 2008--2016 Vafa Khalighi^^J%
+* Copyright (c) 2008--2017 Vafa Khalighi^^J%
* ^^J%
* \xepersianversion, \xepersiandate^^J%
* ^^J%
@@ -5708,6 +5708,25 @@ 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*{\IfxepersianPackageVersionLater}[1]{%
+ \ifdim\@bidi@strip@v@xepersianversion pt > #1 pt %
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
+\newcommand*{\IfxepersianPackageVersionBefore}[1]{%
+ \ifdim\@bidi@strip@v@xepersianversion pt < #1 pt %
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
+\newcommand*{\IfxepersianPackageVersion}[1]{%
+ \ifdim\@bidi@strip@v@xepersianversion pt = #1 pt %
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
\def\prq{«}
\def\plq{»}
\def\xepersian@cmds@temp#1{%
@@ -5949,9 +5968,17 @@ Persian typesetting in XeLaTeX]
\fi
\if@twoside
\ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
+ \if@RTLmain
+ \let\@themargin\evensidemargin
+ \else
+ \let\@themargin\oddsidemargin
+ \fi
+ \else \let\@thehead\@evenhead \let\@thefoot\@evenfoot
+ \if@RTLmain
\let\@themargin\oddsidemargin
- \else \let\@thehead\@evenhead
- \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
+ \else
+ \let\@themargin\evensidemargin
+ \fi
\fi
\ifx\@thehead\@empty \let\@thehead\hfil \fi
\ifx\@thefoot\@empty \let\@thefoot\hfil \fi
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins
index 7a4d3289503..f09a18250b9 100644
--- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins
+++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins
@@ -7,7 +7,7 @@
%% xepersian.dtx (with options: `batchfile')
%%
%% __________________________________________________
-%% Copyright (c) 2008--2016 Vafa Khalighi <persian-tex@tug.org>
+%% Copyright (c) 2008--2017 Vafa Khalighi <persian-tex@tug.org>
%%
%% It may be distributed and/or modified under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
@@ -23,7 +23,7 @@
\preamble
__________________________________________________
- Copyright (c) 2008--2016 Vafa Khalighi <persian-tex@tug.org>
+ Copyright (c) 2008--2017 Vafa Khalighi <persian-tex@tug.org>
It may be distributed and/or modified under the LaTeX Project Public License,
version 1.3c or higher (your choice). The latest version of