<html> <head> <script> function insertAtCursor(myValue) { myField=document.forms[0].myText; if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = myValue; } else if (myField.selectionStart||myField.selectionStart=='0'){ var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0,startPos)+myValue+myField.value.substring(endPos, myField.value.length); } else { myField.value += myValue; } } function replaceBeforeCursor(myValue) { myField=document.forms[0].myText; if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.moveStart('character',-1); sel.text = myValue; } else if (myField.selectionStart||myField.selectionStart=='0'){ var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0,startPos-1)+myValue+myField.value.substring(endPos, myField.value.length); } else { myField.value += myValue; } } var isCtlKeyPressed = false; var lastKeyPressed=0; var repeatCount=0; function hotkey(eventname) { if(eventname.keyCode == 17){ isCtlKeyPressed = true; } if(eventname.keyCode == 85 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 78 && isCtlKeyPressed) { insertAtCursor('K'); event.returnValue = false; } if(eventname.keyCode == 82 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 83 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 84 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 68 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 90 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 222 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 188 && isCtlKeyPressed) { insertAtCursor(''); event.returnValue = false; } if(eventname.keyCode == 69 && isCtlKeyPressed) { if (lastKeyPressed==69) { if ( repeatCount ==5) repeatCount=1; else repeatCount+=1; } else repeatCount=0; switch(repeatCount) { case 1: replaceBeforeCursor('\');break; case 2: replaceBeforeCursor('Z');break; case 3: replaceBeforeCursor(']');break; case 4: replaceBeforeCursor('[');break; case 5: replaceBeforeCursor('Y');break; case 0: insertAtCursor('Y'); } event.returnValue = false; } if(eventname.keyCode == 73 && isCtlKeyPressed) { insertAtCursor('j'); event.returnValue = false; } if(eventname.keyCode == 79 && isCtlKeyPressed) { if (lastKeyPressed==79) { if ( repeatCount ==2) repeatCount=1; else repeatCount+=1; } else repeatCount=0; switch(repeatCount) { case 1: replaceBeforeCursor('T');break; case 2: replaceBeforeCursor('R');break; case 0: insertAtCursor('R'); } event.returnValue = false; } if(eventname.keyCode == 65 && isCtlKeyPressed) { if (lastKeyPressed==65) { if ( repeatCount ==3) repeatCount=1; else repeatCount+=1; } else repeatCount=0; switch(repeatCount) { case 1: replaceBeforeCursor('Q');break; case 2: replaceBeforeCursor('');break; case 3: replaceBeforeCursor('');break; case 0: insertAtCursor(''); } event.returnValue = false; } lastKeyPressed=eventname.keyCode; return false; } function releaseCtl(eventname) { if(eventname.keyCode == 17){ isCtlKeyPressed =false; } } </script> </head> <body onkeyup=releaseCtl(event) onkeydown='hotkey(event)' style="font-family: 'Lucida Sans Unicode';"> <center> <h2>Type IPA English subset easily</h2> <h1>FREE TO USE BOTH ONLINE AND OFFLINE</h1> <a href='http://www.gnu.org/licenses/gpl.txt'>(c) GNU GPL</a> <h3> you can contact me by sending a mail to <a href='mailto:info@akula.50webs.com'>info@akula.50webs.com</a></h3></center> <form> <table border=1> <tr><td> <textarea name="myText" rows="10" cols="50" style="font-family: 'Lucida Sans Unicode';"></textarea></td><td> <button name='u' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> &nbsp; <button name='n' onclick="insertAtCursor('K');" style="font-family: 'Lucida Sans Unicode';width:50;" >K</button> &nbsp; <button name='r' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> <font size=0>Ctrl+U</font>&nbsp;<font size=0>Ctrl+N</font>&nbsp;<font size=0>Ctrl+R</font><br> <button name='s' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> &nbsp; <button name='t' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> &nbsp; <button name='d' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> <font size=0>Ctrl+S</font>&nbsp;<font size=0>Ctrl+T</font>&nbsp;<font size=0>Ctrl+D</font><br> <button name='z' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> &nbsp; <button name='\'' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> &nbsp; <button name=',' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;" ></button> <font size=0>Ctrl+z</font>&nbsp;<font size=0>Ctrl+'</font>&nbsp;<font size=0>Ctrl+,</font><br> <button name='e' onclick="insertAtCursor('Y');" style="font-family: 'Lucida Sans Unicode';width:50;" >Y</button> &nbsp; <button name='ee'' onclick="insertAtCursor('\');" style="font-family: 'Lucida Sans Unicode';width:50;" >\</button> &nbsp; <button name='eee' onclick="insertAtCursor('Z');" style="font-family: 'Lucida Sans Unicode';width:50;" >Z</button> &nbsp; <button name='eeee'' onclick="insertAtCursor(']');" style="font-family: 'Lucida Sans Unicode';width:50;" >]</button> &nbsp; <button name='eeeee' onclick="insertAtCursor('[');" style="font-family: 'Lucida Sans Unicode';width:50;" >[</button> <font size=0>Ctrl+E</font>&nbsp;<font size=0>Ctrl+EE</font>&nbsp;<font size=0>Ctrl+EEE</font> <font size=0>Ctrl+EEEE</font>&nbsp;<font size=0>Ctrl+EEEEE</font><br> <button name='i' onclick="insertAtCursor('j');" style="font-family: 'Lucida Sans Unicode';width:50;" >j</button> &nbsp; <button name='o'' onclick="insertAtCursor('R');" style="font-family: 'Lucida Sans Unicode';width:50;" >R</button> &nbsp; <button name='oo' onclick="insertAtCursor('T');" style="font-family: 'Lucida Sans Unicode';width:50;" >T</button> <font size=0>Ctrl+I</font>&nbsp;<font size=0>Ctrl+O</font>&nbsp;<font size=0>Ctrl+OO</font><br> <button name='aa' onclick="insertAtCursor('Q');" style="font-family: 'Lucida Sans Unicode';width:50;">Q</button> &nbsp; <button name='aaa' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;"></button> &nbsp; <button name='a' onclick="insertAtCursor('');" style="font-family: 'Lucida Sans Unicode';width:50;"></button> <font size=0>Ctrl+A</font>&nbsp;<font size=0>Ctrl+AA</font>&nbsp;<font size=0>Ctrl+AAA</font> </form></td></tr></table><br> <center><b> save this page in your machine and use it offline :)<br> <u>USAGE</u></b><br> Click the buttons or enter the hot-key (eg: Control + 'E fivetimes' for [) to insert characters in the textbox. <br></center> <h3><font color=red>Requirements : <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Browser&nbsp;: ie 6 or later<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Font&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: Lucida Sans Unicode</font></h3> <center><img src="http://www.easycounter.com/counter.php?prasad_ab" border="0" alt="page counter"></center> </body> </html>