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

chrislit at crosswire.org chrislit at crosswire.org
Mon Aug 6 01:52:01 MST 2012


Author: chrislit
Date: 2012-08-06 01:52:01 -0700 (Mon, 06 Aug 2012)
New Revision: 366

Modified:
   trunk/modules/python/usfm2osis.py
Log:
Fixed typo; moved remaining tags to 'supported' lines


Modified: trunk/modules/python/usfm2osis.py
===================================================================
--- trunk/modules/python/usfm2osis.py	2012-08-06 08:50:15 UTC (rev 365)
+++ trunk/modules/python/usfm2osis.py	2012-08-06 08:52:01 UTC (rev 366)
@@ -667,8 +667,7 @@
     def cvtSpecialFeatures(osis, relaxedConformance):
         """
         Special Features
-        supported:
-        unsupported: \fig...\fig*, \ndx...\ndx*, \pro...\pro*, \w...\w*, \wg...\wg*, \wh...\wh*
+        supported: \fig...\fig*, \ndx...\ndx*, \pro...\pro*, \w...\w*, \wg...\wg*, \wh...\wh*
         """
         # \fig DESC|FILE|SIZE|LOC|COPY|CAP|REF\fig*
         def makeFigure(matchObject):
@@ -704,7 +703,7 @@
         osis = re.sub(r'([^\s]+)(\s*)\\pro\s+(.+?)(\s*)\\pro\*', r'<w xlit="\3">\1</w>\2\4', osis, flags=re.DOTALL)
 
         # \w_...\w*
-        osis = re.sub(r'\\w\s+(.+?)(\s*)\\w\*', r'\1<index index="Glossay" level1="\1"/>\2', osis, flags=re.DOTALL)
+        osis = re.sub(r'\\w\s+(.+?)(\s*)\\w\*', r'\1<index index="Glossary" level1="\1"/>\2', osis, flags=re.DOTALL)
 
         # \wg_...\wg*
         osis = re.sub(r'\\wg\s+(.+?)(\s*)\\wg\*', r'\1<index index="Greek" level1="\1"/>\2', osis, flags=re.DOTALL)
@@ -718,8 +717,7 @@
     def cvtPeripherals(osis, relaxedConformance):
         """
         Peripherals
-        supported:
-        unsupported: \periph
+        supported: \periph
         """
         # \periph
         def tagPeriph(matchObject):




More information about the sword-cvs mailing list