45,633
edits
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
return table.concat(pss,"·") | return table.concat(pss,"·") | ||
end | end | ||
Line 177: | Line 169: | ||
} | } | ||
function export.crux(term | function export.crux(term, e, w) | ||
term=mw.ustring.lower(term) | term=mw.ustring.lower(term) | ||
term=export.morphemes(term) | term=export.morphemes(term) | ||
Line 249: | Line 241: | ||
local ipa = "* " | local ipa = "* " | ||
if | if args.a then | ||
ipa = ipa .. line_format(export.crux(term, true, true), {'Aingo'}) | |||
ipa = ipa .. line_format(export.crux(term | |||
end | end | ||
if args.e then | if args.e then | ||
if export.crux(term | if export.crux(term, false, false) ~= export.crux(term, true, false) then | ||
if args.a then | if args.a then | ||
ipa = ipa .. "\n* " | ipa = ipa .. "\n* " | ||
end | end | ||
ipa = ipa .. line_format(export.crux(term | ipa = ipa .. line_format(export.crux(term, true, false), {'Eastern'}) | ||
table.insert(categories, "Siwa lemmas with Eastern IPA pronunciation") | table.insert(categories, "Siwa lemmas with Eastern IPA pronunciation") | ||
end | end | ||
Line 272: | Line 256: | ||
if args.w then | if args.w then | ||
if export.crux(term | if export.crux(term, false, false) ~= export.crux(term, false, true) then | ||
if args.a or args.e then | if args.a or args.e then | ||
ipa = ipa .. "\n* " | ipa = ipa .. "\n* " | ||
end | end | ||
ipa = ipa .. line_format(export.crux(term | ipa = ipa .. line_format(export.crux(term, false, true), {'Western'}) | ||
table.insert(categories, "Siwa lemmas with Western IPA pronunciation") | table.insert(categories, "Siwa lemmas with Western IPA pronunciation") | ||
end | end |