mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
Post new Thread
Author
Previous Thread This topic has been viewed 16691 times and has 3 replies Next Thread
Male ne0phyte
Stranger




Joined: Nov 19, 2009
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Nov 25, 2009 1:06:23 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ransom1982
Regular




Joined: Sep 28, 2007
Post Count: 75
Status: Offline
Reply to this Post  Reply with Quote 
Re: A Quick Commentary OSIS Example

I think this is very helpful. Perhaps you would consider putting it on the wiki as well?
[Nov 29, 2009 5:40:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male alvanx
Regular




Joined: Aug 6, 2009
Post Count: 27
Status: Offline
Reply to this Post  Reply with Quote 
Re: A Quick Commentary OSIS Example

*push* I think this should definitely go on the wiki!
[Jan 6, 2011 2:27:15 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female CruisesPerth
Stranger



Australia
Joined: Apr 8, 2011
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: A Quick Commentary OSIS Example

Is it up on wiki now? or you haven't decided yet?
----------------------------------------
Travel Agents Perth
[Apr 9, 2011 7:11:32 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread