aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2017-03-31 19:00:59 +0200
committerRobert Alessi <alessi@robertalessi.net>2017-03-31 19:00:59 +0200
commitc2c0347648d8d14d46df8114572fd4d1df1d2853 (patch)
tree915e4a21effd1d089dbad4bd67a6aa9af864da78
parent00f116483a30d664e6e943b9d94f1907891dab2b (diff)
downloadarabluatex-c2c0347648d8d14d46df8114572fd4d1df1d2853.tar.gz
bugfix: -ī/-īyah were not parsed correctly in 'dmg' mode. 'loc' and 'arabica' rules needed to be more robust as well
-rw-r--r--arabluatex_trans.lua25
1 files changed, 13 insertions, 12 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index bd59332..e12eaa0 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -328,14 +328,15 @@ digraphstrdmg = {
328 {a="([%_]?[Uu])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="u%2%3"}, 328 {a="([%_]?[Uu])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="u%2%3"},
329 {a="([%_]?[Ii])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="i%2%3"}, 329 {a="([%_]?[Ii])(%s)([%(%[%|%<]?['][%_%^%.]?[l'btjghxdrzs`fqkmnwy][%-l])", b="i%2%3"},
330 {a="%-%-", b=""}, 330 {a="%-%-", b=""},
331 {a="iyyaT$", b="īyaT"}, 331 {a="iyyaT(%p?)$", b="īyaT%1"},
332 {a="iyyaT(%W)", b="īyaT%1"}, 332 {a="iyyaT(%p?%s)", b="īyaT%1"},
333 {a="iyy$", b="ī"}, 333 {a="iyy(%p?)$", b="ī%1"},
334 {a="iyy(%W)", b="ī%1"}, 334 {a="iyy(%p?%s)", b="ī%1"},
335 -- {a="T([^uai])", b="%1"}, 335 -- {a="T([^uai])", b="%1"},
336 {a="T(\\arbup)", b="t%1"}, 336 {a="T(\\arbup)", b="t%1"},
337 {a="([a%'][%_%^%.]?[tdrzsln]%-)(%S-)T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="%1%2h%3%4"}, --p 337 {a="([a%'][%_%^%.]?[tdrzsln]%-)(%S-)T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="%1%2h%3%4"}, --p
338 {a="T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="t%1%2"}, --p 338 {a="T([%(%[%|%<%s])(a[%_%^%.]?[tdrzsln]%-)", b="t%1%2"}, --p
339 {a="T([%|\"])", b="t%1"},
339 {a="T(%p?%s)", b="h%1"}, 340 {a="T(%p?%s)", b="h%1"},
340 {a="T(%p?)$", b="h%1"}, 341 {a="T(%p?)$", b="h%1"},
341 {a="T(%p?)(%W)", b="h%1%2"}, 342 {a="T(%p?)(%W)", b="h%1%2"},
@@ -552,15 +553,15 @@ digraphstrloc = {
552 {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza 553 {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza
553 {a="%-%-", b=""}, 554 {a="%-%-", b=""},
554 {a="uww", b="ūw"}, 555 {a="uww", b="ūw"},
555 {a="iyy$", b="ī"}, 556 {a="iyy(%p?)$", b="ī%1"},
556 {a="iyy(%W)", b="ī%1"}, 557 {a="iyy(%p?%s)", b="ī%1"},
557 {a="iyy", b="īy"}, 558 {a="iyy", b="īy"},
558 {a="([tkdsg])(h)", b="%1'%2"}, 559 {a="([tkdsg])(h)", b="%1'%2"},
559 -- {a="T([^uai])", b="h%1"}, 560 -- {a="T([^uai])", b="h%1"},
560 {a="([a%']l%-)(%S-)T([%(%[%|%<%s])(al%-)", b="%1%2h%3%4"}, --p 561 {a="([a%']l%-)(%S-)T([%(%[%|%<%s])(al%-)", b="%1%2h%3%4"}, --p
561 {a="T([%(%[%|%<%s])(al%-)", b="t%1%2"}, --p 562 {a="T([%(%[%|%<%s])(al%-)", b="t%1%2"}, --p
562 {a="T$", b="h"}, 563 {a="T(%p?)$", b="h%1"},
563 {a="T(%W)", b="h%1"}, 564 {a="T(%p?%s)", b="h%1"},
564 {a="_t", b="th"}, 565 {a="_t", b="th"},
565 {a="%^g", b="j"}, 566 {a="%^g", b="j"},
566 {a="%.h", b="ḥ"}, 567 {a="%.h", b="ḥ"},
@@ -697,13 +698,13 @@ digraphstrarabica = {
697 {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza 698 {a="^(\"?[uai])", b="%1"}, -- initial alif without hamza
698 {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza 699 {a="(%s)([uai])", b="%1%2"}, -- initial alif without hamza
699 {a="%-%-", b=""}, 700 {a="%-%-", b=""},
700 {a="iyy$", b="ī"}, 701 {a="iyy(%p?)$", b="ī%1"},
701 {a="iyy(%W)", b="ī%1"}, 702 {a="iyy(%p?%s)", b="ī%1"},
702 -- {a="T([^uai])", b="h%1"}, 703 -- {a="T([^uai])", b="h%1"},
703 {a="([a%']l%-)(%S-)aT([%(%[%|%<%s])(al%-)", b="%1%2a%3%4"}, --p 704 {a="([a%']l%-)(%S-)aT([%(%[%|%<%s])(al%-)", b="%1%2a%3%4"}, --p
704 {a="aT([%(%[%|%<%s])(al%-)", b="at%1%2"}, --p 705 {a="aT([%(%[%|%<%s])(al%-)", b="at%1%2"}, --p
705 {a="aT$", b="a"}, 706 {a="aT(%p?)$", b="a%1"},
706 {a="aT(%W)", b="a%1"}, 707 {a="aT(%p?%s)", b="a%1"},
707 {a="_t", b="ṯ"}, 708 {a="_t", b="ṯ"},
708 {a="%^g", b="ğ"}, 709 {a="%^g", b="ğ"},
709 {a="%.h", b="ḥ"}, 710 {a="%.h", b="ḥ"},