mirror of
https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
synced 2025-06-09 03:40:06 +02:00
✨ Report missing reading direction/textline order
This commit is contained in:
parent
e8d6845e74
commit
1c44a198af
1 changed files with 5 additions and 3 deletions
|
@ -38,9 +38,11 @@ class RepairInconsistencies(Processor):
|
||||||
|
|
||||||
for region in regions:
|
for region in regions:
|
||||||
if region.readingDirection != 'left-to-right':
|
if region.readingDirection != 'left-to-right':
|
||||||
raise NotImplementedError
|
LOG.info('Not processing region "%s" (not left-to-right)', region.id)
|
||||||
if region.textLineOrder != 'top-to-bottom':
|
continue
|
||||||
raise NotImplementedError
|
if len(region.get_TextLine()) > 1 and region.textLineOrder != 'top-to-bottom':
|
||||||
|
LOG.info('Not processing region "%s" (not top-to-bottom)', region.id)
|
||||||
|
continue
|
||||||
|
|
||||||
_fix_lines(region)
|
_fix_lines(region)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue