[sword-devel] Turning an osis reference range into a list of verse references

Tobias Klein contact at tklein.info
Fri Jul 24 10:04:41 EDT 2020


Hi Troy,

Ok, thanks for the quick answer! I'll give it a try.

Best regards,
Tobias

On 7/24/20 3:51 PM, Troy A. Griffitts wrote:
>
> Hi Tobias,
>
> You should simply need to parse the verse reference and then iterate 
> the ListKey result (with ++ or increment(); not with nextElement()).
>
> Hope this helps,
>
> Troy
>
>
> On 7/24/20 3:36 PM, Tobias Klein wrote:
>>
>> Hi,
>>
>> using the SWORD library, how can I turn an osis reference that 
>> describes a range of verses like "Gal.1.15-Gal.1.16" into a list of 
>> individual osis-style verse references?
>>
>> My use case is that I encountered this kind of reference in a cross 
>> reference used in the NASB module in Galations 1:1. When loading 
>> verses based on this reference I'm also loading additional meta 
>> information (user notes, tags, etc.) for each verse and for that I 
>> need to break down this range into a list of individual verse 
>> references first.
>>
>> Best regards,
>> Tobias
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list:sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://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/20200724/84b85fc9/attachment.html>


More information about the sword-devel mailing list