[sword-devel] compression drivers

Troy A. Griffitts sword-devel@crosswire.org
Thu, 07 Dec 2000 13:03:58 -0700

Well, the first working cut of the compression drivers are now in CVS.
There is a utility sword/utilities/mod2zmod that can be used to create a
compressed module from a raw module.

The compression index design and much of the code was submitted by
Daniel Glassey.  THANKS DANIEL!!!

Currently, all compression is done on a verse by verse basis, yielding
not so great-- or even worth it-- compression.  The code supports verse,
chapter, and book compression, but one small function still remains to
be written:


bool zText::sameBlock(VerseKey *lastWriteKey, VerseKey *key) {
        return false;

It should compare blockType to CHAPTERBLOCKS, VERSEBLOCKS, or BOOKBLOCKS
and do comparisons appropriately, returning true if the keys are in the
same <whatever blockType dictates>.  Any takers?