texlive[46243] Master/texmf-dist: xepersian (7jan18)

commits+karl at tug.org commits+karl at tug.org
Mon Jan 8 00:48:29 CET 2018


Revision: 46243
          http://tug.org/svn/texlive?view=revision&revision=46243
Author:   karl
Date:     2018-01-08 00:48:29 +0100 (Mon, 08 Jan 2018)
Log Message:
-----------
xepersian (7jan18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/xepersian/README
    trunk/Master/texmf-dist/doc/xelatex/xepersian/xepersian.pdf
    trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
    trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-commands-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-environments-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-messages-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-misc-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-commands-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-environments-xepersian.def
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty
    trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty

Modified: trunk/Master/texmf-dist/doc/xelatex/xepersian/README
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/xepersian/README	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/doc/xelatex/xepersian/README	2018-01-07 23:48:29 UTC (rev 46243)
@@ -1,6 +1,6 @@
 ____________________
 The XePersian package
-v20.5
+v20.6
 
 XePersian is a package written for XeLaTeX that allows users to typeset
 Persian easily.
@@ -20,7 +20,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: 2018/01/04
+Current version release date: 2018/01/08
 ______________
 Vafa Khalighi
 persian-tex at tug.org

Modified: trunk/Master/texmf-dist/doc/xelatex/xepersian/xepersian.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx	2018-01-07 23:48:29 UTC (rev 46243)
@@ -5,7 +5,7 @@
 %<*readme>
 ____________________
 The XePersian package
-v20.5
+v20.6
 
 XePersian is a package written for XeLaTeX that allows users to typeset
 Persian easily. 
@@ -28,7 +28,7 @@
 label for your query (i.e. if you are reporting any bugs, choose `Bug' label). 
 
 
-Current version release date: 2018/01/04
+Current version release date: 2018/01/08
 ______________
 Vafa Khalighi
 persian-tex at tug.org
@@ -273,7 +273,7 @@
 %\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 20.5}}
+%\large Documentation for \textcolor{blue!65!black}{version 20.6}}
 % \author{Vafa Khalighi\\
 %  \url{persian-tex at tug.org}}
 %\setcounter{page}{0}
@@ -284,7 +284,7 @@
 %\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
 %
 %\Large
-%Documentation for \textcolor{blue!65!black}{version 20.5}}
+%Documentation for \textcolor{blue!65!black}{version 20.6}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -339,7 +339,7 @@
 %* 
 %* Copyright (c) 2008--2018 Vafa Khalighi
 %* 
-%* v20.5, 2018/01/04
+%* v20.6, 2018/01/08
 %* 
 %* License: LaTeX Project Public License, version
 %* 1.3c or higher (your choice)
@@ -2361,7 +2361,7 @@
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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
@@ -4064,7 +4064,7 @@
 \setclass \xepersian at D {0633,0634,0635,0636,0637,0638,0639,063A}
 %\setclass \xepersian at D {0640,0641,0642,0643,0645,0646,0647,0649,064A}
 \setclass \xepersian at D {0640,0641,0642,0643,0645,0646,0649,064A}
-\XeTeXcharclass "0647 \xepersian at H
+\setclass \xepersian at H {0647}
 \setclass \xepersian at D {067E,0686,06A9,06AF,06CC}
 \setclass \xepersian at L {0644}
 \setclass \xepersian at V {064B,064C,064D,064E,064F,0650,0651,0652}
@@ -5303,8 +5303,8 @@
 % \subsection{\textsf{xepersian.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v20.5}
-\def\xepersiandate{2018/01/04}
+\def\xepersianversion{v20.6}
+\def\xepersiandate{2018/01/08}
 \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space 
 Persian typesetting in XeLaTeX]
 \RequirePackage{fontspec}
@@ -5388,11 +5388,11 @@
 
 \DeclareDocumentCommand \settextfont { O{} m O{} }
   {
-    \__xepersian_main_settextfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_settextfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_settextfont:nnn
+\cs_new:Nn \__xepersian_main_settextfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_persianfont_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \persianfont }
    {
@@ -5403,17 +5403,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\rmdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_settextfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
  
+\cs_set_eq:NN \__xepersian_settextfont_hook:nn   \use_none:nn
+ 
 \DeclareDocumentCommand \settextdigitfont { O{} m O{} }
   {
-    \__xepersian_main_settextdigitfont:nnn {#1} {#2} {#3} 
+    \__xepersian_main_settextdigitfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_settextdigitfont:nnn
+\cs_new:Nn \__xepersian_main_settextdigitfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Mapping=parsidigits,#1} {#2}
   \use:x
    {
     \exp_not:n { \DeclareRobustCommand \xepersian at textdigitfont }
@@ -5423,6 +5426,7 @@
       \exp_not:N \selectfont
      }
    }
+   \__xepersian_settextdigitfont_hook:nn {#1} {#2}
    \XeTeXinterchartoks \e at alloc@intercharclass at top \bidi at digits@charclass = {\xepersian@@start at switch@textdigitfont}
    \XeTeXinterchartoks \bidi at digits@charclass \e at alloc@intercharclass at top = {\xepersian@@stop at switch@textdigitfont}
    \XeTeXinterchartoks \z@ \bidi at digits@charclass = {\xepersian@@start at switch@textdigitfont}
@@ -5445,20 +5449,22 @@
    \newcommand*{\xepersian@@stop at switch@textdigitfont}{\ifx\f at family\ttdefault\else\if at nonlatin\if@@textdigitfont at on\egroup\else\fi\fi\fi}
  }
  
+\cs_set_eq:NN \__xepersian_settextdigitfont_hook:nn   \use_none:nn
+ 
 \DeclareDocumentCommand \setdigitfont { O{} m O{} }
   {
-    \__xepersian_main_settextdigitfont:nnn {#1} {#2} {#3}
-    \__xepersian_main_setmathdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_settextdigitfont:nn {#1,#3} {#2} 
+    \__xepersian_main_setmathdigitfont:nn {#1,#3} {#2} 
   } 
 
 
 \DeclareDocumentCommand \setlatintextfont { O{} m O{} }
   {
-    \__xepersian_main_setlatintextfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setlatintextfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setlatintextfont:nnn
+\cs_new:Nn \__xepersian_main_setlatintextfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_latinfont_family {Mapping=tex-text,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_latinfont_family {Mapping=tex-text,#1} {#2}
   \use:x { \exp_not:n { \DeclareRobustCommand \latinfont }
    {
     \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl }
@@ -5468,9 +5474,12 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\rmdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setlatintextfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
+ 
+\cs_set_eq:NN \__xepersian_setlatintextfont_hook:nn   \use_none:nn
 
 \tl_set_eq:NN \setlatinsansfont \setsansfont
 \tl_set_eq:NN \setlatinmonofont \setmonofont
@@ -5477,11 +5486,11 @@
 
 \DeclareDocumentCommand \defpersianfont { m O{} m O{} }
   {
-    \__xepersian_main_defpersianfont:nnnn {#1} {#2} {#3} {#4}
+    \__xepersian_main_defpersianfont:nnn {#1} {#2,#4} {#3} 
   }
-\cs_set:Nn \__xepersian_main_defpersianfont:nnnn
+\cs_new:Nn \__xepersian_main_defpersianfont:nnn
  {
-  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Script=Parsi,Language=Parsi,Mapping=parsidigits,#2,#4} {#3}
+  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Script=Parsi,Language=Parsi,Mapping=parsidigits,#2} {#3}
   \use:x
    {
     \exp_not:N \DeclareRobustCommand \exp_not:N #1
@@ -5495,11 +5504,11 @@
 
 \DeclareDocumentCommand \deflatinfont { m O{} m O{} }
   {
-    \__xepersian_main_deflatinfont:nnnn {#1} {#2} {#3} {#4}
+    \__xepersian_main_deflatinfont:nnn {#1} {#2,#4} {#3} 
   }
-\cs_set:Nn \__xepersian_main_deflatinfont:nnnn
+\cs_new:Nn \__xepersian_main_deflatinfont:nnn
  {
-  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Mapping=tex-text,#2,#4} {#3}
+  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Mapping=tex-text,#2} {#3}
   \use:x
    {
     \exp_not:N \DeclareRobustCommand \exp_not:N #1
@@ -5544,11 +5553,11 @@
 
 \DeclareDocumentCommand \setpersiansansfont { O{} m O{} }
   {
-    \__xepersian_main_setpersiansansfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setpersiansansfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setpersiansansfont:nnn
+\cs_new:Nn \__xepersian_main_setpersiansansfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_persiansffamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \persiansffamily }
    {
@@ -5559,17 +5568,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\persiansfdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setpersiansansfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setpersiansansfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setpersianmonofont { O{} m O{} }
   {
-    \__xepersian_main_setpersianmonofont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setpersianmonofont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setpersianmonofont:nnn
+\cs_new:Nn \__xepersian_main_setpersianmonofont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_persianttfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \persianttfamily }
    {
@@ -5580,17 +5592,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\persianttdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setpersianmonofont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
+ 
+\cs_set_eq:NN \__xepersian_setpersianmonofont_hook:nn   \use_none:nn
 
 \DeclareDocumentCommand \setnavarfont { O{} m O{} }
   {
-    \__xepersian_main_setnavarfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setnavarfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setnavarfont:nnn
+\cs_new:Nn \__xepersian_main_setnavarfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_navarfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \navarfamily }
    {
@@ -5601,17 +5616,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\navardefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setnavarfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
+ 
+\cs_set_eq:NN \__xepersian_setnavarfont_hook:nn   \use_none:nn
 
 \DeclareDocumentCommand \setpookfont { O{} m O{} }
   {
-    \__xepersian_main_setpookfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setpookfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setpookfont:nnn
+\cs_new:Nn \__xepersian_main_setpookfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_pookfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \pookfamily }
    {
@@ -5622,17 +5640,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\pookdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setpookfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setpookfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setsayehfont { O{} m O{} }
   {
-    \__xepersian_main_setsayehfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setsayehfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setsayehfont:nnn
+\cs_new:Nn \__xepersian_main_setsayehfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_sayehfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \sayehfamily }
    {
@@ -5643,17 +5664,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\sayehdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setsayehfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
+ 
+\cs_set_eq:NN \__xepersian_setsayehfont_hook:nn   \use_none:nn
 
 \DeclareDocumentCommand \setiranicfont { O{} m O{} }
   {
-    \__xepersian_main_setiranicfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setiranicfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setiranicfont:nnn
+\cs_new:Nn \__xepersian_main_setiranicfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_iranicfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \iranicfamily }
    {
@@ -5664,10 +5688,12 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\iranicdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setiranicfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setiranicfont_hook:nn   \use_none:nn
 
 \ExplSyntaxOff
 \def\resetlatinfont{%
@@ -7727,12 +7753,13 @@
 
 \DeclareDocumentCommand \setmathdigitfont { O{} m O{} }
   {
-    \__xepersian_main_setmathdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setmathdigitfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setmathdigitfont:nnn
+\cs_new:Nn \__xepersian_main_setmathdigitfont:nn
  {
   \let\glb at currsize\relax
-  \fontspec_set_family:Nnn \g__xepersian_mathdigitsfamily_tl {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_mathdigitsfamily_tl {Mapping=parsidigits,#1} {#2}
+  \__xepersian_setmathdigitfont_hook:nn {#1} {#2}
     \xepersian at PackageInfo{Defining the default Persian maths digits font as '#2'}
   \DeclareSymbolFont{OPERATORS}   {\g_fontspec_encoding_tl}{\g__xepersian_mathdigitsfamily_tl} {m}{n}
   \DeclareSymbolFont{new at mathbf@font at digits}{\g_fontspec_encoding_tl}{\g__xepersian_mathdigitsfamily_tl}{bx}{n}
@@ -7759,31 +7786,36 @@
   \tl_set_eq:NN \mathrm \new at mathrm}
  }
 
+\cs_set_eq:NN \__xepersian_setmathdigitfont_hook:nn     \use_none:nn
 
 \DeclareDocumentCommand \setmathsfdigitfont { O{} m O{} }
   {
-    \__xepersian_main_setmathsfdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setmathsfdigitfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setmathsfdigitfont:nnn
+\cs_new:Nn \__xepersian_main_setmathsfdigitfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_mathsfdigitfamily_tl {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_mathsfdigitfamily_tl {Mapping=parsidigits,#1} {#2}
+  \__xepersian_setmathsfdigitfont_hook:nn {#1} {#2}
       \DeclareSymbolFont{new at mathsf@font at digits}{\g_fontspec_encoding_tl}{\g__xepersian_mathsfdigitfamily_tl}{m}{n}
     \def\persianmathsfdigits{\tl_set_eq:NN \mathsf \new at mathsf}
  }
 
+\cs_set_eq:NN \__xepersian_setmathsfdigitfont_hook:nn     \use_none:nn
 
-
 \DeclareDocumentCommand \setmathttdigitfont { O{} m O{} }
   {
-    \__xepersian_main_setmathttdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setmathttdigitfont:nn {#1,#3} {#2} 
   }
-\cs_set:Nn \__xepersian_main_setmathttdigitfont:nnn
+\cs_new:Nn \__xepersian_main_setmathttdigitfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_mathttdigitfamily_tl {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_mathttdigitfamily_tl {Mapping=parsidigits,#1} {#2}
+  \__xepersian_setmathttdigitfont_hook:nn {#1} {#2}
       \DeclareSymbolFont{new at mathtt@font at digits}{\g_fontspec_encoding_tl}{\g__xepersian_mathttdigitfamily_tl}{m}{n}
     \def\persianmathttdigits{\tl_set_eq:NN \mathtt \new at mathtt}
  }
 
+\cs_set_eq:NN \__xepersian_setmathttdigitfont_hook:nn     \use_none:nn
+
 \ExplSyntaxOff
 \ifx\newcommand\undefined\else
   \newcommand{\ZifferAn}{}

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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
@@ -64,7 +64,7 @@
 \setclass \xepersian at D {0626,0628,062A,062B,062C,062D,062E}
 \setclass \xepersian at D {0633,0634,0635,0636,0637,0638,0639,063A}
 \setclass \xepersian at D {0640,0641,0642,0643,0645,0646,0649,064A}
-\XeTeXcharclass "0647 \xepersian at H
+\setclass \xepersian at H {0647}
 \setclass \xepersian at D {067E,0686,06A9,06AF,06CC}
 \setclass \xepersian at L {0644}
 \setclass \xepersian at V {064B,064C,064D,064E,064F,0650,0651,0652}

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-commands-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-commands-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-commands-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-environments-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-environments-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-environments-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-messages-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-messages-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-messages-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-misc-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-misc-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-misc-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-commands-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-commands-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-commands-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-environments-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-environments-xepersian.def	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-environments-xepersian.def	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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
@@ -165,12 +165,13 @@
 
 \DeclareDocumentCommand \setmathdigitfont { O{} m O{} }
   {
-    \__xepersian_main_setmathdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setmathdigitfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setmathdigitfont:nnn
+\cs_new:Nn \__xepersian_main_setmathdigitfont:nn
  {
   \let\glb at currsize\relax
-  \fontspec_set_family:Nnn \g__xepersian_mathdigitsfamily_tl {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_mathdigitsfamily_tl {Mapping=parsidigits,#1} {#2}
+  \__xepersian_setmathdigitfont_hook:nn {#1} {#2}
     \xepersian at PackageInfo{Defining the default Persian maths digits font as '#2'}
   \DeclareSymbolFont{OPERATORS}   {\g_fontspec_encoding_tl}{\g__xepersian_mathdigitsfamily_tl} {m}{n}
   \DeclareSymbolFont{new at mathbf@font at digits}{\g_fontspec_encoding_tl}{\g__xepersian_mathdigitsfamily_tl}{bx}{n}
@@ -194,28 +195,36 @@
   \tl_set_eq:NN \mathrm \new at mathrm}
  }
 
+\cs_set_eq:NN \__xepersian_setmathdigitfont_hook:nn     \use_none:nn
+
 \DeclareDocumentCommand \setmathsfdigitfont { O{} m O{} }
   {
-    \__xepersian_main_setmathsfdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setmathsfdigitfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setmathsfdigitfont:nnn
+\cs_new:Nn \__xepersian_main_setmathsfdigitfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_mathsfdigitfamily_tl {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_mathsfdigitfamily_tl {Mapping=parsidigits,#1} {#2}
+  \__xepersian_setmathsfdigitfont_hook:nn {#1} {#2}
       \DeclareSymbolFont{new at mathsf@font at digits}{\g_fontspec_encoding_tl}{\g__xepersian_mathsfdigitfamily_tl}{m}{n}
     \def\persianmathsfdigits{\tl_set_eq:NN \mathsf \new at mathsf}
  }
 
+\cs_set_eq:NN \__xepersian_setmathsfdigitfont_hook:nn     \use_none:nn
+
 \DeclareDocumentCommand \setmathttdigitfont { O{} m O{} }
   {
-    \__xepersian_main_setmathttdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setmathttdigitfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setmathttdigitfont:nnn
+\cs_new:Nn \__xepersian_main_setmathttdigitfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_mathttdigitfamily_tl {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_mathttdigitfamily_tl {Mapping=parsidigits,#1} {#2}
+  \__xepersian_setmathttdigitfont_hook:nn {#1} {#2}
       \DeclareSymbolFont{new at mathtt@font at digits}{\g_fontspec_encoding_tl}{\g__xepersian_mathttdigitfamily_tl}{m}{n}
     \def\persianmathttdigits{\tl_set_eq:NN \mathtt \new at mathtt}
  }
 
+\cs_set_eq:NN \__xepersian_setmathttdigitfont_hook:nn     \use_none:nn
+
 \ExplSyntaxOff
 \ifx\newcommand\undefined\else
   \newcommand{\ZifferAn}{}

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty	2018-01-07 23:48:04 UTC (rev 46242)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty	2018-01-07 23:48:29 UTC (rev 46243)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10521}
+%% \CheckSum{10569}
 %% \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{v20.5}
-\def\xepersiandate{2018/01/04}
+\def\xepersianversion{v20.6}
+\def\xepersiandate{2018/01/08}
 \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
 Persian typesetting in XeLaTeX]
 \RequirePackage{fontspec}
@@ -120,11 +120,11 @@
 
 \DeclareDocumentCommand \settextfont { O{} m O{} }
   {
-    \__xepersian_main_settextfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_settextfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_settextfont:nnn
+\cs_new:Nn \__xepersian_main_settextfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_persianfont_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \persianfont }
    {
@@ -135,17 +135,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\rmdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_settextfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_settextfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \settextdigitfont { O{} m O{} }
   {
-    \__xepersian_main_settextdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_settextdigitfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_settextdigitfont:nnn
+\cs_new:Nn \__xepersian_main_settextdigitfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Mapping=parsidigits,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_textdigitfont_family {Mapping=parsidigits,#1} {#2}
   \use:x
    {
     \exp_not:n { \DeclareRobustCommand \xepersian at textdigitfont }
@@ -155,6 +158,7 @@
       \exp_not:N \selectfont
      }
    }
+   \__xepersian_settextdigitfont_hook:nn {#1} {#2}
    \XeTeXinterchartoks \e at alloc@intercharclass at top \bidi at digits@charclass = {\xepersian@@start at switch@textdigitfont}
    \XeTeXinterchartoks \bidi at digits@charclass \e at alloc@intercharclass at top = {\xepersian@@stop at switch@textdigitfont}
    \XeTeXinterchartoks \z@ \bidi at digits@charclass = {\xepersian@@start at switch@textdigitfont}
@@ -177,19 +181,21 @@
    \newcommand*{\xepersian@@stop at switch@textdigitfont}{\ifx\f at family\ttdefault\else\if at nonlatin\if@@textdigitfont at on\egroup\else\fi\fi\fi}
  }
 
+\cs_set_eq:NN \__xepersian_settextdigitfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setdigitfont { O{} m O{} }
   {
-    \__xepersian_main_settextdigitfont:nnn {#1} {#2} {#3}
-    \__xepersian_main_setmathdigitfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_settextdigitfont:nn {#1,#3} {#2}
+    \__xepersian_main_setmathdigitfont:nn {#1,#3} {#2}
   }
 
 \DeclareDocumentCommand \setlatintextfont { O{} m O{} }
   {
-    \__xepersian_main_setlatintextfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setlatintextfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setlatintextfont:nnn
+\cs_new:Nn \__xepersian_main_setlatintextfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_latinfont_family {Mapping=tex-text,#1,#3} {#2}
+  \fontspec_set_family:Nnn \g__xepersian_latinfont_family {Mapping=tex-text,#1} {#2}
   \use:x { \exp_not:n { \DeclareRobustCommand \latinfont }
    {
     \exp_not:N \fontencoding { \l__fontspec_nfss_enc_tl }
@@ -199,20 +205,23 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\rmdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setlatintextfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setlatintextfont_hook:nn   \use_none:nn
+
 \tl_set_eq:NN \setlatinsansfont \setsansfont
 \tl_set_eq:NN \setlatinmonofont \setmonofont
 
 \DeclareDocumentCommand \defpersianfont { m O{} m O{} }
   {
-    \__xepersian_main_defpersianfont:nnnn {#1} {#2} {#3} {#4}
+    \__xepersian_main_defpersianfont:nnn {#1} {#2,#4} {#3}
   }
-\cs_set:Nn \__xepersian_main_defpersianfont:nnnn
+\cs_new:Nn \__xepersian_main_defpersianfont:nnn
  {
-  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Script=Parsi,Language=Parsi,Mapping=parsidigits,#2,#4} {#3}
+  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Script=Parsi,Language=Parsi,Mapping=parsidigits,#2} {#3}
   \use:x
    {
     \exp_not:N \DeclareRobustCommand \exp_not:N #1
@@ -226,11 +235,11 @@
 
 \DeclareDocumentCommand \deflatinfont { m O{} m O{} }
   {
-    \__xepersian_main_deflatinfont:nnnn {#1} {#2} {#3} {#4}
+    \__xepersian_main_deflatinfont:nnn {#1} {#2,#4} {#3}
   }
-\cs_set:Nn \__xepersian_main_deflatinfont:nnnn
+\cs_new:Nn \__xepersian_main_deflatinfont:nnn
  {
-  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Mapping=tex-text,#2,#4} {#3}
+  \fontspec_set_family:cnn { g__xepersian_ \cs_to_str:N #1 _family } {Mapping=tex-text,#2} {#3}
   \use:x
    {
     \exp_not:N \DeclareRobustCommand \exp_not:N #1
@@ -275,11 +284,11 @@
 
 \DeclareDocumentCommand \setpersiansansfont { O{} m O{} }
   {
-    \__xepersian_main_setpersiansansfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setpersiansansfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setpersiansansfont:nnn
+\cs_new:Nn \__xepersian_main_setpersiansansfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_persiansffamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \persiansffamily }
    {
@@ -290,17 +299,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\persiansfdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setpersiansansfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setpersiansansfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setpersianmonofont { O{} m O{} }
   {
-    \__xepersian_main_setpersianmonofont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setpersianmonofont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setpersianmonofont:nnn
+\cs_new:Nn \__xepersian_main_setpersianmonofont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_persianttfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \persianttfamily }
    {
@@ -311,17 +323,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\persianttdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setpersianmonofont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setpersianmonofont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setnavarfont { O{} m O{} }
   {
-    \__xepersian_main_setnavarfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setnavarfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setnavarfont:nnn
+\cs_new:Nn \__xepersian_main_setnavarfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_navarfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \navarfamily }
    {
@@ -332,17 +347,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\navardefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setnavarfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setnavarfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setpookfont { O{} m O{} }
   {
-    \__xepersian_main_setpookfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setpookfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setpookfont:nnn
+\cs_new:Nn \__xepersian_main_setpookfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_pookfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \pookfamily }
    {
@@ -353,17 +371,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\pookdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setpookfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setpookfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setsayehfont { O{} m O{} }
   {
-    \__xepersian_main_setsayehfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setsayehfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setsayehfont:nnn
+\cs_new:Nn \__xepersian_main_setsayehfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_sayehfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \sayehfamily }
    {
@@ -374,17 +395,20 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\sayehdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setsayehfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setsayehfont_hook:nn   \use_none:nn
+
 \DeclareDocumentCommand \setiranicfont { O{} m O{} }
   {
-    \__xepersian_main_setiranicfont:nnn {#1} {#2} {#3}
+    \__xepersian_main_setiranicfont:nn {#1,#3} {#2}
   }
-\cs_set:Nn \__xepersian_main_setiranicfont:nnn
+\cs_new:Nn \__xepersian_main_setiranicfont:nn
  {
-  \fontspec_set_family:Nnn \g__xepersian_iranicfamily_family {Script=Parsi,Language=Parsi,Mapping=parsidigits,#1,#3} {#2}
+  \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
   \use:x { \exp_not:n { \DeclareRobustCommand \iranicfamily }
    {
@@ -395,10 +419,13 @@
   }
   \str_if_eq_x:nnT {\familydefault} {\iranicdefault}
     { \tl_set_eq:NN \encodingdefault \l__fontspec_nfss_enc_tl }
+  \__xepersian_setiranicfont_hook:nn {#1} {#2}
   \normalfont
   \ignorespaces
  }
 
+\cs_set_eq:NN \__xepersian_setiranicfont_hook:nn   \use_none:nn
+
 \ExplSyntaxOff
 \def\resetlatinfont{%
 \let\@xepersian@@fontsize at scale\xepersian@@fontsize at scale%



More information about the tex-live-commits mailing list