[sword-svn] r483 - trunk/modules/python

refdoc at crosswire.org refdoc at crosswire.org
Fri Mar 14 08:26:58 MST 2014


Author: refdoc
Date: 2014-03-14 08:26:57 -0700 (Fri, 14 Mar 2014)
New Revision: 483

Modified:
   trunk/modules/python/usfm2osis.py
Log:
improved better handling of \ip and \iot


Modified: trunk/modules/python/usfm2osis.py
===================================================================
--- trunk/modules/python/usfm2osis.py	2014-03-07 01:16:46 UTC (rev 482)
+++ trunk/modules/python/usfm2osis.py	2014-03-14 15:26:57 UTC (rev 483)
@@ -488,7 +488,7 @@
         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...




More information about the sword-cvs mailing list