Due to limitations in direct transliteration between multiple Indian writing systems, I thought about using the Latin script in the middle, so that I can expand the list of Indian writing systems.
At present, I took two Indian writings systems and Latin namely - Malayalam and Tamil. The Malayalam input is converted to Latin, then the Latin letters are converted to Tamil. Is there a possibility to achieve this using arrays? How will the function/functions be?
My current javascript setup:
//malayalam to latin
var ml_to_latin = {
mlConsonants:[
{ml:'ക', lt:'k'},
{ml:'ഗ', lt:'g'}
],
mlVowels:[
{ml:'അ', lt:'a'},
{ml:'ആ', lt:'aa'}
]
}
//latin to tamil
var latin_to_tamil = {
ltConsonants:[
{lt:'k', ta:'க'},
{lt:'g', ta: 'க'}
],
ltVowels:[
{lt:'a', ta:'அ'},
{lt:'aa', ta:'ஆ'}
]
}