[jsword-devel] OSIS Modules

Brian J Dumont brian.j.dumont at gmail.com
Tue Oct 23 13:35:25 MST 2012


Yep.  I think you traced the problem well, Chris.  Seems like a jsword 
bug to me.

Brian

On 10/23/2012 04:15 PM, Chris Burrell wrote:
> You're absolutely right. Both mod2osis and then osis2mod get back 
> roughly the same data... The problem therefore seems to be with 
> JSword, unless i don't understand what linking should do... Here's my 
> source:
>
> <div type="section" annotateType="commentary" annotateRef="Matt.1">
>     <figure 
> src="http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg" 
> alt="Matthew 1, Page 1"><caption>Matthew 1, Page 1</caption> </figure>
>     <figure 
> src="http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg" 
> alt="Matthew 1, Page 1"><caption>Matthew 1, Page 1</caption></figure>
> [...]
> </div>
>
> the mod2osis command gives me the above (approx, where's it has got 
> rid of the hierarchy and put some sId and eId, presumably for start 
> and end of the divs). However, when reading it through JSword,  I get 
> each individual verse:
>
>   <verse osisID="Matt.1.1">
>     <div sID="gen1" type="x-testament" />
>     <div osisID="Matt" sID="gen2" type="book" />
>     <div annotateRef="Matt.1" annotateType="commentary" sID="gen3" 
> type="section" />
>     <figure alt="Matthew 1, Page 1" 
> src="http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg">
>       <caption>Matthew 1, Page 1</caption>
>     </figure>
>     <figure alt="Matthew 1, Page 1" 
> src="http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg">
>       <caption>Matthew 1, Page 1</caption>
>     </figure>
>     <div annotateRef="Matt.1" annotateType="commentary" eID="gen3" 
> type="section" />
>     <div eID="gen2" osisID="Matt" type="book" />
>     <div eID="gen1" type="x-testament" />
>   </verse>
>   <verse osisID="Matt.1.2">
>     <div sID="gen1" type="x-testament" />
>     <div osisID="Matt" sID="gen2" type="book" />
>     <div annotateRef="Matt.1" annotateType="commentary" sID="gen3" 
> type="section" />
>     <figure alt="Matthew 1, Page 1" 
> src="http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg">
>       <caption>Matthew 1, Page 1</caption>
>     </figure>
>     <figure alt="Matthew 1, Page 1" 
> src="http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg">
>       <caption>Matthew 1, Page 1</caption>
>     </figure>
>     <div annotateRef="Matt.1" annotateType="commentary" eID="gen3" 
> type="section" />
>     <div eID="gen2" osisID="Matt" type="book" />
>     <div eID="gen1" type="x-testament" />
>   </verse>
>
>
> Chris
>
>
>
> On 23 October 2012 20:49, Brian J Dumont <brian.j.dumont at gmail.com 
> <mailto:brian.j.dumont at gmail.com>> wrote:
>
>     It should not be doing that.  When you run osis2mod, you should
>     see something like
>     Gen.1.2 linked to Gen.1.1
>     Gen.1.3 linked to Gen.1.1
>     Gen.1.4 linked to Gen.1.1
>     etc.
>
>     They should all be handled internally by links not copies.  Also,
>     front-ends should be smart enough to understand links, so when you
>     have "commentary by chapter" selected, you should only see this
>     content once.
>
>     my build script for this module is very simple:
>     xmllint --noout --schema
>     http://www.bibletechnologies.net/osisCore.2.1.1.xsd art.osis
>     osis2mod mod/ art.osis
>
>     Brian
>
>
>     On 10/23/2012 03:38 PM, Chris Burrell wrote:
>>     Thanks Brian. I see you used the following fragment:
>>
>>     <div type="section" annotateType="commentary"
>>     annotateRef="Gen.1.1-Gen.1.5">
>>
>>     Unfortunately, what that seems to do is make 5 verses (Gen.1.1,
>>     Gen.1.2, etc.) and copies all the content into it. Unless I'm
>>     misunderstanding something?
>>
>>     Did you use osis2mod? or another tool to create your module from
>>     the source you sent me?
>>
>>     Chris
>>
>>
>>     On 23 October 2012 20:15, Brian J Dumont
>>     <brian.j.dumont at gmail.com <mailto:brian.j.dumont at gmail.com>> wrote:
>>
>>         Hi Chris,
>>
>>         This is the source for BibleArtBW, which is also an OSIS
>>         commentary containing images
>>
>>         Hopefully you may find it useful,
>>         Brian
>>
>>
>>
>>         On 10/23/2012 03:10 PM, Chris Burrell wrote:
>>>
>>>         Hi DM
>>>
>>>         I have a collection of images tagged by chapter and there
>>>         can be more than one image per chapter. each image is a page
>>>         from a commentary. are there perhaps other tools to create
>>>         such modules?
>>>
>>>         Chris
>>>
>>>         On Oct 23, 2012 7:17 PM, "DM Smith" <dmsmith at crosswire.org
>>>         <mailto:dmsmith at crosswire.org>> wrote:
>>>
>>>             osis2mod is for Bible's and commentaries that are verse
>>>             by verse. It does not work with all forms of osis input.
>>>
>>>             What kind of module are you trying to build?
>>>
>>>             In Him,
>>>                     DM
>>>
>>>             On Oct 23, 2012, at 1:59 PM, Chris Burrell
>>>             <chris at burrell.me.uk <mailto:chris at burrell.me.uk>> wrote:
>>>
>>>             > Hi
>>>             >
>>>             > I'm attempting to write my first OSIS module. I've got
>>>             it all zipping up, etc. However there is no content. I
>>>             have a chapter block with a list of figures inside.
>>>             >
>>>             > According to the OSIS manual that is acceptable:
>>>             > 7.6.1. Elements allowed in chapter elements
>>>             >
>>>             > However, when I reverse the process with mod2osis, I
>>>             see that there is no content, my list of figures in each
>>>             chapter are absent, and I have no chapters either...
>>>             >
>>>             > Any ideas what might be happening and what I'm doing
>>>             wrong?
>>>             > Chris
>>>             >
>>>             > _______________________________________________
>>>             > jsword-devel mailing list
>>>             > jsword-devel at crosswire.org
>>>             <mailto:jsword-devel at crosswire.org>
>>>             > http://www.crosswire.org/mailman/listinfo/jsword-devel
>>>
>>>
>>>
>>>         _______________________________________________
>>>         jsword-devel mailing list
>>>         jsword-devel at crosswire.org  <mailto:jsword-devel at crosswire.org>
>>>         http://www.crosswire.org/mailman/listinfo/jsword-devel
>>
>>
>>         -- 
>>         -----------------------------------------------------------------------
>>         The opposite of fear is not courage; the opposite of fear is Faith. The
>>         devil has Fear Alone; we have Faith Alone – Christ Alone.  Fear looks
>>         inward, and finds nothing. Faith looks outside itself to Jesus the
>>         Crucified, and finds everything.  - Todd Wilken
>>
>>
>
>
>     -- 
>     -----------------------------------------------------------------------
>     The opposite of fear is not courage; the opposite of fear is Faith. The
>     devil has Fear Alone; we have Faith Alone – Christ Alone.  Fear looks
>     inward, and finds nothing. Faith looks outside itself to Jesus the
>     Crucified, and finds everything.  - Todd Wilken
>
>


-- 
-----------------------------------------------------------------------
"The whole art of learning to pray is learning to mean what the Lord's
Prayer says" -  Dr. Ken Schurb  Zion Lutheran Church  Moberly, MO

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20121023/cf861f8a/attachment-0001.html>


More information about the jsword-devel mailing list