45,660
edits
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
local v = "([aeiouyůõảẻỉỏủỷę])" | local v = "([aeiouyůõảẻỉỏủỷę])" | ||
local lenition_patterns = { | local lenition_patterns = { | ||
[v.."[vųbhḥg]"..v] = "%1%2", ["bb"] = "b", ["dd"] = "d", ["gg"] = "g", [" | [v.."[vųbhḥg]"..v] = "%1%2", ["bb"] = "b", ["dd"] = "d", ["gg"] = "g", ["gį"] = "į", ["mm"] = "m", ["ll"] = "l", ["nn"] = "n", | ||
["rr"] = "r", ["bġ"] = "p", ["pr"] = "p", ["dġ"] = "t", ["tr"] = "t", ["ḍb"] = "p", [" | ["rr"] = "r", ["bġ"] = "p", ["pr"] = "p", ["dġ"] = "t", ["tr"] = "t", ["ḍb"] = "p", ["ḍḍ"] = "hh", | ||
["ḍg"] = "k", ["bm"] = "m", ["dn"] = "n", ["kn"] = "ng", ["([lr])pp"] = "%1p", ["([lr])tt"] = "%1t", ["([lrms])kk"] = "%1k", | ["ḍg"] = "k", ["bm"] = "m", ["dn"] = "n", ["kn"] = "ng", ["([lr])pp"] = "%1p", ["([lr])tt"] = "%1t", ["([lrms])kk"] = "%1k", | ||
["k([lvs])"] = "g%1", ["ps"] = "bs", ["d[aou]"] = "l", ["ġ[aou]"] = "vv", ["[dġ][eůy]"] = "", ["[rġ]i"] = "ṡi", | ["k([lvs])"] = "g%1", ["ps"] = "bs", ["d[aou]"] = "l", ["ġ[aou]"] = "vv", ["[dġ][eůy]"] = "", ["[rġ]i"] = "ṡi", | ||
["di"] = "", [" | ["di"] = "", ["nįi"] = "ɟi", ["hhį"] = "ṡ", ["[ou]ų"] = "ů", ["dl"] = "l", | ||
} | } | ||
for regex, repl in | for regex, repl in pairs(lenition_patterns) do | ||
word = mw.ustring.gsub(word, regex, repl) | word = mw.ustring.gsub(word, regex, repl) | ||
end | end |