Module:Transliterator
Jump to navigation
Jump to search
- The following documentation is located at Module:Transliterator/doc.[edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
local p = {}
function p.intermed( frame )
local word = frame.args[1]
local a = string.gsub( word, "a", "ឆ" )
local aa = string.gsub( a, "ā", "ឹ" )
local b = string.gsub( aa, "b", "េ" )
local sh = string.gsub( b, "sh", "រ" )
local h = string.gsub( sh, "h", "ត" )
local i = string.gsub( h, "i", "យ" )
local ii = string.gsub( i, "ī", "ុ" )
local j = string.gsub( ii, "j", "ិ" )
local k = string.gsub( j, "k", "ោ" )
local l = string.gsub( k, "l", "ផ" )
local m = string.gsub( l, "m", "ៀ" )
local n = string.gsub( m, "n", "ឪ" )
local o = string.gsub( n, "o", "ា" )
local oo = string.gsub( o, "ō", "ស" )
local p = string.gsub( oo, "p", "ដ" )
local q = string.gsub( p, "q", "ថ" )
local r = string.gsub( q, "r", "ង" )
local t = string.gsub( r, "t", "ហ" )
local u = string.gsub( t, "u", "្" )
local x = string.gsub( u, "x", "ក" )
return x
end
local images = {
["a"] = "[[File:Aurebesh-AE.svg|18px]]",
["ā"] = "[[File:Aurebesh-A.svg|22px]]",
["b"] = "[[File:Aurebesh-B.svg|21px]]",
["sh"] = "[[File:Aurebesh-SH.svg|24px]]",
["h"] = "[[File:Aurebesh-H.svg|21px]]",
["i"] = "[[File:Aurebesh-E.svg|20px]]",
["ī"] = "[[File:Aurebesh-I.svg|8px]]",
["j"] = "[[File:Aurebesh-J.svg|19px]]",
["k"] = "[[File:Aurebesh-K.svg|20px]]",
["l"] = "[[File:Aurebesh-L.svg|13px]]",
["m"] = "[[File:Aurebesh-M.svg|12px]]",
["n"] = "[[File:Aurebesh-N.svg|21px]]",
["o"] = "[[File:Aurebesh-O.svg|19px]]",
["ō"] = "[[File:Aurebesh-EO.svg|21px]]",
["p"] = "[[File:Aurebesh-P.svg|13px]]",
["q"] = "[[File:Aurebesh-Q.svg|17px]]",
["r"] = "[[File:Aurebesh-R.svg|16px]]",
["t"] = "[[File:Aurebesh-T.svg|21px]]",
["u"] = "[[File:Aurebesh-U.svg|19px]]",
["x"] = "[[File:Aurebesh-X.svg|17px]]",
}