Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
 
(86 intermediate revisions by the same user not shown)
Line 9: Line 9:
["p"] = "b",
["p"] = "b",
["t"] = "d",
["t"] = "d",
["ph"] = "bh",
["h"] = "g",
["h"] = "nh",
["s"] = "z",
["s"] = "z",
["ch"] = "gh",
["v"] = "b",
}
}


Line 23: 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, "^i[aeouàèòù]") then
elseif mw.ustring.find(word_l, "^-[bcdfgmptsnlrv]") then
ret.len = mw.ustring.gsub(word, "^(.)", "h%1")
ret.len = mw.ustring.gsub(word, "^(..)", "%1h")
elseif mw.ustring.find(word_l, "^[h]") then
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")
end
end
end
Line 35: Line 31:
if mw.ustring.find(word, "^[aeiouàèìòù]") then
if mw.ustring.find(word, "^[aeiouàèìòù]") then
ret.ecl  = "n-" .. word
ret.ecl  = "n'" .. word
ret.hpro = "h-" .. word
ret.hpro = "h'" .. word
elseif mw.ustring.find(word, "^[AEIOUÀÈÌÒÙ]") then
elseif mw.ustring.find(word, "^[AEIOUÀÈÌÒÙ]") then
ret.ecl  = "n" .. word
ret.ecl  = "n" .. word
ret.hpro = "h" .. word
ret.hpro = "h" .. word
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then
ret.ecl = mw.ustring.gsub(word, "^(...)", "ni")
ret.len = mw.ustring.gsub(word, "^(...)", "chi")
end
if mw.ustring.find(word_l, "^-[s]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-zs")
--ret.len = mw.ustring.gsub(word, "^(..)", "-h")
end
end
end