diff options
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r-- | arabluatex_trans.lua | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua index 81f12d7..f1407be 100644 --- a/arabluatex_trans.lua +++ b/arabluatex_trans.lua | |||
@@ -31,7 +31,7 @@ punctuationtr = { | |||
31 | 31 | ||
32 | nulltr = { | 32 | nulltr = { |
33 | {a="%|", b=""}, | 33 | {a="%|", b=""}, |
34 | {a="o[%S]-o", b=""}, | 34 | {a="O[%S]-O", b=""}, |
35 | {a="[%^%_](.)", b="<??>%1"} | 35 | {a="[%^%_](.)", b="<??>%1"} |
36 | } | 36 | } |
37 | 37 | ||
@@ -119,13 +119,13 @@ lcuc = { | |||
119 | hamzatrdmg = { | 119 | hamzatrdmg = { |
120 | -- next lines for ʾalif alone | 120 | -- next lines for ʾalif alone |
121 | {a="(%.A)l%-(%^n)", b=".|l-%2"}, --additional (^n is lunar) | 121 | {a="(%.A)l%-(%^n)", b=".|l-%2"}, --additional (^n is lunar) |
122 | {a="([%(%[%|%<%s%-o])(%.A)l%-(%^n)", b="%1.|l-%3"}, --additional (^n is lunar) --p | 122 | {a="([%(%[%|%<%s%-O])(%.A)l%-(%^n)", b="%1.|l-%3"}, --additional (^n is lunar) --p |
123 | {a="(%.A)l%-([%_%^%.]?[tdrzsnc])", b=".|%2-%2"}, | 123 | {a="(%.A)l%-([%_%^%.]?[tdrzsnc])", b=".|%2-%2"}, |
124 | {a="([%(%[%|%<%s%-o])(%.A)l%-([%_%^%.]?[tdrzsnc])", b="%1.|%3-%3"}, --p | 124 | {a="([%(%[%|%<%s%-O])(%.A)l%-([%_%^%.]?[tdrzsnc])", b="%1.|%3-%3"}, --p |
125 | {a="(%.A)([uai])l%-(%^n)", b="||%2l-%3"}, --additional (^n is lunar) | 125 | {a="(%.A)([uai])l%-(%^n)", b="||%2l-%3"}, --additional (^n is lunar) |
126 | {a="([%(%[%|%<%s%-o])(%.A)([uai])l%-(%^n)", b="%1||%3l-%4"}, --additional (^n is lunar) --p | 126 | {a="([%(%[%|%<%s%-O])(%.A)([uai])l%-(%^n)", b="%1||%3l-%4"}, --additional (^n is lunar) --p |
127 | {a="(%.A)([uai])l%-([%_%^%.]?[tdrzsnc])", b="||%2%3-%3"}, | 127 | {a="(%.A)([uai])l%-([%_%^%.]?[tdrzsnc])", b="||%2%3-%3"}, |
128 | {a="([%(%[%|%<%s%-o])(%.A)([uai])l%-([%_%^%.]?[tdrzsnc])", b="%1||%3%4-%4"}, --p | 128 | {a="([%(%[%|%<%s%-O])(%.A)([uai])l%-([%_%^%.]?[tdrzsnc])", b="%1||%3%4-%4"}, --p |
129 | {a="(%.A)([^uai])", b=".|%2"}, | 129 | {a="(%.A)([^uai])", b=".|%2"}, |
130 | {a="(%.A)([uai])", b="||%2"}, | 130 | {a="(%.A)([uai])", b="||%2"}, |
131 | -- hard coded hamza | 131 | -- hard coded hamza |
@@ -158,10 +158,10 @@ hamzatrdmg = { | |||
158 | {a="(A)(')", b="%1ʾ"}, -- historic madda | 158 | {a="(A)(')", b="%1ʾ"}, -- historic madda |
159 | -- initial (needs both ^ and %W patterns) | 159 | -- initial (needs both ^ and %W patterns) |
160 | -- 'aw: the diphthong is to be resolved into 'awi' (next 8 lines) | 160 | -- 'aw: the diphthong is to be resolved into 'awi' (next 8 lines) |
161 | {a="^('aw)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1i"}, | 161 | {a="^('aw)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1i"}, |
162 | {a="(%W)('aw)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1%2i"}, | 162 | {a="(%W)('aw)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1%2i"}, |
163 | {a="^('aw)(o)(\"?[uai])([%S]-o)", b="%1i"}, | 163 | {a="^('aw)(O)(\"?[uai])([%S]-O)", b="%1i"}, |
164 | {a="(%W)('aw)(o)(\"?[uai])([%S]-o)", b="%1%2i"}, | 164 | {a="(%W)('aw)(O)(\"?[uai])([%S]-O)", b="%1%2i"}, |
165 | {a="^('aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, | 165 | {a="^('aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, |
166 | {a="(%W)('aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1%2i%3%4"}, | 166 | {a="(%W)('aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1%2i%3%4"}, |
167 | {a="^('aw)(%s)([%(%[%|%<]?\"?[uai])", b="%1i%2%3"}, --p | 167 | {a="^('aw)(%s)([%(%[%|%<]?\"?[uai])", b="%1i%2%3"}, --p |
@@ -202,22 +202,22 @@ hamzatrdmg = { | |||
202 | } | 202 | } |
203 | 203 | ||
204 | tanwintrdmg = { | 204 | tanwintrdmg = { |
205 | {a="%-?([uai]NU)(o)([ui])([%S]-o)", b="\\arbup{un%3}"}, | 205 | {a="%-?([uai]NU)(O)([ui])([%S]-O)", b="\\arbup{un%3}"}, |
206 | {a="%-?([uai]NU)(%s)([ui])", b="\\arbup{un%3}%2'"}, | 206 | {a="%-?([uai]NU)(%s)([ui])", b="\\arbup{un%3}%2'"}, |
207 | {a="%-?(iNI)(o)([ui])([%S]-o)", b="i\\arbup{n%3}"}, | 207 | {a="%-?(iNI)(O)([ui])([%S]-O)", b="i\\arbup{n%3}"}, |
208 | {a="%-?(iNI)(%s)([ui])", b="i\\arbup{n%3}%2'"}, | 208 | {a="%-?(iNI)(%s)([ui])", b="i\\arbup{n%3}%2'"}, |
209 | {a="(o[%S]-)([uai]N[UI])(o)(\"?[ui])", b="'"}, | 209 | {a="(O[%S]-)([uai]N[UI])(O)(\"?[ui])", b="'"}, |
210 | {a="%-?uNU", b="\\arbup{un}"}, | 210 | {a="%-?uNU", b="\\arbup{un}"}, |
211 | {a="%-?aNU", b="\\arbup{an}"}, | 211 | {a="%-?aNU", b="\\arbup{an}"}, |
212 | {a="%-?iNU", b="\\arbup{in}"}, | 212 | {a="%-?iNU", b="\\arbup{in}"}, |
213 | {a="%-?iNI", b="i\\arbup{n}"}, | 213 | {a="%-?iNI", b="i\\arbup{n}"}, |
214 | -- tanwīn preceding ʾalif conjunctionis | 214 | -- tanwīn preceding ʾalif conjunctionis |
215 | {a="%-?(uN)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="\\arbup{uni}"}, | 215 | {a="%-?(uN)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="\\arbup{uni}"}, |
216 | {a="%-?(aN)(_A)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="ạ\\arbup{ni}"}, | 216 | {a="%-?(aN)(_A)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="ạ\\arbup{ni}"}, |
217 | {a="%-?(aN)(Y)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="ạ\\arbup{ni}"}, | 217 | {a="%-?(aN)(Y)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="ạ\\arbup{ni}"}, |
218 | {a="(T)%-?(aN)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="t\\arbup{ani}"}, | 218 | {a="(T)%-?(aN)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="t\\arbup{ani}"}, |
219 | {a="([^TA])%-?(aN)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1\\arbup{ani}"}, | 219 | {a="([^TA])%-?(aN)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1\\arbup{ani}"}, |
220 | {a="%-?(iN)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="\\arbup{ini}"}, | 220 | {a="%-?(iN)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="\\arbup{ini}"}, |
221 | {a="%-?(uN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{uni}%2%3"}, | 221 | {a="%-?(uN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{uni}%2%3"}, |
222 | {a="%-?(aN)(_A)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ\\arbup{ni}%3%4"}, | 222 | {a="%-?(aN)(_A)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ\\arbup{ni}%3%4"}, |
223 | {a="%-?(aN)(Y)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ\\arbup{ni}%3%4"}, | 223 | {a="%-?(aN)(Y)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ\\arbup{ni}%3%4"}, |
@@ -225,12 +225,12 @@ tanwintrdmg = { | |||
225 | {a="([^TA])%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1\\arbup{ani}%3%4"}, | 225 | {a="([^TA])%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1\\arbup{ani}%3%4"}, |
226 | {a="%-?(iN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{ini}%2%3"}, | 226 | {a="%-?(iN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{ini}%2%3"}, |
227 | -- tanwīn preceding 'lla_dI/'llatI | 227 | -- tanwīn preceding 'lla_dI/'llatI |
228 | {a="%-?(uN)(o)('lla[%_]?[dt])([%S]-o)", b="\\arbup{uni}"}, | 228 | {a="%-?(uN)(O)('lla[%_]?[dt])([%S]-O)", b="\\arbup{uni}"}, |
229 | {a="%-?(aN)(_A)(o)('lla[%_]?[dt])([%S]-o)", b="ạ\\arbup{ni}"}, | 229 | {a="%-?(aN)(_A)(O)('lla[%_]?[dt])([%S]-O)", b="ạ\\arbup{ni}"}, |
230 | {a="%-?(aN)(Y)(o)('lla[%_]?[dt])([%S]-o)", b="ạ\\arbup{ni}"}, | 230 | {a="%-?(aN)(Y)(O)('lla[%_]?[dt])([%S]-O)", b="ạ\\arbup{ni}"}, |
231 | {a="(T)%-?(aN)(o)('lla[%_]?[dt])([%S]-o)", b="t\\arbup{ani}"}, | 231 | {a="(T)%-?(aN)(O)('lla[%_]?[dt])([%S]-O)", b="t\\arbup{ani}"}, |
232 | {a="([^TA])%-?(aN)(o)('lla[%_]?[dt])([%S]-o)", b="%1\\arbup{ani}"}, | 232 | {a="([^TA])%-?(aN)(O)('lla[%_]?[dt])([%S]-O)", b="%1\\arbup{ani}"}, |
233 | {a="%-?(iN)(o)('lla[%_]?[dt])([%S]-o)", b="\\arbup{ini}"}, | 233 | {a="%-?(iN)(O)('lla[%_]?[dt])([%S]-O)", b="\\arbup{ini}"}, |
234 | {a="%-?(uN)(%s)('lla[%_]?[dt])", b="\\arbup{uni}%2%3"}, | 234 | {a="%-?(uN)(%s)('lla[%_]?[dt])", b="\\arbup{uni}%2%3"}, |
235 | {a="%-?(aN)(_A)(%s)('lla[%_]?[dt])", b="ạ\\arbup{ni}%3%4"}, | 235 | {a="%-?(aN)(_A)(%s)('lla[%_]?[dt])", b="ạ\\arbup{ni}%3%4"}, |
236 | {a="%-?(aN)(Y)(%s)('lla[%_]?[dt])", b="ạ\\arbup{ni}%3%4"}, | 236 | {a="%-?(aN)(Y)(%s)('lla[%_]?[dt])", b="ạ\\arbup{ni}%3%4"}, |
@@ -238,13 +238,13 @@ tanwintrdmg = { | |||
238 | {a="([^TA])%-?(aN)(%s)('lla[%_]?[dt])", b="%1\\arbup{ani}%3%4"}, | 238 | {a="([^TA])%-?(aN)(%s)('lla[%_]?[dt])", b="%1\\arbup{ani}%3%4"}, |
239 | {a="%-?(iN)(%s)('lla[%_]?[dt])", b="\\arbup{ini}%2%3"}, | 239 | {a="%-?(iN)(%s)('lla[%_]?[dt])", b="\\arbup{ini}%2%3"}, |
240 | -- tanwīn + alif without hamza and kasra (ibn) or dhamma (uhrub) | 240 | -- tanwīn + alif without hamza and kasra (ibn) or dhamma (uhrub) |
241 | {a="%-?(uN)(o)([ui])([%S]-o)", b="\\arbup{un%3}"}, | 241 | {a="%-?(uN)(O)([ui])([%S]-O)", b="\\arbup{un%3}"}, |
242 | {a="%-?(aN)(_A)(o)([ui])([%S]-o)", b="ạ\\arbup{n%4}"}, | 242 | {a="%-?(aN)(_A)(O)([ui])([%S]-O)", b="ạ\\arbup{n%4}"}, |
243 | {a="%-?(aN)(Y)(o)([ui])([%S]-o)", b="ạ\\arbup{n%4}"}, | 243 | {a="%-?(aN)(Y)(O)([ui])([%S]-O)", b="ạ\\arbup{n%4}"}, |
244 | {a="(T)%-?(aN)(o)([ui])([%S]-o)", b="t\\arbup{an%4}"}, | 244 | {a="(T)%-?(aN)(O)([ui])([%S]-O)", b="t\\arbup{an%4}"}, |
245 | {a="([^TA])%-?(aN)(o)([ui])([%S]-o)", b="%1\\arbup{an%4}"}, | 245 | {a="([^TA])%-?(aN)(O)([ui])([%S]-O)", b="%1\\arbup{an%4}"}, |
246 | {a="%-?(iN)(o)([ui])([%S]-o)", b="\\arbup{in%3}"}, | 246 | {a="%-?(iN)(O)([ui])([%S]-O)", b="\\arbup{in%3}"}, |
247 | {a="(o[%S]-)([uai]N)(o)(\"?[ui])", b="'"}, | 247 | {a="(O[%S]-)([uai]N)(O)(\"?[ui])", b="'"}, |
248 | {a="%-?(uN)(%s)([ui])", b="\\arbup{un%3}%2'"}, | 248 | {a="%-?(uN)(%s)([ui])", b="\\arbup{un%3}%2'"}, |
249 | {a="%-?(aN)(_A)(%s)([ui])", b="ạ\\arbup{n%4}%3'"}, | 249 | {a="%-?(aN)(_A)(%s)([ui])", b="ạ\\arbup{n%4}%3'"}, |
250 | {a="%-?(aN)(Y)(%s)([ui])", b="ạ\\arbup{n%4}%3'"}, | 250 | {a="%-?(aN)(Y)(%s)([ui])", b="ạ\\arbup{n%4}%3'"}, |
@@ -266,38 +266,38 @@ trigraphstrdmg = { -- trigraphs or more | |||
266 | {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"}, | 266 | {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"}, |
267 | {a="([%(%[%|%<%s])'ll(a)([%_]?[dt])", b="%1'll%2%3"}, --p | 267 | {a="([%(%[%|%<%s])'ll(a)([%_]?[dt])", b="%1'll%2%3"}, --p |
268 | -- law: the diphthong is to be resolved into 'awi' (next 8 lines) | 268 | -- law: the diphthong is to be resolved into 'awi' (next 8 lines) |
269 | {a="^(law)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1i"}, | 269 | {a="^(law)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1i"}, |
270 | {a="(%W)(law)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1%2i"}, | 270 | {a="(%W)(law)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1%2i"}, |
271 | {a="^(law)(o)(\"?[uai])([%S]-o)", b="%1i"}, | 271 | {a="^(law)(O)(\"?[uai])([%S]-O)", b="%1i"}, |
272 | {a="(%W)(law)(o)(\"?[uai])([%S]-o)", b="%1%2i"}, | 272 | {a="(%W)(law)(O)(\"?[uai])([%S]-O)", b="%1%2i"}, |
273 | {a="^(law)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, | 273 | {a="^(law)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, |
274 | {a="(%W)(law)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1%2i%3%4"}, | 274 | {a="(%W)(law)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1%2i%3%4"}, |
275 | {a="^(law)(%s)([%(%[%|%<]?\"?[uai])", b="%1i%2%3"}, --p | 275 | {a="^(law)(%s)([%(%[%|%<]?\"?[uai])", b="%1i%2%3"}, --p |
276 | {a="(%W)(law)(%s)([%(%[%|%<]?\"?[uai])", b="%1%2i%3%4"}, --p | 276 | {a="(%W)(law)(%s)([%(%[%|%<]?\"?[uai])", b="%1%2i%3%4"}, --p |
277 | -- al- + lām | 277 | -- al- + lām |
278 | {a="^(a)l%-(l)", b="%1l-%2"}, | 278 | {a="^(a)l%-(l)", b="%1l-%2"}, |
279 | {a="([%(%[%|%<%s%-o])(a)l%-(l)", b="%1%2l-%3"}, --p | 279 | {a="([%(%[%|%<%s%-O])(a)l%-(l)", b="%1%2l-%3"}, --p |
280 | -- al- + solar consonant ('c' and '^n' are additional characters) | 280 | -- al- + solar consonant ('c' and '^n' are additional characters) |
281 | {a="^(a)l%-(%^n)", b="%1l-%2"}, -- ^n is lunar | 281 | {a="^(a)l%-(%^n)", b="%1l-%2"}, -- ^n is lunar |
282 | {a="([%(%[%|%<%s%-o])(a)l%-(%^n)", b="%1%2l-%3"}, --^n is lunar --p | 282 | {a="([%(%[%|%<%s%-O])(a)l%-(%^n)", b="%1%2l-%3"}, --^n is lunar --p |
283 | {a="^(a)l%-([%_%^%.]?[tdrzsnc])", b="%1%2-%2"}, | 283 | {a="^(a)l%-([%_%^%.]?[tdrzsnc])", b="%1%2-%2"}, |
284 | {a="([%(%[%|%<%s%-o])(a)l%-([%_%^%.]?[tdrzsnc])", b="%1%2%3-%3"}, --p | 284 | {a="([%(%[%|%<%s%-O])(a)l%-([%_%^%.]?[tdrzsnc])", b="%1%2%3-%3"}, --p |
285 | -- assim. art. + solar consonant ('c' and '^n' are additional characters) | 285 | -- assim. art. + solar consonant ('c' and '^n' are additional characters) |
286 | {a="^(a)(%^n)%-", b="%1l-"}, -- ^n is lunar | 286 | {a="^(a)(%^n)%-", b="%1l-"}, -- ^n is lunar |
287 | {a="([%(%[%|%<%s%-o])(a)(%^n)%-", b="%1%2l-"}, --^n is lunar --p | 287 | {a="([%(%[%|%<%s%-O])(a)(%^n)%-", b="%1%2l-"}, --^n is lunar --p |
288 | {a="^(a)([%_%^%.]?[tdrzsnc])%-", b="%1%2-"}, | 288 | {a="^(a)([%_%^%.]?[tdrzsnc])%-", b="%1%2-"}, |
289 | {a="([%(%[%|%<%s%-o])(a)([%_%^%.]?[tdrzsnc])%-", b="%1%2%3-"}, --p | 289 | {a="([%(%[%|%<%s%-O])(a)([%_%^%.]?[tdrzsnc])%-", b="%1%2%3-"}, --p |
290 | -- al- + initial unstable hamza | 290 | -- al- + initial unstable hamza |
291 | {a="^(a)l%-(\"?[uai])", b="%1l-%2"}, | 291 | {a="^(a)l%-(\"?[uai])", b="%1l-%2"}, |
292 | {a="([%(%[%|%<%s%-o])(a)l%-(\"?[uai])", b="%1%2l-%3"}, --p | 292 | {a="([%(%[%|%<%s%-O])(a)l%-(\"?[uai])", b="%1%2l-%3"}, --p |
293 | -- li-/la- + art. + initial unstable hamza is a special orthography | 293 | -- li-/la- + art. + initial unstable hamza is a special orthography |
294 | {a="l([ai])%-l%-([uai])", b="l%1-l-%2"}, | 294 | {a="l([ai])%-l%-([uai])", b="l%1-l-%2"}, |
295 | -- al- + lunar consonant (i.e. what remains) | 295 | -- al- + lunar consonant (i.e. what remains) |
296 | {a="^(a)l%-", b="%1l-"}, | 296 | {a="^(a)l%-", b="%1l-"}, |
297 | {a="([%(%[%|%<%s%-o])(a)l%-", b="%1%2l-"}, --p | 297 | {a="([%(%[%|%<%s%-O])(a)l%-", b="%1%2l-"}, --p |
298 | -- diphthongs to be resolved before ʾalif conjunctionis | 298 | -- diphthongs to be resolved before ʾalif conjunctionis |
299 | {a="(aw)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1u"}, | 299 | {a="(aw)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1u"}, |
300 | {a="(ay)(o)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-o)", b="%1i"}, | 300 | {a="(ay)(O)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)([%S]-O)", b="%1i"}, |
301 | {a="(aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1u%2%3"}, | 301 | {a="(aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1u%2%3"}, |
302 | {a="(ay)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, | 302 | {a="(ay)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, |
303 | -- art. with waṣla + lām | 303 | -- art. with waṣla + lām |
@@ -340,7 +340,7 @@ trigraphstrdmg = { -- trigraphs or more | |||
340 | idghamtrdmg = { | 340 | idghamtrdmg = { |
341 | -- assimilations | 341 | -- assimilations |
342 | {a="(n)(}?)(%s)([rlmnwy])", b="%4%2%3%4"}, | 342 | {a="(n)(}?)(%s)([rlmnwy])", b="%4%2%3%4"}, |
343 | {a="(n)(}?)(o)([rlmnwy])([%S]-o)", b="%4%2"} | 343 | {a="(n)(}?)(O)([rlmnwy])([%S]-O)", b="%4%2"} |
344 | } | 344 | } |
345 | 345 | ||
346 | digraphstrdmg = { | 346 | digraphstrdmg = { |
@@ -354,19 +354,19 @@ digraphstrdmg = { | |||
354 | {a="(%W)(\"?[uai])", b="%1%2"}, -- initial alif without hamza | 354 | {a="(%W)(\"?[uai])", b="%1%2"}, -- initial alif without hamza |
355 | -- this is not necessary, take out for now: | 355 | -- this is not necessary, take out for now: |
356 | -- {a="([%_]?[uaiUAIY])(%s)([uai])", b="%1%2'"}, -- initial alif without hamza | 356 | -- {a="([%_]?[uaiUAIY])(%s)([uai])", b="%1%2'"}, -- initial alif without hamza |
357 | {a="(aw)(o)(\"?[uai])([%S]-o)", b="%1u"}, | 357 | {a="(aw)(O)(\"?[uai])([%S]-O)", b="%1u"}, |
358 | {a="(aw)(%s)([%(%[%|%<]?)(\"?[uai])", b="%1u%2%3'"}, --p | 358 | {a="(aw)(%s)([%(%[%|%<]?)(\"?[uai])", b="%1u%2%3'"}, --p |
359 | {a="(ay)(o)(\"?[uai])([%S]-o)", b="%1i"}, | 359 | {a="(ay)(O)(\"?[uai])([%S]-O)", b="%1i"}, |
360 | {a="(ay)(%s)([%(%[%|%<]?)(\"?[uai])", b="%1i%2%3'"}, --p | 360 | {a="(ay)(%s)([%(%[%|%<]?)(\"?[uai])", b="%1i%2%3'"}, --p |
361 | {a="(aW)(o)(\"?[uai])([%S]-o)", b="awu"}, | 361 | {a="(aW)(O)(\"?[uai])([%S]-O)", b="awu"}, |
362 | {a="(UA)(o)(\"?[uai])([%S]-o)", b="u"}, | 362 | {a="(UA)(O)(\"?[uai])([%S]-O)", b="u"}, |
363 | {a="(%_A)(o)(\"?[uai])([%S]-o)", b="ạ"}, | 363 | {a="(%_A)(O)(\"?[uai])([%S]-O)", b="ạ"}, |
364 | {a="(Y)(o)(\"?[uai])([%S]-o)", b="ạ"}, | 364 | {a="(Y)(O)(\"?[uai])([%S]-O)", b="ạ"}, |
365 | {a="(%_a)(o)(\"?[uai])([%S]-o)", b="a"}, | 365 | {a="(%_a)(O)(\"?[uai])([%S]-O)", b="a"}, |
366 | {a="(A)(o)(\"?[uai])([%S]-o)", b="a"}, | 366 | {a="(A)(O)(\"?[uai])([%S]-O)", b="a"}, |
367 | {a="([%_]?[Uu])(o)(\"?[uai])([%S]-o)", b="u"}, | 367 | {a="([%_]?[Uu])(O)(\"?[uai])([%S]-O)", b="u"}, |
368 | {a="([%_]?[Ii])(o)(\"?[uai])([%S]-o)", b="i"}, | 368 | {a="([%_]?[Ii])(O)(\"?[uai])([%S]-O)", b="i"}, |
369 | {a="(o[%S]-)([UAIYWuaiyw])(o)(\"?[uai])", b="'"}, | 369 | {a="(O[%S]-)([UAIYWuaiyw])(O)(\"?[uai])", b="'"}, |
370 | {a="(aW)(%s)([%(%[%|%<]?)(\"?[uai])", b="awu%2%3%4"}, --p | 370 | {a="(aW)(%s)([%(%[%|%<]?)(\"?[uai])", b="awu%2%3%4"}, --p |
371 | {a="(UA)(%s)([%(%[%|%<]?)(\"?[uai])", b="u%2%3'"}, --p | 371 | {a="(UA)(%s)([%(%[%|%<]?)(\"?[uai])", b="u%2%3'"}, --p |
372 | {a="([^%_][uai])(%s)([%(%[%|%<]?)(\"?[uai])", b="%1%2%3'"}, --p | 372 | {a="([^%_][uai])(%s)([%(%[%|%<]?)(\"?[uai])", b="%1%2%3'"}, --p |
@@ -390,13 +390,13 @@ digraphstrdmg = { | |||
390 | -- ʾiʿrāb hyphen (end) shorten long vowels preceding ʾalif | 390 | -- ʾiʿrāb hyphen (end) shorten long vowels preceding ʾalif |
391 | -- conjunctionis—without forgetting 'lla_dI | 391 | -- conjunctionis—without forgetting 'lla_dI |
392 | {a="(U)(A)", b="U"}, | 392 | {a="(U)(A)", b="U"}, |
393 | {a="(aW)(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="awu"}, | 393 | {a="(aW)(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="awu"}, |
394 | {a="(%_a)(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="a"}, | 394 | {a="(%_a)(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="a"}, |
395 | {a="(%_A)(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="ạ"}, | 395 | {a="(%_A)(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="ạ"}, |
396 | {a="(A)(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="a"}, | 396 | {a="(A)(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="a"}, |
397 | {a="(Y)(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="ạ"}, | 397 | {a="(Y)(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="ạ"}, |
398 | {a="([%_]?[Uu])(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="u"}, | 398 | {a="([%_]?[Uu])(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="u"}, |
399 | {a="([%_]?[Ii])(o)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-o)", b="i"}, | 399 | {a="([%_]?[Ii])(O)('[%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])([%S]-O)", b="i"}, |
400 | --p (next 7 lines, just after %s) | 400 | --p (next 7 lines, just after %s) |
401 | {a="(aW)(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="awu%2%3"}, | 401 | {a="(aW)(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="awu%2%3"}, |
402 | {a="(%_a)(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="a%2%3"}, | 402 | {a="(%_a)(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="a%2%3"}, |
@@ -908,7 +908,7 @@ trigraphstrarabica = { -- trigraphs or more | |||
908 | digraphstrarabica = { | 908 | digraphstrarabica = { |
909 | {a="([uai]%-)(\"?[uai])", b="%1"}, -- hyphen + initial alif without hamza | 909 | {a="([uai]%-)(\"?[uai])", b="%1"}, -- hyphen + initial alif without hamza |
910 | {a="([UAIYuai])(%s)([%(%[%|%<]?)(\"?[uai])", b="%1%2%3"}, --p | 910 | {a="([UAIYuai])(%s)([%(%[%|%<]?)(\"?[uai])", b="%1%2%3"}, --p |
911 | {a="(o[%S]-)([UAIuai])(o)(\"?[uai])", b=""}, | 911 | {a="(O[%S]-)([UAIuai])(O)(\"?[uai])", b=""}, |
912 | {a="@", b=""}, -- remove the tag before the former hamza | 912 | {a="@", b=""}, -- remove the tag before the former hamza |
913 | -- discard the ʾiʿrāb hyphen (begin) | 913 | -- discard the ʾiʿrāb hyphen (begin) |
914 | {a="(%-)(\"?[UI]na)(%p*%s)", b="%2%3"}, | 914 | {a="(%-)(\"?[UI]na)(%p*%s)", b="%2%3"}, |