[sword-devel] Turning an osis reference range into a list of verse references
Troy A. Griffitts
scribe at crosswire.org
Fri Jul 24 09:51:53 EDT 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200724/d1ec2dce/attachment.html>
More information about the sword-devel
mailing list