Module:snon-common: Difference between revisions
No edit summary |
No edit summary |
||
| (19 intermediate revisions by the same user not shown) | |||
| Line 22: | Line 22: | ||
if mw.ustring.find(word_l, "^[bcdfgmptsnlrv]") then | if mw.ustring.find(word_l, "^[bcdfgmptsnlrv]") then | ||
ret.len = mw.ustring.gsub(word, "^(.)", "%1h") | ret.len = mw.ustring.gsub(word, "^(.)", "%1h") | ||
elseif mw.ustring.find(word_l, "^-[bcdfgmptsnlrv]") then | elseif mw.ustring.find(word_l, "^-[bcdfgmptsnlrv]") then | ||
ret.len = mw.ustring.gsub(word, "^(..)", "%1h") | ret.len = mw.ustring.gsub(word, "^(..)", "%1h") | ||
| Line 29: | Line 27: | ||
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. | ret.ecl = eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] .. word | ||
end | end | ||