Ongoing work with Andres to change paste so that

isRomanEnabled = false implies auto conversion
of Wylie to Tibetan. Doesn't work yet.
This commit is contained in:
eg3p 2002-10-25 19:47:14 +00:00
parent 91b8fd3cd9
commit 27dfa66b02

View file

@ -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;