aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.ins
blob: 0ab399b31ac99e65730be535a7dabcda36edcd72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
%% This file is part of the `arabluatex' package
%%
%% ArabLuaTeX -- Processing ArabTeX notation under LuaLaTeX
%% Copyright (C) 2016--2018  Robert Alessi
%%
%% Please send error reports and suggestions for improvements to
%% Robert Alessi <alessi@robertalessi.net>
%%
%% This program is free software: you can redistribute it and/or
%% modify it under the terms of the GNU General Public License
%% as published by the Free Software Foundation, either version 3
%% of the License, or (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%% GNU General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with this program.  If not, see
%% <http://www.gnu.org/licenses/>.
%%
%% This release of 'arabluatex' consists of the following source files:
%% - arabluatex.ins
%% - arabluatex.dtx
%% - arabluatex.lua
%% - arabluatex_voc.lua
%% - arabluatex_fullvoc.lua
%% - arabluatex_novoc.lua
%% - arabluatex_trans.lua
%% 


\input docstrip.tex
\keepsilent

\usedir{tex/lualatex/arabluatex}

\preamble

This is a generated file.

This file is part of the `arabluatex' package

ArabLuaTeX -- Processing ArabTeX notation under LuaLaTeX
Copyright (C) 2016--2018  Robert Alessi

Please send error reports and suggestions for improvements to Robert
Alessi <alessi@robertalessi.net>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see
<http://www.gnu.org/licenses/>.

This release of 'arabluatex' consists of the following source files:
- arabluatex.ins
- arabluatex.dtx
- arabluatex.lua
- arabluatex_voc.lua
- arabluatex_fullvoc.lua
- arabluatex_novoc.lua
- arabluatex_trans.lua

\endpreamble

\generate{%
		  \file{arabluatex.sty}{\from{arabluatex.dtx}{package}}
		  \file{arabluatex-patch.sty}{\from{arabluatex.dtx}{patch}}
		  }

