[sword-devel] A call for Python programmers ...
Barry Drake
bdrake at crosswire.org
Wed Dec 31 05:00:25 MST 2014
On 31/12/14 09:20, David Haslam wrote:
> For USFM see http://paratext.org/about/usfm
The PDF usfm spec is at:
http://paratext.org/system/files/usfmReference2_4.pdf I think CHM is
only of use in Microsoft Windows - am I right?
I've been following the comments about usfm2osis.py. I agree that more
information on errors would help a lot. The current error I'm getting is:
Validating XML...
XML Validation error: Element
'{http://www.bibletechnologies.net/2003/OSIS/namespace}verse', attribute
'osisID': [facet 'pattern'] The value '1Kgs.3.36)' is not accepted by
the pattern
'(((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?:)?((\p{L}|\p{N}|_|(\\[^\s]))+)((\.(\p{L}|\p{N}|_|(\\[^\s]))+)*)?(!((\p{L}|\p{N}|_|(\\[^\s]))+)((\.(\p{L}|\p{N}|_|(\\[^\s]))+)*)?)?'.
Done!
Apart from the fact that the error is somewhere in the 1 Kings usfm
file, I get no help at all. '1Kgs.3.36)' appears several time in the
generated osis file, but I get no clues at all from reading it. The
suggestion of outputting a bit of additional information such as line
numbers etc. in error messages, would be greatly valued.
Regards, Barry.
More information about the sword-devel
mailing list