The current version ignores the H1-H5 headers that were added by user. But when book was translate text from chapter 1 will be translate as a chapter 1 text into another language.
You can use this fact and split a big text to small parts.
Next idea - try split a big text to small blocks automatically:
Select a few sentences from original text(for example 10 sentences) and using loop try to find translate block in the thanslated text.
The current version ignores the H1-H5 headers that were added by user. But when book was translate text from chapter 1 will be translate as a chapter 1 text into another language. You can use this fact and split a big text to small parts.
Next idea - try split a big text to small blocks automatically: Select a few sentences from original text(for example 10 sentences) and using loop try to find translate block in the thanslated text.
You can use the next psedocode: