To make a textbox enabled with unicode conversion is very simple.
1) Include the following code in the <HEAD> section of the webpage:
<SCRIPT language=JavaScript src="http://www.higopi.com/ucedit/script/common.js"></SCRIPT>
2) In the <TEXTAREA> you want to enable unicode conversion, include the following:
<SCRIPT language=JavaScript src="http://www.higopi.com/ucedit/script/.js"></SCRIPT>
<form name="post" method="post">
3) You can have two checkboxes for shifting between "Phonetic" and " Typewriter" layouts as follows:
<textarea name="comment" charset="utf-8" onKeyDown="toggleKBMode(event)" onKeyPress="javascript:convertThis(event)"></textarea>
</form>
<input type=radio name=keybrd value=roman onclick="toggleKBMode(event,this)" checked>
Phonetic <br>
<input type=radio name=keybrd value=typewriter onclick="toggleKBMode(event,this)">
Typewritter<br>
NOTE: This tool is licensed under GNU GPL now. Please make sure you keep the author information in the source code intact and don't violate the terms and conditions of the GNU GPL when you copy and/or redistribute this tool.
When you re-use the converter in your website
please give a link back to this website under the converter in your website and/or send an email to Gopi at
.
Sending a mail to Gopi is optional but it will help to inform you when there are any updates/bug fixes in this converter code.