Enable specifying a config file. If a config file is specified, see if hocr output is enabled. If so, we also generate the text file from the hocr output, and back annotate the hocr output with word positions in HTML data attributes.

Add dependency on nokogiri

Clean the hOCR text, and save the images in hOCR mode.

Parse XHTML hOCR output with XML parser

fix bug in calculation of relative text position