This module contains data on various types of numbers in Klingon.
local export = {}
local numbers = {}
export.numbers = numbers
numbers = {cardinal = "pagh"}
numbers = {cardinal = "wa'"}
numbers = {cardinal = "cha'"}
numbers = {cardinal = "wej"}
numbers = {cardinal = "loS"}
numbers = {cardinal = "vagh"}
numbers = {cardinal = "jav"}
numbers = {cardinal = "Soch"}
numbers = {cardinal = "chorgh"}
numbers = {cardinal = "Hut"}
numbers = {cardinal = "maH"}
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 = 1, 10 do
numbers.ordinal = numbers.cardinal .. 'DIch'
numbers.adverbial = numbers.cardinal .. 'logh'
end
for i = 1, 9 do
local tens = i * 10
if i > 1 then
numbers = { cardinal = numbers.cardinal .. 'maH' }
end
for ones = 1, 9 do
numbers = { cardinal = numbers.cardinal .. ' ' .. numbers.cardinal }
end
end
numbers = {cardinal = "vatlh"}
numbers = {cardinal = {"SaD", "SanID"}}
numbers = {cardinal = "netlh"}
numbers = {cardinal = "bIp"}
numbers = {cardinal = "'uy'"}
local piqdstyle = "font-family: pIqaD, Constructium, 'Klingon pIqaD HaSta', Code2000, Horta, 'Unifont CSUR', 'Kurinto Text Aux', 'Kurinto Book Aux', 'Kurinto Sans Aux'"
local digits = {'', '', '', '', '', '', '', '', ''}
digits = ''
for key,value in pairs(numbers) do
if key < 10 then
numbers.numeral = '<span style="'..piqdstyle..'">'..digits..'</span>'
else
local inp = tostring(key)
local outp = {}
for i = 0, #inp do
table.insert(outp, digits)
end
numbers.numeral = '<span style="'..piqdstyle..'">'..table.concat(outp)..'</span>'
end
end
return export