diff --git a/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py b/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py index 3e47b51..82500aa 100644 --- a/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py +++ b/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py @@ -48,8 +48,11 @@ class RepairInconsistencies(Processor): Label=[LabelType(type_=name, value=self.parameter[name]) for name in self.parameter.keys()])])) - - regions = page.get_TextRegion() + + regions = [] + regions.extend(page.get_TextRegion()) + for special_region in page.get_TableRegion() + page.get_GraphicRegion(): + regions.extend(special_region.get_TextRegion()) for region in regions: textLineOrder = 'top-to-bottom'