aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_trans.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r--arabluatex_trans.lua19
1 files changed, 17 insertions, 2 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index f7274c1..cdcc654 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -109,6 +109,9 @@ trigraphstrdmg = { -- trigraphs or more
109 -- al- + lunar consonant (i.e. what remains) 109 -- al- + lunar consonant (i.e. what remains)
110 {a="^(a)l%-", b="%1l-"}, 110 {a="^(a)l%-", b="%1l-"},
111 {a="(%s)(a)l%-", b="%1%2l-"}, 111 {a="(%s)(a)l%-", b="%1%2l-"},
112 -- diphthongs to be resolved before ʾalif conjunctionis
113 {a="(aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1u%2%3"},
114 {a="(ay)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"},
112 -- art. with waṣla + lām 115 -- art. with waṣla + lām
113 {a="'l%-(l)", b="'l-%1"}, 116 {a="'l%-(l)", b="'l-%1"},
114 -- art. with waṣla + solar consonant 117 -- art. with waṣla + solar consonant
@@ -144,6 +147,14 @@ tanwintrdmg = {
144 {a="uNU", b="un"}, 147 {a="uNU", b="un"},
145 {a="aNU", b="an"}, 148 {a="aNU", b="an"},
146 {a="iNU", b="in"}, 149 {a="iNU", b="in"},
150 -- tanwīn preceding ʾalif conjunctionis
151 {a="(uN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="uni%2%3"},
152 {a="(aN)(_A)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ani%3%4"},
153 {a="(aN)(Y)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ani%3%4"},
154 {a="(T)(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="tani%3%4"},
155 {a="([^TA])(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1ani%3%4"},
156 {a="(iN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ini%2%3"},
157 --
147 {a="uN", b="un"}, 158 {a="uN", b="un"},
148 {a="(aN)(_A)", b="an"}, 159 {a="(aN)(_A)", b="an"},
149 {a="(aN)(Y)", b="an"}, 160 {a="(aN)(Y)", b="an"},
@@ -155,12 +166,15 @@ tanwintrdmg = {
155digraphstrdmg = { 166digraphstrdmg = {
156 {a="([uai]%-)([uai])", b="%1'"}, -- hyphen + initial alif without hamza 167 {a="([uai]%-)([uai])", b="%1'"}, -- hyphen + initial alif without hamza
157 {a="^([uai])", b="%1"}, -- initial alif without hamza 168 {a="^([uai])", b="%1"}, -- initial alif without hamza
158-- {a="([%_]?[uaiUAIY])(%s)([uai])", b="%1%2'"}, -- initial alif without hamza 169-- {a="([%_]?[uaiUAIY])(%s)([uai])", b="%1%2'"}, -- initial alif without hamza
170 {a="(aW)(%s)([uai])", b="awu%2%3"},
159 {a="([^%_][uai])(%s)([uai])", b="%1%2'"}, 171 {a="([^%_][uai])(%s)([uai])", b="%1%2'"},
160 {a="([%_]?[AYa])(%s)([uai])", b="a%2'"}, 172 {a="([%_]?[AYa])(%s)([uai])", b="a%2'"},
161 {a="([%_]?[Uu])(%s)([uai])", b="u%2'"}, 173 {a="([%_]?[Uu])(%s)([uai])", b="u%2'"},
162 {a="([%_]?[Ii])(%s)([uai])", b="i%2'"}, 174 {a="([%_]?[Ii])(%s)([uai])", b="i%2'"},
163 -- shorten long vowels preceding ʾalif conjunctionis 175 -- shorten long vowels preceding ʾalif conjunctionis
176 {a="(U)(A)", b="U"},
177 {a="(aW)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="awu%2%3"},
164 {a="([%_]?[AYa])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="a%2%3"}, 178 {a="([%_]?[AYa])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="a%2%3"},
165 {a="([%_]?[Uu])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="u%2%3"}, 179 {a="([%_]?[Uu])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="u%2%3"},
166 {a="([%_]?[Ii])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="i%2%3"}, 180 {a="([%_]?[Ii])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="i%2%3"},
@@ -179,7 +193,8 @@ digraphstrdmg = {
179 {a="%.t", b="ṭ"}, 193 {a="%.t", b="ṭ"},
180 {a="%.z", b="ẓ"}, 194 {a="%.z", b="ẓ"},
181 {a="%.g", b="ġ"}, 195 {a="%.g", b="ġ"},
182 {a="(U)(A)", b="ū"}, 196 -- the following needs to be moved above shortening rules
197-- {a="(U)(A)", b="ū"},
183 {a="WA", b="w"}, 198 {a="WA", b="w"},
184 {a="(a)W", b="%1w"}, 199 {a="(a)W", b="%1w"},
185 {a="_A", b="ā"}, 200 {a="_A", b="ā"},