Scripture — Terminal Reading
Shell Environment
Scripture corpus path variables (add to ~/.zshrc)
export RV="$HOME/atelier/_bibliotheca/Principia/02_Assets/DIS-SPANISH/La_Reina_Valera"
export WLC="$HOME/atelier/_bibliotheca/Principia/02_Assets/DIS-HEBREW/Tanakh"
export KJV="$HOME/atelier/_bibliotheca/Principia/02_Assets/LRN-LITERATURE/sacred/kjv-bible"
Text format — identical across all three corpora
BookName Chapter:Verse Text
Genesis 1:1 In the beginning God created the heaven and the earth. Génesis 1:1 En el principio creó Dios los cielos y la tierra. בְּרֵאשִׁית 1:1 בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
Single Verse Lookup
English
grep 'Genesis 1:1 ' "$KJV/kjv_complete.txt"
# Genesis 1:1 In the beginning God created the heaven and the earth.
Spanish
grep 'Génesis 1:1 ' "$RV/biblia_rv1909_completa.txt"
# Génesis 1:1 En el principio creó Dios los cielos y la tierra.
Hebrew
grep 'בְּרֵאשִׁית 1:1 ' "$WLC/tanakh_completa.txt"
# בְּרֵאשִׁית 1:1 בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
Parallel Reading
Trilingual — English, Spanish, Hebrew side by side
paste <(grep 'Genesis 1:1 ' "$KJV/kjv_complete.txt") \
<(grep 'Génesis 1:1 ' "$RV/biblia_rv1909_completa.txt") \
<(grep 'בְּרֵאשִׁית 1:1 ' "$WLC/tanakh_completa.txt")
Bilingual — Spanish + Hebrew only
paste <(grep 'Génesis 1:1 ' "$RV/biblia_rv1909_completa.txt") \
<(grep 'בְּרֵאשִׁית 1:1 ' "$WLC/tanakh_completa.txt")
Full chapter — Psalm 23 in all three
grep 'Psalms 23:' "$KJV/Old_Testament/19_Psalms/Psalms.txt"
grep 'Salmos 23:' "$RV/Antiguo_Testamento/19_Salmos/Salmos.txt"
grep 'תְּהִלִּים 23:' "$WLC/Ketuvim/27_Tehillim/Tehillim.txt"
Parallel chapter — verse-aligned with column formatting
paste <(grep 'Psalms 23:' "$KJV/Old_Testament/19_Psalms/Psalms.txt") \
<(grep 'Salmos 23:' "$RV/Antiguo_Testamento/19_Salmos/Salmos.txt") \
| column -t -s $'\t'
Cross-Lingual Lookup
Find a verse in one language, show the parallel
ref=$(grep -m1 'grace' "$KJV/New_Testament/49_Ephesians/Ephesians.txt" | awk '{print $2}')
echo "=== English ===" && grep "Ephesians $ref" "$KJV/New_Testament/49_Ephesians/Ephesians.txt"
echo "=== Spanish ===" && grep "Efesios $ref" "$RV/Nuevo_Testamento/49_Efesios/Efesios.txt"
| Cross-lingual lookup for NT books uses KJV + RV only. WLC covers OT only (39 books). |
Verse Comparison (domus-scripture texto pages)
The spoke texto pages use AsciiDoc superscript format N instead of Chapter:Verse. Use ^N\^ to grep them (escape the caret).
Bilingual — KJV + RV1909 (Matthew 5:17)
paste <(grep '\^17\^' docs/modules/ROOT/pages/kjv/new-testament/matthew/texto/texto-005.adoc) \
<(grep '\^17\^' docs/modules/ROOT/pages/reina-valera/nuevo-testamento/mateo/texto/texto-005.adoc)
# ^17^ Think not that I am come to destroy... ^17^ ¶ No penséis que he venido para invalidar...
Trilingual — KJV + RV1909 + WLC (Deuteronomy 4:2 — OT only)
paste <(grep '\^2\^' docs/modules/ROOT/pages/kjv/old-testament/deuteronomy/texto/texto-004.adoc) \
<(grep '\^2\^' docs/modules/ROOT/pages/reina-valera/antiguo-testamento/deuteronomio/texto/texto-004.adoc) \
<(grep '\^2\^' docs/modules/ROOT/pages/tanakh-study/torah/devarim/texto/texto-004.adoc)
| Run from domus-scripture root. WLC covers OT only — trilingual comparison limited to Torah/Nevi’im/Ketuvim. |
Reading Workflows
Read an entire chapter — clean output without AsciiDoc markup
sed -n '/^\^1\^/,/^$/p' docs/modules/ROOT/pages/reina-valera/nuevo-testamento/mateo/texto/texto-005.adoc \
| sed 's/\^[0-9]*\^//g; s/ +$//'
Strips superscript markers and trailing +. Clean reading in the terminal.
Numbered verse reading — restore verse numbers as margin annotations
awk '/^\^[0-9]+\^/ {
match($0, /\^([0-9]+)\^/, a)
gsub(/\^[0-9]+\^/, "")
gsub(/ \+$/, "")
printf "%3s %s\n", a[1], $0
}' docs/modules/ROOT/pages/reina-valera/nuevo-testamento/mateo/texto/texto-005.adoc
Read a verse range — e.g., Matthew 5:1-12 (Beatitudes)
awk '/^\^1\^/,/^\^12\^/' docs/modules/ROOT/pages/kjv/new-testament/matthew/texto/texto-005.adoc \
| sed 's/ +$//'
Daily reading — random Psalm
n=$((RANDOM % 150 + 1))
printf "=== Salmo %d ===\n" "$n"
sed -n '/^\^1\^/,/^$/p' "docs/modules/ROOT/pages/reina-valera/antiguo-testamento/salmos/texto/texto-$(printf '%03d' $n).adoc" \
| sed 's/\^[0-9]*\^//g; s/ +$//'
Daily Proverb — one chapter per day of the month
n=$(date +%-d)
printf "=== Proverbios %d ===\n" "$n"
sed -n '/^\^1\^/,/^$/p' "docs/modules/ROOT/pages/reina-valera/antiguo-testamento/proverbios/texto/texto-$(printf '%03d' $n).adoc" \
| sed 's/\^[0-9]*\^//g; s/ +$//'
Word Study
Find every verse containing a word across all of RV1909
grep -rn 'gracia' docs/modules/ROOT/pages/reina-valera/*/texto/ \
| awk -F/ '{book=$9; file=$11; gsub(/texto-|\.adoc:.*/,"",file); printf "%-20s Cap.%s %s\n", book, file, $NF}' \
| head -20
Count a word per book — which books mention "gracia" most?
for d in docs/modules/ROOT/pages/reina-valera/*/*/texto/; do
book=$(echo "$d" | awk -F/ '{print $9}')
count=$(grep -rl 'gracia' "$d" 2>/dev/null | wc -l)
[[ $count -gt 0 ]] && printf "%3d %s\n" "$count" "$book"
done | sort -rn
Find shared vocabulary — words that appear in both RV1909 and KJV for same book
comm -12 \
<(grep -oP '\b[a-záéíóú]{5,}\b' docs/modules/ROOT/pages/reina-valera/antiguo-testamento/genesis/texto/texto-001.adoc | sort -u) \
<(grep -oP '\b[a-z]{5,}\b' docs/modules/ROOT/pages/kjv/old-testament/genesis/texto/texto-001.adoc | sort -u)
Finds cognates and shared Latin-root words between Spanish and English text.
Hebrew root frequency — find how often a root appears in Torah
grep -rohP 'אֱלֹהִ[ים]*' docs/modules/ROOT/pages/tanakh-study/torah/*/texto/*.adoc \
| sort | uniq -c | sort -rn | head -10
defrae integration — look up an RV1909 word immediately
# Find an archaic word, then define it
grep -rn 'empero' docs/modules/ROOT/pages/reina-valera/*/texto/ | head -3
defrae empero
Theological Cross-Reference
Find a concept across all three corpora
printf "=== KJV ===\n"
grep -rn 'covenant' docs/modules/ROOT/pages/kjv/*/texto/ | wc -l
printf "=== RV1909 ===\n"
grep -rn 'pacto\|concierto' docs/modules/ROOT/pages/reina-valera/*/texto/ | wc -l
printf "=== WLC ===\n"
grep -rn 'בְּרִית' docs/modules/ROOT/pages/tanakh-study/*/texto/ | wc -l
Side-by-side theological term comparison
paste <(grep -rc 'grace' docs/modules/ROOT/pages/kjv/new-testament/*/texto/ | awk -F: '$2>0{print $1,$2}' | sort -t/ -k9) \
<(grep -rc 'gracia' docs/modules/ROOT/pages/reina-valera/nuevo-testamento/*/texto/ | awk -F: '$2>0{print $1,$2}' | sort -t/ -k9)
Progressive revelation — trace a concept from Torah to NT
printf "=== Torah (בְּרִית/covenant) ===\n"
grep -c 'בְּרִית' docs/modules/ROOT/pages/tanakh-study/torah/*/texto/*.adoc
printf "\n=== Prophets ===\n"
grep -c 'בְּרִית' docs/modules/ROOT/pages/tanakh-study/neviim/*/texto/*.adoc
printf "\n=== KJV NT (covenant) ===\n"
grep -c 'covenant' docs/modules/ROOT/pages/kjv/new-testament/*/texto/*.adoc
printf "\n=== RV1909 NT (pacto) ===\n"
grep -c 'pacto' docs/modules/ROOT/pages/reina-valera/nuevo-testamento/*/texto/*.adoc
Navigation Shortcuts
Jump to a specific book and chapter
# Function: read a chapter in any corpus
readch() {
local corpus="$1" book="$2" ch="$3"
local file="docs/modules/ROOT/pages/${corpus}/${book}/texto/texto-$(printf '%03d' $ch).adoc"
[[ -f "$file" ]] && sed 's/\^[0-9]*\^//g; s/ +$//' "$file" | tail -n +8 || echo "Not found: $file"
}
# Usage:
readch reina-valera/antiguo-testamento/genesis 1
readch kjv/old-testament/psalms 23
readch tanakh-study/torah/bereshit 1
List all books in a division
ls -1 docs/modules/ROOT/pages/reina-valera/antiguo-testamento/ | grep -v index
How many chapters in a book?
ls docs/modules/ROOT/pages/reina-valera/antiguo-testamento/genesis/texto/ | wc -l
# 50
Open book index in browser
xdg-open "file://$(pwd)/build/site/scripture/reina-valera/antiguo-testamento/genesis/index.html"
Concordance & Word Frequency
Count occurrences across entire corpus
grep -c 'grace' "$KJV/kjv_complete.txt"
# 170
grep -c 'gracia' "$RV/biblia_rv1909_completa.txt"
# 253
grep -c 'אֱלֹהִים' "$WLC/tanakh_completa.txt"
# 2602
Search within a testament
grep -r 'gracia' "$RV/Nuevo_Testamento/" --include='*.txt' | wc -l
Top 20 words in a book (skip book name and verse ref)
awk '{for(i=3;i<=NF;i++) w[$i]++} END{for(k in w) print w[k],k}' \
"$KJV/Old_Testament/01_Genesis/Genesis.txt" \
| sort -rn | head -20
Compare word frequency across translations
printf "%-15s %s\n" "KJV(God)" "$(grep -c ' God ' "$KJV/kjv_complete.txt")"
printf "%-15s %s\n" "RV(Dios)" "$(grep -c ' Dios ' "$RV/biblia_rv1909_completa.txt")"
printf "%-15s %s\n" "WLC(אֱלֹהִים)" "$(grep -c 'אֱלֹהִים' "$WLC/tanakh_completa.txt")"