From 0768704dd5474ed29e1b2448b17dd6445f1960bb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 14 Oct 2013 22:32:14 +0000 Subject: xepersian (14oct13) git-svn-id: svn://tug.org/texlive/trunk@31907 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/xelatex/xepersian/xepersian.dtx | 45 +++++++++++++++++----- 1 file changed, 36 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 933b4f58d92..420d736a0b1 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.3 +v13.4 XePersian is a package written for XeLaTeX that allows users to typeset Persian easily. @@ -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/29 +Current version release date: 2013/10/14 ______________ Vafa Khalighi persian-tex@tug.org @@ -214,7 +214,7 @@ by Vafa Khalighi. % Persian for \LaTeXe{} over \XeTeX} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} -% \date{\today\qquad Version 13.3} +% \date{\today\qquad Version 13.4} %\maketitle %\vskip 0pt plus 3fill %\fbox{% @@ -257,7 +257,7 @@ by Vafa Khalighi. %* %* Copyright © 2008–2013 Vafa Khalighi %* -%* v13.3, 2013/09/29 +%* v13.4, 2013/10/14 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -330,7 +330,7 @@ by Vafa Khalighi. %\end{document} %\end{lstlisting} %\subsection{{Options of The Package\label{options}}} -%There are four options: +%There are six options: %\subsubsection{\texttt{extrafootnotefeatures} Option} %This is just the \texttt{extrafootnotefeatures} Option of \textsf{bidi} package. If you enable this option, you can typeset footnotes in paragraph form or in multi-columns (from two-columns to ten-columns). For more details, please read the manual of \textsf{bidi} package. %\subsubsection{\texttt{Kashida} Option} @@ -351,6 +351,12 @@ by Vafa Khalighi. % %\subsubsection{\texttt{quickindex} Option} %When you generally want to prepare index for your Persian documents, you need to first run \texttt{xelatex}, then \texttt{xindy}, and again \texttt{xelatex} on your document respectively, which is very time consuming. The \texttt{quickindex} option gives you the index with only and only one run of \texttt{xelatex}. To use this feature, you will need to run \texttt{xelatex --shell-escape} on your \TeX{} document; otherwise you get an error which indicates that shell scape (or write18) is not enabled. +% +% This option is now obsolete and equivalent to \texttt{quickindex-variant2} option. +%\subsubsection{\texttt{quickindex-variant1} Option} +% Same as \texttt{quickindex} Option but uses variant one (in which \parsitext{آ} is grouped under \parsitext{ا}) for sorting Persian alphabets. +%\subsubsection{\texttt{quickindex-variant2} Option} +% Same as \texttt{quickindex} Option but uses variant two (in which \parsitext{آ} is a separate letter) for sorting Persian alphabets. %\subsubsection{\texttt{localise} Option} %The \texttt{localise} option is now active by default; it allows you to use most frequently-used \LaTeX\ commands and environments in Persian, almost like what \TeX-e-Parsi offers. This is still work in progress and we wish to add lots more Persian equivalents of \LaTeX\ and \TeX\ commands and environments. The Persian equivalents of \LaTeX\ and \TeX\ commands are shown in \autoref{lcs}, The Persian equivalents of \XePersian\ commands are shown in \autoref{xcs}, Persian equivalents of \LaTeX\ environments are shown in \autoref{lenv} and Persian equivalents of \XePersian\ environments are shown in \autoref{xenv} % @@ -2271,7 +2277,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{9935} +%% \CheckSum{9972} %% \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 @@ -5603,8 +5609,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v13.3} -\def\xepersiandate{2013/09/29} +\def\xepersianversion{v13.4} +\def\xepersiandate{2013/10/14} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -6197,11 +6203,32 @@ number is 999,999,999.}% \DeclareOption{localise}{\input{localise-xepersian.def}} \DeclareOption{extrafootnotefeatures}{\@extrafootnotefeaturestrue} \DeclareOption{quickindex}{% +\PackageWarning{xepersian}{Obsolete option}% +\ifwritexviii% +\@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% +\renewcommand\printindex{\newpage% +\immediate\closeout\@indexfile +\immediate\write18{xindy -L persian-variant2 -C utf8 -M texindy -M page-ranges \jobname.idx} +\@input@{\jobname.ind}}}% +\else +\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} +\DeclareOption{quickindex-variant1}{% +\ifwritexviii% +\@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% +\renewcommand\printindex{\newpage% +\immediate\closeout\@indexfile +\immediate\write18{xindy -L persian-variant1 -C utf8 -M texindy -M page-ranges \jobname.idx} +\@input@{\jobname.ind}}}% +\else +\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} +\DeclareOption{quickindex-variant2}{% \ifwritexviii% \@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% \renewcommand\printindex{\newpage% \immediate\closeout\@indexfile -\immediate\write18{xindy -L persian -C utf8 -M texindy -M page-ranges \jobname.idx} +\immediate\write18{xindy -L persian-variant2 -C utf8 -M texindy -M page-ranges \jobname.idx} \@input@{\jobname.ind}}}% \else \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}{} -- cgit v1.2.3