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:
parent
91b8fd3cd9
commit
27dfa66b02
1 changed files with 10 additions and 0 deletions
|
@ -931,7 +931,17 @@ public void paste(int offset) {
|
||||||
try {
|
try {
|
||||||
Transferable contents = rtfBoard.getContents(this);
|
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)){
|
if (contents.isDataFlavorSupported(rtfFlavor)){
|
||||||
|
|
||||||
InputStream in = (InputStream)contents.getTransferData(rtfFlavor);
|
InputStream in = (InputStream)contents.getTransferData(rtfFlavor);
|
||||||
int p1 = offset;
|
int p1 = offset;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue