openbibleinfo / Bible-Passage-Reference-Parser

Coffeescript to identify and understand Bible references like "John 3:16."
223 stars 65 forks source link

Allow pre-tagging references not parsed automatically #37

Closed renehamburger closed 6 years ago

renehamburger commented 6 years ago

For some use cases, e.g. this free Bible tagger based on this parser, it would be great to be able to provide a way to specify the passages for reference strings not recognised automatically or wrongly recognised. For example: <span data-osis="Gen.3">and the previous chapter</span>.

The main reason, why this needs to be handled in the parser and can't be handled in the Bible tagger, is that subsequent references may depend on this one being parsed correctly.

Would you have time to implement this or would you be prepared to accept a pull request?

renehamburger commented 6 years ago

Apologies, parsing of the DOM is actually completely out-of-scope for this parser! Please ignore this issue.