Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 125: Line 125:
for ss in gmatch(term, stpattern) do
for ss in gmatch(term, stpattern) do
i,j=find(term, ss)
for _, srule in ipairs(stressed_rules) do
for _, srule in ipairs(stressed_rules) do
t = gsub(term, stpattern "%1")
for regex, replacement in pairs(srule) do
for regex, replacement in pairs(srule) do
t = gsub(t, regex, replacement)
ss = gsub(ss, regex, replacement)
end
end
end
end
end
end
term = string.sub(term, 1, i) .. ss .. string.sub(term,j)
table.insert(IPA, term)
table.insert(IPA, term)

Navigation menu