45,645
edits
No edit summary |
No edit summary |
||
Line 63: | Line 63: | ||
local syllable = "(" .. consonants .. "*)(" .. vowels .. "ː?)(" .. consonants .. "-)" | local syllable = "(" .. consonants .. "*)(" .. vowels .. "ː?)(" .. consonants .. "-)" | ||
term = gsub( | term = term:gsub(syllable, "·%1%2%3·"):gsub("^·", ""):gsub("·$", ""):gsub("··+", "·") | ||
term = gsub( | term = term:gsub("·(" .. consonants .. ")ː·", "%1·%1") | ||
term = gsub( | term = term:gsub("q·q", "k·q") | ||
term = term:gsub("·(" .. consonants .. ")·", "%1·") | |||
term = term:gsub("·(" .. consonants .. ")(" .. consonants .. ")", "%1·%2") | |||
term = term:gsub("·([nslɾmt])$", "%1") | |||
local syllables = split(term, "·") | local syllables = split(term, "·") |