From fa278657f785d91c8a2227a02cde8bce13dad0f2 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 21 Sep 2018 21:08:05 +0000
Subject: bidi (21sep18)

git-svn-id: svn://tug.org/texlive/trunk@48725 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 141 +++++++++++++------------
 1 file changed, 71 insertions(+), 70 deletions(-)

(limited to 'Master/texmf-dist/source/xelatex/bidi/bidi.dtx')

diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index cfddcae969f..21099399c8c 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
@@ -5,12 +5,11 @@
 %<*readme>
 ___________________
 The bidi package
-v33.3
+v33.4
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
 
-
 If you enjoy the bidi package and want to support 
 the project, then please consider donating to the project. 
 It allows me to spend more time working on the bidi package,
@@ -24,7 +23,6 @@ You can use My PayPal.Me to donate to the bidi package at
 If you have a problem using My PayPal.Me, then please email me
 at persian-tex@tug.org.
 
-
 If you want to report any bugs or typos and corrections in the
 documentation, or ask for any new features, or suggest any
 improvements, then please do not send any direct email to me; 
@@ -35,8 +33,20 @@ I will not answer any direct email. Instead please use the issue tracker:
 In doing so, please always explain your issue well enough, and always
 include a minimal working example showing the issue.
 
-
-Current version release date: 2018/09/19
+Please note that most of my spare time is pretty much occupied by
+TeX development and as a result, I am afraid that I can not help users
+on a regular basis. Therefore, I ask all users to not email me
+and ask for help. However, there is a Persian TeX mailing list where 
+everyone can discuss Persian TeX related topics, ask and/or answer questions. This mailing list is the default media for Persian TeX 
+communications. I will try my best to answer questions on this
+mailing list whenever I have time.  I will also be posting 
+announcements regarding new versions of the `bidi' package on this 
+mailing list. You can subscribe to the mailing list at
+
+  <https://lists.sourceforge.net/lists/listinfo/persian-tex-dist-discuss>
+  
+  
+Current version release date: 2018/09/21
 
 ___________________
 Vafa Khalighi
@@ -233,7 +243,7 @@ by Vafa Khalighi.
 \documentclass{ltxdoc}
 \input{bidi-doc-preamble.ltx}
 \hypersetup{%
-  pdftitle={Source documentation for version 33.3 of the bidi
+  pdftitle={Source documentation for version 33.4 of the bidi
                 package}%
 }
 \EnableCrossrefs
@@ -252,7 +262,7 @@ by Vafa Khalighi.
 % \GetFileInfo{\jobname.dtx}
 % \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\
 %\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt]
-%\large Source documentation for \textcolor{blue!65!black}{version 33.3}}
+%\large Source documentation for \textcolor{blue!65!black}{version 33.4}}
 % \author{Vafa Khalighi\\
 %  \url{persian-tex@tug.org}}
 %\setcounter{page}{0}
@@ -263,7 +273,7 @@ by Vafa Khalighi.
 %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
 %
 %\Large
-%Source documentation for \textcolor{blue!65!black}{version 33.3}}
+%Source documentation for \textcolor{blue!65!black}{version 33.4}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -298,6 +308,19 @@ by Vafa Khalighi.
 %\medskip
 %In doing so, please always explain your issue well enough, and always include
 %a minimal working example showing the issue. 
+%
+%\bigskip
+%Please note that most of my spare time is pretty much occupied by
+%\TeX{} development and as a result, I am afraid that I can not help users
+%on a regular basis. Therefore, I ask all users to not email me
+%and ask for help. However, there is a Persian \TeX{} mailing list where 
+%everyone can discuss Persian \TeX{} related topics, ask and/or answer questions. This mailing list is the default media for Persian \TeX{} 
+%communications. I will try my best to answer questions on this
+%mailing list whenever I have time.  I will also be posting announcements 
+%regarding new versions of the \textsf{bidi} package on this mailing list.
+%You can subscribe to the mailing list at 
+%\medskip
+%  \centerline{\url{https://lists.sourceforge.net/lists/listinfo/persian-tex-dist-discuss}}
 %\end{minipage}
 %}}
 %
@@ -317,7 +340,7 @@ by Vafa Khalighi.
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{49843}
+%% \CheckSum{49745}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -522,47 +545,37 @@ by Vafa Khalighi.
 %\fi
 % \section{File \texttt{algorithm2e-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{algorithm2e-xetex-bidi.def}[2015/02/01 v0.1 bidi adaptations for algorithm2e package for XeTeX engine]
+\ProvidesFile{algorithm2e-xetex-bidi.def}[2018/09/21 v0.2 bidi adaptations for algorithm2e package for XeTeX engine]
 \expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist
 \else%                                     else
 \renewcommand\thealgocf{\csname the\algocf@within\endcsname\@SepMark\@arabic\c@algocf}%
-\fi%
-
-\def\@algocf@pre@boxed{\noindent\begin{bidi@lrbox}{\algocf@algoframe}}
-\def\@algocf@post@boxed{\end{bidi@lrbox}\framebox[\hsize]{\box\algocf@algoframe}\par}%
-\def\@algocf@pre@boxruled{\noindent\begin{bidi@lrbox}{\algocf@algoframe}}%
-\def\@algocf@post@boxruled{\end{bidi@lrbox}\framebox[\hsize]{\box\algocf@algoframe}\par}%
-\renewcommand{\@algocf@start}{%
-  \@algoskip%
-  \begin{bidi@lrbox}{\algocf@algobox}%
-  \setlength{\algowidth}{\hsize}%
-  \vbox\bgroup% save all the algo in a box
-  \hbox to\algowidth\bgroup\hbox to \algomargin{\hfill}\vtop\bgroup%
-  \ifthenelse{\boolean{algocf@slide}}{\parskip 0.5ex\color{black}}{}%
-  % initialization
-  \addtolength{\hsize}{-1.5\algomargin}%
-  \let\@mathsemicolon=\;\def\;{\ifmmode\@mathsemicolon\else\@endalgoln\fi}%
-  \raggedright\AlFnt{}%
-  \ifthenelse{\boolean{algocf@slide}}{\IncMargin{\skipalgocfslide}}{}%
-  \@algoinsideskip%
-%   \let\@emathdisplay=\]\def\]{\algocf@endline\@emathdisplay\nl}%
-}%
-\renewcommand{\@algocf@finish}{%
-  \@algoinsideskip%
-  \egroup%end of vtop which contain all the text
-  \hfill\egroup%end of hbox wich contains [margin][vtop]
-  \ifthenelse{\boolean{algocf@slide}}{\DecMargin{\skipalgocfslide}}{}%
-  %
-  \egroup%end of main vbox
-  \end{bidi@lrbox}%
-  \algocf@makethealgo% print the algo
-  \@algoskip%
-  % restore dimension and macros
-  \setlength{\hsize}{\algowidth}%
-  \lineskip\normallineskip\setlength{\skiptotal}{\@defaultskiptotal}%
-  \let\;=\@mathsemicolon%  
-  \let\]=\@emathdisplay%
-}%
+\fi
+\@ifpackageloaded{color}{}{%
+  \bidi@patchcmd{\@algocf@start}{\bgroup}{%
+    \bgroup
+    \if@RTL
+      \beginR
+    \else
+      \beginL
+    \fi
+  }{}{}
+  \bidi@patchcmd{\@algocf@finish}{\egroup\end{lrbox}}{%
+    \if@RTL
+      \endR
+    \else
+      \endL
+    \fi
+    \egroup
+    \end{lrbox}%
+  }{}{}
+  \bidi@patchcmd{\algocf@makecaption}{\hbox}{%
+    \if@RTL
+      \hboxR
+    \else
+      \hboxL
+    \fi
+  }{}{}
+}
 %    \end{macrocode}
 %
 %\iffalse
@@ -1940,8 +1953,8 @@ by Vafa Khalighi.
 % \section{File \texttt{bidi.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\bididate{2018/09/19}
-\def\bidi@version{33.3}
+\def\bididate{2018/09/21}
+\def\bidi@version{33.4}
 \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi@info{****************************************************^^J%
@@ -1965,7 +1978,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 * ^^J%
 * Issue tracker: https://sourceforge.net/p/persian-tex-dist/tickets^^J%
 * ^^J%
-* Support: persian-tex@tug.org^^J%
+* Support: https://lists.sourceforge.net/lists/listinfo/persian-tex-dist-discuss^^J%
 * ^^J%
 ****************************************************}
 \typeout{\@bidi@info}
@@ -2025,7 +2038,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 }
 \newcommand*{\@bidi@pdfcustomproperties}{%
   This is the bidi package, Version \bidi@version,
-  Released October 1, 2018. 
+  Released September 21, 2018. 
 }
 \@RTLmainfalse
 \AtBeginDocument{%
@@ -2228,9 +2241,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
 %\fi
 % \section{File \texttt{bidi.tex}}
 %    \begin{macrocode}
-\def\bididate{2018/09/19}
+\def\bididate{2018/09/21}
 \catcode`@=11
