[sword-devel] osis2mod and preverse content
Troy A. Griffitts
scribe at crosswire.org
Mon Jul 7 07:40:00 MST 2008
Yes! I have also been wanting to change preverse title to simply a
preverse div for quite some time! The change WILL REQUIRE EACH FRONTEND
TO MAKE UPDATES, as each look in the EntryAttributes for preverse TITLE
currently. We'll have to change the filters to put the preverse div
into something better 'titled' :) And the frontends will have to change
their EntryAttributes lookup key to the new value we choose, but no
other changes should be necessary. Thanks for thinking about this. Now
that we're in a true development phase, it is the perfect time to make
these changes. I have quite a few in my local workspace that I hope to
If no one else objects with good reason, I'm in full favour of your
PS. I've been kicked out of the UK and am stuck in Italy, not good
internet access yet. Hope to get TIM mobile broadband tomorrow if
everything doesn't cost too much, and then hope to catch up on emails
and such. If you want the entire story, you can read my myspace blog at:
DM Smith wrote:
> Some background:
> osis2mod takes all the text in its input, dices it up into verses and
> stores that in the module.
> A SWORD module contains only verses, with special verses to hold
> introductions to testament, book and chapters.
> There are several kinds of text that can fall before a verse:
> 1) Testament introduction.
> 2) Book introduction.
> 3) Chapter introduction
> 4) Section introduction
> Currently the only kind of section introduction that SWORD and osis2mod
> handles is a heading, aka title.
> The material that stands before the first verse in a chapter is handled
> specially as there is some ambiguity as to what is a chapter
> introduction and what is a section introduction.
> Inter-verse material, i.e. stuff between verses, is split between the
> prior and the following verse. Typically, all whitespace is appended to
> the prior verse. Titles are attached to the following verse.
> So that the SWORD engine can place the verse number in the correct
> location, the title that is attached to the verse is given a type of
> "x-preverse". When rendering the verse number, the SWORD engine puts it
> after the preverse title.
> The problem is that as we see more and more OSIS Bibles, we are finding
> more and more pre-verse content. It does not neatly fall into the
> category of <title>. And all of it is very valid and very good OSIS.
> The current problem we have encountered in the Wycliffe Bibles (in beta) is:
> <div type="section">
> <verse osisID="Matt.5.21">...</verse>
> osis2mod is improperly throwing the reference in to a title and marking
> it x-preverse.
> Then the <div> confuses osis2mod, causing the real title to be put into
> the verse after the number.
> I'd like to propose the following change and would like feedback.
> All material that is deemed pre-verse, will be put into a <div
> type="x-preverse">....</div> and prefixed to the verse. It will use the
> container form of the element. The current handling of the "canonical"
> attribute would be retained, so that canonical headings would not be
> hidden when headings are turned off.
> This would require a change to the SWORD engine, so this would be a
> 1.5.12 change.
> In Him,
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel