भारत की संस्कृति के लिए... भाषा की उन्नति के लिए... साहित्य के प्रसार के लिए
Changes
Kavita Kosh से
<html>
<script>
/*
* How to setup a textarea that allows Transliteration from English to Hindi.
*/
google.load("elements", "1", {packages: "transliteration"});
function OnLoad() {
var content = document.getElementById('content');
// Create the HTML for our text area
content.innerHTML = '<div>Type a word and hit space to get it in Hindi. ' +
'Click on a word to see more options.</div>' +
'<textarea cols="100" rows="5" id="transliterateTextarea"></textarea>' +
'<div>Type in (do not copy/paste): ' +
'<b>namaste main yahan apke madad karane ke liye hun</b></div>';
var options = {
sourceLanguage:
transliterationEnabled: true
};
// Create an instance on TransliterationControl with the required
// options.
var control = new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the textbox with id
// 'transliterateTextarea'.
control.makeTransliteratable(['transliterateTextarea']);
}
google.setOnLoadCallback(OnLoad);
</script>