This module contains data on various types of numbers in South Levantine Arabic.
local export = {}
local numbers = {}
export.numbers = numbers
export.numeral_config = {
zero_codepoint = 0x660, -- ٠, ARABIC-INDIC DIGIT ZERO
thousands_separator = "٬",
}
numbers = {
cardinal = "صفر"
}
numbers = {
cardinal = "واحد",
ordinal = "أول"
}
numbers = {
cardinal = "تنين",
ordinal = "تاني",
fractional = "نص"
}
numbers = {
cardinal = "تلاتة",
ordinal = "تالت",
fractional = "تلت"
}
numbers = {
cardinal = "أربعة",
ordinal = "رابع",
fractional = "ربع"
}
numbers = {
cardinal = "خمسة",
ordinal = "خامس",
fractional = "خمس"
}
numbers = {
cardinal = "ستة",
ordinal = "سادس",
fractional = "سدس"
}
numbers = {
cardinal = "سبعة",
ordinal = "سابع",
fractional = "سبع"
}
numbers = {
cardinal = "تمانية",
ordinal = "تامن",
fractional = "تمن"
}
numbers = {
cardinal = "تسعة",
ordinal = "تاسع",
fractional = "تسع"
}
numbers = {
cardinal = "عشرة",
ordinal = "عاشر",
fractional = "عشر"
}
numbers = {
cardinal = "حدعش"
}
numbers = {
cardinal = "تنعش"
}
numbers = {
cardinal = "تلتعش"
}
numbers = {
cardinal = "أربعتعش"
}
numbers = {
cardinal = "خمستعش"
}
numbers = {
cardinal = "ستعش"
}
numbers = {
cardinal = "سبعتعش",
}
numbers = {
cardinal = "تمنتعش"
}
numbers = {
cardinal = "تسعتعش"
}
local function unpack_ipairs(t)
local i = 0
return function()
i = i + 1
if t then
return i, unpack(t)
end
end
end
for i, tens_cardinal in unpack_ipairs {
{ "عشرين"},
{ "تلاتين" },
{ "أربعين" },
{ "خمسين" },
{ "ستين" },
{ "سبعين" },
{ "تمانين" },
{ "تسعين" },
} do
local tens = (i + 1) * 10
numbers = {
cardinal = tens_cardinal,
}
local suffix = (" و" .. tens_cardinal)
local one_word_cardinal = suffix:sub(-1) ~= " "
for ones = 1, 9 do
local ones_cardinal = numbers.cardinal
local cardinal = ones_cardinal .. suffix
local number = {}
numbers = number
number.cardinal = cardinal
end
end
numbers = {
cardinal = "مية"
}
numbers = {
cardinal = "ميتين"
}
numbers = {
cardinal = "تلتمية"
}
numbers = {
cardinal = "أربعمية"
}
numbers = {
cardinal = "خمسمية"
}
numbers = {
cardinal = "ستمية"
}
numbers = {
cardinal = "سبعمية"
}
numbers = {
cardinal = "تمنمية"
}
numbers = {
cardinal = "تسعمية"
}
numbers = {
cardinal = "ألف"
}
numbers = {
cardinal = "ألفين"
}
numbers = {
cardinal = "تلتة آلاف"
}
numbers = {
cardinal = "عشرة آلاف"
}
numbers = {
cardinal = "مية ألف"
}
numbers = {
cardinal = "ميليون"
}
numbers = {
cardinal = {"بيليون", "ميليار"}
}
return export