https://github.com/dimfeld/xml-bible-to-roam
Convert a chapter from an XML Bible file to Roam Research Format
https://github.com/dimfeld/xml-bible-to-roam
Last synced: over 1 year ago
JSON representation
Convert a chapter from an XML Bible file to Roam Research Format
- Host: GitHub
- URL: https://github.com/dimfeld/xml-bible-to-roam
- Owner: dimfeld
- License: apache-2.0
- Created: 2020-09-15T02:47:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T07:32:29.000Z (almost 6 years ago)
- Last Synced: 2025-02-08T07:44:17.711Z (over 1 year ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xml-bible-to-roam
A utility to convert a chapter from a Bible in XML format to a JSON file suitable for import into Roam Research.
The existing Roam public databases for the Bible are only in KJV translation (for licensing reasons), and not being used to King James's English, I find it distracting. There are XML versions of Bibles on the internet (search "opensong xml bible", and so this utility eases the process of importing chapters from those files.
I tend to import chapters as needed, since importing the entire Bible causes Roam to bog down right now.
## Usage
Compile the program. Right now you'll need to install [Rust](https://www.rust-lang.org/) and compile it yourself.
Once compiled, `xml-bible-to-roam -f bible.xml -b "book name" -c chapter_number` will output the JSON to standard output.
Example: `xml-bible-to-roam -f ESV.xml -b Joshua -c 11 > Joshua11.json` and then you can just import it with Roam's "Import Files" menu option.
After importing the chapter, I like to add it to a page for the book using a block embed like so: `{{embed: ((type the chapter name here))}}`.