mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Set hOCR capabilities ocrp_dir and ocrp_lang unconditionally
Both `dir` and `lang` are also written if no font information was requested. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ecf0622a85
commit
215b023c43
@ -512,9 +512,9 @@ bool TessHOcrRenderer::BeginDocumentHandler() {
|
||||
" <meta name='ocr-system' content='tesseract " TESSERACT_VERSION_STR
|
||||
"' />\n"
|
||||
" <meta name='ocr-capabilities' content='ocr_page ocr_carea ocr_par"
|
||||
" ocr_line ocrx_word ocrp_wconf");
|
||||
" ocr_line ocrx_word ocrp_dir ocrp_lang ocrp_wconf");
|
||||
if (font_info_) {
|
||||
AppendString(" ocrp_lang ocrp_dir ocrp_font ocrp_fsize");
|
||||
AppendString(" ocrp_font ocrp_fsize");
|
||||
}
|
||||
AppendString(
|
||||
"'/>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user