diff options
author | Karl Berry <karl@freefriends.org> | 2014-09-04 21:11:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-09-04 21:11:41 +0000 |
commit | b88de8633bdae5363ba12bfbb625f75c706e5efc (patch) | |
tree | 1ad10f3395d1d93597280f66deb100276e110a6a /Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def | |
parent | faa991921a13b1f1949110a74b48fe515b66a036 (diff) |
xepersian (4sep14)
git-svn-id: svn://tug.org/texlive/trunk@35109 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def | 83 |
1 files changed, 6 insertions, 77 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def index 144d3fc6625..ab1597701e4 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def +++ b/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def @@ -7,7 +7,7 @@ %% xepersian.dtx (with options: `table,glossaries-xepersian.def') %% %% __________________________________________________ -%% Copyright © 2008–2013 Vafa Khalighi <persian-tex@tug.org> +%% Copyright © 2008–2013 Vafa Khalighi <vafak@me.com> %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{10021} +%% \CheckSum{9820} %% \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 @@ -34,81 +34,10 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{glossaries-xepersian.def}[2013/04/27 v0.2 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@Romanpage,\gls@harfipage,\gls@tartibipage,\gls@adadipage% -} -\renewcommand*{\@@do@wrglossary}[1]{% - \begingroup - \let\orgthe\the - \let\orgnumber\number - \let\orgromannumeral\romannumeral - \let\orgalph\@alph - \let\orgAlph\@Alph - \let\orgRoman\@Roman - \let\orgharfi\@harfi - \let\orgadadi\@adadi - \let\orgtartibi\@tartibi - \def\the##1{% - \ifx##1\c@page \gls@numberpage\else\orgthe##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\orgromannumeral##1\fi}% - \def\@Roman##1{% - \ifx##1\c@page \gls@Romanpage\else\orgRoman##1\fi}% - \def\@alph##1{% - \ifx##1\c@page \gls@alphpage\else\orgalph##1\fi}% - \def\@Alph##1{% - \ifx##1\c@page \gls@Alphpage\else\orgAlph##1\fi}% - \def\@harfi##1{% - \ifx##1\c@page \gls@harfipage\else\orgharfi##1\fi}% - \def\@adadi##1{% - \ifx##1\c@page \gls@adadipage\else\orgadadi##1\fi}% - \def\@tartibi##1{% - \ifx##1\c@page \gls@tartibipage\else\orgtartibi##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 -} +\ProvidesFile{glossaries-xepersian.def}[2014/09/04 v0.4 xepersian adaptations for glossaries package for XeTeX engine] +\glsaddprotectedpagefmt{@harfi} +\glsaddprotectedpagefmt{@tartibi} +\glsaddprotectedpagefmt{@adadi} \endinput %% %% End of file `glossaries-xepersian.def'. |