ASP.NET - convert numeric words to tamil - Asked By karthick R on 12-Mar-12 09:26 AM

i want convert numeric words to tamil


if i give the text "two" i want to get இரண்டு
how can i do please help me
dipa ahuja replied to karthick R on 12-Mar-12 09:31 AM
Untitled document
Using goole translator your can provide option to choose language:

function googleTranslateElementInit() {
   new google.translate.TranslateElement({
     pageLanguage: 'en'
   }, 'google_translate_element');
<script src="//"></script>
Hello World!

Robbe Morris replied to karthick R on 12-Mar-12 09:22 PM
The two previous posts both are useful in your endeavor.  I could give some other suggestions but have a question or two.  Are you expecting to convert "every single" word version of a number (giving you millions of potential phrases to convert) or just commonly spelled out numbers like one, two, three, etc.?

Is your text always English?
Reena Jain replied to karthick R on 13-Mar-12 01:48 AM

in your web.config put

<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8"

culture="ta-IN" uiCulture="de-DE" />

hope this will help you
[)ia6l0 iii replied to karthick R on 13-Mar-12 12:09 PM
The google translate idea offered above - would work only "after" you convert the number to a word

I hope 2 would translate to the word "two" and then in the Tamil language as "இரண்டு". I had to verify that the word you pasted is indeed the word representation of the number. I took the help of the following link to verify it.

So coming back to the first problem of converting the number to its word equivalent, I searched pastebin, and I was greeted with a result that seems to convert numbers to their word representations. Below is the link.

So first, you need to convert "2" to "two" using the snippet above. 

After this, you can use google translate to translate the word "two" to its Tamil equivalent. 

Hope this helps.

Somesh Yadav replied to karthick R on 14-Mar-12 07:33 AM

If you've written Tamil characters then as long as you set your database field to store Unicode or UTF-8 data, e.g. used the nvarchar data type if you're using SQL Server, then you character data will have saved correctly. If you aren't, then it might not depending on your database's default code page. However either way it is up to the application that reads back the data to pick a font that can render the characters correctly.

I don't know if you've written a UI or a web application. If it's a web application then again as long as you serve the page as UTF-8 then the characters should survive correctly and as long as the reader has a default font that supports the Tamil characters then it should render correctly - or you could add a Bamini font style to the text to try and help. If it's a UI application then you'll need to set your application's default font or the specific font for the text labels or fields to Bamini.

Hope this will help you