[sword-devel] SWORD features

Michael Paul Johnson sword-devel@crosswire.org
Fri, 20 Oct 2000 18:45:54 -0600

At 02:56 PM 10/20/00 -0700, Chris Little wrote:
>I got the impression he was interested in us releasing something akin to
>the rainbow study bible that has color-coded verses.
>If we want users to be able to color their own texts, we could do so using
>ThML/GBF and writable modules.  If we wanted to do per-user coloring, that

I don't like the idea of writing directly to the Bible modules and replicating the whole module per color. I'd much prefer color and underline highlighting information to be stored in an auxiliary file maintained for each user. To display the colors, an access function would get the "pure" Bible text from the GBF, ThML, or whatever format Bible file, then get the text display attributes for that text from the highlighting file and merge them in whatever format the display likes (i. e. RTF or HTML). The highlighting file could contain a list of highlighting attribute and start/stop word information for each color or attribute applied. If the start/stop word information is the actual word the highlighting is supposed to start or stop on (and possibly the number of the occurrence of the word in that verse), rather than the more obvious start at word 3 and go to word 7 sort of thing, then the same highlighting file might work correctly much of the time even if applied to the wrong translation in the same language. A pure word indexing scheme would me more compact, however.

...just some thoughts...

>would be possible with mechanisms similar to the per-user commentary
>setup.  We would have to check the user's copy of a module first (to see
>if they had their own version of a given verse) then return the
>system-wide version if they had none.  Still, it's possible.


Michael Paul Johnson                   
mpj@eBible.org    http://ebible.org/mpj