45,341
edits
No edit summary |
No edit summary |
||
Line 81: | Line 81: | ||
} | } | ||
local stressed_rules = { | local stressed_rules = {["h"] = "ʔ", ["ɡį"] = "jː", ["hh"] = "hː"} | ||
} | |||
local unstressed_rules = { | local unstressed_rules = { | ||
Line 129: | Line 125: | ||
local ss = mw.ustring.match(term, stpattern) | local ss = mw.ustring.match(term, stpattern) | ||
local i,j = mw.ustring.find(term, ss) | local i,j = mw.ustring.find(term, ss) | ||
for regex, replacement in pairs(stressed_rules) do | |||
xx = gsub(ss, regex, replacement) | |||
end | end | ||
term = sub(term,1,i-1) .. xx .. sub(term,j+1 | term = sub(term,1,i-1) .. xx .. sub(term,j+1) | ||
table.insert(IPA, term) | table.insert(IPA, term) |