45,646
edits
No edit summary |
No edit summary |
||
Line 61: | Line 61: | ||
local function syllabify(term) | local function syllabify(term) | ||
local iskolan = term == "kolaːn" | local iskolan = term == "kolaːn" | ||
local syllable = "(" .. consonants .. " | local syllable = "(" .. consonants .. "*)(" .. vowels .. ")(" .. consonants .. "-)" | ||
term = gsub(term, syllable, " | term = gsub(term, syllable, "·%1%·") | ||
term = gsub(term, "^ | term = gsub(term, "^·", "") | ||
term = gsub(term, " | term = gsub(term, "·$", "") | ||
term = gsub(term, " | term = gsub(term, "··+", "·") | ||
local syllables = split(term, " | local syllables = split(term, "·") | ||
if iskolan then | if iskolan then |