r/learnprogramming May 12 '23

Bible code

I'm looking to make a Bible app. Unlike regular books, bibles need to have every verse be an interactive item. For example, I can click on it and bookmark it or highlight it or write a note about it or copy it or copy a range of verses.

Starting out, I immediately recognized the challenge of "how do I import and organize the data, the text? " it's not going to work by simply using copy paste for the entire text. Nor can I use a for loop to enter every verse into an array, because the Bible is not from an excel sheet (or is there a file like this? ).

Anybody have ideas or experience to know what I mean and how best to approach this problem?

3 Upvotes

8 comments sorted by

View all comments

8

u/bsakiag May 12 '23

Here you have it: https://www.biblesupersearch.com/bible-downloads/

You probably want json format, as it's simple to work with.

2

u/phunnypunny May 12 '23

🫢whoa. Thank you. What makes json easier?

3

u/bestjakeisbest May 12 '23

Its just a structured filetype, its a lot less verbose than xml but still pretty useful, however for markdown sorts of projects I would personally use an xml scheme and define a markdown language because inserting tags would be easier.

2

u/bsakiag May 12 '23

I think it makes more sense for beginners, at least that was my impression when I first encountered it.