On Mon, Oct 07, 2002 at 05:07:41PM -0600, Sean M. Burke wrote: > I don't think there will be /dozens/ of potentially useful formatters that > you'd want to plug in this way, but I figure I at least need whatever > interface would be necessary to being able to drop in a tkpod browser, an > RTF converter (whether MSWord, WordpPad, or anything else), an HTML > converter, and even just good old plaintext, and have appropriate things
There are at least 2 versions of "plaintext" aren't there? truly plain text, and the sort of "text" that Unix pagers can cope with that contain underlining and bold done with backspace and _ and repeated characters. > copy is actually not the right copy anymore, because it's a cached > formatted version of Pod that has been replaced (whether by an older or > newer version, whether by replacing the older file itself, or superceding > it in an earlier on @INC directory). > I'm a bit torn on that whole situation. I can think of some quite tidy > solutions that regrettably fail in the real world because of things like > permissions and even race conditions. The actual formatting is the slow part, isn't it? Not the finding or reading of the pod source file? If so, then can you implement a cache by finding whichever pod source file is current, reading it in and MD5 hashing it, and then using that hash to compare with your cached version, which you index by name and MD5 hash? Nicholas Clark
