Module:siwa-noun/common: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 54: Line 54:
}
}
local triphthongs = {
local triphthongs = { -- unused, can't get it to work
["([aoe])i([aoue])"] = "%1į%2", ["([aoe])ii"] = "%1gįi", ["([aoe])ỉ"] = "%1gįi",
["([aoe])i([aoue])"] = "%1į%2", ["([aoe])ii"] = "%1gįi", ["([aoe])ỉ"] = "%1gįi",
["ai[yů]"] = "ey", ["([eo])i[yů]"] = "%1įů",
["ai[yů]"] = "ey", ["([eo])i[yů]"] = "%1įů",
Line 83: Line 83:
word = gsub(word, "▫", "")
word = gsub(word, "▫", "")
local c3 = ""
if t then
for regex, repl in pairs(triphthongs) do
c3 = gsub(word, regex, repl)
if word ~= c3 then return c3 end
end
end
return word
return word