diff options
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r-- | arabluatex_trans.lua | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua index 45fd3d5..76e297e 100644 --- a/arabluatex_trans.lua +++ b/arabluatex_trans.lua | |||
@@ -138,8 +138,15 @@ tanwintrdmg = { | |||
138 | {a="(T)%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="t\\arbup{ani}%3%4"}, | 138 | {a="(T)%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="t\\arbup{ani}%3%4"}, |
139 | {a="([^TA])%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1\\arbup{ani}%3%4"}, | 139 | {a="([^TA])%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1\\arbup{ani}%3%4"}, |
140 | {a="%-?(iN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{ini}%2%3"}, | 140 | {a="%-?(iN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{ini}%2%3"}, |
141 | -- tmp (+ ibn) | ||
142 | {a="%-?(uN)(%s)(i)", b="\\arbup{uni}%2'"}, | ||
143 | {a="%-?(aN)(_A)(%s)(i)", b="ạ\\arbup{ni}%3%'"}, | ||
144 | {a="%-?(aN)(Y)(%s)(i)", b="ạ\\arbup{ni}%3%'"}, | ||
145 | {a="(T)%-?(aN)(%s)(i)", b="t\\arbup{ani}%3%'"}, | ||
146 | {a="([^TA])%-?(aN)(%s)(i)", b="%1\\arbup{ani}%3%'"}, | ||
147 | {a="%-?(iN)(%s)(i)", b="\\arbup{ini}%2%'"}, | ||
141 | -- | 148 | -- |
142 | -- {a="uN", b="\\arbup{un}"}, (now included in last line in this table) | 149 | -- {a="uN", b="\\arbup{un}"}, (now included in the last line of this table) |
143 | {a="%-?(aN)(_A)", b="ạ\\arbup{n}"}, | 150 | {a="%-?(aN)(_A)", b="ạ\\arbup{n}"}, |
144 | {a="%-?(aN)(Y)", b="ạ\\arbup{n}"}, | 151 | {a="%-?(aN)(Y)", b="ạ\\arbup{n}"}, |
145 | {a="(T)%-?(\"?aN)", b="t\\arbup{an}"}, | 152 | {a="(T)%-?(\"?aN)", b="t\\arbup{an}"}, |
@@ -260,10 +267,16 @@ trigraphstrdmgeasy = { -- see the differences below under 'easy' tag | |||
260 | digraphstrdmg = { | 267 | digraphstrdmg = { |
261 | {a="([uai]%-)(\"?[uai])", b="%1'"}, -- hyphen + initial alif without hamza | 268 | {a="([uai]%-)(\"?[uai])", b="%1'"}, -- hyphen + initial alif without hamza |
262 | {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza | 269 | {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza |
270 | -- this is not necessary, take out for now: | ||
263 | -- {a="([%_]?[uaiUAIY])(%s)([uai])", b="%1%2'"}, -- initial alif without hamza | 271 | -- {a="([%_]?[uaiUAIY])(%s)([uai])", b="%1%2'"}, -- initial alif without hamza |
264 | {a="(aW)(%s)(\"?[uai])", b="awu%2%3"}, | 272 | {a="(aW)(%s)(\"?[uai])", b="awu%2%3"}, |
265 | {a="([^%_][uai])(%s)(\"?[uai])", b="%1%2'"}, | 273 | {a="([^%_][uai])(%s)(\"?[uai])", b="%1%2'"}, |
266 | {a="([%_]?[AYa])(%s)(\"?[uai])", b="a%2'"}, | 274 | --tmp (more complex, see next 4 l.) |
275 | -- {a="([%_]?[AYa])(%s)(\"?[uai])", b="a%2'"}, | ||
276 | {a="(%_A)(%s)(\"?[uai])", b="ạ%2'"}, | ||
277 | {a="(Y)(%s)(\"?[uai])", b="ạ%2'"}, | ||
278 | {a="(%_a)(%s)(\"?[uai])", b="a%2'"}, | ||
279 | {a="(A)(%s)(\"?[uai])", b="a%2'"}, | ||
267 | {a="([%_]?[Uu])(%s)(\"?[uai])", b="u%2'"}, | 280 | {a="([%_]?[Uu])(%s)(\"?[uai])", b="u%2'"}, |
268 | {a="([%_]?[Ii])(%s)(\"?[uai])", b="i%2'"}, | 281 | {a="([%_]?[Ii])(%s)(\"?[uai])", b="i%2'"}, |
269 | -- ʾiʿrāb hyphen (begin) | 282 | -- ʾiʿrāb hyphen (begin) |
@@ -281,7 +294,11 @@ digraphstrdmg = { | |||
281 | -- shorten long vowels preceding ʾalif conjunctionis | 294 | -- shorten long vowels preceding ʾalif conjunctionis |
282 | {a="(U)(A)", b="U"}, | 295 | {a="(U)(A)", b="U"}, |
283 | {a="(aW)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="awu%2%3"}, | 296 | {a="(aW)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="awu%2%3"}, |
284 | {a="([%_]?[AYa])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="a%2%3"}, | 297 | --tmp {a="([%_]?[AYa])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="a%2%3"}, |
298 | {a="(%_a)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="a%2%3"}, | ||
299 | {a="(%_A)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ%2%3"}, | ||
300 | {a="(A)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="a%2%3"}, | ||
301 | {a="(Y)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ%2%3"}, | ||
285 | {a="([%_]?[Uu])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="u%2%3"}, | 302 | {a="([%_]?[Uu])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="u%2%3"}, |
286 | {a="([%_]?[Ii])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="i%2%3"}, | 303 | {a="([%_]?[Ii])(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="i%2%3"}, |
287 | {a="%-%-", b=""}, | 304 | {a="%-%-", b=""}, |