-\def\bidi@version{33.3}
+\def\bidi@version{33.4}
 \let \protect \relax
 \newlinechar`\^^J
 \edef\@bidi@info{****************************************************^^J%
@@ -2254,7 +2267,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 * ^^J%
 * Issue tracker: https://sourceforge.net/p/persian-tex-dist/tickets^^J%
 * ^^J%
-* Support: persian-tex@tug.org^^J%
+* Support: https://lists.sourceforge.net/lists/listinfo/persian-tex-dist-discuss^^J%
 * ^^J%
 ****************************************************}
 \message{\@bidi@info}
@@ -2329,7 +2342,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 }
 \def\@bidi@pdfcustomproperties{%
   This is the bidi package, Version \bidi@version,
-  Released September 15, 2018. 
+  Released September 21, 2018. 
 }
 \def\bidi@pdfm@mark{%
   \special{pdf:%
@@ -21576,9 +21589,9 @@ to\rtside{\box\bslice\hfil}}
 %\fi
 % \section{File \texttt{latex-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{latex-xetex-bidi.def}[2018/02/22 v1.3.3 bidi adaptations  for `latex.ltx' for XeTeX engine]
-\newcommand{\TeXXeTOn}{\TeXXeTstate=1 }
-\newcommand{\TeXXeTOff}{\TeXXeTstate=0 }
+\ProvidesFile{latex-xetex-bidi.def}[2018/09/21 v1.3.4 bidi adaptations  for `latex.ltx' for XeTeX engine]
+\newcommand{\TeXXeTOn}{\TeXXeTstate\@ne}
+\newcommand{\TeXXeTOff}{\TeXXeTstate\z@}
 \TeXXeTOn
 \def\bidi@RTL@everypar{{\setbox\z@\lastbox\if@RTL\beginR\else\beginL\fi\ifvoid\z@\else\usebox\z@\fi}}
    \let\bidi@o@everypar=\everypar
@@ -21780,18 +21793,6 @@ to\rtside{\box\bslice\hfil}}
        \csname bm@#3\endcsname}%
     \if@pboxsw \m@th$\fi
   \@end@tempboxa}
-\def\bidi@lrbox#1{%
-  \edef\reserved@a{%
-    \endgroup
-    \setbox#1\hbox{%
-      \begingroup\aftergroup}%
-        \def\noexpand\@currenvir{\@currenvir}%
-        \def\noexpand\@currenvline{\on@line}}%
-  \reserved@a
-    \@endpefalse
-    \color@begingroup
-      \ignorespaces}
-\def\endbidi@lrbox{\unskip\color@endgroup}
 \newenvironment{LTRitems}
                  {\par\@RTLfalse\@RTLtabfalse
                   \if@bidi@list@minipage@parbox
-- 
cgit v1.2.3

