~repos /only-bible-app

#kotlin#android#ios

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_ja_quotes.py



import re
# Load partial-red verse IDs from en_kjv.txt
partial_ids = set()
with open("scripts/files/en_kjv.txt") as f:
for line in f:
if "<red>" not in line:
continue
parts = line.strip().split("|")
text = "|".join(parts[6:]).strip().lstrip("\u00b6 \t")
if re.match(r"^<red>.*</red>$", text):
continue
vid = parts[1] + ":" + parts[2] + ":" + parts[3]
partial_ids.add(vid)
print("Partial red verse IDs:", len(partial_ids))
# Check those verses in ja.txt for quotation marks
has_quote = 0
no_quote = 0
samples_with = []
samples_without = []
with open("scripts/files/ja.txt") as f:
for line in f:
parts = line.strip().split("|")
if len(parts) < 7:
continue
vid = parts[1] + ":" + parts[2] + ":" + parts[3]
if vid not in partial_ids:
continue
text = "|".join(parts[6:])
if "\u300c" in text or "\u300e" in text:
has_quote += 1
if len(samples_with) < 5:
samples_with.append(text[:100])
else:
no_quote += 1
if len(samples_without) < 5:
samples_without.append(text[:100])
print("With Japanese quotes:", has_quote)
print("Without quotes:", no_quote)
print("\nSamples WITH quotes:")
for s in samples_with:
print(" ", s)
print("\nSamples WITHOUT quotes:")
for s in samples_without:
print(" ", s)