45,333
edits
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
local function write_stress(term) | local function write_stress(term) | ||
local pattern = "(" .. consonants .. "*".. vowels .. "*" .. consonants .. "-)" | local pattern = "(" .. consonants .. "*".. vowels .. "*" .. consonants .. "-)" | ||
term = gsub(term, pattern, "·%1") | term = gsub(term, pattern, "·%1") | ||
term = gsub(term, "^·", "") | term = gsub(term, "^·", "") | ||
term = gsub(term, "·(" .. consonants .. ")·", "% | term = gsub(term, "·(" .. consonants .. ")·", "·%1") | ||
term = gsub(term, "·(" .. consonants .. ")$", "%1") | term = gsub(term, "·(" .. consonants .. ")$", "%1") | ||