<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Yep.  I think you traced the problem
      well, Chris.  Seems like a jsword bug to me.<br>
      <br>
      Brian<br>
      <br>
      On 10/23/2012 04:15 PM, Chris Burrell wrote:<br>
    </div>
    <blockquote
cite="mid:CACQnaRU0xCZDtKaAzZ_KpKskg7NOOdy7hCz4fsAq=SLQN6KmLA@mail.gmail.com"
      type="cite">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>
        <br>
      </div>
      <div>
        <div>&lt;div type="section" annotateType="commentary"
          annotateRef="Matt.1"&gt; </div>
        <div>    &lt;figure src="<a moz-do-not-send="true"
            href="http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg">http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg</a>"
          alt="Matthew 1, Page 1"&gt;&lt;caption&gt;Matthew 1, Page
          1&lt;/caption&gt; &lt;/figure&gt; </div>
        <div>    &lt;figure src="<a moz-do-not-send="true"
            href="http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg">http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg</a>"
          alt="Matthew 1, Page 1"&gt;&lt;caption&gt;Matthew 1, Page
          1&lt;/caption&gt;&lt;/figure&gt; </div>
        <div>[...]</div>
        <div>&lt;/div&gt;</div>
        <div><br>
        </div>
        <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:</div>
        <div><br>
        </div>
        <div>
          <div>  &lt;verse osisID="Matt.1.1"&gt;</div>
          <div>    &lt;div sID="gen1" type="x-testament" /&gt;</div>
          <div>    &lt;div osisID="Matt" sID="gen2" type="book" /&gt;</div>
          <div>    &lt;div annotateRef="Matt.1"
            annotateType="commentary" sID="gen3" type="section" /&gt;</div>
          <div>    &lt;figure alt="Matthew 1, Page 1" src="<a
              moz-do-not-send="true"
              href="http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg">http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg</a>"&gt;</div>
          <div>      &lt;caption&gt;Matthew 1, Page 1&lt;/caption&gt;</div>
          <div>    &lt;/figure&gt;</div>
          <div>    &lt;figure alt="Matthew 1, Page 1" src="<a
              moz-do-not-send="true"
              href="http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg">http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg</a>"&gt;</div>
          <div>      &lt;caption&gt;Matthew 1, Page 1&lt;/caption&gt;</div>
          <div>    &lt;/figure&gt;</div>
          <div>    &lt;div annotateRef="Matt.1"
            annotateType="commentary" eID="gen3" type="section" /&gt;</div>
          <div>    &lt;div eID="gen2" osisID="Matt" type="book" /&gt;</div>
          <div>    &lt;div eID="gen1" type="x-testament" /&gt;</div>
          <div>  &lt;/verse&gt;</div>
          <div>  &lt;verse osisID="Matt.1.2"&gt;</div>
          <div>    &lt;div sID="gen1" type="x-testament" /&gt;</div>
          <div>    &lt;div osisID="Matt" sID="gen2" type="book" /&gt;</div>
          <div>    &lt;div annotateRef="Matt.1"
            annotateType="commentary" sID="gen3" type="section" /&gt;</div>
          <div>    &lt;figure alt="Matthew 1, Page 1" src="<a
              moz-do-not-send="true"
              href="http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg">http://localhost/step-web/images/AlfordGT_40_Mat-0150.jpg</a>"&gt;</div>
          <div>      &lt;caption&gt;Matthew 1, Page 1&lt;/caption&gt;</div>
          <div>    &lt;/figure&gt;</div>
          <div>    &lt;figure alt="Matthew 1, Page 1" src="<a
              moz-do-not-send="true"
              href="http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg">http://localhost/step-web/images/AlfordGT_40_Mat-0151.jpg</a>"&gt;</div>
          <div>      &lt;caption&gt;Matthew 1, Page 1&lt;/caption&gt;</div>
          <div>    &lt;/figure&gt;</div>
          <div>    &lt;div annotateRef="Matt.1"
            annotateType="commentary" eID="gen3" type="section" /&gt;</div>
          <div>    &lt;div eID="gen2" osisID="Matt" type="book" /&gt;</div>
          <div>    &lt;div eID="gen1" type="x-testament" /&gt;</div>
          <div>  &lt;/verse&gt;</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Chris</div>
          <div><br>
          </div>
          <div><br>
            <br>
            <div class="gmail_quote">On 23 October 2012 20:49, Brian J
              Dumont <span dir="ltr">&lt;<a moz-do-not-send="true"
                  href="mailto:brian.j.dumont@gmail.com" target="_blank">brian.j.dumont@gmail.com</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div bgcolor="#FFFFFF" text="#000000">
                  <div>It should not be doing that.  When you run
                    osis2mod, you should see something like <br>
                    Gen.1.2 linked to Gen.1.1<br>
                    Gen.1.3 linked to Gen.1.1<br>
                    Gen.1.4 linked to Gen.1.1<br>
                    etc.<br>
                    <br>
                    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.<br>
                    <br>
                    my build script for this module is very simple:<br>
                    xmllint --noout --schema <a moz-do-not-send="true"
