summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-11-17 23:05:38 +0000
committerKarl Berry <karl@freefriends.org>2014-11-17 23:05:38 +0000
commitb996385f328694889c33842eaecc564e8f680be5 (patch)
tree9b737588f6025452c61578d17798d0236c7e85b3 /Master/texmf-dist/source
parent3c6a608133a7c050ad2a11570145fd5baa2884d3 (diff)
xepersian (17nov14)
git-svn-id: svn://tug.org/texlive/trunk@35602 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx48
1 files changed, 29 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
index 080cff8fe13..85188005fc9 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
-v15.4
+v15.5
XePersian is a package written for XeLaTeX that allows users to typeset
Persian easily.
@@ -28,7 +28,7 @@ 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: 2014/11/15
+Current version release date: 2014/11/17
______________
Vafa Khalighi
persian-tex@tug.org
@@ -271,7 +271,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 15.4}}
+%\large Documentation for \textcolor{blue!65!black}{version 15.5}}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
%\setcounter{page}{0}
@@ -282,7 +282,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
%
%\Large
-%Documentation for \textcolor{blue!65!black}{version 15.4}}
+%Documentation for \textcolor{blue!65!black}{version 15.5}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -337,7 +337,7 @@ by Vafa Khalighi.
%*
%* Copyright © 2008–2014 Vafa Khalighi
%*
-%* v15.4, 2014/11/15
+%* v15.5, 2014/11/17
%*
%* License: LaTeX Project Public License, version
%* 1.3c or higher (your choice)
@@ -2358,7 +2358,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{10001}
+%% \CheckSum{10026}
%% \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
@@ -5665,8 +5665,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \subsection{\textsf{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v15.4}
-\def\xepersiandate{2014/11/15}
+\def\xepersianversion{v15.5}
+\def\xepersiandate{2014/11/17}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -6195,8 +6195,8 @@ number is 999,999,999.}%
\providecommand*{\xpg@warning}[1]{%
\PackageWarning{XePersian}%
{#1}}
-\if@bidi@csundef{abjadnumeral}{%
-\def\abjadnumeral#1{%
+\if@bidi@csundef{@abjad}{%
+\def\@abjad#1{%
\ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1}
\else
\ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}%
@@ -6215,6 +6215,8 @@ number is 999,999,999.}%
\fi
\fi
}
+\def\abjad#1{\expandafter\@abjad\csname c@#1\endcsname}
+\let\abjadnumeral\@abjad
\def\abjad@zero{}
\def\abj@num@i#1{%
\ifcase#1\or آ\or ب\or ج\or د%
@@ -6232,17 +6234,12 @@ number is 999,999,999.}%
\ifcase#1\or غ\fi
\ifnum#1=\z@\fi\abj@num@iii}
}{}
- \let\@latinalph\@alph%
- \let\@latinAlph\@Alph%
-\def\PersianAlphs{%
- \let\@alph\@Abjad%
- \let\@Alph\@Abjad%
-}
+\let\@latinalph\@alph%
+\let\@latinAlph\@Alph%
\def\LatinAlphs{%
\let\@alph\@latinalph%
\let\@Alph\@latinAlph%
}
-\PersianAlphs
\bidi@AfterEndPreamble{%
\if@bidi@csundef{persianfont}{%
\PackageError{xepersian}{You have not specified any font\MessageBreak
@@ -6384,6 +6381,18 @@ number is 999,999,999.}%
\PackageError{xepersian}{“shell escape” (or “write18”) is not enabled. You need to run “xelatex --shell-escape” on your TeX document for this feature to work}{}
\fi
\fi}
+\define@choicekey{xepersian.sty}{abjadvariant}[\xepersian@tempa\xepersian@tempb]{one,two}{%
+ \ifcase\xepersian@tempb\relax
+ \def\PersianAlphs{%
+ \let\@alph\@abjad%
+ \let\@Alph\@abjad%
+ }
+ \or
+ \def\PersianAlphs{%
+ \let\@alph\@Abjad%
+ \let\@Alph\@Abjad%
+ }
+ \fi}
\DeclareOptionX{defaultlatinfontfeatures}{%
\defaultfontfeatures
[\latinfont]
@@ -6393,7 +6402,8 @@ number is 999,999,999.}%
\ExecuteOptionsX{%
RTLdocument=on,
footnotedirection=righttoleft,
- footnoterule=automatic
+ footnoterule=automatic,
+ abjadvariant=two
}
\ProcessOptionsX
@@ -6404,7 +6414,7 @@ number is 999,999,999.}%
\fi
\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold}]{lmroman10-regular}%
-
+\PersianAlphs
% \end{macrocode}
% \iffalse
%</xepersian.sty>