texlive[48396] Master/texmf-dist: xepersian (12aug18)

commits+karl at tug.org commits+karl at tug.org
Sun Aug 12 23:57:25 CEST 2018


Revision: 48396
          http://tug.org/svn/texlive?view=revision&revision=48396
Author:   karl
Date:     2018-08-12 23:57:25 +0200 (Sun, 12 Aug 2018)
Log Message:
-----------
xepersian (12aug18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/xepersian/README
    trunk/Master/texmf-dist/doc/xelatex/xepersian/xepersian-doc.pdf
    trunk/Master/texmf-dist/doc/xelatex/xepersian/xepersian.pdf
    trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx
    trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx
    trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx
    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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/doc/xelatex/xepersian/README	2018-08-12 21:57:25 UTC (rev 48396)
@@ -1,6 +1,6 @@
 ____________________
 The XePersian package
-v21.2
+v21.3
 
 The xepersian package provides a convenient interface for
 typesetting Persian and English texts in LaTeX, using XeTeX
@@ -25,18 +25,24 @@
 
 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
+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://sourceforge.net/p/persian-tex-dist/tickets>
+
+In doing so, please always explain your issue well enough, and always
+include a minimal working example showing the issue.
+
+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 use the issue tracker:
+direct email. Instead please ask your question at:
 
-  <https://gitlab.com/persian-tex/xepersian/issues>
+  <http://persian-tex.com>
 
-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
+Current version release date: 2018/08/12
 ______________
 Vafa Khalighi
 persian-tex at tug.org

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

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

Modified: trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-intro.ltx	2018-08-12 21:57:25 UTC (rev 48396)
@@ -24,7 +24,7 @@
 * 
 * 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)
@@ -31,9 +31,9 @@
 * 
 * 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 at tug.org
+* Support: http://persian-tex.com
 *
 ****************************************************
 \end{verbatim}

Modified: trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc-title.ltx	2018-08-12 21:57:25 UTC (rev 48396)
@@ -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 at 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 @@
 \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}
 }}
 

Modified: trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian-doc.ltx	2018-08-12 21:57:25 UTC (rev 48396)
@@ -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}

Modified: trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx	2018-08-12 21:57:25 UTC (rev 48396)
@@ -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 @@
 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 at tug.org
@@ -172,7 +179,7 @@
 \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 @@
 % \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 at tug.org}}
 %\setcounter{page}{0}
@@ -202,7 +209,7 @@
 %\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 @@
 %\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}
 %}}
 %
@@ -260,7 +278,7 @@
 %\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 @@
 % \section{File \texttt{xepersian.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\xepersian at version{21.2}
-\def\xepersiandate{2018/06/15}
+\def\xepersian at version{21.3}
+\def\xepersiandate{2018/08/12}
 \ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian at version\space 
 Persian typesetting in XeLaTeX]
 \RequirePackage{fontspec}
@@ -3224,9 +3242,9 @@
 * ^^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 at tug.org^^J%
+* Support: http://persian-tex.com^^J%
 * ^^J%
 ****************************************************}
 \typeout{\@xepersian at info}
@@ -3286,23 +3304,23 @@
 \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 @@
 \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 at 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,6 +3371,7 @@
   {
     \__xepersian_main_settextdigitfont:nn {#1,#3} {#2} 
     \__xepersian_main_setmathdigitfont:nn {#1,#3} {#2} 
+    \ignorespaces
   } 
 
 
@@ -3358,22 +3378,22 @@
 \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 @@
 
 \DeclareDocumentCommand \defpersianfont { m O{} m O{} }
   {
-    \__xepersian_main_defpersianfont:nnn {#1} {#2,#4} {#3} 
+    \__xepersian_main_defpersianfont:nnnN {#1} {#2,#4} {#3} 
+    \NewDocumentCommand
   }
-\cs_new:Nn \__xepersian_main_defpersianfont:nnn
+\DeclareDocumentCommand \redefpersianfont { m O{} m O{} }
+  {
+    \__xepersian_main_defpersianfont:nnnN {#1} {#2,#4} {#3} 
+    \RenewDocumentCommand
+  }
+\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 @@
 
 \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 @@
 \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 @@
 \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 @@
 \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 @@
 \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 @@
 \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 @@
 \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 @@
   The xepersian package, v\xepersian at version, \xepersiandate
 }
 
+\newcommand*{\@xepersian at pdfcustomproperties}{%
+  This is the xepersian package, Version \xepersian at version,
+  Released August 12, 2018. 
+}
+
 \newcommand\twocolumnstableofcontents{%
 \if at bidi@csundef{multi at column@out}{%
 \PackageError{xepersian}{Oops! you should load multicol package before xepersian package for being able to use this command}{}}{%

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/enumitem-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-commands-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-environments-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-messages-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-misc-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-commands-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

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-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-environments-xepersian.def	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty	2018-08-12 21:56:33 UTC (rev 48395)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty	2018-08-12 21:57:25 UTC (rev 48396)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \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
@@ -35,8 +35,8 @@
 %%   Right brace   \}     Tilde         \~}
 %%
 \NeedsTeXFormat{LaTeX2e}
-\def\xepersian at version{21.2}
-\def\xepersiandate{2018/06/15}
+\def\xepersian at version{21.3}
+\def\xepersiandate{2018/08/12}
 \ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian at version\space
 Persian typesetting in XeLaTeX]
 \RequirePackage{fontspec}
@@ -60,9 +60,9 @@
 * ^^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 at tug.org^^J%
+* Support: http://persian-tex.com^^J%
 * ^^J%
 ****************************************************}
 \typeout{\@xepersian at info}
@@ -122,23 +122,23 @@
 \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
@@ -146,16 +146,17 @@
 \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 at 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
      }
    }
@@ -188,27 +189,28 @@
   {
     \__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
@@ -218,17 +220,23 @@
 
 \DeclareDocumentCommand \defpersianfont { m O{} m O{} }
   {
-    \__xepersian_main_defpersianfont:nnn {#1} {#2,#4} {#3}
+    \__xepersian_main_defpersianfont:nnnN {#1} {#2,#4} {#3}
+    \NewDocumentCommand
   }
-\cs_new:Nn \__xepersian_main_defpersianfont:nnn
+\DeclareDocumentCommand \redefpersianfont { m O{} m O{} }
+  {
+    \__xepersian_main_defpersianfont:nnnN {#1} {#2,#4} {#3}
+    \RenewDocumentCommand
+  }
+\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
      }
    }
@@ -236,17 +244,23 @@
 
 \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
      }
    }
@@ -286,23 +300,23 @@
 \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
@@ -310,23 +324,23 @@
 \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
@@ -334,23 +348,23 @@
 \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
@@ -358,23 +372,23 @@
 \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
@@ -382,23 +396,23 @@
 \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
@@ -406,23 +420,23 @@
 \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
@@ -812,6 +826,11 @@
   The xepersian package, v\xepersian at version, \xepersiandate
 }
 
+\newcommand*{\@xepersian at pdfcustomproperties}{%
+  This is the xepersian package, Version \xepersian at version,
+  Released August 12, 2018.
+}
+
 \newcommand\twocolumnstableofcontents{%
 \if at bidi@csundef{multi at column@out}{%
 \PackageError{xepersian}{Oops! you should load multicol package before xepersian package for being able to use this command}{}}{%



More information about the tex-live-commits mailing list