45,660
edits
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
} | } | ||
for regex, repl in pairs(lenition_patterns) do | for regex, repl in pairs(lenition_patterns) do | ||
lenited = | lenited = gsub(word, regex, repl, 1) | ||
if lenited ~= word then return lenited end | if lenited ~= word then return lenited end | ||
end | end | ||
Line 49: | Line 49: | ||
for regex, repl in pairs(diphthongs) do | for regex, repl in pairs(diphthongs) do | ||
word = | word = gsub(word, regex, repl, 1) | ||
end | end | ||
if stress then | if stress then | ||
word = | word = gsub(word, "[ůy]▫.", "ỷ") | ||
end | end | ||
word = | word = gsub(word, "▫", "") | ||
return word | return word |