about summary refs log tree commit diff
path: root/usfm2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-09-06 06:39:29 -0500
committerZach DeCook <zachdecook@librem.one>2023-09-06 06:39:29 -0500
commit3679315e6fd1ba1c02a002ce208f385f5989b281 (patch)
treea16bcbda86b9f9c8d6dfc9c2487d89910f2b9858 /usfm2gmi.py
parent930590a368b21c011536cd454a5e434c8438d492 (diff)
downloadusfm2gmi-3679315e6fd1ba1c02a002ce208f385f5989b281.tar.gz
usfm2gmi: Add 'sp' tag
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 e618870..222d800 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -43,9 +43,9 @@ def convert(line):
   elif split[0] in ['\\mt1','\\mt','\\ms','\\h']:
     return '\n# ' + convert(' '.join(split[1:]))
   # TODO: parse as word for title tags in title line
-  elif split[0] in ['\\mt2','\\s']:
+  elif split[0] in ['\\mt2','\\s','\\s1']:
     return '\n## ' + convert(' '.join(split[1:]))
-  elif split[0] in ['\\mt3','\\d']:
+  elif split[0] in ['\\mt3','\\d', '\\sp']:
     return '\n### ' + convert(' '.join(split[1:]))
   elif split[0] == '\\b':
     return '\n'