Module:umu-translit

local export = {}

local replacements = { ["aa"] = "ā", ["ee"] = "ē", ["ii"] = "ī", ["oo"] = "ō", ["ch"] = "č", ["sh"] = "š", ["zh"] = "ž" }

function export.tr(text) local output = text -- Perform all replacements for key, value in pairs(replacements) do       output = output:gsub(key, value) end return output end

return export