Python 3 support and added Markdown Document generator
The following Merge Request (MR) has been forwarded from GitHub in order to prevent the GNOME Project from losing contributions coming from un-official channels. And for contributors to not see their valuable contributions not being accounted for.
Relevant information:
Github handle: Zurga
MR URL: https://github.com/GNOME/ocrfeeder/pull/3
Patch URL: https://github.com/GNOME/ocrfeeder/pull/3.patch
Body of the MR:
I did a 2to3 on the code in src and fixed bugs manually. I have not exhaustively checked for bugs, but opening a project, pdf, image and exporting it seems to work. The lack of tests make it hard to check whether I broke things or not.
In the utils/graphics.py I changed the PixBuffToImage method which was slow in Python3.
Could you create a branch to merge this request into if you want to accept it? I can then create a new pull request.
My earlier commits represent a fix I made to the exporter code that did not update the data_boxes OCR'd text when exporting. Now the exporter OCR's every box on every page again.
I also added a crude Markdown document generator that includes the images in a seperate directory, akin to the HTML document generator.