Skip to content

Commit

Permalink
Set hOCR capabilities ocrp_dir and ocrp_lang unconditionally
Browse files Browse the repository at this point in the history
Both `dir` and `lang` are also written if no font information
was requested.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Aug 11, 2024
1 parent ecf0622 commit 3c416ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/hocrrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3c416ad

Please sign in to comment.