texlive[42060] Master/texmf-dist: bidi (14sep16)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 14 23:11:05 CEST 2016


Revision: 42060
          http://tug.org/svn/texlive?view=revision&revision=42060
Author:   karl
Date:     2016-09-14 23:11:05 +0200 (Wed, 14 Sep 2016)
Log Message:
-----------
bidi (14sep16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/bidi/README
    trunk/Master/texmf-dist/doc/xelatex/bidi/bidi.pdf
    trunk/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
    trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls
    trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty
    trunk/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tocbasic-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def
    trunk/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def

Modified: trunk/Master/texmf-dist/doc/xelatex/bidi/README
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/bidi/README	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/doc/xelatex/bidi/README	2016-09-14 21:11:05 UTC (rev 42060)
@@ -1,6 +1,6 @@
 ___________________
 The bidi package
-v19.9
+v20.0
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -17,7 +17,7 @@
 a minimal working example showing the issue, and always choose the appropriate
 label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
 
-Current version release date: 2016/09/12
+Current version release date: 2016/09/14
 
 ___________________
 Vafa Khalighi

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

Modified: trunk/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/bidi/bidi.dtx	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/source/xelatex/bidi/bidi.dtx	2016-09-14 21:11:05 UTC (rev 42060)
@@ -5,7 +5,7 @@
 %<*readme>
 ___________________
 The bidi package
-v19.9
+v20.0
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -25,7 +25,7 @@
 label for your query (i.e. if you are reporting any bugs, choose `Bug' label). 
 
 
-Current version release date: 2016/09/12
+Current version release date: 2016/09/14
 
 ___________________
 Vafa Khalighi
@@ -304,14 +304,14 @@
 \renewcommand\labelitemiii{\HandCuffRight}
 \renewcommand\labelitemiv{\HandPencilLeft}
 \renewcommand\partname{Part}
-%\EnableCrossrefs
-%\CodelineIndex
-%\RecordChanges
-\OnlyDescription
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+%\OnlyDescription
 \begin{document}
   \DocInput{\jobname.dtx}
-%  \PrintIndex
-%  \PrintChanges
+  \PrintIndex
+  \PrintChanges
 \end{document}
 %</driver>
 %
@@ -322,7 +322,7 @@
 %\changes{v13.9}{2013/09/23}{Added implementaion of the package.}
 % \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\
 %\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt]
-%\large Documentation for \textcolor{blue!65!black}{version 19.9}}
+%\large Documentation for \textcolor{blue!65!black}{version 20.0}}
 % \author{Vafa Khalighi\\
 %  \url{persian-tex at tug.org}}
 %\setcounter{page}{0}
@@ -333,7 +333,7 @@
 %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
 %
 %\Large
-%Documentation for \textcolor{blue!65!black}{version 19.9}}
+%Documentation for \textcolor{blue!65!black}{version 20.0}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -384,7 +384,7 @@
 %* 
 %* Copyright (c) 2009--2016 Vafa Khalighi
 %* 
-%* 2016/09/12, v19.9
+%* 2016/09/14, v20.0
 %* 
 %* License: LaTeX Project Public License, version
 %* 1.3c or higher (your choice)
@@ -1141,7 +1141,7 @@
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -1524,7 +1524,7 @@
 %\fi
 % \subsection{\textsf{amsmath-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{amsmath-xetex-bidi.def}[2014/09/04 v0.9 bidi adaptations for amsmath package for XeTeX engine]
+\ProvidesFile{amsmath-xetex-bidi.def}[2016/09/12 v1.0 bidi adaptations for amsmath package for XeTeX engine]
 \let\veqno=\eqno
 \iftagsleft@ \let\veqno=\leqno \fi
 \renewcommand{\numberwithin}[3][\arabic]{%
@@ -1534,7 +1534,7 @@
       \@xp\xdef\csname the#2\endcsname{%
         \@xp\@nx\csname the#3\endcsname \@nx\@SepMark\@nx#1{#2}}}}%
 }
-\def\tagform@#1{\maketag@@@{\if at Latin\else\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if at Latin\else\endR\fi}}
+\def\tagform@#1{\maketag@@@{\if at nonlatin\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if at nonlatin\endR\fi}}
 %    \end{macrocode}
 % \iffalse
 %</amsmath-xetex-bidi.def>
@@ -1542,11 +1542,11 @@
 %\fi
 % \subsection{\textsf{amstext-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{amstext-xetex-bidi.def}[2013/04/04 v0.1 bidi adaptations for amstext package for XeTeX engine]
+\ProvidesFile{amstext-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for amstext package for XeTeX engine]
 \def\textdef@#1#2#3{\hbox{{%
                     \everymath{#1}%
                     \let\f at size#2\selectfont
-                    \if at Latin\else\beginR\fi#3\if at Latin\else\endR\fi}}}
+                    \if at nonlatin\beginR\fi#3\if at nonlatin\endR\fi}}}
 %    \end{macrocode}
 % \iffalse
 %</amstext-xetex-bidi.def>
@@ -2984,8 +2984,8 @@
 % \subsection{\textsf{bidi.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\bididate{2016/09/12}
-\def\bidiversion{v19.9}
+\def\bididate{2016/09/14}
+\def\bidiversion{v20.0}
 \ProvidesPackage{bidi}[\bididate\space \bidiversion\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi at info{****************************************************^^J%
@@ -3023,7 +3023,7 @@
 \RequirePackage{xkeyval}
 \eqnewif{\if at RTLmain}{\if at rlmain}
 \eqnewif{\if at RTL}{\if at rl}
-\newif\if at Latin
+\newif\if at nonlatin
 \eqnewif{\if at RTLtab}{\if at tab@rl}
 \newif\if at RTLmarginpar
 \newif\if at LTRmarginpar
@@ -3058,6 +3058,12 @@
   \or
     \@RTLfalse
   \fi}
+\define at choicekey{bidi.sty}{script}[\bidi at tempa\bidi at tempb]{latin,nonlatin}[latin]{%
+  \ifcase\bidi at tempb\relax
+    \@nonlatinfalse
+  \or
+    \@nonlatintrue
+  \fi}
 \define at choicekey{bidi.sty}{rldocument}[\bidi at tempa\bidi at tempb]{on,off}[on]{%
   \ifcase\bidi at tempb\relax
     \@RTLtrue
@@ -3109,7 +3115,7 @@
 \bidi at digits=`\۰ \loop \XeTeXcharclass \bidi at digits \bidi at digits@charclass \ifnum\bidi at digits<`\۹ \advance\bidi at digits \@ne \repeat
 \XeTeXinterchartoks \bidi at digits@charclass  \bidi at dot@charclass = {\DigitsDotInterCharToks}
 \XeTeXinterchartoks \bidi at dot@charclass  \bidi at digits@charclass = {\DigitsDotInterCharToks}
-\newcommand*{\DigitsDotInterCharToks}{\if at Latin\else\char"200F \fi}
+\newcommand*{\DigitsDotInterCharToks}{\if at nonlatin\char"200F \fi}
 %    \end{macrocode}
 % \iffalse
 %</bidi.sty>
@@ -7758,7 +7764,7 @@
 %\fi
 % \subsection{\textsf{breqn-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{breqn-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for breqn package for XeTeX engine]
+\ProvidesFile{breqn-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for breqn package for XeTeX engine]
 \def\@dmath[#1]{\if at RTL\@RTLfalse\fi%
   \everydisplay\expandafter{\the\everydisplay \display at setup}%
   \if at noskipsec \leavevmode \fi
@@ -7798,9 +7804,9 @@
   \def\postmath{\unpenalty\eq at addpunct \penalty\intermath at penalty \dquad \@ignoretrue}%
 \ignorespaces
 }
-\def\eqnumform#1{\if at Latin\else\beginR\@RTLtrue\fi(#1\@@italiccorr)\if at Latin\else\endR\fi}
+\def\eqnumform#1{\if at nonlatin\beginR\@RTLtrue\fi(#1\@@italiccorr)\if at nonlatin\endR\fi}
 \renewenvironment{dsuspend}{%
-  \global\setbox\EQ at box\vbox\bgroup\if at Latin\else\@RTLtrue\fi \@parboxrestore
+  \global\setbox\EQ at box\vbox\bgroup\if at nonlatin\@RTLtrue\fi \@parboxrestore
     \parshape 1 \displayindent \displaywidth\relax
     \hsize=\columnwidth \noindent\ignorespaces
 }{%
@@ -13813,7 +13819,7 @@
 %\fi
 % \subsection{\textsf{listings-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{listings-xetex-bidi.def}[2015/08/23 v0.9 bidi adaptations for listings package for XeTeX engine]
+\ProvidesFile{listings-xetex-bidi.def}[2016/09/12 v1.0 bidi adaptations for listings package for XeTeX engine]
 \lst at Key{captiondirection}{textdirection}{%
     \lstKV at SwitchCases{#1}%
     {textdirection&\\%
@@ -13820,6 +13826,14 @@
      RTL&\chardef\bidi at lst@caption at direction\@ne\\%
      LTR&\chardef\bidi at lst@caption at direction\z@%
     }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
+    
+\lst at Key{captionscript}{latin}{%
+    \lstKV at SwitchCases{#1}%
+    {%
+     latin&\chardef\bidi at lst@caption at script\@ne\\%
+     nonlatin&\chardef\bidi at lst@caption at script\z@%
+    }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
+    
 \newcommand*{\bidi at lst@ensure at caption@direction}[2]{%
    \@ifundefined{bidi at lst@caption at direction}{}{%
     \ifnum\bidi at lst@caption at direction=\z@%
@@ -13831,6 +13845,13 @@
      \fi%
 }}
 \long\def\@bidi at lst@makecaption#1#2{%
+    \ifnum\bidi at lst@caption at script=\z@%
+        \@nonlatintrue%
+    \else%
+         \ifnum\bidi at lst@caption at script=\@ne%
+             \@nonlatinfalse%
+         \fi%
+     \fi%
    \vskip\abovecaptionskip
    \bidi at lst@ensure at caption@direction{\@RTLfalse}{\@RTLtrue}%
    \sbox\@tempboxa{%
@@ -17394,7 +17415,7 @@
 %\fi
 % \subsection{\textsf{scrartcl-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{scrartcl-xetex-bidi.def}[2016/09/11 v0.9 bidi adaptations for scrartcl class for XeTeX engine]
+\ProvidesFile{scrartcl-xetex-bidi.def}[2016/09/14 v1.0 bidi adaptations for scrartcl class for XeTeX engine]
 \newcommand{\scr at saved@LTRfootnotetext}{}
 \newcommand{\scr at saved@RTLfootnotetext}{}
 \let\scr at saved@footnotetext\@footnotetext
@@ -17843,6 +17864,105 @@
     }%
   \fi
 }
+
+\CloneTOCEntryStyle{tocline}{part}
+\TOCEntryStyleStartInitCode{part}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\hfill}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{2.25em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{section}
+\TOCEntryStyleStartInitCode{section}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{%
+    \if at sectionentrywithdots
+      \TOCLineLeaderFill\relax
+    \else
+      \hfill
+    \fi
+  }%
+  % F^^fcr die Eintr^^e4ge die Schrift von Element sectionentry verwenden.
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname{\usekomafont{sectionentry}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{\usekomafont{sectionentry}{\usekomafont{sectionentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{1.0em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{subsection}
+\TOCEntryStyleStartInitCode{subsection}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+}
+
+\CloneTOCEntryStyle{subsection}{default}
+
+\DeclareSectionCommand[%
+  style=part,%
+  level=\z@,%
+  tocstyle=part,%
+  toclevel=\m at ne,%
+  tocindent=\z@,%
+  tocnumwidth=2em%
+]{part}
+\DeclareSectionCommand[%
+  style=section,%
+  level=1,%
+  indent=\z@,%
+  beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
+  afterskip=2.3ex \@plus.2ex,%
+  tocstyle=section,%
+  tocindent=0pt,%
+  tocnumwidth=1.5em%
+]{section}
+\DeclareSectionCommand[%
+  style=section,%
+  level=2,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=subsection,%
+  tocindent=1.5em,%
+  tocnumwidth=2.3em%
+]{subsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=3,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=subsection,%
+  tocindent=3.8em,%
+  tocnumwidth=3.2em%
+]{subsubsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=4,%
+  indent=\z@,%
+  beforeskip=3.25ex \@plus1ex \@minus.2ex,%
+  afterskip=-1em,%
+  tocstyle=subsection,%
+  tocindent=7.0em,%
+  tocnumwidth=4.1em%
+]{paragraph}
+\DeclareSectionCommand[%
+  style=section,%
+  level=5,%
+  indent=\scr at parindent,%
+  beforeskip=3.25ex \@plus1ex \@minus .2ex,%
+  afterskip=-1em,%
+  tocstyle=subsection,%
+  tocindent=10em,%
+  tocnumwidth=5em%
+]{subparagraph}
 %    \end{macrocode}
 % \iffalse
 %</scrartcl-xetex-bidi.def>
@@ -17850,7 +17970,7 @@
 %\fi
 % \subsection{\textsf{scrbook-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{scrbook-xetex-bidi.def}[2016/09/11 v0.9 bidi adaptations for scrbook class for XeTeX engine]
+\ProvidesFile{scrbook-xetex-bidi.def}[2016/09/14 v1.0 bidi adaptations for scrbook class for XeTeX engine]
 \newcommand{\scr at saved@LTRfootnotetext}{}
 \newcommand{\scr at saved@RTLfootnotetext}{}
 \let\scr at saved@footnotetext\@footnotetext
@@ -18330,6 +18450,116 @@
     }%
   \fi
 }
+
+\CloneTOCEntryStyle{tocline}{part}
+\TOCEntryStyleStartInitCode{part}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\hfill}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{2.25em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{chapter}
+\TOCEntryStyleStartInitCode{chapter}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{%
+    \if at chapterentrywithdots
+      \TOCLineLeaderFill\relax
+    \else
+      \hfill
+    \fi
+  }%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname{\usekomafont{chapterentry}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{1.0em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{section}
+\TOCEntryStyleStartInitCode{section}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+}
+
+\CloneTOCEntryStyle{section}{default}
+
+\DeclareSectionCommand[%
+  style=part,%
+  level=\m at ne,%
+  pagestyle=plain,%
+  tocstyle=part,%
+  toclevel=\m at ne,%
+  tocindent=\z@,%
+  tocnumwidth=2em%
+]{part}
+\DeclareSectionCommand[%
+  style=chapter,%
+  level=\z@,%
+  pagestyle=plain,%
+  tocstyle=chapter,%
+  tocindent=\z@,%
+  tocnumwidth=1.5em%
+]{chapter}
+\DeclareSectionCommand[%
+  style=section,%
+  level=1,%
+  indent=\z@,%
+  beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
+  afterskip=2.3ex \@plus.2ex,%
+  tocstyle=section,%
+  tocindent=1.5em,%
+  tocnumwidth=2.3em%
+]{section}
+\DeclareSectionCommand[%
+  style=section,%
+  level=2,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=3.8em,%
+  tocnumwidth=3.2em%
+]{subsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=3,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=7.0em,%
+  tocnumwidth=4.1em%
+]{subsubsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=4,%
+  indent=\z@,%
+  beforeskip=3.25ex \@plus1ex \@minus.2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=10em,%
+  tocnumwidth=5em%
+]{paragraph}
+\DeclareSectionCommand[%
+  style=section,%
+  level=5,%
+  indent=\scr at parindent,%
+  beforeskip=3.25ex \@plus1ex \@minus .2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=12em,%
+  tocnumwidth=6em%
+]{subparagraph}
+
+
 %    \end{macrocode}
 % \iffalse
 %</scrbook-xetex-bidi.def>
@@ -18452,7 +18682,7 @@
 %\fi
 % \subsection{\textsf{scrreprt-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{scrreprt-xetex-bidi.def}[2016/09/11 v0.9 bidi adaptations for scrreprt class for XeTeX engine]
+\ProvidesFile{scrreprt-xetex-bidi.def}[2016/09/14 v1.0 bidi adaptations for scrreprt class for XeTeX engine]
 \newcommand{\scr at saved@LTRfootnotetext}{}
 \newcommand{\scr at saved@RTLfootnotetext}{}
 \let\scr at saved@footnotetext\@footnotetext
@@ -18916,6 +19146,116 @@
     }%
   \fi
 }
+
+\CloneTOCEntryStyle{tocline}{part}
+\TOCEntryStyleStartInitCode{part}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\hfill}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{2.25em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{chapter}
+\TOCEntryStyleStartInitCode{chapter}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{%
+    \if at chapterentrywithdots
+      \TOCLineLeaderFill\relax
+    \else
+      \hfill
+    \fi
+  }%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname{\usekomafont{chapterentry}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{1.0em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{section}
+\TOCEntryStyleStartInitCode{section}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+}
+
+\CloneTOCEntryStyle{section}{default}
+
+\DeclareSectionCommand[%
+  style=part,%
+  level=\m at ne,%
+  pagestyle=plain,%
+  tocstyle=part,%
+  toclevel=\m at ne,%
+  tocindent=\z@,%
+  tocnumwidth=2em%
+]{part}
+\DeclareSectionCommand[%
+  style=chapter,%
+  level=\z@,%
+  pagestyle=plain,%
+  tocstyle=chapter,%
+  tocindent=\z@,%
+  tocnumwidth=1.5em%
+]{chapter}
+\DeclareSectionCommand[%
+  style=section,%
+  level=1,%
+  indent=\z@,%
+  beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
+  afterskip=2.3ex \@plus.2ex,%
+  tocstyle=section,%
+  tocindent=1.5em,%
+  tocnumwidth=2.3em%
+]{section}
+\DeclareSectionCommand[%
+  style=section,%
+  level=2,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=3.8em,%
+  tocnumwidth=3.2em%
+]{subsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=3,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=7.0em,%
+  tocnumwidth=4.1em%
+]{subsubsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=4,%
+  indent=\z@,%
+  beforeskip=3.25ex \@plus1ex \@minus.2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=10em,%
+  tocnumwidth=5em%
+]{paragraph}
+\DeclareSectionCommand[%
+  style=section,%
+  level=5,%
+  indent=\scr at parindent,%
+  beforeskip=3.25ex \@plus1ex \@minus .2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=12em,%
+  tocnumwidth=6em%
+]{subparagraph}
+
+
 %    \end{macrocode}
 % \iffalse
 %</scrreprt-xetex-bidi.def>
@@ -19731,57 +20071,661 @@
 %\fi
 % \subsection{\textsf{tocbasic-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{tocbasic-xetex-bidi.def}[2016/09/11 v0.1 bidi adaptations for tocbasic package for XeTeX engine]
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
+\ProvidesFile{tocbasic-xetex-bidi.def}[2016/09/14 v0.2 bidi adaptations for tocbasic package for XeTeX engine]
+\bidi at undef\scr at dte@def at l@undottedtocline
+\bidi at undef\scr at dte@undottedtocline at init
+\DeclareTOCEntryStyle{undottedtocline}[{%
+  \DefineTOCEntryLengthOption{indent}%
+    {scr at tso@}{@indent}{entry indent}%
+  \DefineTOCEntryLengthOption{numwidth}%
+    {scr at tso@}{@numwidth}{entry number width}%
+  \@ifundefined{#1tocdepth}{%
+    \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
+      \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
+        \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
+          \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
+            \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
+              \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
+                \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
+                  \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
+                    \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
+                      \expandafter\let\csname #1tocdepth\expandafter\endcsname
+                      \csname #1numdepth\endcsname
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at indent}{%
+    \@ifundefined{scr@#1 at tocindent}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+          \ifstr{#1}{part}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+            \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+              \scr at ifundefinedorrelax{l at chapter}{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{0pt}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{3.8em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{7em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{10em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{3.8em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{7.0em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{10em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{12em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }{%
+      \@namedef{scr at tso@#1 at indent}{\@nameuse{scr@#1 at tocindent}}%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at numwidth}{%
+    \@ifundefined{scr@#1 at tocnumwidth}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+          \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+            \scr at ifundefinedorrelax{chapter}{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.2em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{4.1em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{5m}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{3.2em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.1em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{5em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{6em}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }{%
+      \@namedef{scr at tso@#1 at numwidth}{\@nameuse{scr@#1 at tocnumwidth}}%
+    }%
+  }{}%
+}]{%
+  \ifnum \c at tocdepth >\numexpr \@nameuse{#1tocdepth}-\@ne\relax
+    \ifnum \@nameuse{#1tocdepth}<\@ne
+      \scr at ifundefinedorrelax{chapter}{%
+        \addpenalty\@secpenalty
+        \addvspace{1.0em \@plus\p@}%
+      }{%
+        \addpenalty{-\@highpenalty}%
+        \vskip 1.0em \@plus\p@
+      }%
+    \else
+      \addpenalty\@secpenalty
+      \addvspace{1.0em \@plus\p@}%
+    \fi
+    \setlength\@tempdima{\@nameuse{scr at tso@#1 at numwidth}}%
+    \begingroup
+      \parindent \z@ \bidi at rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode
+      \bfseries
+      \advance\bidi at leftskip\@tempdima
+      \advance\bidi at leftskip\@nameuse{scr at tso@#1 at indent}%
+      \hskip -\dimexpr \bidi at leftskip-\@nameuse{scr at tso@#1 at indent}\relax
+      ##1%
+      \nobreak
+      \hfil \nobreak\hb at xt@\@pnumwidth{\hss ##2}%
+      \par
+      \penalty\@highpenalty
+    \endgroup
+  \fi
+}
 
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
+\bidi at undef\scr at dte@def at l@largetocline
+\bidi at undef\scr at dte@largetocline at init
+\DeclareTOCEntryStyle{largetocline}[{%
+  \DefineTOCEntryLengthOption{indent}%
+    {scr at tso@}{@indent}{entry indent}%
+  \@ifundefined{#1tocdepth}{%
+    \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
+      \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
+        \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
+          \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
+            \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
+              \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
+                \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
+                  \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
+                    \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
+                      \expandafter\let\csname #1tocdepth\expandafter\endcsname
+                      \csname #1numdepth\endcsname
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at indent}{%
+    \@ifundefined{scr@#1 at tocindent}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+          \ifstr{#1}{part}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+            \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+              \scr at ifundefinedorrelax{l at chapter}{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{0pt}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{3.8em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{7em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{10em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{3.8em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{7.0em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{10em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{12em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }{%
+      \@namedef{scr at tso@#1 at indent}{\@nameuse{scr@#1 at tocindent}}%
+    }%
+  }{}%
+}]{%
+  \ifnum \c at tocdepth >\numexpr \@nameuse{#1tocdepth}-\@ne\relax
+    \ifnum \@nameuse{#1tocdepth}<\@ne
+      \scr at ifundefinedorrelax{chapter}{%
+        \addpenalty\@secpenalty
+        \addvspace{2.25em \@plus\p@}%
+      }{%
+        \addpenalty{-\@highpenalty}%
+        \addvspace{2.25em \@plus\p@}%
+      }%
+    \else
+      \addpenalty\@secpenalty
+      \addvspace{2.25em \@plus\p@}%
+    \fi
+    \setlength\@tempdima{3em}%
+    \begingroup
+      \parindent \z@ \bidi at rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode
+      \large
+      \bfseries
+      \advance\bidi at leftskip\@nameuse{scr at tso@#1 at indent}%
+      ##1%
+      \hfil \nobreak\hb at xt@\@pnumwidth{\hss ##2}%
+      \par
+      \nobreak
+      \ifnum 0=
+        \scr at ifundefinedorrelax{chapter}{\if at compatibility 1\else 0\fi}{1}\relax
+        \global\@nobreaktrue
+        \everypar{\global\@nobreakfalse\everypar{}}%
+      \fi
+    \endgroup
+  \fi
+}
 
-\bidi at patchcmd{\scr at dte@def at l@largetocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
+\renewcommand*{\scr at dte@tocline}[3]{%
+  \ifnum \@nameuse{#1tocdepth}>\c at tocdepth
+  \else
+    \tocbasic at DependOnPenaltyAndTOCLevel{#1}%
+    \addvspace{\@nameuse{scr at tso@#1 at beforeskip}}\relax
+    {%
+      \bidi at leftskip \@nameuse{scr at tso@#1 at indent}\relax
+      \bidi at rightskip \@tocrmarg
+      \parfillskip -\bidi at rightskip
+      \@nameuse{Ifscr at tso@#1 at raggedpage}{%
+        \addtolength{\parfillskip}{\z@ \@plus 1fil}%
+      }{}%
+      \parindent \@nameuse{scr at tso@#1 at indent}\relax
+      \@afterindenttrue
+      \interlinepenalty\@M
+      \expandafter\ifx\csname ragged#1entry\endcsname\raggedright
+        \addtolength\bidi at rightskip\@flushglue
+      \else
+        \def\reserved at a{\raggedright}%
+        \expandafter\ifx\csname ragged#1entry\endcsname\reserved at a
+          \addtolength\bidi at rightskip\@flushglue
+        \else
+          \renewcommand\reserved at a{\raggedright}%
+          \expandafter\ifx\csname ragged#1entry\endcsname\reserved at a
+            \addtolength\bidi at rightskip\@flushglue
+          \fi
+        \fi
+      \fi
+      \leavevmode
+      \@tempdima \@nameuse{scr at tso@#1 at numwidth}\relax
+      \@nameuse{Ifscr at tso@#1 at dynnumwidth}{%
+        \scr at ifundefinedorrelax{scr at dte@#1 at lastmaxnumwidth}{}{%
+          \ifdim \@nameuse{scr at dte@#1 at lastmaxnumwidth}>\@tempdima
+            \@tempdima\@nameuse{scr at dte@#1 at lastmaxnumwidth}\relax
+          \fi
+        }%
+      }{}%
+      \advance\bidi at leftskip \@tempdima
+      \null\nobreak\hskip -\bidi at leftskip
+      {%
+        \usetocbasicnumberline
+        \let\scr at dte@numberline at box\numberline at box
+        \def\numberline at box##1{%
+          \sbox\scr at dte@tocline at numbox{\@nameuse{scr at tso@#1 at numberformat}{##1}}%
+          \global\scr at dte@tocline at numberwidth
+          \dimexpr\wd\scr at dte@tocline at numbox+\@nameuse{scr at tso@#1 at numsep}\relax
+          \ifdim \scr at dte@tocline at numberwidth
+                >\@nameuse{scr at dte@#1 at maxnumwidth}\relax
+            \global\@nameuse{scr at dte@#1 at maxnumwidth}\scr at dte@tocline at numberwidth
+          \fi
+          \@nameuse{Ifscr at tso@#1 at dynnumwidth}{}{%
+            \ifdim \scr at dte@tocline at numberwidth
+                  >\dimexpr \@nameuse{scr at tso@#1 at numwidth}%
+                           +\@nameuse{scr at tso@#1 at numsep}\relax
+              \PackageWarning{tocbasic%
+              }{%
+                number width of #1 toc entries should be
+                increased!\MessageBreak
+                Currently used number width =
+                \the\wd\scr at dte@tocline at numbox,\MessageBreak
+                Wanted number separation
+                \space\space\space =
+                \the\dimexpr\@nameuse{scr at tso@#1 at numsep}\relax,\MessageBreak
+                Reserved number width \space\space\space\space\space\space =
+                \the\dimexpr\@nameuse{scr at tso@#1 at numwidth}\relax%
+              }%
+            \fi
+          }%
+          \scr at dte@numberline at box{\@nameuse{scr at tso@#1 at numberformat}{##1}}%
+          \@nameuse{Ifscr at tso@#1 at breakafternumber}{%
+            {\parfillskip\@flushglue\par}\nobreak\hskip-\bidi at leftskip
+          }{}%
+        }%
+        \@nameuse{scr at tso@#1 at entryformat}{%
+          #2%
+          \nobreak
+          {%
+            \normalfont\normalsize\@nameuse{scr at tso@#1 at linefill}%
+            \nobreak
+            \@nameuse{scr at tso@#1 at pagenumberbox}{%
+              \@nameuse{scr at tso@#1 at pagenumberformat}{#3}%
+            }%
+          }%
+          \@par
+        }%
+      }%
+    }%
+    \tocbasic at SetPenaltyByTOCLevel{#1}%
+  \fi
+}
 
-\bidi at patchcmd{\scr at dte@def at l@largetocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
+\bidi at undef\scr at dte@def at l@tocline
+\bidi at undef\scr at dte@tocline at init
+\DeclareTOCEntryStyle{tocline}[{%
+  \DefineTOCEntryLengthOption{beforeskip}%
+    {scr at tso@}{@beforeskip}{vertical skip before the entry}%
+  \DefineTOCEntryIfOption{breakafternumber}%
+    {scr at tso@}{@breakafternumber}{line break after number flag}%
+  \DefineTOCEntryIfOption{dynnumwidth}%
+    {scr at tso@}{@dynnumwidth}{dynamic number width flag}%
+  \DefineTOCEntryCommandOption{entryformat}%
+    {scr at tso@}{@entryformat}[1]{entry format}%
+  \DefineTOCEntryCommandOption{entrynumberformat}%
+    {scr at tso@}{@numberformat}[1]{entry number format}%
+  \DefineTOCEntryCommandOption{linefill}[\TOCLineLeaderFill]%
+    {scr at tso@}{@linefill}{filling between text and page number}%
+  \DefineTOCEntryLengthOption{numsep}%
+    {scr at tso@}{@numsep}{entry number separation}%
+  \DefineTOCEntryCommandOption{onstarthigherlevel}%
+    {scr at tso@}{@LastTOCLevelWasLower}{start higher level entry hook}%
+  \DefineTOCEntryCommandOption{onstartlowerlevel}%
+    {scr at tso@}{@LastTOCLevelWasHigher}{start lower level entry hook}%
+  \DefineTOCEntryCommandOption{onstartsamelevel}%
+    {scr at tso@}{@LastTOCLevelWasSame}{start same level entry hook}%
+  \DefineTOCEntryCommandOption{pagenumberbox}%
+    {scr at tso@}{@pagenumberbox}[1]{page number box}%
+  \DefineTOCEntryCommandOption{pagenumberformat}%
+    {scr at tso@}{@pagenumberformat}[1]{page number format}%
+  \DefineTOCEntryOption{raggedentrytext}[true]{%
+    \FamilySetBool{KOMAarg}{raggedentrytext}{@tempswa}{##1}%
+    \ifx\FamilyKeyState\FamilyKeyStateProcessed
+      \if at tempswa
+        \expandafter\let\csname ragged\scr at dte@current entry\endcsname
+        \raggedright
+      \else
+        \expandafter\let\csname ragged\scr at dte@current entry\endcsname
+        \relax
+      \fi
+    \fi
+  }%
+  \DefineTOCEntryIfOption{raggedpagenumber}%
+    {scr at tso@}{@raggedpage}{page number ragged flag}%
+  \DefineTOCEntryLengthOption{indent}%
+    {scr at tso@}{@indent}{entry indent}%
+  \DefineTOCEntryLengthOption{numwidth}%
+    {scr at tso@}{@numwidth}{entry number width}%
+  \scr at ifundefinedorrelax{#1tocdepth}{%
+    \ifstrstart{#1}{sub}{%
+      \scr at ifundefinedorrelax{\scr at dte@nosub{#1}tocdepth}{}{%
+        \expandafter\edef\csname #1tocdepth\endcsname{%
+          \the\numexpr \noexpand\@nameuse{\scr at dte@nosub{#1}tocdepth}+\@ne\relax
+        }%
+      }%
+    }{}%
+  }{}%
+  \@ifundefined{#1tocdepth}{%
+    \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
+      \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
+        \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
+          \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
+            \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
+              \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
+                \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
+                  \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
+                    \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
+                      \expandafter\let\csname #1tocdepth\expandafter\endcsname
+                      \csname #1numdepth\endcsname
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }%
+  }{}%
+  \scr at ifundefinedorrelax{scr at tso@#1 at indent}{%
+    \@ifundefined{scr@#1 at tocindent}{%
+      \ifstrstart{#1}{sub}{%
+        \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@indent}{%
+          \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@numwidth}{}{%
+            \expandafter\edef\csname scr at tso@#1 at indent\endcsname{%
+              \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@numwidth}%
+              \relax
+            }%
+          }%
+        }{%
+          \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@numwidth}{%
+            \expandafter\edef\csname scr at tso@#1 at indent\endcsname{%
+              \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@indent}%
+              \relax
+            }%
+          }{%
+            \expandafter\edef\csname scr at tso@#1 at indent\endcsname{%
+              \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@indent}%
+                       +\noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@numwidth}%
+              \relax
+            }%
+          }%
+        }%
+      }{}%
+    }{%
+      \@namedef{scr at tso@#1 at indent}{\@nameuse{scr@#1 at tocindent}}%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at indent}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+          \ifstr{#1}{part}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+            \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+              \scr at ifundefinedorrelax{l at chapter}{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{0pt}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{3.8em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{7em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{10em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{3.8em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{7.0em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{10em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{12em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+  }{}%
+  \scr at ifundefinedorrelax{scr at tso@#1 at numwidth}{%
+    \scr at ifundefinedorrelax{scr@#1 at tocnumwidth}{%
+      \ifstrstart{#1}{sub}{%
+        \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@numwidth}{}{%
+          \expandafter\edef\csname scr at tso@#1 at numwidth\endcsname{%
+            \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@numwidth}%
+                     +.9em%
+            \relax
+          }%
+        }%
+      }{}%
+    }{%
+      \@namedef{scr at tso@#1 at numwidth}{\@nameuse{scr@#1 at tocnumwidth}}%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at numwidth}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+          \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+            \scr at ifundefinedorrelax{chapter}{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.2em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{4.1em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{5m}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{3.2em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.1em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{5em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{6em}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+  }{}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at LastTOCLevelWasLower\endcsname{\LastTOCLevelWasLower}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at LastTOCLevelWasSame\endcsname{\LastTOCLevelWasSame}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at LastTOCLevelWasHigher\endcsname{\LastTOCLevelWasHigher}%
+  \@ifundefined{scr at tso@#1 at beforeskip}{%
+    \ifstr{#1}{part}{%
+      \@namedef{scr at tso@#1 at beforeskip}{\glueexpr 2.25em \@plus\p@\relax}%
+    }{%
+      \ifstr{#1}{chapter}{%
+        \@namedef{scr at tso@#1 at beforeskip}{\glueexpr 1.0em \@plus\p@\relax}%
+      }{%
+        \ifstr{#1}{section}{%
+          \scr at ifundefinedorrelax{l at chapter}{%
+            \@namedef{scr at tso@#1 at beforeskip}{\glueexpr 1.0em \@plus\p@\relax}%
+          }{}%
+        }{}%
+      }%
+    }%
+    \expandafter\renewcommand\expandafter*%
+    \csname scr at tso@#1 at beforeskip\endcsname{\glueexpr \z@ plus .2\p@\relax}%
+  }{}%
+  \@ifundefined{scr at dte@#1 at maxnumwidth}{%
+    \expandafter\newlength\csname scr at dte@#1 at maxnumwidth\endcsname
+    \setlength{\@nameuse{scr at dte@#1 at maxnumwidth}}{\z@}%
+  }{}%
+  \renewcommand*{\scr at dte@donumwidth}{}%
+  \g at addto@macro{\scr at dte@donumwidth}{\do{#1}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at numsep\endcsname{.4em}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at numberformat\endcsname[1]{##1}%
+  \ifstr{#1}{part}{%
+    \expandafter\renewcommand%
+    \csname scr at tso@#1 at entryformat\endcsname[1]{\large\bfseries ##1}%
+  }{%
+    \ifstr{#1}{chapter}{%
+      \expandafter\renewcommand%
+      \csname scr at tso@#1 at entryformat\endcsname[1]{\bfseries ##1}%
+    }{%
+      \scr at ifundefinedorrelax{l at chapter}{%
+        \ifstr{#1}{section}{%
+          \expandafter\renewcommand%
+          \csname scr at tso@#1 at entryformat\endcsname[1]{\bfseries ##1}%
+        }{}%
+      }{}%
+      \expandafter\renewcommand%
+      \csname scr at tso@#1 at entryformat\endcsname[1]{##1}%
+    }%
+  }%
+  \expandafter\renewcommand
+  \csname Ifscr at tso@#1 at breakafternumber\endcsname[2]{##2}%
+  \@ifundefined{scr at tso@#1 at linefill}{%
+    \ifstr{#1}{part}{%
+      \@namedef{scr at tso@#1 at linefill}{\hfill}%
+    }{%
+      \ifstr{#1}{chapter}{%
+        \@namedef{scr at tso@#1 at linefill}{\hfill}%
+      }{%
+        \scr at ifundefinedorrelax{l at chapter}{%
+          \ifstr{#1}{section}{%
+            \@namedef{scr at tso@#1 at linefill}{\hfill}%
+          }{}
+        }{}
+        \expandafter\renewcommand%
+        \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+      }%
+    }%
+  }{}%
+  \expandafter\renewcommand\csname Ifscr at tso@#1 at raggedpage\endcsname[2]{##2}%
+  \ifstr{#1}{part}{%
+    \expandafter\renewcommand%
+    \csname scr at tso@#1 at pagenumberformat\endcsname[1]{\large\bfseries ##1}%
+  }{%
+    \expandafter\renewcommand%
+    \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+      {\normalfont\normalcolor ##1}}%
+  }%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberbox\endcsname[1]{%
+    \hb at xt@\@pnumwidth{\hfil ##1}}%
+  \expandafter\renewcommand\csname Ifscr at tso@#1 at dynnumwidth\endcsname[2]{##2}%
+}]{%
+  \scr at dte@tocline{#1}{##1}{##2}%
+}
 
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
 %    \end{macrocode}
 % \iffalse
 %</tocbasic-xetex-bidi.def>
@@ -21033,6 +21977,7 @@
 \if at bidi@csundef{@idxitem}{}{%
 \renewcommand\@idxitem{\par\hangindent \if at RTL-\fi40\p@}%
 }
+\@ifpackageloaded{tocbasic}{\input{tocbasic-xetex-bidi.def}}{}
 \@ifclassloaded{article}{\@ifclassloaded{svmult}{}{\input{article-xetex-bidi.def}}}{}
 \@ifclassloaded{extarticle}{\input{extarticle-xetex-bidi.def}}{}
 \@ifclassloaded{artikel1}{\input{artikel1-xetex-bidi.def}}{}
@@ -21160,7 +22105,6 @@
 \@ifpackageloaded{rotating}{\input{rotating-xetex-bidi.def}}{}
 \@ifpackageloaded{tabls}{\input{tabls-xetex-bidi.def}}{}
 \@ifpackageloaded{tabulary}{\input{tabulary-xetex-bidi.def}}{}
-\@ifpackageloaded{tocbasic}{\input{tocbasic-xetex-bidi.def}}{}
 \@ifpackageloaded{tocstyle}{\input{tocstyle-xetex-bidi.def}}{}
 \@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
 \@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/algorithm2e-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/amsart-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/amsbook-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/amsmath-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,7 +34,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{amsmath-xetex-bidi.def}[2014/09/04 v0.9 bidi adaptations for amsmath package for XeTeX engine]
+\ProvidesFile{amsmath-xetex-bidi.def}[2016/09/12 v1.0 bidi adaptations for amsmath package for XeTeX engine]
 \let\veqno=\eqno
 \iftagsleft@ \let\veqno=\leqno \fi
 \renewcommand{\numberwithin}[3][\arabic]{%
@@ -44,7 +44,7 @@
       \@xp\xdef\csname the#2\endcsname{%
         \@xp\@nx\csname the#3\endcsname \@nx\@SepMark\@nx#1{#2}}}}%
 }
-\def\tagform@#1{\maketag@@@{\if at Latin\else\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if at Latin\else\endR\fi}}
+\def\tagform@#1{\maketag@@@{\if at nonlatin\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if at nonlatin\endR\fi}}
 \endinput
 %%
 %% End of file `amsmath-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,11 +34,11 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{amstext-xetex-bidi.def}[2013/04/04 v0.1 bidi adaptations for amstext package for XeTeX engine]
+\ProvidesFile{amstext-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for amstext package for XeTeX engine]
 \def\textdef@#1#2#3{\hbox{{%
                     \everymath{#1}%
                     \let\f at size#2\selectfont
-                    \if at Latin\else\beginR\fi#3\if at Latin\else\endR\fi}}}
+                    \if at nonlatin\beginR\fi#3\if at nonlatin\endR\fi}}}
 \endinput
 %%
 %% End of file `amstext-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/animate-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/array-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/article-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/artikel1-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/artikel2-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/artikel3-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/arydshln-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidi-longtable.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidi-media9.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidi.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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\bididate{2016/09/12}
-\def\bidiversion{v19.9}
+\def\bididate{2016/09/14}
+\def\bidiversion{v20.0}
 \ProvidesPackage{bidi}[\bididate\space \bidiversion\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi at info{****************************************************^^J%
@@ -74,7 +74,7 @@
 \RequirePackage{xkeyval}
 \eqnewif{\if at RTLmain}{\if at rlmain}
 \eqnewif{\if at RTL}{\if at rl}
-\newif\if at Latin
+\newif\if at nonlatin
 \eqnewif{\if at RTLtab}{\if at tab@rl}
 \newif\if at RTLmarginpar
 \newif\if at LTRmarginpar
@@ -109,6 +109,12 @@
   \or
     \@RTLfalse
   \fi}
+\define at choicekey{bidi.sty}{script}[\bidi at tempa\bidi at tempb]{latin,nonlatin}[latin]{%
+  \ifcase\bidi at tempb\relax
+    \@nonlatinfalse
+  \or
+    \@nonlatintrue
+  \fi}
 \define at choicekey{bidi.sty}{rldocument}[\bidi at tempa\bidi at tempb]{on,off}[on]{%
   \ifcase\bidi at tempb\relax
     \@RTLtrue
@@ -160,7 +166,7 @@
 \bidi at digits=`\۰ \loop \XeTeXcharclass \bidi at digits \bidi at digits@charclass \ifnum\bidi at digits<`\۹ \advance\bidi at digits \@ne \repeat
 \XeTeXinterchartoks \bidi at digits@charclass  \bidi at dot@charclass = {\DigitsDotInterCharToks}
 \XeTeXinterchartoks \bidi at dot@charclass  \bidi at digits@charclass = {\DigitsDotInterCharToks}
-\newcommand*{\DigitsDotInterCharToks}{\if at Latin\else\char"200F \fi}
+\newcommand*{\DigitsDotInterCharToks}{\if at nonlatin\char"200F \fi}
 \endinput
 %%
 %% End of file `bidi.sty'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidi2in1.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidicode.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidiftnxtra.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidimoderncv.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidipoem.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/biditools.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/biditools.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/biditools.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/biditufte-book.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/biditufte-handout.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidituftefloat.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidituftegeneralstructure.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidituftehyperref.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidituftesidenote.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidituftetitle.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bidituftetoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/boek-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/boek3-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/book-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/bookest-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/breqn-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,7 +34,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{breqn-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for breqn package for XeTeX engine]
+\ProvidesFile{breqn-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for breqn package for XeTeX engine]
 \def\@dmath[#1]{\if at RTL\@RTLfalse\fi%
   \everydisplay\expandafter{\the\everydisplay \display at setup}%
   \if at noskipsec \leavevmode \fi
@@ -74,9 +74,9 @@
   \def\postmath{\unpenalty\eq at addpunct \penalty\intermath at penalty \dquad \@ignoretrue}%
 \ignorespaces
 }
-\def\eqnumform#1{\if at Latin\else\beginR\@RTLtrue\fi(#1\@@italiccorr)\if at Latin\else\endR\fi}
+\def\eqnumform#1{\if at nonlatin\beginR\@RTLtrue\fi(#1\@@italiccorr)\if at nonlatin\endR\fi}
 \renewenvironment{dsuspend}{%
-  \global\setbox\EQ at box\vbox\bgroup\if at Latin\else\@RTLtrue\fi \@parboxrestore
+  \global\setbox\EQ at box\vbox\bgroup\if at nonlatin\@RTLtrue\fi \@parboxrestore
     \parshape 1 \displayindent \displaywidth\relax
     \hsize=\columnwidth \noindent\ignorespaces
 }{%

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/caption-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/caption3-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/color-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/colortbl-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/combine-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/crop-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/cuted-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/cutwin-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/cvthemebidicasual.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/cvthemebidiclassic.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/dblfnote-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/draftwatermark-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/empheq-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/eso-pic-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/extarticle-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/extbook-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/extletter-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/extrafootnotefeatures-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/extreport-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/fancybox-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/fancyhdr-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/fix2col-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/fleqn-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/float-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/floatrow-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/flowfram-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/footnote-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/framed-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/ftnright-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/geometry-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/graphicx-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/hvfloat-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/hyperref-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/latex-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -693,6 +693,7 @@
 \if at bidi@csundef{@idxitem}{}{%
 \renewcommand\@idxitem{\par\hangindent \if at RTL-\fi40\p@}%
 }
+\@ifpackageloaded{tocbasic}{\input{tocbasic-xetex-bidi.def}}{}
 \@ifclassloaded{article}{\@ifclassloaded{svmult}{}{\input{article-xetex-bidi.def}}}{}
 \@ifclassloaded{extarticle}{\input{extarticle-xetex-bidi.def}}{}
 \@ifclassloaded{artikel1}{\input{artikel1-xetex-bidi.def}}{}
@@ -820,7 +821,6 @@
 \@ifpackageloaded{rotating}{\input{rotating-xetex-bidi.def}}{}
 \@ifpackageloaded{tabls}{\input{tabls-xetex-bidi.def}}{}
 \@ifpackageloaded{tabulary}{\input{tabulary-xetex-bidi.def}}{}
-\@ifpackageloaded{tocbasic}{\input{tocbasic-xetex-bidi.def}}{}
 \@ifpackageloaded{tocstyle}{\input{tocstyle-xetex-bidi.def}}{}
 \@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
 \@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/letter-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/lettrine-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/listings-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,7 +34,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{listings-xetex-bidi.def}[2015/08/23 v0.9 bidi adaptations for listings package for XeTeX engine]
+\ProvidesFile{listings-xetex-bidi.def}[2016/09/12 v1.0 bidi adaptations for listings package for XeTeX engine]
 \lst at Key{captiondirection}{textdirection}{%
     \lstKV at SwitchCases{#1}%
     {textdirection&\\%
@@ -41,6 +41,14 @@
      RTL&\chardef\bidi at lst@caption at direction\@ne\\%
      LTR&\chardef\bidi at lst@caption at direction\z@%
     }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
+
+\lst at Key{captionscript}{latin}{%
+    \lstKV at SwitchCases{#1}%
+    {%
+     latin&\chardef\bidi at lst@caption at script\@ne\\%
+     nonlatin&\chardef\bidi at lst@caption at script\z@%
+    }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
+
 \newcommand*{\bidi at lst@ensure at caption@direction}[2]{%
    \@ifundefined{bidi at lst@caption at direction}{}{%
     \ifnum\bidi at lst@caption at direction=\z@%
@@ -52,6 +60,13 @@
      \fi%
 }}
 \long\def\@bidi at lst@makecaption#1#2{%
+    \ifnum\bidi at lst@caption at script=\z@%
+        \@nonlatintrue%
+    \else%
+         \ifnum\bidi at lst@caption at script=\@ne%
+             \@nonlatinfalse%
+         \fi%
+     \fi%
    \vskip\abovecaptionskip
    \bidi at lst@ensure at caption@direction{\@RTLfalse}{\@RTLtrue}%
    \sbox\@tempboxa{%

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/longtable-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/mdframed-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/memoir-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/midfloat-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/minitoc-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/multicol-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/multienum-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/natbib-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/newfloat-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/ntheorem-hyper-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/ntheorem-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/overpic-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/pdfpages-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/pgfcorescopes.code-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/picinpar-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/plain-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/pstricks-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/quotchap-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/ragged2e-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/rapport1-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/rapport3-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/refrep-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/report-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/rotating-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/scrartcl-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,7 +34,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{scrartcl-xetex-bidi.def}[2016/09/11 v0.9 bidi adaptations for scrartcl class for XeTeX engine]
+\ProvidesFile{scrartcl-xetex-bidi.def}[2016/09/14 v1.0 bidi adaptations for scrartcl class for XeTeX engine]
 \newcommand{\scr at saved@LTRfootnotetext}{}
 \newcommand{\scr at saved@RTLfootnotetext}{}
 \let\scr at saved@footnotetext\@footnotetext
@@ -483,6 +483,105 @@
     }%
   \fi
 }
+
+\CloneTOCEntryStyle{tocline}{part}
+\TOCEntryStyleStartInitCode{part}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\hfill}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{2.25em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{section}
+\TOCEntryStyleStartInitCode{section}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{%
+    \if at sectionentrywithdots
+      \TOCLineLeaderFill\relax
+    \else
+      \hfill
+    \fi
+  }%
+  % F^^fcr die Eintr^^e4ge die Schrift von Element sectionentry verwenden.
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname{\usekomafont{sectionentry}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{\usekomafont{sectionentry}{\usekomafont{sectionentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{1.0em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{subsection}
+\TOCEntryStyleStartInitCode{subsection}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+}
+
+\CloneTOCEntryStyle{subsection}{default}
+
+\DeclareSectionCommand[%
+  style=part,%
+  level=\z@,%
+  tocstyle=part,%
+  toclevel=\m at ne,%
+  tocindent=\z@,%
+  tocnumwidth=2em%
+]{part}
+\DeclareSectionCommand[%
+  style=section,%
+  level=1,%
+  indent=\z@,%
+  beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
+  afterskip=2.3ex \@plus.2ex,%
+  tocstyle=section,%
+  tocindent=0pt,%
+  tocnumwidth=1.5em%
+]{section}
+\DeclareSectionCommand[%
+  style=section,%
+  level=2,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=subsection,%
+  tocindent=1.5em,%
+  tocnumwidth=2.3em%
+]{subsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=3,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=subsection,%
+  tocindent=3.8em,%
+  tocnumwidth=3.2em%
+]{subsubsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=4,%
+  indent=\z@,%
+  beforeskip=3.25ex \@plus1ex \@minus.2ex,%
+  afterskip=-1em,%
+  tocstyle=subsection,%
+  tocindent=7.0em,%
+  tocnumwidth=4.1em%
+]{paragraph}
+\DeclareSectionCommand[%
+  style=section,%
+  level=5,%
+  indent=\scr at parindent,%
+  beforeskip=3.25ex \@plus1ex \@minus .2ex,%
+  afterskip=-1em,%
+  tocstyle=subsection,%
+  tocindent=10em,%
+  tocnumwidth=5em%
+]{subparagraph}
 \endinput
 %%
 %% End of file `scrartcl-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,7 +34,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{scrbook-xetex-bidi.def}[2016/09/11 v0.9 bidi adaptations for scrbook class for XeTeX engine]
+\ProvidesFile{scrbook-xetex-bidi.def}[2016/09/14 v1.0 bidi adaptations for scrbook class for XeTeX engine]
 \newcommand{\scr at saved@LTRfootnotetext}{}
 \newcommand{\scr at saved@RTLfootnotetext}{}
 \let\scr at saved@footnotetext\@footnotetext
@@ -514,6 +514,115 @@
     }%
   \fi
 }
+
+\CloneTOCEntryStyle{tocline}{part}
+\TOCEntryStyleStartInitCode{part}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\hfill}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{2.25em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{chapter}
+\TOCEntryStyleStartInitCode{chapter}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{%
+    \if at chapterentrywithdots
+      \TOCLineLeaderFill\relax
+    \else
+      \hfill
+    \fi
+  }%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname{\usekomafont{chapterentry}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{1.0em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{section}
+\TOCEntryStyleStartInitCode{section}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+}
+
+\CloneTOCEntryStyle{section}{default}
+
+\DeclareSectionCommand[%
+  style=part,%
+  level=\m at ne,%
+  pagestyle=plain,%
+  tocstyle=part,%
+  toclevel=\m at ne,%
+  tocindent=\z@,%
+  tocnumwidth=2em%
+]{part}
+\DeclareSectionCommand[%
+  style=chapter,%
+  level=\z@,%
+  pagestyle=plain,%
+  tocstyle=chapter,%
+  tocindent=\z@,%
+  tocnumwidth=1.5em%
+]{chapter}
+\DeclareSectionCommand[%
+  style=section,%
+  level=1,%
+  indent=\z@,%
+  beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
+  afterskip=2.3ex \@plus.2ex,%
+  tocstyle=section,%
+  tocindent=1.5em,%
+  tocnumwidth=2.3em%
+]{section}
+\DeclareSectionCommand[%
+  style=section,%
+  level=2,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=3.8em,%
+  tocnumwidth=3.2em%
+]{subsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=3,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=7.0em,%
+  tocnumwidth=4.1em%
+]{subsubsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=4,%
+  indent=\z@,%
+  beforeskip=3.25ex \@plus1ex \@minus.2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=10em,%
+  tocnumwidth=5em%
+]{paragraph}
+\DeclareSectionCommand[%
+  style=section,%
+  level=5,%
+  indent=\scr at parindent,%
+  beforeskip=3.25ex \@plus1ex \@minus .2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=12em,%
+  tocnumwidth=6em%
+]{subparagraph}
+
 \endinput
 %%
 %% End of file `scrbook-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/scrreprt-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,7 +34,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{scrreprt-xetex-bidi.def}[2016/09/11 v0.9 bidi adaptations for scrreprt class for XeTeX engine]
+\ProvidesFile{scrreprt-xetex-bidi.def}[2016/09/14 v1.0 bidi adaptations for scrreprt class for XeTeX engine]
 \newcommand{\scr at saved@LTRfootnotetext}{}
 \newcommand{\scr at saved@RTLfootnotetext}{}
 \let\scr at saved@footnotetext\@footnotetext
@@ -498,6 +498,115 @@
     }%
   \fi
 }
+
+\CloneTOCEntryStyle{tocline}{part}
+\TOCEntryStyleStartInitCode{part}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\hfill}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{2.25em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{chapter}
+\TOCEntryStyleStartInitCode{chapter}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{%
+    \if at chapterentrywithdots
+      \TOCLineLeaderFill\relax
+    \else
+      \hfill
+    \fi
+  }%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at entryformat\endcsname{\usekomafont{chapterentry}}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+    \usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at beforeskip\endcsname{1.0em \@plus\p@}%
+}
+
+\CloneTOCEntryStyle{tocline}{section}
+\TOCEntryStyleStartInitCode{section}{%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+}
+
+\CloneTOCEntryStyle{section}{default}
+
+\DeclareSectionCommand[%
+  style=part,%
+  level=\m at ne,%
+  pagestyle=plain,%
+  tocstyle=part,%
+  toclevel=\m at ne,%
+  tocindent=\z@,%
+  tocnumwidth=2em%
+]{part}
+\DeclareSectionCommand[%
+  style=chapter,%
+  level=\z@,%
+  pagestyle=plain,%
+  tocstyle=chapter,%
+  tocindent=\z@,%
+  tocnumwidth=1.5em%
+]{chapter}
+\DeclareSectionCommand[%
+  style=section,%
+  level=1,%
+  indent=\z@,%
+  beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
+  afterskip=2.3ex \@plus.2ex,%
+  tocstyle=section,%
+  tocindent=1.5em,%
+  tocnumwidth=2.3em%
+]{section}
+\DeclareSectionCommand[%
+  style=section,%
+  level=2,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=3.8em,%
+  tocnumwidth=3.2em%
+]{subsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=3,%
+  indent=\z@,%
+  beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
+  afterskip=1.5ex \@plus .2ex,%
+  tocstyle=section,%
+  tocindent=7.0em,%
+  tocnumwidth=4.1em%
+]{subsubsection}
+\DeclareSectionCommand[%
+  style=section,%
+  level=4,%
+  indent=\z@,%
+  beforeskip=3.25ex \@plus1ex \@minus.2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=10em,%
+  tocnumwidth=5em%
+]{paragraph}
+\DeclareSectionCommand[%
+  style=section,%
+  level=5,%
+  indent=\scr at parindent,%
+  beforeskip=3.25ex \@plus1ex \@minus .2ex,%
+  afterskip=-1em,%
+  tocstyle=section,%
+  tocindent=12em,%
+  tocnumwidth=6em%
+]{subparagraph}
+
 \endinput
 %%
 %% End of file `scrreprt-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/soul-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/stabular-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/subfigure-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tabls-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tabularx-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tabulary-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tc-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/titlesec-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/titletoc-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tocbasic-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tocbasic-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocbasic-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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
@@ -34,57 +34,661 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{tocbasic-xetex-bidi.def}[2016/09/11 v0.1 bidi adaptations for tocbasic package for XeTeX engine]
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
+\ProvidesFile{tocbasic-xetex-bidi.def}[2016/09/14 v0.2 bidi adaptations for tocbasic package for XeTeX engine]
+\bidi at undef\scr at dte@def at l@undottedtocline
+\bidi at undef\scr at dte@undottedtocline at init
+\DeclareTOCEntryStyle{undottedtocline}[{%
+  \DefineTOCEntryLengthOption{indent}%
+    {scr at tso@}{@indent}{entry indent}%
+  \DefineTOCEntryLengthOption{numwidth}%
+    {scr at tso@}{@numwidth}{entry number width}%
+  \@ifundefined{#1tocdepth}{%
+    \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
+      \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
+        \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
+          \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
+            \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
+              \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
+                \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
+                  \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
+                    \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
+                      \expandafter\let\csname #1tocdepth\expandafter\endcsname
+                      \csname #1numdepth\endcsname
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at indent}{%
+    \@ifundefined{scr@#1 at tocindent}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+          \ifstr{#1}{part}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+            \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+              \scr at ifundefinedorrelax{l at chapter}{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{0pt}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{3.8em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{7em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{10em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{3.8em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{7.0em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{10em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{12em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }{%
+      \@namedef{scr at tso@#1 at indent}{\@nameuse{scr@#1 at tocindent}}%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at numwidth}{%
+    \@ifundefined{scr@#1 at tocnumwidth}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+          \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+            \scr at ifundefinedorrelax{chapter}{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.2em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{4.1em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{5m}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{3.2em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.1em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{5em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{6em}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }{%
+      \@namedef{scr at tso@#1 at numwidth}{\@nameuse{scr@#1 at tocnumwidth}}%
+    }%
+  }{}%
+}]{%
+  \ifnum \c at tocdepth >\numexpr \@nameuse{#1tocdepth}-\@ne\relax
+    \ifnum \@nameuse{#1tocdepth}<\@ne
+      \scr at ifundefinedorrelax{chapter}{%
+        \addpenalty\@secpenalty
+        \addvspace{1.0em \@plus\p@}%
+      }{%
+        \addpenalty{-\@highpenalty}%
+        \vskip 1.0em \@plus\p@
+      }%
+    \else
+      \addpenalty\@secpenalty
+      \addvspace{1.0em \@plus\p@}%
+    \fi
+    \setlength\@tempdima{\@nameuse{scr at tso@#1 at numwidth}}%
+    \begingroup
+      \parindent \z@ \bidi at rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode
+      \bfseries
+      \advance\bidi at leftskip\@tempdima
+      \advance\bidi at leftskip\@nameuse{scr at tso@#1 at indent}%
+      \hskip -\dimexpr \bidi at leftskip-\@nameuse{scr at tso@#1 at indent}\relax
+      ##1%
+      \nobreak
+      \hfil \nobreak\hb at xt@\@pnumwidth{\hss ##2}%
+      \par
+      \penalty\@highpenalty
+    \endgroup
+  \fi
+}
 
-\bidi at patchcmd{\scr at dte@def at l@undottedtocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
+\bidi at undef\scr at dte@def at l@largetocline
+\bidi at undef\scr at dte@largetocline at init
+\DeclareTOCEntryStyle{largetocline}[{%
+  \DefineTOCEntryLengthOption{indent}%
+    {scr at tso@}{@indent}{entry indent}%
+  \@ifundefined{#1tocdepth}{%
+    \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
+      \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
+        \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
+          \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
+            \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
+              \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
+                \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
+                  \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
+                    \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
+                      \expandafter\let\csname #1tocdepth\expandafter\endcsname
+                      \csname #1numdepth\endcsname
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at indent}{%
+    \@ifundefined{scr@#1 at tocindent}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+          \ifstr{#1}{part}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+            \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+              \scr at ifundefinedorrelax{l at chapter}{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{0pt}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{3.8em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{7em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{10em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{3.8em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{7.0em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{10em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{12em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }{%
+      \@namedef{scr at tso@#1 at indent}{\@nameuse{scr@#1 at tocindent}}%
+    }%
+  }{}%
+}]{%
+  \ifnum \c at tocdepth >\numexpr \@nameuse{#1tocdepth}-\@ne\relax
+    \ifnum \@nameuse{#1tocdepth}<\@ne
+      \scr at ifundefinedorrelax{chapter}{%
+        \addpenalty\@secpenalty
+        \addvspace{2.25em \@plus\p@}%
+      }{%
+        \addpenalty{-\@highpenalty}%
+        \addvspace{2.25em \@plus\p@}%
+      }%
+    \else
+      \addpenalty\@secpenalty
+      \addvspace{2.25em \@plus\p@}%
+    \fi
+    \setlength\@tempdima{3em}%
+    \begingroup
+      \parindent \z@ \bidi at rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode
+      \large
+      \bfseries
+      \advance\bidi at leftskip\@nameuse{scr at tso@#1 at indent}%
+      ##1%
+      \hfil \nobreak\hb at xt@\@pnumwidth{\hss ##2}%
+      \par
+      \nobreak
+      \ifnum 0=
+        \scr at ifundefinedorrelax{chapter}{\if at compatibility 1\else 0\fi}{1}\relax
+        \global\@nobreaktrue
+        \everypar{\global\@nobreakfalse\everypar{}}%
+      \fi
+    \endgroup
+  \fi
+}
 
-\bidi at patchcmd{\scr at dte@def at l@largetocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
+\renewcommand*{\scr at dte@tocline}[3]{%
+  \ifnum \@nameuse{#1tocdepth}>\c at tocdepth
+  \else
+    \tocbasic at DependOnPenaltyAndTOCLevel{#1}%
+    \addvspace{\@nameuse{scr at tso@#1 at beforeskip}}\relax
+    {%
+      \bidi at leftskip \@nameuse{scr at tso@#1 at indent}\relax
+      \bidi at rightskip \@tocrmarg
+      \parfillskip -\bidi at rightskip
+      \@nameuse{Ifscr at tso@#1 at raggedpage}{%
+        \addtolength{\parfillskip}{\z@ \@plus 1fil}%
+      }{}%
+      \parindent \@nameuse{scr at tso@#1 at indent}\relax
+      \@afterindenttrue
+      \interlinepenalty\@M
+      \expandafter\ifx\csname ragged#1entry\endcsname\raggedright
+        \addtolength\bidi at rightskip\@flushglue
+      \else
+        \def\reserved at a{\raggedright}%
+        \expandafter\ifx\csname ragged#1entry\endcsname\reserved at a
+          \addtolength\bidi at rightskip\@flushglue
+        \else
+          \renewcommand\reserved at a{\raggedright}%
+          \expandafter\ifx\csname ragged#1entry\endcsname\reserved at a
+            \addtolength\bidi at rightskip\@flushglue
+          \fi
+        \fi
+      \fi
+      \leavevmode
+      \@tempdima \@nameuse{scr at tso@#1 at numwidth}\relax
+      \@nameuse{Ifscr at tso@#1 at dynnumwidth}{%
+        \scr at ifundefinedorrelax{scr at dte@#1 at lastmaxnumwidth}{}{%
+          \ifdim \@nameuse{scr at dte@#1 at lastmaxnumwidth}>\@tempdima
+            \@tempdima\@nameuse{scr at dte@#1 at lastmaxnumwidth}\relax
+          \fi
+        }%
+      }{}%
+      \advance\bidi at leftskip \@tempdima
+      \null\nobreak\hskip -\bidi at leftskip
+      {%
+        \usetocbasicnumberline
+        \let\scr at dte@numberline at box\numberline at box
+        \def\numberline at box##1{%
+          \sbox\scr at dte@tocline at numbox{\@nameuse{scr at tso@#1 at numberformat}{##1}}%
+          \global\scr at dte@tocline at numberwidth
+          \dimexpr\wd\scr at dte@tocline at numbox+\@nameuse{scr at tso@#1 at numsep}\relax
+          \ifdim \scr at dte@tocline at numberwidth
+                >\@nameuse{scr at dte@#1 at maxnumwidth}\relax
+            \global\@nameuse{scr at dte@#1 at maxnumwidth}\scr at dte@tocline at numberwidth
+          \fi
+          \@nameuse{Ifscr at tso@#1 at dynnumwidth}{}{%
+            \ifdim \scr at dte@tocline at numberwidth
+                  >\dimexpr \@nameuse{scr at tso@#1 at numwidth}%
+                           +\@nameuse{scr at tso@#1 at numsep}\relax
+              \PackageWarning{tocbasic%
+              }{%
+                number width of #1 toc entries should be
+                increased!\MessageBreak
+                Currently used number width =
+                \the\wd\scr at dte@tocline at numbox,\MessageBreak
+                Wanted number separation
+                \space\space\space =
+                \the\dimexpr\@nameuse{scr at tso@#1 at numsep}\relax,\MessageBreak
+                Reserved number width \space\space\space\space\space\space =
+                \the\dimexpr\@nameuse{scr at tso@#1 at numwidth}\relax%
+              }%
+            \fi
+          }%
+          \scr at dte@numberline at box{\@nameuse{scr at tso@#1 at numberformat}{##1}}%
+          \@nameuse{Ifscr at tso@#1 at breakafternumber}{%
+            {\parfillskip\@flushglue\par}\nobreak\hskip-\bidi at leftskip
+          }{}%
+        }%
+        \@nameuse{scr at tso@#1 at entryformat}{%
+          #2%
+          \nobreak
+          {%
+            \normalfont\normalsize\@nameuse{scr at tso@#1 at linefill}%
+            \nobreak
+            \@nameuse{scr at tso@#1 at pagenumberbox}{%
+              \@nameuse{scr at tso@#1 at pagenumberformat}{#3}%
+            }%
+          }%
+          \@par
+        }%
+      }%
+    }%
+    \tocbasic at SetPenaltyByTOCLevel{#1}%
+  \fi
+}
 
-\bidi at patchcmd{\scr at dte@def at l@largetocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
+\bidi at undef\scr at dte@def at l@tocline
+\bidi at undef\scr at dte@tocline at init
+\DeclareTOCEntryStyle{tocline}[{%
+  \DefineTOCEntryLengthOption{beforeskip}%
+    {scr at tso@}{@beforeskip}{vertical skip before the entry}%
+  \DefineTOCEntryIfOption{breakafternumber}%
+    {scr at tso@}{@breakafternumber}{line break after number flag}%
+  \DefineTOCEntryIfOption{dynnumwidth}%
+    {scr at tso@}{@dynnumwidth}{dynamic number width flag}%
+  \DefineTOCEntryCommandOption{entryformat}%
+    {scr at tso@}{@entryformat}[1]{entry format}%
+  \DefineTOCEntryCommandOption{entrynumberformat}%
+    {scr at tso@}{@numberformat}[1]{entry number format}%
+  \DefineTOCEntryCommandOption{linefill}[\TOCLineLeaderFill]%
+    {scr at tso@}{@linefill}{filling between text and page number}%
+  \DefineTOCEntryLengthOption{numsep}%
+    {scr at tso@}{@numsep}{entry number separation}%
+  \DefineTOCEntryCommandOption{onstarthigherlevel}%
+    {scr at tso@}{@LastTOCLevelWasLower}{start higher level entry hook}%
+  \DefineTOCEntryCommandOption{onstartlowerlevel}%
+    {scr at tso@}{@LastTOCLevelWasHigher}{start lower level entry hook}%
+  \DefineTOCEntryCommandOption{onstartsamelevel}%
+    {scr at tso@}{@LastTOCLevelWasSame}{start same level entry hook}%
+  \DefineTOCEntryCommandOption{pagenumberbox}%
+    {scr at tso@}{@pagenumberbox}[1]{page number box}%
+  \DefineTOCEntryCommandOption{pagenumberformat}%
+    {scr at tso@}{@pagenumberformat}[1]{page number format}%
+  \DefineTOCEntryOption{raggedentrytext}[true]{%
+    \FamilySetBool{KOMAarg}{raggedentrytext}{@tempswa}{##1}%
+    \ifx\FamilyKeyState\FamilyKeyStateProcessed
+      \if at tempswa
+        \expandafter\let\csname ragged\scr at dte@current entry\endcsname
+        \raggedright
+      \else
+        \expandafter\let\csname ragged\scr at dte@current entry\endcsname
+        \relax
+      \fi
+    \fi
+  }%
+  \DefineTOCEntryIfOption{raggedpagenumber}%
+    {scr at tso@}{@raggedpage}{page number ragged flag}%
+  \DefineTOCEntryLengthOption{indent}%
+    {scr at tso@}{@indent}{entry indent}%
+  \DefineTOCEntryLengthOption{numwidth}%
+    {scr at tso@}{@numwidth}{entry number width}%
+  \scr at ifundefinedorrelax{#1tocdepth}{%
+    \ifstrstart{#1}{sub}{%
+      \scr at ifundefinedorrelax{\scr at dte@nosub{#1}tocdepth}{}{%
+        \expandafter\edef\csname #1tocdepth\endcsname{%
+          \the\numexpr \noexpand\@nameuse{\scr at dte@nosub{#1}tocdepth}+\@ne\relax
+        }%
+      }%
+    }{}%
+  }{}%
+  \@ifundefined{#1tocdepth}{%
+    \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
+      \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
+        \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
+          \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
+            \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
+              \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
+                \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
+                  \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
+                    \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
+                      \expandafter\let\csname #1tocdepth\expandafter\endcsname
+                      \csname #1numdepth\endcsname
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+    }%
+  }{}%
+  \scr at ifundefinedorrelax{scr at tso@#1 at indent}{%
+    \@ifundefined{scr@#1 at tocindent}{%
+      \ifstrstart{#1}{sub}{%
+        \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@indent}{%
+          \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@numwidth}{}{%
+            \expandafter\edef\csname scr at tso@#1 at indent\endcsname{%
+              \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@numwidth}%
+              \relax
+            }%
+          }%
+        }{%
+          \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@numwidth}{%
+            \expandafter\edef\csname scr at tso@#1 at indent\endcsname{%
+              \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@indent}%
+              \relax
+            }%
+          }{%
+            \expandafter\edef\csname scr at tso@#1 at indent\endcsname{%
+              \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@indent}%
+                       +\noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@numwidth}%
+              \relax
+            }%
+          }%
+        }%
+      }{}%
+    }{%
+      \@namedef{scr at tso@#1 at indent}{\@nameuse{scr@#1 at tocindent}}%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at indent}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+          \ifstr{#1}{part}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+            \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at indent}{0em}}{%
+              \scr at ifundefinedorrelax{l at chapter}{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{0pt}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{3.8em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{7em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{10em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }{%
+                \ifstr{#1}{section}{\@namedef{scr at tso@#1 at indent}{1.5em}}{%
+                  \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at indent}{3.8em}}{%
+                    \ifstr{#1}{subsubsection}{%
+                      \@namedef{scr at tso@#1 at indent}{7.0em}%
+                    }{%
+                      \ifstr{#1}{paragraph}{%
+                        \@namedef{scr at tso@#1 at indent}{10em}%
+                      }{%
+                        \ifstr{#1}{subparagraph}{%
+                          \@namedef{scr at tso@#1 at indent}{12em}%
+                        }{%
+                        }%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+  }{}%
+  \scr at ifundefinedorrelax{scr at tso@#1 at numwidth}{%
+    \scr at ifundefinedorrelax{scr@#1 at tocnumwidth}{%
+      \ifstrstart{#1}{sub}{%
+        \scr at ifundefinedorrelax{scr at tso@\scr at dte@nosub{#1}@numwidth}{}{%
+          \expandafter\edef\csname scr at tso@#1 at numwidth\endcsname{%
+            \glueexpr \noexpand\@nameuse{scr at tso@\scr at dte@nosub{#1}@numwidth}%
+                     +.9em%
+            \relax
+          }%
+        }%
+      }{}%
+    }{%
+      \@namedef{scr at tso@#1 at numwidth}{\@nameuse{scr@#1 at tocnumwidth}}%
+    }%
+  }{}%
+  \@ifundefined{scr at tso@#1 at numwidth}{%
+      \ifstr{#1}{figure}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+        \ifstr{#1}{table}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+          \ifstr{#1}{chapter}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+            \scr at ifundefinedorrelax{chapter}{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{1.5em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.2em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{4.1em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{5m}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }{%
+              \ifstr{#1}{section}{\@namedef{scr at tso@#1 at numwidth}{2.3em}}{%
+                \ifstr{#1}{subsection}{\@namedef{scr at tso@#1 at numwidth}{3.2em}}{%
+                  \ifstr{#1}{subsubsection}{%
+                    \@namedef{scr at tso@#1 at numwidth}{3.1em}%
+                  }{%
+                    \ifstr{#1}{paragraph}{%
+                      \@namedef{scr at tso@#1 at numwidth}{5em}%
+                    }{%
+                      \ifstr{#1}{subparagraph}{%
+                        \@namedef{scr at tso@#1 at numwidth}{6em}%
+                      }{%
+                      }%
+                    }%
+                  }%
+                }%
+              }%
+            }%
+          }%
+        }%
+      }%
+  }{}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at LastTOCLevelWasLower\endcsname{\LastTOCLevelWasLower}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at LastTOCLevelWasSame\endcsname{\LastTOCLevelWasSame}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at LastTOCLevelWasHigher\endcsname{\LastTOCLevelWasHigher}%
+  \@ifundefined{scr at tso@#1 at beforeskip}{%
+    \ifstr{#1}{part}{%
+      \@namedef{scr at tso@#1 at beforeskip}{\glueexpr 2.25em \@plus\p@\relax}%
+    }{%
+      \ifstr{#1}{chapter}{%
+        \@namedef{scr at tso@#1 at beforeskip}{\glueexpr 1.0em \@plus\p@\relax}%
+      }{%
+        \ifstr{#1}{section}{%
+          \scr at ifundefinedorrelax{l at chapter}{%
+            \@namedef{scr at tso@#1 at beforeskip}{\glueexpr 1.0em \@plus\p@\relax}%
+          }{}%
+        }{}%
+      }%
+    }%
+    \expandafter\renewcommand\expandafter*%
+    \csname scr at tso@#1 at beforeskip\endcsname{\glueexpr \z@ plus .2\p@\relax}%
+  }{}%
+  \@ifundefined{scr at dte@#1 at maxnumwidth}{%
+    \expandafter\newlength\csname scr at dte@#1 at maxnumwidth\endcsname
+    \setlength{\@nameuse{scr at dte@#1 at maxnumwidth}}{\z@}%
+  }{}%
+  \renewcommand*{\scr at dte@donumwidth}{}%
+  \g at addto@macro{\scr at dte@donumwidth}{\do{#1}}%
+  \expandafter\renewcommand\expandafter*%
+  \csname scr at tso@#1 at numsep\endcsname{.4em}%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at numberformat\endcsname[1]{##1}%
+  \ifstr{#1}{part}{%
+    \expandafter\renewcommand%
+    \csname scr at tso@#1 at entryformat\endcsname[1]{\large\bfseries ##1}%
+  }{%
+    \ifstr{#1}{chapter}{%
+      \expandafter\renewcommand%
+      \csname scr at tso@#1 at entryformat\endcsname[1]{\bfseries ##1}%
+    }{%
+      \scr at ifundefinedorrelax{l at chapter}{%
+        \ifstr{#1}{section}{%
+          \expandafter\renewcommand%
+          \csname scr at tso@#1 at entryformat\endcsname[1]{\bfseries ##1}%
+        }{}%
+      }{}%
+      \expandafter\renewcommand%
+      \csname scr at tso@#1 at entryformat\endcsname[1]{##1}%
+    }%
+  }%
+  \expandafter\renewcommand
+  \csname Ifscr at tso@#1 at breakafternumber\endcsname[2]{##2}%
+  \@ifundefined{scr at tso@#1 at linefill}{%
+    \ifstr{#1}{part}{%
+      \@namedef{scr at tso@#1 at linefill}{\hfill}%
+    }{%
+      \ifstr{#1}{chapter}{%
+        \@namedef{scr at tso@#1 at linefill}{\hfill}%
+      }{%
+        \scr at ifundefinedorrelax{l at chapter}{%
+          \ifstr{#1}{section}{%
+            \@namedef{scr at tso@#1 at linefill}{\hfill}%
+          }{}
+        }{}
+        \expandafter\renewcommand%
+        \csname scr at tso@#1 at linefill\endcsname{\TOCLineLeaderFill\relax}%
+      }%
+    }%
+  }{}%
+  \expandafter\renewcommand\csname Ifscr at tso@#1 at raggedpage\endcsname[2]{##2}%
+  \ifstr{#1}{part}{%
+    \expandafter\renewcommand%
+    \csname scr at tso@#1 at pagenumberformat\endcsname[1]{\large\bfseries ##1}%
+  }{%
+    \expandafter\renewcommand%
+    \csname scr at tso@#1 at pagenumberformat\endcsname[1]{%
+      {\normalfont\normalcolor ##1}}%
+  }%
+  \expandafter\renewcommand%
+  \csname scr at tso@#1 at pagenumberbox\endcsname[1]{%
+    \hb at xt@\@pnumwidth{\hfil ##1}}%
+  \expandafter\renewcommand\csname Ifscr at tso@#1 at dynnumwidth\endcsname[2]{##2}%
+}]{%
+  \scr at dte@tocline{#1}{##1}{##2}%
+}
 
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\leftskip}{\bidi at leftskip}
-{}{}
-
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
-\bidi at patchcmd{\scr at dte@tocline}
-{\rightskip}{\bidi at rightskip}
-{}{}
 \endinput
 %%
 %% End of file `tocbasic-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tocloft-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/tocstyle-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/todonotes-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/wrapfig-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/xcolor-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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/bidi/xltxtra-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def	2016-09-14 21:08:37 UTC (rev 42059)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def	2016-09-14 21:11:05 UTC (rev 42060)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{46470}
+%% \CheckSum{47498}
 %% \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



More information about the tex-live-commits mailing list