Module:number list/data/anrdg: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 137: | Line 137: | ||
} | } | ||
for ones = 2, 9 do | for ones = 2, 9 do | ||
local ones_cardinal = | local ones_cardinal = strsub(numbers[ones].cardinal,0,strfind(numbers[ones].cardinal,"<")) | ||
local ones_ordinal = | local ones_ordinal = strsub(numbers[ones].ordinal,0,strfind(numbers[ones].ordinal,"<")) | ||
numbers[tens + ones] = { | numbers[tens + ones] = { | ||
ordinal = tens_ordinal .. ones_ordinal .. "<tr:" .. tens_ordinal .. ones_ordinal .. ">", | ordinal = tens_ordinal .. ones_ordinal .. "<tr:" .. tens_ordinal .. ones_ordinal .. ">", |
Revision as of 19:53, 22 November 2023
Lua error at line 139: attempt to call global 'strfind' (a nil value).
local export = {numbers = {}}
local numbers = export.numbers
-- Delete any number types that don't apply.
numbers[0] = {
cardinal = "niki<tr:niki><alt:iNiK>",
ordinal = "nih<tr:nih>",
}
numbers[1] = {
cardinal = "aki<tr:aki><alt:AiK>",
ordinal = "akan<tr:akan><alt:AKN>",
}
numbers[2] = {
cardinal = "de<tr:de><alt:eD>",
ordinal = "dune<tr:dune><alt:DueN>",
}
numbers[3] = {
cardinal = "ra<tr:ra><alt:R>",
ordinal = "lene<tr:lene><alt:eLeN>",
}
numbers[4] = {
cardinal = "ko<tr:ko><alt:Ko>",
ordinal = "kenen<tr:kenen><alt:eKeNn>",
}
numbers[5] = {
cardinal = "ming<tr:ming><alt:iM]>",
ordinal = "miná<tr:miná><alt:iMNA>",
}
numbers[6] = {
cardinal = "roka<tr:roka><alt:RoK>",
ordinal = "rikun<tr:rikun><alt:iRKun>",
}
numbers[7] = {
cardinal = "pita<tr:pita>",
ordinal = "péngga<tr:péngga>",
}
numbers[8] = {
cardinal = "hari<tr:hari>",
ordinal = "bari<tr:bari>",
}
numbers[9] = {
cardinal = "nyan<tr:nyan>",
ordinal = "nani<tr:nani>",
}
numbers[10] = {
cardinal = "kani<tr:kani>",
ordinal = "kanih<tr:kanih>",
}
numbers[11] = {
cardinal = "kero<tr:kero>",
ordinal = "tana<tr:tana>",
}
numbers[12] = {
cardinal = "kedre<tr:kedre>",
ordinal = "kedi<tr:kedi>",
}
numbers[13] = {
cardinal = "akira<tr:akira>",
ordinal = "malene<tr:malene>",
}
numbers[14] = {
cardinal = "akiko<tr:akiko>",
ordinal = "makenen<tr:makenen>",
}
numbers[15] = {
cardinal = "akiming<tr:akiming>",
ordinal = "maminá<tr:maminá>",
}
numbers[16] = {
cardinal = "akiroka<tr:akiroka>",
ordinal = "marikun<tr:marikun>",
}
numbers[17] = {
cardinal = "akipita<tr:akipita>",
ordinal = "mapéngga<tr:mapéngga>",
}
numbers[18] = {
cardinal = "akihari<tr:akihari>",
ordinal = "mabari<tr:mabari>",
}
numbers[19] = {
cardinal = "akinyan<tr:akinyan>",
ordinal = "manani<tr:manani>",
}
local compose, decompose = mw.ustring.toNFC, mw.ustring.toNFD
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, tens_ordinal in unpack_ipairs {
{ "dekan", "dukan" },
{ "rakan", "lekan" },
{ "kokan", "kekan" },
{ "mingkan", "mikan" },
{ "rokakan", "rikan" },
{ "pitakan", "pékan" },
{ "harikan", "bakan" },
{ "nanikan", "nakan" },
} do
local tens = (i + 1) * 10
numbers[tens] = {
cardinal = tens_cardinal .. "i<tr:" .. tens_cardinal .. "i>",
ordinal = tens_ordinal .. "ih<tr:" .. tens_ordinal .. "ih>"
}
local elevens = tens + 1
numbers[elevens] = {
cardinal = tens_cardinal .. "aki<tr:" .. tens_cardinal .. "aki>",
ordinal = tens_ordinal .. "<tr:" .. tens_ordinal .. ">"
}
for ones = 2, 9 do
local ones_cardinal = strsub(numbers[ones].cardinal,0,strfind(numbers[ones].cardinal,"<"))
local ones_ordinal = strsub(numbers[ones].ordinal,0,strfind(numbers[ones].ordinal,"<"))
numbers[tens + ones] = {
ordinal = tens_ordinal .. ones_ordinal .. "<tr:" .. tens_ordinal .. ones_ordinal .. ">",
cardinal = tens_cardinal .. ones_cardinal .. "<tr:" .. tens_cardinal .. ones_cardinal .. ">"
}
end
end
numbers[100] = {
cardinal = "gung<tr:gung>",
ordinal = "gung<tr:gung>",
}
numbers[200] = {
cardinal = "degung<tr:degung>",
ordinal = "dugung<tr:dugung>",
}
numbers[300] = {
cardinal = "ragung<tr:ragung>",
ordinal = "legung<tr:legung>",
}
numbers[400] = {
cardinal = "kogung<tr:kogung>",
ordinal = "kegung<tr:kegung>",
}
numbers[500] = {
cardinal = "minggung<tr:minggung>",
ordinal = "migung<tr:migung>",
}
numbers[600] = {
cardinal = "rokagung<tr:rokagung>",
ordinal = "rigung<tr:rigung>",
}
numbers[700] = {
cardinal = "pitagung<tr:pitagung>",
ordinal = "pégung<tr:pégung>",
}
numbers[800] = {
cardinal = "harigung<tr:harigung>",
ordinal = "bagung<tr:bagung>",
}
numbers[900] = {
cardinal = "nyanggung<tr:nyanggung>",
ordinal = "nagung<tr:nagung>",
}
numbers[1000] = {
cardinal = "rong<tr:rong>",
ordinal = "rong<tr:rong>",
}
numbers[2000] = {
cardinal = "derong<tr:derong>",
ordinal = "durong<tr:durong>",
}
numbers[3000] = {
cardinal = "rarong<tr:rarong>",
ordinal = "lerong<tr:lerong>",
}
numbers[4000] = {
cardinal = "korong<tr:korong>",
ordinal = "kerong<tr:kerong>",
}
numbers[5000] = {
cardinal = "mingrong<tr:mingrong>",
ordinal = "mirong<tr:mirong>",
}
numbers[6000] = {
cardinal = "rokarong<tr:rokarong>",
ordinal = "rilong<tr:rilong>",
}
numbers[7000] = {
cardinal = "pitarong<tr:pitarong>",
ordinal = "pérong<tr:pérong>",
}
numbers[8000] = {
cardinal = "harirong<tr:harirong>",
ordinal = "barong<tr:barong>",
}
numbers[9000] = {
cardinal = "nyanrong<tr:nyanrong>",
ordinal = "narong<tr:narong>",
}
numbers[10000] = {
cardinal = "móku<tr:móku>",
ordinal = "móku<tr:móku>",
}
--[[
numbers[] = {
cardinal = "",
ordinal = "",
fractional = "",
}
numbers[] = {
cardinal = "",
ordinal = "",
fractional = "",
}
--]]
return export