Hi there,

    I'm running Ubuntu Linux and was trying to use usfm2osis in a script, but hit this error:
.../sword-tools/modules/python/usfm2osis.py:1460: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if '-v' in sys.argv:
.../sword-tools/modules/python/usfm2osis.py:1466: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if '-x' in sys.argv:
.../sword-tools/modules/python/usfm2osis.py:1472: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if '-d' in sys.argv:
.../sword-tools/modules/python/usfm2osis.py:1481: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if '-h' in sys.argv or '--help' in sys.argv or len(sys.argv) < 3:
.../sword-tools/modules/python/usfm2osis.py:1486: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if '-o' in sys.argv:
Traceback (most recent call last):File ".../sword-tools/modules/python/usfm2osis.py", line 1493, in <module>
    osisFileName = osisWork + '.osis.xml'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 11: ordinal not in range(128)
It seems that the Sword tools can't handle foreign language osisWork names. Is this a bug (that might be fixed) or a "feature"?

Thanks,
Robert.
http://freely-given.org/Software/USFMDropBox

From the usfm2osis.py file:
date = '$Date: 2012-10-13 08:23:56 +1300 (Sat, 13 Oct 2012) $'
rev = '$Rev: 407 $'
id = '$Id: usfm2osis.py 407 2012-10-12 19:23:56Z chrislit $'

usfmVersion = '2.35'  # http://ubs-icap.org/chm/usfm/2.35/index.html
osisVersion = '2.1.1' # http://www.bibletechnologies.net/osisCore.2.1.1.xsd
scriptVersion = '0.5'

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to