By default (controllable via options.txt), Jskad now fixes the Tahoma curly
brace problem upon opening any RTF document. The TMW_RTF_TO_THDL_WYLIE test baselines changed because I fixed (a while ago) some inconsistencies between the EWTS standard and Jskad. Conversion of TibetanMachineWeb8.40, @#, to Wylie now works correctly. Unfortunately, though, typing @# doesn't produce 8.40, it still produces 8.38 and 8.39, two glyphs.
This commit is contained in:
parent
a144b125ca
commit
6f0390c5d6
5 changed files with 32 additions and 6 deletions
|
@ -695,6 +695,9 @@ public class Jskad extends JPanel implements DocumentListener {
|
|||
newFrame.dispose();
|
||||
numberOfTibsRTFOpen--;
|
||||
} else {
|
||||
if (!ThdlOptions.getBooleanOption("thdl.Jskad.do.not.fix.curly.braces.in.rtf")) {
|
||||
((TibetanDocument)newRTF.dp.getDocument()).replaceTahomaCurlyBracesAndBackslashes(0, -1);
|
||||
}
|
||||
newRTF.dp.getDocument().addDocumentListener(newRTF);
|
||||
newFrame.setTitle("Jskad: " + f_name);
|
||||
newRTF.fileName = new String(f_name);
|
||||
|
@ -718,6 +721,9 @@ public class Jskad extends JPanel implements DocumentListener {
|
|||
|
||||
in.close();
|
||||
if (!error) {
|
||||
if (!ThdlOptions.getBooleanOption("thdl.Jskad.do.not.fix.curly.braces.in.rtf")) {
|
||||
((TibetanDocument)dp.getDocument()).replaceTahomaCurlyBracesAndBackslashes(0, -1);
|
||||
}
|
||||
dp.getCaret().setDot(0);
|
||||
dp.getDocument().addDocumentListener(Jskad.this);
|
||||
hasChanged = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue