Module:mg-pron: Difference between revisions

No edit summary
No edit summary
Line 32: Line 32:


local function syllabify(term)
local function syllabify(term)
term = gsub(term, "(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2.")
--term = gsub(term, "(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2.")
term = gsub(term, ".(" .. consonants .. ")(" .. consonants .. ")(" .. vowels .. "*)", "%1.%2%3")
term = gsub(term, ".(" .. consonants .. ")(" .. consonants .. ")(" .. vowels .. "*)", "%1.%2%3")