-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add in verse tag for B\C\V format #127
Comments
So I'm interested in this because we're going to need this before too awful long. Craig (aka PurpleGuitar) and I were talking about this. I don't really want to add a field for this specific case I think an extension method would work to generate the data in the format that you need. I'm also debating on adding a general metadata functionality as well as a way for people to hook into the lexing/parsing so we can generically handle additional metadata that people Currently the functionality you're looking for is accomplishable via GetHierarchyToMarker but it is horribly inefficient, especially in large documents. I'm thinking of doing several things
What are your thoughts @GeoDirk @PurpleGuitar ? |
All of the above would work but the easiest to implement and still be useful to folks would be #3. The renderer that I have derived this last week takes care of the B\C\V format in my output format. So I'm set for what I need. But I believe that the larger use-case of being able to quickly drill down to the right verse will be desirable going forward for the library. Especially for those cases where your app makes a change to a verse and then you need to go back and update the tree with the changes to that verse. |
It is commonly used in the Natural Language Processing world to refer to verses by their Book\Chapter\Verse format. This looks like:
01001001
format (string) with the first two characters being the book ID number, the next three characters being the chapter number, and the final three numbers being the verse number.Ideally, this tag would be an attribute of the
VMarker
that is generated during parsing so that user can drill down to the verse quickly.The book numbers can be extracted from this list (I have no idea why book 40 is skipped from the official list):
With the Book class defined as:
I'm not sure if this is something that could be useful in this library or not, but I'll be needing this eventually. Also note, that I've limited this list to the standard 66 books of the Bible and not all the supplemental books. Obviously, this list could be expanded to include those as well.
Thoughts on including something like this and if there are any breaking issues with making this a VMarker attribute?
The text was updated successfully, but these errors were encountered: