summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-10 21:32:55 +0000
committerKarl Berry <karl@freefriends.org>2016-05-10 21:32:55 +0000
commit2bdc503b5e600981a5e34b591b90015d7485d086 (patch)
treeacca040d207ffcf1cace1db445b04bf9e365a33d /Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
parent54f636c57e0099a927e9c6093e67c97562a011a7 (diff)
bidi (10may16)
git-svn-id: svn://tug.org/texlive/trunk@41016 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def72
1 files changed, 50 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
index c2d6f521c8d..cb8cfc2f9d9 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{46457}
+%% \CheckSum{46913}
%% \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{extrafootnotefeatures-xetex-bidi.def}[2016/05/09 v0.9 bidi extra footnote features for XeTeX engine]
+\ProvidesFile{extrafootnotefeatures-xetex-bidi.def}[2016/05/10 v1 bidi extra footnote features for XeTeX engine]
\let\autofootnoterule\relax
\let\rightfootnoterule\relax
\let\leftfootnoterule\relax
@@ -161,6 +161,8 @@
\bidi@ensure@newlength{\footmarksep}
\bidi@ensure@newlength{\footparindent}
\bidi@ensure@newcommand*{\footmarkstyle}[1]{\def\footscript##1{#1}}
+\bidi@ensure@newcommand*{\LTRfootmarkstyle}[1]{\def\LTRfootscript##1{#1}}
+\bidi@ensure@newcommand*{\RTLfootmarkstyle}[1]{\def\RTLfootscript##1{#1}}
\bidi@ensure@newcommand{\footfootmark}{%
\ifdim\footmarkwidth < \z@
\llap{\hb@xt@ -\footmarkwidth{%
@@ -173,7 +175,33 @@
\hb@xt@\footmarkwidth{\hss\normalfont\footscript{\@thefnmark}}%
\fi
\fi}
+\bidi@ensure@newcommand{\LTRfootfootmark}{%
+ \ifdim\footmarkwidth < \z@
+ \llap{\hb@xt@ -\footmarkwidth{%
+ \hss\normalfont\LTRfootscript{\@thefnmark}}%
+ \hspace*{-\footmarkwidth}}%
+ \else
+ \ifdim\footmarkwidth = \z@
+ {\normalfont\LTRfootscript{\@thefnmark}}%
+ \else
+ \hb@xt@\footmarkwidth{\hss\normalfont\LTRfootscript{\@thefnmark}}%
+ \fi
+ \fi}
+\bidi@ensure@newcommand{\RTLfootfootmark}{%
+ \ifdim\footmarkwidth < \z@
+ \llap{\hb@xt@ -\footmarkwidth{%
+ \hss\normalfont\RTLfootscript{\@thefnmark}}%
+ \hspace*{-\footmarkwidth}}%
+ \else
+ \ifdim\footmarkwidth = \z@
+ {\normalfont\RTLfootscript{\@thefnmark}}%
+ \else
+ \hb@xt@\footmarkwidth{\hss\normalfont\RTLfootscript{\@thefnmark}}%
+ \fi
+ \fi}
\footmarkstyle{\textsuperscript{#1}}
+\LTRfootmarkstyle{\textsuperscript{#1}}
+\RTLfootmarkstyle{\textsuperscript{#1}}
\setlength{\footmarkwidth}{1em plus.4em minus.4em}
\setlength{\footparindent}{1em}
\bidi@ensure@newcommand{\m@mdoextrafeet}{\extrafeetins}
@@ -304,10 +332,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@twocolLTRfootfmt}[1]{%
\@preamtwofmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@twocolRTLfootfmt}[1]{%
\@preamtwofmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mptwocolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -450,10 +478,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@threecolLTRfootfmt}[1]{%
\@preamthreefmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@threecolRTLfootfmt}[1]{%
\@preamthreefmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpthreecolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -595,10 +623,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@fourcolLTRfootfmt}[1]{%
\@preamfourfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@fourcolRTLfootfmt}[1]{%
\@preamfourfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpfourcolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -744,10 +772,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@fivecolLTRfootfmt}[1]{%
\@preamfivefmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@fivecolRTLfootfmt}[1]{%
\@preamfivefmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpfivecolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -893,10 +921,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@sixcolLTRfootfmt}[1]{%
\@preamsixfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@sixcolRTLfootfmt}[1]{%
\@preamsixfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpsixcolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\global\setbox\@mpfootinsv@r\vbox{%
\unvbox\@mpfootinsv@r
@@ -1042,10 +1070,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@sevencolLTRfootfmt}[1]{%
\@preamsevenfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@sevencolRTLfootfmt}[1]{%
\@preamsevenfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpsevencolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\global\setbox\@mpfootinsv@r\vbox{%
\unvbox\@mpfootinsv@r
@@ -1191,10 +1219,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@eightcolLTRfootfmt}[1]{%
\@preameightfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@eightcolRTLfootfmt}[1]{%
\@preameightfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpeightcolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -1340,10 +1368,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@ninecolLTRfootfmt}[1]{%
\@preamninefmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@ninecolRTLfootfmt}[1]{%
\@preamninefmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mpninecolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -1489,10 +1517,10 @@
{\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@tencolLTRfootfmt}[1]{%
\@preamtenfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@tencolRTLfootfmt}[1]{%
\@preamtenfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
\bidi@ensure@newcommand{\@mptencolfootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
\unvbox\@mpfootinsv@r
@@ -1689,11 +1717,11 @@
\bidi@ensure@newcommand{\@paraLTRfootfmt}[1]{%
\parindent=\z@
\parfillskip=0pt \@plus 1fil
- {\footfootmark\strut {\LTRfoottextfont #1}\penalty-10}}
+ {\LTRfootfootmark\strut {\LTRfoottextfont #1}\penalty-10}}
\bidi@ensure@newcommand{\@paraRTLfootfmt}[1]{%
\parindent=\z@
\parfillskip=0pt \@plus 1fil
- {\footfootmark\strut {\RTLfoottextfont #1}\penalty-10}}
+ {\RTLfootfootmark\strut {\RTLfoottextfont #1}\penalty-10}}
\bidi@ensure@newcommand{\@mpparafootnotetext}[1]{%
\global\setbox\@mpfootinsv@r\vbox{%
\let\bidi@RTL@everypar\@empty%