diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-06-18 09:26:03 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-06-18 09:26:03 +0200 |
commit | 2eea4c32089eba9e2847e4e140d580620c312a4d (patch) | |
tree | 96f322ef28b76d6acfb87a539a5519588815a9fd | |
parent | 67d484712e6f6f2d26894c8858a220dc8de5c3c8 (diff) | |
download | arabluatex-2eea4c32089eba9e2847e4e140d580620c312a4d.tar.gz |
'Default' rules: leave hamzah alone in the middle of words after letters of prolongation or sukūn
-rw-r--r-- | arabluatex_fullvoc.lua | 18 | ||||
-rw-r--r-- | arabluatex_voc.lua | 18 |
2 files changed, 22 insertions, 14 deletions
diff --git a/arabluatex_fullvoc.lua b/arabluatex_fullvoc.lua index ca62308..d5ca11a 100644 --- a/arabluatex_fullvoc.lua +++ b/arabluatex_fullvoc.lua | |||
@@ -149,18 +149,22 @@ hamzafv = { | |||
149 | -- middle | 149 | -- middle |
150 | {a="([UIwy])(')", b="%1ء"}, --new | 150 | {a="([UIwy])(')", b="%1ء"}, --new |
151 | -- {a="([Iy])(')", b="%1ئ"}, --included in the above line | 151 | -- {a="([Iy])(')", b="%1ئ"}, --included in the above line |
152 | {a="([^uai])(')([uU])", b="%1ؤ%3"}, | 152 | -- hamza is alone after letters of prolongation or sukūn |
153 | {a="([^uai])(')(%_?[aAY])", b="%1أ%3"}, | 153 | -- {a="([^uai])(')([uU])", b="%1ؤ%3"}, |
154 | {a="([^uai])(')([iI])", b="%1ئ%3"}, | 154 | -- {a="([^uai])(')(%_?[aAY])", b="%1أ%3"}, |
155 | {a="(u)(')([uU])", b="%1ؤ%3"}, | 155 | -- {a="([^uai])(')([iI])", b="%1ئ%3"}, |
156 | {a="([^uai])(')(%_?[uaiUAYI])", b="%1ء%3"}, | ||
157 | {a="(u)(')([UI])", b="%1ء%3"}, | ||
158 | {a="(u)(')([u])", b="%1ؤ%3"}, | ||
156 | {a="(u)(')(%_?[aAY])", b="%1ؤ%3"}, | 159 | {a="(u)(')(%_?[aAY])", b="%1ؤ%3"}, |
157 | {a="(u)(')([iI])", b="%1ئ%3"}, | 160 | {a="(u)(')([i])", b="%1ئ%3"}, |
158 | {a="(a)(')(%_?[aAY])", b="%1أ%3"}, | 161 | {a="(a)(')(%_?[aAY])", b="%1أ%3"}, |
159 | {a="(a)(')([uU])", b="%1ؤ%3"}, | 162 | {a="(a)(')([uU])", b="%1ؤ%3"}, |
160 | {a="(a)(')([iI])", b="%1ئ%3"}, | 163 | {a="(a)(')([iI])", b="%1ئ%3"}, |
164 | {a="(i)(')([UI])", b="%1ء%3"}, | ||
161 | {a="(i)(')(%_?[aAY])", b="%1ئ%3"}, | 165 | {a="(i)(')(%_?[aAY])", b="%1ئ%3"}, |
162 | {a="(i)(')([uU])", b="%1ئ%3"}, | 166 | {a="(i)(')([u])", b="%1ئ%3"}, |
163 | {a="(i)(')([iI])", b="%1ئ%3"}, | 167 | {a="(i)(')([i])", b="%1ئ%3"}, |
164 | {a="(a)(')([^uaiUAI])", b="%1أْ%3"}, | 168 | {a="(a)(')([^uaiUAI])", b="%1أْ%3"}, |
165 | {a="(u)(')([^uaiUAI])", b="%1ؤْ%3"}, | 169 | {a="(u)(')([^uaiUAI])", b="%1ؤْ%3"}, |
166 | {a="(i)(')([^uaiUAI])", b="%1ئْ%3"} | 170 | {a="(i)(')([^uaiUAI])", b="%1ئْ%3"} |
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua index 54c324c..9b2a31c 100644 --- a/arabluatex_voc.lua +++ b/arabluatex_voc.lua | |||
@@ -276,18 +276,22 @@ hamza = { | |||
276 | -- middle | 276 | -- middle |
277 | {a="([UIwy])(')", b="%1ء"}, --new | 277 | {a="([UIwy])(')", b="%1ء"}, --new |
278 | -- {a="([Iy])(')", b="%1ئ"}, -- included in the above line | 278 | -- {a="([Iy])(')", b="%1ئ"}, -- included in the above line |
279 | {a="([^uai])(')([uU])", b="%1ؤ%3"}, | 279 | -- hamza is alone after letters of prolongation or sukūn |
280 | {a="([^uai])(')(%_?[aAY])", b="%1أ%3"}, | 280 | -- {a="([^uai])(')([uU])", b="%1ؤ%3"}, |
281 | {a="([^uai])(')([iI])", b="%1ئ%3"}, | 281 | -- {a="([^uai])(')(%_?[aAY])", b="%1أ%3"}, |
282 | {a="(u)(')([uU])", b="%1ؤ%3"}, | 282 | -- {a="([^uai])(')([iI])", b="%1ئ%3"}, |
283 | {a="([^uai])(')(%_?[uaiUAYI])", b="%1ء%3"}, | ||
284 | {a="(u)(')([UI])", b="%1ء%3"}, | ||
285 | {a="(u)(')([u])", b="%1ؤ%3"}, | ||
283 | {a="(u)(')(%_?[aAY])", b="%1ؤ%3"}, | 286 | {a="(u)(')(%_?[aAY])", b="%1ؤ%3"}, |
284 | {a="(u)(')([iI])", b="%1ئ%3"}, | 287 | {a="(u)(')([i])", b="%1ئ%3"}, |
285 | {a="(a)(')(%_?[aAY])", b="%1أ%3"}, | 288 | {a="(a)(')(%_?[aAY])", b="%1أ%3"}, |
286 | {a="(a)(')([uU])", b="%1ؤ%3"}, | 289 | {a="(a)(')([uU])", b="%1ؤ%3"}, |
287 | {a="(a)(')([iI])", b="%1ئ%3"}, | 290 | {a="(a)(')([iI])", b="%1ئ%3"}, |
291 | {a="(i)(')([UI])", b="%1ء%3"}, | ||
288 | {a="(i)(')(%_?[aAY])", b="%1ئ%3"}, | 292 | {a="(i)(')(%_?[aAY])", b="%1ئ%3"}, |
289 | {a="(i)(')([uU])", b="%1ئ%3"}, | 293 | {a="(i)(')([u])", b="%1ئ%3"}, |
290 | {a="(i)(')([iI])", b="%1ئ%3"}, | 294 | {a="(i)(')([i])", b="%1ئ%3"}, |
291 | {a="(a)(')([^uaiUAI])", b="%1أ%3"}, | 295 | {a="(a)(')([^uaiUAI])", b="%1أ%3"}, |
292 | {a="(u)(')([^uaiUAI])", b="%1ؤ%3"}, | 296 | {a="(u)(')([^uaiUAI])", b="%1ؤ%3"}, |
293 | {a="(i)(')([^uaiUAI])", b="%1ئ%3"} | 297 | {a="(i)(')([^uaiUAI])", b="%1ئ%3"} |