schierlm / BibleMultiConverter

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

Using a Property file to override values in the info table? #88

Closed paul1149 closed 2 months ago

paul1149 commented 2 months ago

I convert theWord Bible modules to MyBibleZone format, and it's been going great. After I do so I use a DB editor to change a few Info values, but I see in my notes that this can be done automatically via a Properties File. But I don't see any note of it here. Could someone point me to where this is explained? Thanks much!

paul1149 commented 2 months ago

Or as an alternative, does anyone know how to include values such as Description in the original theWord module, so they get carried over to the sqlite3 file? Thanks.

schierlm commented 2 months ago

The explanation is indeed only a oneliner in help MyBibleZone output.

The property file follows Java's Properties format (the plaintext one).

The property names are the same as the entries in Info table, and the values can use ${name} to refer to the Bible name, or same syntax ${foo} with different names to refer to any metadata attributes of the bible.

However, TheWord importe does not set any metadata attributes yet (see also #9 ), so currently the only way is to hardcode it like in the following example:

description=The description of the module.
detailed_info=Some more details
paul1149 commented 2 months ago

Ok, thanks. theWord has limited support for attributes, and even the ones that do translate to the MyBibleZone format are not being picked up. So I guess this will remain a manual task.