Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 124: Line 124:
end
end
local ss = string.match(term, stpattern)
--[[local i,j = find(term, ss)
--[[local i,j = find(term, ss)
for _, srule in ipairs(stressed_rules) do
for _, srule in ipairs(stressed_rules) do
Line 132: Line 131:
end]]
end]]
term = string.sub(term, 1, i) .. ss .. string.sub(term, #ss)
term = string.sub(term, 1, i) .. ss .. string.sub(term, (string.match(term, stpattern)))
table.insert(IPA, term)
table.insert(IPA, term)