Open vi opened 10 years ago
Great idea; know of any utilities that parse .djvu?
Maybe djvutxt
?
DJVUTXT(1) DjVuLibre-3.5 DJVUTXT(1)
NAME
djvutxt - Extract the hidden text from DjVu documents.
SYNOPSIS
djvutxt [options] inputdjvufile [outputtxtfile]
If there is no text chunk in djvu, the same OCR approach as with other pictures can be applied.
Sounds great. Want to work up a pull request? The doc_parser.py module should be a good starting point for this functionality.
I'm not sure if you've gotten started on this yet, but I just thought I'd mention that I merged #39 which now switches to using a class-based set of parsers instead of the function based stuff that existed in v0.5.1. Have a look at the current parsers—especially textract.parsers.doc_parser
—and let me know if you have any questions!
Not started, just keeping this tab open; Feel free to begin the development of this feature yourself.
I'll write here if/when I decide to try implementing a patch for this.
(actually I haven't cloned "textract" yet)
OK, sounds good. I've never come across .djvu files myself so I probably won't develop it anytime soon. Its a great idea though.
There can be text information embedded in djvu documents.