मॉड्यूल:तमिल लिप्यंतरण
दिखावट
तमिल लिप्यंतरण।
- போகமுடியாதவர்களுக்காக -> पोकमुटियातवर्कळुक्काक
- அழிந்துக்கொண்டிருந்தேன் -> अष़िन्तुक्कॊण्टिरुन्तेऩ्
local export = {}
local tab = {
['க']='क' , ['ங']='ङ' , ['ச']='च' , ['ஞ']='ञ' , ['ட']='ट' , ['ண']='ण' , ['த']='त' ,
['ந']='न' , ['ப']='प', ['ம']='म' , ['ய']='य' , ['ர']='र' , ['ல']='ल' , ['வ']='व' ,
['ழ']='ष़' , ['ள']='ळ' , ['ற']='ऱ' , ['ன']='ऩ' , ['ஶ']='श' , ['ஜ']='ज' , ['ஷ']='ष' ,
['ஸ']='स' , ['ஹ']='ह' , ['க்ஷ']='क्ष',
['ஃ']='ः' ,
['ா']= 'ा' , ['ி']='ि' , ['ீ']='ी' , ['ு']='ु' , ['ூ']='ू' , ['ெ']='ॆ' ,
['ே']='े' , ['ை']='य' , ['ொ']='ॊ' , ['ோ']='ो' , ['ௌ']='ौ' ,
['்']='्', --halant, supresses the inherent vowel "a"
-- no diacritic
-- vowels
['அ']='अ' , ['ஆ']='आ' , ['இ']='इ' , ['ஈ']='ई' , ['உ']='उ' , ['ஊ']='ऊ' ,
['எ']='ऎ' , ['ஏ']='ए' , ['ஐ']='य' , ['ஒ']='ऒ' , ['ஓ']='ओ' , ['ஔ']='व' ,
-- other symbols
-- ['ஃ']='' ,
}
function export.tr(text)
if type(text) == "table" then
text = text.args[1]
end
text = (mw.ustring.gsub(text,'ஃப','फ़'))
text = (mw.ustring.gsub(text,'ஃஜ','ज़'))
text = (mw.ustring.gsub(text,'ஃஸ','ख़'))
return (mw.ustring.gsub(text,'.',tab))
end
return export