diff options
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 47 | ||||
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.ins | 4 |
2 files changed, 28 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 878606a2984..f3c8f8b7f98 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx @@ -5,10 +5,10 @@ %<*readme> _________________ The XePersian package -v1.1.6 +v1.1.8 XePersian is a package written for XeLaTeX that allows users to typeset -Persian easily. The current version is 1.1.6 and it will be developed to +Persian easily. The current version is 1.1.8 and it will be developed to meet the needs of Persian typesetting properly. The XePersian package is independent of any operating system, meaning it @@ -24,7 +24,7 @@ To get help, please explore http://forum.parsilatex.com ______________ Vafa Khalighi -vafa018@gmail.com +vafaklg@gmail.com Copyright © 2008–2011 Distributed under the LaTeX Project Public License @@ -54,7 +54,7 @@ by Vafa Khalighi. \endpreamble \postamble -Copyright © 2008–2011 Vafa Khalighi <vafa018@gmail.com> +Copyright © 2008–2011 Vafa Khalighi <vafaklg@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 @@ -155,7 +155,7 @@ by Vafa Khalighi. \usepackage{bidicode} \usepackage[numbered]{hypdoc} \definecolor{myred}{rgb}{0.65,0.04,0.07} -\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={Vafa Khalighi <vafa018@gmail.com>}} +\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={Vafa Khalighi <vafaklg@gmail.com>}} \usepackage{bidi} \setlength\columnseprule{.4pt} \newfontfamily\ParsiFont[Script=Arabic]{Iranian Sans} @@ -203,11 +203,11 @@ by Vafa Khalighi. % \GetFileInfo{\jobname.sty} % \CheckSum{0} % \makeatletter -% \title{The \textsf{\XePersian} Package\\ \url{http://bitbucket.org/vafa/xepersian}\\[5pt] +% \title{The \textsf{\XePersian} Package\\[5pt] % Persian for \LaTeXe{} over \XeTeX} % \author{Vafa Khalighi\\ -% \url{vafa018@gmail.com}} -% \date{\today\qquad Version 1.1.6} +% \url{vafaklg@gmail.com}} +% \date{\today\qquad Version 1.1.8} %\maketitle %\tableofcontents %\section{Introduction} @@ -227,9 +227,8 @@ by Vafa Khalighi. %Description: The package supports Persian %typesetting, using fonts provided in the distribution. %Copyright © 2008-2011 Vafa Khalighi -%v1.1.6, 2011/08/01 +%v1.1.8, 2011/09/16 %License: LaTeX Project Public License, version 1.3c or higher (your choice) -%Home: http://bitbucket.org/vafa/xepersian %Location on CTAN: /macros/xetex/latex/xepersian %\end{lstlisting} %\section{Basics\label{basics}} @@ -293,10 +292,10 @@ by Vafa Khalighi. %\subsection{{Options of The Package\label{options}}} %There are three options: %\subsection{\texttt{extrafootnotefeatures} Option} -%This is just the \texttt{extrafootnotefeatures} Option of \textsf{bidi} package. Please refer to \textsf{bidi} package for details. +%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} %If you pass \texttt{Kashida} option to the package, you will use Kashida for stretching words for better output quality and getting rid of underfull or overfull \Lcs{hbox} messages. -%\marginpar{This is the font issue not \XePersian's bug}Please note that X series fonts of IRMUG (Iranian Mac Users Group) have absolutely super poor quality and if you use any of these fonts with \texttt{Kashida} option enabled, the result on the PDF viewed on the monitor is the ugliest of any kind, however the print may look fine. Hence if you are going to enable \texttt{Kashida} option , then you are advised to use either ``Adobe Arabic'' or ``Scheherazade'' fonts. +%\marginpar{This is the font issue not \XePersian's bug}Please note that unfortunately X series fonts of IRMUG (Iranian Mac Users Group) do not have Kashida support and if you use any of these fonts with \texttt{Kashida} option enabled, the result on the PDF viewed on the monitor is not pleasant, however the print may look fine. Hence if you are going to enable \texttt{Kashida} option , then you are advised to use either ``Adobe Arabic'' or ``Scheherazade'' fonts or any other fonts that has fine Kashida support, like \textsf{Persian Modern} font (the default font of \XePersian{} package). % %Note that you can not use \texttt{Kashida} option when you are using Nastaliq-like font (well, you still can use \texttt{Kashida} option when you use any Nastaliq-like font, but I can not guarantee high quality output!). % @@ -1487,9 +1486,9 @@ by Vafa Khalighi. %\end{BDef} %\begin{itemize} %\item Options in any font command in this documentation are anything that \textsf{fontspec} package provides as the option of loading fonts, except \texttt{Script} and \texttt{Mapping}. -%\item \Lcs{settextfont} will choose the default font for Persian texts of your document. This command is compulsory and if you do not use it at least once, you will get error saying that you should choose a Persian font by using this command. +%\item \Lcs{settextfont} will choose the default font for Persian texts of your document. If you do not use this command at all, the \textsf{Persian Modern}\footnote{You do not need to install \textsf{Persian Modern} fonts since they are already included in your TeX distribution.} font will be used for Persian texts of your document. %\item \Lcs{setlatintextfont} will choose the font for Latin texts of your document. If you do not use this command at all, the default \TeX\ font (fonts used in this documentation) will be used for Latin texts of your document. -%\item \Lcs{setdigitfont} will choose the Persian font for digits in math mode. By using this command, digits in math mode will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode and digits appear in their original form (Western). +%\item \Lcs{setdigitfont} will choose the Persian font for digits in math mode. By default, digits in math mode will appear in Persian form and if you do not use this command at all, the \textsf{Persian Modern} font for digits in math mode will be used. %\item \Lcs{setmathsfdigitfont} will choose the Persian font for digits in math mode inside \Lcs{mathsf}. By using this command, digits in math mode inside \Lcs{mathsf} will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode inside \Lcs{mathsf} and digits appear in their original form (Western). %\item \Lcs{setmathttdigitfont} will choose the Persian font for digits in math mode inside \Lcs{mathtt}. By using this command, digits in math mode inside \Lcs{mathtt} will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode inside \Lcs{mathtt} and digits appear in their original form (Western). %\end{itemize} @@ -1521,24 +1520,25 @@ by Vafa Khalighi. %\Lcs{persianttfamily}\quad\Lcs{textpersiantt}\Largb{\Larga{text}} %\end{BDef} %\subsubsection{Choosing Persian Iranic Font} +%\marginpar{If you do not use \Lcs{setiranicfont} command at all, the \textsf{Persian Modern} font will be used.} %\begin{BDef} %\Lcs{setiranicfont}\OptArgs\Largb{\Larga{font name}}\\ %\Lcs{iranicfamily}\quad\Lcs{textiranic}\Largb{\Larga{text}} %\end{BDef} -% %\subsubsection{Choosing Persian Navar Font} %\begin{BDef} %\Lcs{setnavarfont}\OptArgs\Largb{\Larga{font name}}\\ %\Lcs{navarfamily}\quad\Lcs{textnavar}\Largb{\Larga{text}} %\end{BDef} -% %\subsubsection{Choosing Persian Pook Font} +%\marginpar{If you do not use \Lcs{setpookfont} command at all, the \textsf{Persian Modern} font will be used.} %\begin{BDef} %\Lcs{setpookfont}\OptArgs\Largb{\Larga{font name}}\\ %\Lcs{pookfamily}\quad\Lcs{textpook}\Largb{\Larga{text}} %\end{BDef} % %\subsubsection{Choosing Persian Sayeh Font} +%\marginpar{If you do not use \Lcs{setsayehfont} command at all, the \textsf{Persian Modern} font will be used.} %\begin{BDef} %\Lcs{setsayehfont}\OptArgs\Largb{\Larga{font name}}\\ %\Lcs{sayehfamily}\quad\Lcs{textsayeh}\Largb{\Larga{text}} @@ -1598,7 +1598,8 @@ by Vafa Khalighi. %\Lcs{DefaultMathsDigits}\quad\Lcs{PersianMathsDigits}\quad\Lcs{AutoMathsDigits} %\end{BDef} %\begin{itemize} -%\item As we discussed before, \Lcs{setdigitfont} will choose the Persian font for digits in math mode. By using this command, digits in math mode will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode and digits appear in their original form (Western). The same is also true for \Lcs{setmathsfdigitfont}, and \Lcs{setmathttdigitfont}. +% \item As we discussed before, \Lcs{setdigitfont} will choose the Persian font for digits in math mode. By default, digits in math mode will appear in Persian form and if you do not use this command at all, the \textsf{Persian Modern} font for digits in math mode will be used. +%\item As we discussed before, \Lcs{setmathsfdigitfont}, and \Lcs{setmathttdigitfont} will choose the Persian sans serif and typewriter fonts for digits in math mode. By using this command, digits in math mode will appear in Persian form and if you do not use this command at all, you will get default \TeX\ font for digits in math mode and digits appear in their original form (Western). % %If you use \Lcs{setdigitfont}, \Lcs{setmathsfdigitfont}, and \Lcs{setmathttdigitfont}, then you should know that: %\begin{itemize} @@ -5565,8 +5566,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v1.1.6} -\def\xepersiandate{2011/08/01} +\def\xepersianversion{v1.1.8} +\def\xepersiandate{2011/09/16} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -5581,7 +5582,6 @@ typesetting, using fonts provided in the distribution.^^J Copyright © 2008–2011 Vafa Khalighi^^J \xepersianversion, \xepersiandate^^J License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J -Home: http://bitbucket.org/vafa/xepersian^^J Location on CTAN: /macros/xetex/latex/xepersian} \typeout{\xepersianinfo} \edef\xepersian@everyjob{\the\everyjob} @@ -5620,6 +5620,8 @@ Location on CTAN: /macros/xetex/latex/xepersian} \let\rmdefault\zf@family \normalfont } +\settextfont[ExternalLocation,BoldFont={persian-modern-bold},BoldItalicFont={persian-modern-bolditalic},ItalicFont={persian-modern-italic},SlantedFont={persian-modern-oblique},BoldSlantedFont={persian-modern-boldoblique},Language=Default]{persian-modern-regular} +\setdigitfont[ExternalLocation,BoldFont={persian-modern-bold},BoldItalicFont={persian-modern-bolditalic},ItalicFont={persian-modern-italic},SlantedFont={persian-modern-oblique},BoldSlantedFont={persian-modern-boldoblique},Language=Default]{persian-modern-regular} \newcommand*\setlatintextfont[2][]{% \newfontfamily\latinfont[Mapping=tex-text,#1]{#2} } @@ -5688,14 +5690,17 @@ Location on CTAN: /macros/xetex/latex/xepersian} \zf@fontspec{Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2}% \let\pookdefault\zf@family \normalfont} +\setpookfont[ExternalLocation,ItalicFont={persian-modern-italicoutline},SlantedFont={persian-modern-obliqueoutline},BoldSlantedFont={persian-modern-obliqueoutline},Language=Default]{persian-modern-outline} \newcommand*\setsayehfont[2][]{% \zf@fontspec{Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2}% \let\sayehdefault\zf@family \normalfont} +\setsayehfont[ExternalLocation,ItalicFont={persian-modern-italicshadow},SlantedFont={persian-modern-obliqueshadow},BoldSlantedFont={persian-modern-obliqueshadow},Language=Default]{persian-modern-shadow} \newcommand*\setiranicfont[2][]{% \zf@fontspec{Script=Parsi,Language=Parsi,Mapping=parsidigits,#1}{#2}% \let\iranicdefault\zf@family \normalfont} +\setiranicfont[ExternalLocation,BoldFont={persian-modern-boldoblique},BoldItalicFont={persian-modern-bolditalic},Language=Default]{persian-modern-oblique} \def\resetlatinfont{% \let\normalfont\latinfont% \latinfont} @@ -7359,7 +7364,7 @@ indexblock environment may only appear inside frontpage environment. وفا خلیقی، مهدی امیدعلی و مصطفی واحدی -\texttt{vafa018@gmail.com\\[5pt] +\texttt{vafaklg@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 2b313ce5e80..33408685dd9 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins @@ -25,7 +25,7 @@ \endpreamble \postamble -Copyright © 2008–2011 Vafa Khalighi <vafa018@gmail.com> +Copyright © 2008–2011 Vafa Khalighi <vafaklg@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 @@ -97,7 +97,7 @@ by Vafa Khalighi. \generate{\file{xepersian-persiancal.sty}{\from{\jobname.dtx}{xepersian-persiancal.sty}}} \endbatchfile %% -%% Copyright © 2008–2011 Vafa Khalighi <vafa018@gmail.com> +%% Copyright © 2008–2011 Vafa Khalighi <vafaklg@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 |