No description
Find a file
2023-08-05 19:46:54 +00:00
examples Version 0.8.0 2023-04-07 00:40:29 +00:00
src Skip crossrefs for bible ref that doesn't have a verse 2023-08-05 19:46:54 +00:00
.gitignore init 2023-02-19 17:15:53 +00:00
changelog.md Skip crossrefs for bible ref that doesn't have a verse 2023-08-05 19:46:54 +00:00
readme.md Version 0.7.0 2023-03-05 13:41:47 +00:00
versicles.nimble Added optional cross reference 2023-08-05 18:58:33 +00:00

Versicles

Lib and CLI tool to manipulate biblical verses!

parseList

Converts a commented verse list into a JSON

Help

Usage:
  parseList [REQUIRED,optional-params] 
Converts a commented verse list into a JSON
Options:
  -h, --help                            print this cligen-erated help
  --help-syntax                         advanced: prepend,plurals,..
  -l=, --list=        string  REQUIRED  Input list file path
  -o=, --outJson=     string  REQUIRED  Output JSON file path
  -s, --saveAllLines  bool    false     Enable all lines saving to JSON. The default is to ignore lines that haven't a verse reference

Example

in.txt

(Bereshit (Ex) 4:21) Yuval, brother of Yaval was the father of all who play the harp and flute

Run:

versicles parseList -l in.txt -o out.json

out.json (formatted)

[
  {
    "text": "(Ex 4:5 en_cjb) Kayin rages against Hevel and his face shows hatred.",
    "textNoVerses": "Kayin rages against Hevel and his face shows hatred.",
    "verses": ["Ex 4:5 en_cjb"]
  }
]

toMd

Generates a markdown with JSON data (parsed with parseList)

Help

Usage:
  genMd [REQUIRED,optional-params] 
Generates a markdown with JSON data (parsed with `parseList`)
Options:
  -h, --help                                          print this cligen-erated help
  --help-syntax                                       advanced: prepend,plurals,..
  -j=, --jsonFile=                  string  REQUIRED  Input JSON file path
  -o=, --outMd=                     string  ""        Output Markdown file path
  -d=, --defaultTranslation=        string  "pt_yah"  Default bible translation to use in Ozzuu Bible URLs
  -t, --hebrewTransliterations      bool    true      Disables the addiction of hebrew transliterated names
  -k, --keepInlineVersesReferences  bool    false     set keepInlineVersesReferences
  -a, --addVerseTranslation         bool    false     set addVerseTranslation
  -l=, --toLang=                    string  ""        Set the language to translate

Example

in.json (formatted)

[
  {
    "text": "(Ex 4:5 en_cjb) Kayin rages against Hevel and his face shows hatred.",
    "textNoVerses": "Kayin rages against Hevel and his face shows hatred.",
    "verses": ["Ex 4:5 en_cjb"]
  }
]

Run:

versicles genMd -j in.json -d en_wyc2014

stdout

#### [Ex 4:5](https://bible.ozzuu.com/en_cjb/Ex/4#5)

Kayin rages against Hevel and his face shows hatred.

Todo

  • Optional hebrew names for books
  • Create a website to use this tool in browser
  • Change genMd to genHtml

License

MIT