<html> <head><B><Font color = darkblue><CENTER> C $ ? & G 5 -010 <==> / B ( ?  K ! + < K # M  * 0 ? 5 0 M $ ? $ M 0 (09-01-2009)</font></B> </title> <Font color = blue>Last update: 09-03-2014</font><br> <script type="text/javascript"> function convert_to_unicode() { var array_one = new Array( "aa" , "a" , "ZZ" , "Z" , "=kk" , "=k" , "f=k" , "f=" , "Q+Z" , "QZ+" , "sas" , "sa" , " " , "\"" , " " , "\"" , " " , "'" , " " , "'" , "" , "g " , " " , "h " , "& " , "i " , " " , "j " , "! " , "k " , "" , "l " , "0 " , "m " , "`" , "n " , "9 " , "o " , "R" , "f " , "" , "f " , "v " , " " , "vks" , " " , "vkS" , " " , "vk" , " " , "v" , " " , "b" , "  " , "" , " " , "bZ" , " " , "b" , " " , "m" , " " , "" , " " , ",s" , " " , "," , " " , "_" , " " , "d+" , "X " , "[+" , "Y M " , "x+" , "Z " , "T+" , "[ M " , "t+" , "[ " , "M+" , "\ " , "<+" , "] " , "+" , "^ M " , "Q+" , "^ " , ";+" , "_ " , "j+" , "1 " , "u+" , ") " , "d" , " " , "D" , " M " , "" , " M 0 " , "[" , " M " , "x" , " " , "X" , " M " , "" , " " , "?" , " M " , "" , " " , "p" , " " , "P" , " M " , "N" , " " , "t" , " " , "T" , " M " , ">" , " " , "" , " M " , "" , " M " , "" , " " , "V" , " " , "B" , " " , "M" , "! " , "<" , "" " , "." , "# M " , "r" , "$ " , "R" , "$ M " , "F" , "% M " , "n" , "& " , "/" , "' M " , "" , "' M " , "" , "' M " , "u" , "( " , "U" , "( M " , "i" , "* " , "I" , "* M " , "Q" , "+ " , "" , "+ M " , "c" , ", " , "C" , ", M " , "" , "- " , "H" , "- M " , "e" , ". " , "E" , ". M " , ";" , "/ " , "" , "/ M " , "j" , "0 " , "y" , "2 " , "Y" , "2 M " , "G" , "3 " , "o" , "6 M 5 " , "k" , "6 " , // as used in 'shringaal' etc "z" , "6 M 0 M " , "o" , "5 " , "O" , "5 M " , "'" , "6 M " , "\"" , "7 M " , "l" , "8 " , "L" , "8 M " , "g" , "9 " , "" , " C " , " " , " C " , "" , " M  " , "" , " M $ " , "{" , " M 7 M " , "K" , " M  " , "" , " M  " , "" , " M  " , "" , " M " , "" , " M " , "" , " M " , "" , "! M ! " , "" , "! M ! " , "" , "! M " " , "" , "! M " " , "" , "$ M $ M " , "=" , "$ M 0 " , "" , "$ M 0 M " , " " , "& C " , "" , "& M & " , "" , "& M & " , "\)" , "& M ' " , "" , "& M - " , "" , "& M - " , "|" , "& M / " , "}" , "& M 5 " , "" , "( M ( " , ""!" , "( M ( M " , "" , "8 M $ M 0 " , "" , "9 C " , "" , "9 M ( " , "" , "9 M . " , "" , "9 M / " , "" , "9 M " , "J" , "6 M 0 " , "" , " M 0 " , "" , "+ M 0 " , "" , "& M 0 " , "" , "* M 0 " , "" , "* M 0 " , "#" , "0 A " , ":" , "0 B " , "" , "M / " , "" , "M / " , "z" , "M 0 " , "" , "M 0 " , // "" , "?  ", "" , "@  " , "" , "Z@ " , "\: " , "ZH  " , "" , "ZH  " , "" , "Z " , "" , "0 M f" , "" , "0 M " , "M k" , "" , " " , "I " , "" , "K " , "" , "K " , "ks" , "K " , "" , "L " , "kS" , "L " , "h" , "@ " , "q" , "A " , "w" , "B " , "`" , "C " , "s" , "G " , "" , "G " , //suitable for ka "S" , "H " , "a" , " " , "" , " " , "%" , " " , "W" , "E " , "" " , "= " , "" , "= " , """ , "= " , "" , "= " , "~" , "M " , "+" , "< " , "k" , "> " , "A" , "d " , "" , "p " , // laaghava "\\" , "?" , "  " , " :" , "^" , " " , "*" , " " , "" , " " , "" , " " , "(" , ";" , "" , "(" , "" , ")" , "" , "{" , "" , "}" , "" , "=" , "-" , "." , // full stop? "&" , "-" , //"&" , "" , "]" , "," , "@" , "/" , "~ " , "M " , "> G " , "K " , "> E " , "I " , "G M 0 " , "M 0 G " , " L " , " " , " K " , " " , " E " , " " ) 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 ) != '\n')&(document.getElementById("legacy_text").value.charAt( sthiti2 ) != '\t')&(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 stringto 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 // following statements for adjusting postion of i maatraas. modified_substring = modified_substring.replace( /([f])([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$1" ) ; modified_substring = modified_substring.replace( /([f])(M )([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$3$1" ) ; modified_substring = modified_substring.replace( /([f])(M )([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])/g , "$2$3$1" ) ; modified_substring = modified_substring.replace( /f/g , "? " ) ; modified_substring = modified_substring.replace( //g , "?  " ) ; //following three statement for adjusting position of reph ie, half r . modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([> ? @ A B C G H K L   ]*)([Z])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])([Z])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])([Z])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /Z/g , "0 M " ) ; // 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" ) ; } // end of IF statement meant to supress processing of blank string. } // end of the function Replace_Symbols } // end of Krutidev_to_unicode function //************************************************************************ function Convert_to_Krutidev_010() { var array_one = new Array( "'" , "\*" , "\"" , "" , " " , "\^" , " " , "\*" , " " , "" , " " , "" , "\(" , "" , "\)" , "" , "\{" , "" , "\}" , "" , "\[" , "" , // there is no symbol for [ in Krutidev. "\]" , "" , // there is no symbol for ] in Krutidev. "_" , "\&" , "-" , "\&" , "x" , "" , "\+" , "$" , "\=" , "" , "d " , "A" , "p " , "" , // laaghava "." , "-" , // Full stop "?" , "\\" , "\," , "\]" , "%" , "" , // Kaamachalaaoo. "\:" , "%" , "\;" , "\(" , "\/" , "@" , // There is no symbol in Krutidev for hash (#). "#" , "" , // Kaamachalaaoo. // remain unchanged in Krutidev. "f " , "" , "g " , "" , "h " , " " , "i " , "& " , "j " , " " , "k " , "! " , "l " , "" , "m " , "0 " , "n " , "`" , "o " , "\9 " , "X M " , "D\+" , "Y M " , "\[\+" , "Z M " , "X+" , "[ M " , "T\+" , ") M " , "U\+" , "^ M " , "\+" , "_ M " , "\+" , "X " , "d\+" , "Y " , "[k\+" , "Z " , "x\+" , "[ " , "t\+" , "\ " , "M\+" , "] " , "<\+" , ") " , "u\+" , "^ " , "Q\+" , "_ " , ";\+" , "1 " , "j\+" , " C " , " " , " M  " , "" , " M $ " , "" , " M 7 M " , "\{" , " M 7 " , "\{k" , " M  M " , "K~" , " M  " , "K" , " M  " , "" , " M " , "" , "! M ! " , "" , "! M " " , "" , "$ M $ M " , "" , "$ M $ " , "k" , "$ M 0 M " , "" , "$ M 0 " , "\=" , "& C " , " " , "& M & " , "" , "& M ' " , "\)" , "& M / " , "\|" , "& M 5 " , "\}" , " M / " , "N" , " M / " , "V" , " M / " , "B" , "! M / " , "M" , "" M / " , "\<" , " M 0 " , "N" , " M 0 " , "V" , " M 0 " , "B" , "! M 0 " , "M" , "" M 0 " , "<" , " M 0 " , "" , "& M 0 " , "" , "* M 0 " , "" , "+ M 0 " , "" , "6 M 0 M " , "z" , "6 M 0 " , "J" , "6 C " , "k`" , // spacial form "6 M 5 " , "o" , // spacial form "9 C " , "" , "9 M ( " , "" , "9 M . " , "" , "9 M / " , "" , "9 M 0 " , "z" , "9 M " , "" , "M 0 " , "z" , "0 A " , "\#" , "0 B " , "\:" , " " , "vks" , " " , "vkS" , " " , "v " , " " , "vk" , " " , "v" , "  " , "b" , " " , "" , //" " , "bZ" , " " , "b" , " " , "m" , " " , "" , " " , "\,s" , " " , "\," , " " , "_" , " M " , "D" , " " , "d" , " M " , "\[" , " " , "\[k" , " M " , "X" , " " , "x" , " M " , "\?" , " " , "\?k" , " " , "" , " M " , "P" , " " , "p" , " " , "N" , " M " , "T" , " " , "t" , " M " , "" , " " , "\>" , " " , "" , " " , "V" , " " , "B" , "! " , "M" , "" " , "\<" , "# M " , "." , "# " , ".k" , "$ M " , "R" , "$ " , "r" , "% M " , "F" , "% " , "Fk" , "& " , "n" , "' M " , "" , "' " , "k" , "( M " , "U" , "( " , "u" , "* M " , "I" , "* " , "i" , "+ M " , "" , "+ " , "Q" , ", M " , "C" , ", " , "c" , "- M " , "H" , "- " , "Hk" , ". M " , "E" , ". " , "e" , "/ M " , "" , "/ " , "\;" , "0 " , "j" , "2 M " , "Y" , "2 " , "y" , "3 " , "G" , "5 M " , "O" , "5 " , "o" , "6 M " , "\'" , "6 " , "\'k" , "7 M " , "\"" , "7 " , "\"k" , "8 M " , "L" , "8 " , "l" , "9 " , "g" , "I " , "\ " , "E " , "W" , "K " , "ks" , "L " , "kS" , "> " , "k" , "@  " , "" , "@ " , "h" , "A " , "q" , "B " , "w" , "C " , "`" , "G " , "s" , "H " , "S" , " " , "a" , " " , "" , " " , "%" , "= " , "" , "M " , "~" , "< " , "\+" ); var array_one_length = array_one.length ; var modified_substring = document.getElementById("unicode_text").value + " " ; // an space added to help recognise halant at the end of file document.getElementById("legacy_text").value = "Conversion in progress.." ; //************************************************************* // Break the long text into small bunches of max. max_text_size characters each. //************************************************************* var text_size = modified_substring.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("unicode_text").value.charAt( sthiti2 ) != '\n')&(document.getElementById("unicode_text").value.charAt( sthiti2 ) != '\t')&(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 ) ; //********************************************************** // Breaking part code over //********************************************************** Replace_Symbols( ) ; processed_text += modified_substring ; 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 != "" ) { // 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( ' ' + 'M ' + '< ' , '[ M ' ) ; 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 " ) ; //"?  ", "" , // "@  " , "" , // "@ Z" , "" , // "H  Z" , "\: " , // "H  Z" , "" , // " Z" , "" , // "" , "0 M f" , // "" , "0 M " , // These two to avoid conversion of 0 M into Z. modified_substring = modified_substring.replace ( /$ M 0 M /g , "" ) ; modified_substring = modified_substring.replace ( /6 M 0 M /g , "z" ) ; modified_substring = modified_substring.replace( /0 M /g , "Z" ) ; modified_substring = modified_substring.replace ( //g , "$ M 0 M " ) ; modified_substring = modified_substring.replace ( /z/g , "6 M 0 M " ) ; // following statements for adjusting postion of i maatraas. modified_substring = modified_substring.replace( /?  /g , "" ) ; modified_substring = modified_substring.replace( /? /g , "f" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([f])/g , "$2$1" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])(M )([f])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /([           ! \ " ] # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])(M )([f])/g , "$3$1$2" ) ; modified_substring = modified_substring.replace( /Zf/g , "" ) ; modified_substring = modified_substring.replace( /Z/g , "" ) ; // ************** //following three statement for adjusting position of reph ie, half r . modified_substring = modified_substring.replace( /Z([           ! " # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])/g , "$1$2Z" ) ; modified_substring = modified_substring.replace( /Z([           ! " # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([M ])/g , "$1$2Z" ) ; modified_substring = modified_substring.replace( /Z([           ! " # $ % & ' ( * + , - . / 0 2 5 6 7 8 9 X Y Z [ \ ] ^ ])([> E @ A B C G H K L   ]*)/g , "$1$2Z" ) ; modified_substring = modified_substring.replace( /@ Z/g , "" ) ; modified_substring = modified_substring.replace( /H  Z/g , "" ) ; modified_substring = modified_substring.replace( / Z/g , "" ) ; /* //rem changing 5 to  and * to + etc modified_substring = modified_substring.replace( / ([A B C D G H  & ]*)/g , "ke$1" ); modified_substring = modified_substring.replace( / M 0 ([A B C D G H  & ]*)/g , "ke$1" ); modified_substring = modified_substring.replace( /+ ([A B C D G H  & ]*)/g , "He$1" ); modified_substring = modified_substring.replace( /+ M 0 ([A B C D G H  & ]*)/g , "He$1" ); */ // Halanta after which there is no constant but space, hypen, comma or full-stop etc modified_substring = modified_substring.replace ( /[M ]([ \,\;\.d \n\-\:])/g , "~$1" ) ; // Now substitute Roman symbols for corresponding Devanagari symbols given in array_one. for( input_symbol_idx = 0; input_symbol_idx < array_one_length; 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 } // end of IF statement meant to supress processing of blank string. modified_substring = modified_substring.replace( /Zks/g , "ksZ" ) ; modified_substring = modified_substring.replace( /~ Z/g , "Z~" ) ; modified_substring = modified_substring.replace( /Zk/g , "kZ" ) ; } // end of the function Replace_Symbols( ) } // end of Convert_Unicode_to_Krutidev010 function </script> </head> <BODY bgColor='yellow'><CENTER> <form name="form1"><br/> <b>Krutidev-010</b> font text-box<br/> <textarea name="TextToConvert" id="legacy_text" cols="120" rows="9" style="font-family:'Kruti Dev 010'; font-size:16px;"></textarea> <div align="middle"> <input type="button" name="converter" id="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="ConvertedText" id="unicode_text" cols="92" rows="11"></textarea> <br /> <div align="middle"> <input type="button" id="converter" name="converter" value=" Convert to Krutidev-010 >> " onClick="Convert_to_Krutidev_010();" accesskey="c" </div> </form> </body> </html>