Convert usfm bibles into gemtext (python library/utility)
ignore x-morph
Zach DeCook 2023-12-11
parent 55ed7b3 · commit 457f85f
-rwxr-xr-xusfm2gmi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index afb6834..5d52808 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -117,6 +117,8 @@ def convert(line, printStrongs=False):
if printStrongs:
out += superscript(spl[1][8:-1])
out += ' '
+ elif 'x-morph="' in word:
+ continue
# Remove those extra spaces that sneak in.
elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”', '!”', ');', '),']:
if out[-1] == ' ':