From 302f82a225bac87dcf0998d7a4a2d6567a9643d1 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 16 Oct 2018 21:13:15 +0000
Subject: bidi (16oct18)

git-svn-id: svn://tug.org/texlive/trunk@48921 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 72 +++++++++++++++-----------
 1 file changed, 43 insertions(+), 29 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 83588a73398..78d52f392bf 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
@@ -5,7 +5,7 @@
 %<*readme>
 ___________________
 The bidi package
-v34.9
+v35.0
 
 This package provides a convenient interface for typesetting
 bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -44,7 +44,7 @@ mailing list whenever I have time. You can subscribe to the mailing list at
   <http://tug.org/mailman/listinfo/persiantex>
   
   
-Current version release date: 2018/10/12
+Current version release date: 2018/10/17
 
 ___________________
 Vafa Khalighi
@@ -242,7 +242,7 @@ by Vafa Khalighi.
 \documentclass{ltxdoc}
 \input{bidi-doc-preamble.ltx}
 \hypersetup{%
-  pdftitle={Source documentation for version 34.9 of the bidi
+  pdftitle={Source documentation for version 35.0 of the bidi
                 package}%
 }
 \EnableCrossrefs
@@ -261,7 +261,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 34.9}}
+%\large Source documentation for \textcolor{blue!65!black}{version 35.0}}
 % \author{Vafa Khalighi\\
 %  \url{persian-tex@tug.org}}
 %\setcounter{page}{0}
@@ -272,7 +272,7 @@ by Vafa Khalighi.
 %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
 %
 %\Large
-%Source documentation for \textcolor{blue!65!black}{version 34.9}}
+%Source documentation for \textcolor{blue!65!black}{version 35.0}}
 %
 %\vskip 0pt plus 3fill
 %\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -338,7 +338,7 @@ by Vafa Khalighi.
 %\iffalse
 %<*table>
 %\fi
-%% \CheckSum{49990}
+%% \CheckSum{49973}
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -1951,8 +1951,8 @@ by Vafa Khalighi.
 % \section{File \texttt{bidi.sty}}
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\def\bididate{2018/10/12}
-\def\bidi@version{34.9}
+\def\bididate{2018/10/17}
+\def\bidi@version{35.0}
 \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space
 Bidirectional typesetting in plain TeX and LaTeX]
 \edef\@bidi@info{****************************************************^^J%
@@ -2037,7 +2037,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 }
 \newcommand*{\@bidi@pdfcustomproperties}{%
   This is the bidi package, Version \bidi@version,
-  Released October 12, 2018. 
+  Released October 17, 2018. 
 }
 \@RTLmainfalse
 \AtBeginDocument{%
@@ -2279,9 +2279,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
 %\fi
 % \section{File \texttt{bidi.tex}}
 %    \begin{macrocode}
-\def\bididate{2018/10/12}
+\def\bididate{2018/10/17}
 \catcode`@=11
-\def\bidi@version{34.9}
+\def\bidi@version{35.0}
 \let \protect \relax
 \newlinechar`\^^J
 \edef\@bidi@info{****************************************************^^J%
@@ -2380,7 +2380,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
 }
 \def\@bidi@pdfcustomproperties{%
   This is the bidi package, Version \bidi@version,
-  Released October 12, 2018. 
+  Released October 17, 2018. 
 }
 \def\bidi@pdfm@mark{%
   \special{pdf:%
@@ -16675,7 +16675,7 @@ to\rtside{\box\bslice\hfil}}
 %\fi
 % \section{File \texttt{ragged2e-xetex-bidi.def}}
 %    \begin{macrocode}
-\ProvidesFile{ragged2e-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for ragged2e package for XeTeX engine]
+\ProvidesFile{ragged2e-xetex-bidi.def}[2018/10/17 v0.3 bidi adaptations for ragged2e package for XeTeX engine]
 \renewcommand{\Centering}{%
    \ifx\\\@raggedtwoe@savedcr
       \let\\\@centercr
@@ -16726,21 +16726,7 @@ to\rtside{\box\bslice\hfil}}
    \@raggedtwoe@spaceskipfalse
    \@raggedtwoe@everyselectfont
    }
-\renewcommand*{\@raggedtwoe@raggedrightboxes@opt}{
-  \CheckCommand*{\@arrayparboxrestore}{%
-    \let\if@nobreak\iffalse
-    \let\if@noskipsec\iffalse
-    \let\par\@@par
-    \let\-\@dischyph
-    \let\'\@acci\let\`\@accii\let\=\@acciii
-    \parindent\z@ \parskip\z@skip
-    \everypar{}%
-    \linewidth\hsize
-    \@totalleftmargin\z@
-    \if@RTL\rightskip\else\leftskip\fi\z@skip \if@RTL\leftskip\else\rightskip\fi\z@skip \@rightskip\z@skip
-    \parfillskip\@flushglue \lineskip\normallineskip
-    \baselineskip\normalbaselineskip
-    \sloppy}%
+\def\@raggedtwoe@raggedrightboxes@opt{%
   \renewcommand{\@arrayparboxrestore}{%
     \let\if@nobreak\iffalse
     \let\if@noskipsec\iffalse
@@ -16751,12 +16737,40 @@ to\rtside{\box\bslice\hfil}}
     \everypar{}%
     \linewidth\hsize
     \@totalleftmargin\z@
-    \RaggedRight
+    \if@RTL
+      \RaggedLeft
+    \else
+      \RaggedRight
+    \fi
     \lineskip\normallineskip
     \baselineskip\normalbaselineskip
     \sloppy}%
   \let\@raggedtwoe@raggedrightboxes@opt\relax
   }
+\def\@raggedtwoe@document@opt{%
+  \AtBeginDocument{\@raggedtwoe@abdhook}%
+  \@raggedtwoe@raggedrightboxes@opt
+  \@raggedtwoe@footmisctrue
+  \let\@raggedtwoe@document@opt\relax
+  }
+\def\@raggedtwoe@abdhook{%
+  \PackageInfo{ragged2e}{ABD: executing `\string\RaggedLeft' for
+    right to left documents and `\string\RaggedRight' for left
+    to right documents}%
+  \if@RTL
+    \RaggedLeft
+  \else
+    \RaggedRight
+  \fi
+  \@ifundefined{@tocrmarg}{}{\edef\@tocrmarg{\@tocrmarg plus 2em}}%
+  \let\@raggedtwoe@abdhook\relax
+  }
+\@ifpackagewith{ragged2e}{raggedrightboxes}{%
+  \@raggedtwoe@raggedrightboxes@opt
+}{}
+\@ifpackagewith{ragged2e}{document}{%
+  \@raggedtwoe@document@opt
+}{}
 \let\origin@RaggedLeft=\RaggedLeft
 \let\origin@RaggedRight=\RaggedRight
 \def\RaggedLeft{\if@RTL\origin@RaggedRight\else\origin@RaggedLeft\fi}
-- 
cgit v1.2.3

