Class PramukhPhoneticHandler

Object
   |
   +--PramukhPhoneticHandler

class PramukhPhoneticHandler


PramukhPhoneticHandler is the highly customizable javascript class required for converting any HTML element like textbox, textarea, iframe into Indic IME. It currently supports 9 Indian scripts named Bengali(Assamese, Bengali, Manipuri), Devanagari(Hindi, Marathi, Sanskrit), Gujarati, Gurmukhi(Punjabi), Kannada, Malaylam, Oriya, Tamil and Telugu. Using 3 lines of code you can enable any Webpage to have Indic IME enabled on it.

<html>
<head>
<script type="text/javascript" src="js/pramukhlib.js"></script>
</head>
<body>
<input type="text" id="first_name">
<script language="javascript">
var pph = new PramukhPhoneticHandler();
pph.convertPageToIndicIME('devanagari');

</script>
</body>
</html>
Features
Version: 2.5.1

Author: Vishal Monpara


Constructor Summary
PramukhPhoneticHandler()
           
 
Method Summary
 void convertPageToDefault()
           Turns off the global mode and converts all textbox/textarea elements on Web page back to normal and removes Indic IME functionlity.
 void convertPageToIndicIME(<String> ScriptName, <Function> Callback, <String> ExceptionList, <Boolean> DefaultEvent)
           Turns on the global mode to converts all textbox/textarea elements on a Web page into Indic IME.
 void convertToDefault(<String> ElementName)
           Converts single element on Web page back to normal and removes Indic IME functionlity.
 void convertToIndicIME(<String> ElementName, <Object> ElementObject, <String> ScriptName, <Boolean> DefaultEvent)
           Convert a specified element into Indic IME.
 Object getEventObject(<String> ElementName, <Event> DefaultEventObject)
           Depending on the browser and type of HTML element, this method returns the Event Object.
 Object getScript(<String> ElementName)
           Gets the currently set script name for an element.
 Object keydownHandler(<String> ElementName, <Event> Evt)
           Manually assign the keyown event of HTML element.
 Object keypressHandler(<String> ElementName, <Event> Evt)
           Manually assign the keypress event of HTML element.
 void onScriptChange(<String> ElementName, <Function> cbName)
           Specifies the callback method to call when script is toggled to and from English internally due to toggle key press.
 void setGlobalScript(<String> ScriptName)
           Sets specified script to all Indic IME elements.
 void setScript(<String> ElementName, <String> ScriptName)
           Sets new script for the specified element.
 void setToggleKey(<int> Key)
           Sets the shortcut key to switch between Indic script and English.

Constructor Detail

PramukhPhoneticHandler

PramukhPhoneticHandler()

Method Detail

convertPageToDefault

void convertPageToDefault()

convertPageToIndicIME

void convertPageToIndicIME(<String> ScriptName, <Function> Callback, <String> ExceptionList, <Boolean> DefaultEvent)

convertToDefault

void convertToDefault(<String> ElementName)

convertToIndicIME

void convertToIndicIME(<String> ElementName, <Object> ElementObject, <String> ScriptName, <Boolean> DefaultEvent)

getEventObject

Object getEventObject(<String> ElementName, <Event> DefaultEventObject)

getScript

Object getScript(<String> ElementName)

keydownHandler

Object keydownHandler(<String> ElementName, <Event> Evt)

keypressHandler

Object keypressHandler(<String> ElementName, <Event> Evt)

onScriptChange

void onScriptChange(<String> ElementName, <Function> cbName)

setGlobalScript

void setGlobalScript(<String> ScriptName)

setScript

void setScript(<String> ElementName, <String> ScriptName)

setToggleKey

void setToggleKey(<int> Key)


Documentation generated by JSDoc