Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello..
I m doing one windows application. I hava 2 textbox txthindi and txtenglish. the font proerty of txthindi i set as 'Mangal'. when i write in txtHindi it shows in hindi. My task is that when i write in txtHindi it shows me the text in Hindi as well as in txtEnglish text in English. But i m not able to do how it will.
Ex: 'Rupesh" i write in txtHindi it shows me in Hindi and "Rupesh" in txtEnglish Box while writing.

Anybody Plz Help me out.Its Very Urgent and I stuck here..

Regards
Maaahi
Posted
Comments
[no name] 23-Jun-12 9:50am    
Before anyone could possibly help you, you will have to show the code you are using and how you are translating one language to another.
Jim Jos 23-Jun-12 9:54am    
Could you elaborate your problem? You are typing something in Hindi and you don't want to see it in txtEnglish.. Unless you have some connection between the two of them how it displays? What is your exact requirement?
Sergey Alexandrovich Kryukov 23-Jun-12 12:16pm    
Do you want "simply" transliterate "Rupesh" from one language to another? Or even translate? But there are no strict and certain rules of transliterations -- a good transliteration always takes into account cultural relationships which are hard to formalize. And translation is very difficult; I never saw a satisfactory solution...
--SA
Ganesan Senthilvel 24-Jun-12 1:14am    
Have you tried TextChanged event of TextBox. Ref: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.textchanged.aspx
Maahi Sawarkar 25-Jun-12 2:01am    
I have 2 textbox. First one is txtHindi having font property is MANGAL and second one is txtEnglish having font property is Times Roman. when i write in txthindi, i want it should be display in hindi text and also in its textChanged event, txtenglish shows me that hindi text in English.

1 solution

The task is called "transliteration". An online example for Hindi to English (Latin/Roman) transliteration can be found at http://mylanguages.org/hindi_romanization.php[^].
Just copy their "convertchar" function, and call it from the TextChanged event.
 
Share this answer
 
Comments
Maahi Sawarkar 26-Jun-12 4:55am    
Thanks for the response Bernhard..
Exactly i want Transliteration in my c# code. but i dont know the way from where to start.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900