diff options
author | Peter von Kaehne <refdoc@gmx.net> | 2014-03-14 15:26:57 +0000 |
---|---|---|
committer | Peter von Kaehne <refdoc@gmx.net> | 2014-03-14 15:26:57 +0000 |
commit | 95f9a48bfa46dac0267d7fd3c06e7a6d74452780 (patch) | |
tree | ee4dc846f5bb40d9c8808c8fcce90cb2e92d5431 /modules | |
parent | 214e3814ef4226ff9e6b5c01f7dd0bb7b84ea395 (diff) | |
download | sword-tools-95f9a48bfa46dac0267d7fd3c06e7a6d74452780.tar.gz |
improved better handling of \ip and \iot
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@483 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/python/usfm2osis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/python/usfm2osis.py b/modules/python/usfm2osis.py index f2997b4..0cc631b 100755 --- a/modules/python/usfm2osis.py +++ b/modules/python/usfm2osis.py @@ -488,7 +488,7 @@ def convertToOsis(sFile): osis = re.sub('(\uFDE6<div type="subSubSubSubSection" subType="x-introduction">[^\uFDE2\uFDE3\uFDE4\uFDE5\uFDE6]+?)(?!\\c\b)', r'\1'+'</div>\uFDE6\n', osis, flags=re.DOTALL) # \ip_text... - osis = re.sub(r'\\ip\s+(.*?)(?=(\\(i?m|i?p|lit|cls|tr|io|iq|i?li|iex?|s|c)\b|<(/?div|p|closer)\b))', lambda m: '\uFDD3<p subType="x-introduction">\n' + m.group(1) + '\uFDD3</p>\n', osis, flags=re.DOTALL) + osis = re.sub(r'\\ip\s+(.*?)(?=(\\(i?m|i?p|lit|cls|tr|io|iot|iq|i?li|iex?|s|c)\b|<(/?div|p|closer)\b))', lambda m: '\uFDD3<p subType="x-introduction">\n' + m.group(1) + '\uFDD3</p>\n', osis, flags=re.DOTALL) # \ipi_text... # \im_text... |