Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 240: Line 240:
end
end


function export.crux(term)
function export.crux(term, e, w)
local IPA = {}
term=mw.ustring.lower(term)
term=mw.ustring.lower(term)
Line 252: Line 251:
end
end
table.insert(IPA, term)
return term
return table.concat(IPA)
end
end


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