Convert usfm bibles into gemtext (python library/utility)
Clean up apostrophe-t spacing
Zach DeCook 2024-04-08
parent 047fa1c · commit 639aa4a
-rwxr-xr-xusfm2gmi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index eccd2ab..665706a 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -127,7 +127,7 @@ def convert(line, printStrongs=False):
elif 'x-morph="' in word:
continue
# Remove those extra spaces that sneak in.
- elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”', '!”', ');', '),', '’s', '.)']:
+ elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”', '!”', ');', '),', '’s', '.)', '’t']:
if out[-1] == ' ':
out = out[:-1] + word + ' '
else: