48,355
edits
No edit summary |
No edit summary |
||
| Line 194: | Line 194: | ||
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·") | ||
word = gsub(word, "(" .. consonants .. "+)·(" .. consonants .. "+)", function(c1,c2) return | word = gsub(word, "(" .. consonants .. "+)·(" .. consonants .. "+)", function(c1,c2) return find(c1 .. c2, cluster) and "·" .. c1 .. c2 or c1 .. "·" .. c2 end) | ||
end | end | ||