Module:qlu-pron: Difference between revisions

No edit summary
No edit summary
Line 219: Line 219:
phonemic = gsub(phonemic, rule[1], rule[2])
phonemic = gsub(phonemic, rule[1], rule[2])
end
end
ret[1] = phonemic
local phonetic = phonemic
local phonetic = phonemic
Line 225: Line 225:
phonetic = gsub(phonetic, rule[1], rule[2])
phonetic = gsub(phonetic, rule[1], rule[2])
end
end
ret[2] = phonetic
local upper, bolognese, paulistan = phonemic, phonemic, phonemic
local upper, bolognese, paulistan = phonemic, phonemic, phonemic
Line 249: Line 248:


-- testcases
-- testcases
if outputs == "phonemic" then
--[[if outputs == "phonemic" then
return phonemic
return phonemic
elseif not outputs or outputs == "phonetic" then
elseif not outputs or outputs == "phonetic" then
Line 255: Line 254:
elseif outputs == "test" then
elseif outputs == "test" then
return "/" .. phonemic .. "/ [" .. phonetic .. "]"
return "/" .. phonemic .. "/ [" .. phonetic .. "]"
end
end]]


dialects["upper"] = upper
dialects["upper"] = upper
Line 263: Line 262:
mw.logObject(ret, "Debug: ret table")
mw.logObject(ret, "Debug: ret table")
return ret --, dialects
return {phonemic, phonetic} --, dialects
end
end