table of contents
DJVU2HOCR(1) | djvu2hocr manual | DJVU2HOCR(1) |
NAME¶
djvu2hocr - DjVu to hOCR converter
SYNOPSIS¶
djvu2hocr [option...] djvu-file
djvu2hocr {--version | --help | -h}
DESCRIPTION¶
djvu2hocr converts hidden text from a DjVu file to the hOCR[1] format.
OPTIONS¶
Input selection options¶
-p, --pages=page-range
The default is to convert all pages.
Text segmentation options¶
--word-segmentation=simple
This is the default.
--word-segmentation=uax29
HTML output options¶
--title=title
The default is “DjVu hidden text layer”.
--css=style
For example, --css='.ocrx_line { display: block; }' can be used to visually preserve line breaks.
Other options¶
--version
-h, --help
PORTABILITY¶
djvu2hocr uses a custom extension to hOCR to retain characters which cannot be directly represented in an HTML/XML document. For example, control character BEL (^G, U+0007), is converted into the following HTML chunk: <span class="djvu_char" title="#x07"> </span>
BUGS¶
Please report bugs at: https://github.com/jwilk/ocrodjvu/issues
SEE ALSO¶
djvu(1), hocr2djvused(1), ocrodjvu(1)
NOTES¶
- 1.
- hOCR
- 2.
- Unicode Text Segmentation
2019-02-06 | ocrodjvu 0.11 |