schierlm/BibleMultiConverter

Help with versification

WJSwan1945 opened this issue · 4 comments

Good day,
I need some help with how to convert a USFM bible to theWord. The versification of the Bible is different to the KJV.
I have a file Afr20.bmcv With records in format: book c:v/book c:v. Eg. Ps 3:4/Ps 3:3, meaning that in the Bible I am converting Ps3:4 corresponds to Ps 3:3 in the KJV. I attach it as Afr20.txt.

My USFM Bible resides in directory C:\Afr20\Raw

What are the steps I need and what would my commands for BibleMultiConverter.jar look like?

I apologize for my naivety!
Afr20.txt

Hello,

No need to apologize at all, the versification support in BibleMultiConverter is not the best and I also first had to think for a while how to get your text file easiest into a supported versification format. (It is not a .bmcv file, so probably best name it .txt not to get confused).

The format I'd use is CCEL, as it is the most similar to your text file and is the only supported format which will automatically fill the bible with "identity mappings" for all verses that exist in both versifications and do not have a mapping defined. However, it is XML, and verse references (including book names) follow OSIS conventions, so you will need to edit your file slightly that it looks like this:

  <refMap from="Afr20" to="KJV">
     <map from="Exod.5.24" to="Exod.6.1" />
     <map from="Exod.6.1" to="Exod.6.2" />
     <map from="Exod.6.2" to="Exod.6.3" />
     [...]
  </refMap>

I would then convert the USFM Bible to Diffable format, as this is an intermediary format which can be parsed quickly and does not lose any information (at least in your case where the destination format is not a Paratext format):

java -jar BibleMultiConverter.jar USFM c:\Afr20\Raw Diffable Afr20.bbl

Then, create a verse list from that bible and store into db1.bmcv file, to then export as CCEL into Afr20.ccel.xml:

java -jar BibleMultiConverter.jar Versification db1.bmcv import Bible Diffable Afr20.bbl Afr20 VERSES
java -jar BibleMultiConverter.jar Versification db1.bmcv export CCEL afr20.ccel.xml Afr20

Now open afr20.ccel.xml in a text editor, and before the final line </refSys> add your RefMap. db1.bmcv is no longer needed.

Create the final afr20.bmcv file by first importing the KJV versification (built into BibleMultiConverter) and then importing the Afr20 versification and mapping from the CCEL file.

java -jar BibleMultiConverter.jar Versification afr20.bmcv import KJV
java -jar BibleMultiConverter.jar Versification afr20.bmcv import CCEL afr20.ccel.xml

You can now list the contents of your bmcv file and verify if your versification indeed covers all the verses in your input versification:

java -jar BibleMultiConverter.jar Versification afr20.bmcv list

Next I'd have a look at the options of VersificationMappedDiffable format and decide which suit you best:

java -jar BibleMultiConverter.jar help VersificationMappedDiffable

A possible way to proceed now would be:

java -jar BibleMultiConverter.jar Diffable Afr20.bbl VersificationMappedDiffable Afr.KJV.bbl afr20.bmcv Afr20/KJV ShowNumbers
java -jar BibleMultiConverter.jar Diffable Afr20.KJV.bbl TheWord Afr20.ont

Hope this helps. If anything is unclear, feel free to ask.

(May I ask if your versification .txt file has some particular source and more files of that format exist? In that case, it might make sense to add an importer of that format to BibleMultiConverter so that you just need to import both versifications into the db file (so the program knows which verses exist that need to be unmapped) and then import that text file into the db file, skipping the ccel export and re-import.)

Your command line is missing at least an output file name.

See also java -jar BibleMultiConverter.jar help Accordance and https://github.com/schierlm/BibleMultiConverter#accordance-export for some more Accordance export options. For example, you can convert footnotes to italic or colored text in parentheses (you won't get real footnotes), or convert footnote marks to superscript numbers and put the actual footnote text at the end of the verse..