~earboxer/usfm2gmi

726dd0d845804fef131c760e6a80a5a9c043e78b — Zach DeCook 3 months ago 4740d41
Spacing: add more punctuation characters to trim by
1 files changed, 2 insertions(+), 2 deletions(-)

M usfm2gmi.py
M usfm2gmi.py => usfm2gmi.py +2 -2
@@ 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: