diff options
Diffstat (limited to 'arabluatex_voc.lua')
-rw-r--r-- | arabluatex_voc.lua | 25 |
1 files changed, 20 insertions, 5 deletions
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 | ||
67 | hamza = { | 67 | hamza = { |
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 | } |