Closed Michahel closed 3 years ago
I did not believe how hard it is to debug errors in handling text that contains characters where you do not even know how to pronounce them. I had to replace the words by random English/Latin ones just to be able to quickly grasp what was going on.
When importing Paratext formats (USFM/USX) and there is a headline directly before a paragraph starting a verse, the headline should become part of that next verse and not the previous one (at least most Non-paratext formats like to treat it like that).
So, in (USFM)
\p \v 1 FirstVerse
\s1 Headline
\p \v 2 SecondVerse
the Headline should belong to verse 2 and should look like this in OnLineBible:
$$$ Ge 1:1
FirstVerse
$$$ Ge 1:2
{\$Headline\$} SecondVerse
However, this logic went wrong in case the second paragraph contains parts of the previous verse and at least one new verse:
\p \v 1 FirstVerse
\s1 Headline
\p DidNotEndYet \v 2 SecondVerse
Was converted as if it was
\p \v 1 FirstVerse
\s1 Headline DidNotEndYet
\p \v 2 SecondVerse
Also, when exporting to OnLineBible, a flag in BibleMultiConvertor's verse mapping logic (required to join verses if they fall outside of KJV versification) accidentally split up verses if they had a headline in the middle. This logic was removed since I don't believe it is needed for OnLineBible. Should be fixed now.
When trying to convert USX to Online Bible format, I am getting a following invalid conversion:
Before (Input File):
After (Output File):
In Mt 12:15, the text
Узнав об этом, Иса ушёл из тех мест.
became part of the footnote. In addition, two footnotes escaped from verse 14 to verse 15. It should be like this:The command I am running is
java -jar BibleMultiConverter.jar USX N:\Bibles\CARS\Text OnLineBible N:\Bibles\CARS\CARS.Exp
In the directory N:\Bibles\CARS\Text I put the file MAT.usx. I send MAT.usx as an attachment to trace it yourself: MAT.zip