<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 22, 2009, at 9:10 PM, Brian J. Dumont wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#000000"> Troy A. Griffitts wrote: <blockquote cite="mid:49EE7859.9020609@crosswire.org" type="cite">Dima, see below... <br> <br> Brian and DM, <br> <br> I've made some recent updates around link code. <br> <br> Can someone please check current SVN and if things still fail, update our testsuite to add a simple failure case so I can have a look, and so we don't break things unnoticed in the future? <br> <br> </blockquote> 1.6.0.RC2 fails to link. So does SVN r2328.</div></blockquote><div><br></div>I found the problem. SWORD reports the count of verses in a VerseList differently. A range now counts as one. It used to count as many verses as was in it.</div><div><br></div><div>Here is a demonstration of the problem that I quickly hacked together. (Troy, tell me which testcase file to put it in and I'll add it.) It should say (and used to say) that</div><div>"There are 5 verses that are in the range"</div><div><div>#include <iostream></div><div><br></div><div>#include <swbuf.h></div><div>#include <listkey.h></div><div>#include <versekey.h></div><div><br></div><div>#ifndef NO_SWORD_NAMESPACE</div><div>using namespace sword;</div><div>#endif</div><div><br></div><div>using namespace std;</div><div><br></div><div>int main(int argc, char **argv) {</div><div> VerseKey currentVerse;</div><div> SWBuf keyVal = "Matt.1.1-Matt.1.5";</div><div> ListKey verseKeys = currentVerse.ParseVerseList(keyVal, "Gen.1.1", true);</div><div> int memberKeyCount = verseKeys.Count();</div><div> if (memberKeyCount) {</div><div> cout << "There are " << memberKeyCount << " verses that are in the range: " << keyVal << endl;</div><div> for (verseKeys = TOP; !verseKeys.Error(); verseKeys++)</div><div> {</div><div> cout << verseKeys << endl;</div><div> }</div><div> }</div><div> else {</div><div> cout << "Error: Invalid reference/annotateRef: " << keyVal << endl;</div><div> }</div><div>}</div><div><br></div><blockquote type="cite"><div bgcolor="#ffffff" text="#000000"><br> <br> I'll look into the testsuite. FYI, a sample xml is:<br> <br> <blockquote><tt><?xml version="1.0" encoding="UTF-8"?></tt><br> <tt><osis</tt><br> <tt> xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a></tt><br> <tt> xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.bibletechnologies.net/2003/OSIS/namespace">"http://www.bibletechnologies.net/2003/OSIS/namespace"</a></tt><br> <tt> xmlns:osis=<a class="moz-txt-link-rfc2396E" href="http://www.bibletechnologies.net/2003/OSIS/namespace">"http://www.bibletechnologies.net/2003/OSIS/namespace"</a></tt><br> <tt> xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.bibletechnologies.net/2003/OSIS/namespacehttp://www.bibletechnologies.net/osisCore.2.1.1.xsd">"http://www.bibletechnologies.net/2003/OSIS/namespace http://www.bibletechnologies.net/osisCore.2.1.1.xsd"</a>></tt><br> <tt> <osisText osisIDWork="Luther" osisRefWork="commentary" xml:lang="en" canonical="false"></tt><br> <tt> <header></tt><br> <tt> header.</tt><br> <tt> </header></tt><br> <tt> <div type="bookGroup"></tt><br> <tt> <title>New Testament</title></tt><br> <tt> <div type="book" osisID="Matt" canonical="false"></tt><br> <tt> <title type="main" short="Matthew">Matthew</title></tt><br> <tt> <div type="section" annotateType="commentary" annotateRef="Matt.1.1"></tt><br> <tt> <p></tt><br> <tt> Blah blah...</tt><br> <tt> This is a test!</tt><br> <tt> </p></tt><br> <tt> </div> </tt><br> <tt> <div type="section" annotateType="commentary" annotateRef="Matt.22.1-Matt.22.9"></tt><br> <tt> <title level="2">Sermon; Matthew 21:1-9</title></tt><br> <tt> <p></tt><br> <tt> This fails</tt><br> <tt> </p></tt><br> <tt> </div> </tt><br> <tt> </div></tt><br> <tt> </div></tt><br> <tt> </osisText></tt><br> <tt></osis></tt><br> </blockquote> <br> </div> _______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</blockquote></div><br></body></html>