Module:qay-pron: Difference between revisions

No edit summary
No edit summary
Line 115: Line 115:
return term
return term
end
end
--[=[
local function IPA_span(items)
local bits = {}
for _, item in ipairs(items) do
local bit = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>" .. item.pron .. "</span>"
table.insert(bits, bit)
end
return table.concat(bits)
end
local function format_IPA(items)
return "[[w:IPA chart|IPA]]<sup>([[IPA for High Valyrian|key]])</sup>:&#32;" .. IPA_span(items)
end
function line_format(pronunciation, register)
local IPA_args = {}
for _, arg in ipairs(args[1]) do
local phonemic = export.phonemic(arg)
local phonetic = export.phonetic(arg)
table.insert(IPA_args, {pron = '/' .. phonemic .. '/'})
if phonemic ~= phonetic then
table.insert(IPA_args, {pron = '[' .. phonetic .. ']'})
end
end
end
function separate_word(term, b)
local result = {}
for word in gsplit(term, " ") do
if b then table.insert(result, export.antique_crux(word))
else table.insert(result, export.crux(word)) end
end
return table.concat(result, " ")
end
]=]


function export.show(frame)
function export.show(frame)