This module contains data on various types of numbers in Sindarin.

Number Numeral Cardinal ක්‍රමසූචක Fractional
0 ð lad
1 ñ min minui
2 ò tâd tadui perin
3 ó nêl, neledh nelui
4 ô canad canthui canath
5 õ leben levnui
6 ö eneg enchui
7 ÷ odog othui
8 ø toloth tollui
9 ù neder nedrui
10 ðñ pae paenui
11 ññ minib
12 òñ ýneg
13 óñ paenel
14 ôñ paegan
15 õñ paeleben
16 öñ paeneg
17 ֖ paenodog
18 øñ paedolodh
19 ùñ paeneder
20 ðò taphaen
30 ðó nelphaen
40 ðô caphaen
50 ðõ lephaen
60 ðö enephaen
70 ð÷ odophaen
80 ðø tolophaen
90 ðù nederphaen
100 ððñ haran
1,000 ðððñ meneg

local export = {}

local numbers = {}
export.numbers = numbers

numbers[0] = {cardinal = "lad"}
numbers[1] = {cardinal = "min", ordinal = "minui"}
numbers[2] = {cardinal = "tâd", ordinal = "tadui", fractional = "perin"}
numbers[3] = {cardinal = {"nêl", "neledh"}, ordinal = "nelui"}
numbers[4] = {cardinal = "canad", ordinal = "canthui", fractional = "canath"}
numbers[5] = {cardinal = "leben", ordinal = "levnui"}
numbers[6] = {cardinal = "eneg", ordinal = "enchui"}
numbers[7] = {cardinal = "odog", ordinal = "othui"}
numbers[8] = {cardinal = "toloth", ordinal = "tollui"}
numbers[9] = {cardinal = "neder", ordinal = "nedrui"}

numbers[10] = {cardinal = "pae", ordinal = "paenui"}
numbers[11] = {cardinal = "minib"}
numbers[12] = {cardinal = "ýneg"}
numbers[13] = {cardinal = "paenel"} 
numbers[14] = {cardinal = "paegan"} 
numbers[15] = {cardinal = "paeleben"} 
numbers[16] = {cardinal = "paeneg"}
numbers[17] = {cardinal = "paenodog"} 
numbers[18] = {cardinal = "paedolodh"} 
numbers[19] = {cardinal = "paeneder"} 

numbers[20] = {cardinal = "taphaen"}
numbers[30] = {cardinal = "nelphaen"}
numbers[40] = {cardinal = "caphaen"}
numbers[50] = {cardinal = "lephaen"}
numbers[60] = {cardinal = "enephaen"}
numbers[70] = {cardinal = "odophaen"}
numbers[80] = {cardinal = "tolophaen"}
numbers[90] = {cardinal = "nederphaen"}

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

numbers[100] = {cardinal = "haran"}
numbers[1000] = {cardinal = "meneg"}

local twstyle = "font-family: 'Tengwar Annatar', 'Tengwar Eldamar', 'Tengwar Noldor', 'Tengwar Parmaite', 'Tengwar Formal', 'Tengwar Elfica', 'Tengwar Sindarin', 'Tengwar Quenya', 'Tengwar Gothika'"
local digits = {'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û'}
digits[0] = 'ð'
for key,value in pairs(numbers) do
	if key < 10 then
		numbers[key].numeral = '<span style="'..twstyle..'">'..digits[key]..'</span>'
	else
		local inp = tostring(key)
		local outp = {}
		for i = 0, #inp do
	    	local pos = #inp + 1 - i
	    	table.insert(outp, digits[tonumber(string.sub(inp, pos, pos))])
		end
		numbers[key].numeral = '<span style="'..twstyle..'">'..table.concat(outp)..'</span>'
	end
end

return export
"https://si.wiktionary.org/w/index.php?title=Module:number_list/data/sjn&oldid=40553" වෙතින් සම්ප්‍රවේශනය කෙරිණි