<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 3:11 PM, Greg Hellings <span dir="ltr">&lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@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 dir="ltr">Chris,<div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Wed, Jul 3, 2013 at 2:54 PM, Chris Burrell <span dir="ltr">&lt;<a href="mailto:chris@burrell.me.uk" target="_blank">chris@burrell.me.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>Do versifications sometimes have different verse orders to each other. </div>

<div><br></div><div>Is this something Sword copes with/is intending to cater for?</div></div></blockquote><div><br></div></div><div>My understanding is that no, we do not cater to books, chapters or verses being out of order. This can be a problem for trying to interweave deuterocanonical material in Esther and Daniel depending on how a particular text labels those verses and chapters. But I don&#39;t remember hearing anyone provide concrete examples of this actually happening.</div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>
<br></div><div>My aim is to be able to do a text comparison verse for verse, and so assuming I have the mappings between each verse, can I take two lists and work my way down... In other words</div></div></blockquote><div>

<br></div></div><div>I have written a Python script, available <a href="http://www.crosswire.org/svn/sword-tools/trunk/versification/av11n.py" target="_blank">http://www.crosswire.org/svn/sword-tools/trunk/versification/av11n.py</a>,  that compares every available Sword versification to a given OSIS document and reports the deviation from that versification. For it, I first construct a list of all the refs in a versification, pull out ones that are encountered in the document, and report the &quot;missing&quot; ones. Not sure if that helps.</div>
</div></div></div></blockquote><div><br></div><div>I mentioned this one specifically because the OSIS file can be a giant jumbled pile of &lt;verse&gt; elements that don&#39;t have to be in any particular order and our utilities will put all the verses in the same order when they construct the module.</div>
<div><br></div><div>--Greg</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>Alternatively, I have <a href="http://www.crosswire.org/svn/sword-tools/trunk/modules/compare.py" target="_blank">http://www.crosswire.org/svn/sword-tools/trunk/modules/compare.py</a> which compares two installed modules, verse by verse, to see if they are exactly identical in text throughout.</div>

<div><br></div><div>Maybe one of those will help inspire your implementation. Or maybe not! caveat emptor: they may not have been updated for all the API churn over the past few months so things like .Error should be .popError and appropriate getter/setter should be recognized.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>--Greg</div><div> </div></font></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><div dir="ltr">
<div><br></div>
<div>int i, j = i = 0;</div><div><br></div><div>while(i &lt; passageLength &amp; j &lt; passageLength) {</div><div>  if (v11nA[i] mapsTo v11nB[j]) {</div><div>      output both verses</div><div>
  } else {</div><div>    work out with of i &amp; j is behind</div><div>    then i++ (or j++)</div><div>  }</div><div>}</div><div><br></div><div>In the above, i and j only increment and j in particular doesn&#39;t jump around. The idea above, is that I can read the passages for v11nA and v11nB up front, and then process sequentially. (as opposed, to currently in JSword, making multiple reads to the backends for each verse.)</div>


<div><br></div><div>Yes, there would be duplicates since 1 verse may map to multiple verses, but that&#39;s ok I think.</div><span><font color="#888888"><div><br></div><div>Chris</div><div><br></div></font></span></div>

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