Merge pull request #1466 from 0dinD/fix-hocr-caption

This commit is contained in:
jbarlow
2025-02-06 00:38:59 -08:00
committed by GitHub
+1 -1
View File
@@ -210,7 +210,7 @@ class HocrTransform:
for element in par.iterfind(self._child_xpath('span'))
if 'class' in element.attrib
and element.attrib['class']
in {'ocr_header', 'ocr_line', 'ocr_textfloat'}
in {'ocr_header', 'ocr_line', 'ocr_textfloat', 'ocr_caption'}
):
found_lines = True
direction = self._get_text_direction(par)