aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-03-03 12:28:29 +0100
committerRobert Alessi <alessi@robertalessi.net>2016-03-03 12:28:29 +0100
commitaa77502f233279912aedd1cec332ff0581763edc (patch)
treedd62b2ac0d303aa971b166ffab87c5fdc23a633d
parent64f134796c2067989b6a411803240bae2f017dba (diff)
downloadarabluatex-aa77502f233279912aedd1cec332ff0581763edc.tar.gz
corrected final hamza; added quoting before hamza
-rw-r--r--arabluatex_fullvoc.lua24
-rw-r--r--arabluatex_novoc.lua1
-rw-r--r--arabluatex_trans.lua14
-rw-r--r--arabluatex_voc.lua25
4 files changed, 54 insertions, 10 deletions
diff --git a/arabluatex_fullvoc.lua b/arabluatex_fullvoc.lua
index 23f640b..a56a33f 100644
--- a/arabluatex_fullvoc.lua
+++ b/arabluatex_fullvoc.lua
@@ -24,6 +24,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 24
25-- this is new 25-- this is new
26hamzafv = { 26hamzafv = {
27 -- hard coded hamza
28 {a="|\"'", b="ء"},
29 {a="A\"'", b="آ"},
30 {a="[au]\"'", b="أ"},
31 {a="w\"'", b="ؤ"},
32 {a="i\"'", b="إ"},
33 {a="y\"'", b="ئ"},
27 -- initial long u 34 -- initial long u
28 {a="%'%_U", b="أU"}, 35 {a="%'%_U", b="أU"},
29 -- madda (historic writing below) 36 -- madda (historic writing below)
@@ -38,12 +45,19 @@ hamzafv = {
38 {a="(%W)(')([ua])", b="%1أ%3"}, 45 {a="(%W)(')([ua])", b="%1أ%3"},
39 {a="(%W)(')(i)", b="%1إ%3"}, 46 {a="(%W)(')(i)", b="%1إ%3"},
40 -- final 47 -- final
41 {a="([Iy])(')(aN)$", b="%1ئ%3"}, 48-- {a="([Iy])(')(aN)$", b="%1ئ%3"},
42 {a="([Iy])(')(aN)(%W)", b="%1ئ%3%4"}, 49-- {a="([Iy])(')(aN)(%W)", b="%1ئ%3%4"},
50-- {a="([^uai])(')([uai]N?)$", b="%1ء%3"},
51-- {a="([^uai])(')([uai]N?)(%W)", b="%1ء%3%4"},
52-- {a="([UI])(')([uai])$", b="%1ء%3"},
53-- {a="([UI])(')([uai])(%W)", b="%1ء%3%4"},
54-- {a="([UI])(')([uai]N?)$", b="%1ء%3"},
55-- {a="([UI])(')([uai]N?)(%W)", b="%1ء%3%4"},
56 -- ^say'aN and .zim'aN are special orthographies
57 {a="(%^say)(%')(aN)", b="%1ئ%3"},
58 {a="(.zim)(%')(aN)", b="%1ئ%3"},
43 {a="([^uai])(')([uai]N?)$", b="%1ء%3"}, 59 {a="([^uai])(')([uai]N?)$", b="%1ء%3"},
44 {a="([^uai])(')([uai]N?)(%W)", b="%1ء%3%4"}, 60 {a="([^uai])(')([uai]N?)(%W)", b="%1ء%3%4"},
45 {a="([UI])(')([uai])$", b="%1ء%3"},
46 {a="([UI])(')([uai])(%W)", b="%1ء%3%4"},
47 -- middle 61 -- middle
48 {a="(U)(')", b="%1ء"}, 62 {a="(U)(')", b="%1ء"},
49 {a="([Iy])(')", b="%1ئ"}, 63 {a="([Iy])(')", b="%1ئ"},
diff --git a/arabluatex_novoc.lua b/arabluatex_novoc.lua
index ef8b0ff..d0c9710 100644
--- a/arabluatex_novoc.lua
+++ b/arabluatex_novoc.lua
@@ -26,6 +26,7 @@ tanwinnv = {
26 {a="uN", b=""}, 26 {a="uN", b=""},
27 {a="(aN)(_A)", b="ى"}, 27 {a="(aN)(_A)", b="ى"},
28 {a="(T)(aN)", b="%1"}, 28 {a="(T)(aN)", b="%1"},
29 {a="(ء)(aN)", b="%1"},
29 {a="([^TA])(aN)", b="%1ا"}, 30 {a="([^TA])(aN)", b="%1ا"},
30 {a="iN", b=""} 31 {a="iN", b=""}
31} 32}
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index d9b4418..2c2be73 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -31,6 +31,13 @@ nulltr = {
31-- dmg 31-- dmg
32 32
33hamzatrdmg = { 33hamzatrdmg = {
34 -- hard coded hamza
35 {a="|\"'", b="'"},
36 {a="A\"'", b="'"},
37 {a="[au]\"'", b="'"},
38 {a="w\"'", b="'"},
39 {a="i\"'", b="'"},
40 {a="y\"'", b="'"},
34 -- initial long u 41 -- initial long u
35 {a="%'%_U", b="ʾU"}, 42 {a="%'%_U", b="ʾU"},
36 -- madda (historic writing below) 43 -- madda (historic writing below)
@@ -184,6 +191,13 @@ shortvtrdmg = {
184-- loc 191-- loc
185 192
186hamzatrloc = { 193hamzatrloc = {
194 -- hard coded hamza
195 {a="|\"'", b="'"},
196 {a="A\"'", b="'"},
197 {a="[au]\"'", b="'"},
198 {a="w\"'", b="'"},
199 {a="i\"'", b="'"},
200 {a="y\"'", b="'"},
187 -- initial long u 201 -- initial long u
188 {a="%'%_U", b="U"}, 202 {a="%'%_U", b="U"},
189 -- madda (historic writing below) 203 -- madda (historic writing below)
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua
index face931..1dc7a0c 100644
--- a/arabluatex_voc.lua
+++ b/arabluatex_voc.lua
@@ -65,6 +65,13 @@ raw = {
65} 65}
66 66
67hamza = { 67hamza = {
68 -- hard coded hamza
69 {a="|\"'", b="ء"},
70 {a="A\"'", b="آ"},
71 {a="[au]\"'", b="أ"},
72 {a="w\"'", b="ؤ"},
73 {a="i\"'", b="إ"},
74 {a="y\"'", b="ئ"},
68 -- initial long u 75 -- initial long u
69 {a="%'%_U", b="أU"}, 76 {a="%'%_U", b="أU"},
70 -- madda (historic writing below) 77 -- madda (historic writing below)
@@ -79,12 +86,19 @@ hamza = {
79 {a="(%W)(')([ua])", b="%1أ%3"}, 86 {a="(%W)(')([ua])", b="%1أ%3"},
80 {a="(%W)(')(i)", b="%1إ%3"}, 87 {a="(%W)(')(i)", b="%1إ%3"},
81 -- final 88 -- final
82 {a="([Iy])(')(aN)$", b="%1ئ%3"}, 89-- {a="([Iy])(')(aN)$", b="%1ئ%3"},
83 {a="([Iy])(')(aN)(%W)", b="%1ئ%3%4"}, 90-- {a="([Iy])(')(aN)(%W)", b="%1ئ%3%4"},
91-- {a="([^uai])(')([uai]N?)$", b="%1ء%3"},
92-- {a="([^uai])(')([uai]N?)(%W)", b="%1ء%3%4"},
93-- {a="([UI])(')([uai])$", b="%1ء%3"},
94-- {a="([UI])(')([uai])(%W)", b="%1ء%3%4"},
95-- {a="([UI])(')([uai]N?)$", b="%1ء%3"},
96-- {a="([UI])(')([uai]N?)(%W)", b="%1ء%3%4"},
97 -- ^say'aN and .zim'aN are special orthographies
98 {a="(%^say)(%')(aN)", b="%1ئ%3"},
99 {a="(.zi?m)(%')(aN)", b="%1ئ%3"},
84 {a="([^uai])(')([uai]N?)$", b="%1ء%3"}, 100 {a="([^uai])(')([uai]N?)$", b="%1ء%3"},
85 {a="([^uai])(')([uai]N?)(%W)", b="%1ء%3%4"}, 101 {a="([^uai])(')([uai]N?)(%W)", b="%1ء%3%4"},
86 {a="([UI])(')([uai])$", b="%1ء%3"},
87 {a="([UI])(')([uai])(%W)", b="%1ء%3%4"},
88 -- middle 102 -- middle
89 {a="(U)(')", b="%1ء"}, 103 {a="(U)(')", b="%1ء"},
90 {a="([Iy])(')", b="%1ئ"}, 104 {a="([Iy])(')", b="%1ئ"},
@@ -149,6 +163,7 @@ tanwin = {
149 {a="(aN)(_A)", b="ًى"}, 163 {a="(aN)(_A)", b="ًى"},
150 {a="(aN)(Y)", b="ًى"}, 164 {a="(aN)(Y)", b="ًى"},
151 {a="(T)(aN)", b="%1ً"}, 165 {a="(T)(aN)", b="%1ً"},
166 {a="(ء)(aN)", b="%1ً"},
152 {a="([^TA])(aN)", b="%1ًا"}, 167 {a="([^TA])(aN)", b="%1ًا"},
153 {a="iN", b="ٍ"} 168 {a="iN", b="ٍ"}
154} 169}