<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 07/03/2013 09:54 AM, Chris Burrell
wrote:<br>
</div>
<blockquote
cite="mid:CACQnaRXryKUhXbhRorXTGx8aKokHqjHavSk-kwSzcm3j3rFsWA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi
<div><br>
</div>
<div style="">Do versifications sometimes have different verse
orders to each other. <br>
</div>
</div>
</blockquote>
<br>
Yes, unfortunately.<br>
<br>
<blockquote
cite="mid:CACQnaRXryKUhXbhRorXTGx8aKokHqjHavSk-kwSzcm3j3rFsWA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">Is this something Sword copes with/is intending to
cater for?</div>
</div>
</blockquote>
<br>
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
cite="mid:CACQnaRXryKUhXbhRorXTGx8aKokHqjHavSk-kwSzcm3j3rFsWA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">
<br>
</div>
<div style="">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 style=""><br>
</div>
<div style="">int i, j = i = 0;</div>
<div style=""><br>
</div>
<div style="">while(i < passageLength & j <
passageLength) {</div>
<div style=""> if (v11nA[i] mapsTo v11nB[j]) {</div>
<div style=""> output both verses</div>
<div style="">
} else {</div>
<div style=""> work out with of i & j is behind</div>
<div style=""> then i++ (or j++)</div>
<div style=""> }</div>
<div style="">}</div>
<div style=""><br>
</div>
<div style="">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 style=""><br>
</div>
<div style="">Yes, there would be duplicates since 1 verse may
map to multiple verses, but that's ok I think.</div>
<div style=""><br>
</div>
<div style="">Chris</div>
<div style=""><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
</body>
</html>