[sword-devel] mod2osis failure

Chris Little chrislit at crosswire.org
Wed Apr 14 19:06:55 MST 2010


Could you post the exact command you used to produce this output?

Also, please summarize what you see as problems in the output, if there 
are any other than the three I identify:

1) The schema identified is non-existent. (Easily rectified, and I'll 
attend to it when I get home.)

2) "Error reading ulBuffNum" This is an error message. It should be 
going to stderr, so I don't know why it is appearing in your output 
unless you piped both stdout & stderr to a file. I'll hunt for the bug, 
if that isn't the cause.

3) Double marking of verses (e.g. <verse osisID="Matt.1.1"><verse 
osisID="Matt.1.1" sID="Matt.1.1"/>). I have some guesses as to why this 
is happening, especially if it occurs with some but not all modules, but 
it really shouldn't happen, either way.

That said, mod2osis is as low priority as anything could possibly be. 
Its use is essentially for exporting our texts for use outside of Sword, 
which we don't support or encourage and which as often as not 
constitutes a license violation (of the content licenses). So, while I 
wouldn't mind seeing mod2osis work correctly, I'm not personally likely 
to expend much effort on it.

--Chris


troypulk wrote:
> Sorry about the attachment, it was only 1.8MB and I was not aware of the 
> 90KB limit.
> 
> But any way, It's obvious that mod2osis is inadequate to produce a 
> proper formatted osis.xml file, here is an example.
> 
> Please advice on my options to correctly produce a osis.xml file from a 
> module with our starting from scratch.
> 
> Thanks for your help
> 
> Troy
> 
> <?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="EMTV" osisRefWork="defaultReferenceScheme" 
> xml:lang="en">
> 
> <header>
> <work osisWork="EMTV">
> <title>English Majority Text Version</title>
> <identifier type="OSIS">Bible.EMTV</identifier>
> <refSystem>Bible.KJV</refSystem>
> </work>
> <work osisWork="defaultReferenceScheme">
> <refSystem>Bible.KJV</refSystem>
> </work>
> </header>
> 
> Error reading ulBuffNum
> Error reading ulBuffNum
> Error reading ulBuffNum
> <div type="x-testament">
> <div type="book" osisID="Matt">
> 
> <chapter osisID="Matt.1">
> <verse osisID="Matt.1.1"><verse osisID="Matt.1.1" sID="Matt.1.1"/>The 
> book<note><catchWord>book</catchWord> biblos, Gk.: (noun) <q>An inner 
> rind of papyrus used for paper. Originally, the cellular substance in 
> papyrus stems that the Egyptians turned into a kind of <q>paper</q>, by 
> fixing narrow strips vertically, and then sticking horizontal ones on 
> top. The English word Bible is derived from the plural biblion, the 
> books.</q></note> of the genealogy of Jesus Christ, the Son of David, 
> the Son of Abraham:<verse eID="Matt.1.1"/></verse>
> 
> <verse osisID="Matt.1.2"><verse osisID="Matt.1.2" 
> sID="Matt.1.2"/>Abraham begot Isaac, Isaac begot Jacob, and Jacob begot 
> Judah and his brothers.<verse eID="Matt.1.2"/></verse>
> 
> <verse osisID="Matt.1.3"><verse osisID="Matt.1.3" sID="Matt.1.3"/>Judah 
> begot Perez and Zerah by Tamar, Perez begot Hezron, and Hezron begot 
> Ram.<verse eID="Matt.1.3"/></verse>
> 
> <verse osisID="Matt.28.20"><verse osisID="Matt.28.20" 
> sID="Matt.28.20"/>teaching them to observe everything that I have 
> commanded you; and lo, I am with you always, even to the end of the 
> age.</q> Amen.<verse eID="Matt.28.20"/> </chapter></div></verse>
> 
> </chapter>
> </div>
> <div type="book" osisID="Mark">
> 
> <chapter osisID="Mark.1">
> <verse osisID="Mark.1.1"><verse osisID="Mark.1.1" sID="Mark.1.1"/>THE 
> BEGINNING OF THE GOSPEL OF JESUS CHRIST, THE SON OF GOD.<verse 
> eID="Mark.1.1"/></verse>
> 
> <verse osisID="Rev.22.21"><verse osisID="Rev.22.21" sID="Rev.22.21"/>The 
> grace of the Lord Jesus Christ <hi type="italic">be</hi> with all the 
> saints. Amen.<verse eID="Rev.22.21"/> </chapter></div></verse>
> 
> </chapter>
> </div>
> </div>
> </osisText>
> </osis>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page



More information about the sword-devel mailing list