Module:Math script

local blackboard_lookup = { a = '𝕒' , b = '𝕓' , c = '𝕔' , d = '𝕕' , e = '𝕖' , f = '𝕗' , g = '𝕘' , h = '𝕙' , i = '𝕚' , j = '𝕛' , k = '𝕜' , l = '𝕝' , m = '𝕞' , n = '𝕟' , o = '𝕠' , p = '𝕡' , q = '𝕢' , r = '𝕣' , s = '𝕤' , t = '𝕥' , u = '𝕦' , v = '𝕧' , w = '𝕨' , x = '𝕩' , y = '𝕪' , z = '𝕫' , A = '𝔸' , B = '𝔹' , C = 'ℂ' , D = '𝔻' , E = '𝔼' , F = '𝔽' , G = '𝔾' , H = 'ℍ' , I = '𝕀' , J = '𝕁' , K = '𝕂' , L = '𝕃' , M = '𝕄' , N = 'ℕ' , O = '𝕆' , P = 'ℙ' , Q = 'ℚ' , R = 'ℝ' , S = '𝕊' , T = '𝕋' , U = '𝕌' , V = '𝕍' , W = '𝕎' , X = '𝕏' , Y = '𝕐' , Z = 'ℤ' , gamma = 'ℽ' , pi = 'ℼ' , Gamma = 'ℾ' , Pi = 'ℿ' , Sigma = '⅀' };

local greek_lookup = { Alpha = 'Α' , Beta = 'Β' , Gamma = 'Γ' , Delta = 'Δ' , Epsilon = 'Ε' , Zeta = 'Ζ' , Eta = 'Η' , Theta = 'Θ' , Iota = 'Ι' , Kappa = 'Κ' , Lambda = 'Λ' , Mu = 'Μ' , Nu = 'Ν' , Xi = 'Ξ' , Omicron = 'Ο' , Pi = 'Π' , Rho = 'Ρ' , Sigma = 'Σ' , Tau = 'Τ' , Upsilon = 'Υ' , Phi = 'Φ' , Chi = 'Χ' , Psi = 'Ψ' , Omega = 'Ω' , alpha = 'α' , beta = 'β' , gamma = 'γ' , delta = 'δ' , epsilon = 'ε' , zeta = 'ζ' , eta = 'η' , theta = 'θ' , iota = 'ι' , kappa = 'κ' , lambda = 'λ' , mu = 'μ' , nu = 'ν' , xi = 'ξ' , omicron = 'ο' , pi = 'π' , rho = 'ρ' , sigma = 'σ' , tau = 'τ' , upsilon = 'υ' , phi = 'φ' , chi = 'χ' , psi = 'ψ' , omega = 'ω' };

local mathcal_lookup = { A = '𝓐' , B = '𝓑' , C = '𝓒' , D = '𝓓' , E = '𝓔' , F = '𝓕' , G = '𝓖' , H = '𝓗' , I = '𝓘' , J = '𝓙' , K = '𝓚' , L = '𝓛' , M = '𝓜' , N = '𝓝' , O = '𝓞' , P = '𝓟' , Q = '𝓠' , R = '𝓡' , S = '𝓢' , T = '𝓣' , U = '𝓤' , V = '𝓥' , W = '𝓦' , X = '𝓧' , Y = '𝓨' , Z = '𝓩' , a = '𝓪' , b = '𝓫' , c = '𝓬' , d = '𝓭' , e = '𝓮' , f = '𝓯' , g = '𝓰' , h = '𝓱' , i = '𝓲' , j = '𝓳' , k = '𝓴' , l = '𝓵' , m = '𝓶' , n = '𝓷' , o = '𝓸' , p = '𝓹' , q = '𝓺' , r = '𝓻' , s = '𝓼' , t = '𝓽' , u = '𝓾' , v = '𝓿' , w = '𝔀' , x = '𝔁' , y = '𝔂' , z = '𝔃' };

blackboard = function(frame) return blackboard_lookup[frame.args[1]] end

greek = function(frame) return greek_lookup[frame.args[1]] end

mathcal = function(frame) return mathcal_lookup[frame.args[1]] end

return { blackboard = blackboard , greek = greek , mathcal = mathcal };