<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Troy,</p>
<p>Ok, thanks for the quick answer! I'll give it a try.</p>
<p>Best regards,<br>
Tobias<br>
</p>
<div class="moz-cite-prefix">On 7/24/20 3:51 PM, Troy A. Griffitts
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:beff64bf-2e19-faec-8a3c-52498ecd885a@crosswire.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi Tobias,</p>
<p>You should simply need to parse the verse reference and then
iterate the ListKey result (with ++ or increment(); not with
nextElement()).</p>
<p>Hope this helps,</p>
<p>Troy</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 7/24/20 3:36 PM, Tobias Klein
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c9430527-3ba6-36e6-5df6-39f357570002@tklein.info">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<p>Hi,</p>
<p>using the SWORD library, how can I turn an osis reference
that describes a range of verses like "<span style="color: rgb(34, 34, 34); font-family: "dejavu sans mono", monospace; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Gal.1.15-Gal.1.16</span>"
into a list of individual osis-style verse references?<br>
<br>
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.<br>
</p>
<p>Best regards,<br>
Tobias<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org" moz-do-not-send="true">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel" moz-do-not-send="true">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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>
</body>
</html>