summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-09 23:48:17 +0000
committerKarl Berry <karl@freefriends.org>2011-10-09 23:48:17 +0000
commit68d5f2bed16d2f2f0176d8bfcc468e12113a1bbf (patch)
tree490c65bf2d562e9005273b84a24e2bc57734cff8 /Master/texmf-dist/tex/xelatex
parent09ab3a5d73d4bd916aa1fdfd114753087c851fe4 (diff)
xepersian (9oct11)
git-svn-id: svn://tug.org/texlive/trunk@24249 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def2
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def6
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def4
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty4
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty6
5 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def b/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def
index 3ea891440df..9b464f943d7 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/commands-ltx.def
@@ -624,7 +624,7 @@
\eqcommand{جمع‌صفحه}{pagetotal}
\eqcommand{بلندای‌کاغذ}{paperheight}
\eqcommand{پهنای‌کاغذ}{paperwidth}
-\eqcommand{بند}{par}
+\bidi@csdefcs{بند}{par}% this is an exception since \par is redefined only in some circumstances
\eqcommand{پاراگراف}{paragraph}
\eqcommand{موازی}{parallel}
\eqcommand{کادرپار}{parbox}
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def
index 341670f74cc..195f64ac9ce 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-bidi-xepersian.def
@@ -12,12 +12,13 @@
%% License information appended.
%%
%%
-\ProvidesFile{loadingorder-bidi-xepersian.def}[2010/07/25 v0.2 making sure that xepersian is the last package loaded]
+\ProvidesFile{loadingorder-bidi-xepersian.def}[2012/01/01 v0.3 making sure that xepersian is the last package loaded]
\bidi@isloaded{algorithmic}
\bidi@isloaded{algorithm}
\bidi@isloaded{backref}
\bidi@isloaded{enumerate}
\bidi@isloaded{tocloft}
+\bidi@isloaded{url}
\AtBeginDocument{
\if@bidi@algorithmicloaded@\else
\bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithmic after xepersian package. Please load package algorithmic before xepersian package, and then try to run xelatex on your document again}{}]{algorithmic}
@@ -34,6 +35,9 @@
\if@bidi@tocloftloaded@\else
\bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package tocloft after xepersian package. Please load package tocloft before xepersian package, and then try to run xelatex on your document again}{}]{tocloft}
\fi%
+ \if@bidi@urlloaded@\else
+ \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package url after xepersian package. Please load package url before xepersian package, and then try to run xelatex on your document again}{}]{url}
+ \fi%
}
%%
%% Copyright © 2008–2012 Vafa Khalighi <vafaklg@gmail.com>
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
index cb029dc426d..8ec15072ff9 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
@@ -15,9 +15,7 @@
\ProvidesFile{localise-xepersian.def}[2010/07/25 v0.2a Persian localisation of LaTeX2e]
\newcommand{\makezwnjletter}{\catcode`‌=11\relax}
\makezwnjletter
-\newcommand*{\eqcommand}[2]{%
-\expandafter\@ifdefinable \csname#1\endcsname{%
-\expandafter\def\csname#1\expandafter\endcsname{\csname#2\endcsname}}}
+\newcommand*{\eqcommand}[2]{\if@bidi@csprimitive{#2}{\bidi@csletcs{#1}{#2}}{\bidi@csdefcs{#1}{#2}}}
\newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}}
\input{commands-ltx.def}
\input{commands-xepersian.def}
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
index ba62e46b179..8e78cbf0ba8 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
@@ -14,7 +14,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xepersian-mathsdigitspec}
- [2011/09/22 v1.0.0 Unicode Persian maths digits in XeLaTeX]
+ [2012/01/01 v1.0.1 Unicode Persian maths digits in XeLaTeX]
\ExplSyntaxOn
\bool_set_false:N \g_fontspec_math_bool
\ExplSyntaxOff
@@ -106,7 +106,7 @@
\SetMathCode{`7}{\mathalpha}{OPERATORS}{`7}
\SetMathCode{`8}{\mathalpha}{OPERATORS}{`8}
\SetMathCode{`9}{\mathalpha}{OPERATORS}{`9}
- \SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪}
+ \SetMathCharDef{\%}{\mathbin}{OPERATORS}{`٪}
\SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B}
\cs_set_eq:NN \mathbf \new@mathbf
\cs_set_eq:NN \mathit \new@mathit
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index aa642c6e28e..0df88046eac 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -13,7 +13,7 @@
%%
%%
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v1.2.5}
+\def\xepersianversion{v1.2.8}
\def\xepersiandate{2012/01/01}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
@@ -496,7 +496,7 @@ number is 999,999,999.}%
\providecommand*{\xpg@warning}[1]{%
\PackageWarning{XePersian}%
{#1}}
-\if@bidi@csdef{abjadnumeral}{}{%
+\if@bidi@csundef{abjadnumeral}{%
\def\abjadnumeral#1{%
\ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1}
\else
@@ -532,7 +532,7 @@ number is 999,999,999.}%
\def\abj@num@iv#1{%
\ifcase#1\or غ\fi
\ifnum#1=\z@\fi\abj@num@iii}
-}
+}{}
\let\@latinalph\@alph%
\let\@latinAlph\@Alph%
\def\PersianAlphs{%