From 17ea8fdf2a7e2edfc63a297b632679ca4b629019 Mon Sep 17 00:00:00 2001 From: dchandler Date: Thu, 15 May 2003 01:41:56 +0000 Subject: [PATCH] Copying from Word XP used to crash Jskad sometimes. Now you get a dialog box telling you something about RTF support in Java. --- source/org/thdl/tib/input/DuffPane.java | 64 ++++++++++++++----------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/source/org/thdl/tib/input/DuffPane.java b/source/org/thdl/tib/input/DuffPane.java index 62e78ca..7426eb7 100644 --- a/source/org/thdl/tib/input/DuffPane.java +++ b/source/org/thdl/tib/input/DuffPane.java @@ -1024,30 +1024,43 @@ public void paste(int offset) { // random junk just after Jskad started up. ThdlDebug.verify(null != in); - rtfEd.read(in, sd, 0); - - /** Added by AM, to fix copy-paste issues for Translation Tool. - Assumes that if roman is disabled and you are pasting something - in RTF but is not TibetanMachineWeb it most be wylie. - */ - if (!sd.getFont((sd.getCharacterElement(0).getAttributes())).getFamily().startsWith("TibetanMachineWeb") && !isRomanEnabled && contents.isDataFlavorSupported(DataFlavor.stringFlavor)) - { - String data = (String)contents.getTransferData(DataFlavor.stringFlavor); - toTibetanMachineWeb(data, offset); - } - else - { - for (int i=0; i