mvnForum Homepage


Posted by ne0phyte at Nov 25, 2009 1:06:23 PM
A Quick Commentary OSIS Example
For those who are interested, here is a quick example OSIS XML that can be used as an example of to create a commentary:

<?xml version="1.0" encoding="UTF-8" ?>
<osis xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace osisCore.2.5.xsd">
<osisText osisIDWork="ExampleComm" osisRefWork="defaultReferenceScheme" xml:lang="en">
<header>
<work osisWork="ExampleComm">
<title>Example Commentary</title>
<identifier type="OSIS">ExampleComm</identifier>
<language>en</language>
</work>
</header>
<div type="section" annotateType="commentary" annotateRef="Gen.1.1">
<p>This is the first verse of the first chapter of the first book of the Bible.
<note type="x-footnote" n="1">An example footnote.</note>
</p>
</div>
<div type="section" annotateType="commentary" annotateRef="Gen.1.2">
<p>This is the second verse of the first chapter of the first book of the Bible.</p>
</div>
<div type="section" annotateType="commentary" annotateRef="Gen.1.3">
<p>This is the third verse of the first chapter of the first book of the Bible.</p>
</div>
</osisText>
</osis>


Here is the configuration file:

[ExampleComm]
DataPath=./modules/comments/zcom/examplecomm
ModDrv=zCom
BlockType=CHAPTER
SourceType=OSIS
CompressType=ZIP
Lang=en
Encoding=UTF-8
Version=1.1
History_1.1=Initial version
About=Here is an example of how to create a commentary in SWORD using the OSIS format.
Description=Example Commentary
GlobalOptionFilter=OSISFootnotes


Now if the XML is saved to example.xml, here is a quick example of how use osis2mod to create the module:

$ mkdir modules
$ mkdir modules/comments
$ mkdir modules/comments/zcom
$ mkdir modules/comments/zcom/examplecomm
$ osis2mod ./modules/comments/zcom/examplecomm example.xml -z -b 3


Hope this is useful.