diff options
author | Karl Berry <karl@freefriends.org> | 2015-04-30 20:41:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-04-30 20:41:00 +0000 |
commit | 9e094c6e6b25f6ef903f2d502fd91cda0c7f6ad1 (patch) | |
tree | f98d6f59b0ef3e25ee567fe1c82fa2331ae13c3c /Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty | |
parent | 1dfe29960ab5886fbe8038a460de54f8c4dddb42 (diff) |
xepersian (30apr15)
git-svn-id: svn://tug.org/texlive/trunk@37134 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty index fd808b16e5f..5957bd173ee 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{10038} +%% \CheckSum{10069} %% \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 @@ -162,9 +162,13 @@ #1 } } -\DeclareDocumentCommand \setdigitfont { O{} m O{} }{% +\DeclareDocumentCommand \setdigitfont { o m }{% \let\glb@currsize\relax - \fontspec_set_family:Nnn \xepersian@digits@family {Mapping=parsidigits,#1,#3}{#2} + \__fontspec_pass_args:nnn \__xepersian_setdigitfont:nn {#1} {#2} } + +\cs_new:Nn \__xepersian_setdigitfont:nn + { + \fontspec_set_family:Nnn \xepersian@digits@family {Mapping=parsidigits,#1} {#2} \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'} \DeclareSymbolFont{OPERATORS} {EU1}{\xepersian@digits@family} {m}{n} \DeclareSymbolFont{new@mathbf@font@digits}{EU1}{\xepersian@digits@family}{bx}{n} @@ -186,16 +190,22 @@ \cs_set_eq:NN \mathbf \new@mathbf \cs_set_eq:NN \mathit \new@mathit \cs_set_eq:NN \mathrm \new@mathrm} -} -\DeclareDocumentCommand \setmathsfdigitfont { O{} m O{} } + } +\DeclareDocumentCommand \setmathsfdigitfont { o m } + { \__fontspec_pass_args:nnn \__xepersian_setmathsfdigitfont:nn {#1} {#2} } + +\cs_new:Nn \__xepersian_setmathsfdigitfont:nn { - \fontspec_set_family:Nnn \g_fontspec_mathsf_tl {Mapping=parsidigits,#1,#3}{#2} + \fontspec_set_family:Nnn \g_fontspec_mathsf_tl {Mapping=parsidigits,#1} {#2} \DeclareSymbolFont{new@mathsf@font@digits}{EU1}{\g_fontspec_mathsf_tl}{m}{n} \def\persianmathsfdigits{\cs_set_eq:NN \mathsf \new@mathsf} } -\DeclareDocumentCommand \setmathttdigitfont { O{} m O{} } +\DeclareDocumentCommand \setmathttdigitfont { o m } + { \__fontspec_pass_args:nnn \__xepersian_setmathttdigitfont:nn {#1} {#2} } + +\cs_new:Nn \__xepersian_setmathttdigitfont:nn { - \fontspec_set_family:Nnn \g_fontspec_mathtt_tl {Mapping=parsidigits,#1,#3}{#2} + \fontspec_set_family:Nnn \g_fontspec_mathtt_tl {Mapping=parsidigits,#1} {#2} \DeclareSymbolFont{new@mathtt@font@digits}{EU1}{\g_fontspec_mathtt_tl}{m}{n} \def\persianmathttdigits{\cs_set_eq:NN \mathtt \new@mathtt} } |