Convert usfm bibles into gemtext (python library/utility)
ignore x-morph
| -rwxr-xr-x | usfm2gmi.py | 2 |
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] == ' ': |