Date & Time |
Date and Time - JavaScript required.
|
|
Welcome to Hi Gopi!
Announcement
Please bear the following rules to make this forum an information rich good online technical resource.
Technical discussions/informative posts only
No Marketing/Donation/Promotion posts
No personal attacks/verbal abuse
NOTE: New users registrations are closed. Please send me an email if you wish to register in this forum.
#1 28-Aug-2009,Fri 11:46:32
Need help in Transliteration
Hi,
Currently I am working on a project where I need to convert the text typed in Hindi to English. Honestly, I am not having exposure with transliteration techniques & after searching I found that Hindi to English transliteration can be done using IAST scheme. Is it possible for you to give me some ideas on doing this task?
I am developing the application using c# & it is a windows application.
Regards,
karthik
#2 28-Aug-2009,Fri 11:58:10
- higopi
- Expert Member

Re: Need help in Transliteration
Hi Karthizen,
Its pretty simple to transliterate Hindi to English. For each combination of Hindi letter, you need to create a Hashmap with respective combination of English letters. And then you need to create a function which will read the complete Hindi text and refer to the hashmap and then transliterate one letter at a time.
Can you please elaborate which encoding you are using for the Hindi text?
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#3 28-Aug-2009,Fri 12:13:14
Re: Need help in Transliteration
Hi Gopi,
Really happy to get your reply. Well, I am not using any encoding right now, for the past few hours I am searching the net for any useful information.
Please help me out if you can.
#4 28-Aug-2009,Fri 12:30:33
- higopi
- Expert Member

Re: Need help in Transliteration
Hi Karthizen,
Can you please post me some Hindi text that you want to convert to English. This will make me understand which encoding you will be using for Hindi
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#5 28-Aug-2009,Fri 12:39:35
Re: Need help in Transliteration
Hi Gopi,
I guess it is time for me to read about various encoding techniques, Will do that.
Well, My boss just asked me to find out a way to translate text from Hindi to English. That was the requirement given to me. Just one line.
Please find below the sample text in Hindi,
सभी मनुष्यों को गौरव और अधिकारों के मामले में जन्मजात स्वतन्त्रता प्राप्त है। उन्हें बुद्धि और अन्तरात्मा की देन प्राप्त है और परस्पर उन्हें भाईचारे के भाव से बर्ताव करना चाहिये।
Regards,
Karthikeyan
#6 28-Aug-2009,Fri 14:49:03
- higopi
- Expert Member

Re: Need help in Transliteration
Hi Karthizen,
The posted text is in Unicode (UTF-8) encoding. The text can be converted using Umar online converter at https://higopi.com/ucedit/Multi.html as follows.
sabhI manuSyO\-m kO gaurava aura adhikArO\-m kE mAmalE mE\-m janmajAta svatantratA prApta hai। unhE\-m buddhi aura antarAtmA kI dEna prApta hai aura paraspara unhE\-m bhAIcArE kE bhAva sE bartAva karanA cAhiyE।
As I explained in my previous reply, you need to create a hash map to hold English letters as keys and equivalent Hindi letters as values in that hash map.
After creating the above hash map, you need to wrote a function to read the Hindi text typed and then substitute with the value from the above hash map.
For example in JavaScript, please look in to the following files:
https://higopi.com/script/ucedit/english.js
https://higopi.com/script/ucedit/hindi.js
https://higopi.com/script/ucedit/common.js
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#7 28-Aug-2009,Fri 17:27:24
Re: Need help in Transliteration
Hi Gopi,
Thanks for your reply. I will follow the steps mentioned by you after this weekend. Will update you the progress. Thanks again.
Have a nice weekend !!
Regards,
Karthikeyan
#8 02-Sep-2009,Wed 08:58:44
Re: Need help in Transliteration
Hi Gopi,
I am still working on the task of transliterating hindi to english. I am matching every hindi character to a English character like i have mentioned below,
('अ', "A");
('आ', "Aa");
('इ', "I");
('ई', "Ee");
I have used the site http://www.xs4all.nl/~wjsn/hindi.htm as reference, however i feel this is not up to the mark. Where can I find the Hindi - English transliteration character(mapping) set or we need to create it on our own?
Regards,
karthik
#9 02-Sep-2009,Wed 09:32:06
- higopi
- Expert Member

