Pages

Wednesday, January 16, 2013

Redundancy Checker update

A week ago, I discussed my travails in getting my Java program working.

After some hunting, I've found an improved version of the RTFEditorKit at this site--an AdvancedRTFEditorKit. It's still not perfect, and it still loses smart quotes, but it does allow you to subclass its classes, which is something the old RTFEditorKit did not allow. You could subclass the kit itself, but not any of the classes it used to do the real work, which is what I needed. By subclassing the new RTFReader, I may be able to do some preprocessing and post processing in order to deal with the idiosyncrasies that are showing up. Unfortunately, some experimenting showed that my original idea (replacing \'93 with \ldblquote) won't work, though I suppose I could replace it with straight quotes.

It's all very annoying.  The whole idea of object oriented programming is that I wouldn't have to write an RTF reader from scratch.  I'm beginning to wonder just how much time I'm willing to dedicate to this.

No comments:

Post a Comment

I moderate comments on posts more than a week old. Your comment will appear immediately on new posts, or as soon as I get a chance to review it for older posts.