diff options
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xepersian')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 104 | ||||
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.ins | 4 |
2 files changed, 59 insertions, 49 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 1754ea22e97..0d6a67af85b 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 -v14.3 +v14.4 XePersian is a package written for XeLaTeX that allows users to typeset Persian easily. @@ -18,19 +18,11 @@ will work on all operating systems. This version fixes bugs and adds new features; for more details please see 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 -about the package, then please do not send any direct email to me; I will not -answer any direct email. Instead please use the issue tracker: - <https://github.com/vafak/xepersian/issues> -In doing so, please always explain your issue well enough, always include -a minimal working example 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: 2014/09/03 +Current version release date: 2014/09/08 ______________ Vafa Khalighi -vafak@me.com +tex.ctan@gmail.com Copyright © 2008–2014 Distributed under the LaTeX Project Public License @@ -52,7 +44,7 @@ by Vafa Khalighi. \preamble __________________________________________________ - Copyright © 2008–2013 Vafa Khalighi <vafak@me.com> + Copyright © 2008–2013 Vafa Khalighi <tex.ctan@gmail.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 @@ -160,7 +152,7 @@ by Vafa Khalighi. \definecolor{xepersianblue}{rgb}{0.1,0.2,0.8} \usepackage[numbered]{hypdoc} \definecolor{myred}{rgb}{0.65,0.04,0.07} -\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeX, using XeTeX engine)},pdfauthor={Vafa Khalighi <vafak@me.com>},linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue} +\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeX, using XeTeX engine)},pdfauthor={Vafa Khalighi <tex.ctan@gmail.com>},linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue} \usepackage{bidi} \setlength\columnseprule{.4pt} \newfontfamily\ParsiFont[Script=Arabic]{Iranian Sans} @@ -213,29 +205,10 @@ by Vafa Khalighi. % \includegraphics[width=0.5\textwidth]{xepersian-logo}\\[10pt] % Persian for \LaTeX, using {\XeTeX} engine} % \author{Vafa Khalighi\\ -% \url{vafak@me.com}} -% \date{\today\qquad Version 14.3} +% \url{tex.ctan@gmail.com}} +% \date{\today\qquad Version 14.4} %\maketitle -%\vskip 0pt plus 3fill -%\fbox{% -%\begin{minipage}{\dimexpr(\textwidth-2\fboxsep-2\fboxrule)} -%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 -%about the package, then please do not send any direct email to me; I will not -%answer any direct email. Instead please use the issue tracker: -% -%\medskip -% \centerline{\url{https://github.com/vafak/xepersian/issues}} -% -%\medskip -%In doing so, please always explain your issue well enough, always include -%a minimal working example showing the issue, and always choose the appropriate -%label for your query (i.e. if you are reporting any bugs, choose `Bug' label). -%\end{minipage} -%} -%\clearpage % \tableofcontents -%\clearpage %\section{Introduction} %\XePersian\ is a package for typesetting Persian/English documents with \XeLaTeX. The package includes adaptations for use with many other commonly-used packages. %\subsection{Important Notes} @@ -258,16 +231,14 @@ by Vafa Khalighi. %* %* Copyright © 2008–2014 Vafa Khalighi %* -%* v14.3, 2014/09/03 +%* v14.4, 2014/09/08 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) %* %* Location on CTAN: /macros/xetex/latex/xepersian %* -%* Issue tracker: https://github.com/vafak/xepersian/issues -%* -%* Support: vafak@me.com +%* Support: tex.ctan@gmail.com %**************************************************** %\end{verbatim} %\section{Basics\label{basics}} @@ -331,7 +302,19 @@ by Vafa Khalighi. %\end{document} %\end{lstlisting} %\subsection{{Options of The Package\label{options}}} -%There are six options: +%There are few options: +%\subsubsection{\texttt{preloadeddigitfont}} +% This option will load the `Parisa' font for the Persian digits in math mode (i.e. \Lcs{setdigitfont}). +%\subsubsection{\texttt{preloadediranicfont}} +%This option will load the `Parisa' font as the iranic font (i.e. \Lcs{setiranicfont}). +%\subsubsection{\texttt{preloadedlatintextfont}} +% This option will load the `Parisa' font for the main Latin text (i.e. \Lcs{setlatintextfont}). +%\subsubsection{\texttt{preloadedpookfont}} +% This option will loaded the `Parisa' font as the pook font (i.e. \Lcs{setpookfont}). +%\subsubsection{\texttt{preloadedsayehfont}} +% This option will loaded the `Parisa' font as the sayeh font (i.e. \Lcs{setsayehfont}). +%\subsubsection{\texttt{preloadedtextfont}} +% This option will load the `Parisa' font for the main Persian text (i.e. \Lcs{settextfont}). %\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} @@ -2274,7 +2257,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{9820} +%% \CheckSum{9843} %% \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 @@ -5581,8 +5564,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v14.3} -\def\xepersiandate{2014/09/03} +\def\xepersianversion{v14.4} +\def\xepersiandate{2014/09/08} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -5606,9 +5589,7 @@ Persian typesetting in XeLaTeX] * ^^J% * Location on CTAN: /macros/xetex/latex/xepersian^^J% * ^^J% -* Issue tracker: https://github.com/vafak/xepersian/issues^^J% -* ^^J% -* Support: vafak@me.com^^J% +* Support: tex.ctan@gmail.com^^J% ****************************************************} \typeout{\@xepersian@info} \edef\xepersian@everyjob{\the\everyjob} @@ -5663,7 +5644,6 @@ Persian typesetting in XeLaTeX] } } } -\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold}]{lmroman10-regular} \cs_set_eq:NN \setlatinsansfont \setsansfont \cs_set_eq:NN \setlatinmonofont \setmonofont \DeclareDocumentCommand \defpersianfont { m O{} m } { @@ -6126,6 +6106,18 @@ number is 999,999,999.}% \let\@Alph\@latinAlph% } \PersianAlphs +\bidi@AfterEndPreamble{% +\if@bidi@csundef{persianfont}{% +\PackageError{xepersian}{You have not specified any font\MessageBreak + for the main Persian text}{Either use `\settextfont' to load a font\MessageBreak +or load the package with `preloadedtextfont' option.}% +}} +\bidi@AfterEndPreamble{% +\if@bidi@csundef{latinfont}{% +\PackageError{xepersian}{You have not specified any font\MessageBreak + for the main Latin text}{Either use `\setlatintextfont' to load a font\MessageBreak +or load the package with `preloadedlatintextfont' option.}% +}} \@ifdefinitionfileloaded{loadingorder-xetex-bidi}{\input{loadingorder-xepersian.def}}{} \@ifpackageloaded{fontspec-xetex}{\input{fontspec-xetex-xepersian.def}}{} \@ifpackageloaded{listings}{\input{listings-xepersian.def}}{} @@ -6201,6 +6193,24 @@ number is 999,999,999.}% \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{preloadedtextfont}{% +\settextfont[ExternalLocation,BoldFont={parisa-bold},BoldItalicFont={parisa-bolditalic},ItalicFont={parisa-italic},SlantedFont={parisa-oblique},BoldSlantedFont={parisa-boldoblique}]{parisa-regular}% +} +\DeclareOption{preloadeddigitfont}{% +\setdigitfont[ExternalLocation,BoldFont={parisa-bold},BoldItalicFont={parisa-bolditalic},ItalicFont={parisa-italic},SlantedFont={parisa-oblique},BoldSlantedFont={parisa-boldoblique}]{parisa-regular}% +} +\DeclareOption{preloadedpookfont}{% +\setpookfont[ExternalLocation,ItalicFont={parisa-italicoutline},SlantedFont={parisa-obliqueoutline}]{parisa-outline}% +} +\DeclareOption{preloadedsayehfont}{% +\setsayehfont[ExternalLocation,ItalicFont={parisa-italicshadow},SlantedFont={parisa-obliqueshadow}]{parisa-shadow}% +} +\DeclareOption{preloadediranicfont}{% +\setiranicfont[ExternalLocation,BoldFont={parisa-boldoblique}]{parisa-oblique}% +} +\DeclareOption{preloadedlatintextfont}{% +\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold}]{lmroman10-regular}% +} \ExecuteOptions{localise} \ProcessOptions @@ -7703,7 +7713,7 @@ indexblock environment may only appear inside frontpage environment. وفا خلیقی، مهدی امیدعلی و مصطفی واحدی -\texttt{vafak@me.com\\[5pt] +\texttt{tex.ctan@gmail.com\\[5pt] http://google.com}\\ \end{authorblock} \end{frontpage} diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins index 546bdc7a37b..323d082c8a5 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins @@ -7,7 +7,7 @@ %% xepersian.dtx (with options: `batchfile') %% %% __________________________________________________ -%% Copyright © 2008–2013 Vafa Khalighi <vafak@me.com> +%% Copyright © 2008–2013 Vafa Khalighi <tex.ctan@gmail.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 @@ -23,7 +23,7 @@ \preamble __________________________________________________ - Copyright © 2008–2013 Vafa Khalighi <vafak@me.com> + Copyright © 2008–2013 Vafa Khalighi <tex.ctan@gmail.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 |