<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Michael<div><br></div><div>In your example about the Psalms, within the versification itself you still have the verses in the same order, so that wouldn't be a problem. But I think you're saying you might have the content of verse 1 and the content of verse 2 swapped around... Is that right? Would the numbering be swapped around too? Presumably not...</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Chris</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 July 2013 21:02, Kahunapule Michael Johnson <span dir="ltr"><<a href="mailto:kahunapule@mpj.cx" target="_blank">kahunapule@mpj.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div>
<div>On 07/03/2013 09:54 AM, Chris Burrell
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi
<div><br>
</div>
<div>Do versifications sometimes have different verse
orders to each other. <br>
</div>
</div>
</blockquote>
<br></div>
Yes, unfortunately.<div><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>Is this something Sword copes with/is intending to
cater for?</div>
</div>
</blockquote>
<br></div>
Currently, I think you have to "cheat" and renumber verses
sequentially, but the content may be swapped between verses in some
cases. (I can't remember the exact places or translations... I work
with many.) Anyway, to compare identical content, you would have to
have a common mapping scheme for both.<br>
<br>
A more common example is in Psalms, where some count the canonical
Psalm titles as verse one, then continue with verse 2 where others
start verse 1, there, so the whole Psalm is essentially off by one
verse from one versification to another, but the mapping is easy to
do.<br>
<br>
<blockquote type="cite"><div>
<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><br>
</div>
<div>int i, j = i = 0;</div>
<div><br>
</div>
<div>while(i < passageLength & j <
passageLength) {</div>
<div> if (v11nA[i] mapsTo v11nB[j]) {</div>
<div> output both verses</div>
<div>
} else {</div>
<div> work out with of i & 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'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's ok I think.</div>
<div><br>
</div>
<div>Chris</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>