mvnForum Homepage

Print at Mar 2, 2015 4:22:32 AM View all posts in this thread on one page
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.

Posted by ransom1982 at Nov 29, 2009 5:40:21 PM
Re: A Quick Commentary OSIS Example
I think this is very helpful. Perhaps you would consider putting it on the wiki as well?

Posted by alvanx at Jan 6, 2011 2:27:15 PM
Re: A Quick Commentary OSIS Example
*push* I think this should definitely go on the wiki!

Posted by CruisesPerth at Apr 9, 2011 7:11:32 AM
Re: A Quick Commentary OSIS Example
Is it up on wiki now? or you haven't decided yet?
----------------------------------------
Travel Agents Perth