Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 268: Line 268:
function format_IPA_multiple(items)
function format_IPA_multiple(items)
local bits = {}
local bits = {}
for _, item in ipairs(items) do
for _, item in ipairs(items) do
local bit = export.format_IPA(item.pron)
local bit = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>" .. item.pron .. "</span>"
end
end
return table.concat(bits)
return table.concat(bits)
end
end


function export.format_IPA(pron)
function export.format_IPA(pron)
return "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>" .. pron .. "</span>"
return  
end
end


Line 304: Line 302:
if args.a then
if args.a then
ipa = ipa .. make_row(export.crux(term, false, false), accent and #accent > 0 or {'Aingo'})
ipa = ipa .. make_row(export.crux(term), accent and #accent > 0 or {'Aingo'})
end
end