diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index c0e0232..35dccff 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -589,3 +589,12 @@ function abjadify(n) | |||
589 | end | 589 | end |
590 | return "\\arb[novoc]{"..abjadnum.."}" | 590 | return "\\arb[novoc]{"..abjadnum.."}" |
591 | end | 591 | end |
592 | |||
593 | function abraces(str) | ||
594 | if tex.textdir == "TRT" then | ||
595 | str = "\\}"..str.."\\{" | ||
596 | elseif tex.textdir == "TLT" then | ||
597 | str = "\\{"..str.."\\}" | ||
598 | end | ||
599 | return str | ||
600 | end | ||