<html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-16LE"> </head><body><b> C $ ? & G 5 _010 &lt;==&gt; / B ( ?  K ! + < K # M  * 0 ? 5 0 M $ ? $ M 0 </b> (09-01-2009) <br> <script type="text/javascript"> function convert_to_unicode() { var array_one = new Array( // "(",")", "","Q+Z","sas","aa",")Z","ZZ"," "," "," "," ", "", "", " ", "& ", " ", "! ", "", "0 ", "`", "9 ", "+", "d+", "[+k","[+", "x+", "T+", "t+", "M+", "<+", "Q+", ";+", "j+", "u+", "k", "", "", " ", " ","",""!","=kk","f=k", "", "", "", "", "z", "", "", "{k", "{", "=", "", "N", "V", "B", "M", "<", "|", "K", "}", "J", "V", "M", "<", "N", "", "", "nzZ", "", "", "", "xz", "#", ":", "v ","vks", "vkS", "vk", "v", "b", "", "bZ", "b", "m", "", ",s", ",", "_", "", "d", "Dk", "D", "[k", "[", "x","Xk", "X", "", "?k", "?", "", "pkS", "p", "Pk", "P", "N", "t", "Tk", "T", ">", "", "", "", "", "V", "B", "", "", "M+", "<+", "M", "<", ".k", ".", "r", "Rk", "R", "Fk", "F", ")", "n", "/k", "k", "/", "", "", "u", "Uk", "U", "i", "Ik", "I", "Q", "", "c", "Ck", "C", "Hk", "H", "e", "Ek", "E", ";", "", "j", "y", "Yk", "Y", "G", "o", "Ok", "O", "'k", "'", "\"k", "\"", "l", "Lk", "L", "g", "", "z", "", "", "", "", "", "", "", "", "", "", "","k", "", " ", "ks", "kS", "k", "h", "q", "w", "`", "s", "S", "a", "", "%", "W", "" ", "", """, "", "~j", "~", "\\","+","  ", "^", "*", "", "", "(", "", "", "", "", "", "A", "-", "&", "&", "R", "]","~ ","@") var array_two = new Array( //"","", "p ","QZ+","sa","a","0 M & M ' ","Z","\"","\"","'","'", "f ", "g ", "h ", "i ", "j ", "k ", "l ", "m ", "n ", "o ", "^ M ", "X ", "Y ", "Y M ", "Z ", " < M ", "[ ", "\ ", "] ", "^ ", "_ ", "1 ", ") ", // one-byte nukta varNas "$ M $ ", "$ M $ M ", " M $ ", "& C ", " C ","( M ( ","( M ( M ","=k","f=", "9 M ( ", "9 M / ", "9 C ", "9 M . ", "9 M 0 ", "9 M ", "& M & ", " M 7 ", " M 7 M ", "$ M 0 ", "$ M 0 M ", " M / ", " M / ", " M / ", "! M / ", "" M / ", "& M / ", " M  ", "& M 5 ", "6 M 0 ", " M 0 ", "! M 0 ", "" M 0 ", " M 0 ", " M 0 ", "+ M 0 ", "0 M & M 0 ", "& M 0 ", "* M 0 ", "* M 0 ", " M 0 ", "0 A ", "0 B ", " ", " ", " ", " ", " ", "  ", " ", " ", " ", " ", " ", " ", " ", " ", " M  ", " ", " ", " M ", " ", " M ", " ", " ", " M ", " ", " ", " M ", " ", " H ", " ", " ", " M ", " ", " ", " ", " M ", " ", " M ", " ", " M  ", " M ", " ", " ", "! M ! ", "! M " ", "! < ", "" < ", "! ", "" ", "# ", "# M ", "$ ", "$ ", "$ M ", "% ", "% M ", "& M ' ", "& ", "' ", "' ", "' M ", "' M ", "' M ", "( ", "( ", "( M ", "* ", "* ", "* M ", "+ ", "+ M ", ", ", ", ", ", M ", "- ", "- M ", ". ", ". ", ". M ", "/ ", "/ M ", "0 ", "2 ", "2 ", "2 M ", "3 ", "5 ", "5 ", "5 M ", "6 ", "6 M ", "7 ", "7 M ", "8 ", "8 ", "8 M ", "9 ", "@  ", "M 0 ", "& M & ", " M  "," M ","! M ! "," C ","- ","M / ","! M " "," M "," M 0 ","$ M $ M ","6 ","6 M ", "I ", "K ", "L ", "> ", "@ ", "A ", "B ", "C ", "G ", "H ", " ", " ", " ", "E ", "= ", "= ", "= ", "= ", "M 0 ", "M ", "?", "< ",":", " ", " ", " ", " ", ";", "(", ")", "{", "}", "=", "d ", ".", "-", "", "p ", ",","M ","/") //Corrections for Spelling mistakes (see above under the first Array): // "sas","aa","ZZ","=kk","f=k", // // The following two characters are to be replaced through proper checking of locations: // "Z" ) // "0 M " (reph) // "f" ) // "? " var array_one_length = array_one.length ; 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 //**************************************************************************************** // processed_text = processed_text.replace( /mangal/g , "Krutidev010" ) ; 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; 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 //********************************************************************************** // Code for Replacing five Special glyphs //********************************************************************************** //********************************************************************************** // Code for Glyph1 : (reph+anusvAr) //********************************************************************************** modified_substring = modified_substring.replace( //g , "Z " ) ; // at some places is used eg in " 0 M   ' A ,* B 0 M # >   ". // //********************************************************************************** // Glyp2: // code for replacing "f" with "? " and correcting its position too. (moving it one position forward) //********************************************************************************** modified_substring = modified_substring.replace( //g , "0 M f" ) ; // at some places is used eg in "' > 0 M . ?  ". var position_of_i = modified_substring.indexOf( "f" ) while ( position_of_i != -1 ) //while-02 { var charecter_next_to_i = modified_substring.charAt( position_of_i + 1 ) var charecter_to_be_replaced = "f" + charecter_next_to_i modified_substring = modified_substring.replace( charecter_to_be_replaced , charecter_next_to_i + "? " ) position_of_i = modified_substring.search( /f/ , position_of_i + 1 ) // search for i ahead of the current position. } // end of while-02 loop //********************************************************************************** // Glyph3 & Glyph4: // code for replacing "fa" with "?  " and correcting its position too.(moving it two positions forward) //********************************************************************************** modified_substring = modified_substring.replace( //g , "fa" ) ; // at some places is used eg in " ?   0 ". modified_substring = modified_substring.replace( //g , "0 M fa" ) ; // at some places is used eg in "6 0 M . ?  & > " var position_of_i = modified_substring.indexOf( "fa" ) while ( position_of_i != -1 ) //while-02 { var charecter_next_to_ip2 = modified_substring.charAt( position_of_i + 2 ) var charecter_to_be_replaced = "fa" + charecter_next_to_ip2 modified_substring = modified_substring.replace( charecter_to_be_replaced , charecter_next_to_ip2 + "?  " ) position_of_i = modified_substring.search( /fa/ , position_of_i + 2 ) // search for i ahead of the current position. } // end of while-02 loop //********************************************************************************** // Glyph5: // code for replacing "h" with "@ " and correcting its position too.(moving it one positions forward) //********************************************************************************** modified_substring = modified_substring.replace( //g , "@ Z" ) ; // at some places is used eg in " ?   0 ". /* var position_of_i = modified_substring.indexOf( "h" ) while ( position_of_i != -1 ) //while-02 { var charecter_next_to_i = modified_substring.charAt( position_of_i + 1 ) var charecter_to_be_replaced = "h" + charecter_next_to_i modified_substring = modified_substring.replace( charecter_to_be_replaced , charecter_next_to_i + "@ " ) position_of_i = modified_substring.search( /h/ , position_of_i + 1 ) // search for i ahead of the current position. } // end of while-02 loop */ //********************************************************************************** // End of Code for Replacing four Special glyphs //********************************************************************************** // following loop to eliminate 'chhotee ee kee maatraa' on half-letters as a result of above transformation. var position_of_wrong_ee = modified_substring.indexOf( "? M " ) while ( position_of_wrong_ee != -1 ) //while-03 { var consonent_next_to_wrong_ee = modified_substring.charAt( position_of_wrong_ee + 2 ) var charecter_to_be_replaced = "? M " + consonent_next_to_wrong_ee modified_substring = modified_substring.replace( charecter_to_be_replaced , "M " + consonent_next_to_wrong_ee + "? " ) position_of_wrong_ee = modified_substring.search( /? M / , position_of_wrong_ee + 2 ) // search for 'wrong ee' ahead of the current position. } // end of while-03 loop //************************************** // //************************************** // alert(modified_substring); //************************************** // Eliminating reph "Z" and putting 'half - r' at proper position for this. set_of_matras = "        > ? @ A B C G H K L  :  E " var position_of_R = modified_substring.indexOf( "Z" ) while ( position_of_R > 0 ) // while-04 { probable_position_of_half_r = position_of_R - 1 ; var charecter_at_probable_position_of_half_r = modified_substring.charAt( probable_position_of_half_r ) // trying to find non-maatra position left to current O (ie, half -r). while ( set_of_matras.match( charecter_at_probable_position_of_half_r ) != null ) // while-05 { probable_position_of_half_r = probable_position_of_half_r - 1 ; charecter_at_probable_position_of_half_r = modified_substring.charAt( probable_position_of_half_r ) ; } // end of while-05 charecter_to_be_replaced = modified_substring.substr ( probable_position_of_half_r , ( position_of_R - probable_position_of_half_r ) ) ; new_replacement_string = "0 M " + charecter_to_be_replaced ; charecter_to_be_replaced = charecter_to_be_replaced + "Z" ; modified_substring = modified_substring.replace( charecter_to_be_replaced , new_replacement_string ) ; position_of_R = modified_substring.indexOf( "Z" ) ; } // end of while-04 } // end of IF statement meant to supress processing of blank string. //************************************** // alert(modified_substring); //************************************** } // end of the function Replace_Symbols } // end of Kritidev_to_unicode function function Convert_to_Kritidev_010() { var array_one = new Array( // ignore all nuktas except in ! < and " < " ", " ", " ", " ", "(", ")", "{", "}", "=", "d ", "?", "-", "", "p ", ",", ".", "M ", "f ", "g ", "h ", "i ", "j ", "k ", "l ", "m ", "n ", "o ", "x", "^ M ", "X ", "Y ", "Z ", " < M ", "[ ", "\ ", "] ", "^ ", "_ ", "1 ", ") ", // one-byte nukta varNas "$ M $ M ", "$ M $ ", " M $ ", "& C ", " C ", "9 M ( ", "9 M / ", "9 C ", "9 M . ", "9 M 0 ", "9 M ", "& M & ", " M 7 M ", " M 7 ", "$ M 0 M ", "$ M 0 "," M  ", " M / ", " M / ", " M / ", "! M / ", "" M / ", "& M / ","& M 5 ", "6 M 0 ", " M 0 ", "! M 0 ", "" M 0 ", " M 0 ", " M 0 ", "+ M 0 ", "& M 0 ", "* M 0 ", " M 0 ", "0 A ", "0 B ", "M 0 ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " M ", " ", " M  ", " M ", " ", " M ", " ", " M ", " ", " ", " H ", " M ", " ", " ", " M ", " ", " M ", " ", " ", " M  ", " M ", " ", " ", "! M ! ", "! M " ", "! ", "" ", "# M ", "# ", "$ M ", "$ ", "% M ", "% ", "& M ' ", "& ", "' M ", "' ", "( M ", "( ", "* M ", "* ", "+ M ", "+ ", ", M ", ", ", "- M ", "- ", ". M ", ". ", "/ M ", "/ ", "0 ", "2 M ", "2 ", "3 ", "5 M ", "5 ", "6 M ", "6 ", "7 M ", "7 ", "8 M ", "8 ", "9 ", " ", "I ", "K ", "L ", "> ", "@ ", "A ", "B ", "C ", "G ", "H ", " ", " ", " ", "E ", "= ", "M ", "M " ) var array_two = new Array( "^", "*", "", "", "", "", "", "", "", "A", "\\", "&", "&", "R", "]","-","~ ", "", "", " ", "& ", " ", "! ", "", "0 ", "`", "9 ","", "", "d", "[k", "x", "T", "t", "M+", "<+", "Q", ";", "j", "u", "", "k", "", " ", " ", "", "", "", "", "z", "", "", "{", "{k", "", "=","K", "N", "V", "B", "M", "<", "|","}", "J", "V", "M", "<", "N", "", "", "", "", "xz", "#", ":", "z", "vks", "vkS", "vk", "v", "bZ", "b", "m", "", ",s", ",", "_", "D", "d", "", "[", "[k", "X", "x", "?", "?k", "", "pkS", "P", "p", "N", "T", "t", "", ">", "", "", "", "V", "B", "", "", "M", "<", ".", ".k", "R", "r", "F", "Fk", ")", "n", "/", "/k", "U", "u", "I", "i", "", "Q", "C", "c", "H", "Hk", "E", "e", "", ";", "j", "Y", "y", "G", "O", "o", "'", "'k", "\"", "\"k", "L", "l", "g", "v ", " ", "ks", "kS", "k", "h", "q", "w", "`", "s", "S", "a", "", "%", "W", "", "~ ", "~") // "~j" //************************************************************ //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/> //************************************************************ // The following two characters are to be replaced through proper checking of locations: // "0 M " (reph) // "Z" ) // "? " // "f" ) var array_one_length = array_one.length ; var modified_substring = document.getElementById("unicode_text").value ; //**************************************************************************************** // Break the long text into small bunches of max. max_text_size characters each. //**************************************************************************************** var text_size = document.getElementById("unicode_text").value.length ; var processed_text = '' ; //blank var sthiti1 = 0 ; var sthiti2 = 0 ; var chale_chalo = 1 ; var max_text_size = 6000; //************************************************************ // var max_text_size = chunksize; // alert(max_text_size); //************************************************************ while ( chale_chalo == 1 ) { sthiti1 = sthiti2 ; if ( sthiti2 < ( text_size - max_text_size ) ) { sthiti2 += max_text_size ; while (document.getElementById("unicode_text").value.charAt ( sthiti2 ) != ' ') {sthiti2--;} } else { sthiti2 = text_size ; chale_chalo = 0 } var modified_substring = document.getElementById("unicode_text").value.substring ( sthiti1, sthiti2 ) ; Replace_Symbols( ) ; processed_text += modified_substring ; //**************************************************************************************** // Breaking part code over //**************************************************************************************** // processed_text = processed_text.replace( /mangal/g , "Krutidev010" ) ; 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 "f" 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 + "? " , "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 + "f", "f" + 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 //************************************************************ // modified_substring = modified_substring.replace( /f0 M /g , "" ) ; //************************************************************ // 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. var position_of_half_R = modified_substring.indexOf( "0 M " ) ; while ( position_of_half_R > 0 ) // while-04 { // "0 M " is two bytes long var probable_position_of_Z = position_of_half_R + 2 ; var character_right_to_probable_position_of_Z = modified_substring.charAt( probable_position_of_Z + 1 ) // trying to find non-maatra position right to probable_position_of_Z . while ( set_of_matras.indexOf( character_right_to_probable_position_of_Z ) != -1 ) { probable_position_of_Z = probable_position_of_Z + 1 ; character_right_to_probable_position_of_Z = modified_substring.charAt( probable_position_of_Z + 1 ) ; } // end of while-05 string_to_be_replaced = modified_substring.substr ( position_of_half_R + 2 , ( probable_position_of_Z - position_of_half_R - 1 )) ; modified_substring = modified_substring.replace( "0 M " + string_to_be_replaced , string_to_be_replaced + "Z" ) ; position_of_half_R = modified_substring.indexOf( "0 M " ) ; } // end of while-04 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_Unicode_to_Krutidev010 function </script> <!-- ---------------------------------------------------------------------------------- body of the HTML starts here. one text box is provided each for input and output. --> <form name="form1"> <br> <b>Krutidev-010</b> font text-box<br> <textarea name="TextToConvert" id="legacy_text" cols="80" rows="8"></textarea> <br> <div align="middle"> <input name="converter" id="converter" value=" Convert to Unicode &gt;&gt; " onclick="convert_to_unicode();" accesskey="c" title="6 I 0 M    alt+c" type="button"> </div> <br> <b>Unicode</b> text-box<br> <textarea name="ConvertedText" id="unicode_text" cols="84" rows="11"></textarea> <br> <div align="middle"> <input id="converter" name="converter" value=" Convert to Kritidev-010 &gt;&gt; " onclick="Convert_to_Kritidev_010();" accesskey="c" type="button"></div> </form> </body></html>