<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi there,<br>
<br>
I'm running Ubuntu Linux and was trying to use usfm2osis in a
script, but hit this error:<br>
<blockquote>.../sword-tools/modules/python/usfm2osis.py:1460:
UnicodeWarning: Unicode equal comparison failed to convert both
arguments to Unicode - interpreting them as being unequal<br>
if '-v' in sys.argv:<br>
.../sword-tools/modules/python/usfm2osis.py:1466: UnicodeWarning:
Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal<br>
if '-x' in sys.argv:<br>
.../sword-tools/modules/python/usfm2osis.py:1472: UnicodeWarning:
Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal<br>
if '-d' in sys.argv:<br>
.../sword-tools/modules/python/usfm2osis.py:1481: UnicodeWarning:
Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal<br>
if '-h' in sys.argv or '--help' in sys.argv or len(sys.argv)
< 3:<br>
.../sword-tools/modules/python/usfm2osis.py:1486: UnicodeWarning:
Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal<br>
if '-o' in sys.argv:<br>
Traceback (most recent call last):File
".../sword-tools/modules/python/usfm2osis.py", line 1493, in
<module><br>
osisFileName = osisWork + '.osis.xml'<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in
position 11: ordinal not in range(128)<br>
</blockquote>
It seems that the Sword tools can't handle foreign language osisWork
names. Is this a bug (that might be fixed) or a "feature"?<br>
<br>
Thanks,<br>
Robert.<br>
<a class="moz-txt-link-freetext" href="http://freely-given.org/Software/USFMDropBox">http://freely-given.org/Software/USFMDropBox</a><br>
<br>
From the usfm2osis.py file:<br>
<blockquote>date = '$Date: 2012-10-13 08:23:56 +1300 (Sat, 13 Oct
2012) $'<br>
rev = '$Rev: 407 $'<br>
id = '$Id: usfm2osis.py 407 2012-10-12 19:23:56Z chrislit $'<br>
<br>
usfmVersion = '2.35' #
<a class="moz-txt-link-freetext" href="http://ubs-icap.org/chm/usfm/2.35/index.html">http://ubs-icap.org/chm/usfm/2.35/index.html</a><br>
osisVersion = '2.1.1' #
<a class="moz-txt-link-freetext" href="http://www.bibletechnologies.net/osisCore.2.1.1.xsd">http://www.bibletechnologies.net/osisCore.2.1.1.xsd</a><br>
scriptVersion = '0.5'<br>
</blockquote>
<br>
</body>
</html>