TM->TMW and TMW->TM conversion in RTF is now supported. I've
noticed that formatting is mostly OK but sometimes gets bungled slightly. I tried everything I could think of, and now I'm passing the buck to Java's RTF support. TMW_RTF_TO_THDL_WYLIE (now misnamed) support TMW->TM conversion (but not TM->TMW). There is an automated test case for a TMW->TM conversion. I have full confidence in this conversion. Even the smallest glitch in the core functionality (not formatting) would surprise me. Note that the JUnit test TMW_RTF_TO_THDL_WYLIETest sometimes fails due to one- or two-line diffs between the actual and expected outputs. This is because Java's RTF support is not deterministic, I'm guessing, and is not a real failure. I'm too lazy to make a more elaborate sed/diff mechanism that works on all platforms, and that would complicate the build anyway.
This commit is contained in:
parent
56d5ac7210
commit
0235263ddf
8 changed files with 416 additions and 103 deletions
|
@ -323,7 +323,25 @@ public class Jskad extends JPanel implements DocumentListener {
|
||||||
});
|
});
|
||||||
toolsMenu.addSeparator();
|
toolsMenu.addSeparator();
|
||||||
toolsMenu.add(importItem);
|
toolsMenu.add(importItem);
|
||||||
}
|
|
||||||
|
JMenuItem toTMItem = new JMenuItem("Convert TMW to TM"); // DLC FIXME: do it just in the selection?
|
||||||
|
toTMItem.addActionListener(new ThdlActionListener() {
|
||||||
|
public void theRealActionPerformed(ActionEvent e) {
|
||||||
|
((TibetanDocument)dp.getDocument()).convertToTM(0, -1); // entire document
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
JMenuItem toTMWItem = new JMenuItem("Convert TM to TMW"); // DLC FIXME: do it just in the selection?
|
||||||
|
toTMWItem.addActionListener(new ThdlActionListener() {
|
||||||
|
public void theRealActionPerformed(ActionEvent e) {
|
||||||
|
((TibetanDocument)dp.getDocument()).convertToTMW(0, -1); // entire document
|
||||||
|
}
|
||||||
|
});
|
||||||
|
toolsMenu.addSeparator();
|
||||||
|
toolsMenu.add(toTMItem);
|
||||||
|
toolsMenu.add(toTMWItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ThdlOptions.getBooleanOption("thdl.add.developer.options.to.menu")) {
|
if (ThdlOptions.getBooleanOption("thdl.add.developer.options.to.menu")) {
|
||||||
toolsMenu.addSeparator();
|
toolsMenu.addSeparator();
|
||||||
|
@ -338,7 +356,7 @@ public class Jskad extends JPanel implements DocumentListener {
|
||||||
|
|
||||||
if (ThdlOptions.getBooleanOption("thdl.add.developer.options.to.menu")) {
|
if (ThdlOptions.getBooleanOption("thdl.add.developer.options.to.menu")) {
|
||||||
toolsMenu.addSeparator();
|
toolsMenu.addSeparator();
|
||||||
JMenuItem DevelItem = new JMenuItem("Check for non-TMW characters"); // DLC NOW: do it just in the selection
|
JMenuItem DevelItem = new JMenuItem("Check for non-TMW characters"); // FIXME: do it just in the selection?
|
||||||
DevelItem.addActionListener(new ThdlActionListener() {
|
DevelItem.addActionListener(new ThdlActionListener() {
|
||||||
public void theRealActionPerformed(ActionEvent e) {
|
public void theRealActionPerformed(ActionEvent e) {
|
||||||
((TibetanDocument)dp.getDocument()).findSomeNonTMWCharacters(0, -1); // entire document.
|
((TibetanDocument)dp.getDocument()).findSomeNonTMWCharacters(0, -1); // entire document.
|
||||||
|
@ -347,17 +365,6 @@ public class Jskad extends JPanel implements DocumentListener {
|
||||||
toolsMenu.add(DevelItem);
|
toolsMenu.add(DevelItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ThdlOptions.getBooleanOption("thdl.add.developer.options.to.menu")) {
|
|
||||||
toolsMenu.addSeparator();
|
|
||||||
JMenuItem DevelItem = new JMenuItem("Fix curly braces RTF problem"); // DLC NOW: do it just in the selection
|
|
||||||
DevelItem.addActionListener(new ThdlActionListener() {
|
|
||||||
public void theRealActionPerformed(ActionEvent e) {
|
|
||||||
((TibetanDocument)dp.getDocument()).replaceTahomaCurlyBracesAndBackslashes(0, -1); // entire document
|
|
||||||
}
|
|
||||||
});
|
|
||||||
toolsMenu.add(DevelItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
menuBar.add(toolsMenu);
|
menuBar.add(toolsMenu);
|
||||||
|
|
||||||
JMenu infoMenu = new JMenu("Info");
|
JMenu infoMenu = new JMenu("Info");
|
||||||
|
@ -401,11 +408,11 @@ public class Jskad extends JPanel implements DocumentListener {
|
||||||
new SimpleFrame(kbd.getIdentifyingString(),
|
new SimpleFrame(kbd.getIdentifyingString(),
|
||||||
kbd.getQuickRefPane());
|
kbd.getQuickRefPane());
|
||||||
/* DLC FIXME -- pressing the "Extended
|
/* DLC FIXME -- pressing the "Extended
|
||||||
Wylie" menu item twice causes the first
|
Wylie" menu item (for example) twice
|
||||||
pane to become dead. We should check
|
causes the first pane to become dead.
|
||||||
to see if the first pane exists and
|
We should check to see if the first
|
||||||
raise it rather than creating a second
|
pane exists and raise it rather than
|
||||||
pane. */
|
creating a second pane. */
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
infoMenu.add(keybdItem);
|
infoMenu.add(keybdItem);
|
||||||
|
@ -420,11 +427,11 @@ public class Jskad extends JPanel implements DocumentListener {
|
||||||
public void theRealActionPerformed(ActionEvent e) {
|
public void theRealActionPerformed(ActionEvent e) {
|
||||||
JOptionPane.showMessageDialog(Jskad.this,
|
JOptionPane.showMessageDialog(Jskad.this,
|
||||||
"Copyright 2001-2003 Tibetan and Himalayan Digital Library\n\n"+
|
"Copyright 2001-2003 Tibetan and Himalayan Digital Library\n\n"+
|
||||||
"Jskad is protected by the THDL Open Community License.\n\n"+ /* FIXME HARD-CODED VERSION NUMBER */
|
"Jskad is protected by the THDL Open Community License.\n\n"+ /* FIXME UPDATE THE YEAR REGULARLY */
|
||||||
|
|
||||||
"For more information, or to download the source code\n"+
|
"For more information, or to download the source code\n"+
|
||||||
"for Jskad, visit our web site:\n"+
|
"for Jskad, visit our web site:\n"+
|
||||||
" http://www.thdl.org/\n" +
|
" http://thdl.org/\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"When submitting bug reports, please indicate that the\n" +
|
"When submitting bug reports, please indicate that the\n" +
|
||||||
"time of compilation is "
|
"time of compilation is "
|
||||||
|
|
|
@ -23,11 +23,14 @@ import java.io.*;
|
||||||
import org.thdl.util.*;
|
import org.thdl.util.*;
|
||||||
import org.thdl.tib.text.*;
|
import org.thdl.tib.text.*;
|
||||||
|
|
||||||
/**
|
/** DLC FIXME: this is misnamed and it doesn't allow for TM->TMW conversion.
|
||||||
|
*
|
||||||
* TMW_RTF_TO_THDL_WYLIE is a command-line utility for converting TMW
|
* TMW_RTF_TO_THDL_WYLIE is a command-line utility for converting TMW
|
||||||
* to Wylie. It is a TibetanMachineWeb-in-RichTextFormat to THDL
|
* to Wylie or to Tibetan Machine. It is a
|
||||||
* Extended Wylie converter, more specifically. Invoke it with no
|
* TibetanMachineWeb-in-RichTextFormat to your choice of
|
||||||
* parameters for usage information.
|
* TibetanMachine-in-RichTextFormat or THDL Extended
|
||||||
|
* Wylie-in-RichTextFormat converter, more specifically. Invoke it
|
||||||
|
* with no parameters for usage information.
|
||||||
* @author David Chandler */
|
* @author David Chandler */
|
||||||
public class TMW_RTF_TO_THDL_WYLIE {
|
public class TMW_RTF_TO_THDL_WYLIE {
|
||||||
static final String rtfErrorMessage
|
static final String rtfErrorMessage
|
||||||
|
@ -48,19 +51,25 @@ public class TMW_RTF_TO_THDL_WYLIE {
|
||||||
* @return the exit code. */
|
* @return the exit code. */
|
||||||
public static int realMain(String[] args, PrintStream out) {
|
public static int realMain(String[] args, PrintStream out) {
|
||||||
try {
|
try {
|
||||||
|
boolean convertToTMMode = false;
|
||||||
|
boolean convertToWylieMode = false;
|
||||||
boolean findSomeNonTMWMode = false;
|
boolean findSomeNonTMWMode = false;
|
||||||
boolean findAllNonTMWMode = false;
|
boolean findAllNonTMWMode = false;
|
||||||
// Process arguments:
|
// Process arguments:
|
||||||
if ((args.length != 1 && args.length != 2)
|
if ((args.length != 1 && args.length != 2)
|
||||||
|| (args.length == 1
|
|| (args.length == 1
|
||||||
&& (args[0].equals("-h")
|
&& !(args[0].equals("-v")
|
||||||
|| args[0].equals("--help")))
|
|| args[0].equals("--version")))
|
||||||
|| (args.length == 2
|
|| (args.length == 2
|
||||||
&& !((findAllNonTMWMode
|
&& !((findAllNonTMWMode
|
||||||
= args[0].equals("--find-all-non-tmw"))
|
= args[0].equals("--find-all-non-tmw"))
|
||||||
|
|| (convertToTMMode
|
||||||
|
= args[0].equals("--to-tibetan-machine"))
|
||||||
|
|| (convertToWylieMode
|
||||||
|
= args[0].equals("--to-wylie"))
|
||||||
|| (findSomeNonTMWMode
|
|| (findSomeNonTMWMode
|
||||||
= args[0].equals("--find-some-non-tmw"))))) {
|
= args[0].equals("--find-some-non-tmw"))))) {
|
||||||
out.println("TMW_RTF_TO_THDL_WYLIE [--find-all-non-tmw | --find-some-non-tmw] RTF_file |");
|
out.println("TMW_RTF_TO_THDL_WYLIE [--find-all-non-tmw | --find-some-non-tmw | --to-tibetan-machine | --to-wylie] RTF_file |");
|
||||||
out.println("TMW_RTF_TO_THDL_WYLIE [--version | -v | --help | -h]");
|
out.println("TMW_RTF_TO_THDL_WYLIE [--version | -v | --help | -h]");
|
||||||
out.println("");
|
out.println("");
|
||||||
out.println("Distributed under the terms of the THDL Open Community License Version 1.0.");
|
out.println("Distributed under the terms of the THDL Open Community License Version 1.0.");
|
||||||
|
@ -72,17 +81,24 @@ public class TMW_RTF_TO_THDL_WYLIE {
|
||||||
out.println(" not in Tibetan Machine Web fonts, exit zero iff none found");
|
out.println(" not in Tibetan Machine Web fonts, exit zero iff none found");
|
||||||
out.println(" --find-some-non-tmw to locate all distinct characters in the input document");
|
out.println(" --find-some-non-tmw to locate all distinct characters in the input document");
|
||||||
out.println(" not in Tibetan Machine Web fonts, exit zero iff none found");
|
out.println(" not in Tibetan Machine Web fonts, exit zero iff none found");
|
||||||
out.println(" Otherwise, needs one argument, the name of the TibetanMachineWeb RTF file.");
|
out.println(" --to-tibetan-machine to convert TibetanMachineWeb to TibetanMachine");
|
||||||
out.println(" Writes the Wylie transliteration of that file to standard output after");
|
out.println(" rather than TibetanMachineWeb to Wylie");
|
||||||
out.println(" dealing with the curly brace problem. Exit code is zero on success,");
|
out.println(" --to-wylie to convert TibetanMachineWeb to TibetanMachine");
|
||||||
out.println(" nonzero otherwise.");
|
out.println(" rather than TibetanMachineWeb to Wylie");
|
||||||
|
out.println(" In --to... modes, needs one argument, the name of the TibetanMachineWeb RTF");
|
||||||
|
out.println(" file. Writes the THDL Extended Wylie transliteration of that file [in");
|
||||||
|
out.println(" --to-wylie mode] or the TibetanMachine equivalent of that file [in");
|
||||||
|
out.println(" --to-tibetan-machine mode] to standard output after dealing with the curly");
|
||||||
|
out.println(" brace problem. Exit code is zero on success, nonzero otherwise.");
|
||||||
out.println("");
|
out.println("");
|
||||||
out.println(" You may find it helpful to use `--find-some-non-tmw' mode before doing a");
|
out.println(" You may find it helpful to use `--find-some-non-tmw' mode before doing a");
|
||||||
out.println(" conversion so that you have confidence in the conversion's correctness.");
|
out.println(" conversion so that you have confidence in the conversion's correctness.");
|
||||||
return 77;
|
return 77;
|
||||||
}
|
}
|
||||||
if (args[0].equals("--version") || args[0].equals("-v")) {
|
if (args[0].equals("--version") || args[0].equals("-v")) {
|
||||||
out.println("TMW_RTF_TO_THDL_WYLIE version 0.8");
|
out.println("TMW_RTF_TO_THDL_WYLIE version 0.81");
|
||||||
|
out.println("Compiled at "
|
||||||
|
+ ThdlVersion.getTimeOfCompilation());
|
||||||
return 77;
|
return 77;
|
||||||
}
|
}
|
||||||
String tmwRtfPath = args[args.length - 1];
|
String tmwRtfPath = args[args.length - 1];
|
||||||
|
@ -107,12 +123,19 @@ public class TMW_RTF_TO_THDL_WYLIE {
|
||||||
} else if (findSomeNonTMWMode) {
|
} else if (findSomeNonTMWMode) {
|
||||||
// 0, -1 is the entire document.
|
// 0, -1 is the entire document.
|
||||||
return ((TibetanDocument)dp.getDocument()).findSomeNonTMWCharacters(0, -1, out);
|
return ((TibetanDocument)dp.getDocument()).findSomeNonTMWCharacters(0, -1, out);
|
||||||
} else { // conversion mode
|
} else { // conversion {to Wylie or TM} mode
|
||||||
// Fix curly braces in the entire document:
|
// Fix curly braces in the entire document:
|
||||||
((TibetanDocument)dp.getDocument()).replaceTahomaCurlyBracesAndBackslashes(0, -1);
|
((TibetanDocument)dp.getDocument()).replaceTahomaCurlyBracesAndBackslashes(0, -1);
|
||||||
|
|
||||||
// Convert to THDL Wylie:
|
if (convertToWylieMode) {
|
||||||
dp.toWylie(0, dp.getDocument().getLength());
|
ThdlDebug.verify(!convertToTMMode);
|
||||||
|
// Convert to THDL Wylie:
|
||||||
|
dp.toWylie(0, dp.getDocument().getLength());
|
||||||
|
} else {
|
||||||
|
ThdlDebug.verify(convertToTMMode);
|
||||||
|
// Convert to TibetanMachine:
|
||||||
|
((TibetanDocument)dp.getDocument()).convertToTM(0, dp.getDocument().getLength());
|
||||||
|
}
|
||||||
|
|
||||||
// Write to standard output the result:
|
// Write to standard output the result:
|
||||||
((TibetanDocument)dp.getDocument()).writeRTFOutputStream(out);
|
((TibetanDocument)dp.getDocument()).writeRTFOutputStream(out);
|
||||||
|
|
|
@ -77,74 +77,55 @@ public class TMW_RTF_TO_THDL_WYLIETest extends TestCase {
|
||||||
assertTrue(0 == rc);
|
assertTrue(0 == rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tests the --find-some-non-tmw mode of {@link
|
|
||||||
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
private void helper(String mode, String extension, int erc) {
|
||||||
public void testFindSomeNonTMWMode() {
|
|
||||||
String[] args = new String[] {
|
String[] args = new String[] {
|
||||||
"--find-some-non-tmw",
|
mode,
|
||||||
"source" + File.separator
|
getTestFileName("Test1")
|
||||||
+ "org" + File.separator
|
|
||||||
+ "thdl" + File.separator
|
|
||||||
+ "tib" + File.separator
|
|
||||||
+ "input" + File.separator
|
|
||||||
+ "TMW_RTF_TO_THDL_WYLIETest1.rtf"
|
|
||||||
};
|
};
|
||||||
boolean fileNotFound = false;
|
boolean fileNotFound = false;
|
||||||
try {
|
try {
|
||||||
int rc = TMW_RTF_TO_THDL_WYLIE.realMain(args, new PrintStream(new FileOutputStream("bin/for-junit/TMW_RTF_TO_THDL_WYLIETest1ResultFindSome.out")));
|
int rc = TMW_RTF_TO_THDL_WYLIE.realMain(args, new PrintStream(new FileOutputStream("bin/for-junit/TMW_RTF_TO_THDL_WYLIETest1Result" + extension + ".out")));
|
||||||
assertTrue(rc == 1);
|
assertTrue(rc == erc);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
fileNotFound = true;
|
fileNotFound = true;
|
||||||
}
|
}
|
||||||
assertTrue(!fileNotFound);
|
assertTrue(!fileNotFound);
|
||||||
|
|
||||||
testActualAndExpected("Test1ResultFindSome");
|
testActualAndExpected("Test1Result" + extension);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static String getTestFileName(String testName) {
|
||||||
|
return "source" + File.separator
|
||||||
|
+ "org" + File.separator
|
||||||
|
+ "thdl" + File.separator
|
||||||
|
+ "tib" + File.separator
|
||||||
|
+ "input" + File.separator
|
||||||
|
+ "TMW_RTF_TO_THDL_WYLIE" + testName + ".rtf";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Tests the --find-some-non-tmw mode of {@link
|
||||||
|
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
||||||
|
public void testFindSomeNonTMWMode() {
|
||||||
|
helper("--find-some-non-tmw", "FindSome", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tests the --find-all-non-tmw mode of {@link
|
/** Tests the --find-all-non-tmw mode of {@link
|
||||||
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
||||||
public void testFindAllNonTMWMode() {
|
public void testFindAllNonTMWMode() {
|
||||||
String[] args = new String[] {
|
helper("--find-all-non-tmw", "FindAll", 1);
|
||||||
"--find-all-non-tmw",
|
|
||||||
"source" + File.separator
|
|
||||||
+ "org" + File.separator
|
|
||||||
+ "thdl" + File.separator
|
|
||||||
+ "tib" + File.separator
|
|
||||||
+ "input" + File.separator
|
|
||||||
+ "TMW_RTF_TO_THDL_WYLIETest1.rtf"
|
|
||||||
};
|
|
||||||
boolean fileNotFound = false;
|
|
||||||
try {
|
|
||||||
int rc = TMW_RTF_TO_THDL_WYLIE.realMain(args, new PrintStream(new FileOutputStream("bin/for-junit/TMW_RTF_TO_THDL_WYLIETest1ResultFindAll.out")));
|
|
||||||
assertTrue(rc == 1);
|
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
fileNotFound = true;
|
|
||||||
}
|
|
||||||
assertTrue(!fileNotFound);
|
|
||||||
|
|
||||||
testActualAndExpected("Test1ResultFindAll");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tests the converter mode of {@link
|
/** Tests the --to-wylie converter mode of {@link
|
||||||
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
||||||
public void testConverterMode() {
|
public void testConverterMode() {
|
||||||
String[] args = new String[] {
|
helper("--to-wylie", "Conversion", 0);
|
||||||
"source" + File.separator
|
}
|
||||||
+ "org" + File.separator
|
|
||||||
+ "thdl" + File.separator
|
|
||||||
+ "tib" + File.separator
|
|
||||||
+ "input" + File.separator
|
|
||||||
+ "TMW_RTF_TO_THDL_WYLIETest1.rtf"
|
|
||||||
};
|
|
||||||
boolean fileNotFound = false;
|
|
||||||
try {
|
|
||||||
int rc = TMW_RTF_TO_THDL_WYLIE.realMain(args, new PrintStream(new FileOutputStream("bin/for-junit/TMW_RTF_TO_THDL_WYLIETest1ResultConversion.out")));
|
|
||||||
assertTrue(rc == 0);
|
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
fileNotFound = true;
|
|
||||||
}
|
|
||||||
assertTrue(!fileNotFound);
|
|
||||||
|
|
||||||
testActualAndExpected("Test1ResultConversion");
|
/** Tests the --to-tibetan-machine converter mode of {@link
|
||||||
|
* org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE}. */
|
||||||
|
public void testTMConverterMode() {
|
||||||
|
helper("--to-tibetan-machine", "TM", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,84 @@
|
||||||
|
{\rtf1\ansi
|
||||||
|
{\fonttbl\f0\fnil Monospaced;\f1\fnil TibetanMachineWeb;\f2\fnil TibetanMachine;\f3\fnil Tahoma;\f4\fnil TibetanMachineSkt4;\f5\fnil TimesNewRoman;\f6\fnil TibetanMachineSkt2;\f7\fnil TibetanMachineSkt3;\f8\fnil Times New Roman;}
|
||||||
|
{\stylesheet{\s2\f1\fs144\i0\b0\cf0 default;}{\s1\li0\ri0\fi0\ql\sbasedon2\snext1 Body Text;}}
|
||||||
|
\margl1440\margr1440\widowctrl
|
||||||
|
\s1\li0\ri0\fi0\ql\f2\fs56\i0\b0\cf0 /\'eb+-`\'dc-+\'e8/-*\'e89-+c\'dc+-`\'dc-\{:-0\'eb7\'dc-u\'e4-+e$<\'ca\f3\fs44\ul0\par
|
||||||
|
\par
|
||||||
|
\f2\ul0\'c9\f4 &\f2\'ca \f5\ul0 \f2\ul0\'ca#$<-%,-8\'df:-b\'dc-<-:-\u129 ?\'eb+-\'fd7\'dc-0*\'eb-9\'dc<-`\'dc-\{:-v\'eb,-#1\'ec-/\'eb9-/B\'eb+-\'fd7\'dc-+\'e8/-*\'e89-J\'eb#<-Q,-#5\'eb,-\'b9\'a57\'dc-+#7-Y\'eb,-+c\'dc+-`\'dc-\{:-0\'eb7\'dc-u\'e4-+e$<-5\'e8<-e-/-/\'ba\'a5#<-<\'eb\'ca\'ca\par
|
||||||
|
\par
|
||||||
|
/U:-\'fd-/6$-\'fd\'eb7\'dc-/P-,-Z\'a8#-\'fd7\'dc-i\'eb$-a\'e89-+/\'df<-,-7'\'dc#<-o:-X\'dc$-Y\'eb/<-#<\'e89-b\'dc-#+,-h\'dc-:\'ca\'ca\par
|
||||||
|
i#<-X,-,\'eb9-/\'df7\'dc-F-\{,-7\'eb+-#6\'dc-0$\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0 \f2\ul0\'ca\par
|
||||||
|
\f8\fs24\ul0\par
|
||||||
|
\pard\ql\f2\fs72\ul0\par
|
||||||
|
\f1\fs144\par
|
||||||
|
}
|
|
@ -8,6 +8,7 @@
|
||||||
<h2>Jskad Documentation</h2>
|
<h2>Jskad Documentation</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><a href="#latest">Latest Changes</a></li>
|
||||||
<li><a href="#install">Running Jskad</a></li>
|
<li><a href="#install">Running Jskad</a></li>
|
||||||
<li><a href="#start">Getting Started</a></li>
|
<li><a href="#start">Getting Started</a></li>
|
||||||
<li><a href="#tibetan">Typing Tibetan</a></li>
|
<li><a href="#tibetan">Typing Tibetan</a></li>
|
||||||
|
@ -22,6 +23,17 @@
|
||||||
<li><a href="http://iris.lib.virginia.edu/tibet/tools/jskad.html">Jskad Home Page</a></li>
|
<li><a href="http://iris.lib.virginia.edu/tibet/tools/jskad.html">Jskad Home Page</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<a name="latest"></a>
|
||||||
|
<h3>Latest Changes</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Jskad now supports converting Tibetan Machine to Tibetan Machine Web
|
||||||
|
and vice versa. Try it form the Tools menu. Be on the
|
||||||
|
lookout for formatting changes; Java's RTF support is currently
|
||||||
|
poor.<!-- FIXME: do this correctly, not in a "Latest Changes"
|
||||||
|
section. -->
|
||||||
|
</p>
|
||||||
|
|
||||||
<a name="install"></a>
|
<a name="install"></a>
|
||||||
<h3>Running Jskad</h3>
|
<h3>Running Jskad</h3>
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,13 @@ Contributor(s): ______________________________________.
|
||||||
package org.thdl.tib.text;
|
package org.thdl.tib.text;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A wrapper object for a stretch of TibetanMachineWeb data that shares the same font.
|
* A wrapper object for a stretch of TibetanMachineWeb (TMW) or
|
||||||
* A piece of DuffData consists of a font number and a string.
|
* TibetanMachine (TM) data that shares the same font. A piece of
|
||||||
* The font number is a number from one to ten, corresponding
|
* DuffData consists of a font number and a string. The fact that this
|
||||||
|
* stretch is TMW vs. TM is not stored in this object; the client must
|
||||||
|
* remember that itself.
|
||||||
|
*
|
||||||
|
* For TMW, the font number is a number from one to ten, corresponding
|
||||||
* to the ten TibetanMachineWeb fonts, as follows:
|
* to the ten TibetanMachineWeb fonts, as follows:
|
||||||
* <p>
|
* <p>
|
||||||
* 1 - TibetanMachineWeb<br>
|
* 1 - TibetanMachineWeb<br>
|
||||||
|
@ -29,9 +33,18 @@ package org.thdl.tib.text;
|
||||||
* ...<br>
|
* ...<br>
|
||||||
* 10 - TibetanMachineWeb9<br>
|
* 10 - TibetanMachineWeb9<br>
|
||||||
* <p>
|
* <p>
|
||||||
* The string represents a contiguous stretch of data in that
|
* For TM, the font number is a number from one to five, corresponding
|
||||||
* font, i.e. a stretch of TibetanMachineWeb that doesn't require a font change.
|
* to the five TibetanMachineWeb fonts, as follows:
|
||||||
*/
|
* <p>
|
||||||
|
* 1 - TibetanMachine<br>
|
||||||
|
* 2 - TibetanMachineSkt1<br>
|
||||||
|
* 3 - TibetanMachineSkt2<br>
|
||||||
|
* 4 - TibetanMachineSkt3<br>
|
||||||
|
* 5 - TibetanMachineSkt4<br>
|
||||||
|
* <p>
|
||||||
|
* The string represents a contiguous stretch of data in that font,
|
||||||
|
* i.e. a stretch of TibetanMachineWeb or TibetanMachine that doesn't
|
||||||
|
* require a font change. */
|
||||||
public class DuffData {
|
public class DuffData {
|
||||||
/**
|
/**
|
||||||
* a string of text
|
* a string of text
|
||||||
|
@ -43,11 +56,24 @@ public class DuffData {
|
||||||
public int font;
|
public int font;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param s a string of TibetanMachineWeb text
|
* @param s a string of TibetanMachineWeb or TibetanMachine text
|
||||||
* @param i a TibetanMachineWeb font number
|
* @param i a TibetanMachineWeb or TibetanMachine font number
|
||||||
*/
|
*/
|
||||||
public DuffData(String s, int i) {
|
public DuffData(String s, int i) {
|
||||||
text = s;
|
text = s;
|
||||||
font = i;
|
font = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Default constructor. The DuffData is invalid after this until
|
||||||
|
you call setData or manipulate the public fields. */
|
||||||
|
public DuffData() { }
|
||||||
|
|
||||||
|
/** Changes the text and font this DuffData represents.
|
||||||
|
* @param c a character of TibetanMachineWeb or TibetanMachine text
|
||||||
|
* @param i a TibetanMachineWeb or TibetanMachine font number
|
||||||
|
*/
|
||||||
|
public void setData(char c, int i) {
|
||||||
|
text = new String(new char[] { c });
|
||||||
|
font = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,16 +150,18 @@ public class TibetanDocument extends DefaultStyledDocument {
|
||||||
* @param pos the position at which you want to insert text
|
* @param pos the position at which you want to insert text
|
||||||
*/
|
*/
|
||||||
public int insertDuff(int pos, DuffData[] glyphs) {
|
public int insertDuff(int pos, DuffData[] glyphs) {
|
||||||
return insertDuff(tibetanFontSize, pos, glyphs);
|
return insertDuff(tibetanFontSize, pos, glyphs, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int insertDuff(int fontSize, int pos, DuffData[] glyphs) {
|
private int insertDuff(int fontSize, int pos, DuffData[] glyphs, boolean asTMW) {
|
||||||
if (glyphs == null)
|
if (glyphs == null)
|
||||||
return pos;
|
return pos;
|
||||||
|
|
||||||
MutableAttributeSet mas;
|
MutableAttributeSet mas;
|
||||||
for (int i=0; i<glyphs.length; i++) {
|
for (int i=0; i<glyphs.length; i++) {
|
||||||
mas = TibetanMachineWeb.getAttributeSet(glyphs[i].font);
|
mas = ((asTMW)
|
||||||
|
? TibetanMachineWeb.getAttributeSet(glyphs[i].font)
|
||||||
|
: TibetanMachineWeb.getAttributeSetTM(glyphs[i].font));
|
||||||
appendDuff(fontSize, pos, glyphs[i].text, mas);
|
appendDuff(fontSize, pos, glyphs[i].text, mas);
|
||||||
pos += glyphs[i].text.length();
|
pos += glyphs[i].text.length();
|
||||||
}
|
}
|
||||||
|
@ -350,7 +352,8 @@ public class TibetanDocument extends DefaultStyledDocument {
|
||||||
TibetanMachineWeb. Works within the range [start, end).
|
TibetanMachineWeb. Works within the range [start, end).
|
||||||
Using a negative number for end means that this will run to
|
Using a negative number for end means that this will run to
|
||||||
the end of the document. Be sure to set the size for Tibetan
|
the end of the document. Be sure to set the size for Tibetan
|
||||||
as you like it before using this. SPEED_FIXME: might be
|
as you like it before using this (well, it usually gets it
|
||||||
|
right on its own, but just in case). SPEED_FIXME: might be
|
||||||
faster to run over the elements, if they are one per font. */
|
faster to run over the elements, if they are one per font. */
|
||||||
public void replaceTahomaCurlyBracesAndBackslashes(int begin, int end) {
|
public void replaceTahomaCurlyBracesAndBackslashes(int begin, int end) {
|
||||||
if (end < 0)
|
if (end < 0)
|
||||||
|
@ -382,7 +385,7 @@ public class TibetanDocument extends DefaultStyledDocument {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// leave it as tibetanFontSize
|
// leave it as tibetanFontSize
|
||||||
}
|
}
|
||||||
insertDuff(fontSize, i, toReplaceWith);
|
insertDuff(fontSize, i, toReplaceWith, true);
|
||||||
remove(i+1, 1);
|
remove(i+1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -393,4 +396,102 @@ public class TibetanDocument extends DefaultStyledDocument {
|
||||||
ThdlDebug.noteIffyCode();
|
ThdlDebug.noteIffyCode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Converts all TibetanMachineWeb glyphs in the document to
|
||||||
|
TibetanMachine. Works within the range [start, end). Using a
|
||||||
|
negative number for end means that this will run to the end of
|
||||||
|
the document. Be sure to set the size for Tibetan as you like
|
||||||
|
it before using this (well, it usually gets it right on its
|
||||||
|
own, but just in case). SPEED_FIXME: might be faster to run
|
||||||
|
over the elements, if they are one per font. */
|
||||||
|
public void convertToTM(int begin, int end) {
|
||||||
|
convertTMW_TM(begin, end, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Converts all TibetanMachine glyphs in the document to
|
||||||
|
TibetanMachineWeb. Works within the range [start, end).
|
||||||
|
Using a negative number for end means that this will run to
|
||||||
|
the end of the document. Be sure to set the size for Tibetan
|
||||||
|
as you like it before using this (well, it usually gets it
|
||||||
|
right on its own, but just in case). SPEED_FIXME: might be
|
||||||
|
faster to run over the elements, if they are one per font. */
|
||||||
|
public void convertToTMW(int begin, int end) {
|
||||||
|
convertTMW_TM(begin, end, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Helper function.
|
||||||
|
@see convertToTMW(int,int)
|
||||||
|
@see convertToTM(int,int) */
|
||||||
|
private void convertTMW_TM(int begin, int end, boolean toTM) {
|
||||||
|
if (end < 0)
|
||||||
|
end = getLength();
|
||||||
|
if (begin >= end)
|
||||||
|
return;
|
||||||
|
int i = begin;
|
||||||
|
try {
|
||||||
|
DuffData[] equivalent = new DuffData[1];
|
||||||
|
equivalent[0] = new DuffData();
|
||||||
|
while (i < end) {
|
||||||
|
AttributeSet attr = getCharacterElement(i).getAttributes();
|
||||||
|
String fontName = StyleConstants.getFontFamily(attr);
|
||||||
|
int fontNum
|
||||||
|
= (toTM
|
||||||
|
? TibetanMachineWeb.getTMWFontNumber(fontName)
|
||||||
|
: TibetanMachineWeb.getTMFontNumber(fontName));
|
||||||
|
|
||||||
|
if (0 != fontNum) {
|
||||||
|
DuffCode dc = null;
|
||||||
|
try {
|
||||||
|
if (toTM) {
|
||||||
|
dc = TibetanMachineWeb.mapTMWtoTM(fontNum - 1,
|
||||||
|
getText(i,1).charAt(0));
|
||||||
|
} else {
|
||||||
|
dc = TibetanMachineWeb.mapTMtoTMW(fontNum - 1,
|
||||||
|
getText(i,1).charAt(0));
|
||||||
|
}
|
||||||
|
if (null != dc) {
|
||||||
|
equivalent[0].setData(dc.getCharacter(),
|
||||||
|
dc.getFontNum());
|
||||||
|
}
|
||||||
|
} catch (ArrayIndexOutOfBoundsException e) {
|
||||||
|
// we handle this below...
|
||||||
|
System.out.println("FIXME: "
|
||||||
|
+ (toTM ? "TMW->TM" : "TM->TMW")
|
||||||
|
+ " conversion is in trouble");
|
||||||
|
System.out.println("font is " + (fontNum - 1)
|
||||||
|
+ ", char is "
|
||||||
|
+ (int)getText(i,1).charAt(0)
|
||||||
|
+ "; pos is " + i);
|
||||||
|
ThdlDebug.noteIffyCode();
|
||||||
|
}
|
||||||
|
if (null != dc) {
|
||||||
|
int fontSize = tibetanFontSize;
|
||||||
|
try {
|
||||||
|
fontSize = ((Integer)getCharacterElement(i).getAttributes().getAttribute(StyleConstants.FontSize)).intValue();
|
||||||
|
} catch (Exception e) {
|
||||||
|
// leave it as tibetanFontSize
|
||||||
|
}
|
||||||
|
insertDuff(fontSize, i, equivalent, !toTM);
|
||||||
|
remove(i+1, 1);
|
||||||
|
} else {
|
||||||
|
// DLC FIXME: insert into document a string
|
||||||
|
// saying "there's no TM equivalent for this."
|
||||||
|
// (For now, I'm inserting the alphabet and
|
||||||
|
// all the numbers in a big font in TMW to try
|
||||||
|
// and get some attention. And I've
|
||||||
|
// *documented* this on the website.)
|
||||||
|
String trickyTMW
|
||||||
|
= "!-\"-#-,-%-&-'-(-)-*-+-,-.-/-0-1-2-3-4-5-6-7-8-9-:-;-<-=->-?-0-1-2-3-4-5-6-7-8-9-";
|
||||||
|
equivalent[0] = new DuffData(trickyTMW, 1);
|
||||||
|
insertDuff(72, i, equivalent, true);
|
||||||
|
i += trickyTMW.length() + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
} catch (BadLocationException ble) {
|
||||||
|
ble.printStackTrace();
|
||||||
|
ThdlDebug.noteIffyCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,12 @@ public class TibetanMachineWeb implements THDLWylieConstants {
|
||||||
private static String fileName = "tibwn.ini";
|
private static String fileName = "tibwn.ini";
|
||||||
private static final String DELIMITER = "~";
|
private static final String DELIMITER = "~";
|
||||||
private static Set top_vowels;
|
private static Set top_vowels;
|
||||||
|
/** a way of encoding the choice of TibetanMachineWeb font from
|
||||||
|
that family of 10 fonts: */
|
||||||
private static SimpleAttributeSet[] webFontAttributeSet = new SimpleAttributeSet[11];
|
private static SimpleAttributeSet[] webFontAttributeSet = new SimpleAttributeSet[11];
|
||||||
|
/** a way of encoding the choice of TibetanMachine font from
|
||||||
|
that family of 5 fonts: */
|
||||||
|
private static SimpleAttributeSet[] normFontAttributeSet = new SimpleAttributeSet[6];
|
||||||
private static boolean hasDisambiguatingKey; //to disambiguate gy and g.y=
|
private static boolean hasDisambiguatingKey; //to disambiguate gy and g.y=
|
||||||
private static char disambiguating_key;
|
private static char disambiguating_key;
|
||||||
private static boolean hasSanskritStackingKey; //for stacking Sanskrit
|
private static boolean hasSanskritStackingKey; //for stacking Sanskrit
|
||||||
|
@ -244,6 +249,12 @@ public class TibetanMachineWeb implements THDLWylieConstants {
|
||||||
StyleConstants.setFontFamily(webFontAttributeSet[i],tmwFontNames[i]);
|
StyleConstants.setFontFamily(webFontAttributeSet[i],tmwFontNames[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
normFontAttributeSet[0] = null;
|
||||||
|
for (int i=1; i<normFontAttributeSet.length; i++) {
|
||||||
|
normFontAttributeSet[i] = new SimpleAttributeSet();
|
||||||
|
StyleConstants.setFontFamily(normFontAttributeSet[i],tmFontNames[i]);
|
||||||
|
}
|
||||||
|
|
||||||
StringTokenizer sTok;
|
StringTokenizer sTok;
|
||||||
topSet = new HashSet();
|
topSet = new HashSet();
|
||||||
leftSet = new HashSet();
|
leftSet = new HashSet();
|
||||||
|
@ -560,6 +571,23 @@ public static SimpleAttributeSet getAttributeSet(int font) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the AttributeSet for the given TibetanMachine font.
|
||||||
|
* This information is required in order to be able to put styled
|
||||||
|
* text into {@link TibetanDocument TibetanDocument}.
|
||||||
|
* @param font the number of the TibetanMachineWeb font for which
|
||||||
|
* you want the SimpleAttributeSet: TibetanMachine = 1,
|
||||||
|
* TibetanMachineSkt1 = 2, etc. up to 5
|
||||||
|
* @return a SimpleAttributeSet for the given font - that is,
|
||||||
|
* a way of encoding the font itself
|
||||||
|
*/
|
||||||
|
public static SimpleAttributeSet getAttributeSetTM(int font) {
|
||||||
|
if (font > -1 && font < normFontAttributeSet.length)
|
||||||
|
return normFontAttributeSet[font];
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Says whether or not the character is formatting.
|
* Says whether or not the character is formatting.
|
||||||
* @param c the character to be checked
|
* @param c the character to be checked
|
||||||
|
@ -851,6 +879,10 @@ public static DuffCode getHalfHeightGlyph(String hashKey) {
|
||||||
return dc[REDUCED_C];
|
return dc[REDUCED_C];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final DuffCode TMW_cr = new DuffCode(1, '\r');
|
||||||
|
private static final DuffCode TMW_lf = new DuffCode(1, '\n');
|
||||||
|
private static final DuffCode TMW_tab = new DuffCode(1, '\t');
|
||||||
|
|
||||||
/** Returns the DuffCode for the TibetanMachineWeb glyph corresponding
|
/** Returns the DuffCode for the TibetanMachineWeb glyph corresponding
|
||||||
to the given TibetanMachine font
|
to the given TibetanMachine font
|
||||||
(0=norm,1=Skt1,2=Skt2,3=Skt3,4=Skt4) and character(32-254).
|
(0=norm,1=Skt1,2=Skt2,3=Skt3,4=Skt4) and character(32-254).
|
||||||
|
@ -861,14 +893,36 @@ public static DuffCode getHalfHeightGlyph(String hashKey) {
|
||||||
an existing TibetanMachine glyph, null is returned. In general,
|
an existing TibetanMachine glyph, null is returned. In general,
|
||||||
though, this method may raise a runtime exception if you pass in a
|
though, this method may raise a runtime exception if you pass in a
|
||||||
(font, ord) that doesn't correspond to an existing TibetanMachine
|
(font, ord) that doesn't correspond to an existing TibetanMachine
|
||||||
glyph. */
|
glyph.
|
||||||
public static DuffCode mapTMtoTMW(int font, int ordinal) {
|
|
||||||
|
Only a few control characters are supported: '\r' (carriage
|
||||||
|
return), '\n' (line feed), and '\t' (tab).
|
||||||
|
*/
|
||||||
|
public static DuffCode mapTMtoTMW(int font, int ordinal)
|
||||||
|
throws ArrayIndexOutOfBoundsException {
|
||||||
|
if (ordinal < 32) {
|
||||||
|
if (ordinal == (int)'\r')
|
||||||
|
return TMW_cr;
|
||||||
|
else if (ordinal == (int)'\n')
|
||||||
|
return TMW_lf;
|
||||||
|
else if (ordinal == (int)'\t')
|
||||||
|
return TMW_tab;
|
||||||
|
else {
|
||||||
|
// for robustness, just return font 1, char ordinal.
|
||||||
|
ThdlDebug.noteIffyCode();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
DuffCode ans = TMtoTMW[font][ordinal-32];
|
DuffCode ans = TMtoTMW[font][ordinal-32];
|
||||||
// comment this out to test via main(..):
|
// comment this out to test via main(..):
|
||||||
ThdlDebug.verify(null != ans);
|
ThdlDebug.verify(null != ans);
|
||||||
return ans;
|
return ans;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final DuffCode TM_cr = new DuffCode(1, '\r');
|
||||||
|
private static final DuffCode TM_lf = new DuffCode(1, '\n');
|
||||||
|
private static final DuffCode TM_tab = new DuffCode(1, '\t');
|
||||||
|
|
||||||
/** Returns the DuffCode for the TibetanMachine glyph corresponding to
|
/** Returns the DuffCode for the TibetanMachine glyph corresponding to
|
||||||
the given TibetanMachineWeb font
|
the given TibetanMachineWeb font
|
||||||
(0=TibetanMachineWeb,1=TibetanMachineWeb1,...) and character(32-127).
|
(0=TibetanMachineWeb,1=TibetanMachineWeb1,...) and character(32-127).
|
||||||
|
@ -880,8 +934,27 @@ public static DuffCode mapTMtoTMW(int font, int ordinal) {
|
||||||
existing TibetanMachineWeb glyph, null is returned. In general,
|
existing TibetanMachineWeb glyph, null is returned. In general,
|
||||||
though, this method may raise a runtime exception if you pass in a
|
though, this method may raise a runtime exception if you pass in a
|
||||||
(font, ord) that doesn't correspond to an existing
|
(font, ord) that doesn't correspond to an existing
|
||||||
TibetanMachineWeb glyph. */
|
TibetanMachineWeb glyph.
|
||||||
public static DuffCode mapTMWtoTM(int font, int ordinal) {
|
|
||||||
|
Only a few control characters are supported: '\r' (carriage
|
||||||
|
return), '\n' (line feed), and '\t' (tab).
|
||||||
|
|
||||||
|
*/
|
||||||
|
public static DuffCode mapTMWtoTM(int font, int ordinal)
|
||||||
|
throws ArrayIndexOutOfBoundsException {
|
||||||
|
if (ordinal < 32) {
|
||||||
|
if (ordinal == (int)'\r')
|
||||||
|
return TM_cr;
|
||||||
|
else if (ordinal == (int)'\n')
|
||||||
|
return TM_lf;
|
||||||
|
else if (ordinal == (int)'\t')
|
||||||
|
return TM_tab;
|
||||||
|
else {
|
||||||
|
// for robustness, just return font 1, char ordinal.
|
||||||
|
ThdlDebug.noteIffyCode();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
DuffCode ans = TMWtoTM[font][ordinal-32];
|
DuffCode ans = TMWtoTM[font][ordinal-32];
|
||||||
// comment this out to test via main(..):
|
// comment this out to test via main(..):
|
||||||
ThdlDebug.verify(null != ans || (font == 7 && ordinal == 91));
|
ThdlDebug.verify(null != ans || (font == 7 && ordinal == 91));
|
||||||
|
@ -975,7 +1048,13 @@ private static DuffCode getTMtoTMW(int font, int code) {
|
||||||
return TMtoTMW[font][code];
|
return TMtoTMW[font][code];
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int getTMFontNumber(String name) {
|
/**
|
||||||
|
* Gets the TibetanMachine font number for this font name.
|
||||||
|
* @param name a font name
|
||||||
|
* @return between 1 and 5 if the font is one
|
||||||
|
* of the TibetanMachine fonts, otherwise 0
|
||||||
|
*/
|
||||||
|
public static int getTMFontNumber(String name) {
|
||||||
String internedName = name.intern();
|
String internedName = name.intern();
|
||||||
for (int i=1; i<tmFontNames.length; i++) {
|
for (int i=1; i<tmFontNames.length; i++) {
|
||||||
if (internedName == tmFontNames[i])
|
if (internedName == tmFontNames[i])
|
||||||
|
|
Loading…
Reference in a new issue