From f6500b1ed9a7ef6988267cb9bfe9cb4c2ee52fbf Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 11 Dec 2023 22:42:47 +0000 Subject: biblestudy: show strongs numbers in webp --- webp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webp.py') 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__': -- cgit 1.4.1