<html> <head><b>AkrutiOfficePriya ==> / B ( ?  K ! * 0 ? 5 0 M $ ? $ M 0 </b> (21-03-2014) </title> <script type="text/javascript"> // For RBI Banking Shabdawalii function convert_to_unicode() { var array_one = new Array( "" , " " , "" , " M 0 " , "" , " M " , "0 " , " M " , "`" , " M " , "9 " , " M " , "" , " M " , "}" , " " , "" , " M " , "" , " M " , " " , " " , " " , " " , " " , "\ " , " " , "! " , "" , "" " , "" , "" " , "" , "# M " , "" , "$ M " , "" , "$ M $ " , "" , "% M " , ""!" , "& " , "" , "& M & " , "" , "& M ' " , "" , "& M / " , "" , "& M 0 " , "" , "& C " , "a" , "' M " , ": " , "( M " , "S" , "* M " , "" , "+ " , "" , ", M " , "~" , "- M " , "x" , ". M " , "" , "/ M " , "" , "0 " , // in 'pra' etc "" , "M 0 " , // with T, Th, d etc "" , "0 " , "" , "2 M " , "" , "5 M " , "" , "6 M " , "" , "6 M  " , "" , "7 M " , "" , "8 M " , "" , "9 " , "" , "9 M 0 " , "" , " M 7 M " , "" , "$ M 0 M " , "" , " M  M " , "" , "6 M 0 " , "" , "0 B " , " " , "  " , " " , "  " , " " , " " , " " , " " , " " , " " , " " , " " , " " , " " , "" , " " , "" , " " , " " , " " , " " , " " , "! " , "  " , "! " , " " , "! " , " " , "M " , "" , "" , "@ " , "" , "A " , "" , "B " , "" , "C " , "" , "K  " , "" , "L  " , "" , "K " , "" , "L " , "" , "G " , "" , "H " , "" , " " , "" , "H  " , "" , "G  " , "" , "M " , "" , "< " , //nukta "" , " " , // repha & anuswaar "" , "I " , "" , "> " ) var array_one_length = array_one.length ; document.getElementById("unicode_text").value = "You have chosen SIMPLE TEXT in Chanakya font to convert into Unicode. Conversion in progress.." ; var modified_substring = document.getElementById("legacy_text").value ; //****************************************************** // Break the long text into small bunches of max. max_text_size characters each. //****************************************************** var text_size = document.getElementById("legacy_text").value.length ; var processed_text = '' ; //blank var sthiti1 = 0 ; var sthiti2 = 0 ; var chale_chalo = 1 ; var max_text_size = 6000; while ( chale_chalo == 1 ) { sthiti1 = sthiti2 ; if ( sthiti2 < ( text_size - max_text_size ) ) { sthiti2 += max_text_size ; while (document.getElementById("legacy_text").value.charAt ( sthiti2 ) != ' ') {sthiti2--;} } else { sthiti2 = text_size ; chale_chalo = 0 } var modified_substring = document.getElementById("legacy_text").value.substring ( sthiti1, sthiti2 ) ; Replace_Symbols( ) ; processed_text += modified_substring ; //****************************************************** // Breaking part code over //****************************************************** 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 string to 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 ) //whie-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 // 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 " ) ; modified_substring = modified_substring.replace( /([\])([A B C G H   ]*)/g , " $2" ); modified_substring = modified_substring.replace( /([])([A B C G H   ]*)/g , "+ $2" ); // remove maatras typed wrongly modified_substring = modified_substring.replace( /([  p ])([> ? @ A B C G H K L ])/g , "$2$1" ); modified_substring = modified_substring.replace( /([> ? @ A B C G H K L   ])([> ? @ A B C G H K L ])/g , "$1" ) ; // code for replacing "" with "? " (chhotee ee kii maatraa) and correcting its position too. modified_substring = modified_substring.replace( /([\])([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$1" ) ; modified_substring = modified_substring.replace( /([\])(M )([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$3$1" ) ; modified_substring = modified_substring.replace( /([\])(M )([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$3$1" ) ; modified_substring = modified_substring.replace( /\/g , "? " ) ; modified_substring = modified_substring.replace( //g , "? " ) ; //======================================================= //Eliminating ""(reph) and putting 'half - r' at proper position for this. modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([> ? @ A B C G H K L   ]*)([])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])([])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])([])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( //g , "0 M " ) ; }//end of IF statement meant to supress processing of blank string. } // end of the function Replace_Symbols } // end of legacy_to_unicode function </script> </head> <body> <form name="form1"> <br/> <b>AkrutiOfficePriya</b> font text-box<br/> <textarea name="Bhaskar_text" id="legacy_text" cols="90" rows="8" style="font-family:'AkrutiOfficePriya'; font-size:16px;"></textarea> <br> <div align="middle"> <input type="button" id="converter1" name="converter" value=" Convert to Unicode >> " onClick="convert_to_unicode();" accesskey="c" title="6 I 0 M    alt+c"> </div> <br> <b>Unicode</b> text-box<br/> <textarea name="unicode_text" id="unicode_text" cols="84" rows="11"></textarea> <br /> <br /> <b>/ B ( ?  K ! , 5 ? 6 M 5  @  H 0 -0 K . ( - > 7 >    G 2 ? / G 5 0 & > ( 9 H d </b> </form> </body> </html>