aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_trans.lua
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-05-08 16:09:05 +0200
committerRobert Alessi <alessi@robertalessi.net>2016-05-08 16:09:05 +0200
commit6202ee62d0f34509d7a652c30a1d5c19efec70ae (patch)
treea56d3c38f40221daabc0891d6b0974d6128fc7b6 /arabluatex_trans.lua
parente80c0d99f7d2511e6e3f3e70cd922f119a1fc217 (diff)
downloadarabluatex-6202ee62d0f34509d7a652c30a1d5c19efec70ae.tar.gz
done implementing 'easy' rules set
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r--arabluatex_trans.lua55
1 files changed, 55 insertions, 0 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index 6b3f1bc..c96a9da 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -201,6 +201,61 @@ trigraphstrdmg = { -- trigraphs or more
201 {a="(n)(%s)([rlmnwy])", b="%3%2%3"} 201 {a="(n)(%s)([rlmnwy])", b="%3%2%3"}
202} 202}
203 203
204trigraphstrdmgeasy = { -- see the differences below under 'easy' tag
205 -- 'llatI / 'llad_I
206 {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"},
207 {a="(%s)'ll(a)([%_]?[dt])", b="%1'll%2%3"},
208 -- al- + lām
209 {a="^(a)l%-(l)", b="%1l-%2"},
210 {a="([%s%-])(a)l%-(l)", b="%1%2l-%3"},
211 -- al- + solar consonant
212 {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2-%2"},
213 {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2%3-%3"},
214 -- assim. art. + solar consonant
215 {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1%2-"},
216 {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1%2%3-"},
217 -- al- + initial unstable hamza
218 {a="^(a)l%-([uai])", b="%1l-%2"},
219 {a="([%s%-])(a)l%-([uai])", b="%1%2l-%3"},
220 -- li-/la- + art. + initial unstable hamza is a special orthography
221 {a="l([ai])%-l%-([uai])", b="l%1-l-%2"},
222 -- al- + lunar consonant (i.e. what remains)
223 {a="^(a)l%-", b="%1l-"},
224 {a="([%s%-])(a)l%-", b="%1%2l-"},
225 -- diphthongs to be resolved before ʾalif conjunctionis
226 {a="(aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1u%2%3"},
227 {a="(ay)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"},
228 -- art. with waṣla + lām
229 {a="'l%-(l)", b="'l-%1"},
230 -- art. with waṣla + solar consonant
231 {a="'l%-([%_%^%.]?[tdrzsn])", b="'%1-%1"},
232 -- li-/la- + art. + lām
233 {a="l([ai])%-l%-(l)", b="l%1-%2%2"},
234 -- assim. art. with waṣla + solar consonant
235 {a="'([%_%^%.]?[tdrzsn])%-", b="'%1-"},
236 -- li-/la- + art. + solar consonant is a special orthography
237 {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="l%1-%2-%2"},
238 -- li-/la- + assim. art. + solar consonant is a special orthography
239 {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="l%1-%2-%3"},
240 -- art. with waṣla + initial unstable hamza
241 {a="'l%-([uai])", b="'l-%1"},
242 -- art. with waṣla + lunar consonant (i.e. what remains)
243 {a="'l%-", b="'l-"},
244 -- the silent wāw
245 {a="uU$", b="u"},
246 {a="uU(%W)", b="u%1"},
247 {a="aU$", b="a"},
248 {a="aU(%W)", b="a%1"},
249 {a="iU$", b="i"},
250 {a="iU(%W)", b="i%1"},
251 -- words ending in -āT with silent wāw/yāʾ
252 {a="(_a)UA", b="A"},
253 {a="(_a)U", b="A"},
254 {a="(_a)I", b="A"}
255 -- assimilations
256--easy {a="(n)(%s)([rlmnwy])", b="%3%2%3"}
257}
258
204digraphstrdmg = { 259digraphstrdmg = {
205 {a="([uai]%-)(\"?[uai])", b="%1'"}, -- hyphen + initial alif without hamza 260 {a="([uai]%-)(\"?[uai])", b="%1'"}, -- hyphen + initial alif without hamza
206 {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza 261 {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza