diff options
author | Karl Berry <karl@freefriends.org> | 2018-08-12 21:57:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-08-12 21:57:25 +0000 |
commit | ad9b4f2f15061bb218560dfa38ac1b109334fe99 (patch) | |
tree | 75308c546c283a325bb826ac6d8534292eee4337 /Master/texmf-dist/source/xelatex | |
parent | d08faae51fbb21827ca2fe7b782112631fff7b53 (diff) |
xepersian (12aug18)
git-svn-id: svn://tug.org/texlive/trunk@48396 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
4 files changed, 148 insertions, 100 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx b/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx index 226aafe5111..dd13cf16474 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx @@ -24,16 +24,16 @@ If you use \textsf{\XePersian} package to write any input \TeX\ document, and th * * Copyright (c) 2008--2018 Vafa Khalighi * -* v21.2, 2018/06/15 +* v21.3, 2018/08/12 * * License: LaTeX Project Public License, version * 1.3c or higher (your choice) * * Location on CTAN: /macros/xetex/latex/xepersian * -* Issue tracker: https://gitlab.com/persian-tex/xepersian/issues +* Issue tracker: https://sourceforge.net/p/persian-tex-dist/tickets * -* Support: persian-tex@tug.org +* Support: http://persian-tex.com * **************************************************** \end{verbatim} diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx b/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx index 364ddabd732..1b6e8b58a85 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx @@ -3,7 +3,7 @@ \begin{document} \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\ \LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt] -\large User documentation for \textcolor{blue!65!black}{version 21.2}} +\large User documentation for \textcolor{blue!65!black}{version 21.3}} \author{Vafa Khalighi\\ \url{persian-tex@tug.org}} \setcounter{page}{0} @@ -14,7 +14,7 @@ \textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}} \Large -User documentation for \textcolor{blue!65!black}{version 21.2}} +User documentation for \textcolor{blue!65!black}{version 21.3}} \vskip 0pt plus 3fill \textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -44,17 +44,28 @@ and request my bank account details. \vskip 0pt plus 3fill {\color{red!85!black}\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 +or ask for any new features, or suggest any improvements, 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://gitlab.com/persian-tex/xepersian/issues}} + \centerline{\url{https://sourceforge.net/p/persian-tex-dist/tickets}} \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). +In doing so, please always explain your issue well enough, and always include +a minimal working example showing the issue. + +\bigskip + +If you want to ask any question about the package, then please do not send any direct email to me; I will not +answer any direct email. Instead please ask your question at: + +\medskip + \centerline{\url{http://persian-tex.com}} + +\medskip +In doing so, please always explain your issue well enough, and always include +a minimal working example showing the issue. + \end{minipage} }} diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx b/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx index f67e3347ee1..8c281af49b4 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx @@ -1,7 +1,7 @@ \documentclass{ltxdoc} \input{xepersian-doc-preamble.ltx} \hypersetup{% - pdftitle={User documentation for version 21.2 of the XePersian + pdftitle={User documentation for version 21.3 of the XePersian package}% } \begin{document} diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index a5c28b2f397..05f3adbf7f4 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 -v21.2 +v21.3 The xepersian package provides a convenient interface for typesetting Persian and English texts in LaTeX, using XeTeX @@ -30,21 +30,28 @@ If you live in Iran, you can email me at persian-tex@tug.org and request my bank account details. -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: +If you want to report any bugs or typos and corrections in the +documentation, or ask for any new features, or suggest any +improvements, then please do not send any direct email to me; +I will not answer any direct email. Instead please use the issue tracker: - <https://gitlab.com/persian-tex/xepersian/issues> + <https://sourceforge.net/p/persian-tex-dist/tickets> -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). +In doing so, please always explain your issue well enough, and always +include a minimal working example showing the issue. -Current version release date: 2018/06/15 +If you want to ask any question about the package, then +please do not send any direct email to me; I will not answer any +direct email. Instead please ask your question at: + + <http://persian-tex.com> + +In doing so, please always explain your issue well enough, and always +include a minimal working example showing the issue. + + +Current version release date: 2018/08/12 ______________ Vafa Khalighi persian-tex@tug.org @@ -172,7 +179,7 @@ by Vafa Khalighi. \documentclass{ltxdoc} \input{xepersian-doc-preamble.ltx} \hypersetup{% - pdftitle={Source documentation for version 21.2 of the XePersian + pdftitle={Source documentation for version 21.3 of the XePersian package}% } \EnableCrossrefs @@ -191,7 +198,7 @@ by Vafa Khalighi. % \GetFileInfo{\jobname.dtx} % \title{\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}\\ %\LARGE Persian for \LaTeXe, using {\XeTeX} engine\\[5pt] -%\large Source documentation for \textcolor{blue!65!black}{version 21.2}} +%\large Source documentation for \textcolor{blue!65!black}{version 21.3}} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} %\setcounter{page}{0} @@ -202,7 +209,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}} % %\Large -%Source documentation for \textcolor{blue!65!black}{version 21.2}} +%Source documentation for \textcolor{blue!65!black}{version 21.3}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -231,17 +238,28 @@ by Vafa Khalighi. %\vskip 0pt plus 3fill %{\color{red!85!black}\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 +%or ask for any new features, or suggest any improvements, 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://gitlab.com/persian-tex/xepersian/issues}} +% \centerline{\url{https://sourceforge.net/p/persian-tex-dist/tickets}} +% +%\medskip +%In doing so, please always explain your issue well enough, and always include +%a minimal working example showing the issue. +% +%\bigskip +% +%If you want to ask any question about the package, then please do not send any direct email to me; I will not +%answer any direct email. Instead please ask your question at: +% +%\medskip +% \centerline{\url{http://persian-tex.com}} % %\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). +%In doing so, please always explain your issue well enough, and always include +%a minimal working example showing the issue. +% %\end{minipage} %}} % @@ -260,7 +278,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{10607} +%% \CheckSum{10620} %% \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 @@ -3199,8 +3217,8 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \section{File \texttt{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersian@version{21.2} -\def\xepersiandate{2018/06/15} +\def\xepersian@version{21.3} +\def\xepersiandate{2018/08/12} \ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -3224,9 +3242,9 @@ Persian typesetting in XeLaTeX] * ^^J% * Location on CTAN: /macros/xetex/latex/xepersian^^J% * ^^J% -* Issue tracker: https://gitlab.com/persian-tex/xepersian/issues^^J% +* Issue tracker: https://sourceforge.net/p/persian-tex-dist/tickets^^J% * ^^J% -* Support: persian-tex@tug.org^^J% +* Support: http://persian-tex.com^^J% * ^^J% ****************************************************} \typeout{\@xepersian@info} @@ -3286,23 +3304,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \settextfont { O{} m O{} } { \__xepersian_main_settextfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_settextfont:nn { - \fontspec_set_family:Nnn \g__xepersian_persianfont_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \rmdefault \g__xepersian_persianfont_family + \fontspec_set_family:Nnn \l__xepersian_persianfont_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \rmdefault \l__xepersian_persianfont_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \persianfont } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_persianfont_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_persianfont_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\rmdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_settextfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_settextfont_hook:nn \use_none:nn @@ -3310,16 +3328,17 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \settextdigitfont { O{} m O{} } { \__xepersian_main_settextdigitfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_settextdigitfont:nn { - \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \fontspec_set_family:Nnn \l__xepersian_textdigitfont_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} \use:x { \exp_not:n { \DeclareRobustCommand \xepersian@textdigitfont } { - \exp_not:N \fontfamily { \g__xepersian_textdigitfont_family } - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_textdigitfont_family_tl } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } \exp_not:N \selectfont } } @@ -3352,28 +3371,29 @@ Persian typesetting in XeLaTeX] { \__xepersian_main_settextdigitfont:nn {#1,#3} {#2} \__xepersian_main_setmathdigitfont:nn {#1,#3} {#2} + \ignorespaces } \DeclareDocumentCommand \setlatintextfont { O{} m O{} } { \__xepersian_main_setlatintextfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setlatintextfont:nn { - \fontspec_set_family:Nnn \g__xepersian_latinfont_family {Mapping=tex-text,#1} {#2} + \fontspec_set_family:Nnn \l__xepersian_latinfont_family_tl {Mapping=tex-text,#1} {#2} \use:x { \exp_not:n { \DeclareRobustCommand \latinfont } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_latinfont_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_latinfont_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\rmdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setlatintextfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setlatintextfont_hook:nn \use_none:nn @@ -3383,17 +3403,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \defpersianfont { m O{} m O{} } { - \__xepersian_main_defpersianfont:nnn {#1} {#2,#4} {#3} + \__xepersian_main_defpersianfont:nnnN {#1} {#2,#4} {#3} + \NewDocumentCommand + } +\DeclareDocumentCommand \redefpersianfont { m O{} m O{} } + { + \__xepersian_main_defpersianfont:nnnN {#1} {#2,#4} {#3} + \RenewDocumentCommand } -\cs_new:Nn \__xepersian_main_defpersianfont:nnn +\cs_new:Nn \__xepersian_main_defpersianfont:nnnN { - \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Script=Parsi,Language=Parsi,Mapping=parsidigits,#2} {#3} + \fontspec_set_family:cnn { l__xepersian_ \cs_to_str:N #1 _family_tl } {Script=Parsi,Language=Parsi,Mapping=parsidigits,#2} {#3} \use:x { - \exp_not:N \DeclareRobustCommand \exp_not:N #1 + \exp_not:N #4 \exp_not:N #1 {} { - \exp_not:N \fontfamily { \use:c {g__xepersian_ \cs_to_str:N #1 _family} } - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \use:c {l__xepersian_ \cs_to_str:N #1 _family_tl } } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } \exp_not:N \selectfont } } @@ -3401,17 +3427,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \deflatinfont { m O{} m O{} } { - \__xepersian_main_deflatinfont:nnn {#1} {#2,#4} {#3} + \__xepersian_main_deflatinfont:nnnN {#1} {#2,#4} {#3} + \NewDocumentCommand } -\cs_new:Nn \__xepersian_main_deflatinfont:nnn +\DeclareDocumentCommand \redeflatinfont { m O{} m O{} } + { + \__xepersian_main_deflatinfont:nnnN {#1} {#2,#4} {#3} + \RenewDocumentCommand + } +\cs_new:Nn \__xepersian_main_deflatinfont:nnnN { - \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Mapping=tex-text,#2} {#3} + \fontspec_set_family:cnn { l__xepersian_ \cs_to_str:N #1 _family_tl } {Mapping=tex-text,#2} {#3} \use:x { - \exp_not:N \DeclareRobustCommand \exp_not:N #1 + \exp_not:N #4 \exp_not:N #1 {} { - \exp_not:N \fontfamily { \use:c {g__xepersian_ \cs_to_str:N #1 _family} } - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \use:c {l__xepersian_ \cs_to_str:N #1 _family_tl } } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } \exp_not:N \selectfont } } @@ -3451,23 +3483,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \setpersiansansfont { O{} m O{} } { \__xepersian_main_setpersiansansfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setpersiansansfont:nn { - \fontspec_set_family:Nnn \g__xepersian_persiansffamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \persiansfdefault \g__xepersian_persiansffamily_family + \fontspec_set_family:Nnn \l__xepersian_persiansffamily_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \persiansfdefault \l__xepersian_persiansffamily_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \persiansffamily } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_persiansffamily_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_persiansffamily_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\persiansfdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setpersiansansfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setpersiansansfont_hook:nn \use_none:nn @@ -3475,23 +3507,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \setpersianmonofont { O{} m O{} } { \__xepersian_main_setpersianmonofont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setpersianmonofont:nn { - \fontspec_set_family:Nnn \g__xepersian_persianttfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \persianttdefault \g__xepersian_persianttfamily_family + \fontspec_set_family:Nnn \l__xepersian_persianttfamily_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \persianttdefault \l__xepersian_persianttfamily_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \persianttfamily } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_persianttfamily_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_persianttfamily_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\persianttdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setpersianmonofont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setpersianmonofont_hook:nn \use_none:nn @@ -3499,23 +3531,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \setnavarfont { O{} m O{} } { \__xepersian_main_setnavarfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setnavarfont:nn { - \fontspec_set_family:Nnn \g__xepersian_navarfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \navardefault \g__xepersian_navarfamily_family + \fontspec_set_family:Nnn \l__xepersian_navarfamily_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \navardefault \l__xepersian_navarfamily_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \navarfamily } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_navarfamily_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_navarfamily_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\navardefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setnavarfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setnavarfont_hook:nn \use_none:nn @@ -3523,23 +3555,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \setpookfont { O{} m O{} } { \__xepersian_main_setpookfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setpookfont:nn { - \fontspec_set_family:Nnn \g__xepersian_pookfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \pookdefault \g__xepersian_pookfamily_family + \fontspec_set_family:Nnn \l__xepersian_pookfamily_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \pookdefault \l__xepersian_pookfamily_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \pookfamily } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_pookfamily_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_pookfamily_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\pookdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setpookfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setpookfont_hook:nn \use_none:nn @@ -3547,23 +3579,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \setsayehfont { O{} m O{} } { \__xepersian_main_setsayehfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setsayehfont:nn { - \fontspec_set_family:Nnn \g__xepersian_sayehfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \sayehdefault \g__xepersian_sayehfamily_family + \fontspec_set_family:Nnn \l__xepersian_sayehfamily_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \sayehdefault \l__xepersian_sayehfamily_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \sayehfamily } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_sayehfamily_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_sayehfamily_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\sayehdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setsayehfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setsayehfont_hook:nn \use_none:nn @@ -3571,23 +3603,23 @@ Persian typesetting in XeLaTeX] \DeclareDocumentCommand \setiranicfont { O{} m O{} } { \__xepersian_main_setiranicfont:nn {#1,#3} {#2} + \ignorespaces } \cs_new:Nn \__xepersian_main_setiranicfont:nn { - \fontspec_set_family:Nnn \g__xepersian_iranicfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} - \tl_set_eq:NN \iranicdefault \g__xepersian_iranicfamily_family + \fontspec_set_family:Nnn \l__xepersian_iranicfamily_family_tl {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1} {#2} + \tl_set_eq:NN \iranicdefault \l__xepersian_iranicfamily_family_tl \use:x { \exp_not:n { \DeclareRobustCommand \iranicfamily } { - \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl } - \exp_not:N \fontfamily { \g__xepersian_iranicfamily_family } + \exp_not:N \fontencoding { \g__fontspec_nfss_enc_tl } + \exp_not:N \fontfamily { \l__xepersian_iranicfamily_family_tl } \exp_not:N \selectfont } } \str_if_eq_x:nnT {\familydefault} {\iranicdefault} - { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl } + { \tl_set_eq:NN \encodingdefault \g__fontspec_nfss_enc_tl } \__xepersian_setiranicfont_hook:nn {#1} {#2} \normalfont - \ignorespaces } \cs_set_eq:NN \__xepersian_setiranicfont_hook:nn \use_none:nn @@ -3983,6 +4015,11 @@ Persian typesetting in XeLaTeX] The xepersian package, v\xepersian@version, \xepersiandate } +\newcommand*{\@xepersian@pdfcustomproperties}{% + This is the xepersian package, Version \xepersian@version, + Released August 12, 2018. +} + \newcommand\twocolumnstableofcontents{% \if@bidi@csundef{multi@column@out}{% \PackageError{xepersian}{Oops! you should load multicol package before xepersian package for being able to use this command}{}}{% |