FANDOM

!
21 Pages

--[[
 
please take away my computer
 
]]
 
local export = {}
 
local U = mw.ustring.char
 
local function sup(text)
	return '<sup>' .. text .. '</sup>'
end
 
local tt = {
	['ـ'] = '',
 
	['ا'] = 'a̱',
	['ب'] = 'b',
	['پ'] = 'p',
	['ت'] = 't',
	['ث'] = 'θ',
	['ٿ'] = 'q',
	['ج'] = 'ž',
	['چ'] = 'č',
	['ح'] = 'ħ',
	['خ'] = 'h',
	['د'] = 'd',
	['ذ'] = 'z',
	['ر'] = 'r',
	['ز'] = 'ẕ',
	['ژ'] = 'ʒ',
	['س'] = 's',
	['?'] = 's',
	['ش'] = 'š',
	['ص'] = 's',
	['ض'] = 'ḍ',
	['ڞ'] = 'c',
	['ط'] = 'ṭ',
	['ظ'] = 'ẓ',
	['ع'] = 'ʔ',
	['غ'] = 'ḡ',
	['ف'] = 'f',
	['ق'] = 'g',
	['ك'] = 'g',
	['ک'] = 'k',
	['گ'] = 'g',
	['ݣ'] = 'ŋ',
	['ل'] = 'l',
	['م'] = 'm',
	['ن'] = 'n',
	['ه'] = 'h',
	['و'] = 'u̱',
	['ي'] = 'i̱',
	['ى'] = 'i̱',
 
	[U(0x064b)] = sup('an'),
	[U(0x064c)] = sup('ən'),
	[U(0x064d)] = sup('in'),
	[U(0x064e)] = sup('a'),
	[U(0x064f)] = sup('u'),
	[U(0x0650)] = sup('i'),
	[U(0x0651)] = sup('々'), -- :)
	[U(0x0652)] = sup('ə'),
}
 
function export.tr(text)
	text = text.args[1] -- :^)
 
	text = mw.ustring.gsub(text, '.', tt)
 
	return text
end
 
return export