summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-09 16:34:28 +0000
committerKarl Berry <karl@freefriends.org>2013-04-09 16:34:28 +0000
commit46a0dcf5450e9cad3f8fdcff9dd9d449b9db7325 (patch)
tree8b58b2c3932cf2f5be4e1f87769d2ccd5df7e04f /Master/texmf-dist/tex/xelatex
parenta29c55aa7b233e8eba45a3959c851e9898c0ce93 (diff)
xepersian (9apr13)
git-svn-id: svn://tug.org/texlive/trunk@29791 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def100
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def7
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty4
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty5
4 files changed, 110 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def
new file mode 100644
index 00000000000..af83f3337dc
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def
@@ -0,0 +1,100 @@
+%%
+%% This is file `glossaries-xepersian.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% xepersian.dtx (with options: `glossaries-xepersian.def')
+%%
+%% ______________________________________
+%% Copyright © 2008–2013 Persian TeX Group
+%%
+%% License information appended.
+%%
+%%
+
+\ProvidesFile{glossaries-xepersian.def}[2013/04/08 v0.1 xepersian adaptations for glossaries package for XeTeX engine]
+\newcommand*{\gls@harfipage}{\@harfi\c@page}
+\newcommand*{\gls@tartibipage}{\@tartibi\c@page}
+\newcommand*{\gls@adadipage}{\@adadi\c@page}
+\renewcommand{\gls@protected@pagefmts}{%
+ \gls@numberpage,\gls@alphpage,\gls@Alphpage,\gls@romanpage,\gls@harfipage,\gls@tartibipage,\gls@adadipage
+}
+\renewcommand*{\@@do@wrglossary}[1]{%
+ \begingroup
+ \let\orgnumber\number
+ \let\orgromannumeral\romannumeral
+ \let\orgalph\@alph
+ \let\orgAlph\@Alph
+ \let\orgharfi\@harfi
+ \let\orgadadi\@adadi
+ \let\orgtartibi\@tartibi
+ \def\the##1{%
+ \ifx##1\c@page \gls@numberpage\else\orgnumber##1\fi}%
+ \def\number##1{%
+ \ifx##1\c@page \gls@numberpage\else\orgnumber##1\fi}%
+ \def\romannumeral##1{%
+ \ifx##1\c@page \gls@romanpage\else\orgnumber##1\fi}%
+ \def\@alph##1{%
+ \ifx##1\c@page \gls@alphpage\else\orgnumber##1\fi}%
+ \def\@Alph##1{%
+ \ifx##1\c@page \gls@Alphpage\else\orgnumber##1\fi}%
+ \def\@harfi##1{%
+ \ifx##1\c@page \gls@harfipage\else\orgnumber##1\fi}%
+ \def\@adadi##1{%
+ \ifx##1\c@page \gls@adadipage\else\orgnumber##1\fi}%
+ \def\@tartibi##1{%
+ \ifx##1\c@page \gls@tartibipage\else\orgnumber##1\fi}%
+ \gls@disablepagerefexpansion
+ \protected@xdef\@glslocref{\theglsentrycounter}%
+ \endgroup
+ \@gls@checkmkidxchars\@glslocref
+ \expandafter\ifx\theHglsentrycounter\theglsentrycounter
+ \def\@glo@counterprefix{}%
+ \else
+ \protected@edef\@glsHlocref{\theHglsentrycounter}%
+ \@gls@checkmkidxchars\@glsHlocref
+ \edef\@do@gls@getcounterprefix{\noexpand\@gls@getcounterprefix
+ {\@glslocref}{\@glsHlocref}%
+ }%
+ \@do@gls@getcounterprefix
+ \fi
+ \ifglsxindy
+ \expandafter\@glo@check@mkidxrangechar\@glsnumberformat\@nil
+ \def\@glo@range{}%
+ \expandafter\if\@glo@prefix(\relax
+ \def\@glo@range{:open-range}%
+ \else
+ \expandafter\if\@glo@prefix)\relax
+ \def\@glo@range{:close-range}%
+ \fi
+ \fi
+ \glossary[\csname glo@#1@type\endcsname]{%
+ (indexentry :tkey (\csname glo@#1@index\endcsname)
+ :locref \string"{\@glo@counterprefix}{\@glslocref}\string" %
+ :attr \string"\@gls@counter\@glo@suffix\string"
+ \@glo@range
+ )
+ }%
+ \else
+ \@set@glo@numformat{\@glo@numfmt}{\@gls@counter}{\@glsnumberformat}%
+ {\@glo@counterprefix}%
+ \glossary[\csname glo@#1@type\endcsname]{%
+ \string\glossaryentry{\csname glo@#1@index\endcsname
+ \@gls@encapchar\@glo@numfmt}{\@glslocref}}%
+ \fi
+}
+%%
+%% Copyright © 2008–2013 Persian TeX Group <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
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “maintained” (as per LPPL maintenance status)
+%% by Persian TeX Group.
+%%
+%%
+%%
+%%
+%% End of file `glossaries-xepersian.def'.
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
index 0797b71c31b..4e64ad589e5 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
@@ -13,7 +13,7 @@
%%
%%
-\ProvidesFile{hyperref-xepersian.def}[2010/07/25 v0.3 bilingual captions for hyperref package]
+\ProvidesFile{hyperref-xepersian.def}[2013/04/16 v0.5 bilingual captions for hyperref package]
\def\equationautorefname{\if@RTL معادله\else Equation\fi}%
\def\footnoteautorefname{\if@RTL زیرنویس\else footnote\fi}%
\def\itemautorefname{\if@RTL فقره\else item\fi}%
@@ -40,6 +40,11 @@
\HyOrg@appendix
}
}
+\pdfstringdefDisableCommands{%
+\let\lr\@firstofone
+\let\rl\@firstofone
+\def\XePersian{XePersian}
+}
%%
%% Copyright © 2008–2013 Persian TeX Group <persian-tex@tug.org>
%%
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
index 60b17855f84..754c86d8286 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
@@ -15,9 +15,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xepersian-mathsdigitspec}
- [2013/04/04 v1.0.3 Unicode Persian maths digits in XeLaTeX]
-\@ifundefined{Umathcode}{\let\Umathcode\XeTeXmathcode}{}
-\@ifundefined{Umathchardef}{\let\Umathchardef\XeTeXmathchardef}{}
+ [2013/04/08 v1.0.4 Unicode Persian maths digits in XeLaTeX]
\def\new@mathgroup{\alloc@8\mathgroup\chardef\@cclvi}
\let\newfam\new@mathgroup
\def\select@group#1#2#3#4{%
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index e8e0683f27c..33969b37414 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -14,8 +14,8 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v12.1}
-\def\xepersiandate{2013/04/04}
+\def\xepersianversion{v12.3}
+\def\xepersiandate{2013/04/16}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -559,6 +559,7 @@ number is 999,999,999.}%
\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{}
\@ifpackageloaded{empheq}{\input{empheq-xepersian.def}}{}
\@ifpackageloaded{framed}{\input{framed-bidi-xepersian.def}}{}
+\@ifpackageloaded{glossaries}{\input{glossaries-xepersian.def}}{}
\@ifpackageloaded{hyperref}{\input{hyperref-xepersian.def}}{}
\@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{}
\@ifpackageloaded{natbib}{\input{natbib-xepersian.def}}{}