Re: Need help in Transliteration
Hi Karthizen,
Yes you need to create a new Hindi - English transliteration map. But you do not need to create it for each and every literal. You can create it just for Vowels, Consonants and Vowel suffixes
Last edited by higopi (02-Sep-2009,Wed 09:44:22)
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#10 07-Sep-2009,Mon 08:06:57
Re: Need help in Transliteration
Hi Gopi,
As you suggested, I did create a transliteration map like the following with the help of http://www.xs4all.nl/~wjsn/hindi.htm,
_transDic.Add('अ', "A");
_transDic.Add('आ', "Aa");
_transDic.Add('इ', "I");
_transDic.Add('ई', "Ee");
_transDic.Add('उ', "U");
_transDic.Add('ऊ', "Oo");
_transDic.Add('ऋ', "Ri");
_transDic.Add('ऌ', "LI");
_transDic.Add('ऍ', "EI");
_transDic.Add('ऎ', "Ell");
_transDic.Add('ए', "E");
_transDic.Add('ऐ', "Ey");
_transDic.Add('ऑ', "OI");
_transDic.Add('ऒ', "OII");
_transDic.Add('ओ', "O");
_transDic.Add('औ', "Ou");
_transDic.Add('क', "K");
_transDic.Add('ख', "Kh");
_transDic.Add('ग', "G");
_transDic.Add('घ', "Gh");
_transDic.Add('ङ', "N'");
_transDic.Add('च', "Ch");
_transDic.Add('छ', "Chh");
_transDic.Add('ज', "J");
_transDic.Add('झ', "Jh");
_transDic.Add('ञ', "N'");
_transDic.Add('ट', "T");
_transDic.Add('ठ', "Th");
_transDic.Add('ड', "D");
_transDic.Add('ढ', "Dh");
_transDic.Add('ण', "N'");
_transDic.Add('त', "T'");
_transDic.Add('थ', "T'h");
_transDic.Add('द', "Th");
_transDic.Add('ध', "Thh");
_transDic.Add('न', "N");
_transDic.Add('ऩ', "NI");
_transDic.Add('प', "P");
_transDic.Add('फ', "F");
_transDic.Add('ब', "B");
_transDic.Add('भ', "Bh");
_transDic.Add('म', "M");
_transDic.Add('य', "Y");
_transDic.Add('र', "R");
_transDic.Add('ऱ', "RI");
_transDic.Add('ल', "L");
_transDic.Add('ळ', "LI");
_transDic.Add('ऴ', "LII");
_transDic.Add('व', "V");
_transDic.Add('श', "Sh");
_transDic.Add('ष', "Shh");
_transDic.Add('स', "S");
_transDic.Add('ह', "H");
_transDic.Add('ॐ', "Oms");
_transDic.Add('ख़', "Khl");
_transDic.Add('ग़', "Ghl");
_transDic.Add('ज़', "Z");
_transDic.Add('ड़', "ugDh");
_transDic.Add('ढ़', "ugDhh");
_transDic.Add('फ़', "FI");
_transDic.Add('य़', "YI");
_transDic.Add('ॠ', "Ri");
_transDic.Add('ॡ', "LII");
However, when I copy & pasted the following hindi text
बीबीसी संवाददाता के अनुसार यह दूसरा प्रस्ताव सुरक्षा परिषद के सदस्यों को पिछला प्रस्ताव पारित किए जाने के समय उनके द्वारा उठाई ज़िम्मेदारी की याद भी
it returns
BीBीSी SंVाThThाT'ा Kे ANुSाR YH ThूSRा P्RS्T'ाV SुRK्Shhा PRिShhTh Kे SThS्Yों Kो PिChhLा P्RS्T'ाV PाRिT' KिE JाNे Kे SMY UNKे Th्VाRा UThाEe J़िM्MेThाRी Kी YाTh Bhी
which it should not,
Where did I go wrong?
Please help....
Thanks,
Karthikeyan
Last edited by karthizen (07-Sep-2009,Mon 08:08:19)
#11 07-Sep-2009,Mon 09:02:49
- higopi
- Expert Member

