Indic Transliterator in Flex… powered by Google Labs

I saw this post on Abdul’s blog today. Google Indic Transliterator is cool. I played around with it a bit and then it stemmed a desire to do something similar in Flex. Thanks to the pointer by Abdul, I was able to achieve this.

Abdul, in his post talks of an URL (click on the link to see an example of what I’m talking about) which you can hit with your text through GET parameters and get it transliterated. The result, if tweaked a bit (i.e. removing unwanted characters including some escape characters) would yield a JSON.

Then I used the as3corelib to convert the JSON to an AS Object. I then embedded an Indic Font into my App and used it to render the text. The result is what you see below.

I’m not posting the code as of now because its still a very dirty 🙂 And also, the API is undocumented and may break soon. But I guess this should be pretty straight forward for anyone who wants to try this out…


2 Responses to Indic Transliterator in Flex… powered by Google Labs

  1. Abdul Qabiz says:

    thats cool, i tried same thing and found an issuse in json, also submitted patch to as3corelib.

    Your app looks like complete, would be nice if you can make it like googles and then post the details of effort required? Would be good comparison?

    Via phone

  2. Nishant says:

    What’s the use .. you can’t use it in your apps because of flash player security restrictions. You can’t load data from a domain other than the one hosting the app and you’ll never be hosting your app on google 😀

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s