texlive[42611] Master/texmf-dist: bidi (30nov16)

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


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

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/source/xelatex/bidi/bidi.ins
    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-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

Removed Paths:
-------------
    trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty

Modified: trunk/Master/texmf-dist/doc/xelatex/bidi/README
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/bidi/README	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/doc/xelatex/bidi/README	2016-11-30 22:25:34 UTC (rev 42611)
@@ -1,6 +1,6 @@
 ___________________
 The bidi package
-v20.5
+v20.6
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -12,12 +12,12 @@
 or ask for any new features, or suggest any improvements, or ask any questions
 about the package, then please do not send any direct email to me; I will not
 answer any direct email. Instead please use the issue tracker:
-  <https://github.com/vafa/bidi/issues>
+  <https://github.com/tex-xet/bidi/issues>
 In doing so, please always explain your issue well enough, always include
 a minimal working example showing the issue, and always choose the appropriate
 label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
 
-Current version release date: 2016/11/27
+Current version release date: 2016/11/30
 
 ___________________
 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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/source/xelatex/bidi/bidi.dtx	2016-11-30 22:25:34 UTC (rev 42611)
@@ -5,7 +5,7 @@
 %<*readme>
 ___________________
 The bidi package
-v20.5
+v20.6
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -19,13 +19,13 @@
 or ask for any new features, or suggest any improvements, or ask any questions
 about the package, then please do not send any direct email to me; I will not 
 answer any direct email. Instead please use the issue tracker:
