summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-09-25 21:41:18 +0000
committerKarl Berry <karl@freefriends.org>2014-09-25 21:41:18 +0000
commitf1cd3caa2905cec5cd83d4b53e3c11287dcc50cb (patch)
tree58bfb624e8d7bdd2a4d1573e55ba1efec71d9199 /Master/texmf-dist/source/xelatex
parent1774462ee3e140412a989f454c5f8763ba6e7758 (diff)
bidi (25sep14)
git-svn-id: svn://tug.org/texlive/trunk@35259 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.dtx203
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.ins4
2 files changed, 181 insertions, 26 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index 68c28d4d5e1..4a905e3152c 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
-v15.6
+v15.7
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -15,11 +15,21 @@ This version fixes bugs and adds new features; for more details please see
the Change History section at the end of the documentation.
-Current version release date: 2014/09/20
+If you want to report any bugs or typos and corrections in the documentation,
+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/persian-tex/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: 2014/09/25
___________________
Vafa Khalighi
-tex.ctan@gmail.com
+persian-tex@tug.org
Copyright © 2007–2014
It may be distributed and/or modified under the LaTeX Project Public License,
@@ -39,7 +49,7 @@ by Vafa Khalighi.
\preamble
__________________________________________________
- Copyright © 2009–2014 Vafa Khalighi <tex.ctan@gmail.com>
+ Copyright © 2009–2014 Vafa Khalighi <persian-tex@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
@@ -198,13 +208,16 @@ by Vafa Khalighi.
%
%<*driver>
\documentclass{ltxdoc}
+\usepackage{fontspec}
+\setmainfont[Ligatures=TeX,Numbers=OldStyle]{Iwona}
\usepackage{calc}
\usepackage{pifont}
\usepackage{bbding}
\usepackage{bidicode}
+\usepackage{microtype}
\definecolor{bidiblue}{rgb}{0.1,0.2,0.8}
\usepackage[numbered]{hypdoc}
-\hypersetup{pdftitle={The \textsf{bidi} Package (Bidirectional typesetting in plain \TeX{} and \LaTeX, using Xe\TeX{} engine)},pdfauthor={Vafa Khalighi <tex.ctan@gmail.com>},linkcolor=bidiblue,urlcolor=bidiblue,citecolor=bidiblue}
+\hypersetup{pdftitle={The \textsf{bidi} Package (Bidirectional typesetting in plain \TeX{} and \LaTeX, using Xe\TeX{} engine)},pdfauthor={Vafa Khalighi <persian-tex@tug.org>},linkcolor=bidiblue,urlcolor=bidiblue,citecolor=bidiblue}
\setlength\columnseprule{.4pt}
\newcommand\XeTeX{Xe\TeX}
\newcommand\XeLaTeX{Xe\LaTeX}
@@ -216,7 +229,64 @@ by Vafa Khalighi.
\begin{multicols}{2}[\section*{\contentsname}]\small
\@starttoc{toc}\relax
\end{multicols}}
+\newbox\bidilogobox
+\sbox{\bidilogobox}{\includegraphics[height=0.5in,keepaspectratio=true]{bidi-logo}}
+\def\ps@docheadings{%
+ \let\@oddhead\@empty
+ \def\@oddfoot{\parbox{\textwidth}{\hfill\leftmark\quad\thepage\qquad\raisebox{-0.2in}{\usebox\bidilogobox}}}%
+ \let\@mkboth\markboth
+ \def\sectionmark##1{%
+ \markboth {%
+ ##1}{}}}
+\def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large\bfseries\color{blue!65!black} \partname\nobreakspace\thepart
+ \par\nobreak
+ \fi
+ \huge \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\def\@spart#1{%
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \huge \bfseries\color{blue!65!black} #1\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\Large\bfseries\color{blue!65!black}}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\large\bfseries\color{blue!65!black}}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
+\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\color{blue!65!black}}}
\makeatother
+\pagestyle{docheadings}
\newcounter{local}
\renewcommand\theenumi{\protect\setcounter{local}%
{201+\the\value{enumi}}\protect\ding{\value{local}}}
@@ -242,14 +312,52 @@ by Vafa Khalighi.
%
% \GetFileInfo{\jobname.dtx}
%\changes{v13.9}{2013/09/23}{Added implementaion of the package.}
-% \title{The \textsf{bidi} Package\\[10pt]
-% \includegraphics[width=0.5\textwidth]{bidi-logo}\\[10pt]
-% Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine}
+% \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 15.7}}
% \author{Vafa Khalighi\\
-% \url{tex.ctan@gmail.com}}
-% \date{\today\qquad Version 15.6}
+% \url{persian-tex@tug.org}}
+%\setcounter{page}{0}
+%\thispagestyle{empty}
+%\includegraphics[width=.3\textwidth]{bidi-logo}\qquad
+%\parindent 0pt
+%\vbox{\Huge
+%\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
+%
+%\Large
+%Documentation for \textcolor{blue!65!black}{version 15.7}}
+%
+%\vskip 0pt plus 3fill
+%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
+%
+%\vskip 0pt plus 3fill
+%{\color{red!85!black}\fbox{\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}
+%If you want to report any bugs or typos and corrections in the documentation,
+%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:
+%
+%\medskip
+% \centerline{\url{https://github.com/persian-tex/bidi/issues}}
+%
+%\medskip
+%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).
+%\end{minipage}
+%}}
+%
+%\vskip 0pt plus 3fill
+%
+%Copyright © 2007–2014 Vafa Khalighi
+%
+%\medskip
+%Permission is granted to distribute and/or modify \emph{both the documentation and the code} under the conditions of the \LaTeX{} Project Public License, either version 1.3c of this license or (at your option) any later version.
+%
+%\clearpage
%\maketitle
% \tableofcontents
+%\clearpage
%\section*{Introduction}
%\textsf{bidi} provides a convenient interface for typesetting bidirectional texts in plain \TeX\ and \LaTeX, using the \XeTeX{} engine.
%
@@ -268,14 +376,16 @@ by Vafa Khalighi.
%*
%* Copyright © 2009–2014 Vafa Khalighi
%*
-%* 2014/09/20, v15.6
+%* 2014/09/25, v15.7
%*
%* License: LaTeX Project Public License, version
%* 1.3c or higher (your choice)
%*
%* Location on CTAN: /macros/xetex/latex/bidi
%*
-%* Support: tex.ctan@gmail.com
+%* Issue tracker: https://github.com/persian-tex/bidi/issues
+%*
+%* Support: persian-tex@tug.org
%****************************************************
%\end{verbatim}
%\part{\LaTeX\ Manual}
@@ -1023,7 +1133,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{42025}
+%% \CheckSum{42082}
%% \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
@@ -2554,8 +2664,8 @@ by Vafa Khalighi.
% \subsection{\textsf{bidi.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2014/09/20}
-\def\bidiversion{v15.6}
+\def\bididate{2014/09/25}
+\def\bidiversion{v15.7}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\@bidi@info{****************************************************^^J%
@@ -2577,7 +2687,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/bidi^^J%
* ^^J%
-* Support: tex.ctan@gmail.com^^J%
+* Issue tracker: https://github.com/persian-tex/bidi/issues^^J%
+* ^^J%
+* Support: persian-tex@tug.org^^J%
****************************************************}
\typeout{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
@@ -2588,6 +2700,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
\RequirePackage{zref-abspage}
\RequirePackage{auxhook}
\RequirePackage{ltxcmds}
+\RequirePackage{xkeyval}
\eqnewif{\if@RTLmain}{\if@rlmain}
\eqnewif{\if@RTL}{\if@rl}
\newif\if@Latin
@@ -2619,10 +2732,50 @@ Bidirectional typesetting in plain TeX and LaTeX]
\errmessage{Missing left brace has been substituted}\fi \bgroup}
\input{latex-xetex-bidi.def}
\input{loadingorder-xetex-bidi.def}
-\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
-\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
-\DeclareOption{extrafootnotefeatures}{\@extrafootnotefeaturestrue}
-\ProcessOptions
+\define@choicekey{bidi.sty}{RTLdocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \@RTLtrue
+ \or
+ \@RTLfalse
+ \fi}
+\define@choicekey{bidi.sty}{rldocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \@RTLtrue
+ \or
+ \@RTLfalse
+ \fi}
+\define@choicekey{bidi.sty}{footnoterule}[\bidi@tempa\bidi@tempb]{automatic,left,right,split,textwidth}{%
+ \ifcase\bidi@tempb\relax
+ \autofootnoterule
+ \or
+ \leftfootnoterule
+ \or
+ \rightfootnoterule
+ \or
+ \SplitFootnoteRule
+ \or
+ \textwidthfootnoterule
+ \fi}
+\define@choicekey{bidi.sty}{footnotedirection}[\bidi@tempa\bidi@tempb]{righttoleft,lefttoright}{%
+ \ifcase\bidi@tempb\relax
+ \@RTL@footnotetrue
+ \or
+ \@RTL@footnotefalse
+ \fi}
+\define@choicekey{bidi.sty}{debugfootnotedirection}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \footdir@debugtrue
+ \or
+ \footdir@debugfalse
+ \fi}
+\define@choicekey{bidi.sty}{extrafootnotefeatures}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
+ \ifcase\bidi@tempb\relax
+ \@extrafootnotefeaturestrue
+ \or
+ \@extrafootnotefeaturesfalse
+ \fi}
+
+\ProcessOptionsX
\if@extrafootnotefeatures
\input{extrafootnotefeatures-xetex-bidi.def}
@@ -2634,7 +2787,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
%\fi
% \subsection{\textsf{bidi.tex}}
% \begin{macrocode}
-\def\bididate{2014/09/20}
+\def\bididate{2014/09/25}
\def\bidiversion{v0.2}
\catcode`@=11
\let \protect \relax
@@ -2658,7 +2811,9 @@ Bidirectional typesetting in plain TeX and LaTeX]
* ^^J%
* Location on CTAN: /macros/xetex/latex/bidi^^J%
* ^^J%
-* Support: tex.ctan@gmail.com^^J%
+* Issue tracker: https://github.com/persian-tex/bidi/issues^^J%
+* ^^J%
+* Support: persian-tex@tug.org^^J%
****************************************************}
\message{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
@@ -19984,7 +20139,7 @@ dynamic frame when using one of the \cmdname{Ncolumntop} type of commands.
\mobile{۰۹۱۸۹۶۹۴۹۶}
\phone{۹۸۹۰۸۳۴۱}
\fax{۹۸۹۰۸۳۴۲}
-\email{tex.ctan@gmail.com}
+\email{persian-tex@tug.org}
\extrainfo{اطلاعات اضافی}
\photo[64pt]{picture}
\quote{نقل قول}
@@ -20057,7 +20212,7 @@ dynamic frame when using one of the \cmdname{Ncolumntop} type of commands.
\mobile{۰۹۱۸۹۶۹۴۹۶}
\phone{۹۸۹۰۸۳۴۱}
\fax{۹۸۹۰۸۳۴۲}
-\email{tex.ctan@gmail.com}
+\email{persian-tex@tug.org}
\extrainfo{اطلاعات اضافی}
\photo[64pt]{picture}
\quote{نقل قول}
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.ins b/Master/texmf-dist/source/xelatex/bidi/bidi.ins
index 6912053eb75..db03765e7af 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.ins
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.ins
@@ -7,7 +7,7 @@
%% bidi.dtx (with options: `batchfile')
%%
%% __________________________________________________
-%% Copyright © 2009–2014 Vafa Khalighi <tex.ctan@gmail.com>
+%% Copyright © 2009–2014 Vafa Khalighi <persian-tex@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
@@ -22,7 +22,7 @@
\preamble
__________________________________________________
- Copyright © 2009–2014 Vafa Khalighi <tex.ctan@gmail.com>
+ Copyright © 2009–2014 Vafa Khalighi <persian-tex@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