aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_trans.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r--arabluatex_trans.lua50
1 files changed, 42 insertions, 8 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index 8a9aee8..19411f1 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -70,14 +70,14 @@ trigraphstrdmg = { -- trigraphs or more
70 {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"}, 70 {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"},
71 {a="(%s)'ll(a)([%_]?[dt])", b="%1'll%2%3"}, 71 {a="(%s)'ll(a)([%_]?[dt])", b="%1'll%2%3"},
72 -- al- + lām 72 -- al- + lām
73 {a="^(a)l%-(l)", b="%1l-%2%2"}, 73 {a="^(a)l%-(l)", b="%1l-%2"},
74 {a="(%s)(a)l%-(l)", b="%1%2l-%3%3"}, 74 {a="(%s)(a)l%-(l)", b="%1%2l-%3"},
75 -- al- + solar consonant 75 -- al- + solar consonant
76 {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2-%2"}, 76 {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2-"},
77 {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2%3-%3"}, 77 {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2%3-"},
78 -- assim. art. + solar consonant 78 -- assim. art. + solar consonant
79 {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1%2-%2"}, 79 {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1%2-"},
80 {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1%2%3-%3"}, 80 {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1%2%3-"},
81 -- al- + initial unstable hamza 81 -- al- + initial unstable hamza
82 {a="^(a)l%-([uai])", b="%1l-%2"}, 82 {a="^(a)l%-([uai])", b="%1l-%2"},
83 {a="(%s)(a)l%-([uai])", b="%1%2l-%3"}, 83 {a="(%s)(a)l%-([uai])", b="%1%2l-%3"},
@@ -231,8 +231,8 @@ trigraphstrloc = { -- trigraphs or more
231 {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1l-%2"}, 231 {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1l-%2"},
232 {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2l-%3"}, 232 {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2l-%3"},
233 -- assim. art. + solar consonant 233 -- assim. art. + solar consonant
234 {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1l-%2"}, 234 {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1l-"},
235 {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1%2l-%3"}, 235 {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1%2l-"},
236 -- al- + initial unstable hamza 236 -- al- + initial unstable hamza
237 {a="^(a)l%-([uai])", b="%1l-%2"}, 237 {a="^(a)l%-([uai])", b="%1l-%2"},
238 {a="(%s)(a)l%-([uai])", b="%1%2l-%3"}, 238 {a="(%s)(a)l%-([uai])", b="%1%2l-%3"},
@@ -339,6 +339,40 @@ finaltrloc = {
339 {a="ʾ", b="'"}, 339 {a="ʾ", b="'"},
340} 340}
341 341
342-- cap
343captr = {
344 -- dmg (defaut); loc as well
345 {a="ā", b="Ā"},
346 {a="b", b="B"},
347 {a="t", b="T"},
348 {a="ṯ", b="Ṯ"},
349 {a="ǧ", b="Ǧ"},
350 {a="ḥ", b="Ḥ"},
351 {a="ḫ", b="Ḫ"},
352 {a="d", b="D"},
353 {a="ḏ", b="Ḏ"},
354 {a="r", b="R"},
355 {a="z", b="Z"},
356 {a="s", b="S"},
357 {a="š", b="Š"},
358 {a="ṣ", b="Ṣ"},
359 {a="ḍ", b="Ḍ"},
360 {a="ṭ", b="Ṭ"},
361 {a="ẓ", b="Ẓ"},
362 {a="ġ", b="Ġ"},
363 {a="f", b="F"},
364 {a="q", b="Q"},
365 {a="k", b="K"},
366 {a="l", b="L"},
367 {a="m", b="M"},
368 {a="n", b="N"},
369 {a="h", b="H"},
370 {a="w", b="W"},
371 {a="ū", b="Ū"},
372 {a="y", b="Y"},
373 {a="ī", b="Ī"}
374}
375
342-- return { 376-- return {
343-- raw = raw, 377-- raw = raw,
344-- hamza = hamza, 378-- hamza = hamza,