Module:qhv-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 34: Line 34:
term = gsub(term, "·(" .. consonants .. ")$", "%1")
term = gsub(term, "·(" .. consonants .. ")$", "%1")
term = gsub(term, "·(" .. consonants .. ")(" .. consonants .. ")", "%1·%2")
term = gsub(term, "·(" .. consonants .. ")(" .. consonants .. ")", "%1·%2")
term = gsub(term, "·$", "")
term = gsub(term, "·$")
syllables = split(term, "·")
syllables = split(term, "·")
Line 49: Line 49:
else penult = "ˈ" .. penult end
else penult = "ˈ" .. penult end
return table.concat(syllables)
return #syllables
end
end