Module:ábḫ-ipa: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 91: | Line 91: | ||
-- compute position of stress | -- compute position of stress | ||
pos = 0 | pos = 0 | ||
for i,val in word do | for i,val in ipairs(word) do | ||
if mw.ustring.match(word[i], "ˈ") then | if mw.ustring.match(word[i], "ˈ") then | ||
pos = i | pos = i | ||
Line 100: | Line 100: | ||
-- mark secondary stress | -- mark secondary stress | ||
for i,val in stresses do | for i,val in ipairs(stresses) do | ||
if mw.ustring.match(word[i], ".") and i ~= syllables then | if mw.ustring.match(word[i], ".") and i ~= syllables then | ||
if (i - pos) % 2 == 0 then | if (i - pos) % 2 == 0 then |