45,640
edits
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
local a, p = weight[#weight-2], weight[#weight-1] | local a, p = weight[#weight-2], weight[#weight-1] | ||
local antepenult, penult = syllables[#syllables-2], syllables[#syllables-1] | local antepenult, penult = syllables[#syllables-2], syllables[#syllables-1] | ||
if p == "l" and a == "l" then | if p == "l" and a == "l" then table.insert(syllables, #syllables-1, "ˈ") | ||
elseif p == "h" then | elseif p == "h" then table.insert(syllables, #syllables-1, "ˈ") | ||
elseif p == "l" and a == "h" then | elseif p == "l" and a == "h" then table.insert(syllables, #syllables-2, "ˈ") | ||
elseif p == nil then syllables | elseif p == nil then table.insert(syllables, #syllables, "ˈ") | ||
else penult = "ˈ" .. penult end | else penult = "ˈ" .. penult end | ||