Module:snon-common: Difference between revisions
No edit summary |
No edit summary |
||
| 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") | ||
ret.ecl = eclipsis_prefixes[mw.ustring.gsub(mw.ustring.toNFD(term_lower), 1, 1)] | |||
elseif mw.ustring.find(word_l, "^[h]") then | elseif mw.ustring.find(word_l, "^[h]") then | ||
ret.len = mw.ustring.gsub(word, "^(.)", "g%1") | ret.len = mw.ustring.gsub(word, "^(.)", "g%1") | ||
| Line 27: | Line 28: | ||
ret.len = mw.ustring.gsub(word, "^(..)", "%1h") | ret.len = mw.ustring.gsub(word, "^(..)", "%1h") | ||
end | end | ||
if mw.ustring.find(word, "^[aeiouàèìòù]") then | if mw.ustring.find(word, "^[aeiouàèìòù]") then | ||