diff options
-rw-r--r-- | arabluatex_fullvoc.lua | 12 | ||||
-rw-r--r-- | arabluatex_trans.lua | 14 | ||||
-rw-r--r-- | arabluatex_voc.lua | 12 |
3 files changed, 31 insertions, 7 deletions
diff --git a/arabluatex_fullvoc.lua b/arabluatex_fullvoc.lua index e1252e5..f687c5f 100644 --- a/arabluatex_fullvoc.lua +++ b/arabluatex_fullvoc.lua | |||
@@ -25,7 +25,11 @@ along with this program. If not, see | |||
25 | hamzafv = { | 25 | hamzafv = { |
26 | -- next line for ʾiʿrāb hyphen | 26 | -- next line for ʾiʿrāb hyphen |
27 | {a="(')(%-)([uaiUAI])", b="%1%3"}, | 27 | {a="(')(%-)([uaiUAI])", b="%1%3"}, |
28 | -- next line for ʾalif alone | 28 | -- next lines for ʾalif alone |
29 | {a="(%.A)([uai]?)l%-(%^n)", b="ا%2ل%3"}, --additional (^n is lunar) | ||
30 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-(%^n)", b="%1ا%3%4"}, --additional (^n is lunar) --p | ||
31 | {a="(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="ا%2ل%3%3"}, | ||
32 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="%1ا%3ل%4%4"}, --p | ||
29 | {a="%.A", b="ا"}, | 33 | {a="%.A", b="ا"}, |
30 | -- hard coded hamza | 34 | -- hard coded hamza |
31 | {a="|\"'", b="ء"}, | 35 | {a="|\"'", b="ء"}, |
@@ -140,7 +144,11 @@ hamzafv = { | |||
140 | hamzafveasy = { -- differences marked below with 'easy' | 144 | hamzafveasy = { -- differences marked below with 'easy' |
141 | -- next line for ʾiʿrāb hyphen | 145 | -- next line for ʾiʿrāb hyphen |
142 | {a="(')(%-)([uaiUAI])", b="%1%3"}, | 146 | {a="(')(%-)([uaiUAI])", b="%1%3"}, |
143 | -- next line for ʾalif alone | 147 | -- next lines for ʾalif alone |
148 | {a="(%.A)([uai]?)l%-(%^n)", b="ا%2ل%3"}, --additional (^n is lunar) | ||
149 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-(%^n)", b="%1ا%3%4"}, --additional (^n is lunar) --p | ||
150 | {a="(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="ا%2ل%3%3"}, | ||
151 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="%1ا%3ل%4%4"}, --p | ||
144 | {a="%.A", b="ا"}, | 152 | {a="%.A", b="ا"}, |
145 | -- hard coded hamza | 153 | -- hard coded hamza |
146 | {a="|\"'", b="ء"}, | 154 | {a="|\"'", b="ء"}, |
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua index 1043f37..defb3b4 100644 --- a/arabluatex_trans.lua +++ b/arabluatex_trans.lua | |||
@@ -71,7 +71,15 @@ captr = { | |||
71 | -- dmg | 71 | -- dmg |
72 | 72 | ||
73 | hamzatrdmg = { | 73 | hamzatrdmg = { |
74 | -- next line for ʾalif alone | 74 | -- next lines for ʾalif alone |
75 | {a="(%.A)l%-(%^n)", b=".|l-%2"}, --additional (^n is lunar) | ||
76 | {a="([%(%[%|%<%s%-o])(%.A)l%-(%^n)", b="%1.|l-%3"}, --additional (^n is lunar) --p | ||
77 | {a="(%.A)l%-([%_%^%.]?[tdrzsnc])", b=".|%2-%2"}, | ||
78 | {a="([%(%[%|%<%s%-o])(%.A)l%-([%_%^%.]?[tdrzsnc])", b="%1.|%3-%3"}, --p | ||
79 | {a="(%.A)([uai])l%-(%^n)", b="||%2l-%3"}, --additional (^n is lunar) | ||
80 | {a="([%(%[%|%<%s%-o])(%.A)([uai])l%-(%^n)", b="%1||%3l-%4"}, --additional (^n is lunar) --p | ||
81 | {a="(%.A)([uai])l%-([%_%^%.]?[tdrzsnc])", b="||%2%3-%3"}, | ||
82 | {a="([%(%[%|%<%s%-o])(%.A)([uai])l%-([%_%^%.]?[tdrzsnc])", b="%1||%3%4-%4"}, --p | ||
75 | {a="(%.A)([^uai])", b=".|%2"}, | 83 | {a="(%.A)([^uai])", b=".|%2"}, |
76 | {a="(%.A)([uai])", b="||%2"}, | 84 | {a="(%.A)([uai])", b="||%2"}, |
77 | -- hard coded hamza | 85 | -- hard coded hamza |
@@ -440,7 +448,7 @@ shortvtrdmg = { | |||
440 | -- loc | 448 | -- loc |
441 | 449 | ||
442 | hamzatrloc = { | 450 | hamzatrloc = { |
443 | -- next line for ʾalif alone | 451 | -- next lines for ʾalif alone |
444 | {a="(%.A)([^uai])", b=".|%2"}, | 452 | {a="(%.A)([^uai])", b=".|%2"}, |
445 | {a="(%.A)([uai])", b="||%2"}, | 453 | {a="(%.A)([uai])", b="||%2"}, |
446 | -- hard coded hamza | 454 | -- hard coded hamza |
@@ -697,7 +705,7 @@ finaltrloc = { | |||
697 | -- arabica | 705 | -- arabica |
698 | 706 | ||
699 | hamzatrarabica = { -- ≠ from hamzatrloc: initial hamza has to be held | 707 | hamzatrarabica = { -- ≠ from hamzatrloc: initial hamza has to be held |
700 | -- next line for ʾalif alone | 708 | -- next lines for ʾalif alone |
701 | {a="(%.A)([^uai])", b=".|%2"}, | 709 | {a="(%.A)([^uai])", b=".|%2"}, |
702 | {a="(%.A)([uai])", b="||%2"}, | 710 | {a="(%.A)([uai])", b="||%2"}, |
703 | -- hard coded hamza | 711 | -- hard coded hamza |
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua index d3e32c3..f3f093b 100644 --- a/arabluatex_voc.lua +++ b/arabluatex_voc.lua | |||
@@ -170,7 +170,11 @@ buckwalter = { | |||
170 | hamza = { | 170 | hamza = { |
171 | -- next line for ʾiʿrāb hyphen | 171 | -- next line for ʾiʿrāb hyphen |
172 | {a="(')(%-)([uaiUAI])", b="%1%3"}, | 172 | {a="(')(%-)([uaiUAI])", b="%1%3"}, |
173 | -- next line for ʾalif alone | 173 | -- next lines for ʾalif alone |
174 | {a="(%.A)([uai]?)l%-(%^n)", b="ا%2ل%3"}, --additional (^n is lunar) | ||
175 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-(%^n)", b="%1ا%3%4"}, --additional (^n is lunar) --p | ||
176 | {a="(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="ا%2ل%3%3"}, | ||
177 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="%1ا%3ل%4%4"}, --p | ||
174 | {a="%.A", b="ا"}, | 178 | {a="%.A", b="ا"}, |
175 | -- hard coded hamza | 179 | -- hard coded hamza |
176 | {a="|\"'", b="ء"}, | 180 | {a="|\"'", b="ء"}, |
@@ -276,7 +280,11 @@ hamza = { | |||
276 | hamzaeasy = { -- differences marked below with 'easy' | 280 | hamzaeasy = { -- differences marked below with 'easy' |
277 | -- next line for ʾiʿrāb hyphen | 281 | -- next line for ʾiʿrāb hyphen |
278 | {a="(')(%-)([uaiUAI])", b="%1%3"}, | 282 | {a="(')(%-)([uaiUAI])", b="%1%3"}, |
279 | -- next line for ʾalif alone | 283 | -- next lines for ʾalif alone (easy) |
284 | {a="(%.A)([uai]?)l%-(%^n)", b="ا%2ل%3"}, --additional (^n is lunar) | ||
285 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-(%^n)", b="%1ا%3%4"}, --additional (^n is lunar) --p | ||
286 | {a="(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="ا%2ل%3"}, | ||
287 | {a="([%(%[%|%<%s%-o])(%.A)([uai]?)l%-([%_%^%.]?[tdrzsnc])", b="%1ا%3ل%4"}, --p | ||
280 | {a="%.A", b="ا"}, | 288 | {a="%.A", b="ا"}, |
281 | -- hard coded hamza | 289 | -- hard coded hamza |
282 | {a="|\"'", b="ء"}, | 290 | {a="|\"'", b="ء"}, |