summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-09 20:26:52 +0000
committerKarl Berry <karl@freefriends.org>2018-10-09 20:26:52 +0000
commit815ff6f1c227df5cd720c1db1b0a4b9e6c6398d0 (patch)
tree2dd799a7b09fba1f5f36a99f7e9166c535534901 /Master/texmf-dist/source/lualatex
parent48ea6378daabbb2e379b09ea33972c665b3b12ec (diff)
arabluatex (9oct18)
git-svn-id: svn://tug.org/texlive/trunk@48868 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/lualatex')
-rw-r--r--Master/texmf-dist/source/lualatex/arabluatex/README.tex2
-rw-r--r--Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx119
2 files changed, 92 insertions, 29 deletions
diff --git a/Master/texmf-dist/source/lualatex/arabluatex/README.tex b/Master/texmf-dist/source/lualatex/arabluatex/README.tex
index 24da0c71b8f..26a07c92386 100644
--- a/Master/texmf-dist/source/lualatex/arabluatex/README.tex
+++ b/Master/texmf-dist/source/lualatex/arabluatex/README.tex
@@ -88,7 +88,7 @@ to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
\verb+arabluatex.sty+ file;
\item To finish the installation you have to move the following files
into a directory where LaTeX can find them. See the FAQ on
- \verb|tex.ac.uk| at
+ \verb|texfaq.org| at
\url{https://texfaq.org/FAQ-inst-wlcf} for more on this:
\begin{itemize}
\item \verb|arabluatex.sty|
diff --git a/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx b/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx
index 8fadee2d105..4173695fad5 100644
--- a/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx
+++ b/Master/texmf-dist/source/lualatex/arabluatex/arabluatex.dtx
@@ -27,7 +27,7 @@
%<package-info>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package-info>\ProvidesPackage{arabluatex}
%<*package-info>
- [2018/08/29 v1.14 An ArabTeX-like interface for LuaLaTeX]
+ [2018/10/09 v1.15 An ArabTeX-like interface for LuaLaTeX]
%</package-info>
%
%<*driver>
@@ -158,13 +158,14 @@
\usepackage{newunicodechar}
\newunicodechar{ǧ}{ǧ} % Old Standard does not include ǧ/Ǧ
\newunicodechar{Ǧ}{Ǧ} %
-\usepackage{arabluatex}[2018/08/29]
+\usepackage{arabluatex}[2018/10/09]
\usepackage[nopar]{quran}
\usepackage[noindex]{nameauth}
\usepackage{varioref}
\usepackage{hyperxmp}
\PassOptionsToPackage{pdfa}{hyperref}
\usepackage{hypdoc}
+\usepackage{uri}
\usepackage{bookmark}
\usepackage{authblk}
\hypersetup{unicode=true, colorlinks, allcolors=blue,
@@ -203,19 +204,16 @@
\usepackage{needspace}
\usepackage{tikz}
\usepackage[breakable, skins, listings, xparse]{tcolorbox}
-\DeclareTCBListing{arabluacode}{s O{}}{colback=white, boxrule=.15mm,
- colframe=red!50!white, left=6mm, breakable, listing
+\tcbset{colback=white, boxrule=.15mm, colframe=red!50!white, left=6mm,
+ breakable}
+\DeclareTCBListing{arabluacode}{s O{}}{listing
options={style=tcblatex, numbers=left, numberstyle=\tiny},
IfBooleanTF={#1}{listing side text}{#2}}
-\DeclareTCBListing{arabluaverbatim}{}{colback=white, boxrule=.15mm,
- colframe=red!50!white, left=6mm, breakable, listing
- options={style=tcblatex, numbers=left, numberstyle=\tiny}, listing
- only}
-\DeclareTotalTCBox{\arabluaverb}{v}{verbatim, colback=white,
- boxrule=.15mm, colframe=red!50!white}{#1}
+\DeclareTCBListing{arabluaverbatim}{}{listing options={style=tcblatex,
+ numbers=left, numberstyle=\tiny}, listing only}
+\DeclareTotalTCBox{\arabluaverb}{v}{verbatim}{#1}
\DeclareTotalTCBox{\arabluabox}{m}{left=0mm, right=0mm, top=0mm,
- bottom=0mm, colback=white, boxrule=.15mm,
- colframe=red!50!white}{#1}
+ bottom=0mm}{#1}
\newcommand{\package}[1]{\textsf{#1}\index{#1=#1 (package)}}
\usepackage{csquotes}
\DeclareQuoteStyle{arabic}
@@ -314,13 +312,13 @@
% \hskip 1sp \marginpar{\small\sffamily\raggedright
% New feature\\#1}}
%
-% \title{\tcbox[enhanced, tikznode, drop lifted shadow, colback=white,
-% boxrule=.25mm]%
+% \title{\tcbox[colframe=black, enhanced, tikznode, drop lifted
+% shadow, colback=white, boxrule=.25mm]%
% {The \textsf{arabluatex} package\\
% \fileversion\ -- \filedate}}
%
% \author{Robert Alessi \\
-% \href{mailto:alessi@robertalessi.net?Subject=arabluatex}%
+% \href{mailto:alessi@robertalessi.net?Subject=arabluatex package}%
% {\texttt{alessi@robertalessi.net}}}
% \date{}
%
@@ -358,8 +356,7 @@
% Please send error reports and suggestions for improvements to Robert
% Alessi:
% \begin{itemize}
-% \item email: <\href{mailto:alessi@robertalessi.net?Subject=arabluatex}%
-% {\texttt{alessi@robertalessi.net}}>
+% \item email: \mailto[arabluatex package]{alessi@roberalessi.net}
% \item website: \url{http://www.robertalessi.net/arabluatex}
% \item development: \url{http://git.robertalessi.net/arabluatex}
% \item comments, feature requests, bug reports:
@@ -2613,6 +2610,68 @@ word that \cs{arbnull} is applied to.
%</example>
% \fi
%
+% \subsection{\texorpdfstring{The \prname{qur'An}}{The Qurʾān}}
+% \label{sec:the-quran}
+% This sub-part is destined to become a part of its own, as fine
+% typesetting of \prname{qur'An}ic text is planned in the versions of
+% \package{arabluatex} to come in the medium-term. New functions and
+% new Arabic modes will be available as \package{arabluatex} will
+% mature.
+%
+% \DescribeMacro{\ayah}\NEWfeature{v1.15}For the time being,
+% \cs{ayah}\marg{3-digit number} is provided so as to typeset the
+% number of the \arb[trans]{'AyaT} that it is referred to inside the
+% dedicated mark---Unicode |U+06DD|: \txarb{^^^^06dd}---in Arabic
+% script or inside parentheses in romanized Arabic:---
+% \begin{quote}
+% |\ayah{123}| \arb{\ayah{123}} \arb[trans]{\ayah{123}}.
+% \end{quote}
+%
+% An example follows:---
+% \iffalse
+%<*example>
+% \fi
+\begin{arabluacode}
+ \SetArbDflt*
+ \newarbmark{alifsp}{^^^^0627}{\arb[trans]{'alif} }
+ \newarbmark{lamsp}{^^^^0644^^^^0653}{\arb[trans]{lAm} }
+ \newarbmark{mim}{^^^^0645^^^^0653}{\arb[trans]{mIm}}
+ \begin{arab}[fullvoc]
+ min ((sUraTi \uc{'l-b}aqaraTi)):
+ \end{arab}
+ \begin{arab}[fullvoc]
+ \arbmark{alifsp}\arbmark{lamsp}\arbmark{mim}~\ayah{1}
+ _d_alika 'l-kit_abu lA rayba fI-hi hudaN_A
+ li-l-muttaqIna~\ayah{2} 'lla_dIna yu'minUna bi-'l-.gaybi
+ wa-yuqImUna 'l-.sal_aUTa wa-mimmA razaqn_a-hum
+ yunfiqUna~\ayah{3}
+ \end{arab}
+\end{arabluacode}
+\begin{arabluacode}[text only]
+ \SetArbDflt*
+ \begin{arab}[trans]
+ min ((sUraTi \uc{'l-b}aqaraTi)):
+ \end{arab}
+ \begin{arab}[trans]
+ \arbmark{alifsp}\arbmark{lamsp}\arbmark{mim}~\ayah{1}
+ _d_alika 'l-kit_abu lA rayba fI-hi hudaN_A
+ li-l-muttaqIna~\ayah{2} 'lla_dIna yu'minUna bi-'l-.gaybi
+ wa-yuqImUna 'l-.sal_aUTa wa-mimmA razaqn_a-hum
+ yunfiqUna~\ayah{3}
+ \end{arab}
+\end{arabluacode}
+% \iffalse
+%</example>
+% \fi
+%
+% \paragraph{Caveat}
+% For some reason, most of the Arabic fonts do not show the number
+% properly: some are only able to display at most two digits, while
+% others display the digits outside the \enquote*{end of
+% \arb[trans]{'AyaT}} sign, let alone those that print the digits
+% stacked. To the knowledge of the writer, this should be reported to
+% the developpers of those fonts.
+%
% \section{Color}
% \label{sec:color}
% \NEWfeature{v1.12}\package{arabluatex} is able to render in color
@@ -4240,7 +4299,7 @@ wa-ya.sIru ta.hta 'l-jild-i
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{arabluatex}%
-[2018/08/29 v1.14 An ArabTeX-like interface for LuaLaTeX]
+[2018/10/09 v1.15 An ArabTeX-like interface for LuaLaTeX]
\RequirePackage{ifluatex}
% \end{macrocode}
% \package{arabluatex} requires \hologo{LuaLaTeX} of course. Issue a
@@ -4566,25 +4625,19 @@ wa-ya.sIru ta.hta 'l-jild-i
\NewDocumentCommand{\arb}{O{\al@mode} +m}%
{\edef\@tempa{#1}%
\ifx\@tempa\al@mode@voc%
- \booltrue{al@rlmode}%
- \bgroup\textdir TRT\arabicfont%
+ \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont%
\luadirect{tex.sprint(processvoc(\luastringN{#2},
\luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup%
- \boolfalse{al@rlmode}%
\else%
\ifx\@tempa\al@mode@fullvoc%
- \booltrue{al@rlmode}%
- \bgroup\textdir TRT\arabicfont%
+ \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont%
\luadirect{tex.sprint(processfullvoc(\luastringN{#2},
\luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup%
- \boolfalse{al@rlmode}%
\else%
\ifx\@tempa\al@mode@novoc%
- \booltrue{al@rlmode}%
- \bgroup\textdir TRT\arabicfont%
+ \bgroup\booltrue{al@rlmode}\textdir TRT\arabicfont%
\luadirect{tex.sprint(processnovoc(\luastringN{#2},
\luastringO{\al@arb@rules}, \luastringO{\al@input@scheme}))}\egroup%
- \boolfalse{al@rlmode}%
\else%
\ifx\@tempa\al@mode@trans%
\bgroup\textdir TLT\al@trans@style%
@@ -4794,6 +4847,16 @@ wa-ya.sIru ta.hta 'l-jild-i
\fi}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\ayah}\changes{v1.15}{2018/10/09}{Prints End of Ayah
+% sign}\cs{ayah}\marg{number} prints up to 3-digit numbers inside
+% \enquote*{end of Ayah} sign (|U+06DD|) or inside parentheses
+% depending on the mode which is selected.
+% \begin{macrocode}
+\NewDocumentCommand{\ayah}{m}{%
+ \luadirect{tex.sprint(ayah(\luastringN{#1}))}}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\arbnull}
% \changes{v1.7}{2016/12/24}{New \cs{arbnull} command for putting
% back on any contextual analysis rule broken by other commands.}
@@ -4932,7 +4995,7 @@ wa-ya.sIru ta.hta 'l-jild-i
% right direction.
% \begin{macrocode}
\NewDocumentCommand{\arbpardir}{}{%
- \ifx\al@mode\al@mode@trans\setLR\else\booltrue{al@rlmode}\setRL\fi}
+ \ifx\al@mode\al@mode@trans\setLR\else\setRL\fi}
% \end{macrocode}
% \end{macro}
%