Module:Transliterator: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Unfinished.)
No edit summary
Line 2: Line 2:
function p.main( frame )
function p.main( frame )
local word = frame.args[1]  
local word = frame.args[1]  
local a  
local a = string.gsub( word, "a", "ឆ" )
local aa
local aa = string.gsub( a, "ā", "ឹ" )
local b
local b = string.gsub( aa, "b", "េ" )
local sh
local sh = string.gsub( b, "sh", "រ" )
local h
local h = string.gsub( sh, "h", "ត" )
local i
local i = string.gsub( h, "i", "យ" )
local ii
local ii = string.gsub( i, "ī", "ុ" )
local j
local j
local k
local k

Revision as of 16:41, 13 February 2019



local p = {}
function p.main( 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
	local k
	local l
	local m
	local n
	local o
	local oo
	local p
	local q
	local r
	local t
	local u
	local x
	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]]",
		
	}
	return word
	end
return p