Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
 
Line 27: Line 27:
if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then
if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then
if mw.ustring.find(word_l, "^[b]") then
ret.ecl = eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] .. word
ret.ecl = mw.ustring.gsub(word, "^(.)", "m")
elseif mw.ustring.find(word_l, "^[pv]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "b")
elseif mw.ustring.find(word_l, "^[f]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "v")
elseif mw.ustring.find(word_l, "^[B]") then
ret.ecl = mw.ustring.gsub(word, "^(.)", "M")
elseif mw.ustring.find(word_l, "^[PV]") 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