[sword-devel] Turning an osis reference range into a list of verse references
contact at tklein.info
Fri Jul 24 10:04:41 EDT 2020
Ok, thanks for the quick answer! I'll give it a try.
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,
> On 7/24/20 3:36 PM, Tobias Klein wrote:
>> 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,
>> sword-devel mailing list:sword-devel at crosswire.org
>> Instructions to unsubscribe/change your settings at above page
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel