texlive[42612] Master/texmf-dist: xepersian (30nov16)

commits+karl at tug.org commits+karl at tug.org
Wed Nov 30 23:25:46 CET 2016


Revision: 42612
          http://tug.org/svn/texlive?view=revision&revision=42612
Author:   karl
Date:     2016-11-30 23:25:45 +0100 (Wed, 30 Nov 2016)
Log Message:
-----------
xepersian (30nov16)

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/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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/doc/xelatex/xepersian/README	2016-11-30 22:25:45 UTC (rev 42612)
@@ -1,6 +1,6 @@
 ____________________
 The XePersian package
-v17
+v17.1
 
 XePersian is a package written for XeLaTeX that allows users to typeset
 Persian easily.
@@ -15,12 +15,12 @@
 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:
-  <https://github.com/vafa/xepersian/issues>
+  <https://github.com/tex-xet/xepersian/issues>
 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).
 
-Current version release date: 2016/11/25
+Current version release date: 2016/11/30
 ______________
 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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx	2016-11-30 22:25:45 UTC (rev 42612)
@@ -5,7 +5,7 @@
 %<*readme>
 ____________________
 The XePersian package
-v17
+v17.1
 
 XePersian is a package written for XeLaTeX that allows users to typeset
 Persian easily. 
@@ -22,13 +22,13 @@
 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:
-  <https://github.com/vafa/xepersian/issues>
+  <https://github.com/tex-xet/xepersian/issues>
 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). 
 
 
-Current version release date: 2016/11/25
+Current version release date: 2016/11/30
 ______________
 Vafa Khalighi
 persian-tex at tug.org
@@ -272,7 +272,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 17}}
+%\large Documentation for \textcolor{blue!65!black}{version 17.1}}
 % \author{Vafa Khalighi\\
 %  \url{persian-tex at tug.org}}
 %\setcounter{page}{0}
@@ -283,7 +283,7 @@
 %\textcolor{blue!65!black}{\Huge The \textsf{\XePersian} \textit{Package}}
 %
 %\Large
-%Documentation for \textcolor{blue!65!black}{version 17}}
+%Documentation for \textcolor{blue!65!black}{version 17.1}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -296,7 +296,7 @@
 %answer any direct email. Instead please use the issue tracker:
 %
 %\medskip
-%  \centerline{\url{https://github.com/vafa/xepersian/issues}}
+%  \centerline{\url{https://github.com/tex-xet/xepersian/issues}}
 %
 %\medskip
 %In doing so, please always explain your issue well enough, always include
@@ -338,7 +338,7 @@
 %* 
 %* Copyright (c) 2008--2016 Vafa Khalighi
 %* 
-%* v17, 2016/11/25
+%* v17.1, 2016/11/30
 %* 
 %* License: LaTeX Project Public License, version
 %* 1.3c or higher (your choice)
@@ -345,7 +345,7 @@
 %* 
 %* Location on CTAN: /macros/xetex/latex/xepersian
 %* 
-%* Issue tracker: https://github.com/vafa/xepersian/issues
+%* Issue tracker: https://github.com/tex-xet/xepersian/issues
 %* 
 %* Support: persian-tex at tug.org
 %****************************************************
@@ -2359,7 +2359,7 @@
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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
@@ -2423,7 +2423,7 @@
     \protected at edef\@currentlabel{%
       \csname p at footnote\endcsname\@thefnmark}%
     \@makefntext{%
-      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\unskip\strut\par}}}
 
 
 
@@ -2432,6 +2432,7 @@
 \long\def\@RTLfootnotetext#1{%
   \insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -2451,6 +2452,7 @@
 \long\def\@LTRfootnotetext#1{%
   \insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -2492,7 +2494,7 @@
     \protected at edef\@currentlabel{%
       \csname p at footnote\endcsname\@thefnmark}%
     \@makefntext{%
-      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\unskip\strut\par}}}
 
 
 
@@ -2501,6 +2503,7 @@
 \long\def\@RTLfootnotetext#1{%
   \insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -2520,6 +2523,7 @@
 \long\def\@LTRfootnotetext#1{%
   \insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -2643,7 +2647,7 @@
 % \subsection{\textsf{bidituftesidenote-xepersian.def}}
 %    \begin{macrocode}
 \ProvidesFile{bidituftesidenote-xepersian.def}[2014/12/28 v0.2 xepersian changes to bidituftesidenote package]
-\setLTRcitationfont{\@bidituftesidenote at marginfont\latinfont}
+\setLTRcitationfont{\@bidituftesidenote at marginfont\@nonlatinfalse\latinfont}
 \long\def\@LTRbidituftesidenote at sidenote[#1][#2]#3{%
   \let\cite\@bidituftesidenote at infootnote@cite%   use the in-sidenote \cite command
   \gdef\@bidituftesidenote at citations{}%           clear out any old citations
@@ -2656,7 +2660,7 @@
     % no specific footnote number provided
     \stepcounter\@mpfn%
     \protected at xdef\@thefnmark{\thempfn}%
-    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\latinfont#3}%
+    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatinfalse\latinfont#3}%
   }{%
     % specific footnote number provided
     \begingroup%
@@ -2663,7 +2667,7 @@
       \csname c@\@mpfn\endcsname #1\relax%
       \unrestored at protected@xdef\@thefnmark{\thempfn}%
     \endgroup%
-    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\latinfont#3}%
+    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatinfalse\latinfont#3}%
   }%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
@@ -2683,7 +2687,7 @@
     % no specific footnote number provided
     \stepcounter\@mpfn%
     \protected at xdef\@thefnmark{\thempfn}%
-    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\persianfont#3}%
+    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatintrue\persianfont#3}%
   }{%
     % specific footnote number provided
     \begingroup%
@@ -2690,7 +2694,7 @@
       \csname c@\@mpfn\endcsname #1\relax%
       \unrestored at protected@xdef\@thefnmark{\thempfn}%
     \endgroup%
-    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\persianfont#3}%
+    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatintrue\persianfont#3}%
   }%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
@@ -2701,7 +2705,7 @@
 \renewcommand\LTRmarginnote[2][0pt]{%
   \let\cite\@bidituftesidenote at infootnote@cite%   use the in-sidenote \cite command
   \gdef\@bidituftesidenote at citations{}%           clear out any old citations
-  \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\latinfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
+  \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\@nonlatinfalse\latinfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
 }
@@ -2708,7 +2712,7 @@
 \renewcommand\RTLmarginnote[2][0pt]{%
   \let\cite\@bidituftesidenote at infootnote@cite%   use the in-sidenote \cite command
   \gdef\@bidituftesidenote at citations{}%           clear out any old citations
-  \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\persianfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
+  \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\@nonlatintrue\persianfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
 }
@@ -4004,9 +4008,9 @@
 % \subsection{\textsf{extrafootnotefeatures-xepersian.def}}
 %    \begin{macrocode}
 \ProvidesFile{extrafootnotefeatures-xepersian.def}[2012/01/01 v0.2 footnote macros for extrafootnotefeatures option of xepersian package]
-\renewcommand{\foottextfont}{\footnotesize\if at RTL@footnote\else\latinfont\fi}
-\renewcommand{\LTRfoottextfont}{\footnotesize\latinfont}
-\renewcommand{\RTLfoottextfont}{\footnotesize\persianfont}
+\renewcommand{\foottextfont}{\footnotesize\if at RTL@footnote\else\@nonlatinfalse\latinfont\fi}
+\renewcommand{\LTRfoottextfont}{\@nonlatinfalse\footnotesize\latinfont}
+\renewcommand{\RTLfoottextfont}{\@nonlatintrue\footnotesize\persianfont}
 %    \end{macrocode}
 % \iffalse
 %</extrafootnotefeatures-xepersian.def>
@@ -4080,7 +4084,7 @@
     }%
     \color at begingroup
       \@makefntext{%
-        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}%
+        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\@finalstrut\strutbox}%
     \color at endgroup}}%
     
     
@@ -4089,6 +4093,7 @@
     
 \long\def\@RTLfootnotetext#1{\insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \reset at font\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep
@@ -4108,6 +4113,7 @@
     
 \long\def\@LTRfootnotetext#1{\insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \reset at font\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep
@@ -4138,7 +4144,7 @@
          {\csname p at mpfootnote\endcsname\@thefnmark}%
     \color at begingroup
       \@makefntext{%
-        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}%
+        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\@finalstrut\strutbox}%
     \color at endgroup}}    
     
     
