about summary refs log tree commit diff
path: root/usfm2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-04-22 07:42:15 -0400
committerZach DeCook <zachdecook@librem.one>2021-04-22 07:42:15 -0400
commit726dd0d845804fef131c760e6a80a5a9c043e78b (patch)
tree4cb41c970f8355a178a5388fa70eb1c736f2328d /usfm2gmi.py
parent4740d41cd41e823d8accb732e4cc5ee6584dc7dc (diff)
downloadusfm2gmi-726dd0d845804fef131c760e6a80a5a9c043e78b.tar.gz
Spacing: add more punctuation characters to trim by
Diffstat (limited to 'usfm2gmi.py')
-rwxr-xr-xusfm2gmi.py4
1 files changed, 2 insertions, 2 deletions
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: