Documentation
¶
Index ¶
- Constants
- Variables
- func AfterMissing(ref WordRef) bool
- func BeforeMissing(ref WordRef) bool
- func BookInfoChapterCount(bn BookNum) int
- func BookInfoChapterMaxVerse(bn BookNum, cn int) int
- type BookAlias
- type BookInfoStruct
- type BookNum
- type ParsedPassage
- type Passage
- type VerseRange
- type WordRange
- type WordRef
Constants ¶
const (
NumBooks = 66
)
Variables ¶
var BookAliases []BookAlias
var BookAliasesRaw []byte
var BookInfo = make([]BookInfoStruct, NumBooks)
BookInfo contains information about the Bible Verses. Slices are zero-indexed, so book and chapter numbers must be adjusted downwards.
var ChaptersRaw []byte
var MissingVerses = []WordRef{ {Book: sblgnt.Matthew, Chapter: 17, Verse: 21}, {Book: sblgnt.Matthew, Chapter: 18, Verse: 11}, {Book: sblgnt.Matthew, Chapter: 23, Verse: 14}, {Book: sblgnt.Mark, Chapter: 7, Verse: 16}, {Book: sblgnt.Mark, Chapter: 9, Verse: 44}, {Book: sblgnt.Mark, Chapter: 9, Verse: 46}, {Book: sblgnt.Mark, Chapter: 15, Verse: 28}, {Book: sblgnt.Luke, Chapter: 17, Verse: 36}, {Book: sblgnt.Luke, Chapter: 23, Verse: 17}, {Book: sblgnt.John, Chapter: 5, Verse: 4}, {Book: sblgnt.Mark, Chapter: 11, Verse: 26}, {Book: sblgnt.Acts, Chapter: 8, Verse: 37}, {Book: sblgnt.Acts, Chapter: 15, Verse: 34}, {Book: sblgnt.Acts, Chapter: 28, Verse: 29}, }
MissingVerses is a list of verse number which are "missing" from modern versions of the Bible due to textual analysis.
Functions ¶
func AfterMissing ¶
AfterMissing will return true if ref is directly after a "missing" verse
func BeforeMissing ¶
BeforeMissing will return true if ref is directly before a "missing" verse
func BookInfoChapterCount ¶
func BookInfoChapterMaxVerse ¶
Types ¶
type BookInfoStruct ¶
type BookInfoStruct struct {
ChapterMaxVerse []int
}
type ParsedPassage ¶
type ParsedPassage struct { Bookname string `parser:"@Book"` Chapter int `parser:"Space @ChapterOrVerse"` Range VerseRange `parser:"(ChapterSeparator @@)?"` }
type Passage ¶
func ParsePassage ¶
type VerseRange ¶
type WordRange ¶
type WordRange struct {
Start, End WordRef
}
func (WordRange) Cmp ¶
func (wr WordRange) Cmp(ref commentary.Ref) int
Cmp will compare the range to the given reference, returning 0 if the sentence contains the reference, -x if the sentence is before the reference, and +x if the sentence is after the reference. If the book names don't match, or there is an error parsing the sentence id, it will return -1.
type WordRef ¶
func (WordRef) IsFollowing ¶
IsFollowing checks if b is plausiably a direct successor of a, with the *numerical values only*. Book name is ignored.