@@ -4147,7 +4153,7 @@
     
 \long\def\@mpRTLfootnotetext#1{%
   \ifbidi at autofootnoterule\ifnum\c at mpfootnote=\@ne\global\let\bidi at mpfootnoterule\right at footnoterule\fi\fi%
-  \global\setbox\@mpfootins\vbox{\@RTLtrue%
+  \global\setbox\@mpfootins\vbox{\@RTLtrue\@nonlatintrue%
     \unvbox\@mpfootins
     \reset at font\footnotesize
     \hsize\columnwidth
@@ -4162,7 +4168,7 @@
     
 \long\def\@mpLTRfootnotetext#1{%
  \ifbidi at autofootnoterule\ifnum\c at mpfootnote=\@ne\global\let\bidi at mpfootnoterule\left at footnoterule\fi\fi%
-  \global\setbox\@mpfootins\vbox{\@RTLfalse%
+  \global\setbox\@mpfootins\vbox{\@RTLfalse\@nonlatinfalse%
     \unvbox\@mpfootins
     \reset at font\footnotesize
     \hsize\columnwidth
@@ -4319,7 +4325,7 @@
     \protected at edef\@currentlabel{%
       \csname p at footnote\endcsname\@thefnmark}%
     \@makefntext{%
-      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\unskip\strut\par}}}
 
 
 
@@ -4328,6 +4334,7 @@
 \long\def\@RTLfootnotetext#1{%
   \insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -4347,6 +4354,7 @@
 \long\def\@LTRfootnotetext#1{%
   \insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -4759,7 +4767,7 @@
 \long\def\@iiiparbox#1#2[#3]#4#5{%
   \leavevmode
   \@pboxswfalse
-  \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+  \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
   \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\else\if#1ز\@bidi at list@minipage at parboxtrue\else\if#1ب\@bidi at list@minipage at parboxtrue\fi\fi\fi\fi\fi
   \setlength\@tempdima{#4}%
   \@begin at tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
@@ -4781,7 +4789,7 @@
 \def\@iiiminipage#1#2[#3]#4{%
   \leavevmode
   \@pboxswfalse
-    \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+    \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
     \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\else\if#1ز\@bidi at list@minipage at parboxtrue\else\if#1ب\@bidi at list@minipage at parboxtrue\fi\fi\fi\fi\fi
   \setlength\@tempdima{#4}%
   \def\@mpargs{{#1}{#2}[#3]{#4}}%
@@ -5668,8 +5676,8 @@
 % \subsection{\textsf{xepersian.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v17}
-\def\xepersiandate{2016/11/25}
+\def\xepersianversion{v17.1}
+\def\xepersiandate{2016/11/30}
 \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space 
 Persian typesetting in XeLaTeX]
 \RequirePackage{fontspec}
@@ -5693,7 +5701,7 @@
 * ^^J%
 * Location on CTAN: /macros/xetex/latex/xepersian^^J%
 * ^^J%
-* Issue tracker: https://github.com/vafa/xepersian/issues^^J%
+* Issue tracker: https://github.com/tex-xet/xepersian/issues^^J%
 * ^^J%
 * Support: persian-tex at tug.org^^J%
 ****************************************************}
@@ -5904,6 +5912,7 @@
 \def\today{\rl{\persiantoday}}
 \def \@LTRmarginparreset {%
         \reset at font
+        \@nonlatinfalse
         \latinfont
         \normalsize
         \@minipagetrue
@@ -5952,7 +5961,7 @@
   \fi
   \reset at font
   \normalsize
-  \if at RTLmain\setpersianfont\else\resetlatinfont\fi
+  \if at RTLmain\@nonlatintrue\setpersianfont\else\@nonlatinfalse\resetlatinfont\fi
   \normalsfcodes
   \let\label\@gobble
   \let\index\@gobble
@@ -6347,6 +6356,21 @@
     \@RTLfalse
   \fi}
   
+\define at choicekey{xepersian.sty}{documentdirection}[\xepersian at tempa\xepersian at tempb]{righttoleft,lefttoright}{%
+  \ifcase\xepersian at tempb\relax
+    \@RTLtrue
+  \or
+    \@RTLfalse
+  \fi}
+  
+
+\define at choicekey{xepersian.sty}{tabledirection}[\xepersian at tempa\xepersian at tempb]{righttoleft,lefttoright}{%
+  \ifcase\xepersian at tempb\relax
+    \@RTLtabtrue
+  \or
+    \@RTLtabfalse
+  \fi}
+  
 \define at choicekey{xepersian.sty}{script}[\xepersian at tempa\xepersian at tempb]{latin,nonlatin}[latin]{%
   \ifcase\xepersian at tempb\relax
     \@nonlatinfalse
@@ -6454,7 +6478,8 @@
 }
 
 \ExecuteOptionsX{%
-    RTLdocument=on,
+    documentdirection=righttoleft,
+    tabledirection=righttoleft,
     script=nonlatin,
     footnotedirection=righttoleft,
     footnoterule=automatic,

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithm-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/algorithmic-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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
@@ -51,11 +51,12 @@
     \protected at edef\@currentlabel{%
       \csname p at footnote\endcsname\@thefnmark}%
     \@makefntext{%
-      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\unskip\strut\par}}}
 
 \long\def\@RTLfootnotetext#1{%
   \insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -69,6 +70,7 @@
 \long\def\@LTRfootnotetext#1{%
   \insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/amsbook-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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
@@ -53,11 +53,12 @@
     \protected at edef\@currentlabel{%
       \csname p at footnote\endcsname\@thefnmark}%
     \@makefntext{%
-      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\unskip\strut\par}}}
 
 \long\def\@RTLfootnotetext#1{%
   \insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -71,6 +72,7 @@
 \long\def\@LTRfootnotetext#1{%
   \insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/appendix-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/article-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel1-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel2-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/artikel3-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/backref-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bidimoderncv-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bidituftesidenote-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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,7 +35,7 @@
 %%   Right brace   \}     Tilde         \~}
 %%
 \ProvidesFile{bidituftesidenote-xepersian.def}[2014/12/28 v0.2 xepersian changes to bidituftesidenote package]
