Download
PramukhLib v1.0 - Convert normal textarea, textbox, edita into Indic IME
What is Pramukh javascript library?
Pramukh javascript library is an Indian language transliteration typing tool written in javascript. It is based on "The way you speak, the way you type" rule. Currently it supports eight Indian scripts: Bengali, Gujarati, Gurumukhi (Punjabi), Hindi, Kannada, Malayalam, Tamil and Telugu.
How does Pramukh javascript library work?
Pramukh javascript library is an open source library. This library enables textarea, textbox and other editable HTML tags to type in Indian languages using roman keyboard. This library attaches keyboard and mouse events of the HTML tag, processes the keystroke depending on user input and according to the selected language, it outputs Indian language unicode characters.
What are the browsers Pramukh library supports?
Currently it supports Mozilla Firefox, Internet Explorer 5.0 above and Opera 10. I have not tested other browsers but hopefully other latest browsers should work without any problem.
I want my website users to write in Indian languages. How can I implement it?
It requires only 2 lines of code to enable any editable HTML tag (now onwards editor instance)to be able to handle Indian language. Once you download the latest Pramukh javascript library pack, unzip and place javascript file into the same directory as your HTML file. Now in HTML file, write down following code.
1. <script language="JavaScript" type="text/javascript" src="pramukhlib.js"></script>
2. <script language="JavaScript" type="text/javascript">
var objHandler = new PramukhPhoneticHandler(HTML_ELEMENT_ID, LANGUAGE)
</script>
HTML_ELEMENT_ID must the an ID of editor instance like id of textarea, id of textbox
LANGUAGE is one of the supported language like bengali, hindi, gujarati, gurumukhi, kannada, malayalam, tamil or telugu along with english.
User can switch between selected Indian language and English by pressing F12 key. This library has facility of callback function when the user switches the language. This way you can get language change notification.
objHandler.onLanguageChange(indicChange);
indicChange(changedLanguage) is a callback function with argument passed as new language.
What if I want my Website users to write in multiple languages in a same editor instance.
You have to follow the same process if you want to enable one language or multiple languages. Once you write the above mentioned two steps, you are enabling one language. Now if your users want to select another language, in the user language selection event (for example, dropdown list change event), you can write the following code to change it to new language.
objHandler.setLanguage(NEW_LANGUAGE);
Now user can type in new language.
How can I type in English and in Indian language within a same editor instance?
There are two ways to enable English and Indian language for editor instance. either you can set language as
objHandler.setLanguage("english");
or you can press F12 key to toggle between English and selected Indian language.
Do you have any plugin for various applications?
Please visit Indic IME plugins using PramukhLib javascript library.