summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-12 21:42:54 +0000
committerKarl Berry <karl@freefriends.org>2018-10-12 21:42:54 +0000
commitd3decf664e3714c60e10863caf096f1a7dbc4f85 (patch)
tree4d605d4d5ff5bffda7ed531b0ea5e4cfe33d409d /Master/texmf-dist/source/xelatex/bidi/bidi.dtx
parentf60e45c7636a3b54b556da015da13743807d34d7 (diff)
bidi (12oct18)
git-svn-id: svn://tug.org/texlive/trunk@48895 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/bidi/bidi.dtx')
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.dtx47
1 files changed, 34 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index ebe8556d75b..83588a73398 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.8
+v34.9
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/11
+Current version release date: 2018/10/12
___________________
Vafa Khalighi
@@ -242,7 +242,7 @@ by Vafa Khalighi.
\documentclass{ltxdoc}
\input{bidi-doc-preamble.ltx}
\hypersetup{%
- pdftitle={Source documentation for version 34.8 of the bidi
+ pdftitle={Source documentation for version 34.9 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.8}}
+%\large Source documentation for \textcolor{blue!65!black}{version 34.9}}
% \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.8}}
+%Source documentation for \textcolor{blue!65!black}{version 34.9}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -338,7 +338,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{49969}
+%% \CheckSum{49990}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\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/11}
-\def\bidi@version{34.8}
+\def\bididate{2018/10/12}
+\def\bidi@version{34.9}
\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 11, 2018.
+ Released October 12, 2018.
}
\@RTLmainfalse
\AtBeginDocument{%
@@ -2199,6 +2199,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
\@bidi@pdfm@markfalse
\fi}
+% The `perpagefootnote' option is documented in UK TeX FAQ at
+% <https://texfaq.org/FAQ-footnpp> (see last paragraph)
+
\define@choicekey{bidi.sty}{perpagefootnote}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
\ifcase\bidi@tempb\relax
\@bidi@perpage@footnotetrue
@@ -2276,9 +2279,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
%\fi
% \section{File \texttt{bidi.tex}}
% \begin{macrocode}
-\def\bididate{2018/10/11}
+\def\bididate{2018/10/12}
\catcode`@=11
-\def\bidi@version{34.8}
+\def\bidi@version{34.9}
\let \protect \relax
\newlinechar`\^^J
\edef\@bidi@info{****************************************************^^J%
@@ -2377,7 +2380,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
}
\def\@bidi@pdfcustomproperties{%
This is the bidi package, Version \bidi@version,
- Released October 11, 2018.
+ Released October 12, 2018.
}
\def\bidi@pdfm@mark{%
\special{pdf:%
@@ -3138,7 +3141,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
% \section{File \texttt{biditools.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biditools}[2018/10/04 v1.6 Programming tools for bidi package]
+\ProvidesPackage{biditools}[2018/10/12 v1.7 Programming tools for bidi package]
\providecommand{\@bidi@saveprimitive}[2]{\begingroup\escapechar`\\\relax
\edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
\ifx\@tempa\@tempb \global\let#2#1%
@@ -3918,6 +3921,24 @@ ill-advised in the old versions of bidi package.%
\def\bidi@nameedef#1{\expandafter\edef\csname #1\endcsname}
\def\bidi@namexdef#1{\expandafter\xdef\csname #1\endcsname}
+% From David Carlisle:
+% The \@stpelt redefinition below belongs to Heiko Oberdiek
+% See also https://github.com/ho-tex/oberdiek/issues/26
+
+\let\@bidi@stepcounter\stepcounter
+\let\@bidi@@stpelt\@stpelt
+
+\def\@stpelt#1{%
+ \ifcsname bidi@reset@#1@perpage\endcsname
+ \begingroup
+ \let\stepcounter\@bidi@stepcounter
+ \@bidi@@stpelt{#1}%
+ \endgroup
+ \expandafter\@gobbletwo
+ \fi
+ \@bidi@@stpelt{#1}%
+}
+
\bidi@pretocmd\stepcounter
{%
\if@bidi@csundef{bidi@stepcounterhook@@#1}{}{%