There is a structure which kind of allows for that. UBS bibles use it quite commonly. <br><br>Look at the intro to e.g. FaTPV.<br><br>Sent from my mobile. Please forgive shortness, typos and weird autocorrects.<div class="quote" style="line-height: 1.5"><br><br>-------- Original Message --------<br>Subject: Re: [sword-devel] CCEL, ThML - volunteers?<br>From: Greg Hellings <greg.hellings@gmail.com><br>To: SWORD Developers' Collaboration Forum <sword-devel@crosswire.org><br>CC: <br><br><br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>John,</div><div dir="auto"><br></div><div dir="auto">I also struggled with this bringing material over from Logos. There was a proposal, once upon a time, to allow this structure to be represented in a Gen Book. It can do what we both need.</div><div dir="auto"><br></div><div dir="auto">However, this never materialized in code. It would still be a great idea, since it&#39;s exactly how many modern commentaries operate. However, since those aren&#39;t usually available to Sword due to copyright issues, there isn&#39;t much demand for it.</div><div dir="auto"><br></div><div dir="auto">--Greg<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Thu, Nov 15, 2018, 16:06 Dudeck, John &lt;<a href="mailto:John.Dudeck@sim.org">John.Dudeck@sim.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>






<div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Troy,</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">The problem is not parsing references. I have that figured out long ago, and converting from Logos to Sword, etc.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">The problem is that when you have a commentary with, for example a milestone for Gen 1:1-31 with some introductory material, followed by a sub-heading with a milestone for Gen 1:1-13,
 then followed by verse commentaries for Gen 1:1-5, then Gen 1:6-8, then Gen 1:9-13. When compiling with osis2mod, it doesn&#39;t quite know what to do with the nested ranges, and stuff does not display properly.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">John</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; Hi John,</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; Do you have an example?  Our parser handles some pretty crazy verse references.  You can
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; give it a try here:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; <a href="http://crosswire.org/study/examples/parsevs.jsp" target="_blank" rel="noreferrer">http://crosswire.org/study/examples/parsevs.jsp</a></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; On 11/15/18 10:35 AM, Dudeck, John wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; The main problem with commentaries is getting the annotateRef attribute right without
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; manual intervention. Logos supports nested levels of reference, eg. book-level,
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; chapter-level, verse-level, and verse ranges (that can span mutiple chapters). As far as I
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; can tell, osis2mod gets terribly confused with nested ranges.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; Generally speaking, black box converters are pretty much a lost cause. I have used a .conf
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; file approach where variable stuff can be configured, for example how to map class and
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; style attributes to the limited rendering capabilities of Sword. And I have separate scripts
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; for genbooks, bibles, commentaries, and dictionaries/lexicons.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; John</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; Any time your list of exceptional conditions contains more text than the</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; conversion itself, you have to start questioning whether &#39;automation&#39; is</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; even possible. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; I spent time developing similar scripts (something like wordxml -&gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; USFM) for single use cases.  Doing the conversion was usually about</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; 10 steps, but  then dealing with the exceptions (both before and after</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; the conversion) took 100+ steps. Without automation, the 10 steps</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; was good enough. but not keeping a human involved, all the human</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; decisions had to be mapped. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; On Thu, Nov 15, 2018 at 10:39 AM Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" target="_blank" rel="noreferrer">greg.hellings@gmail.com</a>&gt; wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; On Thu, Nov 15, 2018 at 10:35 AM Dudeck, John &lt;<a href="mailto:John.Dudeck@sim.org" target="_blank" rel="noreferrer">John.Dudeck@sim.org</a>&gt; wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; I am developing a set of Perl scripts that convert Logos XML to OSIS for</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; commentaries. It has proven to be a non-trivial exercise.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; I undertook a similar exercise over a decade ago as part of an internship. It was a beast
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; of</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; a task and one that was never fully completed.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; &gt; --Greg</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">John Dudeck</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Programmer at Editions Cle                             Lyon, France</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><a href="mailto:john.dudeck@sim.org" target="_blank" rel="noreferrer">john.dudeck@sim.org</a>                            <a href="mailto:john@editionscle.com" target="_blank" rel="noreferrer">john@editionscle.com</a></span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">--</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">&quot;If we knew what it was we were doing, it would not be called</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"> research, would it?&quot; -- Albert Einstein</span></font></div>
<div align="left">  </div>
</div>

_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank" rel="noreferrer">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer noreferrer" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page</blockquote></div></div></div>
</blockquote></div>