Re: [sword-devel] Detecting bad references?

2016-01-11 Thread DM Smith
JSword compares references to Book, Chapter and Verse boundaries. We have a process that will extract references from a module and validate them. It may be broken as we don’t use it often. Its purpose is to validate that JSword can handle the references that it finds in a Bible or Commentary

Re: [sword-devel] Detecting bad references?

2016-01-11 Thread Peter Von Kaehne
I would second a report during module making. I would not support a report or refusal to work during normal function. Peter > Gesendet: Montag, 11. Januar 2016 um 15:52 Uhr > Von: "David Haslam" <dfh...@googlemail.com> > An: sword-devel@crosswire.org > Betreff:

[sword-devel] Detecting bad references?

2016-01-11 Thread David Haslam
Either during the process towards module build (in which it's often necessary to fix xrefs) or even subsequently, is it feasible for SWORD to test a reference to a specified versification and to respond with whether the reference is good or bad? The question naturally follows on from my

Re: [sword-devel] Detecting bad references?

2016-01-11 Thread David Haslam
These are just a few further thoughts in response to your speedy replies. I was assuming that the localised references have been parsed and converted to properly formed osisRef strings. What would be useful during the "fix xrefs" process is a means to perform a sanity check on these. i.e. One

Re: [sword-devel] Detecting bad references?

2016-01-11 Thread Greg Hellings
eport or > refusal to work during normal function. > > Peter > >> Gesendet: Montag, 11. Januar 2016 um 15:52 Uhr >> Von: "David Haslam" <dfh...@googlemail.com> >> An: sword-devel@crosswire.org >> Betreff: [sword-devel] Detecting bad references? &g

Re: [sword-devel] Detecting bad references?

2016-01-11 Thread Troy A. Griffitts
If you'd like to see if a VerseKey was normalized for a module's reference system, you can parse the reference with normalization off, and then with it on and compare the keys to see if they are the the same. vk2.setAutoNormalize(false); vk1.setText("1Sam.2.200"); vk2.setText("1Sam.2.200"); cout

Re: [sword-devel] Detecting bad references?

2016-01-11 Thread David Haslam
Thanks Troy. Is this something that Peter can easily incorporate within xreffix.pl ? David -- View this message in context: http://sword-dev.350566.n4.nabble.com/Detecting-bad-references-tp4655692p4655702.html Sent from the SWORD Dev mailing list archive at Nabble.com.

Re: [sword-devel] Detecting bad references?

2016-01-11 Thread Peter Von Kaehne
Thanks that makes sense. Peter > Gesendet: Montag, 11. Januar 2016 um 17:39 Uhr > Von: "Troy A. Griffitts" <scr...@crosswire.org> > An: "SWORD Developers' Collaboration Forum" <sword-devel@crosswire.org> > Betreff: Re: [sword-devel] Detect