Re: Need help in Transliteration
You missed out Vowel suffixes like below:
Add like this for every vowel suffix. Also, you need to find a way to differentiate and handle the true Consonant like 'क' = K and Consonant+'a' Vowel combination like 'क' = 'Ka'. Because the literal is same for both.
You can use http://rishida.net/tools/conversion/ for splitting out the vowel suffixes from Consonant+Vowel suffix combination
Last edited by higopi (07-Sep-2009,Mon 09:04:42)
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#12 07-Sep-2009,Mon 09:25:32
Re: Need help in Transliteration
Hi Gopi,
Thanks a lot for your reply. Let me start my search to find out the vowel suffices. 
#13 24-Sep-2009,Thu 11:36:55
Re: Need help in Transliteration
hi gopi this is shashidhar here, i have an requirement to convert the text entered in English to kannada, when i go throug your forum just i understood that the procedures to follow to convert but,but how can i do for it kannada, when to call that script function,
please give me a instructions please.
#14 24-Sep-2009,Thu 15:46:04
- higopi
- Expert Member

Re: Need help in Transliteration
Hi Shashidhar,
In case if you are implementing it in a web page, it can be readily available for Kannada by following the instructions at https://higopi.com/ucedit/Reuse.html?kannada
If you are creating it for a standalone application like Karthizen explained in this thread,The process and logic is pretty much same. Only the map is different for Kannada, Please refer http://www.unicodemap.org/range/22/Kannada/ for complete code point list for Kannada.
Let me know if you have any further clarifications.
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#15 27-Dec-2009,Sun 17:49:06
Re: Need help in Transliteration
hi gopi,
i want to design a tts system for hindi language. as a first step i want to transliterate hindi text(unicode) to roman script using transliteration map so that i can feed that converted doc to festival engine for speech synthesis.
i have searched a lot on internet but i could not found any tool, method for implementing transliteration. Plz suggest me a proper tool or language through which i can be able to convert my hindi text doc.
thanks
#16 13-Apr-2011,Wed 08:46:19
Re: Need help in Transliteration
is there any software that is much better to convert any language to another ?
#17 13-Apr-2011,Wed 11:11:43
- higopi
- Expert Member

Re: Need help in Transliteration
Hi rosejhon,
Definitely there are better free software available for converting between one language to another.
If you are looking for converting from Tamil to English, you can use the "Reverse Transliteration" feature of "Azhagi" software developed by my friend Vishy. For more details you can see http://azhagi.com/help/azpowerreversetr … ation.html
If you are looking for converting between various Indic languages, you can try the NHM IndicTransliterator Firefox addon from "New Horizon Media". More details at http://software.nhm.in/products/t12r
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
#18 20-Apr-2011,Wed 06:49:45
Re: Need help in Transliteration
Thanks gopi i also learned a lot but if i want to translate a documents into multi national languages then what type of software you can suggest me ?
#19 20-Apr-2011,Wed 10:58:56
- higopi
- Expert Member

Re: Need help in Transliteration
Jhonsons,
For translation, google is a good tool. try translate.google.com
Thanks,
Gopi
Pick any two of "Quality, Quick, Cheap" service from me.
Re: Need help in Transliteration
I also acted upon your suggestion and i found it better and downloaded Google toolbar and used translator.Thanks.
|
|