Organising The Bible in Obsidian

Yes, Any verse reference strings Accordance recognizes it will return the text for them.

For example: Rom 8:28, Psalm 33:6-7, Heb 4:12, 2Tim 3:16-17, Isa 41:10

Here is a screen capture demo for the above reference string with Obsidian. This works in any app on my Mac. I havenā€™t taken the time to figure how to emulate this in IOS, but I simply copy and paste directly from Accordance on IOS when I work there.

Within Accordance, in preferences, you can control the format of citation references. You could even add double brackets around the verse refs.

And change the separator from a colon (since colon not allowed in filenames) to a period and have roam style tag links.

It just occurred to me you can do this. I doubt I would have thought of this if you had not posted here. Thank you. This opens new possibilities I had not considered. All your verse references become roam type of tags. Amazing.

Accordance gives you lots of possibilities with formatting verse references and citations.

Again I have no relation with Accordance I just really enjoy using the app.
I feel the same about Obsidian. Two amazing apps.

1 Like

There were some issues that I found:

I was unable to run it the first few times because I didnā€™t have Atom installed, so I installed it.

I also apparently needed SizeUp. From the looks of it, itā€™s not really required to run everything, so I deleted the line from the script that tells the app to do something.

Then I come across this error that prevents me from running the script any further :frowning:

Screen Shot 2020-07-09 at 11.18.41 AM
Screen Shot 2020-07-09 at 11.18.54 AM

Idk what this means so Iā€™m stuck, would appreciate some help :slight_smile: .


On another note, one thing I noticed from the script is I can pretty much change the translation to another one if I wanted to, which is what I like about using the script compared to waiting for the Bible to get imported in ESV only. Just my thoughts.

Thanks for trying the script! I included it fairly unpolished, without expecting anyone to actually use it, so thanks for having a crack on it and sorry for the mess! :sweat_smile:

Now that the script would actually be helpful for you, I will polish it a bit more with some clarifications.

Yeah, I use Atom as a text editor and the script is written for it but you donā€™t necessarily need to use it.

Thatā€™s right, SizeUp isnā€™t really needed. In the script it just turns Atom into fullscreen mode.

The error message is from another utility that needs to be installed. It controls mouse clicks. You can download and install it from here. The installation isnā€™t the most straightforward in my opinion. So you can try installing it or just wait until I do a bit of a better write-down of the script and the installations needed. Feel free to also reach out on Discord: selfire#3095.

Thank you very much for your thoughts! I am glad the script is even a bit helpful to you! Iā€™ll make sure to keep the option of picking another translation.


PS: Script 2.0

I am also currently working on a ā€œScript 2.0ā€, incorporating @Lithouā€™s approach and incorporating @Mikeā€™s shortcut for referencing multiple verses.

Rather than copying and formatting a whole book into one note, it will save each chapter separately to make referencing and back-linking more straightforward. I also changed the headings to h6 to work with @Lithouā€™s magic CSS.

Additionally, I also added chapter navigation on the top and the bottom of the page. That makes reading in Obsidian even easier.

After adding some more CSS magic to make the h6 headings fully disappear, reading within Obsidian will be quite pleasant as well, I reckon.

1 Like

@Joschua Thanks so much for replying! Thank you in general for everything that youā€™re doing :innocent:

So I installed cliclick in /usr/local/bin. Now the error is gone, but the script is doing things I donā€™t think itā€™s supposed to, clicking and typing on the wrong areas of the screen it seems like. I think it has to do with which appsā€™ windows are open and the difference in our screensā€™ sizes (??). At the end, it didnā€™t seem to finish the job, and it reinforced the idea that idrk what Iā€™m doing lol.


But putting that aside, I do look forward to the Script 2.0, as you said that youā€™ll possibly provide the option to change translations, but I also think that the 1-note per chapter idea is better than having 1 note per book, overall it looks more polished than your initial script.

With that, perhaps also consider making an MOC/index for each book linking all of the chapters contained in that book. I believe this somewhat combines the ideas of having 1-note/chapter and 1-note/book. I also believe that by having an index, thereā€™s the option to give a description of what each book is about idk. What do you guys think? I donā€™t really know how useful this would be, but itā€™s an effort to make the text more organized i guess.

Generally speaking, the chapter breaks are decent at delineating between topic/story/theme. Finding similar passages will generally be by chapter. For example, looking at the story of Abraham and the story of Isaac, you will see that they paralell each other (which the author uses to point out some interesting things :slight_smile: ) This is easily seen when chapters line up to each other. Ch 20 and 26 will have lots of links in common. Ch 21 and 27 will also have links in common etc.

I didnā€™t initally set that up because I havenā€™t decided how I want to display everything in the actual text. Primarily because I have the Masoretic Text and the LXX interliniear for each verse. Right now I have those at the bottom and can link to them, but Iā€™m looking at a good way to use them that allows both word/concept study and reading. Iā€™ll post the CSS and screenshots when Iā€™m done, but you can use the following to edit the verse numbers in normal md preview panes:

.markdown-preview-section .h6{
 code goes here
}

How do I import text? I type it. By hand.
This is because I value the time spent with the Text. If I just read through things, my brain will gloss over things that I donā€™t have context for.

When reading a genealogy or historical account, my brain goes ā€œok so some weird name was the father of some other weird name and he was the father of some other weird name and-- oh hey thereā€™s a guy I know-- and more weird namesā€¦ā€

When I have to take the time and make sure Iā€™m spelling something correctly I find I have that ā€œIā€™ve seen this name/place/number/etc beforeā€ moment a whole lot more often.

2 Likes

Script 2.0

I am glad to share it now! You can find the full script in this pastebin here but I will comment on some specifics of the code. Now it runs way more reliably, saves by chapter into a folder containing the whole book. I also added Navigation on the top and bottom of the notes. Using it, I imported the Bible in a night and an afternoon :smile:

Before Running the Script

  • Install Atom. Any TextEditor works but I optimised it for Atom
  • Install CliClick. This tool emulates mouseclicks

What the script does

  1. In Safari, it opens a chapter on biblegateway.com in print view (so that there is less to clean up)
  2. It copies and pastes the webpage into Atom
  3. Using find and replace mechanisms, it deletes the additional text.
  4. It formats the text into an Obsidian-compatible format and adds Navigation on the top and bottom.
  5. It saves each chapter in a separate file and creates a new folder for each book of the bible.

Setting up to import

  • Before running the code, make sure you disabled Footnotes and Headings on biblegateway.com. The script is not compatible with that.
  • The script chooses the top folder in your favourites bar as the parent folder to save the book folders in. Make sure you set that accordingly.

  • Set the mouse coordinates correctly. Via Command-Shift-4 you can find the coordinates. The upper coordinate is X, the lower Y.
    • Clicking into the Atom text field: set textX to 53, set textY to 86
    • Toggling Regrex search: regX to 1121, set regY to 674. In Atom, press Command + F to open the search field. In the top right, find the ā€œ.*ā€ button and set itā€™s coordinates.
    • Pick folder to save in: set folderX to 290, set folderY to 201. In Atom, press Command-Shift-A to open the ā€œSave asā€-Dialogue. Pick the coordinates of the top folder of the favourites bar.
    • Creating a new folder: set newX to 285, set newY to 470. In the ā€œSave asā€-Dialogue in Atom, note the coordinates of ā€œNew Folderā€ in the bottom left.

Commentary on the code

Options

set shutdown to false -- Do you want your Mac to shut down after importing?
set savedialog to true -- Choose if you want to display a dialog asking you to save each chapter. For longer books I found that helpful to be able to exit out. It has a timeout of 5 seconds if you don't bother picking an option.
set bigdialog to false -- Choose if you want a dialog to display after exporting a book
set dialogchosen to false -- Choose if you want a display showing you the books you're about to import

Delays

In the code, you can set the delays according to your internet connection and computing power. When choosing very low delay, I would recommend enabling the option of a dialogue to exit the program. You donā€™t want your Mac to be stuck on the script without being able to abort.

Abbreviations

In the ā€œbook informationā€ list, you can pick different abbreviations.

A note on translations

I chose to import the ESV. You can pick a different translation in the code:

set translation to "ESV" -- pick your translation

Just make sure to optimise the find and replace process of deleting unwanted information.
When copying from the ESV, it copies the following blurb as well:
English Standard Version (ESV)
The Holy Bible, English Standard Version. ESVĀ® Text Edition: 2016. Copyright Ā© 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.

Using find and replace I made sure to delete that unwanted text:

keystroke "f" using command down
			keystroke "The Holy Bible, . ESVĀ® Text Edition: 2016. Copyright Ā© 2001 by Crossway Bibles, a publishing ministry of Good News Publishers."
delay DelayShort
key code 48 -- tab
delay DelayShort
keystroke "a" using command down
key code 51 -- delete
delay DelayMed
key code 36 using command down --enter

When copying from a different translation, you need to adjust the text to replace accordingly.

Current pitfalls

The Psalms are formatted differently to the other books. Therefore I havenā€™t been able to import them using the script yet. I might share a later compatible script. It has a description and allows me to jump into the first chapter.

Overview notes in Obsidian

In the navigation on the top and bottom I included a link to an overview note/MOC.

The script formats the overview notes with an underscore, so that it appears at the top of the folder. Because my navigation is more based on links and less on folder, I actually deleted the underscores in my vault. So feel free to use it to your liking :smile:

As always, feel free to reach out to me if you run into problems. I really appreciate the interest.

5 Likes

Thank you so much for this script! Iā€™d say youā€™re doing your part in the building of the Kingdom :wink:

I did notice that the script was unable to format the text properly. The regex thing was unable to add the headings before each verse. Luckily I somehow fixed it. I think there was a mistake in the script???

The problem was with this line:
key code "26" using {shift down, option down} -- write "\"
The key code seems to type ā€” instead of \,
so when finding from the text copied from the Bible: ([0-9]|[1-9][0-9]|100)
no results would appear because it gets typed as ([0-9]|[1-9][0-9]|100)ā€”s instead of ([0-9]|[1-9][0-9]|100)\s.
Consequently, Atom fails to replace the verse numbers with headings.

Thankfully, your comment -- write "\" gave me a hint as to what needs to be typed. After a bit of searching, I was able to fix the problem by changing the line to:
key code "42" -- write "\"
which now types \ instead of ā€”
I then find-and-replaced the other parts from the script that contained the line.


On another (and probably a bit controversial) note, I also added the option to include the 7 deuterocanonical/apocrypha books. I had to search the abbreviations for those books to add them.


Again, thanks so much for this @Joschua! Iā€™ve been meaning to get into studying the Bible lately (with Obsidian) but donā€™t quite know how I should do it.

How do you guys go about studying the Bible? What is your workflow? And how do you take notes?

2 Likes

Haha, thank you! I am very glad this is of help to some one :slight_smile:

Good on you for fixing the script! I am quite sure this is due to me using key codes for my German keyboard that donā€™t correlate to the same symbols on other keyboard layouts. Glad you were able to change the script to make it work.

Great! Now the script is even more complete :smile:


So far, my workflow is mostly engaging with Scripture through other content. Whenever I listen to a sermon or pick up a reference to a scripture, Iā€™ll write a note in Obsidian an link it.

I have been very inspired by @Lithou though to use Obsidian to engage directly with scripture. (So @Lithou, please feel free to share more! :smile:) To have understanding emerge from me spending time with the Spirit and Scripture.

