summaryrefslogtreecommitdiffstats
path: root/versification/av11n.py
diff options
context:
space:
mode:
authorGreg Hellings <greg.hellings@gmail.com>2018-04-05 02:29:34 +0000
committerGreg Hellings <greg.hellings@gmail.com>2018-04-05 02:29:34 +0000
commit41d50bdc5026724e328af8157260783908b5d749 (patch)
treedcb7a47ccf788d2d5150c2f65675ec56067c8132 /versification/av11n.py
parent31aebca3301b72ab443e52a175fd908b129fa5a8 (diff)
downloadsword-tools-41d50bdc5026724e328af8157260783908b5d749.tar.gz
Shorten the labels so they are not overflowing the screen.
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@522 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'versification/av11n.py')
-rwxr-xr-xversification/av11n.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/versification/av11n.py b/versification/av11n.py
index c464fd9..9ade84e 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -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 @@ if len(sys.argv) < 2 or sys.argv[1] == '--help':
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 @@ for v11n in av11ns:
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 @@ for v11n in av11ns:
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'