Closed bmaupin closed 2 years ago
Thank you for your bug report. Your Java version output is wrong, but probably you copy&pasted the wrong block.
Some notes:
help USX3
ParatextConverter
module, which will avoid the conversion to and from BibleMultiConverter's internal formatThat being said, you found a genuine bug in the USFX import, and while importing the file I found another one (ClassCastException for blank paragraphs that are encoded in USFX as <b>
tags). I will push a fix for them shortly.
If you want to try the fixed version, I would suggest that you use
java -jar BibleMultiConverter.jar ParatextConverter USFX fraLSG_usfx.xml USX3 fraLSG_USX #-*.usx
Thank you for your bug report. Your Java version output is wrong, but probably you copy&pasted the wrong block.
Indeed :laughing:
Some notes:
- USX3 export format requires two additional arguments (directory name and filename patten), as documented in
help USX3
- When converting between Paratexts formats, you can usually get better results (i.e. less content dropped, at the expense of a more complex file) when using the
ParatextConverter
module, which will avoid the conversion to and from BibleMultiConverter's internal format- USFX is quite an exotic beast (outside of ebible.org I don't know any users). USFM import is better tested, especially for files that do not conform 100% to the USFM/USFX specification.
- Last but not least, when converting from USFM to USX3, you may also want to try the "official" tool (i.e. Paratext). The "Basic Tier" which is available for free (as in beer, not as in speech) is sufficient for this.
I knew USFX was to be avoided, but there are a lot of Bible sources on ebible.org that are harder to find elsewhere. I found a few at thedigitalbiblelibrary.org as USX files but they only have a small subset. The USFX writeup on ebible.org made it sound like it holds more information than USFM, so I was hoping to retain as much information as possible during the conversion to USX. At any rate the desired output was USX. I guess it would be worth comparing a USFM to USX conversion to a USFX to USX conversion to see if there really is any reason to use the USFX files at all as source files, even for converting.
That being said, you found a genuine bug in the USFX import, and while importing the file I found another one (ClassCastException for blank paragraphs that are encoded in USFX as
<b>
tags). I will push a fix for them shortly.If you want to try the fixed version, I would suggest that you use
java -jar BibleMultiConverter.jar ParatextConverter USFX fraLSG_usfx.xml USX3 fraLSG_USX #-*.usx
Thanks for the tips and the quick fix!
I downloaded this tool and ran the following command:
This was the error I got:
This is the version of java I'm using:
I'll attach the source files to save you some time.
Thanks!