From d7b58e068515be93773d0d24636c6c59fc966c3b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 24 Sep 2013 22:33:43 +0000 Subject: xepersian (23sep13) git-svn-id: svn://tug.org/texlive/trunk@31749 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/xelatex/xepersian/xepersian.dtx | 164 +++++++++------------ .../source/xelatex/xepersian/xepersian.ins | 71 +++++---- 2 files changed, 107 insertions(+), 128 deletions(-) (limited to 'Master/texmf-dist/source/xelatex') diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index cd5564a343a..7c257f9b22f 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 -v13 +v13.1 XePersian is a package written for XeLaTeX that allows users to typeset Persian easily. @@ -16,7 +16,7 @@ will work on all operating systems. This version fixes bugs and adds new features; for more details please see -the ChangeLog. +the Change History section at the end of the documentation. If you want to report any bugs or typos and corrections in the documentation, or ask for any new features, or suggest any improvements, or ask any questions @@ -27,7 +27,7 @@ In doing so, please always explain your issue well enough, always include a minimal working examples 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: 2013/09/22 +Current version release date: 2013/09/23 ______________ Vafa Khalighi persian-tex@tug.org @@ -38,64 +38,9 @@ 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) +This work is “author-maintained” (as per LPPL maintenance status) by Vafa Khalighi. % -%<*changelog> -2013/09/22 version 13 Vafa Khalighi - * Version 13 released. - * Synced with version 13.8 of `bidi' package. - * Two new environments: `latinitems' and `parsiitems'. - -2013/05/01 version 12.8 Vafa Khalighi - * Version 12.8 released. - * Removed `empheq-xepersian.def' and `bidicode-xepersian.def'. - -2013/04/27 version 12.7 Vafa Khalighi - * Version 12.7 released. - * Synced `glossaries-xepersian.def' with version 3.05 of `glossaries' package. - -2013/04/26 version 12.6 Vafa Khalighi - * Version 12.6 released. - * Synced with version 13.000 of `bidi' package. - -2013/04/24 version 12.5 Vafa Khalighi - * Version 12.5 released. - * Fixed localizations of `verbatim' package. - * Synced with version 12.8 of `bidi' package. - -2013/04/12 version 12.4 Vafa Khalighi - * Version 12.4 released. - * Removed redefinition of `\text' from `empheq-xepersian.def'. - -2013/04/09 version 12.3 Vafa Khalighi - * Version 12.3 released. - * Disabled `\XePersian' in pdfstring when `hyperref' package is used. - -2013/04/08 version 12.2 Vafa Khalighi - * Version 12.2 released. - * Definitions of `\Umathcode' and `\Umathchardef' removed from - `xepersian-mathsdigitspec.sty'. - * `harfi', `adadi', and `tartibi' counters are now protected when `glossaries' - package is used. - * Disabled `\lr' and `\rl' in pdfstring when `hyperref' package is used. - -2013/04/01 version 12.1 Vafa Khalighi - * Version 12.1 released. - * `\prg_stepwise_inline:nnnn' in `xepersian-mathsdigitspec.sty' is changed to - `\int_step_inline:nnnn' - * `\XeTeXmathcode' and `\XeTeXmathchardef' in `xepersian-mathsdigitspec.sty' - are changed to `\Umathcode' and `\Umathchardef', respectively. - * On page 44, line 5 of the documentation, the extra repetition of `syntax' is removed. - * On the last line of page 39 of the documentation,`\Junicode' is changed to `\junicode'. - * On page 39, section 2.7.2 of the documentation, `In this example, we define \Nastaliq - to stand for Nastaliq font' is changed to `In this example, we define \Nastaliq to stand - for IranNastaliq font'. - * Fixed `\AutoMathsDigits' in `\lr'. - * Lines 30-36 of `parsidigits.map' removed. - * Fixed the issue of `latin' environment not changing the font of `\caption' to latin. -% - %<*internal> \fi \begingroup @@ -106,27 +51,18 @@ by Vafa Khalighi. \keepsilent \preamble - ______________________________________ - Copyright © 2008–2013 Vafa Khalighi - - License information appended. + __________________________________________________ + Copyright © 2008–2013 Vafa Khalighi + 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 -\endpreamble -\postamble - -Copyright © 2008–2013 Vafa Khalighi + This work is “author-maintained” (as per LPPL maintenance status) + by Vafa Khalighi. -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 Vafa Khalighi. - - - -\endpostamble +\endpreamble \askforoverwritefalse \let\MetaPrefix\DoubleperCent \generate{\file{algorithmic-xepersian.def}{\from{\jobname.dtx}{algorithmic-xepersian.def}}} @@ -172,8 +108,14 @@ by Vafa Khalighi. \generate{\file{natbib-xepersian.def}{\from{\jobname.dtx}{natbib-xepersian.def}}} \generate{\file{packages-localise-xepersian.def}{\from{\jobname.dtx}{packages-localise-xepersian.def}}} \def\MetaPrefix{;;} +\def\mapping@postamble{% + \MetaPrefix ^^J% + \MetaPrefix\space End of file `\outFileName'.% +} +\usepostamble\mapping@postamble \generate{\file{parsidigits.map}{\from{\jobname.dtx}{parsidigits.map}}} \let\MetaPrefix\DoubleperCent +\usepostamble\org@postamble \generate{\file{rapport1-xepersian.def}{\from{\jobname.dtx}{rapport1-xepersian.def}}} \generate{\file{rapport3-xepersian.def}{\from{\jobname.dtx}{rapport3-xepersian.def}}} \generate{\file{refrep-xepersian.def}{\from{\jobname.dtx}{refrep-xepersian.def}}} @@ -194,7 +136,6 @@ by Vafa Khalighi. \generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}} \nopreamble\nopostamble \generate{\file{README.txt}{\from{\jobname.dtx}{readme}}} -\generate{\file{ChangeLog.txt}{\from{\jobname.dtx}{changelog}}} \generate{\file{magazine-sample.tex}{\from{\jobname.dtx}{magazine-sample.tex}}} \generate{\file{test-correction.tex}{\from{\jobname.dtx}{test-correction.tex}}} \generate{\file{test-empty-form.tex}{\from{\jobname.dtx}{test-empty-form.tex}}} @@ -203,13 +144,12 @@ by Vafa Khalighi. \generate{\file{xepersian-logo.tex}{\from{\jobname.dtx}{xepersian-logo.tex}}} \endgroup \immediate\write18{mv README.txt README} -\immediate\write18{mv ChangeLog.txt ChangeLog} \immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx} \immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo} % % %<*driver> -\documentclass{artikel3} +\documentclass{ltxdoc} \usepackage{supertabular} \usepackage{fontspec} \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Iwona} @@ -256,7 +196,7 @@ by Vafa Khalighi. \EnableCrossrefs \CodelineIndex \RecordChanges -\OnlyDescription +%\OnlyDescription \begin{document} \DocInput{\jobname.dtx} \PrintIndex @@ -267,15 +207,31 @@ by Vafa Khalighi. % % \fi % -% \GetFileInfo{\jobname.sty} -% \CheckSum{0} -% \makeatletter +% \GetFileInfo{\jobname.dtx} +%% \CheckSum{9935} +%% \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 +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +%\changes{v13.1}{2013/09/23}{Added implementation of the package.} % \title{The \textsf{\XePersian} Package\\[10pt] % \includegraphics[width=0.5\textwidth]{xepersian-logo}\\[10pt] % Persian for \LaTeXe{} over \XeTeX} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} -% \date{\today\qquad Version 13} +% \date{\today\qquad Version 13.1} %\maketitle %\vskip 0pt plus 3fill %\fbox{% @@ -312,9 +268,11 @@ by Vafa Khalighi. %Description: The package supports Persian %typesetting, using fonts provided in the distribution. %Copyright © 2008-2013 Vafa Khalighi -%v13, 2013/09/22 +%2013/09/23, v13.1 %License: LaTeX Project Public License, version 1.3c or higher (your choice) %Location on CTAN: /macros/xetex/latex/xepersian +%Issue tracker: https://github.com/vafa/xepersian/issues +%Support: persian-tex@tug.org %\end{lstlisting} %\section{Basics\label{basics}} %\subsection{Loading The Package} @@ -5629,25 +5587,37 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v13} -\def\xepersiandate{2013/09/22} +\def\xepersianversion{v13.1} +\def\xepersiandate{2013/09/23} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} \RequirePackage{xepersian-persiancal} \RequirePackage{xepersian-mathsdigitspec} \RequirePackage[RTLdocument]{bidi} -\edef\xepersianinfo{% -xepersian package (Persian for LaTeX over XeTeX)^^J -Description: The package supports Persian^^J -typesetting, using fonts provided in the distribution.^^J -Copyright © 2008–2013 Vafa Khalighi^^J -\xepersianversion, \xepersiandate^^J -License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J -Location on CTAN: /macros/xetex/latex/xepersian} -\typeout{\xepersianinfo} +\edef\@xepersian@info{******************************************************************************^^J% +* ^^J% +* xepersian package (Persian for LaTeX over XeTeX)^^J% +* ^^J% +* Description: The package supports Persian^^J% +* typesetting, using fonts provided in the distribution.^^J% +* ^^J% +* Copyright © 2008–2013 Vafa Khalighi^^J% +* ^^J% +* \xepersianversion, \xepersiandate^^J% +* ^^J% +* License: LaTeX Project Public License, version 1.3c^^J% +* or higher (your choice)^^J% +* ^^J% +* Location on CTAN: /macros/xetex/latex/xepersian^^J% +* ^^J% +* Issue tracker: https://github.com/vafa/xepersian/issues^^J% +* ^^J% +* Support: persian-tex@tug.org^^J% +******************************************************************************} +\typeout{\@xepersian@info} \edef\xepersian@everyjob{\the\everyjob} -\everyjob{\xepersian@everyjob\typeout{\xepersianinfo}} +\everyjob{\xepersian@everyjob\typeout{\@xepersian@info}} \def\prq{«} \def\plq{»} \def\xepersian@cmds@temp#1{% diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins index df7f83700c1..93218756c7e 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins @@ -6,36 +6,33 @@ %% %% xepersian.dtx (with options: `batchfile') %% -%% ______________________________________ -%% Copyright © 2008–2013 Vafa Khalighi +%% __________________________________________________ +%% Copyright © 2008–2013 Vafa Khalighi %% -%% License information appended. +%% 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 “author-maintained” (as per LPPL maintenance status) +%% by Vafa Khalighi. %% %% - \input docstrip.tex \let\MetaPrefix\relax \keepsilent \preamble - ______________________________________ - Copyright © 2008–2013 Vafa Khalighi + __________________________________________________ + Copyright © 2008–2013 Vafa Khalighi - License information appended. - -\endpreamble -\postamble + 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 -Copyright © 2008–2013 Vafa Khalighi + This work is “author-maintained” (as per LPPL maintenance status) + by Vafa Khalighi. -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 Vafa Khalighi. - -\endpostamble +\endpreamble \askforoverwritefalse \let\MetaPrefix\DoubleperCent \generate{\file{algorithmic-xepersian.def}{\from{\jobname.dtx}{algorithmic-xepersian.def}}} @@ -81,8 +78,14 @@ by Vafa Khalighi. \generate{\file{natbib-xepersian.def}{\from{\jobname.dtx}{natbib-xepersian.def}}} \generate{\file{packages-localise-xepersian.def}{\from{\jobname.dtx}{packages-localise-xepersian.def}}} \def\MetaPrefix{;;} +\def\mapping@postamble{% + \MetaPrefix ^^J% + \MetaPrefix\space End of file `\outFileName'.% +} +\usepostamble\mapping@postamble \generate{\file{parsidigits.map}{\from{\jobname.dtx}{parsidigits.map}}} \let\MetaPrefix\DoubleperCent +\usepostamble\org@postamble \generate{\file{rapport1-xepersian.def}{\from{\jobname.dtx}{rapport1-xepersian.def}}} \generate{\file{rapport3-xepersian.def}{\from{\jobname.dtx}{rapport3-xepersian.def}}} \generate{\file{refrep-xepersian.def}{\from{\jobname.dtx}{refrep-xepersian.def}}} @@ -98,17 +101,23 @@ by Vafa Khalighi. \generate{\file{xepersian-multiplechoice.sty}{\from{\jobname.dtx}{xepersian-multiplechoice.sty}}} \generate{\file{xepersian-persiancal.sty}{\from{\jobname.dtx}{xepersian-persiancal.sty}}} \endbatchfile -%% -%% Copyright © 2008–2013 Vafa Khalighi -%% -%% 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 Vafa Khalighi. -%% -%% -%% +%% \CheckSum{9935} +%% \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 +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\endinput %% %% End of file `xepersian.ins'. -- cgit v1.2.3