Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 209: Line 209:
for _, rrule in ipairs(rules2) do
for _, rrule in ipairs(rules2) do
term = gsub(term, rrule[1], rrule[2])
term = gsub(term, rrule[1], rrule[2])
end
if w then
term = gsub(term, "ü", "ɤ")
elseif r then
term = gsub(term, "ü", "ɵ")
else
term = gsub(term, "ü", "œ")
end
end
Line 302: Line 294:
end
end
ipa = ipa .. line_format(separate_word(term, true, false, true), {'Western'})
ipa = ipa .. line_format(separate_word(term, true, false, true), {'Western'})
ipa = ipa .. "\n** "
ipa = ipa .. line_format(separate_word(term, false, false, true), {'Regna'})
if mw.title.getCurrentTitle().nsText ~= 'Template' then  
if mw.title.getCurrentTitle().nsText ~= 'Template' then  
table.insert(categories, "Siwa lemmas with Western IPA pronunciation")
table.insert(categories, "Siwa lemmas with Western IPA pronunciation")
Line 307: Line 301:
end
end
if args.r and find(term, "ɵ") then
if args.w then
if args.a or args.e or args.w then
term = gsub(term, "ü", "ɤ")
ipa = ipa .. "\n* "
elseif args.r then
end
term = gsub(term, "ü", "ɵ")
ipa = ipa .. line_format(separate_word(term, true, false, true), {'Regna'})
else
term = gsub(term, "ü", "œ")
end
end
return ipa .. ncategories(categories)
return ipa .. ncategories(categories)
end
end


return export
return export