schierlm / BibleMultiConverter

Converter written in Java to convert between different Bible program formats
Other
124 stars 33 forks source link

Bible name not found #71

Closed MichaelJgit closed 1 year ago

MichaelJgit commented 1 year ago

In attempting to convert an .odt file to .usx, I received the following error:

java -jar .\BibleMultiConverter-AllInOneEdition.jar RoundtripODT "C:\temp\Sovereign Creator has Spoken - Pickering 2016.odt" USX c:\temp\output\sov.usx Exception in thread "main" java.io.IOException: Bible name not found! at biblemulticonverter.format.RoundtripODT.fromContentXml(RoundtripODT.java:270) at biblemulticonverter.format.RoundtripODT.doImport(RoundtripODT.java:255) at biblemulticonverter.Main.main(Main.java:66)

What is it looking for in the input file for Bible name? Thanks, Mike

schierlm commented 1 year ago

Can you tell me where you obtained the ODT file from? The Roundtrip... formats are intended that you convert an existing Bible text to that format, then edit it in e.g. LibreOffice, then convert it back or to another format.

RoundtripODT uses style templates to mark bible name, chapter and verse numbers etc. Convert an existing Bible to this format and you will see how it works.

For converting any pre-existing version of Pickering 2016 to USX; I would start with the USFM (or USFX) download available at https://ebible.org/details.php?id=engf35

MichaelJgit commented 1 year ago

Hi Michael,

Thank you for the clarification. I received the ODT file from the author of the translation, Dr. Pickering. Looking at the files for the site you referenced, the USFM version is broken up into separate usfm files for each book. The USFX has a series of xml files, with the principal file being the entire NT. Would I provide the zip file as input to BibleMultiConverter, a directory path to the unzipped set of files, or simply the principal xml file?

For instance, java -jar .\BibleMultiConverter-AllInOneEdition.jar USFX "C:\temp\engf35_usfx.xml" USX c:\temp\output\sov.usx

My goal is to provide a USX file for eSword & YouVersion.

Unfortunately, the eBible.org files are the 2nd edition and Dr. Pickering has published a 3rd edition. I'll have to see if he can provide the USFX files for the 3rd edition as well.

Blessings, Mike

From: Michael Schierl @.> Sent: Monday, September 19, 2022 2:52 PM To: schierlm/BibleMultiConverter @.> Cc: MichaelJgit @.>; Author @.> Subject: Re: [schierlm/BibleMultiConverter] Bible name not found (Issue #71)

Can you tell me where you obtained the ODT file from? The Roundtrip... formats are intended that you convert an existing Bible text to that format, then edit it in e.g. LibreOffice, then convert it back or to another format.

RoundtripODT uses style templates to mark bible name, chapter and verse numbers etc. Convert an existing Bible to this format and you will see how it works.

For converting any pre-existing version of Pickering 2016 to USX; I would start with the USFM (or USFX) download available at https://ebible.org/details.php?id=engf35https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Febible.org%2Fdetails.php%3Fid%3Dengf35&data=05%7C01%7C%7Cea80dd97f91e42b5ae0008da9a787a55%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637992139496269755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TGQfLWZZcvAqaSeI0Mh37mv%2F60ctl66Z1zW9AREgS%2Fk%3D&reserved=0

- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fschierlm%2FBibleMultiConverter%2Fissues%2F71%23issuecomment-1251477195&data=05%7C01%7C%7Cea80dd97f91e42b5ae0008da9a787a55%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637992139496269755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lJUC2evMg0mV7PEgClQ05vZ5Hu7lxmElY7xDVHD4s2w%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3EXVNOG2K333G7WFVBVAUDV7C77NANCNFSM6AAAAAAQPVXCUE&data=05%7C01%7C%7Cea80dd97f91e42b5ae0008da9a787a55%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637992139496269755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9P96iGV8N9tRg3Oah04PrwErvxdq8%2FBd%2B8QwmG7kwL0%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.**@.>>

schierlm commented 1 year ago

I would suggest to unzip the USFM version and point BibleMultiConverter to the resulting directory. Which is also mentioned in java -jar BibleMultiConverter-AllInOneEdition.jar help USFM

If the text is indeed newer edition and has been manually edited, expect a lot of manual work. In my experience, Word and ODT versions are the worst (as they tend to include hidden details and subtly different formatting). Any structured format (like US* or Zefania XML or even one verse per line as a text file) tend to be easier to import. And when there are only unstructured formats available, with HTML or EPUB you can at least search and replace tags until you get it to a format that can be converted (Still a lot of manual work).

MichaelJgit commented 1 year ago

Thank you!

From: Michael Schierl @.> Sent: Monday, September 19, 2022 4:06 PM To: schierlm/BibleMultiConverter @.> Cc: MichaelJgit @.>; Author @.> Subject: Re: [schierlm/BibleMultiConverter] Bible name not found (Issue #71)

I would suggest to unzip the USFM version and point BibleMultiConverter to the resulting directory. Which is also mentioned in java -jar BibleMultiConverter-AllInOneEdition.jar help USFM

If the text is indeed newer edition and has been manually edited, expect a lot of manual work. In my experience, Word and ODT versions are the worst (as they tend to include hidden details and subtly different formatting). Any structured format (like US* or Zefania XML or even one verse per line as a text file) tend to be easier to import. And when there are only unstructured formats available, with HTML or EPUB you can at least search and replace tags until you get it to a format that can be converted (Still a lot of manual work).

- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fschierlm%2FBibleMultiConverter%2Fissues%2F71%23issuecomment-1251546875&data=05%7C01%7C%7Cf8ba20a5679843d3c41108da9a82bb96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637992183533573941%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oWwSwZrNaLFxZUMuPR8ZdUzMNUq%2BrtI57cdP3m3WG4U%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3EXVNNDCINKCYGP6E35RK3V7DISXANCNFSM6AAAAAAQPVXCUE&data=05%7C01%7C%7Cf8ba20a5679843d3c41108da9a82bb96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637992183533573941%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Rt8FMu2SA%2FvNNi906%2BEeq%2BWyL5BHcCEMegqEuG2iOmc%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.**@.>>