So now I am thinking about implementing practices to engage with the text within Obsidian. Since I havenā€™t imported the Psalms yet I am thinking about copying a Psalm each day as a part of my daily-ish morning journaling. That seems like a good way to start the day spending time with Scripture and Godā€™s presence. To value the time spent with the Text.

4 Likes

Take this with a grain of salt as Iā€™m not religious nor have I studied the bible. But it serves as an interesting case study for knowledge management because of its age and widespread use.

The way you do it with headers seems excessive to me and breaks you out of the flow of reading it? The way Iā€™d do it is just keep it in the paragraph form and excise a note and link to it when you find a line you decide to connect to other lines or write commentary on. I did a quick couple of notes to how itā€™d look in my mind

either of these

Or instead of links you could turn the lines into just straight up embeds that could be clicked, but for that to work and keep the flow youā€™d have to alter the CSS of embeds to be naked embeds and minimalist.

3 Likes

I love getting the input from those who arenā€™t religious or students of the Text. I find you have perspectives on things that the rest of us are blind to. Rabbi Fohrman calls this the lullaby affect. We hear a story so much growing up that we take things for granted until someone hears the story for the first time and points out ā€œHey, isnā€™t it that a little weird?ā€

So with your approach, you add the center note for any verse(s) you are annotating? Then you copy the text in plus add any embed from external sources like a third party commentary (the righthand pane) or quotes from another book, etc?

I love your point that paragraphs might be a better division within each file. When I memorized passages, I didnā€™t do verse numbers, just chapters and paragraphs (or paragraph sections for places where each sentence is itā€™s own paragraph.) For example, Romans 16 was 4 ā€œParagraphsā€/sections. I think Iā€™ll try this out for a bit and see how it goes.

If you use designations for each, it would make sense to embed the full paragraph/section even if you were referring to a specific verse within that section.

Also, if you wanted to do something unique, you could just copy/paste the portion you wanted into a block quote with a link at the end to the section in which it is located.

Wouldnā€™t this create a file for each embed that you did? While it would start out fine, I think it could grow cumbersome rather quickly. Depends on what use case you have though. I personally would avoid it because I create embeds for proper nouns and concepts so that will probably interfere.

1 Like

@Lithou yes it would create a file for each embed that you did. But I would only create embeds for lines that you plan to write more on or connect to others.

Also it doesnā€™t seem too excessive. Wikipedia tells me there are " 31,102 verses" in the Bible. Luhmann had 90,000 notes by the time he was done. So you could have a note for each verse in the bible and then a bunch of connecting notes for each verse.

1 Like

I really appreciate your input, @lizardmenfromspace. It was my hope that other people from the PKM community would find it an interesting case study.

On headers and readability: With a bit of rudimentary CSS tweaking1 , I was able to create a reading experience that is totally fine for me.

I do love though that in your approach you can quickly see the verses you already have other notes on. Until there is an indication for linked headings, it is hard to see on which verses you might have notes on. Having a consolidated ā€œCommentaryā€ section on each verse is also very helpful.

I definitely see the benefits of this approach, I am just hesitant to go through the effort of importing and formatting the Bible again :sweat_smile: How did you create the superscripted verse numbers? Did you format them manually/via regrex or were you able to copy and paste the format?

