mvnForum Homepage

Print at Dec 27, 2014 3:57:47 PM View all posts in this thread on one page
Posted by Johann at Oct 14, 2009 5:19:51 PM
Total newbie here - any templates for making a commentary module?
Hello,

I'm very new to OSIS in general and am working on converting a commentary so that it can eventually be a Sword module. I found a template for the KJV Bible and that hs been helpful to a point, but it seems that a commentary would be handled quite differently.

Thanks in advance,

John

Posted by Osk at Oct 15, 2009 12:00:01 AM
Re: Total newbie here - any templates for making a commentary module?
I'm afraid we don't have any example commentaries in OSIS. I'm sure you've already spotted http://www.crosswire.org/wiki/OSIS_Commentaries, but as it shows, the fundamental difference between Bibles and commentaries is that Bibles use something like:

<verse osisID="Gen.1.1">Blah blah...</verse>


to contain the entries, while commentaries use something like:

<div type="section" annotateType="commentary" annotateRef="Gen.1.1"><p>Blah blah...</p></div>


The contents of these containers can be essentially the same. What makes commentaries significantly different from Bibles is that the basic Bible element (<verse>) takes an osisID to indicate its reference while a commentary's basic element (<div>) takes an annotateRef. OsisIDs must be either single verses or lists of verses, but annotateRefs can be single verses, verse ranges, or lists of verses or ranges. This gives the annotateRef a lot more versatility. It's also possible (in OSIS, though Sword couldn't currently take advantage of this) to have multiple <div>s carry annotateRefs that point to the same verse.

Posted by Johann at Oct 15, 2009 9:27:38 AM
Re: Total newbie here - any templates for making a commentary module?
Thanks!