[sword-devel] Q about -s 4 option to osis2mod
DM Smith
dmsmith at crosswire.org
Sat Jan 27 07:06:20 MST 2018
For an uncompressed module there are 2 files per testament: an index file and a data file. There is one entry in the index file per verse in the versification. Each entry consists of a 4 byte offset and a 2 or 4 byte length. The -s flag indicates the byte size of the length. So using a -s4 will increase the size of the index file by 33%.
The data file is unchanged by the -s flag.
The compressed module is similar but has an extra set of files to indicate the block start and block size. This file does not change based upon the -s flag.
So using the -s 4 flag is not a big deal. When we build modules for the CrossWire repository we’ll use the smallest available.
Every message that osis2mod creates is found in the wiki: http://wiki.crosswire.org/Osis2mod#Messages <http://wiki.crosswire.org/Osis2mod#Messages>
There is no message for it.
In His Service,
DM Smith
> On Jan 26, 2018, at 5:24 PM, John Dudeck <john.dudeck at sim.org> wrote:
>
> Greetings.
>
> I am a little unclear about how to know when to use the 4-byte -s 4 entry option for osis2mod for commentaries and bibles. I have some LARGE commentaries, and I don't know how I can find out if there are any entries that are over 64K. Is there a message generated somewhere?
>
> Or alternatively, is there any disadvantage to just always using the -s 4 option?
>
> John Dudeck
> Programmer at Editions Cle Lyon, France
> john.dudeck at sim.org john at editionscle.com
> --
> "No man is an island, entire of itself; every man is a piece of the continent,
> a part of the main...." -- John Donne
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180127/70f822eb/attachment-0001.html>
More information about the sword-devel
mailing list