--[[
This file is part of the `arabluatex' package

ArabLuaTeX -- Processing ArabTeX notation under LuaLaTeX
Copyright (C) 2016  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/>.
--]]

abjad = {
{"a\"'", "b", "j", "d", "h", "w", "z", ".h", ".t"},
{"y", "k", "l", "m", "n", "s", "`", "f", ".s", },
{"q", "r", "^s", "t", "_t", "x", "_d", ".d", ".z", },
{".g"}
}

numbers = {
   {a="0", b="٠"},
   {a="1", b="١"},
   {a="2", b="٢"},
   {a="3", b="٣"},
   {a="4", b="٤"},
   {a="5", b="٥"},
   {a="6", b="٦"},
   {a="7", b="٧"},
   {a="8", b="٨"},
   {a="9", b="٩"}
}

raw = {
   {a="A", b="َا"},
   {a="U", b="ُو"},
   {a="I", b="ِي"},
   {a="b", b="ب"},
   {a="t", b="ت"},
   {a="j", b="ج"},
   {a="x", b="خ"},
   {a="d", b="د"},
   {a="r", b="ر"},
   {a="z", b="ز"},
   {a="s", b="س"},
   {a="f", b="ف"},
   {a="`", b="ع"},
   {a="f", b="ف"},
   {a="q", b="ق"},
   {a="k", b="ك"},
   {a="l", b="ل"},
   {a="m", b="م"},
   {a="n", b="ن"},
   {a="h", b="ه"},
   {a="w", b="و"},
   {a="y", b="ي"},
   {a="T", b="ة"},
   {a="u", b="ُ"},
   {a="a", b="َ"},
   {a="i", b="ِ"}
}

buckwalter = {
   --- hard coded madda: hold it for now
   {a="%|", b="@"},
   {a="M", b="@"}, -- BW safe
   {a="%_", b="--"}, -- taṭwīl
   -- prevent any unwanted šadda from being generated
   {a="bb", b="b|b"},
   {a="tt", b="t|t"},
   {a="vv", b="v|v"},
   {a="jj", b="j|j"},
   {a="HH", b="H|H"},
   {a="xx", b="x|x"},
   {a="dd", b="d|d"},
   {a="%*%*", b="*|*"},
   {a="VV", b="V|V"}, -- BW safe
   {a="rr", b="r|r"},
   {a="ss", b="s|s"},
   {a="%$%$", b="$|$"},
   {a="cc", b="c|c"}, -- BW safe
   {a="SS", b="S|S"},
   {a="DD", b="D|D"},
   {a="TT", b="T|T"},
   {a="ZZ", b="Z|Z"},
   {a="EE", b="E|E"},
   {a="gg", b="g|g"},
   {a="ff", b="f|f"},
   {a="qq", b="q|q"},
   {a="kk", b="k|k"},
   {a="ll", b="l|l"},
   {a="mm", b="m|m"},
   {a="nn", b="n|n"},
   {a="hh", b="h|h"},
   {a="ww", b="w|w"},
   {a="yy", b="y|y"},
   -- hamza begin
   -- look into this later on:
--   {a="%>a?A", b="@@@"}, -- hold this (madda)
--   {a="%>a\'([^uai])", b="@@@%1"}, -- hold this (madda)
   {a="a?A\'", b="@@"}, -- hold this (classic madda)
   {a="\'", b="|\"\'"},
   {a="C", b="|\"\'"}, -- BW safe
   {a="%>", b="a\"\'"},
   {a="O", b="a\"\'"}, -- BW safe
   {a="%&", b="w\"\'"},
   {a="W", b="w\"\'"}, -- BW safe
   {a="%<", b="i\"\'"},
   {a="I", b="i\"\'"}, -- BW safe
   {a="%]", b="y\"\'"},
   {a="Q", b="y\"\'"},
   -- hamza end
   -- trigraphs
   {a="^Aal%-?", b="al-"},
   {a="(%W)Aal%-?", b="%1al-"},
   {a="(%s)Aal%-?", b="%1al-"},
   {a="([%-%s])Al%-?", b="%1\'l-"},
   {a="^A", b="a"},
   {a="(%W)A", b="%1a"},
   {a="(%s)A", b="%1a"},
   {a="(al%-[%g])(%~)", b="%1"},
   {a="(\'l%-[%g])(%~)", b="%1"},
   -- digraphs begin
   {a="aA", b="A"},
   {a="uw([^%~])", b="U%1"},
   {a="iy([^%~])", b="I%1"},
   -- digraphs end
   -- madda: get it back now
--   {a="%@%@%@", b="\'A"},
   {a="%@%@", b="A\'"}, -- give back classic madda
   {a="%@", b="A\"\'"}, -- hard coded madda
   -- šadda:
   {a="([%g])(%~)", b="%1%1"},
   {a="%`", b="_a"},
   {a="e", b="_a"}, -- BW safe
   {a="v", b="_t"},
   {a="H", b=".h"},
   {a="%*", b="_d"},
   {a="V", b="_d"}, -- BW safe
   {a="%$", b="^s"},
   {a="c", b="^s"}, -- BW safe
   {a="S", b=".s"},
   {a="D", b=".d"},
   {a="T", b=".t"},
   {a="Z", b=".z"},
   {a="E", b="`"},
   {a="g", b=".g"},
   {a="p", b="T"},
   {a="N", b="uN"},
   {a="F", b="aN"},
   {a="K", b="iN"},
   {a="o", b="\""},
   -- hard-coded connective alif
   {a="%[", b="ٱ"},
   {a="L", b="ٱ"} -- BW safe
}

hamza = {
   -- next line for ʾiʿrāb hyphen
   {a="(')(%-)([uaiUAI])", b="%1%3"},
   -- hard coded hamza
   {a="|\"'", b="ء"},
   {a="A\"'", b="آ"},
   {a="[au]\"'", b="أ"},
   {a="w\"'", b="ؤ"},
   {a="i\"'", b="إ"},
   {a="y\"'", b="ئ"},
   -- hamza takes tašdīd too
   {a="''([Uu])", b="ؤؤ%1"},
   {a="''([Aa])", b="أأ%1"},
   {a="''([Ii])", b="ئئ%1"},
   -- inseparable adverbial particle 'a- + 'a
   {a="\'(a)%-\'(a)", b="أ%1اأ%2"},
   -- initial long u and i (for a, see below)
   {a="%'%_U", b="أU"},
   {a="%'%_I", b="إI"},
   -- taḫfīfu 'l-hamza
   {a="'u'([^uaiUAI])", b="أU%1"},
   {a="'i'([^uaiUAI])", b="إI%1"},   
   -- madda (historic writing below)
   {a="'a'([^uaiUAI])", b="آ%1"},
   {a="([^uiUI])\'a?A([%_%^%.]?[%`%'btjghxdrzsfqklmnywAY])", b="%1آ%2"},
   {a="^\'a?A([%_%^%.]?[%`%'btjghxdrzsfqklmnywAY])", b="آ%1"},
   {a="(%W)\'a?A([%_%^%.]?[%`%'btjghxdrzsfqklmnywAY])", b="%1آ%2"},
   {a="(A)(')(uN?)$", b="aآء%3"},
   {a="(A)(')(uN?)(%W)", b="aآء%3%4"},
   {a="(A)(')(iN?)$", b="aآء%3"},
   {a="(A)(')(iN?)(%W)", b="aآء%3%4"},
   {a="(A)(')([iI])", b="aآئ%3"}, -- historic madda
   {a="(A)(')(u)", b="aآؤ%3"}, -- historic madda
   {a="(A)(')", b="aآء"}, -- historic madda
   -- initial (needs both ^ and %W patterns)
   -- 'aw: the diphthong is to be resoved into 'awi' (next 4 lines)
   {a="^('aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"},
   {a="(%W)('aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1%2i%3%4"},
   {a="^('aw)(%s)([%(%[%|%<]?\"?[uai])", b="%1i%2%3"},
   {a="(%W)('aw)(%s)([%(%[%|%<]?\"?[uai])", b="%1%2i%3%4"},
   -- then the 'initial' rules for the remaining cases
   {a="^(')([ua])", b="أ%2"},
   {a="^(')(i)", b="إ%2"},
   {a="(%W)(')([ua])", b="%1أ%3"},
   {a="(%W)(')(i)", b="%1إ%3"},
   -- final
   -- ^say'aN and .zim'aN are special orthographies
   {a="(%^say)(%')(aN)", b="%1ئ%3"},
   {a="(.zi?m)(%')(aN)", b="%1ئ%3"},
   {a="([^uai])(')([uai][^%.%^%_]N?)$", b="%1ء%3"},
   {a="([^uai])(')([uai][^%.%^%_]N?)(%W)", b="%1ء%3%4"},
-- u
   {a="(u)(')([uai][^%.%^%_]N?)$", b="%1ؤ%3"},
   {a="(u)(')([uai][^%.%^%_]N?)(%W)", b="%1ؤ%3%4"},
   {a="(u)(')$", b="%1ؤ"},
   {a="(u)(')(%W)", b="%1ؤ%3"},
-- a
   {a="(a)(')(A)$", b="%1آ"},
   {a="(a)(')(A)(%W)", b="%1آ%4"},
   {a="(a)(')([u][^%.%^%_]N?)$", b="%1أ%3"},
   {a="(a)(')([u][^%.%^%_]N?)(%W)", b="%1أ%3%4"},
   {a="(a)(')(a)$", b="%1أ%3"},
   {a="(a)(')(a)(%W)", b="%1أ%3%4"},
   {a="(a)(')(aN)$", b="%1أً"},
   {a="(a)(')(aN)(%W)", b="%1أً%4"},
   {a="(a)(')([i][^%.%^%_]N?)$", b="%1إ%3"},
   {a="(a)(')([i][^%.%^%_]N?)(%W)", b="%1إ%3%4"},
   {a="(a)(')$", b="%1أ"},
   {a="(a)(')(%W)", b="%1أ%3"},
-- i
   {a="(i)(')([uai][^%.%^%_]N?)$", b="%1ئ%3"},
   {a="(i)(')([uai][^%.%^%_]N?)(%W)", b="%1ئ%3%4"},
   {a="(i)(')$", b="%1ئ"},
   {a="(i)(')(%W)", b="%1ئ%3"},
--
   -- middle
   {a="(U)(')", b="%1ء"},
   {a="([Iy])(')", b="%1ئ"},
   {a="([^uai])(')([uU])", b="%1ؤ%3"},
   {a="([^uai])(')([aA])", b="%1أ%3"},
   {a="([^uai])(')([iI])", b="%1ئ%3"},
   {a="(u)(')([uU])", b="%1ؤ%3"},
   {a="(u)(')([aA])", b="%1ؤ%3"},
   {a="(u)(')([iI])", b="%1ئ%3"},
   {a="(a)(')([aA])", b="%1أ%3"},
   {a="(a)(')([uU])", b="%1ؤ%3"},
   {a="(a)(')([iI])", b="%1ئ%3"},
   {a="(i)(')([aA])", b="%1ئ%3"},
   {a="(i)(')([uU])", b="%1ئ%3"},
   {a="(i)(')([iI])", b="%1ئ%3"},
   {a="(a)(')([^uaiUAI])", b="%1أ%3"},
   {a="(u)(')([^uaiUAI])", b="%1ؤ%3"},
   {a="(i)(')([^uaiUAI])", b="%1ئ%3"}
}

hamzaeasy = { -- differences marked below with 'easy'
   -- next line for ʾiʿrāb hyphen
   {a="(')(%-)([uaiUAI])", b="%1%3"},
   -- hard coded hamza
   {a="|\"'", b="ء"},
   {a="A\"'", b="آ"},
   {a="[au]\"'", b="أ"},
   {a="w\"'", b="ؤ"},
   {a="i\"'", b="إ"},
   {a="y\"'", b="ئ"},
   -- hamza takes tašdīd too
   {a="''([Uu])", b="ؤؤ%1"},
   {a="''([Aa])", b="أأ%1"},
   {a="''([Ii])", b="ئئ%1"},
   -- inseparable adverbial particle 'a- + 'a
   {a="\'(a)%-\'(a)", b="أ%1اأ%2"},
   -- initial long u and i (for a, see below)
   {a="%'%_U", b="أU"},
   {a="%'%_I", b="إI"},
   -- taḫfīfu 'l-hamza
   {a="'u'([^uaiUAI])", b="أU%1"},
   {a="'i'([^uaiUAI])", b="إI%1"},   
   -- madda (historic writing below)
   {a="'a'([^uaiUAI])", b="آ%1"},
   {a="([^uiUI])\'a?A([%_%^%.]?[%`%'btjghxdrzsfqklmnywAY])", b="%1آ%2"<span style="color:#838183; font-style:italic">% </span>
<span style="color:#838183; font-style:italic">% This file is public domain</span>
<span style="color:#838183; font-style:italic">% To compile this document, do:</span>
<span style="color:#838183; font-style:italic">% &#39;lualatex --shell-escape al-Jahiz&#39;</span>
<span style="color:#838183; font-style:italic">%</span>
<span style="color:#000000; font-weight:bold">\documentclass</span><span style="color:#000000">[</span>fontsize=<span style="color:#b07e00">12</span>pt, paper=letter, DIV=classic<span style="color:#000000">]{</span>scrartcl<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>fontspec<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\setmainfont</span><span style="color:#000000">{</span>Old Standard<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>filecontents<span style="color:#000000">}</span>

<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>xcolor<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">[</span>outputdir=TMP<span style="color:#000000">]{</span>minted<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\definecolor</span><span style="color:#000000">{</span>bg<span style="color:#000000">}{</span>rgb<span style="color:#000000">}{</span><span style="color:#b07e00">0.95</span>,<span style="color:#b07e00">0.95</span>,<span style="color:#b07e00">0.95</span><span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>ccicons<span style="color:#000000">}</span>

<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>lineno<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>setspace<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\onehalfspacing</span>

<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>csquotes<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\DeclareQuoteStyle</span><span style="color:#000000">{</span>arabic<span style="color:#000000">}</span>
<span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\rmfamily\textquotedblright</span><span style="color:#000000">}{</span><span style="color:#000000; font-weight:bold">\rmfamily\textquotedblleft</span><span style="color:#000000">}</span>
<span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\rmfamily\textquoteright</span><span style="color:#000000">}{</span><span style="color:#000000; font-weight:bold">\rmfamily\textquoteleft</span><span style="color:#000000">}</span>

<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">[</span>fullvoc<span style="color:#000000">]{</span>arabluatex<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\SetArbEasy</span>

<span style="color:#000000; font-weight:bold">\PassOptionsToPackage</span><span style="color:#000000">{</span>pdfa<span style="color:#000000">}{</span>hyperref<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>hyperxmp<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\usepackage</span><span style="color:#000000">{</span>hyperref<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\hypersetup</span><span style="color:#000000">{</span>colorlinks, linkcolor=blue, pdfauthor=<span style="color:#000000">{</span>Robert Alessi<span style="color:#000000">}}</span>

<span style="color:#000000; font-weight:bold">\begin</span><span style="color:#000000">{</span><span style="color:#0057ae">document</span><span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\begin</span><span style="color:#000000">{</span>filecontents*<span style="color:#000000">}{</span>dajaja.tex<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\begin</span><span style="color:#000000">{</span>linenumbers*<span style="color:#000000">}</span>
  <span style="color:#000000; font-weight:bold">\begin</span><span style="color:#000000">{</span>arab<span style="color:#000000">}</span>
    kAna <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bU &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>h<span style="color:#000000">}</span>u_dayli &#39;ahd_A &#39;il_A <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>m<span style="color:#000000">}</span>uwaysiN
    dajAjaTaN. wa-kAnat dajAjatu-hu &#39;llatI &#39;ahdA-hA dUna mA kAna
    yuttaxa_du li-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>m<span style="color:#000000">}</span>uwaysiN. wa-l_akinna-hu bi-karami-hi
    wa-bi-.husni _hu\-luqi-hi &#39;a.zhara &#39;l-ta`ajjuba min simani-hA
    wa-.tIbi la.hmi-hA. wa-kAna &lt;<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bU &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>h<span style="color:#000000">}</span>u_dayli&gt;
    yu`rafu bi-&#39;l-&#39;imsAki &#39;l-^sadIdi. fa-qAla: <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>wa-kayfa
      ra&#39;ayta yA <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bA <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>`i<span style="color:#000000">}</span>mrAna tilka &#39;l-dajA\-jaTa?<span style="color:#000000">}</span>
    qAla: <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>kAnat `ajabaN mina &#39;l-`ajabi!<span style="color:#000000">}</span>  fa-yaqUlu:
    <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>wa-tadrI mA jinsu-hA? wa-tadrI mA sinnu-hA?  fa-&#39;inna
      &#39;l-dajAjaTa &#39;inna-mA ta.tIbu bi-&#39;l-jinsi wa-&#39;l-sinni. wa-tadrI
      bi-&#39;ayyi ^say&#39;iN kunnA nusamminu-hA? wa-fI &#39;ayyi makAniN kunnA
      na`lifu-hA?<span style="color:#000000">}</span>  fa-lA yazAlu fI h_a_dA wa-&#39;l-&#39;A_haru ya.d.haku
    .da.hkaN na`rifu-hu na.hnu wa-lA ya`rifu-hu <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bU
    &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>h<span style="color:#000000">}</span>u_dayli.
  <span style="color:#000000; font-weight:bold">\end</span><span style="color:#000000">{</span>arab<span style="color:#000000">}</span>

<span style="color:#000000; font-weight:bold">\begin</span><span style="color:#000000">{</span>arab<span style="color:#000000">}</span>
  wa-kAna <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bU &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>h<span style="color:#000000">}</span>u_dayli &#39;aslama &#39;l-nAsi .sadraN
  wa-&#39;awsa`a-hum _huluqaN wa-&#39;ashala-hum suhUlaTaN. fa-&#39;in _dakarUA
  dajAjaTaN, qAla: <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>&#39;ayna kAnat yA <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bA <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>`i<span style="color:#000000">}</span>mrAna
    min tilka &#39;l-dajA\-jaTi?<span style="color:#000000">}</span> fa-&#39;in _dakarUA ba.t.taTaN &#39;aw `anAqaN
  &#39;aw jazUraN &#39;aw baqaraTaN, qAla: <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>fa-&#39;ayna kAnat h_a_dihi
    &#39;l-jazUru fI &#39;l-juzuri min tilka &#39;l-dajAjaTi fI &#39;l-dajAji!<span style="color:#000000">}</span>
  wa-&#39;ini istasmana <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bU &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>h<span style="color:#000000">}</span>u_dayli ^say&#39;aN mina
  &#39;l-.tayri wa-&#39;l-bahA&#39;imi, qAla: <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>lA wa-&#39;l-l_ahi wa-lA tilka
    &#39;l-dajAjaTu!<span style="color:#000000">}</span>  wa-&#39;in _dakarUA `u_dUbaTa &#39;l-^sa.hmi, qAla:
  <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>`u_dUbaTu &#39;l-^sa.hmi fI &#39;l-baqari wa-&#39;l-ba.t.ti wa-bu.tUni
    &#39;l-samaki wa-&#39;l-dajAji, wa-lA siyyamA _d_alika &#39;l-jinsu mina
    &#39;l-dajAji.<span style="color:#000000">}</span> wa-&#39;in _dakarUA mIlAda ^say&#39;iN &#39;aw qudUma
  &#39;insAniN, qAla: <span style="color:#000000; font-weight:bold">\enquote</span><span style="color:#000000">{</span>kAna _d_alika ba`da &#39;an &#39;ahdaytu-hA la-ka
    bi-sanaTiN, wa-mA kAna bayna qudUmi fulAniN wa-bayna &#39;l-ba`_taTi
    bi-tilka &#39;l-dajAjaTi &#39;illA yawmuN.<span style="color:#000000">}</span>  wa-kAnat ma_ta\-laN fI
  kulli ^say&#39;iN wa-tArI_haN fI kulli ^say&#39;iN.
<span style="color:#000000; font-weight:bold">\end</span><span style="color:#000000">{</span>arab<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\end</span><span style="color:#000000">{</span>linenumbers*<span style="color:#000000">}</span>

<span style="color:#000000; font-weight:bold">\bigskip</span>

<span style="color:#000000; font-weight:bold">\begin</span><span style="color:#000000">{</span>arab<span style="color:#000000">}</span>
  <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>al-jA.hi.zu<span style="color:#000000">}</span>, <span style="color:#000000; font-weight:bold">\aemph</span><span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>k<span style="color:#000000">}</span>itAbu &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>b<span style="color:#000000">}</span>u_halA&#39;i<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\end</span><span style="color:#000000">{</span>arab<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\end</span><span style="color:#000000">{</span>filecontents*<span style="color:#000000">}</span>