href="http://www.bibletechnologies.net/osisCore.2.1.1.xsd"
                      target="_blank">http://www.bibletechnologies.net/osisCore.2.1.1.xsd</a>
                    art.osis<br>
                    osis2mod mod/ art.osis<span class="HOEnZb"><font
                        color="#888888"><br>
                        <br>
                        Brian</font></span>
                    <div>
                      <div class="h5"><br>
                        <br>
                        On 10/23/2012 03:38 PM, Chris Burrell wrote:<br>
                      </div>
                    </div>
                  </div>
                  <div>
                    <div class="h5">
                      <blockquote type="cite">Thanks Brian. I see you
                        used the following fragment:
                        <div><br>
                        </div>
                        <div>&lt;div type="section"
                          annotateType="commentary"
                          annotateRef="Gen.1.1-Gen.1.5"&gt;</div>
                        <div><br>
                        </div>
                        <div>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? </div>
                        <div><br>
                        </div>
                        <div>Did you use osis2mod? or another tool to
                          create your module from the source you sent
                          me?</div>
                        <div><br>
                        </div>
                        <div>Chris</div>
                        <div><br>
                          <br>
                          <div class="gmail_quote">On 23 October 2012
                            20:15, Brian J Dumont <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:brian.j.dumont@gmail.com"
                                target="_blank">brian.j.dumont@gmail.com</a>&gt;</span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000">
                                <div>Hi Chris,<br>
                                  <br>
                                  This is the source for BibleArtBW,
                                  which is also an OSIS commentary
                                  containing images<br>
                                  <br>
                                  Hopefully you may find it useful,<br>
                                  Brian
                                  <div>
                                    <div><br>
                                      <br>
                                      <br>
                                      On 10/23/2012 03:10 PM, Chris
                                      Burrell wrote:<br>
                                    </div>
                                  </div>
                                </div>
                                <div>
                                  <div>
                                    <blockquote type="cite">
                                      <p>Hi DM</p>
                                      <p>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?</p>
                                      <p>Chris</p>
                                      <div class="gmail_quote">On Oct
                                        23, 2012 7:17 PM, "DM Smith"
                                        &lt;<a moz-do-not-send="true"
                                          href="mailto:dmsmith@crosswire.org"
                                          target="_blank">dmsmith@crosswire.org</a>&gt;

                                        wrote:<br type="attribution">
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          osis2mod is for Bible's and
                                          commentaries that are verse by
                                          verse. It does not work with
                                          all forms of osis input.<br>
                                          <br>
                                          What kind of module are you
                                          trying to build?<br>
                                          <br>
                                          In Him,<br>
                                                  DM<br>
                                          <br>
                                          On Oct 23, 2012, at 1:59 PM,
                                          Chris Burrell &lt;<a
                                            moz-do-not-send="true"
                                            href="mailto:chris@burrell.me.uk"
                                            target="_blank">chris@burrell.me.uk</a>&gt;

                                          wrote:<br>
                                          <br>
                                          &gt; Hi<br>
                                          &gt;<br>
                                          &gt; 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.<br>
                                          &gt;<br>
                                          &gt; According to the OSIS
                                          manual that is acceptable:<br>
                                          &gt; 7.6.1. Elements allowed
                                          in chapter elements<br>
                                          &gt;<br>
                                          &gt; 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...<br>
                                          &gt;<br>
                                          &gt; Any ideas what might be
                                          happening and what I'm doing
                                          wrong?<br>
                                          &gt; Chris<br>
                                          &gt;<br>
                                          &gt;
                                          _______________________________________________<br>
                                          &gt; jsword-devel mailing list<br>
                                          &gt; <a
                                            moz-do-not-send="true"
                                            href="mailto:jsword-devel@crosswire.org"
                                            target="_blank">jsword-devel@crosswire.org</a><br>
                                          &gt; <a
                                            moz-do-not-send="true"
                                            href="http://www.crosswire.org/mailman/listinfo/jsword-devel"
                                            target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
                                          <br>
                                        </blockquote>
                                      </div>
                                      <br>
                                      <fieldset></fieldset>
                                      <br>
                                      <pre>_______________________________________________
jsword-devel mailing list
<a moz-do-not-send="true" href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a>
<a moz-do-not-send="true" href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a>
</pre>
                                    </blockquote>
                                    <br>
                                    <br>
                                  </div>
                                </div>
                                <span><font color="#888888">
                                    <pre cols="72">-- 
-----------------------------------------------------------------------
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
</pre>
                                  </font></span></div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </blockquote>
                      <br>
                      <br>
                      <pre cols="72">-- 
-----------------------------------------------------------------------
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
</pre>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
-----------------------------------------------------------------------
"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
</pre>
  </body>
</html>