Module:qay-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 66: Line 66:
term = gsub(term, "·(" .. consonants .. ")·", "%1·")
term = gsub(term, "·(" .. consonants .. ")·", "%1·")
local syllables = split(term, "·"); local weight = {};
local syllables = split(term, "·");
for i, syll in ipairs(syllables) do
for i, syll in ipairs(syllables) do
Line 74: Line 74:
elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then
elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then
table.insert(syllables, #syllables, "ˈ")
table.insert(syllables, #syllables, "ˈ")
return table.concat(syllables, "·")
else
else
table.insert(syllables, #syllables-1, "ˈ")
table.insert(syllables, #syllables-1, "ˈ")
return table.concat(syllables, "·")
end
end
end
end

Navigation menu