<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <body bgcolor="yellow"> <!--"00FF00" for green --> <title>SHREE-DEV-0714 <=> / B ( ?  K ! * 0 ? 5 0 M $ ? $ M 0 </title> <B><Font color = darkblue><CENTER> SHREE-DEV-0714 <=> / B ( ?  K ! + < K # M  * 0 ? 5 0 M $ ? $ M 0 (27-02-2010) </font></B><br> <Font color = blue>Last update: 20-02-2015</font> <script type="text/javascript"> // Developed from SHREE-DEV-0702 <==> Unicode converter V_05 function convert_to_unicode() { var array_one = new Array( "\>" , "" , "$" , "" , "\[" , "\{" , "p" , "\{" , " " , "\"" , " " , "\'" , "9 " , "" , "H" , "X " , "J" , "Z " , "O" , "[ " , "S" , "\ " , "T" , "] " , "\\" , "^ " , ""!" , "Y M " , "" , "Y " , "" , " " , "" , "H " , "" , "H  " , "u" , "@ " , "v" , "@  " , "}" , "G " , "]" , "G  " , ": " , "P " , "@" , "= " , "&" , "d " , "\"" , " " , "\'" , " " , "" , " M 7 M " , "j" , " M 7 " , "k" , " M  " , "l" , "6 M 0 " , "" , "$ M 0 " , "" , "$ M 0 M " , "" , "$ M $ M " , "" , "M 0 A " , "" , "M 0 B " , "" , "0 A " , "" , "0 B " , "#" , " M  M " , "\ " , " M  M " , "" , " M  " , " " , "2 M 2 " , " " , "9 M # " , "! " , "9 M 2 " , "" , "9 M 5 " , "0 " , "M 5 " , "\ " , " M  " , " " , " M  " , " " , " M  " , "" " , " M  " , "" , " M  M 7 " , " " , "9 M ( " , " " , "! M " " , "S" , "6 M 5 " , "" , "M ( " , "" , " M . " , "" , " M  " , "" , " M 5 " , "" , " M $ " , "" , " M 0 " , "" , " M 0 " , "" , " M ( " , "" , " M  " , "" , " M " , "" , " M " , "" , "! M ! " , "" , "! M " " , "" , "& M 0 " , "" , "& C " , "" , "& M  " , "" , "& M  " , "" , "& M & " , "" , "& M ' " , "" , "& M ( " , "" , "& M , " , "" , "& M - " , "" , "& M . " , "" , "& M / " , "" , "& M 5 " , "" , "( M ( " , "" , "* M 0 " , "" , "* M $ " , "" , "7 M  " , "" , "7 M " , "" , "8 M 0 " , "" , "8 M $ M 0 " , "" , "9 M 0 " , "" , "9 C " , "" , "9 M . " , "" , "9 M / " , "" , "6 M  " , "" , "6 M ( " , "" , "M / " , "R" , "M 0 " , "" , "M 0 " , "" , "M 0 " , "`" , " M " , "" , " M " , "" , " M " , "" , " M " , "H" , " " , "I" , " " , "J" , " " , "K" , " " , "L" , " " , "" , " M " , "" , " M " , "" , " M " , "" , " M " , "M" , " " , "N" , " " , "O" , " " , "P" , " " , "Q" , " " , "R" , " " , "S" , "! " , "T" , "" " , "" , "# M " , "U" , "# " , "" , "$ M " , "" , "% M " , "" , "' M " , "" , "( M " , "V" , "$ " , "W" , "% " , "X" , "& " , "Y" , "' " , "Z" , "( " , "" , "* M " , "" , "+ M " , "" , ", M " , "" , "- M " , "" , ". M " , "n" , "* " , "\\" , "+ " , "~" , ", " , "^" , "- " , "_" , ". " , "" , "/ M " , "" , "2 M " , "" , "5 M " , "" , "6 M " , "" , "7 M " , "" , "3 M " , "" , "6 M " , "" , "8 M " , "" , "9 M " , "`" , "/ " , "a" , "0 " , "b" , "2 " , "c" , "2 " , "d" , "5 " , "e" , "6 " , "f" , "7 " , "g" , "8 " , "h" , "9 " , "i" , "3 " , "Am" , " " , "Amo" , " " , "Am" , " " , "Am" , " " , "A" , " " , "B" , " " , "B" , " " , "C" , " " , "D" , " " , "F" , " " , "G" , "` " , "Eo" , " " , "E" , " " , "m" , "> " , "r" , "@ " , "s" , "@ " , "t" , "@  " , "w" , "A " , "x" , "A " , "y" , "B " , "z" , "B " , "" , "C " , "" , "D " , "|" , "G  " , "o" , "G " , "" , "H " , "" , "H  " , "& " , " " , "" , " " , "" , " " , "" , "< " , "" , "A " , "" , "B " , "" , "E " , "" , " " , "" , "M " , "0" , "f " , "1" , "g " , "2" , "h " , "3" , "i " , "4" , "j " , "5" , "k " , "6" , "l " , "7" , "m " , "8" , "n " , "9" , "o " , "M > " , "" , "M K " , "G " , "M L " , "H " , " K " , " " , " > " , " " , " H " , " " , " G " , " " , "> K " , "K " , "> E " , "I " , "E > " , "I " , "> G " , "K " , " A " , "A  " , "G G " , "G " , " H " , " " , " G " , " " , //" E " , " E " , "> G " , "K " , " > " , ">  " , "> H " , "L " , "H > " , "L " , " C " , "C  " , " > " , ">  " , " B " , "B  " , "G > " , "K " , " G " , "G  " , "> G  " , "K  " , "E  " , " " , " E " , " " , " B " , "B  " , "  " , " :" ) var array_one_length = array_one.length ; var modified_substring = document.getElementById("legacy_text").value ; Replace_Symbols( ) ; processed_text = modified_substring ; document.getElementById("unicode_text").value = processed_text ; // -------------------------------------------------- function Replace_Symbols( ) { //substitute array_two elements in place of corresponding array_one elements if ( modified_substring != "" ) // if stringto be converted is non-blank then no need of any processing. { for ( input_symbol_idx = 0; input_symbol_idx < array_one_length-1; input_symbol_idx = input_symbol_idx + 2 ) { idx = 0 ; // index of the symbol being searched for replacement while (idx != -1 ) //while-00 { modified_substring = modified_substring.replace( array_one[ input_symbol_idx ] , array_one[input_symbol_idx+1] ) idx = modified_substring.indexOf( array_one[input_symbol_idx] ) } // end of while-00 loop } // end of for loop modified_substring = modified_substring.replace( /([   p ]+)([> ? @ A B C G H K L ]+)/g , "$2$1" ); // Following statements for adjusting postion of i maatraas. modified_substring = modified_substring.replace( /([q\{])([           ! " # $ % & ' ( * + , - . / 0 2 3 5 6 7 8 9 X Y Z [ \ ] ^ _ 1 ) ])/g , "$2$1" ) ; modified_substring = modified_substring.replace( /([q\{])((M [           ! " # $ % & ' ( * + , - . / 0 2 3 5 6 7 8 9 X Y Z [ \ ] ^ _ 1 ) ])+)/g , "$2$1" ) ; modified_substring = modified_substring.replace( /\{/g , "? " ) ; modified_substring = modified_substring.replace( /q/g , "?  " ) ; // Following three statement for adjusting position of reph ie, half r . modified_substring = modified_substring.replace( /([           ! " # $ % & ' ( * + , - . / 0 2 3 5 6 7 8 9 X Y Z [ \ ] ^ _ 1 ) ])([> ? @ A B C G H K L   ]*)([])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /(([           ! " # $ % & ' ( * + , - . / 0 2 3 5 6 7 8 9 X Y Z [ \ ] ^ _ 1 ) ][M ])+)([])/g, "$3$1" ) ; // Z is $3 here, NOT $2. modified_substring = modified_substring.replace( //g , "0 M " ) ; modified_substring = modified_substring.replace ( /([ ]+)([= M > @ A B C G H K L    ])/g , "$2" ) ; } // end of IF statement meant to supress processing of blank string. } // end of the function Replace_Symbols } // End of Convert to Unicode () //********************************************************** function convert_to_Shreedev0702() { var array_one = new Array(" ", " G "," G "," G "," G "," G ","! G ","" G ","3 G ","9 G ","  ", "X ","Y ","Z ","[ ","\ ","] ","^ ", // one-byte varnas //07 //" ", "H ","H  ","@ ","@  ", "G ", "G  ", "P ","= ","d "," "," ", //05 " M 7 M "," M 7 "," M  ","6 M 0 ","$ M 0 ","$ M 0 M ","$ M $ ","$ M $ M ", //07 "M 0 A ","M 0 B ","0 A ","0 B ", //04 " M  M "," M  M "," M  ","2 M 2 ","9 M # ","9 M 2 ","9 M 5 ", //"M 5 ", //08 " M  "," M  "," M  "," M  "," M  M 7 ","9 M ( ","! M " ","6 M 5 ", //08 " M . ", " M  "," M 5 "," M $ "," M 0 ", " M 0 ", " M ( ", " M  "," M "," M ","! M ! ","! M " ", //13 "M ( ", "& M 0 ","& C ","& M  ","& M  ","& M & ","& M ' ","& M ( ","& M , ","& M - ","& M . ","& M / ","& M 5 ","( M ( ","* M 0 ","* M $ ","7 M  ","7 M ", //17 "8 M 0 ","8 M $ M 0 ", "9 M 0 ","9 C ","9 M . ","9 M / ", "6 M  ","6 M ( ", //08 " M 0 "," M 0 ","! M 0 ","" M 0 ", //04 "M 0 ", //02 " M "," M ", " M ", " M "," "," "," "," "," ", //09 " M "," M "," M "," M "," "," "," "," ", //08 " "," ","! ","" ","# M ","# ", //06 "$ M ","% M ", "' M ","( M ","$ ","% ","& ","' ","( ", //09 "* M ","+ M ",", M ","- M ",". M ","* ","+ ",", ","- ",". ", //10 "/ M ", "2 M ","5 M ","6 M ","7 M ", "3 M ", "6 M ", "8 M ","9 M ", //09 "/ ","0 ","2 ","2 ","5 ","6 ","7 ","8 ","9 ","3 ", //10 "M / ", " "," "," "," "," "," "," "," "," "," ","` "," "," ", //13 "L ","K ","I ","> ","@ ","A ","B ","C ","D ","G ","H "," "," "," ","M ","E ","< ", //17 "f ","g ","h ","i ","j ","k ","l ","m ","n ","o ") var array_two = new Array("-",//"$","[", "p", //03 "Ho$","Lo>","No>","Qo>","Ro>","So>","To>","io>","ho>","D$", "H$",""!","J","O","S>","T>","\\>", //07 //"", "","", "u", "v", "}", "]", //07 ": ","@","&","\"","'", //05 "","j","k","l","","","m","", //07 "","","","", //04 "#"," ",""," "," ", "! ","", // "0 ", //08 " >"," "," ","" ",""," "," ","S", //08 "", "$", "","$","", "", "","","","","","", //13 "", "","","","","","","","","","","","","","","","","", //17 "","", "","","","", "","", //08 "N >","Q >","S >","T >", //04 "", //02 "`","","", "","H$","I","J","K","L>", //09 "","","","","M","N>","O","P", //08 "Q>","R>","S>","T>","","U", //06 "", "", "","","V","W","X","Y","Z", //09 "","","","","","n","\\$","~", "^","_", //10 "", "","","","", "", "", "","", //09 "`","a","b","c","d","e","f","g","h>","i>", //10 "", "Am","Amo","Am","Am","A","B","B","C","D$","F","G","Eo","E", //13 "m","mo","m","m","r","w","y","","","o","","","","& ","","","", //17 "0","1","2","3","4","5","6","7","8","9") //************************************************************ //Put "Enter chunk size:" line before "<textarea name= ..." if required to be used. //************************************************************ //Enter chunk size: <input type="text" name="chunksize" value="6000" size="7" maxsize="7" style="text-align:right"><br/><br/> //************************************************************ // "{", // "? ", // // "", // "0 M " (reph) // //************************************************************************************** var array_one_length = array_one.length ; var modified_substring = document.getElementById("unicode_text").value ; Replace_Symbols( ) ; processed_text = modified_substring ; document.getElementById("legacy_text").value = processed_text ; //************************************************** function Replace_Symbols( ) { // if string to be converted is non-blank then no need of any processing. if (modified_substring != "" ) { // first replace the two-byte nukta_varNa with corresponding one-byte nukta varNas. // modified_substring = modified_substring.replace ( / < / , "X " ) ; // modified_substring = modified_substring.replace ( / < /g , "Y " ) ; // modified_substring = modified_substring.replace ( / < /g , "Z " ) ; // modified_substring = modified_substring.replace ( / < /g , "[ " ) ; // modified_substring = modified_substring.replace ( /! < /g , "\ " ) ; // modified_substring = modified_substring.replace ( /" < /g , "] " ) ; // modified_substring = modified_substring.replace ( /( < /g , ") " ) ; // modified_substring = modified_substring.replace ( /+ < /g , "^ " ) ; // modified_substring = modified_substring.replace ( // < /g , "_ " ) ; // modified_substring = modified_substring.replace ( /0 < /g , "1 " ) ; // code for replacing "? " (chhotee ee kii maatraa) with "{" and correcting its position too. var position_of_f = modified_substring.indexOf( "? " ) ; while ( position_of_f != -1 ) //while-02 { var character_left_to_f = modified_substring.charAt( position_of_f - 1 ) ; modified_substring = modified_substring.replace( character_left_to_f + "? " , "{" + character_left_to_f ) ; position_of_f = position_of_f - 1 ; while (( modified_substring.charAt( position_of_f - 1 ) == "M " ) & ( position_of_f != 0 ) ) { var string_to_be_replaced = modified_substring.charAt( position_of_f - 2 ) + "M " ; modified_substring = modified_substring.replace( string_to_be_replaced + "{", "{" + string_to_be_replaced ) ; position_of_f = position_of_f - 2 ; } position_of_f = modified_substring.search( /? / , position_of_f + 1 ) ; // search for f ahead of the current position. } // end of while-02 loop //************************************************************ // Eliminating "0 M " and putting Z at proper position for this. set_of_matras = "> ? @ A B C G H K L  : E " modified_substring += ' ' ; // add two spaces after the string to avoid UNDEFINED char in the following code. // modified_substring = modified_substring.replace ( /-/g , "" ) ; // modified_substring = modified_substring.replace ( /6 M 0 M /g , "E" ) ; // modified_substring = modified_substring.replace ( /$ M 0 M / /g , "~\\ya" ) ; var space = " " var position_of_half_R = modified_substring.indexOf( "0 M " ) ; // alert(" 21. position_of_half_R = " + position_of_half_R); //************************************************************************************ while ( position_of_half_R > 0 ) // while-03 { // "0 M " is two bytes long var probable_position_of_Z = position_of_half_R + 2 ; var character_at_probable_position_of_Z = modified_substring.charAt( probable_position_of_Z ) // alert(" 3. probable_position_of_Z = "+probable_position_of_Z ); // alert(" 4. character_at_probable_position_of_Z = "+character_at_probable_position_of_Z ); // trying to find non-maatra position right to probable_position_of_Z . while( set_of_matras.match( character_at_probable_position_of_Z ) != null ) // while-04 { probable_position_of_Z = probable_position_of_Z + 1 ; character_at_probable_position_of_Z = modified_substring.charAt( probable_position_of_Z ) ; // alert(" 5. probable_position_of_Z = "+probable_position_of_Z ); // alert(" 6. character_at_probable_position_of_Z = "+character_at_probable_position_of_Z ); } // end of while-04 //************************************************************ // check if the next character is a halant //************************************************************ var right_to_position_of_Z = probable_position_of_Z + 1 ; // alert(" 7. right_to_position_of_Z = "+right_to_position_of_Z ); if (right_to_position_of_Z > 0) // if-03 { var character_right_to_position_of_Z = modified_substring.charAt( right_to_position_of_Z ) // alert(" 8. character_right_to_position_of_Z = "+character_right_to_position_of_Z ); // while ("M ".match( character_right_to_position_of_Z ) != null ) // while-05 while ( character_right_to_position_of_Z == "M " ) // while-05 { // halant found, move to next character probable_position_of_Z = right_to_position_of_Z + 1 ; character_at_probable_position_of_Z = modified_substring.charAt( probable_position_of_Z ) ; // alert(" 9. probable_position_of_Z = "+probable_position_of_Z ); // alert("10. character_at_probable_position_of_Z = "+character_at_probable_position_of_Z ); right_to_position_of_Z = probable_position_of_Z + 1 ; character_right_to_position_of_Z = modified_substring.charAt( right_to_position_of_Z ) // alert("11. right_to_position_of_Z = "+right_to_position_of_Z ); // alert("12. character_right_to_position_of_Z = "+character_right_to_position_of_Z ); } // end of while-05 // alert("121. position_of_half_R = "+position_of_half_R); // alert("122. probable_position_of_Z = "+probable_position_of_Z); } // end of if-03 //************************************************************ string_to_be_replaced = modified_substring.substr ( position_of_half_R + 2,(probable_position_of_Z - position_of_half_R)-1) ; //************************************************************ // check if character_right_to_position_of_Z is a space // if (space.match(character_right_to_position_of_Z) != null) // { // string_to_be_replaced = string_to_be_replaced.substr(0,string_to_be_replaced.length - 1) // alert("13. string_to_be_replaced = "+string_to_be_replaced ); // alert("14. string_to_be_replaced.length ="+string_to_be_replaced.length); // } modified_substring = modified_substring.replace( "0 M " + string_to_be_replaced, string_to_be_replaced + "" ) ; // alert("15. string_to_be_replaced = "+string_to_be_replaced ); // alert("16. modified_substring = "+modified_substring ); position_of_half_R = modified_substring.indexOf( "0 M " ) ; // alert("17. position_of_half_R = "+position_of_half_R ) } // end of while-03 //*********************************************************** modified_substring = modified_substring.substr ( 0 , modified_substring.length - 2 ) ; //substitute array_two elements in place of corresponding array_one elements for( input_symbol_idx = 0; input_symbol_idx < array_one_length; input_symbol_idx++ ) { idx = 0 ; // index of the symbol being searched for replacement while (idx != -1 ) //whie-00 { modified_substring = modified_substring.replace( array_one[ input_symbol_idx ] , array_two[input_symbol_idx] ) idx = modified_substring.indexOf( array_one[input_symbol_idx] ) } // end of while-00 loop } // end of for loop } // end of IF statement meant to supress processing of blank string. } // end of the function Replace_Symbols( ) } // end of convert_to_ShreeDev0702 function </script> </head> <body> <form name="form1"><br/> <b>SHREE-DEV-0714</b> font text-box<br/> <HTML><BODY bgColor='yellow'><CENTER> <textarea name="TextToConvert" id="legacy_text" cols="92" rows="6"></textarea> <br> <div align="middle"> <CENTER><input type="button" name="converter" id="converter" value=" Convert to Unicode >> " onClick="convert_to_unicode();" accesskey="c" title="6 I 0 M    alt+shift+alt+c"> </div> <br> <b><CENTER>Unicode</b> text-box <br/> <textarea name="ConvertedText" id="unicode_text" cols="92" rows="6"></textarea> <br /> <div align="middle"> <input type="button" id="converter" name="converter" value=" Convert to Shreedev0702 >> " onClick="convert_to_Shreedev0702();" </div> </form> </body> </html>