Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 26: Line 26:


local function syllabicize(term)
local function syllabicize(term)
local syllable = "(" .. consonants .. "*" .. vowels .. "ː" .. consonants .. "-)"
local syllable = "(" .. consonants .. "*" .. vowels .. "ː?" .. consonants .. "-)"
term = term:gsub(syllable, ".%1.")
term = term:gsub(syllable, ".%1.")
term = term:gsub("%.%.([nlɾs])(" .. consonants .. ")", "%1.%2")
term = term:gsub("%.%.([nlɾs])(" .. consonants .. ")", "%1.%2")

Navigation menu