<span style="color:#000000; font-weight:bold">\title</span><span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\large\arb</span><span style="color:#000000">{</span>dajAjaTu <span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>&#39;a<span style="color:#000000">}</span>bI &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>h<span style="color:#000000">}</span>u_dayli
    &#39;l-<span style="color:#000000; font-weight:bold">\cap</span><span style="color:#000000">{</span>`a<span style="color:#000000">}</span>llAfi<span style="color:#000000">}}</span>
<span style="color:#000000; font-weight:bold">\author</span><span style="color:#000000">{}</span>
<span style="color:#000000; font-weight:bold">\date</span><span style="color:#000000">{}</span>

<span style="color:#000000; font-weight:bold">\titlehead</span><span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\textbf</span><span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\textsf</span><span style="color:#000000">{</span>arabluatex sample file<span style="color:#000000">}}</span> --- <span style="color:#000000; font-weight:bold">\cczero</span>\ This
  file is public domain.\\
  <span style="color:#000000; font-weight:bold">\textsf</span><span style="color:#000000">{</span>arabluatex<span style="color:#000000">}</span> mode: <span style="color:#000000; font-weight:bold">\texttt</span><span style="color:#000000">{</span>fullvoc<span style="color:#000000">}</span> with
  <span style="color:#000000; font-weight:bold">\texttt</span><span style="color:#000000">{</span><span style="color:#000000; font-weight:bold">\textbackslash</span> SetArbEasy<span style="color:#000000">}</span>\\
  Full vocalization, the <span style="color:#000000; font-weight:bold">\arb</span><span style="color:#000000">[</span>trans<span style="color:#000000">]{</span>sukUn<span style="color:#000000">}</span> and the
  <span style="color:#000000; font-weight:bold">\arb</span><span style="color:#000000">[</span>trans<span style="color:#000000">]{</span>wa.slaT<span style="color:#000000">}</span> are expressed, the <span style="color:#000000; font-weight:bold">\arb</span><span style="color:#000000">[</span>trans<span style="color:#000000">]{</span>ta^sdId<span style="color:#000000">}</span> is
  generated, but the <span style="color:#000000; font-weight:bold">\enquote</span>*<span style="color:#000000">{</span>classic<span style="color:#000000">}</span> <span style="color:#000000; font-weight:bold">\arb</span><span style="color:#000000">[</span>trans<span style="color:#000000">]{</span>maddaT<span style="color:#000000">}</span> is
  discarded (see source code on p.~<span style="color:#000000; font-weight:bold">\pageref</span><span style="color:#000000">{</span>source<span style="color:#000000">}</span>).<span style="color:#000000">}</span>
<span style="color:#000000; font-weight:bold">\maketitle</span>
<span style="color:#000000; font-weight:bold">\vspace</span><span style="color:#000000">{</span>-<span style="color:#b07e00">1</span>in<span style="color:#000000">}</span>
<span sty