aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-02-24 20:27:29 +0100
committerRobert Alessi <alessi@robertalessi.net>2016-02-24 20:27:29 +0100
commitefb07927d995efbc33822ba447b2beed2b31ef5a (patch)
tree09034a7ee8f77160474e7f3d234078e8a4bf3afe /arabluatex.dtx
parent7ee8fb4914d081905c7a927ea3caf45f1ead9060 (diff)
downloadarabluatex-efb07927d995efbc33822ba447b2beed2b31ef5a.tar.gz
first implementation of fullvoc tables
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx14
1 files changed, 12 insertions, 2 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 72792db..67fa916 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -175,9 +175,11 @@
175% \begin{macrocode} 175% \begin{macrocode}
176\DeclareOption{voc}{\def\al@mode{voc}} 176\DeclareOption{voc}{\def\al@mode{voc}}
177\DeclareOption{novoc}{\def\al@mode{novoc}} 177\DeclareOption{novoc}{\def\al@mode{novoc}}
178\DeclareOption{fullvoc}{\def\al@mode{fullvoc}}
178\ExecuteOptions{voc} 179\ExecuteOptions{voc}
179\ProcessOptions\relax 180\ProcessOptions\relax
180\def\al@mode@voc{voc} 181\def\al@mode@voc{voc}
182\def\al@mode@fullvoc{fullvoc}
181\def\al@mode@novoc{novoc} 183\def\al@mode@novoc{novoc}
182% \newif\ifal@mode@defined 184% \newif\ifal@mode@defined
183\RequirePackage{amsmath} 185\RequirePackage{amsmath}
@@ -208,11 +210,15 @@
208 \bgroup\textdir TRT\arabicfont% 210 \bgroup\textdir TRT\arabicfont%
209 \luadirect{tex.sprint(processvoc("\luaescapestring{#2}"))}\egroup% 211 \luadirect{tex.sprint(processvoc("\luaescapestring{#2}"))}\egroup%
210 \else% 212 \else%
213 \ifx\@tempa\al@mode@fullvoc%
214 \bgroup\textdir TRT\arabicfont%
215 \luadirect{tex.sprint(processfullvoc("\luaescapestring{#2}"))}\egroup%
216 \else%
211 \ifx\@tempa\al@mode@novoc% 217 \ifx\@tempa\al@mode@novoc%
212 \bgroup\textdir TRT\arabicfont% 218 \bgroup\textdir TRT\arabicfont%
213 \luadirect{tex.sprint(processnovoc("\luaescapestring{#2}"))}\egroup% 219 \luadirect{tex.sprint(processnovoc("\luaescapestring{#2}"))}\egroup%
214 \else% 220 \else%
215 \fi\fi} 221 \fi\fi\fi}
216\DeclareDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$} 222\DeclareDocumentCommand{\aemph}{m}{$\overline{\text{#1}}$}
217\NewEnviron{arab}[1][\al@mode]% 223\NewEnviron{arab}[1][\al@mode]%
218{\par\edef\@tempa{#1}% 224{\par\edef\@tempa{#1}%
@@ -220,12 +226,16 @@
220 \bgroup\pardir TRT\textdir TRT\arabicfont% 226 \bgroup\pardir TRT\textdir TRT\arabicfont%
221 \luadirect{tex.sprint(processvoc("\luaescapestring{\BODY}"))}\egroup% 227 \luadirect{tex.sprint(processvoc("\luaescapestring{\BODY}"))}\egroup%
222 \else% 228 \else%
229 \ifx\@tempa\al@mode@fullvoc%
230 \bgroup\pardir TRT\textdir TRT\arabicfont%
231 \luadirect{tex.sprint(processfullvoc("\luaescapestring{\BODY}"))}\egroup%
232 \else%
223 \ifx\@tempa\al@mode@novoc% 233 \ifx\@tempa\al@mode@novoc%
224 \bgroup\pardir TRT\textdir TRT\arabicfont% 234 \bgroup\pardir TRT\textdir TRT\arabicfont%
225 \luadirect{tex.sprint(processnovoc("\luaescapestring{\BODY}"))}\egroup% 235 \luadirect{tex.sprint(processnovoc("\luaescapestring{\BODY}"))}\egroup%
226 \else 236 \else
227 \BODY% 237 \BODY%
228 \fi\fi}[\par] 238 \fi\fi\fi}[\par]
229\robustify{\textbf} 239\robustify{\textbf}
230\robustify{\emph} 240\robustify{\emph}
231\robustify{\footnote} 241\robustify{\footnote}
838183; font-style:italic">-- this is new trigraphsfv = { -- trigraphs or more -- 'llatI / 'llad_I {a="^'ll(a)([%_]?[dt])", b="ٱلّ%1%2"}, {a="(%s)'ll(a)([%_]?[dt])", b="%1ٱلّ%2%3"}, -- al- + lām {a="^(a)l%-(l)", b="ا%1ل%2%2"}, {a="(%s)(a)l%-(l)", b="%1ا%2ل%3%3"}, -- al- + solar consonant {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="ا%1ل%2%2"}, {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1ا%2ل%3%3"}, -- assim. art. + solar consonant {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل%2"}, {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل%3"}, -- al- + initial unstable hamza {a="^(a)l%-([uai])", b="ا%1لٱ%2"}, {a="(%s)(a)l%-([uai])", b="%1ا%2لٱ%3"}, -- li- + art. + initial unstable hamza is a special orthography {a="l(i)%-l%-([uai])", b="ل%1لٱ%2"}, -- al- + lunar consonant (i.e. what remains) {a="^(a)l%-", b="ا%1لْ"}, {a="(%s)(a)l%-", b="%1ا%2لْ"}, -- art. with waṣla + lām {a="'l%-(l)", b="ٱل%1%1"}, -- art. with waṣla + solar consonant {a="'l%-([%_%^%.]?[tdrzsn])", b="ٱل%1%1"}, -- li- + art. + lām {a="l(i)%-l%-(l)", b="ل%1ل%2%2"}, -- assim. art. with waṣla + solar consonant {a="'([%_%^%.]?[tdrzsn])%-", b="ٱل%1"}, -- li- + art. + solar consonant is a special orthography {a="l(i)%-l%-([%_%^%.]?[tdrzsn])", b="ل%1ل%2%2"}, -- li- + assim. art. + solar consonant is a special orthography {a="l(i)%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="ل%1ل%3%3"}, -- art. with waṣla + initial unstable hamza {a="'l%-([uai])", b="ٱلٱ%1"}, -- art. with waṣla + lunar consonant (i.e. what remains) {a="'l%-", b="ٱلْ"} } -- this is new digraphsfv = { {a="(%-)([uai])", b="%1ٱ"}, -- hyphen + initial alif without hamza {a="^([uai])", b="ٱ"}, -- initial alif without hamza {a="(%s)([uai])", b="%1ٱ"}, -- initial alif without hamza {a="%-%-", b="ـ"}, {a="bb", b="بّ"}, {a="BB", b="ـّ"}, {a="tt", b="تّ"}, {a="%_t%_t", b="ثّ"}, {a="jj", b="جّ"}, {a="%^g%^g", b="جّ"}, {a="xx", b="خّ"}, {a="%_h%_h", b="خّ"}, {a="dd", b="دّ"}, {a="%_d%_d", b="ذّ"}, {a="rr", b="رّ"}, {a="zz", b="زّ"}, {a="ss", b="سّ"}, {a="%^s%^s", b="شّ"}, {a="%.s%.s", b="صّ"}, {a="%.d%.d", b="ضّ"}, {a="%.t%.t", b="طّ"}, {a="%.z%.z", b="ظّ"}, {a="%`%`", b="عّ"}, {a="%.g%.g", b="غّ"}, {a="ff", b="فّ"}, {a="qq", b="قّ"}, {a="kk", b="كّ"}, {a="ll", b="لّ"}, {a="mm", b="مّ"}, {a="nn", b="نّ"}, {a="hh", b="هّ"}, {a="ww", b="وّ"}, {a="yy", b="يّ"}, -- sukūn begin {a="([%_%^%.]?[btjghxdrzs%`fqklmnwy])([%s])", b="%1ْ%2"},