[jsword-devel] Module Format

Joe Walker jsword-devel@crosswire.org
Wed, 12 Mar 2003 22:38:12 +0000


Stephen Denne wrote:

>>Hi,
>>
>>I'm back from my self-enforced jsword coding ban, and wanting to finish
>>    
>>
>
>I've been waiting for you to say you were back... while you were away, I
>decided to take a look at jsword. I also decided to download and play with
>eclipse, as I'd been using Netbeans (to create the indexes for my PalmOS
>concordance), and I kept hearing about eclipse. Anyway, I managed to get it
>to do lots of copying from cvs, but couldn't find osis dependencies.
>
>Are they not checked in?
>  
>

I need to document this in some way - you're not the first to ask. They 
are generated from the .xsd file. Just run the default ANT task and they 
will all be created for you

>>off the Sword drivers. The biggest open question is on basic file
>>format, especially .zip encoded Bibles.
>>Is there any documentation anywhere on this?
>>    
>>
>
>I've only quickly looked at (quite an old copy of) the c source, and I think
>SWCompress gets implemented as either an ZipCompress using zlib (source in
>utilfuns), or LZSSCompress (source in lzsscomprs.cpp)
>  
>
Yes. I've spent a something like 10mins looking at them, discovering 
that I'm not as fluent in C as I was 6 years ago!

I'm hoping that the compression routines in Java will help us, so all 
that would be needed is to get the appropriate byte[] and pass it in an 
InputStream to java.util.zip/gzip and all is done for us.
Maybe I'll have another go at reading the C.

Joe.