about summary refs log tree commit diff
path: root/usfm2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-12-11 19:57:28 -0500
committerZach DeCook <zachdecook@librem.one>2023-12-11 19:57:28 -0500
commit457f85f6ac9243dd94519f8502044729f25f19d4 (patch)
treed4bb8ebd740c64c2bf327802bc0c3e383e76870d /usfm2gmi.py
parent55ed7b33bb8f11aafe68167e310b8df7b6b06413 (diff)
downloadusfm2gmi-457f85f6ac9243dd94519f8502044729f25f19d4.tar.gz
ignore x-morph
Diffstat (limited to 'usfm2gmi.py')
-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] == ' ':