Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 63: Line 63:
local syllable = "(" .. consonants .. "?)(" .. vowels .. ")(" .. consonants .. "-)"
local syllable = "(" .. consonants .. "?)(" .. vowels .. ")(" .. consonants .. "-)"
term = gsub(term, syllable, ".%1.")
term = gsub(term, syllable, ".%1.")
term = gsub(term, "^%.", "")
term = gsub(term, "%.$", "")
term = gsub(term, "%.%.+", ".")
local syllables = split(term, ".")
local syllables = split(term, ".")