Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 29: Line 29:
if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then
if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then
ret.ecl = eclipsis_prefixes[mw.ustring.gsub(word, "%1", "%1")]
if mw.ustring.find(word_l, "^[b]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "m")
elseif mw.ustring.find(word_l, "^[p]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "b")
elseif mw.ustring.find(word_l, "^[v]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "b")
elseif mw.ustring.find(word_l, "^[f]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "v")
end
end
end