45,337
edits
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
local back_vowel = "uɔ" .. NASALIZED .. "?ɑʊ" | local back_vowel = "uɔ" .. NASALIZED .. "?ɑʊ" | ||
local vowel = "[" .. front_vowel .. back_vowel .. "]" | local vowel = "[" .. front_vowel .. back_vowel .. "]" | ||
local stpattern = "·?ˈ[ | local stpattern = "·?ˈ[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦ⁽ʰ⁾ʔː]*"..UNRELEASED.."?[iɪyeøɛœæauɔɑʊ]([mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦʔ]*"..UNRELEASED.."ː?)" | ||
Line 125: | Line 125: | ||
local ss = string.match(term, stpattern) | 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 | ||
for regex, replacement in pairs(srule) do | for regex, replacement in pairs(srule) do | ||
ss = gsub(ss, regex, replacement) | ss = gsub(ss, regex, replacement) | ||
end | end | ||
end | end]] | ||
term = string.sub(term, 1, i) .. ss .. string.sub(term, #ss) | term = ss--[[string.sub(term, 1, i) .. ss .. string.sub(term, #ss)]] | ||
table.insert(IPA, term) | table.insert(IPA, term) |