-  <https://github.com/vafa/bidi/issues>
+  <https://github.com/tex-xet/bidi/issues>
 In doing so, please always explain your issue well enough, always include
 a minimal working example showing the issue, and always choose the appropriate
 label for your query (i.e. if you are reporting any bugs, choose `Bug' label). 
 
 
-Current version release date: 2016/11/27
+Current version release date: 2016/11/30
 
 ___________________
 Vafa Khalighi
@@ -80,7 +80,6 @@
 \generate{\file{bidi2in1.sty}{\from{\jobname.dtx}{table,bidi2in1.sty}}}
 \generate{\file{bidicode.sty}{\from{\jobname.dtx}{table,bidicode.sty}}}
 \generate{\file{bidiftnxtra.sty}{\from{\jobname.dtx}{table,bidiftnxtra.sty}}}
-\generate{\file{bidi-longtable.sty}{\from{\jobname.dtx}{table,bidi-longtable.sty}}}
 \generate{\file{bidimoderncv.cls}{\from{\jobname.dtx}{table,bidimoderncv.cls}}}
 \generate{\file{biditools.sty}{\from{\jobname.dtx}{table,biditools.sty}}}
 \generate{\file{bidituftefloat.sty}{\from{\jobname.dtx}{table,bidituftefloat.sty}}}
@@ -322,7 +321,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 20.5}}
+%\large Documentation for \textcolor{blue!65!black}{version 20.6}}
 % \author{Vafa Khalighi\\
 %  \url{persian-tex at tug.org}}
 %\setcounter{page}{0}
@@ -333,7 +332,7 @@
 %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
 %
 %\Large
-%Documentation for \textcolor{blue!65!black}{version 20.5}}
+%Documentation for \textcolor{blue!65!black}{version 20.6}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -346,7 +345,7 @@
 %answer any direct email. Instead please use the issue tracker:
 %
 %\medskip
-%  \centerline{\url{https://github.com/vafa/bidi/issues}}
+%  \centerline{\url{https://github.com/tex-xet/bidi/issues}}
 %
 %\medskip
 %In doing so, please always explain your issue well enough, always include
@@ -384,7 +383,7 @@
 %* 
 %* Copyright (c) 2009--2016 Vafa Khalighi
 %* 
-%* 2016/11/27, v20.5
+%* 2016/11/30, v20.6
 %* 
 %* License: LaTeX Project Public License, version
 %* 1.3c or higher (your choice)
@@ -391,7 +390,7 @@
 %* 
 %* Location on CTAN: /macros/xetex/latex/bidi
 %* 
-%* Issue tracker: https://github.com/vafa/bidi/issues
+%* Issue tracker: https://github.com/tex-xet/bidi/issues
 %* 
 %* Support: persian-tex at tug.org
 %****************************************************
@@ -848,8 +847,6 @@
 %
 %In addition, you also can use \textsf{vwcol} package for variable width bidirectional column typesetting.
 %\section{Extra \textsf{bidi} Packages and Classes}
-%\subsection{\textsf{bidi-longtable} package}
-% For typesetting RTL tables with \textsf{longtable} package, an experimental package, \textsf{bidi-longtable} package, is provided. \textsf{bidi-longtable} package should be loaded after \textsf{longtable} package.
 %\subsection{\textsf{biditufte} bundle}
 %A modified version of \textsf{tufte-latex}, \textsf{biditufte} bundle, mainly for RTL typesetting, is provided. If you never used \textsf{biditufte} bundle or \textsf{tufte-latex} package and you want to use \textsf{biditufte} bundle, then you need to look at \textsf{tufte-latex} package's manual and examples. In addition, for using \textsf{biditufte} bundle, you need to know the following notes:
 %\begin{itemize}
@@ -1141,7 +1138,7 @@
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -1821,12 +1818,12 @@
     \if \@nextchar b5 \else
    \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
    \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}
-\def\@tabular{\if at RTL\@RTLtabtrue\fi%
+\def\@tabular{%
   \leavevmode
   \hbox \bgroup\if at RTLtab\beginR \fi $\col at sep\tabcolsep \let\d at llarbegin\begingroup
                                     \let\d at llarend\endgroup
   \@tabarray}
-\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup\@RTLtabfalse}
+\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup}
 \expandafter\let\csname endtabular*\endcsname=\endtabular
 \def\@array[#1]#2{%
   \@tempdima \ht \strutbox
@@ -1848,7 +1845,7 @@
   \lineskip \z@
   \baselineskip \z@
   \m at th
-  \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if at RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox  \fi\bgroup\fi\@preamble}
+  \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox  \fi\bgroup\fi\@preamble}
 \def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
 \def\endarray{\crcr \egroup\if at RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
 \def\array{\col at sep\arraycolsep
@@ -2843,7 +2840,7 @@
 %    \begin{macrocode}
 \ProvidesFile{arydshln-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for arydshln package for XeTeX engine]
 \def\endarray{\adl at endarray \egroup \adl at arrayrestore \if at RTLtab\egroup\endR\egroup\fi\egroup}
-\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup\@RTLtabfalse}
+\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup}
 \expandafter\let\csname endtabular*\endcsname\endtabular
 \let\adl at array\@array
 \def\@array{\adl at everyvbox\everyvbox
@@ -2984,8 +2981,8 @@
 % \subsection{\textsf{bidi.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\bididate{2016/11/27}
-\def\bidiversion{v20.5}
+\def\bididate{2016/11/30}
+\def\bidiversion{v20.6}
 \ProvidesPackage{bidi}[\bididate\space \bidiversion\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi at info{****************************************************^^J%
@@ -3007,7 +3004,7 @@
 * ^^J%
 * Location on CTAN: /macros/xetex/latex/bidi^^J%
 * ^^J%
-* Issue tracker: https://github.com/vafa/bidi/issues^^J%
+* Issue tracker: https://github.com/tex-xet/bidi/issues^^J%
 * ^^J%
 * Support: persian-tex at tug.org^^J%
 ****************************************************}
@@ -3024,7 +3021,10 @@
 \eqnewif{\if at RTLmain}{\if at rlmain}
 \eqnewif{\if at RTL}{\if at rl}
 \newif\if at nonlatin
+\newcommand*{\setlatin}{\@nonlatinfalse}
+\newcommand*{\setnonlatin}{\@nonlatintrue}
 \eqnewif{\if at RTLtab}{\if at tab@rl}
+\newif\if at hboxRconstruct
 \newcommand*{\setRTLtable}{\@RTLtabtrue}
 \newcommand*{\setLTRtable}{\@RTLtabfalse}
 \newif\if at RTLmarginpar
@@ -3060,6 +3060,18 @@
   \or
     \@RTLfalse
   \fi}
+\define at choicekey{bidi.sty}{documentdirection}[\bidi at tempa\bidi at tempb]{righttoleft,lefttoright}{%
+  \ifcase\bidi at tempb\relax
+    \@RTLtrue
+  \or
+    \@RTLfalse
+  \fi}
+\define at choicekey{bidi.sty}{tabledirection}[\bidi at tempa\bidi at tempb]{righttoleft,lefttoright}{%
+  \ifcase\bidi at tempb\relax
+    \@RTLtabtrue
+  \or
+    \@RTLtabfalse
+  \fi}
 \define at choicekey{bidi.sty}{script}[\bidi at tempa\bidi at tempb]{latin,nonlatin}[latin]{%
   \ifcase\bidi at tempb\relax
     \@nonlatinfalse
@@ -3153,7 +3165,7 @@
 * ^^J%
 * Location on CTAN: /macros/xetex/latex/bidi^^J%
 * ^^J%
-* Issue tracker: https://github.com/vafa/bidi/issues^^J%
+* Issue tracker: https://github.com/tex-xet/bidi/issues^^J%
 * ^^J%
 * Support: persian-tex at tug.org^^J%
 ****************************************************}
@@ -3164,6 +3176,7 @@
 \RequireXeTeX
 \newif\if at RTLmain
 \newif\if at RTL
+\newif\if at hboxRconstruct
 \newif\if at sentdir
 \newif\if at RTL@footnote
 \@RTLmainfalse
@@ -3440,7 +3453,7 @@
     {}%
 }
 \def\FN at sf@gobble at bracket[#1]{}
-\def\@tabular{\if at RTL\global\@RTLtabtrue\fi
+\def\@tabular{%
    \leavevmode \hbox \bgroup
    \let\@footnotetext\bidi at p@ftntext
    \let\@LTRfootnotetext\bidi at p@LTRftntext
@@ -3458,8 +3471,7 @@
 \def\endtabular{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
                  \egroup $\if at RTLtab\endR\fi\egroup
                   \ifx\@captype\@undefined
-                   \global\bidi at p@ftn\expandafter{\expandafter}\the\bidi at p@ftn\fi%
-                 \global\@RTLtabfalse}
+                   \global\bidi at p@ftn\expandafter{\expandafter}\the\bidi at p@ftn\fi}
 \long\def\bidi at p@ftntext#1{%
   \edef\@tempy{\the\bidi at p@ftn\noexpand\footnotetext[\the\csname c@\@mpfn\endcsname]}%
   \global\bidi at p@ftn\expandafter{\@tempy{#1}}}%
@@ -3589,82 +3601,6 @@
 %    \end{macrocode}
 % \iffalse
 %</bidiftnxtra.sty>
-%<*bidi-longtable.sty>
-%\fi
-% \subsection{\textsf{bidi-longtable.sty}}
-%    \begin{macrocode}
-\ProvidesPackage{bidi-longtable}[2012/12/12 v0.1 typesetting bidi longtables in XeTeX engine (experimental)]
-\def\longtable{\if at RTL\@RTLtabtrue\fi%
-  \par
-  \ifx\multicols\@undefined
-  \else
-     \ifnum\col at number>\@ne
-       \@twocolumntrue
-     \fi
-  \fi
-  \if at twocolumn
-    \LT at err{longtable not in 1-column mode}\@ehc
-  \fi
-  \begingroup
-  \@ifnextchar[\LT at array{\LT at array[x]}}
-\def\endlongtable{%
-  \crcr
-  \noalign{%
-    \let\LT at entry\LT at entry@chop
-    \xdef\LT at save@row{\LT at save@row}}%
-  \LT at echunk
-  \LT at start
-  \unvbox\z@
-  \LT at get@widths
-  \if at filesw
-    {\let\LT at entry\LT at entry@write\immediate\write\@auxout{%
-      \gdef\expandafter\noexpand
-        \csname LT@\romannumeral\c at LT@tables\endcsname
-          {\LT at save@row}}}%
-  \fi
-  \ifx\LT at save@row\LT@@save at row
-  \else
-    \LT at warn{Column \@width s have changed\MessageBreak
-             in table \thetable}%
-    \LT at final@warn
-  \fi
-  \endgraf\penalty -\LT at end@pen
-  \endgroup
-  \global\@mparbottom\z@
-  \pagegoal\vsize
-  \endgraf\penalty\z@\addvspace\LTpost
-  \ifvoid\footins\else\insert\footins{}\fi\@RTLtabfalse}
-\def\LT at output{%
-  \ifnum\outputpenalty <-\@Mi
-    \ifnum\outputpenalty > -\LT at end@pen
-      \LT at err{floats and marginpars not allowed in a longtable}\@ehc
-    \else
-      \setbox\z@\vbox{\unvbox\@cclv}%
-      \ifdim \ht\LT at lastfoot>\ht\LT at foot
-        \dimen@\pagegoal
-        \advance\dimen at -\ht\LT at lastfoot
-        \ifdim\dimen@<\ht\z@
-          \setbox\@cclv\vbox{\unvbox\z@\copy\LT at foot\vss}%
-          \@makecol
-          \@outputpage
-          \setbox\z@\vbox{\box\LT at head}%
-        \fi
-      \fi
-      \global\@colroom\@colht
-      \global\vsize\@colht
-      \vbox
-        {\hbox{\if at RTLtab\beginR\fi\vbox{\unvbox\z@\box\ifvoid\LT at lastfoot\LT at foot\else\LT at lastfoot\fi}\if at RTLtab\endR\fi}}%
-    \fi
-  \else
-    \setbox\@cclv\vbox{\hbox{\if at RTLtab\beginR\fi\vbox{\unvbox\@cclv\copy\LT at foot\vss}\if at RTLtab\endR\fi}}%
-    \@makecol
-    \@outputpage
-      \global\vsize\@colroom
-    \copy\LT at head\nobreak
-  \fi}
-%    \end{macrocode}
-% \iffalse
-%</bidi-longtable.sty>
 %<*bidimoderncv.cls>
 %\fi
 % \subsection{\textsf{bidimoderncv.cls}}
@@ -3925,7 +3861,7 @@
 % \subsection{\textsf{biditools.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biditools}[2016/11/27 v0.9 Programming tools for bidi package]
+\ProvidesPackage{biditools}[2016/11/30 v0.9 Programming tools for bidi package]
 \providecommand{\@bidi at saveprimitive}[2]{\begingroup\escapechar`\\\relax
   \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
   \ifx\@tempa\@tempb \global\let#2#1%
@@ -4033,6 +3969,22 @@
                     \expandafter\@gobbletwo\string#3\endcsname
                        {\let#2#3%
                        \let#1#3}}
+\newcommand*{\SetBoolean}[2]{%
+  \lowercase{\def\@tempa{#2}}%
+  \@ifundefined{@tempswa\@tempa}%
+    {\PackageError{biditools}%
+       {You can only set a boolean to `true' or `false'}\@ehc}%
+    {\@ifundefined{#1\@tempa}%
+      {\PackageError{biditools}{Boolean #1 undefined}\@ehc}%
+      {\csname#1\@tempa\endcsname}}}
+\newcommand*{\SetatBoolean}[2]{%
+  \lowercase{\def\@tempa{#2}}%
+  \@ifundefined{@tempswa\@tempa}%
+    {\PackageError{biditools}%
+       {You can only set a boolean to `true' or `false'}\@ehc}%
+    {\@ifundefined{@#1\@tempa}%
+      {\PackageError{ifthen}{Boolean @#1 undefined}\@ehc}%
+      {\csname @#1\@tempa\endcsname}}}
 \def\@bidi at removefromreset#1#2{{%
   \expandafter\let\csname c@#1\endcsname\@bidi at removefromreset
   \def\@elt##1{%
@@ -4066,6 +4018,18 @@
   \else
     \expandafter\@firstoftwo
   \fi}  
+\newcommand*{\ifRtoLhboxconstruct}{%
+  \if at hboxRconstruct
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi}
+\newcommand*{\ifLtoRhboxconstruct}{%
+  \if at hboxRconstruct
+    \expandafter\@secondoftwo
+  \else
+    \expandafter\@firstoftwo
+  \fi} 
 \newcommand*{\iflatin}{%
   \if at nonlatin
     \expandafter\@secondoftwo
@@ -7868,7 +7832,7 @@
 %\fi
 % \subsection{\textsf{cals-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{cals-xetex-bidi.def}[2016/11/27 v0.4 bidi adaptations for cals package for XeTeX engine]
+\ProvidesFile{cals-xetex-bidi.def}[2016/11/30 v0.4 bidi adaptations for cals package for XeTeX engine]
 \renewcommand\cals at setup@alignment[1]{%
 \if c#1\relax \cals at vfillAdd \leftskip \cals at vfillAdd \rightskip \fi
 \if l#1\relax \cals at vfillDrop\leftskip \cals at vfillDrop\rightskip \fi
@@ -7875,7 +7839,27 @@
 \if r#1\relax \cals at vfillAdd \leftskip \cals at vfillDrop\rightskip \fi
 }
 \renewcommand\cals at table@alignment{\if at RTLtab r\else l\fi}
-\renewcommand\cals at AtEndTable{\@RTLtabfalse}
+\renewenvironment{calstable}[1][\cals at table@alignment]{%
+\if at RTLtab\cals at activate@rtl\fi
+\let\cals at thead@tokens=\relax
+\let\cals at tfoot@tokens=\relax
+\let\cals at tbreak@tokens=\relax
+\cals at tfoot@height=0pt \relax
+\let\cals at last@context=n%
+\let\cals at current@context=b%
+\parindent=0pt \relax%
+\cals at setup@alignment{#1}%
+\cals at setpadding{Ag}\cals at setcellprevdepth{Al}\cals at set@tohsize%
+%% Alignment inside is independent on center/flushright outside
+\parfillskip=0pt plus1fil\relax
+\let\cals at borderL=\relax
+\let\cals at borderR=\relax
+\let\cals at borderT=\relax
+\let\cals at borderB=\relax
+\setbox\cals at backup@row=\box\voidb at x\relax
+\cals at AtBeginTable
+}{% End of the table
+\cals at tfoot@tokens\lastrule\cals at AtEndTable}
 \renewcommand\alignL{%
 \if at RTLtab
   \cals at vfillAdd\cals at paddingL
@@ -11710,8 +11694,10 @@
 %\fi
 % \subsection{\textsf{fancyhdr-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{fancyhdr-xetex-bidi.def}[2016/09/12 v0.5 bidi adaptations for fancyhdr package for XeTeX engine]
+\ProvidesFile{fancyhdr-xetex-bidi.def}[2016/11/30 v0.6 bidi adaptations for fancyhdr package for XeTeX engine]
 
+\let\fnch at everypar\everypar%
+
 \def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy at reset
   \@fancyvbox\headheight{\hbox
     {\rlap{\parbox[b]{\headwidth}{\bidi at raggedright#2}}\hfill
@@ -12285,7 +12271,7 @@
 \def\@iiiminipage#1#2[#3]#4{%
   \leavevmode
   \@pboxswfalse
-  \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+  \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
   \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\fi\fi\fi
   \setlength\@tempdima{#4}%
   \def\@mpargs{{#1}{#2}[#3]{#4}}%
@@ -14352,6 +14338,36 @@
 \def\LT at p@RTLftntext#1{%
   \edef\@tempa{\the\LT at p@ftn\noexpand\RTLfootnotetext[\the\c at footnote]}%
   \global\LT at p@ftn\expandafter{\@tempa{#1}}}%
+  
+  
+\def\LT at output{%
+  \ifnum\outputpenalty <-\@Mi
+    \ifnum\outputpenalty > -\LT at end@pen
+      \LT at err{floats and marginpars not allowed in a longtable}\@ehc
+    \else
+      \setbox\z@\vbox{\unvbox\@cclv}%
+      \ifdim \ht\LT at lastfoot>\ht\LT at foot
+        \dimen@\pagegoal
+        \advance\dimen at -\ht\LT at lastfoot
+        \ifdim\dimen@<\ht\z@
+          \setbox\@cclv\vbox{\unvbox\z@\copy\LT at foot\vss}%
+          \@makecol
+          \@outputpage
+          \setbox\z@\vbox{\box\LT at head}%
+        \fi
+      \fi
+      \global\@colroom\@colht
+      \global\vsize\@colht
+      \vbox
+        {\if at RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\unvbox\z@\box\ifvoid\LT at lastfoot\LT at foot\else\LT at lastfoot\fi\if at RTLtab\egroup\endR\egroup\fi}%
+    \fi
+  \else
+    \setbox\@cclv\vbox{\if at RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\unvbox\@cclv\copy\LT at foot\vss\if at RTLtab\egroup\endR\egroup\fi}%
+    \@makecol
+    \@outputpage
+      \global\vsize\@colroom
+    \copy\LT at head\nobreak
+  \fi}
 %    \end{macrocode}
 % \iffalse
 %</longtable-xetex-bidi.def>
@@ -16150,6 +16166,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginR
+  \@hboxRconstructtrue
   \bgroup
   \aftergroup\endR
   \aftergroup\egroup
@@ -16159,6 +16176,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginL
+  \@hboxRconstructfalse
   \bgroup
   \aftergroup\endL
   \aftergroup\egroup
@@ -19397,14 +19415,13 @@
 % \subsection{\textsf{stabular-xetex-bidi.def}}
 %    \begin{macrocode}
 \ProvidesFile{stabular-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for stabular package for XeTeX engine]
-\def\@stabular{\if at RTL\@RTLtabtrue\fi
+\def\@stabular{%
    \leavevmode \bgroup \if at RTLtab\beginR \fi
    \let\@acol\@tabacol
    \let\@classz\@tabclassz
    \let\@classiv\@tabclassiv \let\\\@tabularcr\@stabarray}
 \def\endstabular{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
-                 \egroup \if at RTLtab\endR\fi\egroup
-                 \@RTLtabfalse}
+                 \egroup \if at RTLtab\endR\fi\egroup}
 \expandafter \let \csname endstabular*\endcsname = \endstabular
 \def\@sarray[#1]#2{%
   \bgroup
@@ -19421,7 +19438,7 @@
     \let\@sharp##%
     \set at typeset@protect
     \lineskip\z at skip\baselineskip\z at skip
-  \if at RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi
+  \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox \fi\bgroup\fi
     \@preamble}
 %    \end{macrocode}
 % \iffalse
@@ -19443,8 +19460,7 @@
 % \subsection{\textsf{tabls-xetex-bidi.def}}
 %    \begin{macrocode}
 \ProvidesFile{tabls-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for tabls package for XeTeX engine]
-\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup
-                 \@RTLtabfalse}
+\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup}
 
 \expandafter\let\csname endtabular*\endcsname=\endtabular
 
@@ -19475,7 +19491,7 @@
  \global\@arstheight\ht\@arstrutbox \global\@arstdepth\dp\@arstrutbox
  \advance\extrarulesep.5\arrayrulewidth
  \let\@sharp##\let\protect\relax \lineskip\z at skip \baselineskip\z at skip
- \if at RTLtab\hbox\bgroup\beginR\if#1t\vtop \else \vbox \fi\bgroup\fi
+ \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if#1t\vtop \else \vbox \fi\bgroup\fi
  \@preamble}
 %    \end{macrocode}
 % \iffalse
@@ -21385,6 +21401,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginR
+  \@hboxRconstructtrue
   \bgroup
   \aftergroup\endR
   \aftergroup\egroup
@@ -21394,6 +21411,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginL
+  \@hboxRconstructfalse
   \bgroup
   \aftergroup\endL
   \aftergroup\egroup
@@ -21403,6 +21421,7 @@
   \aftergroup\egroup
   \everyvbox{}%
   \@RTLtrue
+  \@RTLtabtrue
   \bgroup
   \aftergroup\egroup
  }\vbox}
@@ -21411,17 +21430,18 @@
   \aftergroup\egroup
   \everyvbox{}%
   \@RTLfalse
+  \@RTLtabfalse
   \bgroup
   \aftergroup\egroup
  }\vbox}
 \newcommand*{\bidi at leftskip}{\if at RTL\rightskip\else\leftskip\fi}
 \newcommand*{\bidi at rightskip}{\if at RTL\leftskip\else\rightskip\fi}
-\def\LTR{\par\@RTLfalse\@RTL at footnotefalse\hsize\linewidth\parshape\z@}
+\def\LTR{\par\@RTLfalse\@RTL at footnotefalse\@RTLtabfalse\hsize\linewidth\parshape\z@}
 \def\endLTR{\par}
-\def\RTL{\par\@RTLtrue\@RTL at footnotetrue\hsize\linewidth\parshape\z@}
+\def\RTL{\par\@RTLtrue\@RTL at footnotetrue\@RTLtabtrue\hsize\linewidth\parshape\z@}
 \def\endRTL{\par}
-\def\setRTL{\@RTLtrue\@RTL at footnotetrue}
-\def\setLTR{\@RTLfalse\@RTL at footnotefalse}
+\def\setRTL{\@RTLtrue\@RTL at footnotetrue\@RTLtabtrue}
+\def\setLTR{\@RTLfalse\@RTL at footnotefalse\@RTLtabfalse}
 \let\unsetRTL=\setLTR
 \let\unsetLTR=\setRTL
 \let\LR=\LRE
@@ -21462,7 +21482,7 @@
   \hbox \bgroup $\left.\col at sep\tabcolsep \let\d at llarbegin\begingroup
                                     \let\d at llarend\endgroup
   \@tabarray}
-\def\endbidi at tabular@RTLcases{\endarray \right\rbrace$\egroup\@RTLtabfalse}
+\def\endbidi at tabular@RTLcases{\endarray \right\rbrace$\egroup}
 }{%
 \def\@bidi at tabular@RTLcases{\@RTLtabtrue%
    \leavevmode \hbox \bgroup 
@@ -21471,9 +21491,7 @@
    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
 
 \def\endbidi at tabular@RTLcases{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
-                 \egroup\right\rbrace $\egroup
-                 \@RTLtabfalse}
-}
+                 \egroup\right\rbrace $\egroup}}
 \def\RTLcases#1{\left.\vcenter{\normalbaselines\m at th
     \ialign{$##\hfil$&\quad{##}\hfil\crcr#1\crcr}}\,\right\}}
 \renewenvironment{RTLcases}{%
@@ -21518,7 +21536,7 @@
   \advance\@totalleftmargin \rightmargin
   \fi
   \else
-  \if at RTLtab
+  \if at hboxRconstruct
   \if at bidi@list at minipage@parbox at not@nob
   \if at RTL
     \advance\@totalleftmargin \rightmargin
@@ -21542,7 +21560,7 @@
 \long\def\@iiiparbox#1#2[#3]#4#5{%
   \leavevmode
   \@pboxswfalse
-  \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+  \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
   \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\fi\fi\fi
   \setlength\@tempdima{#4}%
   \@begin at tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
@@ -21572,37 +21590,37 @@
       \ignorespaces}
 \def\endbidi at lrbox{\unskip\color at endgroup}
 \newenvironment{LTRitems}
-                 {\par\@RTLfalse
+                 {\par\@RTLfalse\@RTLtabfalse
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\fi
                   \ignorespaces}{\vskip\z@}
 \newenvironment{RTLitems}
-                 {\par\@RTLtrue
+                 {\par\@RTLtrue\@RTLtabtrue
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\fi
                   \ignorespaces}{\vskip\z@}
 \newenvironment{LTRbibitems}
-                 {\par\@RTLfalse
+                 {\par\@RTLfalse\@RTLtabfalse
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\fi
                   \ignorespaces}{\vskip\z@}
 \newenvironment{RTLbibitems}
-                 {\par\@RTLtrue
+                 {\par\@RTLtrue\@RTLtabtrue
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\fi
@@ -21613,8 +21631,8 @@
   \parindent\z@\parfillskip\z at skip}
 \let\bidi at orig@raggedleft\raggedleft
 \let\bidi at orig@raggedright\raggedright
-\renewcommand\raggedleft{\if at bidi@list at minipage@parbox\bidi at orig@raggedright\else\if at RTLtab\bidi at orig@raggedright\else\bidi at orig@raggedleft\fi\fi}
-\renewcommand\raggedright{\if at bidi@list at minipage@parbox\bidi at orig@raggedleft\else\if at RTLtab\bidi at orig@raggedleft\else\bidi at orig@raggedright\fi\fi}
+\renewcommand\raggedleft{\if at bidi@list at minipage@parbox\bidi at orig@raggedright\else\if at hboxRconstruct\bidi at orig@raggedright\else\bidi at orig@raggedleft\fi\fi}
+\renewcommand\raggedright{\if at bidi@list at minipage@parbox\bidi at orig@raggedleft\else\if at hboxRconstruct\bidi at orig@raggedleft\else\bidi at orig@raggedright\fi\fi}
 \newcommand{\bidi at raggedright}{\if at RTL\raggedleft\else\raggedright\fi}
 \newcommand{\bidi at raggedleft}{\if at RTL\raggedright\else\raggedleft\fi}
 \def\centerline#1{%
@@ -21628,8 +21646,8 @@
 \else\@@line{\hss#1}\fi}
 \let\bidi at orig@leftline\leftline
 \let\bidi at orig@rightline\rightline
-\def\leftline#1{\ifhmode\if at RTL\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@rightline{#1}\else\if at RTLtab\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\fi\fi}
-\def\rightline#1{\ifhmode\if at RTL\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@leftline{#1}\else\if at RTLtab\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\fi\fi}
+\def\leftline#1{\ifhmode\if at RTL\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@rightline{#1}\else\if at hboxRconstruct\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\fi\fi}
+\def\rightline#1{\ifhmode\if at RTL\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@leftline{#1}\else\if at hboxRconstruct\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\fi\fi}
 \def\bidirlap#1{\hb at xt@\z@{\if at RTL\hss\fi#1\if at RTL\else\hss\fi}}
 \def\bidillap#1{\hb at xt@\z@{\if at RTL\else\hss\fi#1\if at RTL\hss\fi}}
 \def\@hangfrom#1{\setbox\@tempboxa\hbox{{#1}}%
@@ -21647,15 +21665,13 @@
 \if at compatibility
    \let\undertext=\underline
 \fi
-\global\@RTLtabfalse
-\def\@tabular{\if at RTL\@RTLtabtrue\fi
+\def\@tabular{%
    \leavevmode \hbox \bgroup \if at RTLtab\beginR \fi
    $\let\@acol\@tabacol
    \let\@classz\@tabclassz
    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
 \def\endtabular{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
-                 \egroup $\if at RTLtab\endR\fi\egroup
-                 \@RTLtabfalse}
+                 \egroup $\if at RTLtab\endR\fi\egroup}
 \expandafter \let \csname endtabular*\endcsname = \endtabular
 \def\@array[#1]#2{%
   \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
@@ -21675,7 +21691,7 @@
     \set at typeset@protect
     \lineskip\z at skip\baselineskip\z at skip
     \ifhmode \@preamerr\z@ \@@par\fi
-  \if at RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi
+  \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox \fi\bgroup\fi
     \@preamble}
 \def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
  \let\@classiv\@arrayclassiv

Modified: trunk/Master/texmf-dist/source/xelatex/bidi/bidi.ins
===================================================================
--- trunk/Master/texmf-dist/source/xelatex/bidi/bidi.ins	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/source/xelatex/bidi/bidi.ins	2016-11-30 22:25:34 UTC (rev 42611)
@@ -52,7 +52,6 @@
 \generate{\file{bidi2in1.sty}{\from{\jobname.dtx}{table,bidi2in1.sty}}}
 \generate{\file{bidicode.sty}{\from{\jobname.dtx}{table,bidicode.sty}}}
 \generate{\file{bidiftnxtra.sty}{\from{\jobname.dtx}{table,bidiftnxtra.sty}}}
-\generate{\file{bidi-longtable.sty}{\from{\jobname.dtx}{table,bidi-longtable.sty}}}
 \generate{\file{bidimoderncv.cls}{\from{\jobname.dtx}{table,bidimoderncv.cls}}}
 \generate{\file{biditools.sty}{\from{\jobname.dtx}{table,biditools.sty}}}
 \generate{\file{bidituftefloat.sty}{\from{\jobname.dtx}{table,bidituftefloat.sty}}}

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/amstext-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/amsthm-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -60,12 +60,12 @@
     \if \@nextchar b5 \else
    \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
    \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}
-\def\@tabular{\if at RTL\@RTLtabtrue\fi%
+\def\@tabular{%
   \leavevmode
   \hbox \bgroup\if at RTLtab\beginR \fi $\col at sep\tabcolsep \let\d at llarbegin\begingroup
                                     \let\d at llarend\endgroup
   \@tabarray}
-\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup\@RTLtabfalse}
+\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup}
 \expandafter\let\csname endtabular*\endcsname=\endtabular
 \def\@array[#1]#2{%
   \@tempdima \ht \strutbox
@@ -87,7 +87,7 @@
   \lineskip \z@
   \baselineskip \z@
   \m at th
-  \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if at RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox  \fi\bgroup\fi\@preamble}
+  \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox  \fi\bgroup\fi\@preamble}
 \def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
 \def\endarray{\crcr \egroup\if at RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
 \def\array{\col at sep\arraycolsep

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -36,7 +36,7 @@
 %%
 \ProvidesFile{arydshln-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for arydshln package for XeTeX engine]
 \def\endarray{\adl at endarray \egroup \adl at arrayrestore \if at RTLtab\egroup\endR\egroup\fi\egroup}
-\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup\@RTLtabfalse}
+\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup}
 \expandafter\let\csname endtabular*\endcsname\endtabular
 \let\adl at array\@array
 \def\@array{\adl at everyvbox\everyvbox

Deleted: trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -1,108 +0,0 @@
-%%
-%% This is file `bidi-longtable.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx  (with options: `table,bidi-longtable.sty')
-%% 
-%%   __________________________________________________
-%%   Copyright (c) 2009--2016  Vafa Khalighi <persian-tex at tug.org>
-%% 
-%%   It may be distributed and/or modified under the LaTeX Project Public License,
-%%   version 1.3c or higher (your choice). The latest version of
-%%   this license is at: http://www.latex-project.org/lppl.txt
-%% 
-%%   This work is “author-maintained” (as per LPPL maintenance status)
-%%   by Vafa Khalighi.
-%% 
-%% 
-%% \CheckSum{47549}
-%% \CharacterTable
-%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%%   Digits        \0\1\2\3\4\5\6\7\8\9
-%%   Exclamation   \!     Double quote  \"     Hash (number) \#
-%%   Dollar        \$     Percent       \%     Ampersand     \&
-%%   Acute accent  \'     Left paren    \(     Right paren   \)
-%%   Asterisk      \*     Plus          \+     Comma         \,
-%%   Minus         \-     Point         \.     Solidus       \/
-%%   Colon         \:     Semicolon     \;     Less than     \<
-%%   Equals        \=     Greater than  \>     Question mark \?
-%%   Commercial at \@     Left bracket  \[     Backslash     \\
-%%   Right bracket \]     Circumflex    \^     Underscore    \_
-%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
-%%   Right brace   \}     Tilde         \~}
-%%
-\ProvidesPackage{bidi-longtable}[2012/12/12 v0.1 typesetting bidi longtables in XeTeX engine (experimental)]
-\def\longtable{\if at RTL\@RTLtabtrue\fi%
-  \par
-  \ifx\multicols\@undefined
-  \else
-     \ifnum\col at number>\@ne
-       \@twocolumntrue
-     \fi
-  \fi
-  \if at twocolumn
-    \LT at err{longtable not in 1-column mode}\@ehc
-  \fi
-  \begingroup
-  \@ifnextchar[\LT at array{\LT at array[x]}}
-\def\endlongtable{%
-  \crcr
-  \noalign{%
-    \let\LT at entry\LT at entry@chop
-    \xdef\LT at save@row{\LT at save@row}}%
-  \LT at echunk
-  \LT at start
-  \unvbox\z@
-  \LT at get@widths
-  \if at filesw
-    {\let\LT at entry\LT at entry@write\immediate\write\@auxout{%
-      \gdef\expandafter\noexpand
-        \csname LT@\romannumeral\c at LT@tables\endcsname
-          {\LT at save@row}}}%
-  \fi
-  \ifx\LT at save@row\LT@@save at row
-  \else
-    \LT at warn{Column \@width s have changed\MessageBreak
-             in table \thetable}%
-    \LT at final@warn
-  \fi
-  \endgraf\penalty -\LT at end@pen
-  \endgroup
-  \global\@mparbottom\z@
-  \pagegoal\vsize
-  \endgraf\penalty\z@\addvspace\LTpost
-  \ifvoid\footins\else\insert\footins{}\fi\@RTLtabfalse}
-\def\LT at output{%
-  \ifnum\outputpenalty <-\@Mi
-    \ifnum\outputpenalty > -\LT at end@pen
-      \LT at err{floats and marginpars not allowed in a longtable}\@ehc
-    \else
-      \setbox\z@\vbox{\unvbox\@cclv}%
-      \ifdim \ht\LT at lastfoot>\ht\LT at foot
-        \dimen@\pagegoal
-        \advance\dimen at -\ht\LT at lastfoot
-        \ifdim\dimen@<\ht\z@
-          \setbox\@cclv\vbox{\unvbox\z@\copy\LT at foot\vss}%
-          \@makecol
-          \@outputpage
-          \setbox\z@\vbox{\box\LT at head}%
-        \fi
-      \fi
-      \global\@colroom\@colht
-      \global\vsize\@colht
-      \vbox
-        {\hbox{\if at RTLtab\beginR\fi\vbox{\unvbox\z@\box\ifvoid\LT at lastfoot\LT at foot\else\LT at lastfoot\fi}\if at RTLtab\endR\fi}}%
-    \fi
-  \else
-    \setbox\@cclv\vbox{\hbox{\if at RTLtab\beginR\fi\vbox{\unvbox\@cclv\copy\LT at foot\vss}\if at RTLtab\endR\fi}}%
-    \@makecol
-    \@outputpage
-      \global\vsize\@colroom
-    \copy\LT at head\nobreak
-  \fi}
-\endinput
-%%
-%% End of file `bidi-longtable.sty'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\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/11/27}
-\def\bidiversion{v20.5}
+\def\bididate{2016/11/30}
+\def\bidiversion{v20.6}
 \ProvidesPackage{bidi}[\bididate\space \bidiversion\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi at info{****************************************************^^J%
@@ -58,7 +58,7 @@
 * ^^J%
 * Location on CTAN: /macros/xetex/latex/bidi^^J%
 * ^^J%
-* Issue tracker: https://github.com/vafa/bidi/issues^^J%
+* Issue tracker: https://github.com/tex-xet/bidi/issues^^J%
 * ^^J%
 * Support: persian-tex at tug.org^^J%
 ****************************************************}
@@ -75,7 +75,10 @@
 \eqnewif{\if at RTLmain}{\if at rlmain}
 \eqnewif{\if at RTL}{\if at rl}
 \newif\if at nonlatin
+\newcommand*{\setlatin}{\@nonlatinfalse}
+\newcommand*{\setnonlatin}{\@nonlatintrue}
 \eqnewif{\if at RTLtab}{\if at tab@rl}
+\newif\if at hboxRconstruct
 \newcommand*{\setRTLtable}{\@RTLtabtrue}
 \newcommand*{\setLTRtable}{\@RTLtabfalse}
 \newif\if at RTLmarginpar
@@ -111,6 +114,18 @@
   \or
     \@RTLfalse
   \fi}
+\define at choicekey{bidi.sty}{documentdirection}[\bidi at tempa\bidi at tempb]{righttoleft,lefttoright}{%
+  \ifcase\bidi at tempb\relax
+    \@RTLtrue
+  \or
+    \@RTLfalse
+  \fi}
+\define at choicekey{bidi.sty}{tabledirection}[\bidi at tempa\bidi at tempb]{righttoleft,lefttoright}{%
+  \ifcase\bidi at tempb\relax
+    \@RTLtabtrue
+  \or
+    \@RTLtabfalse
+  \fi}
 \define at choicekey{bidi.sty}{script}[\bidi at tempa\bidi at tempb]{latin,nonlatin}[latin]{%
   \ifcase\bidi at tempb\relax
     \@nonlatinfalse

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi.tex	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -58,7 +58,7 @@
 * ^^J%
 * Location on CTAN: /macros/xetex/latex/bidi^^J%
 * ^^J%
-* Issue tracker: https://github.com/vafa/bidi/issues^^J%
+* Issue tracker: https://github.com/tex-xet/bidi/issues^^J%
 * ^^J%
 * Support: persian-tex at tug.org^^J%
 ****************************************************}
@@ -69,6 +69,7 @@
 \RequireXeTeX
 \newif\if at RTLmain
 \newif\if at RTL
+\newif\if at hboxRconstruct
 \newif\if at sentdir
 \newif\if at RTL@footnote
 \@RTLmainfalse

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -81,7 +81,7 @@
     {}%
 }
 \def\FN at sf@gobble at bracket[#1]{}
-\def\@tabular{\if at RTL\global\@RTLtabtrue\fi
+\def\@tabular{%
    \leavevmode \hbox \bgroup
    \let\@footnotetext\bidi at p@ftntext
    \let\@LTRfootnotetext\bidi at p@LTRftntext
@@ -99,8 +99,7 @@
 \def\endtabular{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
                  \egroup $\if at RTLtab\endR\fi\egroup
                   \ifx\@captype\@undefined
-                   \global\bidi at p@ftn\expandafter{\expandafter}\the\bidi at p@ftn\fi%
-                 \global\@RTLtabfalse}
+                   \global\bidi at p@ftn\expandafter{\expandafter}\the\bidi at p@ftn\fi}
 \long\def\bidi at p@ftntext#1{%
   \edef\@tempy{\the\bidi at p@ftn\noexpand\footnotetext[\the\csname c@\@mpfn\endcsname]}%
   \global\bidi at p@ftn\expandafter{\@tempy{#1}}}%

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/biditools.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -35,7 +35,7 @@
 %%   Right brace   \}     Tilde         \~}
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biditools}[2016/11/27 v0.9 Programming tools for bidi package]
+\ProvidesPackage{biditools}[2016/11/30 v0.9 Programming tools for bidi package]
 \providecommand{\@bidi at saveprimitive}[2]{\begingroup\escapechar`\\\relax
   \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
   \ifx\@tempa\@tempb \global\let#2#1%
@@ -143,6 +143,22 @@
                     \expandafter\@gobbletwo\string#3\endcsname
                        {\let#2#3%
                        \let#1#3}}
+\newcommand*{\SetBoolean}[2]{%
+  \lowercase{\def\@tempa{#2}}%
+  \@ifundefined{@tempswa\@tempa}%
+    {\PackageError{biditools}%
+       {You can only set a boolean to `true' or `false'}\@ehc}%
+    {\@ifundefined{#1\@tempa}%
+      {\PackageError{biditools}{Boolean #1 undefined}\@ehc}%
+      {\csname#1\@tempa\endcsname}}}
+\newcommand*{\SetatBoolean}[2]{%
+  \lowercase{\def\@tempa{#2}}%
+  \@ifundefined{@tempswa\@tempa}%
+    {\PackageError{biditools}%
+       {You can only set a boolean to `true' or `false'}\@ehc}%
+    {\@ifundefined{@#1\@tempa}%
+      {\PackageError{ifthen}{Boolean @#1 undefined}\@ehc}%
+      {\csname @#1\@tempa\endcsname}}}
 \def\@bidi at removefromreset#1#2{{%
   \expandafter\let\csname c@#1\endcsname\@bidi at removefromreset
   \def\@elt##1{%
@@ -176,6 +192,18 @@
   \else
     \expandafter\@firstoftwo
   \fi}
+\newcommand*{\ifRtoLhboxconstruct}{%
+  \if at hboxRconstruct
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi}
+\newcommand*{\ifLtoRhboxconstruct}{%
+  \if at hboxRconstruct
+    \expandafter\@secondoftwo
+  \else
+    \expandafter\@firstoftwo
+  \fi}
 \newcommand*{\iflatin}{%
   \if at nonlatin
     \expandafter\@secondoftwo

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/cals-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\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{cals-xetex-bidi.def}[2016/11/27 v0.4 bidi adaptations for cals package for XeTeX engine]
+\ProvidesFile{cals-xetex-bidi.def}[2016/11/30 v0.4 bidi adaptations for cals package for XeTeX engine]
 \renewcommand\cals at setup@alignment[1]{%
 \if c#1\relax \cals at vfillAdd \leftskip \cals at vfillAdd \rightskip \fi
 \if l#1\relax \cals at vfillDrop\leftskip \cals at vfillDrop\rightskip \fi
@@ -41,7 +41,27 @@
 \if r#1\relax \cals at vfillAdd \leftskip \cals at vfillDrop\rightskip \fi
 }
 \renewcommand\cals at table@alignment{\if at RTLtab r\else l\fi}
-\renewcommand\cals at AtEndTable{\@RTLtabfalse}
+\renewenvironment{calstable}[1][\cals at table@alignment]{%
+\if at RTLtab\cals at activate@rtl\fi
+\let\cals at thead@tokens=\relax
+\let\cals at tfoot@tokens=\relax
+\let\cals at tbreak@tokens=\relax
+\cals at tfoot@height=0pt \relax
+\let\cals at last@context=n%
+\let\cals at current@context=b%
+\parindent=0pt \relax%
+\cals at setup@alignment{#1}%
+\cals at setpadding{Ag}\cals at setcellprevdepth{Al}\cals at set@tohsize%
+%% Alignment inside is independent on center/flushright outside
+\parfillskip=0pt plus1fil\relax
+\let\cals at borderL=\relax
+\let\cals at borderR=\relax
+\let\cals at borderT=\relax
+\let\cals at borderB=\relax
+\setbox\cals at backup@row=\box\voidb at x\relax
+\cals at AtBeginTable
+}{% End of the table
+\cals at tfoot@tokens\lastrule\cals at AtEndTable}
 \renewcommand\alignL{%
 \if at RTLtab
   \cals at vfillAdd\cals at paddingL

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\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,8 +34,10 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 %%
-\ProvidesFile{fancyhdr-xetex-bidi.def}[2016/09/12 v0.5 bidi adaptations for fancyhdr package for XeTeX engine]
+\ProvidesFile{fancyhdr-xetex-bidi.def}[2016/11/30 v0.6 bidi adaptations for fancyhdr package for XeTeX engine]
 
+\let\fnch at everypar\everypar%
+
 \def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy at reset
   \@fancyvbox\headheight{\hbox
     {\rlap{\parbox[b]{\headwidth}{\bidi at raggedright#2}}\hfill

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -279,7 +279,7 @@
 \def\@iiiminipage#1#2[#3]#4{%
   \leavevmode
   \@pboxswfalse
-  \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+  \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
   \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\fi\fi\fi
   \setlength\@tempdima{#4}%
   \def\@mpargs{{#1}{#2}[#3]{#4}}%

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -51,6 +51,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginR
+  \@hboxRconstructtrue
   \bgroup
   \aftergroup\endR
   \aftergroup\egroup
@@ -60,6 +61,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginL
+  \@hboxRconstructfalse
   \bgroup
   \aftergroup\endL
   \aftergroup\egroup
@@ -69,6 +71,7 @@
   \aftergroup\egroup
   \everyvbox{}%
   \@RTLtrue
+  \@RTLtabtrue
   \bgroup
   \aftergroup\egroup
  }\vbox}
@@ -77,17 +80,18 @@
   \aftergroup\egroup
   \everyvbox{}%
   \@RTLfalse
+  \@RTLtabfalse
   \bgroup
   \aftergroup\egroup
  }\vbox}
 \newcommand*{\bidi at leftskip}{\if at RTL\rightskip\else\leftskip\fi}
 \newcommand*{\bidi at rightskip}{\if at RTL\leftskip\else\rightskip\fi}
-\def\LTR{\par\@RTLfalse\@RTL at footnotefalse\hsize\linewidth\parshape\z@}
+\def\LTR{\par\@RTLfalse\@RTL at footnotefalse\@RTLtabfalse\hsize\linewidth\parshape\z@}
 \def\endLTR{\par}
-\def\RTL{\par\@RTLtrue\@RTL at footnotetrue\hsize\linewidth\parshape\z@}
+\def\RTL{\par\@RTLtrue\@RTL at footnotetrue\@RTLtabtrue\hsize\linewidth\parshape\z@}
 \def\endRTL{\par}
-\def\setRTL{\@RTLtrue\@RTL at footnotetrue}
-\def\setLTR{\@RTLfalse\@RTL at footnotefalse}
+\def\setRTL{\@RTLtrue\@RTL at footnotetrue\@RTLtabtrue}
+\def\setLTR{\@RTLfalse\@RTL at footnotefalse\@RTLtabfalse}
 \let\unsetRTL=\setLTR
 \let\unsetLTR=\setRTL
 \let\LR=\LRE
@@ -128,7 +132,7 @@
   \hbox \bgroup $\left.\col at sep\tabcolsep \let\d at llarbegin\begingroup
                                     \let\d at llarend\endgroup
   \@tabarray}
-\def\endbidi at tabular@RTLcases{\endarray \right\rbrace$\egroup\@RTLtabfalse}
+\def\endbidi at tabular@RTLcases{\endarray \right\rbrace$\egroup}
 }{%
 \def\@bidi at tabular@RTLcases{\@RTLtabtrue%
    \leavevmode \hbox \bgroup
@@ -137,9 +141,7 @@
    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
 
 \def\endbidi at tabular@RTLcases{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
-                 \egroup\right\rbrace $\egroup
-                 \@RTLtabfalse}
-}
+                 \egroup\right\rbrace $\egroup}}
 \def\RTLcases#1{\left.\vcenter{\normalbaselines\m at th
     \ialign{$##\hfil$&\quad{##}\hfil\crcr#1\crcr}}\,\right\}}
 \renewenvironment{RTLcases}{%
@@ -184,7 +186,7 @@
   \advance\@totalleftmargin \rightmargin
   \fi
   \else
-  \if at RTLtab
+  \if at hboxRconstruct
   \if at bidi@list at minipage@parbox at not@nob
   \if at RTL
     \advance\@totalleftmargin \rightmargin
@@ -208,7 +210,7 @@
 \long\def\@iiiparbox#1#2[#3]#4#5{%
   \leavevmode
   \@pboxswfalse
-  \if at RTLtab\@bidi at list@minipage at parbox@not at nobtrue\fi
+  \if at hboxRconstruct\@bidi at list@minipage at parbox@not at nobtrue\fi
   \if at RTL\if#1t\@bidi at list@minipage at parboxtrue\else\if#1b\@bidi at list@minipage at parboxtrue\fi\fi\fi
   \setlength\@tempdima{#4}%
   \@begin at tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
@@ -238,37 +240,37 @@
       \ignorespaces}
 \def\endbidi at lrbox{\unskip\color at endgroup}
 \newenvironment{LTRitems}
-                 {\par\@RTLfalse
+                 {\par\@RTLfalse\@RTLtabfalse
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\fi
                   \ignorespaces}{\vskip\z@}
 \newenvironment{RTLitems}
-                 {\par\@RTLtrue
+                 {\par\@RTLtrue\@RTLtabtrue
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\fi
                   \ignorespaces}{\vskip\z@}
 \newenvironment{LTRbibitems}
-                 {\par\@RTLfalse
+                 {\par\@RTLfalse\@RTLtabfalse
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\fi
                   \ignorespaces}{\vskip\z@}
 \newenvironment{RTLbibitems}
-                 {\par\@RTLtrue
+                 {\par\@RTLtrue\@RTLtabtrue
                   \if at bidi@list at minipage@parbox
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
-                  \else \if at RTLtab\if at bidi@list at minipage@parbox at not@nob
+                  \else \if at hboxRconstruct\if at bidi@list at minipage@parbox at not@nob
                   \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
                   \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
                   \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\fi
@@ -279,8 +281,8 @@
   \parindent\z@\parfillskip\z at skip}
 \let\bidi at orig@raggedleft\raggedleft
 \let\bidi at orig@raggedright\raggedright
-\renewcommand\raggedleft{\if at bidi@list at minipage@parbox\bidi at orig@raggedright\else\if at RTLtab\bidi at orig@raggedright\else\bidi at orig@raggedleft\fi\fi}
-\renewcommand\raggedright{\if at bidi@list at minipage@parbox\bidi at orig@raggedleft\else\if at RTLtab\bidi at orig@raggedleft\else\bidi at orig@raggedright\fi\fi}
+\renewcommand\raggedleft{\if at bidi@list at minipage@parbox\bidi at orig@raggedright\else\if at hboxRconstruct\bidi at orig@raggedright\else\bidi at orig@raggedleft\fi\fi}
+\renewcommand\raggedright{\if at bidi@list at minipage@parbox\bidi at orig@raggedleft\else\if at hboxRconstruct\bidi at orig@raggedleft\else\bidi at orig@raggedright\fi\fi}
 \newcommand{\bidi at raggedright}{\if at RTL\raggedleft\else\raggedright\fi}
 \newcommand{\bidi at raggedleft}{\if at RTL\raggedright\else\raggedleft\fi}
 \def\centerline#1{%
@@ -294,8 +296,8 @@
 \else\@@line{\hss#1}\fi}
 \let\bidi at orig@leftline\leftline
 \let\bidi at orig@rightline\rightline
-\def\leftline#1{\ifhmode\if at RTL\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@rightline{#1}\else\if at RTLtab\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\fi\fi}
-\def\rightline#1{\ifhmode\if at RTL\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@leftline{#1}\else\if at RTLtab\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\fi\fi}
+\def\leftline#1{\ifhmode\if at RTL\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@rightline{#1}\else\if at hboxRconstruct\bidi at orig@rightline{#1}\else\bidi at orig@leftline{#1}\fi\fi\fi}
+\def\rightline#1{\ifhmode\if at RTL\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\else\if at bidi@list at minipage@parbox\bidi at orig@leftline{#1}\else\if at hboxRconstruct\bidi at orig@leftline{#1}\else\bidi at orig@rightline{#1}\fi\fi\fi}
 \def\bidirlap#1{\hb at xt@\z@{\if at RTL\hss\fi#1\if at RTL\else\hss\fi}}
 \def\bidillap#1{\hb at xt@\z@{\if at RTL\else\hss\fi#1\if at RTL\hss\fi}}
 \def\@hangfrom#1{\setbox\@tempboxa\hbox{{#1}}%
@@ -313,15 +315,13 @@
 \if at compatibility
    \let\undertext=\underline
 \fi
-\global\@RTLtabfalse
-\def\@tabular{\if at RTL\@RTLtabtrue\fi
+\def\@tabular{%
    \leavevmode \hbox \bgroup \if at RTLtab\beginR \fi
    $\let\@acol\@tabacol
    \let\@classz\@tabclassz
    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
 \def\endtabular{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
-                 \egroup $\if at RTLtab\endR\fi\egroup
-                 \@RTLtabfalse}
+                 \egroup $\if at RTLtab\endR\fi\egroup}
 \expandafter \let \csname endtabular*\endcsname = \endtabular
 \def\@array[#1]#2{%
   \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
@@ -341,7 +341,7 @@
     \set at typeset@protect
     \lineskip\z at skip\baselineskip\z at skip
     \ifhmode \@preamerr\z@ \@@par\fi
-  \if at RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi
+  \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox \fi\bgroup\fi
     \@preamble}
 \def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
  \let\@classiv\@arrayclassiv

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/loadingorder-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -133,6 +133,35 @@
 \def\LT at p@RTLftntext#1{%
   \edef\@tempa{\the\LT at p@ftn\noexpand\RTLfootnotetext[\the\c at footnote]}%
   \global\LT at p@ftn\expandafter{\@tempa{#1}}}%
+
+\def\LT at output{%
+  \ifnum\outputpenalty <-\@Mi
+    \ifnum\outputpenalty > -\LT at end@pen
+      \LT at err{floats and marginpars not allowed in a longtable}\@ehc
+    \else
+      \setbox\z@\vbox{\unvbox\@cclv}%
+      \ifdim \ht\LT at lastfoot>\ht\LT at foot
+        \dimen@\pagegoal
+        \advance\dimen at -\ht\LT at lastfoot
+        \ifdim\dimen@<\ht\z@
+          \setbox\@cclv\vbox{\unvbox\z@\copy\LT at foot\vss}%
+          \@makecol
+          \@outputpage
+          \setbox\z@\vbox{\box\LT at head}%
+        \fi
+      \fi
+      \global\@colroom\@colht
+      \global\vsize\@colht
+      \vbox
+        {\if at RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\unvbox\z@\box\ifvoid\LT at lastfoot\LT at foot\else\LT at lastfoot\fi\if at RTLtab\egroup\endR\egroup\fi}%
+    \fi
+  \else
+    \setbox\@cclv\vbox{\if at RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\unvbox\@cclv\copy\LT at foot\vss\if at RTLtab\egroup\endR\egroup\fi}%
+    \@makecol
+    \@outputpage
+      \global\vsize\@colroom
+    \copy\LT at head\nobreak
+  \fi}
 \endinput
 %%
 %% End of file `longtable-xetex-bidi.def'.

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -51,6 +51,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginR
+  \@hboxRconstructtrue
   \bgroup
   \aftergroup\endR
   \aftergroup\egroup
@@ -60,6 +61,7 @@
   \aftergroup\egroup
   \everyhbox{}%
   \beginL
+  \@hboxRconstructfalse
   \bgroup
   \aftergroup\endL
   \aftergroup\egroup

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/scrbook-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/scrlettr-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/sidecap-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\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,14 +35,13 @@
 %%   Right brace   \}     Tilde         \~}
 %%
 \ProvidesFile{stabular-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for stabular package for XeTeX engine]
-\def\@stabular{\if at RTL\@RTLtabtrue\fi
+\def\@stabular{%
    \leavevmode \bgroup \if at RTLtab\beginR \fi
    \let\@acol\@tabacol
    \let\@classz\@tabclassz
    \let\@classiv\@tabclassiv \let\\\@tabularcr\@stabarray}
 \def\endstabular{\crcr\egroup\if at RTLtab\egroup\endR\egroup\fi
-                 \egroup \if at RTLtab\endR\fi\egroup
-                 \@RTLtabfalse}
+                 \egroup \if at RTLtab\endR\fi\egroup}
 \expandafter \let \csname endstabular*\endcsname = \endstabular
 \def\@sarray[#1]#2{%
   \bgroup
@@ -59,7 +58,7 @@
     \let\@sharp##%
     \set at typeset@protect
     \lineskip\z at skip\baselineskip\z at skip
-  \if at RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi
+  \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox \fi\bgroup\fi
     \@preamble}
 \endinput
 %%

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\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,7 @@
 %%   Right brace   \}     Tilde         \~}
 %%
 \ProvidesFile{tabls-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for tabls package for XeTeX engine]
-\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup
-                 \@RTLtabfalse}
+\def\endtabular{\endarray $\if at RTLtab\endR\fi\egroup}
 
 \expandafter\let\csname endtabular*\endcsname=\endtabular
 
@@ -67,7 +66,7 @@
  \global\@arstheight\ht\@arstrutbox \global\@arstdepth\dp\@arstrutbox
  \advance\extrarulesep.5\arrayrulewidth
  \let\@sharp##\let\protect\relax \lineskip\z at skip \baselineskip\z at skip
- \if at RTLtab\hbox\bgroup\beginR\if#1t\vtop \else \vbox \fi\bgroup\fi
+ \if at RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if#1t\vtop \else \vbox \fi\bgroup\fi
  \@preamble}
 \endinput
 %%

Modified: trunk/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocbasic-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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/tocbibind-xetex-bidi.def
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def	2016-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\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-11-30 22:25:14 UTC (rev 42610)
+++ trunk/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def	2016-11-30 22:25:34 UTC (rev 42611)
@@ -17,7 +17,7 @@
 %%   by Vafa Khalighi.
 %% 
 %% 
-%% \CheckSum{47549}
+%% \CheckSum{47593}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\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