模組:Number list/data/ajp
- 下列說明文檔由Module:documentation/functions/number list所生成。[編輯]
- 相關連結:根頁面 • 根頁面的子頁面 • 本頁面的子頁面 • 链入 • 嵌入包含 • 測試用例 • 沙盒
本模块包含有關南黎凡特阿拉伯語中各種類型數字的数据。
(edit)
local export = {}
local numbers = {}
export.numbers = numbers
export.numeral_config = {
zero_codepoint = 0x660, -- ٠, ARABIC-INDIC DIGIT ZERO
thousands_separator = "٬",
}
numbers[0] = {
cardinal = "صفر"
}
numbers[1] = {
cardinal = "واحد",
ordinal = "أول"
}
numbers[2] = {
cardinal = "تنين",
ordinal = "تاني",
fractional = "نص"
}
numbers[3] = {
cardinal = "تلاتة",
ordinal = "تالت",
fractional = "تلت"
}
numbers[4] = {
cardinal = "أربعة",
ordinal = "رابع",
fractional = "ربع"
}
numbers[5] = {
cardinal = "خمسة",
ordinal = "خامس",
fractional = "خمس"
}
numbers[6] = {
cardinal = "ستة",
ordinal = "سادس",
fractional = "سدس"
}
numbers[7] = {
cardinal = "سبعة",
ordinal = "سابع",
fractional = "سبع"
}
numbers[8] = {
cardinal = "تمانية",
ordinal = "تامن",
fractional = "تمن"
}
numbers[9] = {
cardinal = "تسعة",
ordinal = "تاسع",
fractional = "تسع"
}
numbers[10] = {
cardinal = "عشرة",
ordinal = "عاشر",
fractional = "عشر"
}
numbers[11] = {
cardinal = "حدعش"
}
numbers[12] = {
cardinal = "تنعش"
}
numbers[13] = {
cardinal = "تلتعش"
}
numbers[14] = {
cardinal = "أربعتعش"
}
numbers[15] = {
cardinal = "خمستعش"
}
numbers[16] = {
cardinal = "ستعش"
}
numbers[17] = {
cardinal = "سبعتعش",
}
numbers[18] = {
cardinal = "تمنتعش"
}
numbers[19] = {
cardinal = "تسعتعش"
}
local function unpack_ipairs(t)
local i = 0
return function()
i = i + 1
if t[i] then
return i, unpack(t[i])
end
end
end
for i, tens_cardinal in unpack_ipairs {
{ "عشرين"},
{ "تلاتين" },
{ "أربعين" },
{ "خمسين" },
{ "ستين" },
{ "سبعين" },
{ "تمانين" },
{ "تسعين" },
} do
local tens = (i + 1) * 10
numbers[tens] = {
cardinal = tens_cardinal,
}
local suffix = (" و" .. tens_cardinal)
local one_word_cardinal = suffix:sub(-1) ~= " "
for ones = 1, 9 do
local ones_cardinal = numbers[ones].cardinal
local cardinal = ones_cardinal .. suffix
local number = {}
numbers[tens + ones] = number
number.cardinal = cardinal
end
end
numbers[100] = {
cardinal = "مية"
}
numbers[200] = {
cardinal = "ميتين"
}
numbers[300] = {
cardinal = "تلتمية"
}
numbers[400] = {
cardinal = "أربعمية"
}
numbers[500] = {
cardinal = "خمسمية"
}
numbers[600] = {
cardinal = "ستمية"
}
numbers[700] = {
cardinal = "سبعمية"
}
numbers[800] = {
cardinal = "تمنمية"
}
numbers[900] = {
cardinal = "تسعمية"
}
numbers[1000] = {
cardinal = "ألف"
}
numbers[2000] = {
cardinal = "ألفين"
}
numbers[3000] = {
cardinal = "تلتة آلاف"
}
numbers[10000] = {
cardinal = "عشرة آلاف"
}
numbers[100000] = {
cardinal = "مية ألف"
}
numbers[1000000] = {
cardinal = "ميليون"
}
numbers[1000000000] = {
cardinal = {"بيليون", "ميليار"}
}
return export