Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 63: Line 63:
local syllable = "(" .. consonants .. "*)(" .. vowels .. "ː?)(" .. consonants .. "-)"
local syllable = "(" .. consonants .. "*)(" .. vowels .. "ː?)(" .. consonants .. "-)"
term = term:gsub(syllable, "·%1%2%3·")--:gsub("^·", ""):gsub("·$", ""):gsub("··+", "·")
term = gsub(term, syllable, "·%1%2%3·")
term = gsub(term, "^·", "")
term = gsub(term, "·$", "")
term = gsub(term, "··+", "·")
term = term:gsub("·(" .. consonants .. ")ː·", "%1·%1")
term = gsub(term, "·(" .. consonants .. ")ː·", "%1·%1")
term = term:gsub("q·q", "k·q")
term = gsub(term, "q·q", "k·q")
term = term:gsub("·(" .. consonants .. ")·", "%1·")
term = gsub(term, "·(" .. "m" .. ")·", "%1·")
--term = term:gsub("·(" .. consonants .. ")(" .. consonants .. ")", "%1·%2")
term = gsub(term, "·([nslɾmt])$", "%1")
term = term:gsub("·([nslɾmt])$", "%1")
local syllables = split(term, "·")
local syllables = split(term, "·")

Navigation menu