45,337
edits
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 29: | Line 29: | ||
{key = "collective", display = "[[wikt:collective number|Collective]]"}, | {key = "collective", display = "[[wikt:collective number|Collective]]"}, | ||
{key = "fractional", display = "[[wikt:fractional|Fractional]]"}, | {key = "fractional", display = "[[wikt:fractional|Fractional]]"}, | ||
{key = "formal", display = "[[wikt:formal|Formal]]"}, | |||
} | } | ||
Line 728: | Line 729: | ||
local numeral | local numeral | ||
if m_data.numeral_config then | if m_data.numeral_config then | ||
numeral = export.generate_non_arabic_numeral(m_data.numeral_config, cur_num):gsub(" | numeral = export.generate_non_arabic_numeral(m_data.numeral_config, cur_num) | ||
if langcode == "qay" then numeral = numeral:gsub("A","¹"):gsub("B","²") end | |||
elseif cur_data["numeral"] then | elseif cur_data["numeral"] then | ||
numeral = export.format_fixed(cur_data["numeral"]) | numeral = export.format_fixed(cur_data["numeral"]) | ||
Line 875: | Line 877: | ||
-- Try looking up the next power of ten. | -- Try looking up the next power of ten. | ||
upper_num = make_greater_power_of_ten(1) | upper_num = make_greater_power_of_ten(1) | ||
if upper_num == next_num then | if upper_num == next_num or cur_num == "0" then | ||
upper_num = nil | upper_num = nil | ||
else | else |