Module:qlu-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 193: Line 193:
if not match(word, "·") then
if not match(word, "·") then
for cluster, _ in pairs(clusters) do
for cluster, _ in pairs(clusters) do
if match(sub(word, 2), "^" .. consonants .. "+") == cluster then
word = gsub(word, "^(" .. vowel .. ")", "%1·")
end
word = gsub(word, "(" .. cluster .. vowels .. "+" .. consonants .. "?)", "·%1·")
word = gsub(word, "(" .. cluster .. vowels .. "+" .. consonants .. "?)", "·%1·")
end
end

Navigation menu