[sword-devel] OSIS headings, divs and libsword

Peter von Kaehne refdoc at gmx.net
Wed Sep 29 15:33:48 MST 2010


On 29/09/10 23:19, Troy A. Griffitts wrote:
> Your markup is exactly correct.  There is initial code is osis2mod which
> handles pre-verse <div> content, but it was commented out recently
> because the engine filters have not yet caught up.
> 
> The history is that we used to only support the OSIS <title> tag for
> preverse content.  We are generalizing the preverse concept to include
> anything and thus it will change to a preverse div (just like you have
> marked up in your example).  But the engine filters do not yet all
> handle this correctly.
> 
> I hope this answers your question.

It does. What do I do with the module? We have a pretty discouraged
customer here who has worked very hard to create this module (not me)
but AFAIK no frontend displays it right.

Peter

> 
> In summary: you are correct, the expanded definition of pre-verse
> content is in the works, but it's not completed yet.
> 
> Troy
> 
> 
> On 09/29/2010 09:26 AM, Peter von Kaehne wrote:
>> Hi guys,
>>
>> I stumbled last night over a problem which I think finds its origin in
>> the library and I would be grateful for your take on it:
>>
>> Basically if a <title> tag precedes the body of a verse it will not
>> reliably be fed back to the front ends if there are <div> tags present
>> in the same verse.
>>
>> Removing the divs (crudely nuking them via mod2imp -> nuke divs ->
>> imp2vs) will make the titles suddenly appear if the heading option is set.
>>
>> An example is here:
>>
>> $$$Matthew 6:1
>> <div type="x-milestone" subType="x-preverse" sID="pv1613"/><div
>> sID="gen1714" type="section"/> <title>Intinn Ghlan sa Déirc</title> <div
>> type="x-milestone" subType="x-preverse" eID="pv1613"/> Aire daoibh gan
>> bheith ag déanamh taibhsimh as bhur ndea-oibreacha os comhair daoine
>> chun go dtabharfaidís faoi deara iad, óir má bhíonn sibh, beidh sibh gan
>> tuarastal i láthair bhur nAthar atá ar neamh. <lb
>> type="x-end-paragraph"/> <lb type="x-begin-paragraph"/>
>>
>> will throw in diatheke
>>
>> diatheke -b ABN -oh -f OSIS -k Matt6:1
>>
>> Matthew 6:1:  Aire daoibh gan bheith ag déanamh taibhsimh as bhur
>> ndea-oibreacha os comhair daoine chun go dtabharfaidís faoi deara iad,
>> óir má bhíonn sibh, beidh sibh gan tuarastal i láthair bhur nAthar atá
>> ar neamh. <lb type="x-end-paragraph"/> <lb
>> type="x-begin-paragraph"/><milestone type="line"/>
>> (ABN)
>>
>> In other frontends the heading is missing too.
>>
>> It is not by all means always like this - some (few) headings (e.g in
>> Matthew 1:1 ) seem to survive, though I have not yet figured out what
>> makes them happen and what not.
>>
>> The module text above is from John Duffy's Irish Bible - the module is
>> available here:
>>
>> http://www.anbioblanaofa.org/en/crosswire
>>
>> Acc to John Duffy, more headings are visible in older versions of
>> BibleCS and Xiphos (1.5.11 and 3.1.1 respectively)
>>
>>
>> Peter
>>
>>
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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




More information about the sword-devel mailing list