about summary refs log tree commit diff
path: root/webp.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-12-11 22:42:47 +0000
committerZach DeCook <zachdecook@librem.one>2023-12-11 22:42:47 +0000
commitf6500b1ed9a7ef6988267cb9bfe9cb4c2ee52fbf (patch)
treedff7a166177dadebbfc70fbb9487b8e7478563d7 /webp.py
parent5d004d82de91fac644cbe4bd596b0879f69d6fe5 (diff)
downloadcgi-bin-f6500b1ed9a7ef6988267cb9bfe9cb4c2ee52fbf.tar.gz
biblestudy: show strongs numbers in webp
Diffstat (limited to 'webp.py')
-rwxr-xr-xwebp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/webp.py b/webp.py
index 8046c9f..27fc13d 100755
--- a/webp.py
+++ b/webp.py
@@ -6,9 +6,9 @@ import os
 import sys
 import subprocess
 
-def printf(line):
+def printf(line, printStrongs=False):
   if line.strip():
-    print(usfm2gmi.convert(line), end=' ')
+    print(usfm2gmi.convert(line, printStrongs), end=' ')
   else:
     print()
 
@@ -27,7 +27,7 @@ def main(qs):
   print("20 text/gemini\r\n")
   printwebp(passages)
 
-def printwebp(passages, title=True, plug=True):
+def printwebp(passages, title=True, plug=True, printStrongs=False):
   books=subprocess.check_output([f"find", "webp/", "-name", f'??-*.usfm']).strip().split(b"\n")
   books.sort()
   if plug:
@@ -58,7 +58,7 @@ def printwebp(passages, title=True, plug=True):
         printing =0
 
       if printing>=2:
-        printf(line)
+        printf(line, printStrongs)
     print('(WEB)') #end in newline
 
 if __name__ == '__main__':