aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_novoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex_novoc.lua')
-rw-r--r--arabluatex_novoc.lua65
1 files changed, 63 insertions, 2 deletions
diff --git a/arabluatex_novoc.lua b/arabluatex_novoc.lua
index 4710ccc..4f08d68 100644
--- a/arabluatex_novoc.lua
+++ b/arabluatex_novoc.lua
@@ -22,18 +22,79 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2202111-1307, USA. 2202111-1307, USA.
23--]] 23--]]
24 24
25trigraphsnv = { -- trigraphs or more
26 -- Allah
27 {a="l%-l_ah", b="l-ll_ah"},
28 -- 'llatI / 'llad_I
29 {a="^'ll(a)([%_]?[dt])", b="ال%1%2"},
30 {a="(%s)'ll(a)([%_]?[dt])", b="%1ال%2%3"},
31 -- al- + lām
32 {a="^(a)l%-(l)", b="ا%1ل%2"},
33 {a="(%s)(a)l%-(l)", b="%1ا%2ل%3"},
34 -- al- + solar consonant
35 {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="ا%1ل%2"},
36 {a="(%s)(a)l%-([%_%^%.]?[tdrzsn])", b="%1ا%2ل%3"},
37 -- assim. art. + solar consonant
38 {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل"},
39 {a="(%s)(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل"},
40 -- al- + initial unstable hamza
41 {a="^(a)l%-([uai])", b="ا%1لا%2"},
42 {a="(%s)(a)l%-([uai])", b="%1ا%2لا%3"},
43 -- li-/la- + art. + initial unstable hamza is a special orthography
44 {a="l([ai])%-l%-([uai])", b="ل%1لا%2"},
45 -- al- + lunar consonant (i.e. what remains)
46 {a="^(a)l%-", b="ا%1ل"},
47 {a="(%s)(a)l%-", b="%1ا%2ل"},
48 -- art. with waṣla + lām
49 {a="'l%-(l)", b="ال%1"},
50 -- art. with waṣla + solar consonant
51 {a="'l%-([%_%^%.]?[tdrzsn])", b="ال%1"},
52 -- li-/la- + art. + lām
53 {a="l([ai])%-l%-(l)", b="ل%1%2"},
54 -- assim. art. with waṣla + solar consonant
55 {a="'([%_%^%.]?[tdrzsn])%-", b="ال"},
56 -- li-/la- + art. + solar consonant is a special orthography
57 {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="ل%1ل%2"},
58 -- li-/la + assim. art. + solar consonant is a special orthography
59 {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="ل%1ل%3"},
60 -- art. with waṣla + initial unstable hamza
61 {a="'l%-([uai])", b="الا%1"},
62 -- art. with waṣla + lunar consonant (i.e. what remains)
63 {a="'l%-", b="ال"},
64 -- the silent wāw
65 {a="uU$", b="uو"},
66 {a="uU(%W)", b="uو%1"},
67 {a="aU$", b="aو"},
68 {a="aU(%W)", b="aو%1"},
69 {a="iU$", b="iو"},
70 {a="iU(%W)", b="iو%1"},
71 -- words ending in -āT with silent wāw/yāʾ
72 {a="(_a)UA", b="%1وا"},
73 {a="(_a)U", b="%1و"},
74 {a="(_a)I", b="%1ي"}
75}
76
25tanwinnv = { 77tanwinnv = {
26 {a="uNU", b="و"}, 78 {a="uNU", b="و"},
27 {a="aNU", b="وا"}, 79 {a="aNU", b="وا"},
28 {a="iNU", b="و"}, 80 {a="iNU", b="و"},
29 {a="uN", b=""}, 81 -- assimilations (begin)
82-- {a="(uN)(%s)([rlmnwy])", b="|%2%3%3"},
83-- {a="(aN)(_A)(%s)([rlmnwy])", b="ى%3%4%4"},
84-- {a="(aN)(Y)(%s)([rlmnwy])", b="ى%3%4%4"},
85-- {a="(T)(aN)(%s)([rlmnwy])", b="%1%3%4%4"},
86-- {a="(ء)(aN)(%s)([rlmnwy])", b="%1%3%4%4"},
87-- {a="([^TA])(aN)(%s)([rlmnwy])", b="%1ا%3%4%4"},
88-- {a="(iN)(%s)([rlmnwy])", b="|%2%3%3"},
89 --assimilations (end)
90 {a="(uN)", b=""},
30 {a="(B)(aN)", b="%1"}, 91 {a="(B)(aN)", b="%1"},
31 {a="(aN)(_A)", b="ى"}, 92 {a="(aN)(_A)", b="ى"},
32 {a="(aN)(Y)", b="ى"}, 93 {a="(aN)(Y)", b="ى"},
33 {a="(T)(aN)", b="%1"}, 94 {a="(T)(aN)", b="%1"},
34 {a="(ء)(aN)", b="%1"}, 95 {a="(ء)(aN)", b="%1"},
35 {a="([^TA])(aN)", b="%1ا"}, 96 {a="([^TA])(aN)", b="%1ا"},
36 {a="iN", b=""} 97 {a="(iN)", b=""}
37} 98}
38 99
39longvnv = { 100longvnv = {