<html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-16LE"></head><body>8  8 M  C $  8 @  0 . G  * M 0 / A  M $ 0 K . ( 8 G / B ( ?  K ! * 0 ? 5 0 M $ ? $ M 0 (15-05-2009) <br> <br> <script type="text/javascript"> function convert_to_unicode() { var array_one = new Array( 'k', "tr", 'j', "kh","k","gh","g",":n", "ch","c","jh","j",";n", "h","", '.Dh', "h", 'x', "", ".n", "th","t","dh","d","n", "ph","p","bh","b", '', "m", "y", ".r", "r",".l","l","v","","","s","","h", "M ", "M ai", "M au", "M a", "M ", "M i", "M ", "M u", "M .R.R", "M .R", "M e", "M o", "", 'uai', 'u', 'u', "", "ai", "au", "a", "ii", "i", "uu", "u", ".R.R", ".R", "e", "o", '\'', "." , '6 ', ' 0 M ' ) var array_two = new Array( " M 7 M ", "$ M 0 M ", " M  M ", " M "," M "," M "," M "," M ", " M "," M "," M "," M "," M ", " M "," M ", '] M ', "" M ", '! < M ', "! M ", "# M ", "% M ","$ M ","' M ","& M ","( M ", "+ M ","* M ","- M ",", M ", ' ', ". M ", "/ M ", ".R", "0 M ","3 M ","2 M ","5 M ","6 M ","7 M ","8 M ", ':', "9 M ", "> ", "H ", "L ", "", "@ ", "? ", "B ", "A ", "D ", "C ", "G ", "K ", ' ', " "," "," "," "," "," "," "," "," "," "," ","` "," "," "," ", '', "|", '9 H ', ' ') var array_one_length = array_one.length ; document.getElementById("unicode_text").value = "Conversion is in progress..." ; var text_size = document.getElementById("legacy_text").value.length ; var processed_text = '' ; //blank var sthiti1 = 0 ; var sthiti2 = 0 ; var chale_chalo = 1 ; while ( chale_chalo == 1 ) { sthiti1 = sthiti2 ; if ( sthiti2 < ( text_size - 10000 ) ) { sthiti2 += 10000 ; 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 ; 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 } // end of IF statement meant to supress processing of blank string. } // end of the function Replace_Symbols } // end of legacy_to_unicode function </script> <!-- ---------------------------------------------------------------------------------- body of the HTML starts here. one text box is provided each for input and output. --> <form name="form1"> Paste the Sanskrit OCR output text (in Roman) into the box below : <br><br> <textarea name="TextToConvert" id="legacy_text" cols="80" rows="7"></textarea> <br><br> <div align="middle"> <input id="converter" name="converter" value=" Convert to Unicode &gt;&gt; " onclick="convert_to_unicode();" accesskey="c" title="6 I 0 M    alt+c" type="button"> </div> <br><br> This is Devanagari Unicode equivalent of the above Roman text: <br><br> <textarea name="ConvertedText" id="unicode_text" cols="80" rows="13"></textarea> <br><br> </form> </body></html>