[sword-devel] Setting canonical="true" ?

DM Smith dmsmith at crosswire.org
Wed Feb 29 10:30:02 MST 2012

On 02/29/2012 12:09 PM, David Haslam wrote:
> According to one of the notes in http://crosswire.org/wiki/OSIS_Bibles#Body
> 2. Any<div>  defaults canonical to false. You need to set it to true on
> elements representing the structure of the original text.
> However, the output of usfm2osis.pl generates<div>  elements, but does not
> set the attribute canonical="true" ANYWHERE.
> cf. I just checked the OSIS file I made for preparing the Breton NT, and it
> has none.
The tutorial is correct. All divs should have canonical="true" if they 
surround material from the publisher. In the case of Bibles we take it 
to indicate whether the material is biblically canonical.

> So if our tutorial is correct, why does the recommended Perl script not
> implement this as advised?
> And anyway, does it make any real difference to the behaviour of the Bible
> module?
None whatsoever. The SWORD filters don't look for canonical on any of 
the elements except on that generated by osis2mod on the preverse div.

> The one place where we seem to require it is for the canonical Psalm titles.
This is so that they are not hidden when hiding headings. But the Psalm 
titles are not divs, though they may be contained by them.

> Simply not an issue for the module I was working on today.
> David
In Him,

More information about the sword-devel mailing list