diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-03-25 20:00:36 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-03-25 20:00:36 +0100 |
commit | c3ebe405380117e05e6f518a9adbfe993286ab89 (patch) | |
tree | 9096c7e5a169e609e4508a77f0f15877c3f1e600 /arabluatex_voc.lua | |
parent | 3935c8e7fae78ab7fc6f52a912e6290b91fe2e92 (diff) | |
download | arabluatex-c3ebe405380117e05e6f518a9adbfe993286ab89.tar.gz |
improved quoting feature in all modes; still documenting
Diffstat (limited to 'arabluatex_voc.lua')
-rw-r--r-- | arabluatex_voc.lua | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua index ecdb067..f40c405 100644 --- a/arabluatex_voc.lua +++ b/arabluatex_voc.lua | |||
@@ -162,9 +162,12 @@ trigraphs = { -- trigraphs or more | |||
162 | {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل%2"}, | 162 | {a="^(a)([%_%^%.]?[tdrzsn])%-", b="ا%1ل%2"}, |
163 | {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل%3"}, | 163 | {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1ا%2ل%3"}, |
164 | -- al- + initial unstable hamza | 164 | -- al- + initial unstable hamza |
165 | {a="^(a)l%-(\")([uai])", b="ا%1لٱ%3"}, | ||
166 | {a="([%s%-])(a)l%-(\")([uai])", b="%1ا%2لٱ%4"}, | ||
165 | {a="^(a)l%-([uai])", b="ا%1لا%2"}, | 167 | {a="^(a)l%-([uai])", b="ا%1لا%2"}, |
166 | {a="([%s%-])(a)l%-([uai])", b="%1ا%2لا%3"}, | 168 | {a="([%s%-])(a)l%-([uai])", b="%1ا%2لا%3"}, |
167 | -- li-/la- + art. + initial unstable hamza is a special orthography | 169 | -- li-/la- + art. + initial unstable hamza is a special orthography |
170 | {a="l([ai])%-l%-(\")([uai])", b="ل%1لٱ%3"}, | ||
168 | {a="l([ai])%-l%-([uai])", b="ل%1لا%2"}, | 171 | {a="l([ai])%-l%-([uai])", b="ل%1لا%2"}, |
169 | -- al- + lunar consonant (i.e. what remains) | 172 | -- al- + lunar consonant (i.e. what remains) |
170 | {a="^(a)l%-", b="ا%1ل"}, | 173 | {a="^(a)l%-", b="ا%1ل"}, |
@@ -186,6 +189,7 @@ trigraphs = { -- trigraphs or more | |||
186 | -- li-/la + assim. art. + solar consonant is a special orthography | 189 | -- li-/la + assim. art. + solar consonant is a special orthography |
187 | {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="ل%1ل%3%3"}, | 190 | {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="ل%1ل%3%3"}, |
188 | -- art. with waṣla + initial unstable hamza | 191 | -- art. with waṣla + initial unstable hamza |
192 | {a="'l%-(\")([uai])", b="الٱ%2"}, | ||
189 | {a="'l%-([uai])", b="الا%1"}, | 193 | {a="'l%-([uai])", b="الا%1"}, |
190 | -- art. with waṣla + lunar consonant (i.e. what remains) | 194 | -- art. with waṣla + lunar consonant (i.e. what remains) |
191 | {a="'l%-", b="ال"}, | 195 | {a="'l%-", b="ال"}, |
@@ -217,6 +221,16 @@ tanwin = { | |||
217 | {a="([^TA])(aN)(%s)([rlmnwy])", b="%1ًا%3%4%4"}, | 221 | {a="([^TA])(aN)(%s)([rlmnwy])", b="%1ًا%3%4%4"}, |
218 | {a="(iN)(%s)([rlmnwy])", b="ٍ%2%3%3"}, | 222 | {a="(iN)(%s)([rlmnwy])", b="ٍ%2%3%3"}, |
219 | -- assimilations (end) | 223 | -- assimilations (end) |
224 | -- quoted tanwīn (begin) | ||
225 | {a="(\"uN)", b=""}, | ||
226 | {a="(B)(\"aN)", b="%1"}, | ||
227 | {a="(\"aN)(_A)", b="ى"}, | ||
228 | {a="(\"aN)(Y)", b="ى"}, | ||
229 | {a="(T)(\"aN)", b="%1"}, | ||
230 | {a="(ء)(\"aN)", b="%1"}, | ||
231 | {a="([^TA])(\"aN)", b="%1ا"}, | ||
232 | {a="(\"iN)", b=""}, | ||
233 | -- quoted tanwīn (end) | ||
220 | {a="(uN)", b="ٌ"}, | 234 | {a="(uN)", b="ٌ"}, |
221 | {a="(B)(aN)", b="%1ً"}, | 235 | {a="(B)(aN)", b="%1ً"}, |
222 | {a="(aN)(_A)", b="ًى"}, | 236 | {a="(aN)(_A)", b="ًى"}, |
@@ -228,6 +242,9 @@ tanwin = { | |||
228 | } | 242 | } |
229 | 243 | ||
230 | digraphs = { | 244 | digraphs = { |
245 | -- initial straight double quote gives a connective ʾalif | ||
246 | {a="^\"[uai]", b="ٱ"}, | ||
247 | {a="([%s%-])\"[uai]", b="%1ٱ"}, | ||
231 | {a="(aW)(%s)([uai])", b="awuا%2%3"}, | 248 | {a="(aW)(%s)([uai])", b="awuا%2%3"}, |
232 | {a="(%-)([uai])", b="%1ا%2"}, -- hyphen + initial alif without hamza | 249 | {a="(%-)([uai])", b="%1ا%2"}, -- hyphen + initial alif without hamza |
233 | {a="^([uai])", b="ا%1"}, -- initial alif without hamza | 250 | {a="^([uai])", b="ا%1"}, -- initial alif without hamza |
@@ -320,10 +337,14 @@ single = { | |||
320 | } | 337 | } |
321 | 338 | ||
322 | longv = { | 339 | longv = { |
340 | {a="\"A", b="ا"}, | ||
341 | {a="\"U", b="و"}, | ||
342 | {a="\"I", b="ي"}, | ||
343 | {a="\"Y", b="ى"}, | ||
323 | {a="A", b="َا"}, | 344 | {a="A", b="َا"}, |
324 | {a="U", b="ُو"}, | 345 | {a="U", b="ُو"}, |
325 | {a="I", b="ِي"}, | 346 | {a="I", b="ِي"}, |
326 | {a="Y", b="aى"}, | 347 | {a="Y", b="aى"} |
327 | } | 348 | } |
328 | 349 | ||
329 | shortv = { | 350 | shortv = { |