Skip to content

Support multiple related readings. #14

@mlv

Description

@mlv

One thing that would be really useful here is the ability to chain related readings. For example, if I did:

kjv.extract("Matt 23:37-39,24:1-14")
I'd like it to return:
[(u'Matthew', 23, 37, 23, 39), (u'Matthew', 24, 1, 24, 14)]

(Actually, since Matt 23 ends at 39, better would be
[(u'Matthew', 23, 37, 24, 14)]

Right now, it ignores the 24:1-14 as it doesn't begin with a book name. I'd like it to remember the previous book name and if a book name (or chapter) is missing, assume it from the previous one.

Best would be:
kjv.extract("Matt 22,23:1-14,18,35-39,24:1-14,18")
returning
[(u'Matthew', 22, 1, 23, 14), (u'Matthew', 23, 18, 23, 18), (u'Matthew', 23, 35, 24, 14), (u'Matthew', 24, 18, 24, 18)]

I'd be happy if it required them to be consecutive. I wouldn't expect:
kjv.extract("If you look at Matt 23:10-14, you'll see one of the 15 occurrence of the word 'hypocrite'")
to give ('Matthew', '23, 10, 23, 15)

Maybe this could be a different method than extract?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions