|
From: G K. <kar...@us...> - 2006-02-07 20:28:33
|
Update of /cvsroot/indlinux/tdata/hi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26538 Added Files: DevComb.java DevCombhtml.java Log Message: Java source used to generate the combinations --- NEW FILE: DevComb.java --- import java.io.*; class DevComb { static char[] charlist = { '\u0901', '\u0902', '\u0903', '\u0905', '\u0906', '\u0907', '\u0908', '\u0909', '\u090A', '\u090B', '\u090C', '\u090D', '\u090E', '\u090F', '\u0910', '\u0911', '\u0912', '\u0913', '\u0914', '\u0915', '\u0916', '\u0917', '\u0918', '\u0919', '\u091A', '\u091B', '\u091C', '\u091D', '\u091E', '\u091F', '\u0920', '\u0921', '\u0922', '\u0923', '\u0924', '\u0925', '\u0926', '\u0927', '\u0928', '\u0929', '\u092A', '\u092B', '\u092C', '\u092D', '\u092E', '\u092F', '\u0930', '\u0931', '\u0932', '\u0933', '\u0934', '\u0935', '\u0936','\u0937', '\u0938', '\u0939', '\u200C', '\u200C', '\u093E', '\u093F', '\u0940', '\u0941', '\u0942', '\u0943', '\u0946', '\u0947', '\u0948', '\u0945', '\u094A', '\u094B', '\u094C', '\u0949', '\u094D', '\u093C', '\u0964', '\u0966', '\u0967', '\u0968', '\u0969', '\u096A', '\u096B', '\u096C', '\u096D', '\u096E', '\u096F'}; public static void main(String args[]) throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("dev.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); for (i=0; i<charlist.length ; i++) { for (j=0; j<charlist.length; j++) { str = "\t" + charlist[i] + charlist[j] + "\t"; osw.write(str, 0, str.length()); } osw.write('\n'); } osw.close(); AllChars(); ConsVowel(); ConsCons(); Kavarg(); Chavarg(); Tavarg(); Thavarg(); Pavarg(); Miscvarg(); System.out.println("Done!"); } public static void AllChars() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("allcharsl.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("The basic vowels \n"); for (i=3; i<=18; i++) { str = "\t" + charlist[i] + "\n"; osw.write(str, 0, str.length()); } osw.write("The consonants \n"); for (i=19; i<=55; i++) { str = "\t" + charlist[i] + "\n"; osw.write(str, 0, str.length()); } osw.write("Matras \n"); for (i=58; i<=71; i++) { str = "\t" + charlist[i] + "\n"; osw.write(str, 0, str.length()); } osw.close(); System.out.println("Done all combinations\n"); } public static void ConsVowel() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("con2vowel.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Consonants with vowels \n"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); str = "\t" + charlist[i] + charlist[0] + "\t"; osw.write(str, 0, str.length()); str = "\t" + charlist[i] + charlist[1] + "\t"; osw.write(str, 0, str.length()); str = "\t" + charlist[i] + charlist[2] + "\t"; osw.write(str, 0, str.length()); for (j=58; j<=71; j++) { str = "\t" + charlist[i] + charlist[j] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void ConsCons() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("con2cons.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of all consonants (typed as) cons halant cons \n"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=19; j<=55; j++) { str = "\t" + charlist[i] + charlist[72] + charlist[j] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Kavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("kavarg.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of "+charlist[19]+" varg :(typed as) cons halant cons \n\t"); for (j=19; j<=23; j++) osw.write("\t"+charlist[j]+"\t"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=19; j<=23; j++) { str = "\t" + charlist[j] + charlist[72] + charlist[i] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Chavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("chavarg.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of "+charlist[24] +" varg :(typed as) cons halant cons \n\t"); for (j=24; j<=28; j++) osw.write("\t"+charlist[j]+"\t"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=24; j<=28; j++) { str = "\t" + charlist[j] + charlist[72] + charlist[i] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Tavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("tavarg.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of "+charlist[29]+" varg :(typed as) cons halant cons \n\t"); for (j=29; j<=33; j++) osw.write("\t"+charlist[j]+"\t"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=29; j<=33; j++) { str = "\t" + charlist[j] + charlist[72] + charlist[i] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Thavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("thavarg.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of "+charlist[34]+" varg :(typed as) cons halant cons \n\t"); for (j=34; j<=39; j++) osw.write("\t"+charlist[j]+"\t"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=34; j<=39; j++) { str = "\t" + charlist[j] + charlist[72] + charlist[i] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Pavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("pavarg.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of "+charlist[40]+" varg :(typed as) cons halant cons \n\t"); for (j=40; j<=44; j++) osw.write("\t"+charlist[j]+"\t"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=40; j<=44; j++) { str = "\t" + charlist[j] + charlist[72] + charlist[i] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Miscvarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("miscvarg.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of "+charlist[45]+" varg :(typed as) cons halant cons \n\t"); for (j=45; j<=55; j++) osw.write("\t"+charlist[j]+"\t"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=45; j<=55; j++) { str = "\t" + charlist[j] + charlist[72] + charlist[i] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } } --- NEW FILE: DevCombhtml.java --- import java.io.*; class DevCombhtml { static char[] charlist = { '\u0901', '\u0902', '\u0903', '\u0905', '\u0906', '\u0907', '\u0908', '\u0909', '\u090A', '\u090B', '\u090C', '\u090D', '\u090E', '\u090F', '\u0910', '\u0911', '\u0912', '\u0913', '\u0914', '\u0915', '\u0916', '\u0917', '\u0918', '\u0919', '\u091A', '\u091B', '\u091C', '\u091D', '\u091E', '\u091F', '\u0920', '\u0921', '\u0922', '\u0923', '\u0924', '\u0925', '\u0926', '\u0927', '\u0928', '\u0929', '\u092A', '\u092B', '\u092C', '\u092D', '\u092E', '\u092F', '\u0930', '\u0931', '\u0932', '\u0933', '\u0934', '\u0935', '\u0936','\u0937', '\u0938', '\u0939', '\u200C', '\u200C', '\u093E', '\u093F', '\u0940', '\u0941', '\u0942', '\u0943', '\u0946', '\u0947', '\u0948', '\u0945', '\u094A', '\u094B', '\u094C', '\u0949', '\u094D', '\u093C', '\u0964', '\u0966', '\u0967', '\u0968', '\u0969', '\u096A', '\u096B', '\u096C', '\u096D', '\u096E', '\u096F'}; public static void main(String args[]) throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("dev.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); for (i=0; i<charlist.length ; i++) { for (j=0; j<charlist.length; j++) { str = "\t" + charlist[i] + charlist[j] + "\t"; osw.write(str, 0, str.length()); } osw.write('\n'); } osw.close(); AllChars(); ConsVowel(); ConsCons(); Kavarg(); Chavarg(); Taavarg(); Thaavarg(); Pavarg(); yaavarg(); System.out.println("Done!"); } public static void AllChars() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("allcharsl.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("The basic vowels \n"); for (i=3; i<=18; i++) { str = "\t" + charlist[i] + "\n"; osw.write(str, 0, str.length()); } osw.write("The consonants \n"); for (i=19; i<=55; i++) { str = "\t" + charlist[i] + "\n"; osw.write(str, 0, str.length()); } osw.write("Matras \n"); for (i=58; i<=71; i++) { str = "\t" + charlist[i] + "\n"; osw.write(str, 0, str.length()); } osw.close(); System.out.println("Done all combinations\n"); } public static void ConsVowel() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("con2vowel.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Consonants with vowels \n"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=58; j<=71; j++) { str = "\t" + charlist[i] + charlist[j] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void ConsCons() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("con2cons.utf8"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); osw.write("Conjuncts of all consonants (typed as) cons halant cons \n"); for(i=19; i<= 55; i++) { osw.write("\n\t"+charlist[i]); for (j=19; j<=55; j++) { str = "\t" + charlist[i] + charlist[72] + charlist[j] + "\t"; osw.write(str, 0, str.length()); } } osw.close(); } public static void Kavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("kavargutf8.html"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); // Write the HTML header osw.write("<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); osw.write("<title>Ka varg Conjuncts</title></head>\n"); osw.write("<body>"); osw.write("<h1>Conjuncts of "+charlist[19]+" varg :(typed as) cons halant cons <h1><br><br>\n"); // Write output in tabular form osw.write("<table border=\"3\" cellspacing=\"2\" cellpadding=\"4\">\n"); // table heading osw.write("<th>"); for (j=19; j<=23; j++) osw.write("<td>"+charlist[j]+"</td>"); osw.write("</th>\n"); for(i=19; i<= 55; i++) { osw.write("<tr><td>"+charlist[i] + "</td>"); for (j=19; j<=23; j++) { str = "<td>" + charlist[j] + charlist[72] + charlist[i] + "</td>"; osw.write(str, 0, str.length()); } osw.write("</tr>\n"); } osw.write("</table>\n</body>\n</html>"); osw.close(); } public static void Chavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("chavargutf8.html"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); // Write the HTML header osw.write("<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); osw.write("<title>Cha varg Conjuncts</title></head>\n"); osw.write("<body>"); osw.write("<h1>Conjuncts of "+charlist[24]+" varg :(typed as) cons halant cons <h1><br><br>\n"); // Write output in tabular form osw.write("<table border=\"3\" cellspacing=\"2\" cellpadding=\"4\">\n"); // table heading osw.write("<th>"); for (j=24; j<=28; j++) osw.write("<td>"+charlist[j]+"</td>"); osw.write("</th>\n"); for(i=19; i<= 55; i++) { osw.write("<tr><td>"+charlist[i] + "</td>"); for (j=24; j<=28; j++) { str = "<td>" + charlist[j] + charlist[72] + charlist[i] + "</td>"; osw.write(str, 0, str.length()); } osw.write("</tr>\n"); } osw.write("</table>\n</body>\n</html>"); osw.close(); } public static void Taavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("taavargutf8.html"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); // Write the HTML header osw.write("<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); osw.write("<title>ta varg Conjuncts</title></head>\n"); osw.write("<body>"); osw.write("<h1>Conjuncts of "+charlist[29]+" varg :(typed as) cons halant cons <h1><br><br>\n"); // Write output in tabular form osw.write("<table border=\"3\" cellspacing=\"2\" cellpadding=\"4\">\n"); // table heading osw.write("<th>"); for (j=29; j<=33; j++) osw.write("<td>"+charlist[j]+"</td>"); osw.write("</th>\n"); for(i=19; i<= 55; i++) { osw.write("<tr><td>"+charlist[i] + "</td>"); for (j=29; j<=33; j++) { str = "<td>" + charlist[j] + charlist[72] + charlist[i] + "</td>"; osw.write(str, 0, str.length()); } osw.write("</tr>\n"); } osw.write("</table>\n</body>\n</html>"); osw.close(); } public static void Thaavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("thaavargutf8.html"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); // Write the HTML header osw.write("<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); osw.write("<title>Tha varg Conjuncts</title></head>\n"); osw.write("<body>"); osw.write("<h1>Conjuncts of "+charlist[34]+" varg :(typed as) cons halant cons <h1><br><br>\n"); // Write output in tabular form osw.write("<table border=\"3\" cellspacing=\"2\" cellpadding=\"4\">\n"); // table heading osw.write("<th>"); for (j=34; j<=39; j++) osw.write("<td>"+charlist[j]+"</td>"); osw.write("</th>\n"); for(i=19; i<= 55; i++) { osw.write("<tr><td>"+charlist[i] + "</td>"); for (j=34; j<=39; j++) { str = "<td>" + charlist[j] + charlist[72] + charlist[i] + "</td>"; osw.write(str, 0, str.length()); } osw.write("</tr>\n"); } osw.write("</table>\n</body>\n</html>"); osw.close(); } public static void Pavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("pavargutf8.html"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); // Write the HTML header osw.write("<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); osw.write("<title>Pa varg Conjuncts</title></head>\n"); osw.write("<body>"); osw.write("<h1>Conjuncts of "+charlist[40]+" varg :(typed as) cons halant cons <h1><br><br>\n"); // Write output in tabular form osw.write("<table border=\"3\" cellspacing=\"2\" cellpadding=\"4\">\n"); // table heading osw.write("<th>"); for (j=40; j<=44; j++) osw.write("<td>"+charlist[j]+"</td>"); osw.write("</th>\n"); for(i=19; i<= 55; i++) { osw.write("<tr><td>"+charlist[i] + "</td>"); for (j=40; j<=44; j++) { str = "<td>" + charlist[j] + charlist[72] + charlist[i] + "</td>"; osw.write(str, 0, str.length()); } osw.write("</tr>\n"); } osw.write("</table>\n</body>\n</html>"); osw.close(); } public static void yaavarg() throws IOException { int i,j; String str; FileOutputStream fos = new FileOutputStream("yaavargutf8.html"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); // Write the HTML header osw.write("<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); osw.write("<title>Ya varg Conjuncts</title></head>\n"); osw.write("<body>"); osw.write("<h1>Conjuncts of "+charlist[45]+" varg :(typed as) cons halant cons <h1><br><br>\n"); // Write output in tabular form osw.write("<table border=\"3\" cellspacing=\"2\" cellpadding=\"4\">\n"); // table heading osw.write("<th>"); for (j=45; j<=55; j++) osw.write("<td>"+charlist[j]+"</td>"); osw.write("</th>\n"); for(i=19; i<= 55; i++) { osw.write("<tr><td>"+charlist[i] + "</td>"); for (j=45; j<=55; j++) { str = "<td>" + charlist[j] + charlist[72] + charlist[i] + "</td>"; osw.write(str, 0, str.length()); } osw.write("</tr>\n"); } osw.write("</table>\n</body>\n</html>"); osw.close(); } } |