function bam2uni(str){

str = str.replace(/nfs;;/g, 'கெள்');
str = str.replace(/nfsh/g, 'கெளா');
str = str.replace(/nfsp/g, 'கெளி');
str = str.replace(/nfsP/g, 'கெளீ');
str = str.replace(/nqs;/g, 'ஙெள்');
str = str.replace(/nqsh/g, 'ஙெளா');
str = str.replace(/nqsp/g, 'ஙெளி');
str = str.replace(/nqsP/g, 'ஙெளீ');
str = str.replace(/nrs;/g, 'செள்');
str = str.replace(/nrsh/g, 'செளா');
str = str.replace(/nrsp/g, 'செளி');
str = str.replace(/nrsP/g, 'செளீ');
str = str.replace(/nQs;/g, 'ஞெள்');
str = str.replace(/nQsh/g, 'ஞெளா');
str = str.replace(/nQsp/g, 'ஞெளி');
str = str.replace(/nQsP/g, 'ஞெளீ');
str = str.replace(/nls;/g, 'டெள்');
str = str.replace(/nlsh/g, 'டெளா');
str = str.replace(/nlsp/g, 'டெளி');
str = str.replace(/nlsP/g, 'டெளீ');
str = str.replace(/nzs;/g, 'ணெள்');
str = str.replace(/nzsh/g, 'ணெளா');
str = str.replace(/nzsp/g, 'ணெளி');
str = str.replace(/nzsP/g, 'ணெளீ');
str = str.replace(/njs;/g, 'தெள்');
str = str.replace(/njsh/g, 'தெளா');
str = str.replace(/njsp/g, 'தெளி');
str = str.replace(/njsP/g, 'தெளீ');
str = str.replace(/nes;/g, 'நெள்');
str = str.replace(/nesh/g, 'நெளா');
str = str.replace(/nesp/g, 'நெளி');
str = str.replace(/nesP/g, 'நெளீ');
str = str.replace(/ngs;/g, 'பெள்');
str = str.replace(/ngsh/g, 'பெளா');
str = str.replace(/ngsp/g, 'பெளி');
str = str.replace(/ngsP/g, 'பெளீ');
str = str.replace(/nks;/g, 'மெள்');
str = str.replace(/nksh/g, 'மெளா');
str = str.replace(/nksp/g, 'ெளி');
str = str.replace(/nksP/g, 'மெளீ');
str = str.replace(/nas;/g, 'யெள்');
str = str.replace(/nash/g, 'யெளா');
str = str.replace(/nasp/g, 'யெளி');
str = str.replace(/nasP/g, 'யெளீ');
str = str.replace(/nus;/g, 'ரெள்');
str = str.replace(/nush/g, 'ரெளா');
str = str.replace(/nusp/g, 'ரெளி');
str = str.replace(/nusP/g, 'ரெளீ');
str = str.replace(/nys;/g, 'லெள்');
str = str.replace(/nysh/g, 'லெளா');
str = str.replace(/nysp/g, 'லெளி');
str = str.replace(/nysP/g, 'லெளீ');
str = str.replace(/nts;/g, 'வெள்');
str = str.replace(/ntsh/g, 'வெளா');
str = str.replace(/ntsp/g, 'வெளி');
str = str.replace(/ntsP/g, 'வெளீ');
str = str.replace(/nos;/g, 'ழெள்');
str = str.replace(/nosh/g, 'ழெளா');
str = str.replace(/nosp/g, 'ழெளி');
str = str.replace(/nosP/g, 'ழெளீ');
str = str.replace(/nss;/g, 'ளெள்');
str = str.replace(/nssh/g, 'ளெளா');
str = str.replace(/nssp/g, 'ளெளி');
str = str.replace(/nssP/g, 'ளெளீ');
str = str.replace(/nws;/g, 'றெள்');
str = str.replace(/nwsh/g, 'றெளா');
str = str.replace(/nwsp/g, 'றெளி');
str = str.replace(/nwsP/g, 'றெளீ');
str = str.replace(/nds;/g, 'னெள்');
str = str.replace(/ndsh/g, 'னெளா');
str = str.replace(/ndsp/g, 'னெளி');
str = str.replace(/ndsP/g, 'னெளீ');


str = str.replace(/nf\\h/g, 'க்ஷொ');
str = str.replace(/Nf\\h/g, 'க்ஷோ');
str = str.replace(/nf\\s/g, 'க்ஷௌ');
str = str.replace(/f\\;/g, 'க்ஷ்');
str = str.replace(/f\\h/g, 'க்ஷா');
str = str.replace(/f\\p/g, 'க்ஷி');
str = str.replace(/f\\P/g, 'க்ஷீ');
str = str.replace(/f\\{/g, 'க்ஷு');
str = str.replace(/f\\_/g, 'க்ஷூ');
str = str.replace(/nf\\/g, 'க்ஷெ');
str = str.replace(/Nf\\/g, 'க்ஷே');
str = str.replace(/if\\/g, 'க்ஷை');

str = str.replace(/nfh/g, 'கொ');
str = str.replace(/nqh/g, 'ஙொ');
str = str.replace(/nrh/g, 'சொ');
str = str.replace(/nQh/g, 'ஞொ');
str = str.replace(/nlh/g, 'டொ');
str = str.replace(/nzh/g, 'ணொ');
str = str.replace(/njh/g, 'தொ');
str = str.replace(/neh/g, 'நொ');
str = str.replace(/ngh/g, 'பொ');
str = str.replace(/nkh/g, 'மொ');
str = str.replace(/nah/g, 'யொ');
str = str.replace(/nuh/g, 'ரொ');
str = str.replace(/nyh/g, 'லொ');
str = str.replace(/nth/g, 'வொ');
str = str.replace(/noh/g, 'ழொ');
str = str.replace(/nsh/g, 'ளொ');
str = str.replace(/nwh/g, 'றொ');
str = str.replace(/ndh/g, 'னொ');
str = str.replace(/n\[h/g, 'ஜொ');  // grantha 
str = str.replace(/n\]h/g, 'ஸொ');  // grantha 
str = str.replace(/n`h/g, 'ஹொ');  // grantha 
str = str.replace(/n\\h/g, 'ஷொ'); // grantha 

str = str.replace(/Nfh/g, 'கோ');
str = str.replace(/Nqh/g, 'ஙோ');
str = str.replace(/Nrh/g, 'சோ');
str = str.replace(/NQh/g, 'ஞோ');
str = str.replace(/Nlh/g, 'டோ');
str = str.replace(/Nzh/g, 'ணோ');
str = str.replace(/Njh/g, 'தோ');
str = str.replace(/Neh/g, 'நோ');
str = str.replace(/Ngh/g, 'போ');
str = str.replace(/Nkh/g, 'மோ');
str = str.replace(/Nah/g, 'யோ');
str = str.replace(/Nuh/g, 'ரோ');
str = str.replace(/Nyh/g, 'லோ');
str = str.replace(/Nth/g, 'வோ');
str = str.replace(/Noh/g, 'ழோ');
str = str.replace(/Nsh/g, 'ளோ');
str = str.replace(/Nwh/g, 'றோ');
str = str.replace(/Ndh/g, 'னோ');
str = str.replace(/N\[h/g, 'ஜோ'); // grantha 
str = str.replace(/N\]h/g, 'ஸோ'); // grantha 
str = str.replace(/N`h/g, 'ஹோ'); // grantha 
str = str.replace(/N\\h/g, 'ஷோ'); // grantha 

str = str.replace(/nfs/g, 'கௌ');
str = str.replace(/nqs/g, 'ஙௌ');
str = str.replace(/nrs/g, 'சௌ');
str = str.replace(/nQs/g, 'ஞௌ');
str = str.replace(/nls/g, 'டௌ');
str = str.replace(/nzs/g, 'ணௌ');
str = str.replace(/njs/g, 'தௌ');
str = str.replace(/nes/g, 'நௌ');
str = str.replace(/ngs/g, 'பௌ');
str = str.replace(/nks/g, 'மௌ');
str = str.replace(/nas/g, 'யௌ');
str = str.replace(/nus/g, 'ரௌ');
str = str.replace(/nys/g, 'லௌ');
str = str.replace(/nts/g, 'வௌ');
str = str.replace(/nos/g, 'ழௌ');
str = str.replace(/nss/g, 'ளௌ');
str = str.replace(/nws/g, 'றௌ');
str = str.replace(/nds/g, 'னௌ');
str = str.replace(/n\[s/g, 'ஜௌ'); // grantha 
str = str.replace(/n\]s/g, 'ஸௌ'); // grantha 
str = str.replace(/n`s/g, 'ஹௌ'); // grantha 
str = str.replace(/n\\s/g, 'ஷௌ'); // grantha 

str = str.replace(/R\+/g, 'சூ');
str = str.replace(/Z}/g, 'ணூ');
str = str.replace(/J}/g, 'தூ');
str = str.replace(/E}/g, 'நூ');
str = str.replace(/G\+/g, 'பூ');
str = str.replace(/g\+/g, 'பூ');
str = str.replace(/q\+/g, 'ஙூ');
str = str.replace(/A\+/g, 'யூ');
str = str.replace(/Y}/g, 'லூ');
str = str.replace(/T\+/g, 'வூ');
str = str.replace(/W}/g, 'றூ');
str = str.replace(/D}/g, 'னூ');
str = str.replace(/F/g, 'கு');
str = str.replace(/R/g, 'சு');
str = str.replace(/L/g, 'டு');
str = str.replace(/Z/g, 'ணு');
str = str.replace(/J/g, 'து');
str = str.replace(/E/g, 'நு');
str = str.replace(/G/g, 'பு');
str = str.replace(/K/g, 'மு');
str = str.replace(/A/g, 'யு');
str = str.replace(/U/g, 'ரு');
str = str.replace(/Y/g, 'லு');
str = str.replace(/T/g, 'வு');
str = str.replace(/O/g, 'ழு');
str = str.replace(/S/g, 'ளு');
str = str.replace(/W/g, 'று');
str = str.replace(/D/g, 'னு');


str = str.replace(/nf/g, 'கெ');
str = str.replace(/nq/g, 'ஙெ');
str = str.replace(/nr/g, 'செ');
str = str.replace(/nQ/g, 'ஞெ');
str = str.replace(/nl/g, 'டெ');
str = str.replace(/nz/g, 'ணெ');
str = str.replace(/nj/g, 'தெ');
str = str.replace(/ne/g, 'நெ');
str = str.replace(/ng/g, 'பெ');
str = str.replace(/nk/g, 'மெ');
str = str.replace(/na/g, 'யெ');
str = str.replace(/nu/g, 'ரெ');
str = str.replace(/ny/g, 'லெ');
str = str.replace(/nt/g, 'வெ');
str = str.replace(/no/g, 'ழெ');
str = str.replace(/ns/g, 'ளெ');
str = str.replace(/nw/g, 'றெ');
str = str.replace(/nd/g, 'னெ');

str = str.replace(/Nf/g, 'கே');
str = str.replace(/Nq/g, 'ஙே');
str = str.replace(/Nr/g, 'சே');
str = str.replace(/NQ/g, 'ஞே');
str = str.replace(/Nl/g, 'டே');
str = str.replace(/Nz/g, 'ணே');
str = str.replace(/Nj/g, 'தே');
str = str.replace(/Ne/g, 'நே');
str = str.replace(/Ng/g, 'பே');
str = str.replace(/Nk/g, 'மே');
str = str.replace(/Na/g, 'யே');
str = str.replace(/Nu/g, 'ரே');
str = str.replace(/Ny/g, 'லே');
str = str.replace(/Nt/g, 'வே');
str = str.replace(/No/g, 'ழே');
str = str.replace(/Ns/g, 'ளே');
str = str.replace(/Nw/g, 'றே');
str = str.replace(/Nd/g, 'னே');

str = str.replace(/if/g, 'கை');
str = str.replace(/iq/g, 'ஙை');
str = str.replace(/ir/g, 'சை');
str = str.replace(/iQ/g, 'ஞை');
str = str.replace(/il/g, 'டை');
str = str.replace(/iz/g, 'ணை');
str = str.replace(/ij/g, 'தை');
str = str.replace(/ie/g, 'நை');
str = str.replace(/ig/g, 'பை');
str = str.replace(/ik/g, 'மை');
str = str.replace(/ia/g, 'யை');
str = str.replace(/iu/g, 'ரை');
str = str.replace(/iy/g, 'லை');
str = str.replace(/it/g, 'வை');
str = str.replace(/io/g, 'ழை');
str = str.replace(/is/g, 'ளை');
str = str.replace(/iw/g, 'றை');
str = str.replace(/id/g, 'னை');

str = str.replace(/f;/g, 'க்');
str = str.replace(/q;/g, 'ங்');
str = str.replace(/r;/g, 'ச்');
str = str.replace(/Q;/g, 'ஞ்');
str = str.replace(/l;/g, 'ட்');
str = str.replace(/z;/g, 'ண்');
str = str.replace(/j;/g, 'த்');
str = str.replace(/e;/g, 'ந்');
str = str.replace(/g;/g, 'ப்');
str = str.replace(/k;/g, 'ம்');
str = str.replace(/a;/g, 'ய்');
str = str.replace(/u;/g, 'ர்');
str = str.replace(/h;/g, 'ர்'); //additional 
str = str.replace(/y;/g, 'ல்');
str = str.replace(/t;/g, 'வ்');
str = str.replace(/o;/g, 'ழ்');
str = str.replace(/s;/g, 'ள்');
str = str.replace(/w;/g, 'ற்');
str = str.replace(/d;/g, 'ன்');

str = str.replace(/fp/g, 'கி');
str = str.replace(/qp/g, 'ஙி');
str = str.replace(/rp/g, 'சி');
str = str.replace(/Qp/g, 'ஞி');
str = str.replace(/lp/g, 'டி');
str = str.replace(/zp/g, 'ணி');
str = str.replace(/jp/g, 'தி');
str = str.replace(/ep/g, 'நி');
str = str.replace(/gp/g, 'பி');
str = str.replace(/kp/g, 'மி');
str = str.replace(/ap/g, 'யி');
str = str.replace(/up/g, 'ரி');
str = str.replace(/hp/g, 'ரி'); //additional 
str = str.replace(/yp/g, 'லி');
str = str.replace(/tp/g, 'வி');
str = str.replace(/op/g, 'ழி');
str = str.replace(/sp/g, 'ளி');
str = str.replace(/wp/g, 'றி');
str = str.replace(/dp/g, 'னி');

str = str.replace(/fP/g, 'கீ');
str = str.replace(/qP/g, 'ஙீ');
str = str.replace(/rP/g, 'சீ');
str = str.replace(/QP/g, 'ஞீ');
str = str.replace(/lP/g, 'டீ');
str = str.replace(/zP/g, 'ணீ');
str = str.replace(/jP/g, 'தீ');
str = str.replace(/eP/g, 'நீ');
str = str.replace(/gP/g, 'பீ');
str = str.replace(/kP/g, 'மீ');
str = str.replace(/aP/g, 'யீ');
str = str.replace(/uP/g, 'ரீ');
str = str.replace(/hP/g, 'ரீ'); //additional 
str = str.replace(/yP/g, 'லீ');
str = str.replace(/tP/g, 'வீ');
str = str.replace(/oP/g, 'ழீ');
str = str.replace(/sP/g, 'ளீ');
str = str.replace(/wP/g, 'றீ');
str = str.replace(/dP/g, 'னீ');

str = str.replace(/fh/g, 'கா');
str = str.replace(/qh/g, 'ஙா');
str = str.replace(/rh/g, 'சா');
str = str.replace(/Qh/g, 'ஞா');
str = str.replace(/lh/g, 'டா');
str = str.replace(/zh/g, 'ணா');
str = str.replace(/jh/g, 'தா');
str = str.replace(/eh/g, 'நா');
str = str.replace(/gh/g, 'பா');
str = str.replace(/kh/g, 'மா');
str = str.replace(/ah/g, 'யா');
str = str.replace(/uh/g, 'ரா');
str = str.replace(/yh/g, 'லா');
str = str.replace(/th/g, 'வா');
str = str.replace(/oh/g, 'ழா');
str = str.replace(/sh/g, 'ளா');
str = str.replace(/wh/g, 'றா');
str = str.replace(/dh/g, 'னா');
str = str.replace(/xs/g, 'ஔ');


str = str.replace(/\[;/g, 'ஜ்');
str = str.replace(/\];/g, 'ஸ்');
str = str.replace(/`;/g, 'ஹ்');
str = str.replace(/\\;/g, 'ஷ்');
str = str.replace(/\[h/g, 'ஜா');
str = str.replace(/\]h/g, 'ஸா');
str = str.replace(/`h/g, 'ஹா');
str = str.replace(/\\h/g, 'ஷா');
str = str.replace(/\[_/g, 'ஜூ');
str = str.replace(/\]_/g, 'ஸூ');
str = str.replace(/`_/g, 'ஹூ');
str = str.replace(/\\_/g, 'ஷூ');
str = str.replace(/\[{/g, 'ஜு');
str = str.replace(/\]{/g, 'ஸு');
str = str.replace(/`{/g, 'ஹு');
str = str.replace(/\\{/g, 'ஷு');
str = str.replace(/\[p/g, 'ஜி');
str = str.replace(/\]p/g, 'ஸி');
str = str.replace(/`p/g, 'ஹி');
str = str.replace(/\\p/g, 'ஷி');
str = str.replace(/\[P/g, 'ஜீ');
str = str.replace(/\]P/g, 'ஸீ');
str = str.replace(/`P/g, 'ஹீ');
str = str.replace(/\\P/g, 'ஷீ');
str = str.replace(/n\[/g, 'ஜெ');
str = str.replace(/n\]/g, 'ஸெ');
str = str.replace(/n`/g, 'ஹெ');
str = str.replace(/n\\/g, 'ஷெ');
str = str.replace(/N\[/g, 'ஜே');
str = str.replace(/N\]/g, 'ஸே');
str = str.replace(/N`/g, 'ஹே');
str = str.replace(/N\\/g, 'ஷே');
str = str.replace(/i\[/g, 'ஜை');
str = str.replace(/i\]/g, 'ஸை');
str = str.replace(/i`/g, 'ஹை');
str = str.replace(/i\\/g, 'ஷை');
str = str.replace(/f\\/g, 'க்ஷ');

str = str.replace(/f/g, 'க');
str = str.replace(/q/g, 'ங');
str = str.replace(/r/g, 'ச');
str = str.replace(/Q/g, 'ஞ');
str = str.replace(/l/g, 'ட');
str = str.replace(/z/g, 'ண');
str = str.replace(/j/g, 'த');
str = str.replace(/e/g, 'ந');
str = str.replace(/g/g, 'ப');
str = str.replace(/k/g, 'ம');
str = str.replace(/a/g, 'ய');
str = str.replace(/u/g, 'ர');
str = str.replace(/y/g, 'ல');
str = str.replace(/t/g, 'வ');
str = str.replace(/o/g, 'ழ');
str = str.replace(/s/g, 'ள');
str = str.replace(/w/g, 'ற');
str = str.replace(/d/g, 'ன');
str = str.replace(/m/g, 'அ');
str = str.replace(/M/g, 'ஆ');
str = str.replace(/,/g, 'இ');
str = str.replace(/</g, 'ஈ');
str = str.replace(/c/g, 'உ');
str = str.replace(/C/g, 'ஊ');
str = str.replace(/v/g, 'எ');
str = str.replace(/V/g, 'ஏ');
str = str.replace(/I/g, 'ஐ');
str = str.replace(/x/g, 'ஒ');
str = str.replace(/X/g, 'ஓ');
str = str.replace(/\//g, 'ஃ');

str = str.replace(/>/g, ',');
str = str.replace(/b/g, 'டி');
str = str.replace(/B/g, 'டீ');
str = str.replace(/H/g, 'ர்');
str = str.replace(/\[/g, 'ஜ');
str = str.replace(/\]/g, 'ஸ');
str = str.replace(/`/g, 'ஹ');
str = str.replace(/\\/g, 'ஷ');
str = str.replace(/=/g, 'ஸ்ரீ');

str = str.replace(/;/g, '1');
str = str.replace(/h/g, '1');
str = str.replace(/p/g, '1');
str = str.replace(/P/g, '1'); 
str = str.replace(/{/g, '1');
str = str.replace(/_/g, '1'); 


str = str.replace(/\$/g, 'கூ');
str = str.replace(/#/g, 'சூ');
str = str.replace(/\^/g, 'டூ');
str = str.replace(/%/g, 'மூ');
str = str.replace(/&/g, 'ரூ');
str = str.replace(/\*/g, 'ழூ');
str = str.replace(/@/g, 'ளூ');


return str;

}

