[sword-devel] Versifications and verse order

Chris Burrell chris at burrell.me.uk
Wed Jul 3 13:09:29 MST 2013


> Hi Michael
>
> 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...
>
> Chris
>
>
>
> On 3 July 2013 21:02, Kahunapule Michael Johnson <kahunapule at mpj.cx>wrote:
>
>>  On 07/03/2013 09:54 AM, Chris Burrell wrote:
>>
>> Hi
>>
>>  Do versifications sometimes have different verse orders to each other.
>>
>>
>> Yes, unfortunately.
>>
>>
>>  Is this something Sword copes with/is intending to cater for?
>>
>>
>> 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.
>>
>> 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.
>>
>>
>>  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
>>
>>  int i, j = i = 0;
>>
>>  while(i < passageLength & j < passageLength) {
>>   if (v11nA[i] mapsTo v11nB[j]) {
>>       output both verses
>>    } else {
>>     work out with of i & j is behind
>>     then i++ (or j++)
>>   }
>> }
>>
>>  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.)
>>
>>  Yes, there would be duplicates since 1 verse may map to multiple
>> verses, but that's ok I think.
>>
>>  Chris
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.orghttp://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130703/8c3df748/attachment.html>


More information about the sword-devel mailing list