From 27dfa66b026d4ec4bbe7dd67dee58baf2a041244 Mon Sep 17 00:00:00 2001 From: eg3p Date: Fri, 25 Oct 2002 19:47:14 +0000 Subject: [PATCH] Ongoing work with Andres to change paste so that isRomanEnabled = false implies auto conversion of Wylie to Tibetan. Doesn't work yet. --- source/org/thdl/tib/input/DuffPane.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/org/thdl/tib/input/DuffPane.java b/source/org/thdl/tib/input/DuffPane.java index 2e01e0c..963e0a9 100644 --- a/source/org/thdl/tib/input/DuffPane.java +++ b/source/org/thdl/tib/input/DuffPane.java @@ -931,7 +931,17 @@ public void paste(int offset) { try { Transferable contents = rtfBoard.getContents(this); +/* + if (!isRomanEnabled) { + if (contents.isDataFlavorSupported(DataFlavor.stringFlavor)) { + String data = (String)contents.getTransferData(DataFlavor.stringFlavor); + toTibetanMachineWeb(data, offset); + } + } else if (contents.isDataFlavorSupported(rtfFlavor)) { +*/ + if (contents.isDataFlavorSupported(rtfFlavor)){ + InputStream in = (InputStream)contents.getTransferData(rtfFlavor); int p1 = offset;