diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index a4e344106f1..0ef45b873d2 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \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 @@ -35,8 +35,8 @@ %% Right brace \} Tilde \~} %% \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} @@ -603,14 +603,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}}{} @@ -748,23 +741,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{% @@ -779,6 +759,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}% + \endinput %% %% End of file `xepersian.sty'. |