diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 8fc31bc..4db23a2 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -683,12 +683,17 @@ local function processarbtoutf(str) | |||
683 | end) | 683 | end) |
684 | return string.format("%s{%s}", tag, body) | 684 | return string.format("%s{%s}", tag, body) |
685 | end) | 685 | end) |
686 | |||
686 | str = string.gsub(str, "(\\txarb%s?)(%b{})", function(tag, body) | 687 | str = string.gsub(str, "(\\txarb%s?)(%b{})", function(tag, body) |
687 | body = string.sub(body, 2, -2) | 688 | body = string.sub(body, 2, -2) |
688 | body = string.gsub(body, "(\\abjad%s?)(%b{})", function(btag, bbody) | 689 | body = string.gsub(body, "(\\abjad%s?)(%b{})", function(btag, bbody) |
689 | bbody = string.sub(bbody, 2, -2) | 690 | bbody = string.sub(bbody, 2, -2) |
690 | bbody = abjadify(bbody) | 691 | if tonumber(bbody) ~= nil then |
691 | return string.format("\\aemph{\\arb[novoc]{%s}}", bbody) | 692 | bbody = abjadify(bbody) |
693 | return string.format("\\aemph{\\arb[novoc]{%s}}", bbody) | ||
694 | else | ||
695 | return string.format("%s{%s}", btag, bbody) | ||
696 | end | ||
692 | end) | 697 | end) |
693 | body = string.gsub(body, "(\\arbmark%s?)(%b{})", function(btag, bbody) | 698 | body = string.gsub(body, "(\\arbmark%s?)(%b{})", function(btag, bbody) |
694 | bbody = string.sub(bbody, 2, -2) | 699 | bbody = string.sub(bbody, 2, -2) |