aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-03-09 17:30:30 +0100
committerRobert Alessi <alessi@robertalessi.net>2016-03-09 17:30:30 +0100
commit5e99d14d5c541e5e433571764f0e6bca4a942dfd (patch)
treedc677940ec4fa9a97857ab61966078d7b4369207 /arabluatex.dtx
parent7429fe6075af086ea8a0366a1d8cb64fcdcf5a87 (diff)
downloadarabluatex-5e99d14d5c541e5e433571764f0e6bca4a942dfd.tar.gz
corrected clean-up function for hyphen
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx41
1 files changed, 23 insertions, 18 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 6c89aa4..cad42c7 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -50,7 +50,7 @@
50\usepackage{longtable} 50\usepackage{longtable}
51\usepackage{booktabs} 51\usepackage{booktabs}
52\usepackage{tikz} 52\usepackage{tikz}
53\usepackage[skins]{tcolorbox} 53\usepackage[skins,listings]{tcolorbox}
54\usepackage{csquotes} 54\usepackage{csquotes}
55\usepackage[style=authoryear, natbib]{biblatex} 55\usepackage[style=authoryear, natbib]{biblatex}
56\addbibresource{arabluatex.bib} 56\addbibresource{arabluatex.bib}
@@ -124,7 +124,7 @@
124% transliteration. It is particularly well-suited for complex 124% transliteration. It is particularly well-suited for complex
125% documents such as technical documents or critical editions where a 125% documents such as technical documents or critical editions where a
126% lot of left-to-right commands intertwine with Arabic 126% lot of left-to-right commands intertwine with Arabic
127% writing. \package{arabluatex} is able to process any Arab\TeX\ 127% writing. \pkg*{arabluatex} is able to process any Arab\TeX\
128% input notation. Its output can be set in the same modes of 128% input notation. Its output can be set in the same modes of
129% vocalization as Arab\TeX\ ones, or in different roman 129% vocalization as Arab\TeX\ ones, or in different roman
130% transliterations. It further allows some typographical 130% transliterations. It further allows some typographical
@@ -159,9 +159,9 @@
159% say so---it will eventually provide all of its valuable qualities to 159% say so---it will eventually provide all of its valuable qualities to
160% the \LuaLaTeX\ users. 160% the \LuaLaTeX\ users.
161% 161%
162% \package{arabtex} dates back to 1992. As far as I know, it was then 162% \pkg{arabtex} dates back to 1992. As far as I know, it was then
163% the first and only way to typeset Arabic texts with \TeX\ and 163% the first and only way to typeset Arabic texts with \TeX\ and
164% \LaTeX. To achieve this, \package{arabtex} provided---and still 164% \LaTeX. To achieve this, \pkg{arabtex} provided---and still
165% does---an Arabic font in \emph{Nasḫī} style and a macro package that 165% does---an Arabic font in \emph{Nasḫī} style and a macro package that
166% defined its own input notation which was, as the author stated, 166% defined its own input notation which was, as the author stated,
167% \enquote{both machine, and human, readable, and suited for 167% \enquote{both machine, and human, readable, and suited for
@@ -210,26 +210,26 @@
210% that can stand to close grammatical scrutiny and to complex textual 210% that can stand to close grammatical scrutiny and to complex textual
211% searches as well. 211% searches as well.
212% 212%
213% Having that in mind, I started \package{arabluatex}. With the help 213% Having that in mind, I started \pkg*{arabluatex}. With the help
214% of Lua, it will eventually interact with some other packages yet to 214% of Lua, it will eventually interact with some other packages yet to
215% come to produce from \verb|.tex| source files, in addition to 215% come to produce from \verb|.tex| source files, in addition to
216% printed books, \texttt{TEI xml} compliant critical editions and/or 216% printed books, \texttt{TEI xml} compliant critical editions and/or
217% lexicons that can be searched, analyzed and correlated in various 217% lexicons that can be searched, analyzed and correlated in various
218% ways. 218% ways.
219% 219%
220%\subsection{\package{arabluatex} is for \LuaLaTeX} 220%\subsection{\pkg*{arabluatex} is for \LuaLaTeX}
221% It goes without saying that \package{arabluatex} requires 221% It goes without saying that \pkg*{arabluatex} requires
222% \LuaLaTeX. \TeX\ and \LaTeX\ have \package{arabtex}, and \XeLaTeX\ 222% \LuaLaTeX. \TeX\ and \LaTeX\ have \pkg*{arabtex}, and \XeLaTeX\
223% has \package{arabxetex}. Both of them are much more advanced than 223% has \pkg*{arabxetex}. Both of them are much more advanced than
224% \package{arabluatex}, as they can process a number of different 224% \pkg*{arabluatex}, as they can process a number of different
225% languages,\footnote{To date, both packages support Arabic, Maghribi, 225% languages,\footnote{To date, both packages support Arabic, Maghribi,
226% Urdu, Pashto, Sindhi, Kashmiri, Uighuric and Old Malay; in addition 226% Urdu, Pashto, Sindhi, Kashmiri, Uighuric and Old Malay; in addition
227% to these, \package{arabtex} also has a Hebrew mode, including 227% to these, \pkg*{arabtex} also has a Hebrew mode, including
228% Judeo-Arabic and Yiddish.} whereas \package{arabluatex} can process 228% Judeo-Arabic and Yiddish.} whereas \pkg*{arabluatex} can process
229% only Arabic for the time being. More languages will be included in 229% only Arabic for the time being. More languages will be included in
230% future releases of \package{arabluatex}. 230% future releases of \pkg*{arabluatex}.
231% 231%
232% In comparison to \package{arabxetex}, \package{arabluatex} works in 232% In comparison to \pkg*{arabxetex}, \pkg*{arabluatex} works in
233% a very different way. The former relies on the 233% a very different way. The former relies on the
234% \href{http://scripts.sil.org/TECkitIntro}{\texttt{TECkit}} engine 234% \href{http://scripts.sil.org/TECkitIntro}{\texttt{TECkit}} engine
235% which converts Arab\TeX\ input on the fly into Unicode Arabic 235% which converts Arab\TeX\ input on the fly into Unicode Arabic
@@ -246,7 +246,12 @@
246% processing. 246% processing.
247% 247%
248% \section{Usage} 248% \section{Usage}
249% \sinceversion{1.0} 249% \subsection{Getting started}
250% As usual put in your preamble:
251% \begin{commands}
252% \command{usepackage}[\Marg{arabluatex}]
253% \end{commands}
254%
250% \begin{options} 255% \begin{options}
251% \opt{voc}\Default{voc} Vocalized Arabic 256% \opt{voc}\Default{voc} Vocalized Arabic
252% \opt{novoc} Full vocalized Arabic 257% \opt{novoc} Full vocalized Arabic
@@ -296,7 +301,7 @@
296[2016/01/26 v1.0 ArabTeX-like interface for LuaLaTeX] 301[2016/01/26 v1.0 ArabTeX-like interface for LuaLaTeX]
297\RequirePackage{ifluatex} 302\RequirePackage{ifluatex}
298% \end{macrocode} 303% \end{macrocode}
299% \package{arabluatex} requires \LuaLaTeX\ of course. 304% \pkg*{arabluatex} requires \LuaLaTeX\ of course.
300% \begin{macrocode} 305% \begin{macrocode}
301\ifluatex\else 306\ifluatex\else
302 \PackageError{arabluatex}{lualatex needed}{% 307 \PackageError{arabluatex}{lualatex needed}{%
@@ -325,8 +330,8 @@
325\RequirePackage{environ} 330\RequirePackage{environ}
326\luadirect{dofile(kpse.find_file("arabluatex.lua"))} 331\luadirect{dofile(kpse.find_file("arabluatex.lua"))}
327% \end{macrocode} 332% \end{macrocode}
328% This is needed by the current versions of \package{polyglossia} and 333% This is needed by the current versions of \pkg*{polyglossia} and
329% \package{luabidi}. \package{luabidi} provides a \cs{Footnote} 334% \pkg*{luabidi}. \pkg*{luabidi} provides a \cs{Footnote}
330% command. Use it as well if it is loaded. 335% command. Use it as well if it is loaded.
331% \begin{macrocode} 336% \begin{macrocode}
332\luadirect{tex.enableprimitives("luatex",tex.extraprimitives("omega"))} 337\luadirect{tex.enableprimitives("luatex",tex.extraprimitives("omega"))}