Re: [sword-devel] usfm2osis.py

2012-08-04 Thread Robert Hunt
On 05/08/12 00:15, Chris Little wrote: Bug reports are welcome if you try it, but this is still largely untested stuff, so expect bugs. The other script in the above directory can be used to identify all of the USFM tags used in a set of f

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread Chris Little
On 08/04/2012 10:22 AM, David Haslam wrote: Wow! What Peter means is that after all the ASCII stuff (up to the tilde), these are also counted: 0E0030 󠀰 14 TAG DIGIT ZERO 0E0031 󠀱 11 TAG DIGIT ONE 0E0032 󠀲 10 TAG DIGIT TWO 0E0033 󠀳 7 TAG DIGIT THR

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread Chris Little
On 08/04/2012 10:19 AM, Greg Hellings wrote: I'm not at a place where I can check it out right now, but does it cover the functionality that previously was required in xreffix.pl? Since the Perl bindings seem to have gone belly-up on 64-bit machines, it would be great if all of this could be comb

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread Chris Little
On 08/04/2012 07:04 AM, David Haslam wrote: I see after downloading your script that this is already answered. # Target Python 2.7+ (but not 3) David Right. Python 3 is significantly different. I haven't bothered to learn it and don't plan to make usfm2osis.py a Python 3 application at any

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread David Haslam
Wow! What Peter means is that after all the ASCII stuff (up to the tilde), these are also counted: 0E0030 󠀰 14 TAG DIGIT ZERO 0E0031 󠀱 11 TAG DIGIT ONE 0E0032 󠀲 10 TAG DIGIT TWO 0E0033 󠀳 7 TAG DIGIT THREE 0E0034 󠀴 6 TAG DIGIT FOUR 0E0

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread Greg Hellings
I'm not at a place where I can check it out right now, but does it cover the functionality that previously was required in xreffix.pl? Since the Perl bindings seem to have gone belly-up on 64-bit machines, it would be great if all of this could be combined in a single step (even if it's an optional

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread Peter von Kaehne
On 04/08/12 13:15, Chris Little wrote: > usfm2osis.py is posted now, at > Bug reports are welcome if you try it, but this is still largely > untested stuff, so expect bugs. Is it meant to be that there are some very odd characters in the file? Peter _

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread David Haslam
I see after downloading your script that this is already answered. # Target Python 2.7+ (but not 3) David -- View this message in context: http://sword-dev.350566.n4.nabble.com/usfm2osis-py-tp4650735p4650737.html Sent from the SWORD Dev mailing list archive at Nabble.com. ___

Re: [sword-devel] usfm2osis.py

2012-08-04 Thread David Haslam
Chris, Do you foresee any issues if I try to run it with Python 3.2.3 x64 in Windows 7 ? >From the readme.txt file "Python 3.x is a new version of the language, which is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in object

[sword-devel] usfm2osis.py

2012-08-04 Thread Chris Little
usfm2osis.py is posted now, at http://www.crosswire.org/svn/sword-tools/trunk/modules/python/ It was developed on/for CPython 2.7.3, but 2.6+ should work. PyPy works fine too, but takes more than twice as long to run. And Jython is not supported at all. The utility is not perfect & the code i