aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-01-01 16:33:49 +0100
committerRobert Alessi <alessi@robertalessi.net>2018-01-01 16:33:49 +0100
commit0fc488a94ab1b17df47e9b9e823b85f49a885182 (patch)
tree0d302d4506ae5f248a0ba5e0520356510880e6f0
parent09b5274e10b162f22e74b95744e91112579c6899 (diff)
downloadarabluatex-0fc488a94ab1b17df47e9b9e823b85f49a885182.tar.gz
adapted \cap{} for loc convention
-rw-r--r--arabluatex.lua4
-rw-r--r--arabluatex_voc.lua1
2 files changed, 3 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index c2487cb..a720ed8 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -672,10 +672,10 @@ function cap(str)
672 end) 672 end)
673 str = string.gsub(str, "(%s)(bn)", "%1{%2}") 673 str = string.gsub(str, "(%s)(bn)", "%1{%2}")
674 for i = 1,#lcuc do 674 for i = 1,#lcuc do
675 str = string.gsub(str, "^([%S]-%-)"..lcuc[i].a, "{%1"..lcuc[i].b.."}") 675 str = string.gsub(str, "^([%S]-%-[`']?)"..lcuc[i].a, "{%1"..lcuc[i].b.."}")
676 end 676 end
677 for i = 1,#lcuc do 677 for i = 1,#lcuc do
678 str = string.gsub(str, "(%s)([%S]-%-)"..lcuc[i].a, "%1{%2"..lcuc[i].b.."}") 678 str = string.gsub(str, "(%s)([%S]-%-[`']?)"..lcuc[i].a, "%1{%2"..lcuc[i].b.."}")
679 end 679 end
680 for i = 1,#lcuc do 680 for i = 1,#lcuc do
681 str = string.gsub(str, "^([%S]-%-ʿ)"..lcuc[i].a, "{%1"..lcuc[i].b.."}") 681 str = string.gsub(str, "^([%S]-%-ʿ)"..lcuc[i].a, "{%1"..lcuc[i].b.."}")
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua
index b4bde1a..8cf137e 100644
--- a/arabluatex_voc.lua
+++ b/arabluatex_voc.lua
@@ -76,6 +76,7 @@ lcuc = {
76 {a="t", b="T"}, 76 {a="t", b="T"},
77 {a="ṯ", b="Ṯ"}, 77 {a="ṯ", b="Ṯ"},
78 {a="ǧ", b="Ǧ"}, 78 {a="ǧ", b="Ǧ"},
79 {a="j", b="J"},
79 {a="ḥ", b="Ḥ"}, 80 {a="ḥ", b="Ḥ"},
80 {a="ḫ", b="Ḫ"}, 81 {a="ḫ", b="Ḫ"},
81 {a="d", b="D"}, 82 {a="d", b="D"},