~repos /only-bible-app
GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone
https://git.pyrossh.dev/only-bible-app.git
Discussions:
https://groups.google.com/g/rust-embed-devs
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
scripts/analyze_red.py
import re
patterns = {"prefix_red": 0, "red_suffix": 0, "prefix_red_suffix": 0, "multi_red": 0, "other": 0}
with open("scripts/files/en_bsb.txt") as f: for line in f: if "<red>" not in line: continue parts = line.strip().split("|") text = "|".join(parts[6:]).strip() stripped = text.lstrip("\u00b6 \t") if re.match(r"^<red>.*</red>$", stripped): continue
red_count = stripped.count("<red>")
if red_count > 1: patterns["multi_red"] += 1 elif stripped.startswith("<red>"): patterns["red_suffix"] += 1 elif stripped.endswith("</red>"): patterns["prefix_red"] += 1 else: patterns["prefix_red_suffix"] += 1
for p, c in sorted(patterns.items(), key=lambda x: -x[1]): print(f"{p}: {c}")
print(f"\nTotal partial: {sum(patterns.values())}")