-\setLTRcitationfont{\@bidituftesidenote at marginfont\latinfont}
+\setLTRcitationfont{\@bidituftesidenote at marginfont\@nonlatinfalse\latinfont}
 \long\def\@LTRbidituftesidenote at sidenote[#1][#2]#3{%
   \let\cite\@bidituftesidenote at infootnote@cite%   use the in-sidenote \cite command
   \gdef\@bidituftesidenote at citations{}%           clear out any old citations
@@ -48,7 +48,7 @@
     % no specific footnote number provided
     \stepcounter\@mpfn%
     \protected at xdef\@thefnmark{\thempfn}%
-    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\latinfont#3}%
+    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatinfalse\latinfont#3}%
   }{%
     % specific footnote number provided
     \begingroup%
@@ -55,7 +55,7 @@
       \csname c@\@mpfn\endcsname #1\relax%
       \unrestored at protected@xdef\@thefnmark{\thempfn}%
     \endgroup%
-    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\latinfont#3}%
+    \@footnotemark\@LTRfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatinfalse\latinfont#3}%
   }%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
@@ -75,7 +75,7 @@
     % no specific footnote number provided
     \stepcounter\@mpfn%
     \protected at xdef\@thefnmark{\thempfn}%
-    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\persianfont#3}%
+    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatintrue\persianfont#3}%
   }{%
     % specific footnote number provided
     \begingroup%
@@ -82,7 +82,7 @@
       \csname c@\@mpfn\endcsname #1\relax%
       \unrestored at protected@xdef\@thefnmark{\thempfn}%
     \endgroup%
-    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\persianfont#3}%
+    \@footnotemark\@RTLfootnotetext[\@bidituftesidenote at sidenote@vertical at offset]{\@nonlatintrue\persianfont#3}%
   }%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
@@ -93,7 +93,7 @@
 \renewcommand\LTRmarginnote[2][0pt]{%
   \let\cite\@bidituftesidenote at infootnote@cite%   use the in-sidenote \cite command
   \gdef\@bidituftesidenote at citations{}%           clear out any old citations
-  \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\latinfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
+  \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\@nonlatinfalse\latinfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
 }
@@ -100,7 +100,7 @@
 \renewcommand\RTLmarginnote[2][0pt]{%
   \let\cite\@bidituftesidenote at infootnote@cite%   use the in-sidenote \cite command
   \gdef\@bidituftesidenote at citations{}%           clear out any old citations
-  \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\persianfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
+  \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote at marginnote@font\@nonlatintrue\persianfont\@bidituftesidenote at marginnote@justification\@bidituftesidenote at margin@par\vspace*{-1\baselineskip}\noindent #2}%
   \@bidituftesidenote at print@citations%            print any citations
   \let\cite\@bidituftesidenote at normal@cite%       go back to using normal in-text \cite command
 }

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/boek-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/boek3-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/book-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/bookest-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/breqn-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/color-localise-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/enumerate-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extarticle-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extbook-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extrafootnotefeatures-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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,9 +35,9 @@
 %%   Right brace   \}     Tilde         \~}
 %%
 \ProvidesFile{extrafootnotefeatures-xepersian.def}[2012/01/01 v0.2 footnote macros for extrafootnotefeatures option of xepersian package]
