Module:zm-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 58: Line 58:
if d == "s" then term = gsub(term, "ʨ", "ʦ"); term = gsub(term, "ʥ", "ʣ") end
if d == "s" then term = gsub(term, "ʨ", "ʦ"); term = gsub(term, "ʥ", "ʣ") end
if d == "c" then term = gsub(term, "ǫ", "o") end
if d == "c" then term = gsub(term, "ǫ", "o") end
if d == "s" then term = gsub(term, "ǫ", "uo") end
if d == "s" then term = gsub(term, "ǫ", "ųo") end
if d == "n" then term = gsub(term, "ǫ", "u") end
if d == "n" then term = gsub(term, "ǫ", "u") end
if d == "c" then term = gsub(term, "ō", "ó") end
if d == "c" then term = gsub(term, "ō", "ó") end
Line 64: Line 64:
if d == "n" then term = gsub(term, "ō", "ú") end
if d == "n" then term = gsub(term, "ō", "ú") end
if d == "c" then term = gsub(term, "a", "ɐ"); term = gsub(term, "e", "ɪ"); term = gsub(term, "i", "ɪ"); term = gsub(term, "o", "ɔ"); term = gsub(term, "u", "ʊ")  end
if d == "c" then term = gsub(term, "a", "ɐ"); term = gsub(term, "e", "ɪ"); term = gsub(term, "i", "ɪ"); term = gsub(term, "o", "ɔ"); term = gsub(term, "u", "ʊ")  end
if d == "s" then term = gsub(term, "a", "ɐ"); term = gsub(term, "e", "ɛ"); term = gsub(term, "i", "e"); term = gsub(term, "o", "ɔ"); term = gsub(term, "u", "o"); term = gsub(term, "ɪ", "i"); term = gsub(term, "ɪ́", "í")  end
if d == "s" then term = gsub(term, "a", "ɐ"); term = gsub(term, "e", "ɛ"); term = gsub(term, "i", "e"); term = gsub(term, "o", "ɔ"); term = gsub(term, "u", "o"); term = gsub(term, "ɪ", "i"); term = gsub(term, "ɪ́", "í"); term = gsub(term, "ų", "u")  end
if d == "n" then term = gsub(term, "a", "ə"); term = gsub(term, "e", "ə"); term = gsub(term, "i", "y"); term = gsub(term, "o", "ɔ"); term = gsub(term, "u", "ʊ"); term = gsub(term, "ɪ", "ɨ"); term = gsub(term, "ɪ́", "ɨ́"); term = gsub(term, "y", "ɪ")  end
if d == "n" then term = gsub(term, "a", "ə"); term = gsub(term, "e", "ə"); term = gsub(term, "i", "y"); term = gsub(term, "o", "ɔ"); term = gsub(term, "u", "ʊ"); term = gsub(term, "ɪ", "ɨ"); term = gsub(term, "ɪ́", "ɨ́"); term = gsub(term, "y", "ɪ")  end
Line 73: Line 73:
return term
return term
end
end
local rules = {
{"ǫ", "o"}, {"ō", "o"},
}


function IPA_span(items)
function IPA_span(items)
455

edits