45,660
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
function export.lenition(word) | function export.lenition(word) | ||
--local word = frame:getParent().args[1] for testing | --local word = frame:getParent().args[1] -- for testing | ||
local lenited = "" | local lenited = "" | ||
local v = "([aeiouyůõảẻỉỏủỷę])" | local v = "([aeiouyůõảẻỉỏủỷę])" | ||
Line 16: | Line 16: | ||
--consonant clusters | --consonant clusters | ||
["dl"] = "l", ["([lr])pp"] = "%1p", ["([lr])tt"] = "%1t", ["([lrms])kk"] = "%1k",["ps"] = "bs", ["k([lvs])"] = "g%1", | ["dl"] = "l", ["([lr])pp"] = "%1p", ["([lr])tt"] = "%1t", ["([lrms])kk"] = "%1k",["ps"] = "bs", ["k([lvs])"] = "g%1", | ||
--voiced consonants | --voiced consonants (◾, arbitrary character to compute diphthongs further down) | ||
["vv"] = "ų", [v.."[vųbhḥg]"..v] = "% | ["vv"] = "ų", [v.."[vųbhḥg]"..v] = "%1◾%2", ["d[aou]"] = "l", [v.."[dġ][ieůy]"] = "%1◾", [v.."ġ[aou]"] = "%1vv", | ||
--Ci# | --Ci# | ||
["[rġ]i"] = "ṡi", ["nįi"] = "gįi", ["hhį"] = "ṡ", | ["[rġ]i"] = "ṡi", ["nįi"] = "gįi", ["hhį"] = "ṡ", | ||
Line 31: | Line 31: | ||
return word | return word | ||
end | |||
function export.coalescence(word) | |||
local diphthongs = { | |||
["[aę]◾[aę]"] = "ả", ["e◾e"] = "ẻ", ["i◾i"] = "ỉ", ["[yů]◾[yů]"] = "ỷ", ["[uyů]◾[uyů]"] = "ủ", | |||
["[ei]◾[aę]"] = "ia", ["([ou])◾[aę]"] = "%1a", ["[ůy]◾[aę]"] = "ůa", ["a◾[ei]"] = "ai", ["a◾[ou]"] = "au", ["[aę]◾[yůu]"] = "ay" | |||
} | |||
end | end | ||