[sword-devel] Detecting bad references?

DM Smith dmsmith at crosswire.org
Mon Jan 11 09:30:45 MST 2016


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 module against that module’s v11n. It’s not to find bad references, though it might do that.

The problem is that non-OSIS references are all over the place with regard to how that they are specified. What does Jo 1:1 mean? I bet that if you are in the book of John, Jonah, Job, ..., it means that book. But in another book, who knows.

And if you find a reference in a Dictionary, the v11n is not specified.

The same kind of check can be done with SWORD. It will have the same kinds of issues that JSword does.

DM


> On Jan 11, 2016, at 10:52 AM, David Haslam <dfhmch at googlemail.com> wrote:
> 
> 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 observation about a gotcha (just 1
> example) in the new FreDAW module.
> 
> NB. I was already aware of how SWORD handles a quirky reference like
> 1Sam.14.600,
> or even Gen.1.10000000  (but thanks for the reminder explanation, Karl).
> 
> If so, please explain how.
> 
> If not, is there an opportunity for an enhancement here?
> 
> David
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://sword-dev.350566.n4.nabble.com/Detecting-bad-references-tp4655692.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page




More information about the sword-devel mailing list