No description
Find a file
2023-08-05 19:27:37 +00:00
src Fixed Sirach and Ecclesiastes abbreviation parsing (Closes #23) 2023-08-05 19:27:00 +00:00
tests Fixed Sirach and Ecclesiastes abbreviation parsing (Closes #23) 2023-08-05 19:27:00 +00:00
.gitignore Removed docs 2023-04-07 14:05:53 +00:00
bibleTools.nimble Fixed Sirach and Ecclesiastes abbreviation parsing (Closes #23) 2023-08-05 19:27:00 +00:00
changelog.md Fixed Sirach and Ecclesiastes abbreviation parsing (Closes #23) 2023-08-05 19:27:00 +00:00
config.nims Version 0.1.0 2023-02-21 00:05:06 +00:00
license added some procs 2023-02-20 19:13:42 +00:00
readme.md Update 'readme.md' 2023-06-27 07:46:34 -03:00

Bible Tools

Bible tools to manipulate bible references!

Examples - TODO - License

Examples

For more examples, please see the tests

Identify books

doAssert "second bar".identifyBibleBookEn == Baruk2
doAssert "ex".identifyBibleBookEn == Exodus
doAssert "Jo".identifyBibleBookPt == John

Smart book identification

doAssert "second bar".identifyBibleBook == (Baruk2, ALEnglish)
doAssert "tg".identifyBibleBook == (James, ALPortuguese)
doAssert "1ts".identifyBibleBook == (book: Thessalonians1, lang: ALPortuguese)

Parse verse

doAssert "Mt 5:17-20".parseBibleVerse == BibleVerse(
  book: AnyLangBook (Matthew, ALPortuguese),
  chapter: 5,
  verses: @[17, 18, 19, 20],
  translation: "",
  error: false
)

Parse multiple verses

from pkg/bibleTools import ALPortuguese, ALEnglish
let found = "Gen 1:1; exod 2:2; Lv 3:3".parseBibleVerses
doAssert found[2].parsed.book.lang == ALPortuguese
doAssert found[0].parsed.book.lang == ALEnglish
doAssert $found[1].parsed == "Exo 2:2"
doAssert found[1].raw == "exod 2:2"

Stringify verse

doAssert $BibleVerse(
  book:  (Proverbs, ALPortuguese),
  chapter: 29,
  verses: @[27],
  translation: "",
  error: false
) == "Pv 29:27"

To Ozzuu Bible URL

doAssert "Revelation 14:12".parseBibleVerse.inOzzuuBible("en_wyc2014") ==
  "https://bible.ozzuu.com/en_wyc2014/Rev/14#12"

More examples!

Please see the tests files to see more examples!

TODO

  • Add documentation
  • [-] Add missing hebrew book names
  • Add hebrew transliteration book identification
  • Add a function to get the short version of a book

License

MIT