45,647
edits
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, "·"); local weight = {}; | ||
for i, syll in ipairs(syllables) do | for i, syll in ipairs(syllables) do | ||
if match(syll, "´") then | if match(syll, "´") or match(syll, "ː") then | ||
table.insert(syllables, i, "ˈ") | table.insert(syllables, i, "ˈ") | ||
return table.concat(syllables | return table.concat(syllables, "·") | ||
elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then | |||
table.insert(syllables, #syllables, "ˈ") | |||
elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then | else | ||
else | table.insert(syllables, #syllables-1, "ˈ") | ||
end | end | ||
end | end | ||
Line 100: | Line 89: | ||
end | end | ||
term = syllabify(term) | |||
for _, micrule in ipairs(phonemic_rules) do | for _, micrule in ipairs(phonemic_rules) do | ||
Line 118: | Line 107: | ||
end | end | ||
term = syllabify(term) | |||
for _, ticrule in ipairs(phonetic_rules) do | for _, ticrule in ipairs(phonetic_rules) do |