A multi-source Bible study with spoken pronunciations and four parallel translations — for Latvian readers.
The Old and New Testaments live as parallel sub-projects, with identical interlinear behaviour.
Each Hebrew or Greek form has a play button. It speaks the lemma cleanly — twice — then stops. No "now we hear...". A second link goes straight to the BLB Strong's page.
The verse appears in four to five aligned languages. Below it, an interlinear table lists every Hebrew/Greek form with its Latvian glosses.
The forms themselves aren't clickable — but next to each one are two affordances:
Ernst Glück's 1694 Bible — the first complete Latvian translation — is rendered verbatim in Fraktur, beside the 1965, 2024, and original-language texts.
Par to ko jūs rakstījāt ir labi vīrietim atturēties no sievietes;
No server, no database, no JS framework — Jupyter notebooks generate one HTML file per chapter.
Jupyter pulls and merges sources, fixes alignment, applies corrections.
Per-chapter JSON files in bible/<book>/<chapter>.json hold the canonical data.
A render notebook templates each JSON into a self-contained chapter page.
Each step is a Jupyter notebook in the repo root, run in order.
One JSON file per chapter — an array of verses. Each verse is a list of hebrew_words, where each Hebrew form carries its Greek and Latvian arrays.
A Hebrew form can map to multiple Greek tokens (or none), and to multiple Latvian words (or none). Verse-level Greek/Latvian that didn't map go into leftover_greek and leftover_latvian.
The renderer is intentionally dumb — it walks the JSON and emits HTML. If you can edit JSON, you can change the site.
[
{
"hebrew_words": [
{ "hebrew": "אַ֥שְֽׁרֵי",
"greek": ["μακάριος"],
"latvian": ["Svētīgs"] },
{ "hebrew": "הָאִ֗ישׁ",
"greek": ["ἀνήρ"],
"latvian": ["tas", "cilvēks"] },
{ "hebrew": "בַּעֲצַ֪ת",
"greek": ["ἐν", "βουλῇ"],
"latvian": ["padomam"] },
{ "hebrew": "וּבְמוֹשַׁ֥ב",
"greek": ["καὶ", "ἐπὶ", "καθέδραν"],
"latvian": ["nedz", "arī", "sēž"] },
{ "hebrew": "לֹ֥א",
"greek": ["οὐκ"],
"latvian": [] }
],
"leftover_greek": [],
"leftover_latvian": []
},
{ ... }
]A four-step recipe to render any chapter from JSON.
Standard CPython. Anaconda or a venv both work.
JupyterLab or classic Notebook — every step is a notebook.
The output is plain HTML. No build server required.
OT and NT are separate repositories with the same shape.
$ git clone \
https://github.com/ewilpeers/bible.git
$ cd bible
# layout
.
├── bible/ ← canonical JSON + rendered HTML
│ ├── psalms/27.json
│ └── psalms/27.html
├── 6HTML_render_OT.ipynb
├── 7excel_import_export.ipynb
└── ...$ git clone \
https://github.com/ewilpeers/new-testament.git
$ cd new-testament
# same shape, different sources
.
├── bible/
│ ├── 1_corinthians/7.json
│ └── 1_corinthians/7.html
├── HTML_render_NT.ipynb
└── ...6HTML_render_OT.ipynb is split into per-chapter sections. Run them by heading — not Cell → Run All.
$ pip install -r requirements.txt $ jupyter lab # or jupyter notebook
Each file is fully self-contained. Open it directly — no local server needed.
$ open bible/psalms/27.html $ open bible/1_corinthians/7.html
What you get is bit-for-bit what runs at t.noit.pro/e/psalms/27.html — the deployment is just git push to a static host.
The strongs_p/ folder of MP3s is checked into the repo. After cloning, the ▶ buttons just work — locally and in production.
| Hebrew | Latvian | Strong's | Morphology | Definition |
|---|---|---|---|---|
לְדָוִ֨ד lə·ḏā·wiḏ | Dāvida, dziesma | H1732 | Prep-l|N-prop | David — beloved, son of Jesse |
יְהוָ֤ה Yah·weh | Tas Kungs | H3068 | N-prop-MS | The proper name of the God of Israel |
אוֹרִ֣י ʾō·w·rî | mans gaišums | H216 | N-MSC|1CS | Light, illumination |
Four parallel tracks — pick the one that suits your skills.
Move words between Latvian–Greek/Hebrew cells in Excel, export to JSON, open a PR.
Train and tune Qwen-VLLM-based OCR for the Fraktur source.
A GUI to cut Fraktur scans along their wandering mid-line — without slicing through letters, so OCR sees clean half-pages.
CCATS-style alignment; almost there, currently paused.
Each Hebrew form lists its Greek and Latvian counterparts. Editing means moving a word from one form's array to another's — or from leftover into a form.
Most of this is correct. The fixes don't need code — they need a careful reader.
{ "hebrew": "בַּעֲצַ֪ת",
"greek": ["ἐν", "βουλῇ"],
"latvian": ["padomam"] ← move "ļauno"
here from leftover
}{
"hebrew_words": [
{ "hebrew": "אַ֥שְֽׁרֵי",
"greek": ["μακάριος"],
"latvian": ["Svētīgs"] },
{ "hebrew": "הָאִ֗ישׁ",
"greek": ["ἀνήρ"],
"latvian": ["tas", "cilvēks"] },
{ "hebrew": "בַּעֲצַ֪ת",
"greek": ["ἐν", "βουλῇ"],
"latvian": ["padomam"] }, ← target
{ "hebrew": "רְ֭שָׁעִים",
"greek": ["ἀσεβῶν"],
"latvian": ["bezdievīgo"] }
],
"leftover_greek": [],
"leftover_latvian": ["ļauno"]
}Repo: github.com/ewilpeers/lv_fraktur_ocr — actively being worked on.
A vision-LLM pipeline (Qwen-VL, served via vLLM) reads each Fraktur page and emits modern transcribed Latvian.
Glück 1694 is two-column. The seam is rarely vertical and often runs through letters — a bad cut bleeds half-letters into the next column and OCR fails on them.
Today: a small Python GUI lets a human nudge the cut path per page — clean cuts → clean OCR.
A future Inkscape extension — let the user adjust a Bézier curve through the seam directly in Inkscape, then export the two clean halves. Inkscape already has the curve-editing UX; we'd just plug in the import/export.
Other welcome help: better automatic mid-line detection (CV / heuristics), batch mode for clean pages, faster review keyboard shortcuts.
CCATS (CATSS) is a long-standing scholarly dataset that aligns the Masoretic Hebrew with the Septuagint Greek at the word level — the same problem we have, solved decades ago.
Importing it lets us correct Greek glosses against the Hebrew automatically, instead of by hand. Notebook: 5correct_json_catss.ipynb.
Hebrew, Greek, and English Bibles number their psalms (and many chapters) differently. The mapping table in the README handles dozens of these splits.
| English | Hebrew | Greek |
|---|---|---|
| Ps 3:title | 3:1 | — |
| Ps 3:1–8 | 3:2–9 | — |
| — | 11–113 | 10–112 |
| Ps 51:1–19 | 51:2–21 | — |
| Joel 2:28–32 | 3:1–5 | — |
| Mal 4:1–6 | 3:19–24 | — |
The CCATS-driven correction pipeline is nearly producing usable output. What remains is mechanical: install it, test on a chapter, then port a fuzzy-match step we already have working in another notebook.
Currently paused — attention is on the Glück 1694 Fraktur text. A contributor with a biblical-studies background could pick this up and finish it without touching the rest of the stack.
CCATS Greek lemmas don't always exact-match LXX surface forms. We have a working similarity-based matcher in another notebook — copy it in, wire it up.
Most search boxes are accent-insensitive by default — useful for casual reading, useless for study. There's no way out of it: no escape, no regex, no character classes.
A scholar wants the opposite: match this exact pointing, or match any vowel here, but specifically שׁ not שׂ, or this Hebrew word AND its Greek counterpart in the same verse.
Regex. Character sets. A way to opt back into diacritic-sensitive matching when you need it.
github.com/ewilpeers/bible/tree/master/xG_Collab — full Python, full regex, all four texts in one query.
Search a verse by listing multiple needles across languages — and use full regex on each one.
The README lists missing verses, audio bugs, and verses absent from Glück 1694. None of it is hidden.
Greek-empty entries — Esther, Jeremiah, Proverbs.
Strong's ID swaps and split errors in BLB pronunciations.
Verses present in MT but not in 1694 Glück — won't-fix, marked.
Open an issue with just the audio number prefixed h or g — that's all that's needed to file a fix.
Pick a track. Open a PR. The diff is JSON.