आप इस परिवर्तक से देवनागरी को ब्राह्मी या ब्राहमी लिपि को देवनागरी में बदल सकते हैं पर शब्द देखने रे लिए ब्राम्ही फांट की जरूरत होगी जिसे आप यहां क्लिक कर डाउनलोड कर स्थापित कर सकते हैं
{source}
<!-- You can place html anywhere within the source tags -->
<title><html>
<head><B><Font color = darkblue><CENTER>देवनागरी <==> ब्राह्मी लिपि परिवर्तक (28-02-2013)</font></B> </title>
<script type="text/javascript">
function convert_to_Devanagari()
{
var array_one = new Array(
'\uD804\uDC00' , '\uD804\uDC01' , '\uD804\uDC02' ,
//'\uD804\uDC03' , '\uD804\uDC04' ,
'\uD804\uDC05' , '\uD804\uDC06' , '\uD804\uDC07' , '\uD804\uDC08' , '\uD804\uDC09' ,
'\uD804\uDC0A' , '\uD804\uDC0B' , '\uD804\uDC0C' , '\uD804\uDC0D' , '\uD804\uDC0E' ,
'\uD804\uDC0F' , '\uD804\uDC10' , '\uD804\uDC11' , '\uD804\uDC12' ,
'\uD804\uDC13' , '\uD804\uDC14' , '\uD804\uDC15' , '\uD804\uDC16' , '\uD804\uDC17' ,
'\uD804\uDC18' , '\uD804\uDC19' , '\uD804\uDC1A' , '\uD804\uDC1B' , '\uD804\uDC1C' ,
'\uD804\uDC1D' , '\uD804\uDC1E' , '\uD804\uDC1F' , '\uD804\uDC20' , '\uD804\uDC21' ,
'\uD804\uDC22' , '\uD804\uDC23' , '\uD804\uDC24' , '\uD804\uDC25' , '\uD804\uDC26' ,
'\uD804\uDC27' , '\uD804\uDC28' , '\uD804\uDC29' , '\uD804\uDC2A' , '\uD804\uDC2B' ,
'\uD804\uDC2C' , '\uD804\uDC2D' , '\uD804\uDC2E' , '\uD804\uDC2F' , '\uD804\uDC30' ,
'\uD804\uDC31' , '\uD804\uDC32' , '\uD804\uDC33' , '\uD804\uDC34' ,
//'\uD804\uDC35' , '\uD804\uDC36' , '\uD804\uDC37' ,
'\uD804\uDC38' ,
//'\uD804\uDC39' ,
'\uD804\uDC3A' , '\uD804\uDC3B' , '\uD804\uDC3C' , '\uD804\uDC3D' , '\uD804\uDC3E' , '\uD804\uDC3F' , '\uD804\uDC40' , '\uD804\uDC41' , '\uD804\uDC42' , '\uD804\uDC43' , '\uD804\uDC44' , '\uD804\uDC45' ,
'\uD804\uDC46' , '\uD804\uDC47' , '\uD804\uDC48' ,
//'\uD804\uDC49' , '\uD804\uDC4A' , '\uD804\uDC4B' , '\uD804\uDC4C' , '\uD804\uDC4D' ,
//'\uD804\uDC52' , '\uD804\uDC53' , '\uD804\uDC54' , '\uD804\uDC55' , '\uD804\uDC56' ,
//'\uD804\uDC57' , '\uD804\uDC58' , '\uD804\uDC59' , '\uD804\uDC5A' ,
'\uD804\uDC5B' , '\uD804\uDC5C' , '\uD804\uDC5D' , '\uD804\uDC5E' , '\uD804\uDC5F' ,
'\uD804\uDC60' , '\uD804\uDC61' , '\uD804\uDC62' , '\uD804\uDC63' , '\uD804\uDC64' ,
'\uD804\uDC65' ,
'\uD804\uDC66' , '\uD804\uDC67' , '\uD804\uDC68' , '\uD804\uDC69' , '\uD804\uDC6A' ,
'\uD804\uDC6B' , '\uD804\uDC6C' , '\uD804\uDC6D' , '\uD804\uDC6E' , '\uD804\uDC6F'
)
var array_two = new Array(
'ँ' , 'ं' , 'ः' ,
// '' , '' ,
'अ' , 'आ' , 'इ' , 'ई' , 'उ' , 'ऊ' , 'ऋ' , 'ॠ' , 'लृ' , 'लॄ' , 'ए' , 'ऐ' , 'ओ' , 'औ' ,
'क' , 'ख' , 'ग' , 'घ' , 'ङ' , 'च' , 'छ' , 'ज' , 'झ' , 'ञ' ,
'ट' , 'ठ' , 'ड' , 'ढ' , 'ण' , 'त' , 'थ' , 'द' , 'ध' , 'न' ,
'प' , 'फ' , 'ब' , 'भ' , 'म' , 'य' , 'र' , 'ल' , 'व' , 'श' ,
'ष' , 'स' , 'ह' , 'ळ' ,
// '' , '' , '' ,
'ा' ,
// '' ,
'ि' , 'ी' , 'ु' , 'ू' , 'ृ' ,
'ॄ' , 'ॢ' , 'ॣ' , 'े' , 'ै' ,
'ो' , 'ौ' ,
'्' , '।' , '॥' ,
//'' , '' , '' , '' , '' ,
//'' , '' , '' , '' , '' ,
//'' , '' , '' , '' ,
'१०' , '२०' , '३०' , '४०' , '५०' ,
'६०' , '७०' , '८०' , '९०' , '१००' ,
'१०००' ,
'०' , '१' , '२' , '३' , '४' ,
'५' , '६' , '७' , '८' , '९'
)
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 ;
document.getElementById("Devanagari_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 Brahmi_to_Devanagari function
//*******************************************************************************
function Convert_to_Brahmi()
{
var array_one = new Array(
"ँ" , "\uD804\uDC00" ,
"ं" , "\uD804\uDC01" ,
"ः" , "\uD804\uDC02" ,
"अ" , "\uD804\uDC05" ,
"आ" , "\uD804\uDC06" ,
"इ" , "\uD804\uDC07" ,
"ई" , "\uD804\uDC08" ,
"उ" , "\uD804\uDC09" ,
"ऊ" , "\uD804\uDC0A" ,
"ऋ" , "\uD804\uDC0B" ,
"ॠ" , "\uD804\uDC0C" ,
"लृ" , "\uD804\uDC0D" ,
"लॄ" , "\uD804\uDC0E" ,
"ए" , "\uD804\uDC0F" ,
"ऐ" , "\uD804\uDC10" ,
"ओ" , "\uD804\uDC11" ,
"औ" , "\uD804\uDC12" ,
"क" , "\uD804\uDC13" ,
"ख" , "\uD804\uDC14" ,
"ग" , "\uD804\uDC15" ,
"घ" , "\uD804\uDC16" ,
"ङ" , "\uD804\uDC17" ,
"च" , "\uD804\uDC18" ,
"छ" , "\uD804\uDC19" ,
"ज" , "\uD804\uDC1A" ,
"झ" , "\uD804\uDC1B" ,
"ञ" , "\uD804\uDC1C" ,
"ट" , "\uD804\uDC1D" ,
"ठ" , "\uD804\uDC1E" ,
"ड" , "\uD804\uDC1F" ,
"ढ" , "\uD804\uDC20" ,
"ण" , "\uD804\uDC21" ,
"त" , "\uD804\uDC22" ,
"थ" , "\uD804\uDC23" ,
"द" , "\uD804\uDC24" ,
"ध" , "\uD804\uDC25" ,
"न" , "\uD804\uDC26" ,
"प" , "\uD804\uDC27" ,
"फ" , "\uD804\uDC28" ,
"ब" , "\uD804\uDC29" ,
"भ" , "\uD804\uDC2A" ,
"म" , "\uD804\uDC2B" ,
"य" , "\uD804\uDC2C" ,
"र" , "\uD804\uDC2D" ,
"ल" , "\uD804\uDC2E" ,
"व" , "\uD804\uDC2F" ,
"श" , "\uD804\uDC30" ,
"ष" , "\uD804\uDC31" ,
"स" , "\uD804\uDC32" ,
"ह" , "\uD804\uDC33" ,
"ळ" , "\uD804\uDC34" ,
"ा" , "\uD804\uDC38" ,
"ि" , "\uD804\uDC3A" ,
"ी" , "\uD804\uDC3B" ,
"ु" , "\uD804\uDC3C" ,
"ू" , "\uD804\uDC3D" ,
"ृ" , "\uD804\uDC3E" ,
"ॄ" , "\uD804\uDC3F" ,
"ॢ" , "\uD804\uDC40" ,
"ॣ" , "\uD804\uDC41" ,
"े" , "\uD804\uDC42" ,
"ै" , "\uD804\uDC43" ,
"ो" , "\uD804\uDC44" ,
"ौ" , "\uD804\uDC45" ,
"्" , "\uD804\uDC46" ,
"।" , "\uD804\uDC47" ,
"॥" , "\uD804\uDC48" ,
"१०००" , "\uD804\uDC65" ,
"१००" , "\uD804\uDC64" ,
"१०" , "\uD804\uDC5B" ,
"२०" , "\uD804\uDC5C" ,
"३०" , "\uD804\uDC5D" ,
"४०" , "\uD804\uDC5E" ,
"५०" , "\uD804\uDC5F" ,
"६०" , "\uD804\uDC60" ,
"७०" , "\uD804\uDC61" ,
"८०" , "\uD804\uDC62" ,
"९०" , "\uD804\uDC63" ,
"०" , "\uD804\uDC66" ,
"१" , "\uD804\uDC67" ,
"२" , "\uD804\uDC68" ,
"३" , "\uD804\uDC69" ,
"४" , "\uD804\uDC6A" ,
"५" , "\uD804\uDC6B" ,
"६" , "\uD804\uDC6C" ,
"७" , "\uD804\uDC6D" ,
"८" , "\uD804\uDC6E" ,
"९" , "\uD804\uDC6F" )
var array_one_length = array_one.length ;
var modified_substring = document.getElementById("Devanagari_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("Devanagari_text").value.charAt ( sthiti2 ) != ' ') {sthiti2--;}
}
else { sthiti2 = text_size ; chale_chalo = 0 }
var modified_substring = document.getElementById("Devanagari_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 != "" )
{
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
} // end of IF statement meant to supress processing of blank string.
} // end of the function Replace_Symbols( )
} // end of Convert_Devanagari_to_Brahmi function
</script>
</head>
<!-- ----------------------------------------------------------------------------------
body of the HTML starts here. one text box is provided each for input and output.
-->
<BODY bgColor='yellow'><CENTER>
<form name="form1"><br>
<b>देवनागरी</b> शब्दपट<br/>
<textarea name="ConvertedText" id="Devanagari_text" cols="92" rows="7"></textarea>
<br />
<div align="middle">
<input type="button" id="converter" name="converter" value="ब्राम्ही में परिवर्तित करें >> " onClick="Convert_to_Brahmi();" accesskey="c"
</div><br><br>
<b>ब्राम्ही</b>शब्दपट<br/>
<textarea name="TextToConvert" id="legacy_text" cols="92" rows="7"></textarea> <br>
<div align="middle">
<input type="button" name="converter" id="converter" value=" देवनागरी में परिवर्तित करें >> " onClick="convert_to_Devanagari();" accesskey="c" title="शॉर्टकट alt+c">
</div> <br>
</form>
</body>
</html></br></input></br></br></br></br></input></br><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- dosti -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-6360833907817549"
data-ad-slot="5764655913"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></br></br></center></array_one_length></script></center>
<script language="javascript" type="text/javascript">
// You can place JavaScript like this
</script>
<?php
// You can place PHP like this
?>
{/source}