Module:qhv-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
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]
local antepenult, penult =  syllables[#syllables-2], syllables[#syllables-1]
if p == "l" and a == "h" then table.insert(syllables, #syllables-2, "ˈ")
if p == "l" and a == "h" then table.insert(syllables, #syllables-2, "ˈ")
Line 50: Line 49:
else table.insert(syllables, #syllables-1, "ˈ") end
else table.insert(syllables, #syllables-1, "ˈ") end
return syllables[1]
return table.concat(syllables, ".")
end
end


Navigation menu