Convert usfm bibles into gemtext (python library/utility)
qs: use tab to offset Selah
Zach DeCook 2021-02-25
parent 99ea6ae · commit bacccf1
-rwxr-xr-xusfm2gmi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 52cabfe..ac19681 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -52,6 +52,10 @@ def convert(line):
out += '\n>\t'
elif word in ['\\q3']:
out += '\n>\t\t'
+ elif word in ['\\qs']:
+ out += '\t'
+ elif word in ['\\qs*']:
+ continue
elif word in ['\\wj','\\wj*']:
continue
elif word == '\\nd':