48,355
edits
No edit summary |
No edit summary |
||
| Line 183: | Line 183: | ||
for cluster, _ in pairs(clusters) do | for cluster, _ in pairs(clusters) do | ||
word = gsub(word, "(" .. cluster .. vowels .. "+" .. consonants .. "?)", "·%1·") | word = gsub(word, "(" .. cluster .. vowels .. "+" .. consonants .. "?)", "·%1·") | ||
end | end | ||
| Line 197: | Line 196: | ||
word = gsub(word, "·?d([ʤʣ])", "d·%1"); word = gsub(word, "·tʦ", "t·ʦ") | word = gsub(word, "·?d([ʤʣ])", "d·%1"); word = gsub(word, "·tʦ", "t·ʦ") | ||
word = gsub(word, "·?ŋg", "ŋ·g"); word = gsub(word, "··", "·") | word = gsub(word, "·?ŋg", "ŋ·g"); word = gsub(word, "··", "·") | ||
for cluster, _ in pairs(clusters) do | |||
word = gsub(word, "(" .. consonants .. "+)·(" .. consonants .. "+)", function(c1,c2) return match(c1 .. c2, cluster) and "·" .. c1 .. c2 or c1 .. "·" .. c2 end) | |||
end | |||
end | end | ||