diff options
author | Karl Berry <karl@freefriends.org> | 2014-09-26 20:28:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-09-26 20:28:59 +0000 |
commit | 6287978720709ca67831d8d6e7a6d4269cf1a638 (patch) | |
tree | 033d860018a9eb74856186ec7d703cbe1437c3ed /Master/texmf-dist/source/xelatex/xepersian | |
parent | 08e05930e962203678a26256bf476ae1282dd402 (diff) |
xepersian (26sep14)
git-svn-id: svn://tug.org/texlive/trunk@35268 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xepersian')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index b1beaf65e11..44ea9e8ee7d 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 -v15.1 +v15.2 XePersian is a package written for XeLaTeX that allows users to typeset Persian easily. @@ -28,7 +28,7 @@ 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/25 +Current version release date: 2014/09/26 ______________ Vafa Khalighi persian-tex@tug.org @@ -271,7 +271,7 @@ by Vafa Khalighi. %\changes{v13.1}{2013/09/23}{Added implementation of the package.} % \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\ %\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt] -%\large Documentation for \textcolor{blue!65!black}{version 15.1}} +%\large Documentation for \textcolor{blue!65!black}{version 15.2}} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} %\setcounter{page}{0} @@ -282,7 +282,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}} % %\Large -%Documentation for \textcolor{blue!65!black}{version 15.1}} +%Documentation for \textcolor{blue!65!black}{version 15.2}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -337,7 +337,7 @@ by Vafa Khalighi. %* %* Copyright © 2008–2014 Vafa Khalighi %* -%* v15.1, 2014/09/25 +%* v15.2, 2014/09/26 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -411,18 +411,11 @@ by Vafa Khalighi. %\end{lstlisting} %\subsection{{Options of The Package\label{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 `Latin Modern' 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{defaultlatinfontfeatures} Option} +%\begin{BDef} +%\texttt{defaultlatinfontfeatures}$=$\Larga{value} +%\end{BDef} +%The \texttt{defaultlatinfontfeatures} option allows you to pass font features to the main Latin font. \Larga{value} is a set of font features. %\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} @@ -2365,7 +2358,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{9967} +%% \CheckSum{9952} %% \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 @@ -5672,8 +5665,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v15.1} -\def\xepersiandate{2014/09/25} +\def\xepersianversion{v15.2} +\def\xepersiandate{2014/09/26} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -6243,14 +6236,7 @@ number is 999,999,999.}% \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.}% + for the main Persian text}{Use `\settextfont' to load a font.}% }{}} \@ifdefinitionfileloaded{loadingorder-xetex-bidi}{\input{loadingorder-xepersian.def}}{} \@ifpackageloaded{fontspec-xetex}{\input{fontspec-xetex-xepersian.def}}{} @@ -6388,23 +6374,10 @@ or load the package with `preloadedlatintextfont' option.}% \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 \fi} -\DeclareOptionX{preloadedtextfont}{% -\settextfont[ExternalLocation,BoldFont={parisa-bold},BoldItalicFont={parisa-bolditalic},ItalicFont={parisa-italic},SlantedFont={parisa-oblique},BoldSlantedFont={parisa-boldoblique},#1]{parisa-regular}% -} -\DeclareOptionX{preloadeddigitfont}{% -\setdigitfont[ExternalLocation,BoldFont={parisa-bold},BoldItalicFont={parisa-bolditalic},ItalicFont={parisa-italic},SlantedFont={parisa-oblique},BoldSlantedFont={parisa-boldoblique},#1]{parisa-regular}% -} -\DeclareOptionX{preloadedpookfont}{% -\setpookfont[ExternalLocation,ItalicFont={parisa-italicoutline},SlantedFont={parisa-obliqueoutline},#1]{parisa-outline}% -} -\DeclareOptionX{preloadedsayehfont}{% -\setsayehfont[ExternalLocation,ItalicFont={parisa-italicshadow},SlantedFont={parisa-obliqueshadow},#1]{parisa-shadow}% -} -\DeclareOptionX{preloadediranicfont}{% -\setiranicfont[ExternalLocation,BoldFont={parisa-boldoblique},#1]{parisa-oblique}% -} -\DeclareOptionX{preloadedlatintextfont}{% -\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold},#1]{lmroman10-regular}% +\DeclareOptionX{defaultlatinfontfeatures}{% +\defaultfontfeatures + [\latinfont] + {#1} } \ExecuteOptionsX{% @@ -6419,6 +6392,9 @@ or load the package with `preloadedlatintextfont' option.}% \input{extrafootnotefeatures-xetex-bidi.def} \input{extrafootnotefeatures-xepersian.def} \fi + +\setlatintextfont[ExternalLocation,BoldFont={lmroman10-bold},BoldItalicFont={lmroman10-bolditalic},ItalicFont={lmroman10-italic},SmallCapsFont={lmromancaps10-regular},SlantedFont={lmromanslant10-regular},BoldSlantedFont={lmromanslant10-bold}]{lmroman10-regular}% + % \end{macrocode} % \iffalse %</xepersian.sty> |