<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <TITLE>Sanskrit 98 to Unicode Converter</TITLE> <b>8  8 M  C $ 98 8 G / B ( ?  K ! + < K # M  * 0 ? 5 0 M $ ? $ M 0 </b> (01-04-2014) <META http-equiv=Content-Type content="text/html; charset=unicode"> <script type="text/javascript"> function convert_to_unicode() { var array_one = new Array( "`" , "P " , "" , ". M ( " , "" , "6 M 2 " , "" , " M 2 " , "" , "6 M 5 " , "" , "& M 0 M / " , "" , " M ( " , "" , "6 M  " , "" , " M ( " , "" , " M  " , "" , "$ M ( " , "" , "& M , " , "" , "( M $ M 0 " , "" , "9 C " , "" , "9 M ( " , "" , "9 M . " , "" , "9 M / " , "" , "9 M 0 " , " " , "9 M 2 " , "" , "9 M 5 " , "x" , "9 M # " , "" , " M 0 " , "" , " M 0 " , "" , " M 0 " , "" , " M 0 " , "" , " M " , "" , " M 0 " , " " , "& C " , "q+" , " M 0 " , "f+" , "! M 0 " , "F+" , "" M 0 " , "y" , "$ M 0 M / " , "" , "$ M 0 M " , "" , "$ M 0 " , "" , "& M 0 " , "" , "' M 0 " , "" , "( M 0 " , "" , "* M 0 " , "" , ", M 0 " , "" , "- M 0 " , "" , ". M 0 " , "" , "5 M 0 " , "" , "6 M 0 " , "" , "8 M 0 " , "" , "8 M $ M 0 " , "`" , " M  " , "" , "7 M  " , "" , "7 M " , "" , "& M ' " , "" , "& M  " , "" , "* M $ " , "}" , " M  " , "" , " M 7 M " , "]" , " M 7 " , "" , "& M 5 " , "" , " M ( " , "" , "( M ( " , " " , " M  " , "" , "& M & " , "" , "& M  " , "" , "& M - " , "" , " M  " , "" , " M  " , "" , " M  " , "" , " M  " , "=" , "= " , "" " , " M " , "" , "$ M $ M " , "" , "$ M $ " , " " , " M  M $ " , " " , "2 M 2 " , "*" , "& M / " , "'(" , " M / " , "D(" , " M / " , "H(" , " M / " , "q(" , " M / " , "Q(" , " M / " , "f(" , "! M / " , "F(" , "" M / " , "" , " M  " , "" , "8 M ( " , "" , " M $ M " , "" , "6 M ( " , "(" , "M / " , "k& " , " A " , "k" , " B " , "'& " , " A " , "'" , " B " , "" , "& A " , "" , "& B " , ")& " , "+ A " , ")" , "+ B " , "" , "0 A " , "" , "0 B " , "" , "9 A " , "" , "9 B " , "K" , " < M " , "O" , " < M " , "G" , " < M " , "J" , " < M " , "" , "+ < M " , "k" , " < " , "o" , " < " , "g" , " < " , "j" , " < " , " f" , "! < " , " F" , "" < " , ")" , "+ < " , "k" , " " , "K" , " M " , "`" , " M " , "o" , " " , "O" , " M " , "g" , " " , "G" , " M " , "" , " M " , "\"" , " " , "'" , " " , "c" , " " , "C" , " M " , "D" , " " , "j" , " " , "J" , " M " , "H" , " " , "" , " M " , "|" , " " , "q" , " " , "Q" , " " , "f" , "! " , "F" , "" " , "[" , "# " , "{a" , "# " , "{" , "# M " , "t" , "$ " , "T" , "$ M " , "w" , "% " , "W" , "% M " , "d" , "& " , "x" , "' " , "X" , "' M " , "n" , "( " , "N" , "( M " , "p" , "* " , "P" , "* M " , ")" , "+ " , "" , "+ M " , "b" , ", " , "B" , ", M " , "" , "% M ( " , "_" , "- M " , "m" , ". " , "M" , ". M " , "y" , "/ " , "Y" , "/ M " , "r" , "0 " , "+" , "0 " , "l" , "2 " , "L" , "2 M " , "" , "3 " , "v" , "5 " , "V" , "5 M " , "z" , "6 " , "Z" , "6 M " , ";" , "7 " , ":" , "7 M " , "s" , "8 " , "S" , "8 M " , "h" , "9 " , "" , " M $ " , "AaE" , " " , "Aae" , " " , "Aa" , " " , "Aa" , " " , "A" , " " , "#" , " " , "$" , " " , "%" , " " , "^" , " " , "@e" , " " , "@" , " " , "\\" , " " , "" , "` " , "" , " " , "" , "a " , " " , " b " , // added on 01-4-14 "! " , "G  " , "" , "." , "0 " , "M " , "R" , " M  " , "" , "E " , "" , "+ M 0 " , "" , " M 0 " , ""!" , "5 M & M / " , // & M / M 5 ? "a" , "e " , //"" , "" , // marathi reph? "" , " M ( " , "" , "R " , "" , "& M  M 0 " , "" , "& M ( " , "" , "& M . " , "" , "( M ( M " , "" , "* M $ M " , "" , "* M ( " , "" , ", M  " , "" , ", M ( " , "" , "- M ( " , "" , "5 M ( " , // "!" , "M " , "S" , "M " , "aM " , "" , "ae" , "K " , "aE" , "L " , "a" , "> " , "I" , "@ " , "u" , "A " , "& " , "A " , " " , "A " , "U" , "B " , "" , "B " , "" , "B " , "" , "C " , "" , "C " , "&" , "C " , "" , "D " , "" , "D " , "e" , "G " , "E" , "H " , "<" , " " , " " , " " , "~" , " " , "" , "-" , ">" , ":" , "," , "d " , "." , "e " , "/" , "R " , "?" , "Q " , "0" , "f " , "1" , "g " , "2" , "h " , "3" , "i " , "4" , "j " , "5" , "k " , "6" , "l " , "7" , "m " , "8" , "n " , "9" , "o " , "> E " , "I " , "" , "R " ) var array_one_length = array_one.length ; document.getElementById("unicode_text").value = "You have chosen SIMPLE TEXT in DVW-TTSurekh 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 ( / < /g , "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 "i" with "? " (chhotee ee kii maatraa) and correcting its position too. modified_substring = modified_substring.replace( /([i])([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$1" ) ; modified_substring = modified_substring.replace( /([i])(M )([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$3$1" ) ; modified_substring = modified_substring.replace( /([i])(M )([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$3$1" ) ; modified_substring = modified_substring.replace( /i/g , "? " ) ; //============================================================= //Eliminating "R"(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   ]*)([\: R])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])([\: R])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])([\: R])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /R/g , "0 M " ) ; 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>8  8 M  C $ -98</b> font text-box<br/> <textarea name="Bhaskar_text" id="legacy_text" cols="100" rows="4" style="font-family:'Sanskrit 98'; 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="100" 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>