[jsword-devel] SimpleOsisParser - parsing whole chapter refs

Martin Denham mjdenham at gmail.com
Sat Aug 30 07:23:05 MST 2014


Are there any plans to extend the SimpleOsisParser to be able to parse
chapter references like "Gen.1" instead of just verse references e.g.
"Gen.1.1" or verse range references e.g. "Gen.1.1-Gen.1.3"?

The following fails so I can't parse a reference to the whole of Genesis 1

        assertEquals("Gen.1", SimpleOsisParser.parseOsisRef(testV11n,

other than by entering "Gen.1.1-Gen.1.31" which, funnily enough, returns
the Osis I originally tried to enter "Gen.1".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20140830/bb350d44/attachment.html>

More information about the jsword-devel mailing list