Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 69: Line 69:
term = term:gsub("·(" .. consonants .. ")·", "%1·")
term = term:gsub("·(" .. consonants .. ")·", "%1·")
local syllables = split(term, "·")
--local syllables = split(term, "·")
local syllables = {}
for m in term:gmatch("[^·]+") do
table.insert(syllables, m)
end
if iskolan then
if iskolan then
syllables[#syllables] = "ˈ" .. syllables[#syllables] -- ultimate stress
syllables[#syllables] = "ˈ" .. syllables[#syllables] -- ultimate stress