\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* files into a directory where LaTeX canfind them. See the}
\Msg{* FAQ at http://www.tex.ac.uk/faq/FAQ-inst-wlcf.html for}
\Msg{* more on this}
\Msg{*}
\Msg{* \space\space arabluatex.sty}
\Msg{* \space\space arabluatex-patch.sty}
\Msg{* \space\space arabluatex.lua}
\Msg{* \space\space arabluatex_voc.lua}
\Msg{* \space\space arabluatex_fullvoc.lua}
\Msg{* \space\space arabluatex_novoc.lua}
\Msg{* \space\space arabluatex_trans.lua}
\Msg{*}
\Msg{* To produce the documentation run the files ending with}
\Msg{* `.dtx' through LuaLaTeX.}
\Msg{*}
\Msg{* For an index, do:}
\Msg{* \space makeindex -s gind.ist -o arabluatex.ind arabluatex.idx}
\Msg{* For a list of changes, do:}
\Msg{* \space makeindex -s gglo.ist -o arabluatex.gls arabluatex.glo}
\Msg{* For a bibliography, do:}
\Msg{* \space biber arabluatex}
\Msg{*}
\Msg{* Happy TeXing!}
\Msg{***********************************************************}

\endbatchfile
style="color:#000000">{bg}{rgb}{0.95,0.95,0.95} \usepackage{ccicons} \usepackage{lineno} \usepackage{setspace} \onehalfspacing \usepackage{csquotes} \DeclareQuoteStyle{arabic} {\rmfamily\textquotedblright}{\rmfamily\textquotedblleft} {\rmfamily\textquoteright}{\rmfamily\textquoteleft} \usepackage[fullvoc]{arabluatex} \SetArbEasy \PassOptionsToPackage{pdfa}{hyperref} \usepackage{hyperxmp} \usepackage{hyperref} \hypersetup{colorlinks, linkcolor=blue, pdfauthor={Robert Alessi}} \begin{document} \begin{filecontents*}{dajaja.tex} \begin{linenumbers*} \begin{arab} kAna \cap{'a}bU 'l-\cap{h}u_dayli 'ahd_A 'il_A \cap{m}uwaysiN dajAjaTaN. wa-kAnat dajAjatu-hu 'llatI 'ahdA-hA dUna mA kAna yuttaxa_du li-\cap{m}uwaysiN. wa-l_akinna-hu bi-karami-hi wa-bi-.husni _hu\-luqi-hi 'a.zhara 'l-ta`ajjuba min simani-hA wa-.tIbi la.hmi-hA. wa-kAna <\cap{'a}bU 'l-\cap{h}u_dayli> yu`rafu bi-'l-'imsAki 'l-^sadIdi. fa-qAla: \enquote{wa-kayfa ra'ayta yA \cap{'a}bA \cap{`i}mrAna tilka 'l-dajA\-jaTa?} qAla: \enquote{kAnat `ajabaN mina 'l-`ajabi!} fa-yaqUlu: \enquote{wa-tadrI mA jinsu-hA? wa-tadrI mA sinnu-hA? fa-'inna 'l-dajAjaTa 'inna-mA ta.tIbu bi-'l-jinsi wa-'l-sinni. wa-tadrI bi-'ayyi ^say'iN kunnA nusamminu-hA? wa-fI 'ayyi makAniN kunnA na`lifu-hA?} fa-lA yazAlu fI h_a_dA wa-'l-'A_haru ya.d.haku .da.hkaN na`rifu-hu na.hnu wa-lA ya`rifu-hu \cap{'a}bU 'l-\cap{h}u_dayli. \end{arab} \begin{arab} wa-kAna \cap{'a}bU 'l-\cap{h}u_dayli 'aslama 'l-nAsi .sadraN wa-'awsa`a-hum _huluqaN wa-'ashala-hum suhUlaTaN. fa-'in _dakarUA dajAjaTaN, qAla: \enquote{'ayna kAnat yA \cap{'a}bA \cap{`i}mrAna min tilka 'l-dajA\-jaTi?} fa-'in _dakarUA ba.t.taTaN 'aw `anAqaN 'aw jazUraN 'aw baqaraTaN, qAla: \enquote{fa-'ayna kAnat h_a_dihi 'l-jazUru fI 'l-juzuri min tilka 'l-dajAjaTi fI 'l-dajAji!} wa-'ini istasmana \cap{'a}bU 'l-\cap{h}u_dayli ^say'aN mina 'l-.tayri wa-'l-bahA'imi, qAla: \enquote{lA wa-'l-l_ahi wa-lA tilka 'l-dajAjaTu!} wa-'in _dakarUA `u_dUbaTa 'l-^sa.hmi, qAla: \enquote{`u_dUbaTu 'l-^sa.hmi fI 'l-baqari wa-'l-ba.t.ti wa-bu.tUni 'l-samaki wa-'l-dajAji, wa-lA siyyamA _d_alika 'l-jinsu mina 'l-dajAji.} wa-'in _dakarUA mIlAda ^say'iN 'aw qudUma 'insAniN, qAla: \enquote{kAna _d_alika ba`da 'an 'ahdaytu-hA la-ka bi-sanaTiN, wa-mA kAna bayna qudUmi fulAniN wa-bayna 'l-ba`_taTi bi-tilka 'l-dajAjaTi 'illA yawmuN.} wa-kAnat ma_ta\-laN fI kulli ^say'iN wa-tArI_haN fI kulli ^say'iN. \end{arab} \end{linenumbers*} \bigskip \begin{arab} \cap{al-jA.hi.zu}, \aemph{\cap{k}itAbu 'l-\cap{b}u_halA'i} \end{arab} \end{filecontents*} \title{\large\arb{dajAjaTu \cap{'a}bI 'l-\cap{h}u_dayli 'l-\cap{`a}llAfi}} \author{} \date{} \titlehead{\textbf{\textsf{arabluatex sample file}} --- \cczero\ This file is public domain.\\ \textsf{arabluatex} mode: \texttt{fullvoc} with \texttt{\textbackslash SetArbEasy}\\ Full vocalization, the \arb[trans]{sukUn} and the \arb[trans]{wa.slaT} are expressed, the \arb[trans]{ta^sdId} is generated, but the \enquote*{classic} \arb[trans]{maddaT} is discarded (see source code on p.~\pageref{source}).} \maketitle \vspace{-1in} \doublespacing \setquotestyle{arabic} \input{dajaja} \makeatletter \def\al@mode{trans} \makeatother \SetTranslitConvention{dmg} \titlehead{\textsf{arabluatex} mode: \texttt{trans} with \texttt{\textbackslash SetTranslitConvention\{dmg\}} and \texttt{\textbackslash SetArbEasy}\\ \emph{Deutsche Morgenländische Gesellschaft} (see source code on p.~\pageref{source})} \onehalfspacing \maketitle \vspace{-1in} \setquotestyle{english} \input{dajaja} \makeatletter \def\al@mode{trans} \makeatother \SetTranslitConvention{loc} \titlehead{\textsf{arabluatex} mode: \texttt{trans} with \texttt{\textbackslash SetTranslitConvention\{loc\}}\\ \emph{Library of Congress} (see source code on p.~\pageref{source})} \maketitle \vspace{-1in} \setquotestyle{english} \input{dajaja} \makeatletter \def\al@mode{trans} \makeatother \SetTranslitConvention{arabica} \titlehead{\textsf{arabluatex} mode: \texttt{trans} with \texttt{\textbackslash SetTranslitConvention\{arabica\}}\\ \emph{Journal of Arabic and Islamic Studies} (Arabica, see source code on p.~\pageref{source})} \maketitle \vspace{-1in} \setquotestyle{english} \input{dajaja} \makeatletter \def\al@mode{voc} \makeatother \singlespacing \SetTranslitConvention{dmg} \titlehead{} \title{\large Source code} \subtitle{} \maketitle \vspace{-1in} \label{source} Here follows the exact source code that has been used to produce the above presented outputs. Discretionary hyphens (\mintinline{latex}|\-|) may have been inserted at some points to prevent lines from overflowing into the right margin. \medskip \noindent\textbf{\texttt{preamble:}} \begin{minted}[linenos, bgcolor=bg]{latex} \usepackage{csquotes} % recommended for inline quotations \DeclareQuoteStyle{arabic} % then \setquotestyle{arabic} or % \setquotestyle{english} may be used {\rmfamily\textquotedblright}{\rmfamily\textquotedblleft} {\rmfamily\textquoteright}{\rmfamily\textquoteleft} \usepackage[fullvoc]{arabluatex} % 'voc', 'fullvoc', 'novoc' or 'trans' \SetTranslitConvention{dmg} % 'dmg', 'loc' or 'arabica' \SetArbEasy % ie. discard 'classic' maddah \title{\arb{dajAjaTu \cap{'a}bI 'l-\cap{h}u_dayli 'l-\cap{`a}llAfi}} \end{minted} \textbf{\texttt{document:}} \inputminted[linenos, firstnumber=last, bgcolor=bg]{latex}{TMP/dajaja.tex} \end{document}