From 457f85f6ac9243dd94519f8502044729f25f19d4 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 11 Dec 2023 19:57:28 -0500 Subject: ignore x-morph --- usfm2gmi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usfm2gmi.py') 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] == ' ': -- cgit 1.4.1