[sword-devel] Re: [sword-devel]Squeak Sword UI

Chris Little sword-devel@crosswire.org
Thu, 16 Jan 2003 16:28:58 -0700 (MST)

On Thu, 16 Jan 2003, Jimmie Houchin wrote:

> I am not understanding the need of reading the binary indexes. If I can 
> read the text and produce the text appropriately for the frontend to 
> render to the user, then why do I need the indexes? Can't I create my 
> own indexes based off the text?

The indexes tell you which part of the data file corresponds with which 
verse.  The verses of each data file may be ordered or may not be ordered 
and they may have different numbers of verses, so you can't simply assume 
line 1 is Genesis 1:1 and line 31102 is Rev 22:21 and everything in 
between is well ordered according to some versification.

The index files ARE ordered in this way (except that Genesis 1:1 is 
actually record number 5 I think, following a number of introductions).  
Reading the index tells you precisely where and how long each verse is.