M .gitignore => .gitignore +1 -0
@@ 1,2 1,3 @@
__pycache__
webp
+lsv.txt
M getscriptures.sh => getscriptures.sh +16 -4
@@ 1,4 1,16 @@
-wget https://ebible.org/Scriptures/engwebp_usfm.zip
-mkdir -p webp
-unzip engwebp_usfm.zip -d webp
-rm engwebp_usfm.zip
+#!/bin/sh
+getweb() {
+ wget https://ebible.org/Scriptures/engwebp_usfm.zip
+ mkdir -p webp
+ unzip engwebp_usfm.zip -d webp
+ rm engwebp_usfm.zip
+}
+getlsv() {
+ url="$(wget -O - https://www.lsvbible.com/p/get-lsv.html | grep Plain\ Text | grep -o 'https://[^"]*' | sed 's/amp;//g')"
+ wget -O lsv.zip "$url"
+ unzip lsv.zip
+ mv 'The Holy Bible (LSV).txt' lsv.txt
+ rm lsv.zip
+}
+test -d webp || getweb
+test -f lsv.txt || getlsv
M lsv.py => lsv.py +2 -2
@@ 31,9 31,9 @@ def main(qs):
print("# " + passage.format())
printing = False
f = open('lsv.txt')
- startmark = passage.start.format('a c:v')
+ startmark = passage.start.format('a')[0:3]+" "+passage.start.format('c:v')
eprint(startmark)
- endmark = passage.end.format('a c:v')
+ endmark = passage.end.format('a')[0:3]+" "+passage.end.format('c:v')
for line in f:
if (startmark+' ') in line:
printing = True