<html> <head><b>- > 8 M  0 <==> / B ( ?  K ! * 0 ? 5 0 M $ ? $ M 0 </b> (19-03-2014) </title> <script type="text/javascript"> // updated on 19-03-2014 // basic material from from Chanakya to Unicode to Chanakya Converter 08.html function convert_to_unicode() { var array_one = new Array( // Three 'spacers' "" , "" , "U" , "" , "" , "" , "" , "P " , // correct anusvAr+ekAr, ekAr+nuqta to the reverse order "" , "" , "" , "" , "" , "" , "" , "X " , "" , "Y " , "" , "Z " , "" , "[ " , "" , "\ " , "" , "] " , "" , "^ " , "" , "^ M " , "" , "_ " , "" , "1 " , "" , ") " , "A" , "M ( " , // not M 0 "B" , " M  " , "C" , "7 M  " , "D" , "7 M " , "E" , "6 M 5 " , "F" , "8 M ( " , "G" , "$ M 0 " , "H" , "e " , "" , "d " , "I" , "" M " " , "J" , " M 5 " , "K" , "M / " , "L" , "0 A " , "M" , "0 B " , "N" , "9 C " , "O" , "9 M 0 " , "P" , " M  " , "Q" , " M $ " , "R" , " M 0 " , "T" , " M  " , "V" , " M  " , "W" , " M  " , "X" , " M  " , "Y" , " M  " , "`" , " M 5 " , "a" , "! M ! " , "b" , "! M " " , "d" , "8 M 0 " , "e" , "& M  " , "f" , "& M  " , "g" , "& M & " , "h" , "& M ' " , "i" , "& M , " , "j" , "& M - " , "k" , "& M . " , "l" , "& M / " , "m" , "& M 5 " , "n" , " M " , "p" , "6 M  " , "q" , "9 M ( " , "r" , "9 M . M " , "s" , "9 M / " , "t" , "9 M 2 " , "u" , "9 M 5 " , //"x" , " M  " , "" , "9 M # " , "\}" , "$ M $ " , "\}" , "$ M $ M " , // "|" , "8 M $ M 0 " , // in chanakya "" , "8 M $ M 0 " , // 1/2 "#" , "* M $ " , "%" , "$ M ( " , "@" , " M  " , "_" , " M " , " " , "2 M 2 " , "" , "7 M  M 5 " , "" , " M  M 7 " , "" , " M ( " , "" , "& M , M 0 " , "" , " M 0 " , "q" , "9 M ( " , "" , " < M " , //"u" , "9 M 5 " , //"g" , "& M & " , "x" , "6 M 0 " , "x" , "6 M 0 M " , "^" , " M  " , //"h" , "& M ' " , "" , "M 0 " , "" , "M 0 " , //under the charecter "" , " " , "" , " " , "" , " " , "" , " " , "" , " " , "" , " " , "" , " " , "Z" , "  " , "" , " " , "" , " " , "" , " " , "" , " " , "" , " " , "" , "` " , "" , " " , "" , " " , "" , " " , "v" , " M " , "" , " " , //"w" , " M " , "" , " M " , "" , " " , " " , " M " , "" , " " , "" , " " , "" , " M " , "" , " " , " " , " M  M " , " " , " M " , "" , " " , "" , " " , " " , " M  M " , "& " , " M " , " " , " M " , "" , " " , "" , " " , "" , " M " , " " , " " , " " , " M " , "" , " " , "" , " " , "" , "! " , "" , "" " , "! " , "# " , "! " , "# M " , "" , "$ M " , "" , "$ " , "0 " , "% M " , "" , "% " , "" , "& " , "" , "& " , "`" , "' M " , "" , "' " , "" , "( M ( " , "" , "( M ( M " , "9 " , "( " , "" , "( " , "9 " , "( M " , "R" , "* M " , "" , "* " , "" , "+ M " , "" , "+ " , "y" , ", M " , "" , ", " , "" , "- M " , "z" , "- M " , "" , "- " , "\{" , ". M " , "" , ". " , "" , "/ M " , "" , "/ " , "" , "0 " , "" , "2 M " , "" , "2 " , "" , "2 " , "" , "3 " , "" , "5 M " , "" , "5 " , "" , "6 " , "" , "6 " , "o" , "6 " , "" , "6 M " , "" , "6 M " , "c" , "7 M " , "" , "7 " , "S" , "8 M " , "" , "8 " , "" , "9 " , "" , "9 M " , "" , " M 7 " , "" , " M 7 M " , "" , "$ M 0 " , "" , "$ M 0 M " , ""!" , " M  " , ""!" , " M  M " , "" , "Z" , "" , "I " , "" , "L " , "" , "> " , "" , "@ " , "" , "A " , "" , "B " , "" , "A " , "" , "B " , "" , "C " , "" , "D " , "" , "b " , "" , "G " , "" , "H " , "" , "K " , "" , "L " , "" , " " , "" , " " , "" , " " , "" , " " , "" , "E " , "" , "= " , "" , "M " , "" , "G " , "Z" , " " , // reph with anuswar "0" , "f " , "1" , "g " , "2" , "h " , "3" , "i " , "4" , "j " , "5" , "k " , "6" , "l " , "7" , "m " , "8" , "n " , "9" , "o " , // these are different than Chanakya "" , "0" , "v" , "1" , "w" , "2" , "x" , "3" , "y" , "4" , "z" , "5" , "{" , "6" , "|" , "7" , "}" , "8" , "~" , "9" , // "M K " , "G " , "M L " , "H " , "M > G " , "G " , "M > > " , "> " , "> G " , "K " , "> G " , "K " , "> H " , "L " , "M > " , "" , " A " , "A  " , " G " , " " , // " " + "G " , "K G " , "K " , "> G " , "K " , "   " , "  " ) 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 // 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 " ) ; // 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>Bhaskar</b> font text-box<br/> <textarea name="Bhaskar_text" id="legacy_text" cols="90" rows="8" style="font-family:'Bhaskar'; 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>