0ad135f8f1
is basically that we use our own special ViewFactory, with a new subclass of LabelView (the view RTFEditorKit uses for the nitty gritty) that is aware of Tibetan. There are a couple of nasty hacks still here, and Swing's documentation for doing what I did was quite poor. I searched the web for hours, read the Javadocs and the tutorials, and consulted a Swing reference book, but I still don't have tremendous confidence in this solution. If it fundamentally doesn't work, though, we have to define our own first-class Document, Element hierarchy, ViewFactory, Views, and EditorKit. So let's hope it *does* work fundamentally. I can't say for sure if this even works, as I have yet to run this code on a machine where Jskad works properly. I had major trouble installing the TMW fonts on Linux, and have yet to resolve it, even after verifying via xlsfonts that the fonts were installed and then changing TibetanMachineWeb.java to look for them. Because I haven't tested this yet, a lot of nasty code is tagged 'DLC' and commented out. |
||
---|---|---|
.. | ||
acip_keyboard.ini | ||
DuffCellRenderer.java | ||
DuffCode.java | ||
InvalidWylieException.java | ||
package.html | ||
sambhota_keyboard_1.ini | ||
tcc_keyboard_1.ini | ||
tcc_keyboard_2.ini | ||
TibetanDocument.java | ||
TibetanHTML.java | ||
TibetanKeyboard.java | ||
TibetanLabelView.java | ||
TibetanMachineWeb.java | ||
TibetanQTText.java | ||
TibetanQTText2.java | ||
TibetanRTFEditorKit.java | ||
TibetanRTFViewFactory.java | ||
tibwn.ini |