Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 9: Line 9:
["p"] = "b",
["p"] = "b",
["t"] = "d",
["t"] = "d",
["h"] = "n",
["h"] = "g",
["s"] = "z",
["s"] = "z",
["v"] = "b",
["v"] = "b",
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, "^[h]") then
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")
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")
end
end
if mw.ustring.find(word, "^[fvpbsztdhkg]") then
if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then
ret.ecl = eclipsis_prefixes[mw.ustring.sub(word, 1, 1)]
ret.ecl = eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] .. word
end
end