Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 62: Line 62:
local iskolan = term == "kolaːn"
local iskolan = term == "kolaːn"
local syllable = "(" .. consonants .. "*)(" .. vowels .. ")(" .. consonants .. "-)"
local syllable = "(" .. consonants .. "*)(" .. vowels .. ")(" .. consonants .. "-)"
term = gsub(term, syllable, "·%1%2%3·")
term = gsub(term, syllable, "·%1%2%3·")
term = gsub(term, "^·", "")
term = gsub(term, "^·", "")
term = gsub(term, "·$", "")
term = gsub(term, "·$", "")
term = gsub(term, "··+", "·")
term = gsub(term, "··+", "·")
term = gsub(term, "·(" .. consonants .. ")ː·", "%1·%1")
term = gsub(term, "q·q", "k·q")
local syllables = split(term, "·")
local syllables = split(term, "·")