<div dir="ltr">Chris,<div class="gmail_extra"><br><br><div class="gmail_quote">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>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> </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>I have written a Python script, available <a href="http://www.crosswire.org/svn/sword-tools/trunk/versification/av11n.py">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><br></div><div>Alternatively, I have <a href="http://www.crosswire.org/svn/sword-tools/trunk/modules/compare.py">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>
<div><br></div><div>--Greg</div><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>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 class=""><font color="#888888"><div><br></div><div>Chris</div><div><br></div></font></span></div>

<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">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></blockquote></div><br></div></div>