This system also introduces just a tiny bit more friction for a new reference. Currently, typing [[Eph-1#8]] does the job. In the other approach after creating a new [[Ephesians 1.8]] reference, I would have to go back to the paragraph to add that link, right?

Again, thanks for your input. I can really see the benefits of this approach and I am on the fence of changing my whole system. :smiley:


1: In case it is helpful to someone, here is the code. If someone would be willing to help me out in how to get rid of the space after each verse, I would really appreciate it!

.markdown-preview-view h6
{
  position: relative;
  left: -3%;
  top: 26px;
  line-height: 0px;
  margin-top: -20px;
  margin-right: 3px;
  font-family: var(--font-family-preview);
  font-weight: 500;
  font-size: 10px;
  font-weight: bold;
  color: var(--text-faint) !important;
}
6 Likes

Hello everyone, I am glad that I found this discussion here, although what I am working on is the Quran.

I just imported the whole Quran into Obsidian, 114 chapters and 6236 verses. Currently each verse is an .md file, but I am looking for ways to organize it better.

Thank you so much for writing in details on how you use Obsidian to organize the Bible, I will try some of the ideas here!

7 Likes

First off, thanks selfire for the applescript! Although I have 0 experience with scripts of any kind, the tutorial post and clear comments helped me to get the export done.

Now that I have the Bible in my vault, I have a couple of improvements in mind:

  1. as you mentioned, the ability to remove space between lines would be phenomenally helpful for readability.
  2. Would it also be possible to denote paragraphs?
  3. This is probably impossible, but having the verses joined together in a single line when they form a single sentence would be so good.

Thanks again!

Thank you.

Hey @tpmiap! So glad it worked for you even without any prior experience.

On (1): Yes, that would be really helpful. The CSS solution to that is way beyond me but I will try to reach out to some people more experienced than me and will share if there is a solution!

EDIT: margin-top: -20px; did the trick!

On (2): I guess a way to denote paragraphs would be with a heading. I could see how that would be possible with some advanced regex but it is a way beyond me. (and for me the experience so far is fine)

On (3): I guess a solution to both (2) and (3) would be @lizardmenfromspaceā€™s approach. I guess you could tweak the script in a way that imports the Bible in a more similar fashion to his approach. For me, creating a new note for each reverenced verse and linked back to it is a bit too much work right now. If youā€™re happy to have a go at it, Iā€™d help if you get stuck though! :slight_smile:

1 Like

Hi @Joschua, thanks for the response! Yes, the experience (and utility) is indeed much better than if I did not have the Bible in Obsidian at all. For now, I relate to your concerns with @lizardmenfromspaceā€™s approach and will likewise stick to what I have. (Also because finding my way around applescript was quite the baptism by fire, despite all the great help and documentation you provided.)

edit: Just tried margin-top -20px; !! Wow - really makes me want to pick up CSS. Thanks :slight_smile:

1 Like

Dave Gifford is a Tiddlywiki developer who has been doing some great work based on Roam principles. Heā€™s also a missionary in Mexico, and has been working on organizing the Gospels in Tiddlywiki. You can see his project at https://giffmex.org/html/evangelios/Pasajes%20en%20Mateo.html (in Spanish). Thereā€™s a Youtube interview with him at https://www.youtube.com/watch?v=cvLHjwYJfA4 . He talks about the Gospel project near the end.

4 Likes

Itā€™s great. Would you like to show how you organize the Quran in detail? Maybe itā€™s great if creating new forum about organizing Quran in Obsidian (Iā€™m not ready yet to start the forum, since my Quran organization is not stable yet :sweat_smile:).

2 Likes

Hi @Joschua, Iā€™ve just been looking through the forums and thought of something that would improve our abilities to link notes to verses. Unfortunately, I donā€™t have the technical ability to execute.

Right now, if I want to embed or refer to a chunk of verses, for example, John 3:16-20, I have to manually type the links for each of the verses. I suspect that Keyboard Maestro might be able to solve this inconvenience with a macro that takes input like ā€œJohn 3:16-20ā€ and pastes links for the verses into the clipboard.

What do you think of this idea? Further, do you know of anyone who could make this happen?

2 Likes

Oh, thatā€™s a good idea. Iā€™m not super familiar with keyboard maestro, but that concept is doable with basic level of programming since you have a small, finite amount of books (would have to figure out syntax between 1 Cor 10:1-2 , I Cor 10:1-2, 1 Corinthians 10:1-2, etc) and be ok with edge/corner case references. If you didnā€™t have any chapter/book jumps like Gen 1:20 - 2:5 you should be able to do that quite quickly.