Module:Kutenai

local replacements = { ["_a"] = "&#8336;", -- subscript a	["_e"] = "&#8337;", -- subscript e	["_i"] = "&#7522;", -- subscript i	["_u"] = "&#7524;", -- subscript u	["%^a"] = "&#7491;", -- superscript a	["%^i"] = "&#8305;", -- superscript i	["%^u"] = "&#7512;", -- superscript u	["\\e"] = "&#7431;", ["\\E"] = "&#7431;", -- small capital E	["\\i"] = "&#953;", -- iota with italics ["\\u"] = "&#965;", -- upsilon with italics ["\\y"] = "&#971;", -- upsilon with dialytika and italics ["l"] = "&#322;", ["L"] = "&#321;", -- L with stroke ["\\l"] = "&#108;", ["\\L"] = "&#76;", -- L with no stroke ["x"] = "&#120;&#803;", ["X"] = "&#88;&#803;", -- X with dot below ["c"] = "&#120;&#815;", ["C"] = "&#88;&#815;", -- X with inverted breve below ["\\%."] = "&#183;", -- middle dot ["%)"] = "&#700;", -- glottal stop	["%("] = "&#701;", -- aspiration ["'"] = "′", -- principal stress accent ["`"] = "&#8245;", -- secondary stress accent ["\\v"] = "˘", -- concave accent symbol }

local p = {}

function p.main(frame) local parent = frame:getParent local args = parent.args[1] and parent.args or frame.args s = args[1] if (s == nil) then return "" end for i,v in pairs(replacements) do		s = mw.ustring.gsub(s, i, v)	end return s end

return p