{"id":136,"date":"2022-10-12T03:52:17","date_gmt":"2022-10-12T03:52:17","guid":{"rendered":"http:\/\/karmacharionline.com\/?page_id=136"},"modified":"2022-10-12T03:52:17","modified_gmt":"2022-10-12T03:52:17","slug":"preeti-to-unicode","status":"publish","type":"page","link":"https:\/\/karmacharionline.com\/?page_id=136","title":{"rendered":"PREETI TO UNICODE"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"\/>\n<title>Preeti to Unicode Converter<\/title>\n<meta name=\"description\" content=\"Preeti to Unicode Converter\">\n<meta name=\"keywords\" content=\"Preeti to Unicode Convert\">\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"files\/style.css\">\n<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\"><\/script>\n<script src=\"\/unicode\/js\/nicescroll.js\"><\/script>\n\n<style>\nbody {\nmargin: 0;\n}\n\n.lower_div {\n\tmargin: 0;\n    background: #cccccc4f;\n    padding: 5px 0;\n}\n\n*{\n\tbox-sizing: border-box;\n}\n\n#main{\n\tpadding: 5px;\n}\n\n.spcl_character_wrap {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n\tpadding: 0 5px;\n}\n\n.spcl_character {\n    text-align: right;\n}\n\n.spcl_character p {\n    margin: 0;\n    display: inline-block;\n    padding: 2px 5px;\n}\n\ntextarea#legacy_text {\n    margin-top: 5px;\n}\n\n<\/style>\n<\/head>\n<body>\n<div id=\"main\">\n<div id=\"content\">\n\n<script type=\"text\/javascript\">\n\nfunction convert_to_unicode()\n{\n\nvar array_one = new Array( \n\n\"\u00e7\",\"\u02dc\",\".\",\"'m\",\"]m\",\"Fmf\",\"Fm\",\n\n\")\",\"!\",\"@\",\"#\",\"$\",\"%\",\"^\",\"&\",\"*\",\"(\",\n\n\"k|m\",\"em\",\"km\",\"Qm\",\"qm\",\"N\u02dc\",\n\"\u00a1\",\"\u00a2\",\"1\",\"2\",\"4\",\">\",\"?\",\"B\",\"I\",\"Q\",\"\u00df\",\n\"q\",\"\u201e\",\"\u2039\",\"\u2022\",\"\u203a\",\"\u00a7\",\"\u00b0\",\"\u00b6\",\"\u00bf\",\"\u00c5\",   \n\"\u00cb\",\"\u00cc\",\"\u00cd\",\"\u00ce\",\"\u00dd\",\"\u00e5\",\n\"6\u00ab\",\"7\u00ab\",\"8\u00ab\",\"9\u00ab\",\n\n\"\u00d8\",\"|\",\n\n\"8\u00de\",\"9\u00de\",\n\n\"S\",\"s\",\"V\",\"v\",\"U\",\"u\",\"\u00a3\",\"3\",\"\u00aa\",\n\"R\",\"r\",\"5\",\"H\",\"h\",\"\u2030\",\"\u00b4\",\"~\", \"`\",\n\n\"6\",\"7\",\"8\",\"9\",\"0\",\n\"T\",\"t\",\"Y\",\"y\",\"b\",\"W\",\"w\",\"G\",\"g\",  \n\n\"K\",\"k\",\"\u02c6\",\"A\",\"a\",\"E\", \"e\",\"D\",\"d\",\n\"o\",\"\/\",\"N\",\"n\",\"J\", \"j\", \"Z\",\"z\",\"i\",\":\",\";\",\"X\",\"x\", \n\n\"cf\u2018\",\"c\u2018f\",\"cf}\",\"cf]\",\"cf\",\"c\",\"O{\",\"O\",\"pm\",\"p\",\"C\",\"P]\",\"P\",\n\n\"f\u2018\",\"\\\"\",\"'\",\"+\",\"f\",\"[\",\"\\\\\",\"]\",\"}\",\"F\", \"L\",\"M\",\n\n\"\u094d\u093e\",\"\u094d\u094b\",\"\u094d\u094c\",\"\u0905\u094b\",\"\u0905\u093e\",\"\u0906\u0948\",\"\u0906\u0947\",\"\u093e\u094b\",\"\u093e\u0945\",\"\u093e\u0947\",\n\"\u0902\u0941\",\"\u0947\u0947\",\"\u0905\u0948\",\"\u093e\u0947\",\"\u0905\u0947\",\"\u0902\u093e\",\"\u0905\u0945\",\"\u093e\u0948\",\"\u0948\u093e\",\"\u0902\u0943\",\n\"\u0901\u093e\",\"\u0901\u0942\",\"\u0947\u093e\",\"\u0902\u0947\")     \/\/ Remove typing mistakes in the original file\n\n\/\/\"_\",\"\u00d6\",\"\u00d9\",\"\u00da\",\"\u00db\",\"\u00dc\",\"\u00de\",\"\u00c6\",\"\u00b1\",\"-\",\"<\",\"=\")    \/\/ Punctuation marks\n\nvar array_two = new Array(\n\n\"\u0950\",\"\u093d\",\"\u0964\",\"m'\",\"m]\",\"mfF\",\"mF\",\n\n\"\u0966\",\"\u0967\",\"\u0968\",\"\u0969\",\"\u096a\",\"\u096b\",\"\u096c\",\"\u096d\",\"\u096e\",\"\u096f\",\n\n\"\u092b\u094d\u0930\",\"\u091d\",\"\u092b\",\"\u0915\u094d\u0924\",\"\u0915\u094d\u0930\",\"\u0932\",\n\"\u091c\u094d\u091e\u094d\",\"\u0926\u094d\u0918\",\"\u091c\u094d\u091e\",\"\u0926\u094d\u0926\",\"\u0926\u094d\u0927\",\"\u0936\u094d\u0930\",\"\u0930\u0941\",\"\u0926\u094d\u092f\",\"\u0915\u094d\u0937\u094d\",\"\u0924\u094d\u0924\",\"\u0926\u094d\u092e\", \n\"\u0924\u094d\u0930\",\"\u0927\u094d\u0930\",\"\u0919\u094d\u0918\",\"\u0921\u094d\u0921\",\"\u0926\u094d\u0930\",\"\u091f\u094d\u091f\",\"\u0921\u094d\u0922\",\"\u0920\u094d\u0920\",\"\u0930\u0942\",\"\u0939\u0943\",   \n\"\u0919\u094d\u0917\",\"\u0924\u094d\u0930\",\"\u0919\u094d\u0915\",\"\u0919\u094d\u0916\",\"\u091f\u094d\u0920\",\"\u0926\u094d\u0935\",\n\"\u091f\u094d\u0930\",\"\u0920\u094d\u0930\",\"\u0921\u094d\u0930\",\"\u0922\u094d\u0930\",\n\n\"\u094d\u092f\",\"\u094d\u0930\",\n\n\"\u0921\u093c\",\"\u0922\u093c\",\n\n\"\u0915\u094d\",\"\u0915\",\"\u0916\u094d\",\"\u0916\",\"\u0917\u094d\",\"\u0917\",\"\u0918\u094d\",\"\u0918\", \"\u0919\",\n\"\u091a\u094d\",\"\u091a\",\"\u091b\",\"\u091c\u094d\",\"\u091c\",\"\u091d\u094d\",\"\u091d\",\"\u091e\u094d\", \"\u091e\",\n\n\"\u091f\",\"\u0920\",\"\u0921\",\"\u0922\",\"\u0923\u094d\",\n\"\u0924\u094d\",\"\u0924\",\"\u0925\u094d\",\"\u0925\",\"\u0926\",\"\u0927\u094d\",\"\u0927\",\"\u0928\u094d\",\"\u0928\",  \n\n\"\u092a\u094d\",\"\u092a\",\"\u092b\u094d\",\"\u092c\u094d\",\"\u092c\",\"\u092d\u094d\",\"\u092d\",\"\u092e\u094d\",\"\u092e\",\n\"\u092f\",\"\u0930\",\"\u0932\u094d\",\"\u0932\",\"\u0935\u094d\",\"\u0935\",\"\u0936\u094d\",\"\u0936\",\"\u0937\u094d\",\"\u0938\u094d\",\"\u0938\",\"\u0939\u094d\",\"\u0939\",\n\n\"\u0911\",\"\u0911\",\"\u0914\",\"\u0913\",\"\u0906\",\"\u0905\",\"\u0908\",\"\u0907\",\"\u090a\",\"\u0909\",\"\u090b\",\"\u0910\",\"\u090f\",\n\n\"\u0949\",\"\u0942\",\"\u0941\",\"\u0902\",\"\u093e\",\"\u0943\",\"\u094d\",\"\u0947\",\"\u0948\",\"\u0901\",\"\u0940\",\"\u0903\",\n\n\"\",\"\u0947\",\"\u0948\",\"\u0913\",\"\u0906\",\"\u0914\",\"\u0913\",\"\u094b\",\"\u0949\",\"\u094b\",\n\"\u0941\u0902\",\"\u0947\",\"\u0905\u200d\u0948\",\"\u094b\",\"\u0905\u200d\u0947\",\"\u093e\u0902\",\"\u0905\u200d\u0945\",\"\u094c\",\"\u094c\",\"\u0943\u0902\",\n\"\u093e\u0901\",\"\u0942\u0901\",\"\u094b\",\"\u0947\u0902\")     \/\/ Remove typing mistakes in the original file \n\n\/\/  \")\",\"=\", \";\", \"\u2019\",\"!\",\"%\",\".\",\"\u201d\",\"+\",\"(\",\"?\",\".\")       \/\/ Punctuation marks\n\n\/\/**************************************************************************************\n\/\/ The following two characters are to be replaced through proper checking of locations:\n\/\/**************************************************************************************\n\/\/  \"l\", \n\/\/  \"\u093f\",\n\/\/\n\/\/ \"{\"\n\/\/ \"\u0930\u094d\" (reph) \n\/\/**************************************************************************************\n\nvar array_one_length = array_one.length ;\n\nif (  (document.getElementById(\"text_or_html\")).selectedIndex == 0 )  \/\/ if the input is plain text\n{ \n    document.getElementById(\"unicode_text\").value = \"You have chosen SIMPLE TEXT in Preeti to convert into Unicode.\"  ;  \n\n    var modified_substring = document.getElementById(\"legacy_text\").value  ;\n\n\/\/****************************************************************************************\n\/\/  Break the long text into small bunches of max. max_text_size  characters each.\n\/\/****************************************************************************************\n    var text_size = document.getElementById(\"legacy_text\").value.length ;\n\n    var processed_text = '' ;  \/\/blank\n\n\/\/**********************************************\n\/\/    alert(\"text size = \"+text_size);\n\/\/**********************************************\n\n    var sthiti1 = 0 ;  var sthiti2 = 0 ;  var chale_chalo = 1 ;\n \n    var max_text_size = 6000;\n\n    while ( chale_chalo == 1 ) \n    {\n     sthiti1 = sthiti2 ; \n\n     if ( sthiti2 < ( text_size - max_text_size ) )  \n     { \n      sthiti2 +=  max_text_size ;\n      while (document.getElementById(\"legacy_text\").value.charAt ( sthiti2 ) != ' ') {sthiti2--;}\n     } \n     else  { sthiti2 = text_size  ;  chale_chalo = 0 }\n      \n\/\/   alert(\" sthiti 1 = \"+sthiti1); alert(\" sthit 2 = \"+sthiti2) \n\n     var modified_substring = document.getElementById(\"legacy_text\").value.substring ( sthiti1, sthiti2 )  ;\n\n    Replace_Symbols( ) ;\n\n    processed_text += modified_substring ;\n     \n\n\/\/****************************************************************************************\n\/\/  Breaking part code over\n\/\/****************************************************************************************\n\/\/  processed_text = processed_text.replace( \/mangal\/g , \"SUCHI-DEV-708 \" ) ;   \n\n    document.getElementById(\"unicode_text\").value = processed_text  ;\n   }\n\n}\n\nelse    \/\/ if input is HTML then\n\n{\n\ndocument.getElementById(\"unicode_text\").value = \"You have chosen HTML TEXT in SUCHI-DEV-708  to convert into Unicode.\"  ;  \n\nvar remaining_text = document.getElementById(\"legacy_text\").value ;\nvar processed_text = \"\" ;  \/\/blank initially\n\nvar position_of_current_opening_bracket = 0 ;\nvar position_of_next_closing_bracket = 1 ;\n\nvar idx = remaining_text.indexOf( \"<p \" )  \/\/ search starting from paragraphs. then search for sanskrit 99.\nidx = remaining_text.indexOf( \"Sanskrit 99\" , idx )\nvar idx2 = 0  \/\/  position_of_current_opening_bracket  \">\"\nvar idx3 = 0  \/\/  position of \"\/span\"\nvar idx4 = 0  \/\/  postion of \"span\" only , ie span without \"\/\"\n\nwhile ( idx != -1 )    \/\/ while-01 loop     ;  while \"Sanskrit 99\"  is found..\n\n{  \nidx2 = remaining_text.indexOf( \">\" , idx )  \nidx3 = remaining_text.indexOf( \"\/span\" , idx2 )\nidx4 = remaining_text.indexOf( \"span\" , idx2 )\n\n\nwhile ( idx4 < idx3 )     \/\/ this loop to take care of  nested span.\n{\nidx4 = remaining_text.indexOf( \"span\" , idx3+4 ) ;\nidx3 = remaining_text.indexOf( \"\/span\" , idx3+4 ) ;\n}\n\n\nvar modified_substring = remaining_text.substring( idx2 , idx3 ) ;\nmodified_substring = modified_substring.replace( \/>\/g , \">>\" ) ; \nprocessed_text = processed_text + remaining_text.substring( 0 , idx2 ) + modified_substring + \"\/span\" ;   \n\nremaining_text = remaining_text.substring( idx3 + 5 ) ;  \/\/remaining_text excludes \"\/span\"\nidx = remaining_text.indexOf( \"Sanskrit 99\" ) ;\n\n} \/\/end of outermost while-01\n\n\nprocessed_text = processed_text + remaining_text ;\n\n\n\/\/ -----------------------------\n\n\/\/  This section for taking care of paragraphs marked class = MsoBodyText  or class = MsoBodyText\n\nremaining_text = processed_text ;\nprocessed_text = \"\" ;  \/\/blank initially\n\nvar position_of_start_of_paragraph = 0 ;\nvar position_of_end_of_paragraph = 1 ;\n\nposition_of_start_of_paragraph = remaining_text.indexOf(\"<p \")   ;\n\n\nwhile ( position_of_start_of_paragraph != -1 )  \/\/search for <p  in the remaining_text\n{\n\nposition_of_start_of_paragraph = remaining_text.indexOf(\"<p \")   ;\nposition_of_end_of_paragraph = remaining_text.indexOf(\"\/p>\")   ;\n\nmodified_substring = remaining_text.substring( position_of_start_of_paragraph + 3 ,  position_of_end_of_paragraph ) ;\n\n\nif ( modified_substring.indexOf( \"MsoBodyText\" ) != -1 )\n{ \n  modified_substring = modified_substring.replace( \/>\/g , \">>\" )  ;    \/\/ repace all \">\" with \">>\" in this paragraph\n\nidx = modified_substring.indexOf(\"font-family\")  ;  \/\/ in Mybodytext, whereever font-family is found, it means it is roman text.\nidx2 = 0 ;  \/\/ position of \">>\"\nidx3 = 0 ;  \/\/ position of \"\/span\"\nidx4 = 0 ;  \/\/ position of \"span\" only without \"\/\"\n\nwhile ( idx != -1 )     \/\/ again change \">>\" to \">\" only those which occure immediately after font-family:\"Times new Roman\"\n{\n\nidx2 = modified_substring.indexOf( \">>\" , idx ) ;\nidx3 = modified_substring.indexOf( \"\/span\" , idx2 ) ;\nidx4 = modified_substring.indexOf( \"span\" , idx2 ) ;\n\n\nwhile ( idx4 < idx3 )\n {\n   idx4 = modified_substring.indexOf( \"span\" , idx3+4 )  ;\n   idx3 = modified_substring.indexOf( \"\/span\" , idx3+4 )  ;\n }\n\nmodified_substring = modified_substring.substring( 0, idx2 ) + (modified_substring.substring( idx2 , idx3 )).replace( \/>>\/g , \">\" ) + modified_substring.substring( idx3 ) ; \nidx = modified_substring.indexOf( \"font-family\" , idx3 ) ;\n\n} \/\/ end of while inner loop\n} \/\/ end of if statement\n\nprocessed_text = processed_text + remaining_text.substring( 0 , position_of_start_of_paragraph + 3 ) +  modified_substring + \"\/p>\" ;   \nremaining_text = remaining_text.substring( position_of_end_of_paragraph + 3 ) ; \nposition_of_start_of_paragraph = remaining_text.indexOf(\"<p \")   ;\n\n} \/\/ end of outer while loop\n\nprocessed_text = processed_text + remaining_text ;\n\n\n\/\/ ------------------------\n\n\/\/ Now do actual font conversion  of text occuring between  all the  pairs  >>  and  <\n\nremaining_text = processed_text ;     processed_text = \"\" ; \n\nidx2 = remaining_text.indexOf( \">>\" )  ;\n\n\n\nwhile ( idx2 != -1 )    \/\/ while-01 loop (checks if \">>\" is still present\n\n{  \n\nposition_of_current_opening_bracket = remaining_text.indexOf( \">>\" , idx2 )  \nposition_of_next_closing_bracket = remaining_text.indexOf( \"<\" , position_of_current_opening_bracket )\n\nmodified_substring = remaining_text.substring( position_of_current_opening_bracket + 2 , position_of_next_closing_bracket ) ;\n\nprocessed_text = processed_text + remaining_text.substring( 0 , position_of_current_opening_bracket + 1 ) ;   \/\/ \">\" included by using +1 here\nremaining_text = remaining_text.substring( position_of_next_closing_bracket + 1 ) ;  \/\/remaining_text excludes the closing bracket\n\n\nReplace_Symbols() ;   \/\/ call the subroutine and replace the legacy symbols  with corresponding Unicode.\n\n\nprocessed_text = processed_text + modified_substring + \"<\"  ;\n\nidx2 = remaining_text.indexOf( \">>\" ) ;\n\n\n} \/\/end of outermost while-01\n\n\n\nprocessed_text = processed_text + remaining_text ; \n\n\n\n\/\/ do follwing conversions which are still left  or  were done incorrectly due to unavoidable reasons.\n \n\/\/ processed_text = processed_text.replace( \/Sanskrit 99\/g , \"mangal\" ) ;   \n\n\/\/ processed_text = processed_text.replace( \/\u0943\u0932\u0924\u0937\/g , \"\u0902\" )   ;  \n\/\/ processed_text = processed_text.replace( \/\u0943\u091f\u0941\u0916\u0924\u0937\/g , \"\u0918\" )  ;\n\/\/ processed_text = processed_text.replace( \/\u0943\u093e\u092e\u092a\u0937\/g , \"\u0943\" )  ;\n\/\/ processed_text = processed_text.replace( \/\u0943\u0917\u0924\u0937\/g , \":\" )  ;\n\/\/ processed_text = processed_text.replace( \/\u0943\u0928\u092c\u0938\u092a\u0937\/g , \"\/&nbsp\" )  ; \n\/\/ processed_text = processed_text.replace( \/\u093e\u0945\/g , \"\u0949\" )  ; \n\n\n\/\/ now put the processed text in the output box finally.\n\ndocument.getElementById(\"unicode_text\").value = processed_text  \n\n\n} \/\/ end of else loop for HTML case\n\n\n\/\/ --------------------------------------------------\n\n\nfunction Replace_Symbols( )\n\n{\n\n\/\/substitute array_two elements in place of corresponding array_one elements\n\nif ( modified_substring != \"\" )  \/\/ if stringto be converted is non-blank then no need of any processing.\n{\nfor ( input_symbol_idx = 0;   input_symbol_idx < array_one_length;    input_symbol_idx++ )\n\n{ \n\n\/\/  alert(\" modified substring = \"+modified_substring)\n\n\/\/***********************************************************\n\/\/ if (input_symbol_idx==106) \n\/\/  { alert(\" input_symbol_idx = \"+input_symbol_idx);\n\/\/    alert(\" input_symbol_idx = \"+input_symbol_idx)\n\/\/; alert(\" character =\" + modified_substring.CharCodeAt(input_symbol_idx))\n\/\/     alert(\" character = \"+modified_string.fromCharCode(input_symbol_idx)) \n\/\/   }\n\/\/ if (input_symbol_idx == 107) \n\/\/   { alert(\" input_symbol_idx = \"+input_symbol_idx);\n\/\/    alert(\" character = \",+string.fromCharCode(input_symbol_idx)) \n\/\/   }\n\/\/***********************************************************\nidx = 0  ;  \/\/ index of the symbol being searched for replacement\n\nwhile (idx != -1 ) \/\/while-00\n{\n\nmodified_substring = modified_substring.replace( array_one[ input_symbol_idx ] , array_two[input_symbol_idx] )\nidx = modified_substring.indexOf( array_one[input_symbol_idx] )\n\n} \/\/ end of while-00 loop\n\/\/ alert(\" end of while loop\")\n} \/\/ end of for loop\n\/\/ alert(\" end of for loop\")\n\n\/\/ alert(\" modified substring2 = \"+modified_substring)\n\/\/*******************************************************\nvar position_of_i = modified_substring.indexOf( \"l\" )\n\nwhile ( position_of_i != -1 )  \/\/while-02\n{\nvar charecter_next_to_i = modified_substring.charAt( position_of_i + 1 )\nvar charecter_to_be_replaced = \"l\" + charecter_next_to_i\nmodified_substring = modified_substring.replace( charecter_to_be_replaced , charecter_next_to_i + \"\u093f\" ) \nposition_of_i = modified_substring.search( \/l\/ , position_of_i + 1 ) \/\/ search for i ahead of the current position.\n\n} \/\/ end of while-02 loop\n\n\/\/**********************************************************************************\n\/\/ End of Code for Replacing four Special glyphs\n\/\/**********************************************************************************\n\n\/\/ following loop to eliminate 'chhotee ee kee maatraa' on half-letters as a result of above transformation.\n\nvar position_of_wrong_ee = modified_substring.indexOf( \"\u093f\u094d\" ) \n\nwhile ( position_of_wrong_ee != -1 )  \/\/while-03\n\n{\nvar consonent_next_to_wrong_ee = modified_substring.charAt( position_of_wrong_ee + 2 )\nvar charecter_to_be_replaced = \"\u093f\u094d\" + consonent_next_to_wrong_ee \nmodified_substring = modified_substring.replace( charecter_to_be_replaced , \"\u094d\" + consonent_next_to_wrong_ee + \"\u093f\" ) \nposition_of_wrong_ee = modified_substring.search( \/\u093f\u094d\/ , position_of_wrong_ee + 2 ) \/\/ search for 'wrong ee' ahead of the current position. \n\n} \/\/ end of while-03 loop\n\n\/\/ following loop to eliminate 'chhotee ee kee maatraa' on half-letters as a result of above transformation.\n\nvar position_of_wrong_ee = modified_substring.indexOf( \"\u093f\u0902\u094d\" ) \n\nwhile ( position_of_wrong_ee != -1 )  \/\/while-03\n\n{\nvar consonent_next_to_wrong_ee = modified_substring.charAt( position_of_wrong_ee + 3 )\nvar charecter_to_be_replaced = \"\u093f\u0902\u094d\" + consonent_next_to_wrong_ee \nmodified_substring = modified_substring.replace( charecter_to_be_replaced , \"\u094d\" + consonent_next_to_wrong_ee + \"\u093f\u0902\" ) \nposition_of_wrong_ee = modified_substring.search( \/\u093f\u0902\u094d\/ , position_of_wrong_ee + 3 ) \/\/ search for 'wrong ee' ahead of the current position. \n\n} \/\/ end of while-03 loop\n\n\n\/\/ Eliminating reph \"\u00d4\" and putting 'half - r' at proper position for this.\nset_of_matras = \"\u093e \u093f \u0940 \u0941 \u0942 \u0943 \u0947 \u0948 \u094b \u094c \u0902 : \u0901 \u0945\" \nvar position_of_R = modified_substring.indexOf( \"{\" )\n\nwhile ( position_of_R > 0 )  \/\/ while-04\n{\nprobable_position_of_half_r = position_of_R - 1 ;\nvar charecter_at_probable_position_of_half_r = modified_substring.charAt( probable_position_of_half_r )\n\n\n\/\/ trying to find non-maatra position left to current O (ie, half -r).\n\nwhile ( set_of_matras.match( charecter_at_probable_position_of_half_r ) != null )  \/\/ while-05\n\n{\nprobable_position_of_half_r = probable_position_of_half_r - 1 ;\ncharecter_at_probable_position_of_half_r = modified_substring.charAt( probable_position_of_half_r ) ;\n\n} \/\/ end of while-05\n\n\ncharecter_to_be_replaced = modified_substring.substr ( probable_position_of_half_r , ( position_of_R - probable_position_of_half_r ) ) ;\nnew_replacement_string = \"\u0930\u094d\" + charecter_to_be_replaced ; \ncharecter_to_be_replaced = charecter_to_be_replaced + \"{\" ;\nmodified_substring = modified_substring.replace( charecter_to_be_replaced , new_replacement_string ) ;\nposition_of_R = modified_substring.indexOf( \"{\" ) ;\n\n} \/\/ end of while-04\n\n\/\/ global conversion of punctuation marks\n\/\/    \"=\",\"_\",\"\u00d6\",\"\u00d9\",\"\u2018\",\"\u00da\",\"\u00db\",\"\u00dc\",\"\u00e6\",\"\u00c6\",\"\u00b1\",\"-\",\"<\",  \n\/\/    \".\",\")\",\"=\", \";\",\"\u2026\", \"\u2019\",\"!\",\"%\",\"\u201c\",\"\u201d\",\"+\",\"(\",\"?\",\n\nmodified_substring = modified_substring.replace( \/=\/g , \".\" )   ;  \nmodified_substring = modified_substring.replace( \/_\/g , \")\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00d6\/g , \"=\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00d9\/g , \";\" )   ;  \nmodified_substring = modified_substring.replace( \/\u2026\/g , \"\u2018\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00da\/g , \"\u2019\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00db\/g , \"!\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00dc\/g , \"%\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00e6\/g , \"\u201c\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00c6\/g , \"\u201d\" )   ;  \nmodified_substring = modified_substring.replace( \/\u00b1\/g , \"+\" )   ;  \nmodified_substring = modified_substring.replace( \/-\/g , \"(\" )   ;  \nmodified_substring = modified_substring.replace( \/<\/g , \"?\" )   ;  \n\n} \/\/ end of IF  statement  meant to  supress processing of  blank  string.\n\n} \/\/ end of the function  Replace_Symbols\n\n} \/\/ end of legacy_to_unicode function\n\n<\/script>\n \n<form name=\"form\">\nPaste or type Preeti font: <br\/>\n<textarea style=\"color: green; font-family: preeti; font-size:20px; width: 100%\" id=\"legacy_text\" rows=\"10\" cols=\"\" name=\"TextToConvert\" onkeyup=\"javascript:convert_to_unicode();\"><\/textarea>\n<select id=\"text_or_html\" style=\"display:none;\">\n<option selected=\"selected\">\u092a\u094d\u0930\u0940\u0924\u093f\u0915\u093e \u0905\u0915\u094d\u0937\u0930\u0939\u0930\u0942 \u0928\u0947\u092a\u093e\u0932\u0940 \u092f\u0941\u0928\u093f\u0915\u094b\u0921\u092e\u093e \u0926\u0947\u0916\u093f\u0928\u0947\u091b\u0928\u094d \u0964 <\/option>\n<\/select>\n<br>\n<div class=\"lower_div\"> \n\t<div class=\"spcl_character_wrap\">\n\t\t<div> Copy Unicode from here : \n\t\t<\/div>\n\t\t<div class=\"spcl_character\"><p>Special Characters : \u0930\u094d&zwj;\u092f  \u0930\u094d&zwj;  \u090b \u0960 \u0919 \u091e \u0915\u094d\u0937 \u091c\u094d\u091e \u0950 \u0923 \u0964 <\/p>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<textarea id=\"unicode_text\" style=\"width: 100%; font-size:15px; color: green\" rows=\"12\" cols=\"60\" name=\"ConvertedText\">\n<\/textarea>\n<\/form>\n\n<\/div>\n<\/div>\n<script id=\"erasable\" type=\"text\/javascript\">\ndocument.getElementById('erasable').innerHTML = \"\";\n\n$(document).ready(function(){\n\t$(function() {  \n\t\t$(\"body\").niceScroll({cursorcolor: \"#bd2026\",cursorwidth: \"7px\"});\n\t});\n});\n  \n<\/script>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-136","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PREETI TO UNICODE - karmachari Online<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/karmacharionline.com\/?page_id=136\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PREETI TO UNICODE - karmachari Online\" \/>\n<meta property=\"og:url\" content=\"https:\/\/karmacharionline.com\/?page_id=136\" \/>\n<meta property=\"og:site_name\" content=\"karmachari Online\" \/>\n<meta property=\"og:image\" content=\"https:\/\/karmacharionline.com\/wp-content\/uploads\/2022\/10\/social-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/karmacharionline.com\/?page_id=136\",\"url\":\"https:\/\/karmacharionline.com\/?page_id=136\",\"name\":\"PREETI TO UNICODE - karmachari Online\",\"isPartOf\":{\"@id\":\"https:\/\/karmacharionline.com\/#website\"},\"datePublished\":\"2022-10-12T03:52:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/karmacharionline.com\/?page_id=136#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/karmacharionline.com\/?page_id=136\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/karmacharionline.com\/?page_id=136#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/karmacharionline.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PREETI TO UNICODE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/karmacharionline.com\/#website\",\"url\":\"https:\/\/karmacharionline.com\/\",\"name\":\"karmachari Online\",\"description\":\"\u0938\u094d\u0925\u093e\u092f\u0940 \u0938\u0930\u0915\u093e\u0930\u0915\u094b \u0938\u092e\u094d\u092a\u0941\u0930\u094d\u0923 \u0916\u092c\u0930\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/karmacharionline.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PREETI TO UNICODE - karmachari Online","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/karmacharionline.com\/?page_id=136","og_locale":"en_US","og_type":"article","og_title":"PREETI TO UNICODE - karmachari Online","og_url":"https:\/\/karmacharionline.com\/?page_id=136","og_site_name":"karmachari Online","og_image":[{"width":1280,"height":720,"url":"https:\/\/karmacharionline.com\/wp-content\/uploads\/2022\/10\/social-logo.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/karmacharionline.com\/?page_id=136","url":"https:\/\/karmacharionline.com\/?page_id=136","name":"PREETI TO UNICODE - karmachari Online","isPartOf":{"@id":"https:\/\/karmacharionline.com\/#website"},"datePublished":"2022-10-12T03:52:17+00:00","breadcrumb":{"@id":"https:\/\/karmacharionline.com\/?page_id=136#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/karmacharionline.com\/?page_id=136"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/karmacharionline.com\/?page_id=136#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/karmacharionline.com\/"},{"@type":"ListItem","position":2,"name":"PREETI TO UNICODE"}]},{"@type":"WebSite","@id":"https:\/\/karmacharionline.com\/#website","url":"https:\/\/karmacharionline.com\/","name":"karmachari Online","description":"\u0938\u094d\u0925\u093e\u092f\u0940 \u0938\u0930\u0915\u093e\u0930\u0915\u094b \u0938\u092e\u094d\u092a\u0941\u0930\u094d\u0923 \u0916\u092c\u0930","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/karmacharionline.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/karmacharionline.com\/index.php?rest_route=\/wp\/v2\/pages\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/karmacharionline.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/karmacharionline.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/karmacharionline.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/karmacharionline.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":1,"href":"https:\/\/karmacharionline.com\/index.php?rest_route=\/wp\/v2\/pages\/136\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/karmacharionline.com\/index.php?rest_route=\/wp\/v2\/pages\/136\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/karmacharionline.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}