diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-01-04 17:55:59 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-01-04 17:55:59 +0100 |
commit | 7835836e3f6fc269eda7b706fcae92d7d7ef6f5b (patch) | |
tree | 4bd6d583ba933796d0d769860d0820bedcdca6d8 | |
parent | baac2a5169738e526ef2f36d760b4b675a5fc8f3 (diff) | |
download | arabluatex-7835836e3f6fc269eda7b706fcae92d7d7ef6f5b.tar.gz |
\prname{}: ibn should not be uppercased unless the preceding proper name be missing
-rw-r--r-- | arabluatex.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 2466093..523eece 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -670,7 +670,7 @@ function uc(str) | |||
670 | body = string.sub(body, 2, -2) | 670 | body = string.sub(body, 2, -2) |
671 | return string.format("%s", body) | 671 | return string.format("%s", body) |
672 | end) | 672 | end) |
673 | str = string.gsub(str, "(%s[%(%<%[]?)(bn)", "%1{%2}") | 673 | str = string.gsub(str, "(%s[%(%<%[]?)(i?b[n%.])", "%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 |