Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package gssmurthy;
import java.io.*;
class Maatraa5d
{/*1*//*When a quarter of a Sanskrit stanza is input in Roman script as per "baraha" transliteration scheme, this program scans the input, identifies the vRutta (metre) and outputs the name of the vRutta*/
public static void main(String args[])
{/*2*/String string1=new String();/*create a string object */
String stringOut=new String();
System.out.println(" When a quarter of a Sanskrit stanza is input in Roman script"+('\n')+
" as per 'baraha' transliteration scheme,"+('\n')+
" this program, called MAATRAA, scans the input, identifies the vRutta (metre) and outputs the name of the vRutta"+('\n')+
" The baraha4.0 transliteration scheme, as per devanaagaree alphabetical order is, as follows"+('\n')+
" svara: a, aa or A, i, ee or I, u, uu or U, Ru, RU, lRu, e, ai, o, ou"+('\n')+
" anusvaara: m, visarga: h"+('\n')+
" vya~Jjana: ka varga: k, kh or K, g, gh or G, ~G"+('\n')+
" ca varga: c, ch or C, j, jh or J, ~J"+('\n')+
" Ta varga: T, Th, D, Dh, N"+('\n')+
" ta varga: t, th, d, dh, n"+('\n')+
" pa varga: p, ph or P, b, bh or B, M"+('\n')+
" antasTha: y, r, l,v"+('\n')+
" uuShmaa: S, Sh, s, h" +('\n')+
" anunaasika: ~M"+('\n')+
" (NOTE: G.S.S.MURTHY HAS THE COPYRIGHT FOR THIS PROGRAM :"+('\n')+
" E-mail:[email protected])"+('\n'));
for (int w=0; ;w++)
section1:{try/*i/o interaction through monitor*/
{/*4*/System.out.println("Pl enter a quarter of a Sanskrit stanza in Roman script as per 'baraha'");
System.out.println("transliteration scheme given above. If you want to quit the program enter QUIT ."+('\n'));
System.out.flush();
DataInputStream in=new DataInputStream(System.in);
string1=in.readLine();/* Input is string1*/
if (string1.equals("QUIT"))
{break;
}
}/*-4*/
catch(IOException e)
{/*5*/System.out.println("I/O/error");
System.exit(1);
}/*-5*/
String svara1[]={"a","e","u","a","o","R","R","k","g","~","c","j","~","t","d","p","b","S","w","q"};
String svara2[]={"a","e","u","i","u","u","U","h","h","G","h","h","J","h","h","h","h","h","h","h"};
String svarep[]={"A","I","U","E","O","Z","X","K","G","q","C","J","Q","T","D","P","B","x","W","Q"};
int pad=0;
int n1=string1.length();/* compute length of string1*/
if (n1<3)
{/*5.1*/string1=string1.concat("111");
pad=1;
n1=n1+3;
}/*-5.1*/
int n4=n1;
int space[]=new int[n4];
int count1=0;
String varNa[]=new String[n1];
String step[]=new String[n1+1];
for (int i=0;i