<div dir="ltr">Step copes with this scenario by telling the user: <span style="color:rgb(54,54,54);font-family:Verdana;font-size:10px;background-color:rgb(255,228,92)">The Bible reference (Matt 1) is invalid.</span><div><span style="color:rgb(54,54,54);font-family:Verdana;font-size:10px;background-color:rgb(255,228,92)"><br>
</span></div><div style><span style="color:rgb(54,54,54);font-family:Verdana;font-size:10px;background-color:rgb(255,228,92)">Chris</span></div><div style><span style="color:rgb(54,54,54);font-family:Verdana;font-size:10px;background-color:rgb(255,228,92)"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 March 2013 20:11, DM Smith <span dir="ltr"><<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Found a different bug. For the JPS (which does not have the NT in its versification), try Matt (or any book in the NT), it will come back and say that it could not understand Matt as a chapter or verse.<div>
<br></div><div>Wonder if we need to revisit validation of user input.</div><div><br></div><div>Still looking at your problem.</div><div><br></div><div>In Him,</div><div><span style="white-space:pre-wrap">        </span>DM</div><div>
<div class="h5"><div><br><div><div>On Mar 12, 2013, at 4:01 PM, DM Smith <<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">
Looks like a bug in the underlying code. (Your's looks fine.)<div><br><div><div>On Mar 12, 2013, at 3:53 PM, Chris Burrell <<a href="mailto:chris@burrell.me.uk" target="_blank">chris@burrell.me.uk</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hi All<div><br></div><div>I'm trying to get an alternate versification to work. For example, the JPS module that can be downloaded here: <a href="http://www.crosswire.org/wiki/Modules_in_the_av11n_repository" target="_blank">http://www.crosswire.org/wiki/Modules_in_the_av11n_repository</a></div>
<div><br></div><div>I'm using the following code, but getting an empty result out:</div><div><br></div><div><div><title type="x-gen">Psalms 51</title></div><br></div>
<div><br></div><div>Code:</div><div><br></div><div><div>final String version = "JPS";</div><div> final String ref = "Ps.51";</div><div><br></div><div> final Book currentBook = Books.installed().getBook(version);</div>
<div><br></div><div> final BookData bookData = new BookData(currentBook, currentBook.getKey(ref));</div><div> final Element osisFragment = bookData.getOsisFragment();</div><div><br></div><div> final XMLOutputter xmlOutputter = new XMLOutputter(Format.getRawFormat());</div>
<div> LOGGER.debug(xmlOutputter.outputString(osisFragment));</div><div> xmlOutputter.outputString(osisFragment);</div><div><br></div><div>Any ideas what's wrong?</div><div>Chris</div><div>
<br></div></div></div>
_______________________________________________<br>jsword-devel mailing list<br><a href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
</blockquote></div><br></div></div>_______________________________________________<br>jsword-devel mailing list<br><a href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>