pw.println("td { text-align: Center; font-size: 200% }");
pw.println("tt { font-size: 50% }");
pw.println("td.miss { background-color: #CCCCFF }");
pw.println("</style></head><body bgcolor='#FFFFFF'>");
Transliterator anyToLatin = Transliterator.getInstance("any-latin");
String testString = "\u0946\u093E";
UnicodeSet failNorm = new UnicodeSet();
Set latinFail = new TreeSet();
for (int i = 0; i < indicScripts.length; ++i) {
if (indicScripts[i] == UScript.LATIN) continue;
String source = names[i];
System.out.println(source);
UnicodeSet sourceChars = sets[i];
for (int j = 0; j < indicScripts.length; ++j) {
if (i == j) continue;
String target = names[j];
Transliterator forward = Transliterator.getInstance(source + '-' + target);
Transliterator backward = forward.getInverse();
UnicodeSetIterator it = new UnicodeSetIterator(sourceChars);
while (it.next()) {
if (lengthMarks.contains(it.codepoint)) continue;
String s = Normalizer.normalize(it.codepoint,Normalizer.NFC,0);
//if (!Normalizer.isNormalized(s,Normalizer.NFC,0)) continue;
if (!s.equals(Normalizer.normalize(s,Normalizer.NFD,0))) {
failNorm.add(it.codepoint);
}
String t = fix(forward.transliterate(s));
if (t.equals(testString)) {
System.out.println("debug");
}
String r = fix(backward.transliterate(t));
if (Normalizer.compare(s,r,0) == 0) {
if (indicScripts[j] != UScript.LATIN) eq.add(s,t);
} else {
if (indicScripts[j] == UScript.LATIN) {
latinFail.add(s + " - " + t + " - " + r);