[sword-svn] r522 - trunk/versification

greg.hellings at crosswire.org greg.hellings at crosswire.org
Wed Apr 4 19:29:34 MST 2018


Author: greg.hellings
Date: 2018-04-04 19:29:34 -0700 (Wed, 04 Apr 2018)
New Revision: 522

Modified:
   trunk/versification/av11n.py
Log:
Shorten the labels so they are not overflowing the screen.

Modified: trunk/versification/av11n.py
===================================================================
--- trunk/versification/av11n.py	2018-04-05 02:29:27 UTC (rev 521)
+++ trunk/versification/av11n.py	2018-04-05 02:29:34 UTC (rev 522)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# coding: utf-8
 #
 # This does a very roughshod attempt to compare the osisIDs found in an
 # XML file with each of the versifications that SWORD knows about to help
@@ -43,7 +44,7 @@
 logging.debug('Opening %s' % (sys.argv[1],))
 d = pq(filename=sys.argv[1])
 # Get the list of versifications
-logging.debug('Fetching a list of versifications')
+logging.debug('Fetching a list of v11ns')
 vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
 av11ns = vmgr.getVersificationSystems()
 
@@ -82,6 +83,7 @@
     inNT = False
     # Now iterate the ones we have in this file
     for e in ids:
+        logging.debug('e = %s', e)
         osisid = e.attrib.get('osisID')
         #print 'Checking key %s' % (osisid,)
         if osisid in otkeyList:
@@ -100,21 +102,21 @@
     keyList = list(otkeyList.union(ntkeyList))
     keyList.sort()
     if len(keyList) > 0:
-        logging.info('\tThe following IDs do not appear in your file:\n%s',
+        logging.info('\tThe following IDs don’t appear in your file:\n%s',
                      str("\n".join(keyList)))
         print ('\tThere are %d OT IDs and %d NT IDs ' +
-               'in the versification which are not in your file.') \
+               'in v11n which arn’t in your file.') \
             % (len(otkeyList), len(ntkeyList))
     else:
-        print '\tYour file has all the references in this versification'
+        print '\tYour file has all the references in this v11n'
 
     # Now let's see if you had extra
     if len(otextraKeys + ntextraKeys) > 0:
         logging.info(
-            '\tThe following IDs do not appear in the versification:\n%s',
+            '\tThe following IDs don’t appear in v11n:\n%s',
             str("\n".join(keyList)))
         print ('\tThere are %d OT IDs and %d NT IDs ' +
-               'in your file which do not appear in the versification.') \
+               'in your file which don’t appear in v11n.') \
             % (len(otextraKeys), len(ntextraKeys))
     else:
         print '\tYour file has no extra references'




More information about the sword-cvs mailing list