aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 7a7460a..f0c03c6 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -760,7 +760,8 @@ end
760-- Hosny's that dates back to 2010. Thanks to him. 760-- Hosny's that dates back to 2010. Thanks to him.
761-- See https://github.com/khaledhosny/lualatex-arabic 761-- See https://github.com/khaledhosny/lualatex-arabic
762function abjadify(n) 762function abjadify(n)
763 local abjadnum = "" 763 local abjadnum = ""
764 n = tonumber(n)
764 if n >= 1000 then 765 if n >= 1000 then
765 for i=1,math.floor(n/1000) do 766 for i=1,math.floor(n/1000) do
766 abjadnum = abjadnum .. abjad[4][1] 767 abjadnum = abjadnum .. abjad[4][1]