45,626
edits
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
local function write_stress(term) | local function write_stress(term) | ||
local pattern = consonants .. vowels .. " | local pattern = consonants .. vowels .. "*" .. consonants .. "-" | ||
local syll = {} | local syll = {} | ||
syll = split(term, pattern) | syll = split(term, pattern) | ||
term = table.concat(syll, "·") | term = table.concat(syll, "·") | ||
term = gsub(term, "^·", "") | |||
term = gsub(term, "·(" .. consonants .. ")·", "%1·") | term = gsub(term, "·(" .. consonants .. ")·", "%1·") | ||
term = gsub(term, "·(" .. consonants .. ")$", "%1") | |||
return term | return term |