Unique Bible App discussion

Dedicated to the scholarly study of the bible as text and the discussion thereof

Moderator: Moderators

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Unique Bible App discussion

Post #1

Post by otseng »

Difflugia created the thread Bible study on the cheap and mentioned Unique Bible App.

My first impression is it's a very powerful Bible study program. And best of all, it's free! But, the user interface is not intuitive and the documentation is sparse. So, creating this thread to discuss how to use the program and share tips.

The code is open sourced and available at:
https://github.com/eliranwong/UniqueBible

It runs on Python and is compatible with all major platforms (Windows, Mac, Linux).

Documentation is at:
https://github.com/eliranwong/UniqueBible/wiki

If you're a software developer, getting it running on your computer is standard fare. If you're not a developer, it might be challenging.

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #11

Post by otseng »

I'm now officially part of the development team for UBA.

https://github.com/eliranwong/UniqueBib ... /README.md

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #12

Post by otseng »

Added macros that can run commands from a file.

https://github.com/eliranwong/UniqueBible/issues/66

User avatar
Difflugia
Guru
Posts: 2295
Joined: Wed Jun 12, 2019 10:25 am
Location: Michigan
Has thanked: 1848 times
Been thanked: 1364 times

Re: Unique Bible App discussion

Post #13

Post by Difflugia »

I just updated and opened an issue. I hope it's clear, but I wanted to attach screenshots and couldn't figure out how (I'm not much of a GitHub user).

In short, after upgrading and the databases update, I see duplicate, but nonworking links for LXX, OHGB, and OHGBi:

Image

Having getPlainBibleList() from BiblesSqlite.py return an empty array (or dictionary, or whatever they are in Python) gets rid of the duplicate entries and makes everything work again. I suspect that there's more than that to a "real" fix, though.

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #14

Post by otseng »

[Replying to Difflugia in post #14]

Yep, that'll work.

In my next pull request, I'm going to change it to calling getBibleList2().

I'm still trying to wrap my head around how the formatted/unformatted Bible data is loaded. It looks like it was originally designed to use bibles.sqlite database for all the Bible data. Then it switched to using a database file for each Bible. And code was added to migrate the data from bibles.sqlite to its own database for each Bible.

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #15

Post by otseng »

There's several more features I've added to make the app easier to use for me.

Added support for multiple menu layouts and added the Aleph menu for a more simplified menu.

Speed improvement for Bible reference parsing. Enable it with the useFastVerseParsing flag. It will only search for a reference at the beginning of the string. The standard parser can find a verse located anywhere inside a string. But with that flexibility it slows down the parsing.

Added macros to be able to run common commands quickly.

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #16

Post by otseng »

I'm working on the ability to sync Bible notes across computers. I'd like to test it out more before merging this to master.

More info at:
https://github.com/eliranwong/UniqueBible/issues/90

Comment in that thread if you find issues or have suggestions.

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #17

Post by otseng »

Added ability for UBA to run as a telnet server for remote CLI access.

https://github.com/eliranwong/UniqueBib ... Remote-CLI

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #18

Post by otseng »

We recently added ability to run as a http server. Now my Transliteral Bible translation is available for viewing, though it'll take probably another year to complete the NT.

https://transliteralbible.com/

User avatar
Difflugia
Guru
Posts: 2295
Joined: Wed Jun 12, 2019 10:25 am
Location: Michigan
Has thanked: 1848 times
Been thanked: 1364 times

Re: Unique Bible App discussion

Post #19

Post by Difflugia »

I've had problems getting searches to work with Greek and Hebrew, so I decided to try to figure out what was wrong.

The main problems turned out to be these:
  • Searches must exactly match accent marks in Greek (Logos and web browsers will match accented text with an unaccented search term).
  • Searches must exactly match both vowel and cantillation marks in Hebrew.
  • In Hebrew, the ה definite article, ו conjunction, and prepositions are treated as separate words in the OHGB.
  • Hebrew final character forms and Greek sigma don't match their nonfinal forms.
Knowing this, there are workarounds for searching single words (look up lexeme/morphology and search on that, for example), but a lot of my searches are for phrases. I figured out that I can create regular expressions to overcome these, but they're unwieldy. To search for "sons of God" variants of the form "בני (ה)אלהים", for example, I can use the following regular expression search:

Code: Select all

REGEXSEARCH:::OHGB:::ב[^א-ת<>]*נ[^א-ת<>]*י[^א-ת]*[ה]*[^א-ת]*א[^א-ת<>]*ל[^א-ת<>]*ה[^א-ת<>]*י[^א-ת<>]*[מם]
To anyone not familiar with entering mixed LTR and RTL text, this won't be typed in the exact order you see on the screen (i.e. "REGEXSEARCH:::OHGB:::" followed by beth, open bracket, caret, aleph, dash, tav, ...). I composed it in a text editor and pasted it into the command box.

Basically, I'm searching for each letter in the phrase I'm looking for, followed by a pattern of zero or more things that aren't Hebrew letters or angle brackets (which separate words in the HTML data) to ignore vowel points and cantillation. Between words, leave out the "<>", which explicitly filters out word breaks.

If you don't have (or want to use) the corresponding keyboard locales, I use online entry utilities for Hebrew and Greek.
My preferred pronouns are he, him, and his.

User avatar
otseng
Savant
Posts: 18572
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 146 times
Been thanked: 212 times
Contact:

Re: Unique Bible App discussion

Post #20

Post by otseng »

[Replying to Difflugia in post #20]

Created issue for this:
https://github.com/eliranwong/UniqueBible/issues/580

Not sure how this can be implemented, but my initial thought would be creating a database that converts all the letter variations to a single letter.

Post Reply