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 == " | |||
elseif p == " | if p == "l" and a == "h" then table.insert(syllables, #syllables-2, "ˈ") | ||
elseif (p == "l" and a == "l") or (p == "h") or (a == nil) then table.insert(syllables, #syllables-1, "ˈ") | |||
elseif p == nil then table.insert(syllables, #syllables, "ˈ") | elseif p == nil then table.insert(syllables, #syllables, "ˈ") | ||
else | else table.insert(syllables, #syllables-1, "ˈ") end | ||
return table.concat(syllables) | return table.concat(syllables) |