From 726dd0d845804fef131c760e6a80a5a9c043e78b Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 22 Apr 2021 07:42:15 -0400 Subject: Spacing: add more punctuation characters to trim by --- usfm2gmi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usfm2gmi.py') diff --git a/usfm2gmi.py b/usfm2gmi.py index 7d29e43..d0a2167 100755 --- a/usfm2gmi.py +++ b/usfm2gmi.py @@ -100,12 +100,12 @@ def convert(line): spl = word.split('|') out += spl[0] + ' ' #superscript(spl[1][8:-1]) + ' ' # Remove those extra spaces that sneak in. - elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?']: + elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”']: if out[-1] == ' ': out = out[:-1] + word + ' ' else: out += word + ' ' - elif word in ['“', '(']: + elif word in ['“', '(', '‘']: out += word else: if nd: -- cgit 1.4.1