Normalize HTML Document

This function analyzes an HTML document line-wise, groups lines into text blocks, and categorizes these text blocks. Afterward, it opens a series of dialogs in which you can manually check the analysis result. In particular, each line has one of the following categories, whose correct assignment you get to check and correct:

After you have checked the line categorization, the function normalizes the text. In particular, this means