Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 61: Line 61:
term = term:gsub("q·q", "k·q")
term = term:gsub("q·q", "k·q")
term = term:gsub(syllable, "·%1·")
term = term:gsub(syllable, "·%1·")
term = term:gsub("^·", "")
--[[term = term:gsub("^·", "")
term = term:gsub("·$", "")
term = term:gsub("·$", "")
term = term:gsub("·+", "·")
term = term:gsub("·+", "·")
Line 67: Line 67:
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, "·")
Line 90: Line 90:
phonemic = syllabify(phonemic)
phonemic = syllabify(phonemic)
phonetic = phonemic
local phonetic = phonemic
for _, rule in ipairs(phonetic_rules) do
for _, rule in ipairs(phonetic_rules) do

Navigation menu