-\renewcommand{\foottextfont}{\footnotesize\if at RTL@footnote\else\latinfont\fi}
-\renewcommand{\LTRfoottextfont}{\footnotesize\latinfont}
-\renewcommand{\RTLfoottextfont}{\footnotesize\persianfont}
+\renewcommand{\foottextfont}{\footnotesize\if at RTL@footnote\else\@nonlatinfalse\latinfont\fi}
+\renewcommand{\LTRfoottextfont}{\@nonlatinfalse\footnotesize\latinfont}
+\renewcommand{\RTLfoottextfont}{\@nonlatintrue\footnotesize\persianfont}
 \endinput
 %%
 %% End of file `extrafootnotefeatures-xepersian.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/extreport-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/flowfram-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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
@@ -48,11 +48,12 @@
     }%
     \color at begingroup
       \@makefntext{%
-        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}%
+        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\@finalstrut\strutbox}%
     \color at endgroup}}%
 
 \long\def\@RTLfootnotetext#1{\insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \reset at font\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep
@@ -68,6 +69,7 @@
 
 \long\def\@LTRfootnotetext#1{\insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \reset at font\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep
@@ -96,12 +98,12 @@
          {\csname p at mpfootnote\endcsname\@thefnmark}%
     \color at begingroup
       \@makefntext{%
-        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}%
+        \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\@finalstrut\strutbox}%
     \color at endgroup}}
 
 \long\def\@mpRTLfootnotetext#1{%
   \ifbidi at autofootnoterule\ifnum\c at mpfootnote=\@ne\global\let\bidi at mpfootnoterule\right at footnoterule\fi\fi%
-  \global\setbox\@mpfootins\vbox{\@RTLtrue%
+  \global\setbox\@mpfootins\vbox{\@RTLtrue\@nonlatintrue%
     \unvbox\@mpfootins
     \reset at font\footnotesize
     \hsize\columnwidth
@@ -115,7 +117,7 @@
 
 \long\def\@mpLTRfootnotetext#1{%
  \ifbidi at autofootnoterule\ifnum\c at mpfootnote=\@ne\global\let\bidi at mpfootnoterule\left at footnoterule\fi\fi%
-  \global\setbox\@mpfootins\vbox{\@RTLfalse%
+  \global\setbox\@mpfootins\vbox{\@RTLfalse\@nonlatinfalse%
     \unvbox\@mpfootins
     \reset at font\footnotesize
     \hsize\columnwidth

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/framed-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/glossaries-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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
@@ -87,11 +87,12 @@
     \protected at edef\@currentlabel{%
       \csname p at footnote\endcsname\@thefnmark}%
     \@makefntext{%
-      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+      \rule\z@\footnotesep\ignorespaces\if at RTL@footnote#1\else\@nonlatinfalse\latinfont#1\fi\unskip\strut\par}}}
 
 \long\def\@RTLfootnotetext#1{%
   \insert\footins{%
     \@RTLtrue%
+    \@nonlatintrue%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
@@ -105,6 +106,7 @@
 \long\def\@LTRfootnotetext#1{%
   \insert\footins{%
     \@RTLfalse%
+    \@nonlatinfalse%
     \normalfont\footnotesize
     \interlinepenalty\interfootnotelinepenalty
     \splittopskip\footnotesep \splitmaxdepth \dp\strutbox

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/kashida-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-commands-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-environments-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-messages-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/latex-localise-misc-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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
@@ -150,7 +150,7 @@
 \long\def\@iiiparbox#1#2[#3]#4#5{%
   \leavevmode
   \@pboxswfalse
-  \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+  \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
   \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\else\if#1ز\@bidi at list@minipage at parboxtrue\else\if#1ب\@bidi at list@minipage at parboxtrue\fi\fi\fi\fi\fi
   \setlength\@tempdima{#4}%
   \@begin at tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
@@ -172,7 +172,7 @@
 \def\@iiiminipage#1#2[#3]#4{%
   \leavevmode
   \@pboxswfalse
-    \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+    \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
     \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\else\if#1ز\@bidi at list@minipage at parboxtrue\else\if#1ب\@bidi at list@minipage at parboxtrue\fi\fi\fi\fi\fi
   \setlength\@tempdima{#4}%
   \def\@mpargs{{#1}{#2}[#3]{#4}}%

Modified: trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/listings-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/localise-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/memoir-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/minitoc-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/natbib-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/packages-localise-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport1-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/rapport3-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/refrep-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/report-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrartcl-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrbook-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/scrreprt-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/soul-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/tkz-linknodes-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/tocloft-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-commands-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-localise-environments-xepersian.def	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-magazine.cls	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-mathsdigitspec.sty	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-multiplechoice.sty	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.sty	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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	2016-11-30 22:25:34 UTC (rev 42611)
+++ trunk/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty	2016-11-30 22:25:45 UTC (rev 42612)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{10112}
+%% \CheckSum{10160}
 %% \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{v17}
-\def\xepersiandate{2016/11/25}
+\def\xepersianversion{v17.1}
+\def\xepersiandate{2016/11/30}
 \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
 Persian typesetting in XeLaTeX]
 \RequirePackage{fontspec}
@@ -60,7 +60,7 @@
 * ^^J%
 * Location on CTAN: /macros/xetex/latex/xepersian^^J%
 * ^^J%
-* Issue tracker: https://github.com/vafa/xepersian/issues^^J%
+* Issue tracker: https://github.com/tex-xet/xepersian/issues^^J%
 * ^^J%
 * Support: persian-tex at tug.org^^J%
 ****************************************************}
@@ -271,6 +271,7 @@
 \def\today{\rl{\persiantoday}}
 \def \@LTRmarginparreset {%
         \reset at font
+        \@nonlatinfalse
         \latinfont
         \normalsize
         \@minipagetrue
@@ -319,7 +320,7 @@
   \fi
   \reset at font
   \normalsize
-  \if at RTLmain\setpersianfont\else\resetlatinfont\fi
+  \if at RTLmain\@nonlatintrue\setpersianfont\else\@nonlatinfalse\resetlatinfont\fi
   \normalsfcodes
   \let\label\@gobble
   \let\index\@gobble
@@ -711,6 +712,20 @@
     \@RTLfalse
   \fi}
 
+\define at choicekey{xepersian.sty}{documentdirection}[\xepersian at tempa\xepersian at tempb]{righttoleft,lefttoright}{%
+  \ifcase\xepersian at tempb\relax
+    \@RTLtrue
+  \or
+    \@RTLfalse
+  \fi}
+
+\define at choicekey{xepersian.sty}{tabledirection}[\xepersian at tempa\xepersian at tempb]{righttoleft,lefttoright}{%
+  \ifcase\xepersian at tempb\relax
+    \@RTLtabtrue
+  \or
+    \@RTLtabfalse
+  \fi}
+
 \define at choicekey{xepersian.sty}{script}[\xepersian at tempa\xepersian at tempb]{latin,nonlatin}[latin]{%
   \ifcase\xepersian at tempb\relax
     \@nonlatinfalse
@@ -818,7 +833,8 @@
 }
 
 \ExecuteOptionsX{%
-    RTLdocument=on,
+    documentdirection=righttoleft,
+    tabledirection=righttoleft,
     script=nonlatin,
     footnotedirection=righttoleft,
     footnoterule=automatic,



More information about the tex-live-commits mailing list