[sword-devel] OSIS headings, divs and libsword

Peter von Kaehne refdoc at gmx.net
Wed Sep 29 01:26:38 MST 2010


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




More information about the sword-devel mailing list