Module:snon-common: Difference between revisions
No edit summary |
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 = | 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 | ||