Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 67: Line 67:
term = term:gsub("^·", "")
term = term:gsub("^·", "")
term = term:gsub("·$", "")
term = term:gsub("·$", "")
term = term:gsub("·+", "·")
term = term:gsub("··+", "·")
term = term:gsub("·([nlɾs])([pβmtʧkxʷqƕː])", "%1·%2")
--[[term = term:gsub("·([nlɾs])([pβmtʧkxʷqƕː])", "%1·%2")
term = term:gsub("·([tmnlɾs])$", "%1")
term = term:gsub("·([tmnlɾs])$", "%1")
term = term:gsub("·(" .. consonants .. ")·", "%1·")
term = term:gsub("·(" .. consonants .. ")·", "%1·")]]
local syllables = split(term, "·")
local syllables = split(term, "·")