schierlm / BibleMultiConverter

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

Not inserting verse end markers #65

Closed shadow-light closed 2 years ago

shadow-light commented 2 years ago

Some translations I'm converting trigger the following warning:

WARNING: Verse end marker not inserted for verse marker outside normal text: RUT 4:13

For almost every verse, which fills console very quickly. Are you able to confirm it's a problem with the translation's formatting? I wasn't sure what USFM rules it might be breaking if so.

example

schierlm commented 2 years ago

The rules for inferring verse end markers for USX are mere heuristics, as USFM does not encode those markers. Therefore, warnings when the system is unable to infer a good position for the verse end marker are only warnings. For example, verse end markers should usually not be added inside section headings, but before them. Which is impossible if the verse starts and ends within a section heading.

That being said, it is pretty unusual to have verses inside of section headings (even if they are level 5) instead of inside paragraphs. Inserting a \p between every \s5 and the subsequent \v makes the warnings go away.

shadow-light commented 2 years ago

Thanks for explaining. Yes, looks like the need to correct the USFM.