aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_trans.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r--arabluatex_trans.lua43
1 files changed, 29 insertions, 14 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index 4b0fca0..a178cf2 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -32,16 +32,21 @@ nulltr = {
32 32
33hamzatrdmg = { 33hamzatrdmg = {
34 -- hard coded hamza 34 -- hard coded hamza
35 {a="|\"'", b="'"}, 35 {a="|\"'", b="ʾ"},
36 {a="A\"'", b="'"}, 36 {a="A\"'", b="ʾ"},
37 {a="[au]\"'", b="'"}, 37 {a="[au]\"'", b="ʾ"},
38 {a="w\"'", b="'"}, 38 {a="w\"'", b="ʾ"},
39 {a="i\"'", b="'"}, 39 {a="i\"'", b="ʾ"},
40 {a="y\"'", b="'"}, 40 {a="y\"'", b="ʾ"},
41 -- hamza takes tašdīd too
42 {a="''([Uu])", b="ʾʾ%1"},
43 {a="''([Aa])", b="ʾʾ%1"},
44 {a="''([Ii])", b="ʾʾ%1"},
41 -- initial long u 45 -- initial long u
42 {a="%'%_U", b="ʾU"}, 46 {a="%'%_U", b="ʾU"},
43 -- madda (historic writing below) 47 -- madda (historic writing below)
44 {a="'A", b="ʾA"}, 48 {a="'a'([^uaiUAI])", b="ʾA%1"},
49 {a="'a?A", b="ʾA"},
45 {a="(A)(')(i)$", b="%1ʾ%3"}, 50 {a="(A)(')(i)$", b="%1ʾ%3"},
46 {a="(A)(')(i)(%W)", b="%1ʾ%3%4"}, 51 {a="(A)(')(i)(%W)", b="%1ʾ%3%4"},
47 {a="(A)(')(i)", b="%1ʾ%3"}, -- historic madda 52 {a="(A)(')(i)", b="%1ʾ%3"}, -- historic madda
@@ -192,18 +197,28 @@ shortvtrdmg = {
192 197
193hamzatrloc = { 198hamzatrloc = {
194 -- hard coded hamza 199 -- hard coded hamza
195 {a="|\"'", b="'"}, 200 {a="|\"'", b="ʾ"},
196 {a="A\"'", b="'"}, 201 {a="A\"'", b="ʾ"},
197 {a="[au]\"'", b="'"}, 202 {a="[au]\"'", b="ʾ"},
198 {a="w\"'", b="'"}, 203 {a="w\"'", b="ʾ"},
199 {a="i\"'", b="'"}, 204 {a="i\"'", b="ʾ"},
200 {a="y\"'", b="'"}, 205 {a="y\"'", b="ʾ"},
206 -- hamza takes tašdīd too
207 {a="''([Uu])", b="ʾʾ%1"},
208 {a="''([Aa])", b="ʾʾ%1"},
209 {a="''([Ii])", b="ʾʾ%1"},
201 -- initial long u 210 -- initial long u
202 {a="%'%_U", b="U"}, 211 {a="%'%_U", b="U"},
203 -- madda (historic writing below) 212 -- madda (historic writing below)
204 {a="^(')(A)", b="%2"}, 213 {a="^(')(A)", b="%2"},
205 {a="(%W)(')(A)", b="%1%3"}, 214 {a="(%W)(')(A)", b="%1%3"},
206 {a="'A", b="ʾA"}, 215
216 {a="^'a'([^uaiUAI])", b="A%1"},
217 {a="(%W)'a'([^uaiUAI])", b="%1A%2"},
218 {a="'a'([^uaiUAI])", b="A%1"},
219 {a="^'a?A", b="A"},
220 {a="(%W)'a?A", b="%1A"},
221 {a="'a?A", b="ʾA"},
207 {a="(A)(')(i)$", b="%1ʾ%3"}, 222 {a="(A)(')(i)$", b="%1ʾ%3"},
208 {a="(A)(')(i)(%W)", b="%1ʾ%3%4"}, 223 {a="(A)(')(i)(%W)", b="%1ʾ%3%4"},
209 {a="(A)(')(i)", b="%1ʾ%3"}, -- historic madda 224 {a="(A)(')(i)", b="%1ʾ%3"}, -- historic madda