From 3c416ad5e9136e6a99da2e07541a46c7a16d0bef Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 11 Aug 2024 18:08:12 +0200 Subject: [PATCH] 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 --- src/api/hocrrenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/hocrrenderer.cpp b/src/api/hocrrenderer.cpp index ea9d7cef40..3410338efa 100644 --- a/src/api/hocrrenderer.cpp +++ b/src/api/hocrrenderer.cpp @@ -512,9 +512,9 @@ bool TessHOcrRenderer::BeginDocumentHandler() { " \n" " \n"