diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-04 00:25:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-04 00:25:03 +0000 |
commit | e30bd4d032a3afc8a0fc52c683bf43801d78a709 (patch) | |
tree | 7927ee6482e58f69e98010e1a6003ce4dc0b2d91 /Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty | |
parent | 8066d488b928d94698e8367244c096c3b67dfb46 (diff) |
xepersian (3feb17)
git-svn-id: svn://tug.org/texlive/trunk@43135 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 | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty index 51ca9af6dd5..9257b1fd8dd 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{10207} +%% \CheckSum{10291} %% \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,18 +162,15 @@ #1 } } -\DeclareDocumentCommand \setdigitfont { o m }{% - \let\glb@currsize\relax - \__fontspec_pass_args:nnn \__xepersian_setdigitfont:nn {#1} {#2} } - -\cs_new:Nn \__xepersian_setdigitfont:nn +\DeclareDocumentCommand \setdigitfont { O{} m O{} } { - \fontspec_set_family:Nnn \xepersian@digits@family {Mapping=parsidigits,#1} {#2} + \let\glb@currsize\relax + \fontspec_set_family:Nnn \g__xepersian_digitsfamily_family {Mapping=parsidigits,#1} {#2} \xepersian@PackageInfo{Defining the default Persian maths digits font as '#2'} - \DeclareSymbolFont{OPERATORS} {\g_fontspec_encoding_tl}{\xepersian@digits@family} {m}{n} - \DeclareSymbolFont{new@mathbf@font@digits}{\g_fontspec_encoding_tl}{\xepersian@digits@family}{bx}{n} - \DeclareSymbolFont{new@mathit@font@digits}{\g_fontspec_encoding_tl}{\xepersian@digits@family}{m}{it} - \DeclareSymbolFont{new@mathrm@font@digits}{\g_fontspec_encoding_tl}{\xepersian@digits@family}{m}{n} + \DeclareSymbolFont{OPERATORS} {\g_fontspec_encoding_tl}{\g__xepersian_digitsfamily_family} {m}{n} + \DeclareSymbolFont{new@mathbf@font@digits}{\g_fontspec_encoding_tl}{\g__xepersian_digitsfamily_family}{bx}{n} + \DeclareSymbolFont{new@mathit@font@digits}{\g_fontspec_encoding_tl}{\g__xepersian_digitsfamily_family}{m}{it} + \DeclareSymbolFont{new@mathrm@font@digits}{\g_fontspec_encoding_tl}{\g__xepersian_digitsfamily_family}{m}{n} \def\persianmathsdigits{% \SetMathCode{`0}{\mathalpha}{OPERATORS}{`0} \SetMathCode{`1}{\mathalpha}{OPERATORS}{`1} @@ -187,28 +184,25 @@ \SetMathCode{`9}{\mathalpha}{OPERATORS}{`9} \SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪} \SetMathCharDef{\decimalseparator}{\mathord}{OPERATORS}{"066B} - \cs_set_eq:NN \mathbf \new@mathbf - \cs_set_eq:NN \mathit \new@mathit - \cs_set_eq:NN \mathrm \new@mathrm} + \tl_set_eq:NN \mathbf \new@mathbf + \tl_set_eq:NN \mathit \new@mathit + \tl_set_eq:NN \mathrm \new@mathrm} } -\DeclareDocumentCommand \setmathsfdigitfont { o m } - { \__fontspec_pass_args:nnn \__xepersian_setmathsfdigitfont:nn {#1} {#2} } -\cs_new:Nn \__xepersian_setmathsfdigitfont:nn +\DeclareDocumentCommand \setmathsfdigitfont { O{} m O{} } { \fontspec_set_family:Nnn \g__fontspec_mathsf_tl {Mapping=parsidigits,#1} {#2} - \DeclareSymbolFont{new@mathsf@font@digits}{\g_fontspec_encoding_tl}{\g__fontspec_mathsf_tl}{m}{n} - \def\persianmathsfdigits{\cs_set_eq:NN \mathsf \new@mathsf} + \DeclareSymbolFont{new@mathsf@font@digits}{\g_fontspec_encoding_tl}{\g__fontspec_mathsf_tl}{m}{n} + \def\persianmathsfdigits{\tl_set_eq:NN \mathsf \new@mathsf} } -\DeclareDocumentCommand \setmathttdigitfont { o m } - { \__fontspec_pass_args:nnn \__xepersian_setmathttdigitfont:nn {#1} {#2} } -\cs_new:Nn \__xepersian_setmathttdigitfont:nn +\DeclareDocumentCommand \setmathttdigitfont { O{} m O{} } { \fontspec_set_family:Nnn \g__fontspec_mathtt_tl {Mapping=parsidigits,#1} {#2} - \DeclareSymbolFont{new@mathtt@font@digits}{\g_fontspec_encoding_tl}{\g__fontspec_mathtt_tl}{m}{n} - \def\persianmathttdigits{\cs_set_eq:NN \mathtt \new@mathtt} + \DeclareSymbolFont{new@mathtt@font@digits}{\g_fontspec_encoding_tl}{\g__fontspec_mathtt_tl}{m}{n} + \def\persianmathttdigits{\tl_set_eq:NN \mathtt \new@mathtt} } + \ExplSyntaxOff \ifx\newcommand\undefined\else \newcommand{\ZifferAn}{} |