Showing posts with label URDU. Show all posts
Showing posts with label URDU. Show all posts

Thursday, 11 September 2014

Regional Language in Google Transliteration API

<script src="https://www.google.com/jsapi" type="text/javascript">
</script>
<script type="text/javascript">
google.load("elements", "1", {	packages: "transliteration"	});
function onLoad() {
var options = {
sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage: [google.elements.transliteration.LanguageCode.TAMIL],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};
var control = new google.elements.transliteration.TransliterationControl(options);
control.makeTransliteratable(['transliterateTextarea']);
}
google.setOnLoadCallback(onLoad);
</script>
<div class="Google-transliterate-Way2blogging">
Type in Hindi (Press Ctrl+g to toggle between English and Tamil)<br>
<textarea id="transliterateTextarea" style="width:600px;height:200px;resize:none;">
</textarea>
<span style="font-weight:bold;font-size:10px;float:right;margin:5px;">
</span>
</div>