|
I'm looking for some guidance as to the best way to approach something I have in mind.
I already have a pretty good GTK text editor which does a lot of autocorrection and permits manual correction for OCR'd text. The texts in question range from 80 to 800 thousand words or so, with the average towards the bottom end.
What I want to do is arrange a split screen wherein one half is the text window I already have (though it will need changes) and the other window contains a graphical image of the text - the scanned original. The image is available in a single TIFF file with individual pages therein in (presumably) TIFF bitmap formats. The OCR program I use produces an XML file which includes the bounding rectangle for each rectangle; it seems to me that I ought to be able to draw on an image a marker for the current line (one issue with the OCR is that it occasionally ignores a line, for example, so I'd want to be able to mark out on a page everywhere that there isn't text, so to speak). It would obviously be helpful if the graphics window could zoom...
I think that all these parts are available in GTK+ - GTK2 at present - but I've never done any graphics work with it so I have no idea where to start...
Any help gratefully received!
Thanks,
Neil
|