My favorites | English | Sign in

Google AJAX Language API

AJAX Language API - Frequently Asked Questions

Developer Questions

Fonts are not being rendered correctly on my system. How do I fix this?
 

How do I use the transliteration feature?
 


Developer Questions

Fonts are not being rendered correctly on my system. How do I fix this?

Unicode is a system of representing text and symbols and is supported by most modern browsers and operating systems. There are two images displayed in the table below for each of the supported languages that should ideally match on your system. If they do not match, that means that font rendering support is not complete on your system, and you need to either enable complex script layout support or install Unicode fonts.

Languages Images to be matched
Bengali কি  -
Gujarati કિ  -
Hindi, Marathi, Nepali कि  -
Kannada ಕ್ಯ  -
Malayalam ന്കെ  -
Punjabi ਅਃ  -
Tamil கே  -
Telugu క్య  -
Urdu اٖ  -

The following instructions are for the following Indic languages for which this API is currently supported - Bengali (bn), Gujarati (gu), Hindi (hi), Kannada (kn), Malayalam (ml), Marathi (mr), Nepali (ne), Punjabi (pa), Tamil (ta), Telugu (te) and Urdu (ur). If you use Internet Explorer 6+ in Windows Vista/XP/2000, you should have no problems in viewing and editing text in most of the above languages. Mozilla Firefox versions below 3.0 require support for complex text layout, otherwise they may display the Indic text incorrectly. The support for complex text layout is usually turned off by default, but this Wikipedia article gives a detailed explanation on how to turn it on in various operating systems. Malayalam characters with chillus may not be rendered correctly on some systems even with complex script rendering enabled, in which case you can refer to this Wikia article for solutions to set this right.

How do I use the transliteration feature?

The transliteration feature works as follows: When transliteration is enabled, it affects the textfield contents as the user types into it. The letters of a word will appear as you type them until you reach the end of the word. As soon as you type a space or a punctuation mark, the letters will be converted to characters of the chosen language, like this:


The transliteration will attempt to match the sounds of the letters as accurately as possible between the two alphabets. However, if you find that it is incorrect, you can fix it. When you find a word you want to change, just click on it once, using the left mouse button. As illustrated below, this displays a short menu of alternate spellings, as well as an option to switch back to the original Roman characters.



The transliteration feature can be controlled by using the visible control illustrated in multilangtransliteration.html. The button in the visible control can be used to toggle between the chosen language and English. A shortcut key can also be specified to allow easy toggling between the languages.

Transliteration requires a live internet connection, as all the transliteration is done on Google's servers and sent back to your browser while the user continues typing. You may want to define handlers for the scenario where the transliteration service becomes unreachable as shown in customtransliteration.html. You could alert the user when this scenario arises and request them to check their internet connection, since that would be the most probable cause for such an event.