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