I've been playing around with Linux OCR software, and I really like Tesseract, especially in conjunction with gsan2pdf. Tesseract v3 or greater supports outputting in the hocr format, and gscan2pdf is able to make use of that in order to create searchable pdf's of scanned documents.
Sometimes, however, I would also like to get the plain text version as well. pdftotext on the searchable pdf generated by gscan2pdf as described above is not so great for that as even with the -raw option, the layout of the output doesn't copy the original physical layout well. I can set up a user-defined command in gscan2pdf that will call tesseract on the original scanned image without the hocr option so that only plain text is generated, however ocr happens to be quite time-consuming to do it twice for each page. Isn't there a working way to convert from hocr to plain text (with the same layout as the one generated by tesseract when invoked without the hocr option) or a way to make tesseract output both plain text and hocr at the same time?
https://github.com/jbrinley/HocrConverter looks promising, but it doesn't work for me.