aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua9
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.."}"
591end 591end
592
593function 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
600end