From e283c7c96d11c6e51fea5e1db896ac47edf0b806 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 22 Apr 2021 07:42:58 -0400 Subject: divine name: use another tag for this --- usfm2gmi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usfm2gmi.py') diff --git a/usfm2gmi.py b/usfm2gmi.py index d0a2167..ffdf65e 100755 --- a/usfm2gmi.py +++ b/usfm2gmi.py @@ -35,7 +35,7 @@ def superscript(word): def convert(line): """Convert a string to a list of tuples, each a token""" # TODO: preserve the lack of whitespace before a backslash. - split = line.replace('\\', ' \\').replace('\\nd*','\\nd* ').replace('\\f*','\\f* ').replace('\\wj*','\\wj* ').replace('\\w*','\\w* ').split() + split = line.replace('\\', ' \\').replace('\\nd*','\\nd* ').replace('\\+nd*','\\+nd* ').replace('\\f*','\\f* ').replace('\\wj*','\\wj* ').replace('\\w*','\\w* ').split() out = '' nd = False if len(split) == 0: @@ -79,9 +79,9 @@ def convert(line): out += '*' elif word in ['\\em*', '\\it*']: out = out.rstrip() + '*' - elif word == '\\nd': + elif word in ['\\nd','\\+nd']: nd = True - elif word == '\\nd*': + elif word in ['\\nd*','\\+nd*']: nd = False # Footnotes (https://ubsicap.github.io/usfm/notes_basic/fnotes.html) elif word == '\\f': -- cgit 1.4.1