Difference between revisions of "OSIS Commentaries"
(Initial discussion of OSIS Commentary construction.) |
(updated to indicate osis2mod now handles commentaries.) |
||
Line 3: | Line 3: | ||
=Markup= | =Markup= | ||
− | + | An OSIS Commentary differs from an OSIS Bible in that an [[OSIS Bibles]] use: | |
<pre> | <pre> | ||
<verse osisID="Gen.1.1"><p>Blah blah...</p></div> | <verse osisID="Gen.1.1"><p>Blah blah...</p></div> | ||
</pre> | </pre> | ||
− | + | But the fundamental mechanism of markup for an OSIS commentary replaces that with: | |
<pre> | <pre> | ||
<div type="section" annotateType="commentary" annotateRef="Gen.1.1"><p>Blah blah...</p></div> | <div type="section" annotateType="commentary" annotateRef="Gen.1.1"><p>Blah blah...</p></div> | ||
Line 17: | Line 17: | ||
'''type'''<br/>This attribute can have any valid value or even be absent. osis2mod will not use this value. | '''type'''<br/>This attribute can have any valid value or even be absent. osis2mod will not use this value. | ||
− | '''annotateType'''<br/>This attribute must have the value ''commentary'' will be used to know that we are processing an entry for a commentary. | + | '''annotateType'''<br/>This attribute must have the value ''commentary'' and will be used to know that we are processing an entry for a commentary. |
'''annotateRef'''<br/>This attribute can contain any valid osisRef, but the references must not have a work prefix, such as 'Bible:'. The default for all references and the only ones that SWORD supports at this time are Bible references. We'll tackle work prefixes at a later date. | '''annotateRef'''<br/>This attribute can contain any valid osisRef, but the references must not have a work prefix, such as 'Bible:'. The default for all references and the only ones that SWORD supports at this time are Bible references. We'll tackle work prefixes at a later date. | ||
Line 30: | Line 30: | ||
Discontinuous references are to be separated by whitespace, "osisRef osisRef". For example: | Discontinuous references are to be separated by whitespace, "osisRef osisRef". For example: | ||
annotateRef="Gen.1.1 Gen1.5" | annotateRef="Gen.1.1 Gen1.5" | ||
+ | |||
+ | =Importing= | ||
+ | osis2mod (>= 1.5.11) is used for both Bibles and Commentaries. See [[OSIS Bibles]] for details. |
Revision as of 12:49, 18 May 2008
Introduction
In SWORD a commentary is structured just like a Bible. The difference is that instead of verse text the commentary has discussion about verse text.
Markup
An OSIS Commentary differs from an OSIS Bible in that an OSIS Bibles use:
<verse osisID="Gen.1.1"><p>Blah blah...</p></div>
But the fundamental mechanism of markup for an OSIS commentary replaces that with:
<div type="section" annotateType="commentary" annotateRef="Gen.1.1"><p>Blah blah...</p></div>
A couple of things to note:
type
This attribute can have any valid value or even be absent. osis2mod will not use this value.
annotateType
This attribute must have the value commentary and will be used to know that we are processing an entry for a commentary.
annotateRef
This attribute can contain any valid osisRef, but the references must not have a work prefix, such as 'Bible:'. The default for all references and the only ones that SWORD supports at this time are Bible references. We'll tackle work prefixes at a later date.
A single reference uses single "osisID":
annotateRef="Gen.1.1"
A range will be of the form, "osisID-osisID":
annotateRef="Gen.1.1-Gen.2.3"
where the first and the second reference are complete osisIDs and they are separated by a - (and no spaces). And the first reference must precede the second.
Discontinuous references are to be separated by whitespace, "osisRef osisRef". For example:
annotateRef="Gen.1.1 Gen1.5"
Importing
osis2mod (>= 1.5.11) is used for both Bibles and Commentaries. See OSIS Bibles for details.