Ein klein bug gefixt

pull/28/head
vahidrezanezhad 4 years ago committed by GitHub
parent 9f5e4af5f0
commit 6b2a6588fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -141,7 +141,7 @@ class EynollahXmlWriter():
id_of_marginalia = [] id_of_marginalia = []
for idx_marginal, _ in enumerate(found_polygons_marginals): for idx_marginal, _ in enumerate(found_polygons_marginals):
id_of_marginalia.append('r%s' % len(order_of_texts) + idx_marginal) id_of_marginalia.append('r%s' % (len(order_of_texts) + idx_marginal) )
id_indexer = 0 id_indexer = 0
id_indexer_l = 0 id_indexer_l = 0
@ -191,12 +191,12 @@ class EynollahXmlWriter():
page_print_sub = ET.SubElement(page, "Border") page_print_sub = ET.SubElement(page, "Border")
coord_page = ET.SubElement(page_print_sub, "Coords") coord_page = ET.SubElement(page_print_sub, "Coords")
coord_page.set('points', self.calculate_page_coords(cont_page)) coord_page.set('points', self.calculate_page_coords(cont_page))
id_indexer = 0 id_indexer = 0
id_indexer_l = 0 id_indexer_l = 0
id_of_marginalia = [] id_of_marginalia = []
for idx_marginal, _ in enumerate(found_polygons_marginals): for idx_marginal, _ in enumerate(found_polygons_marginals):
id_of_marginalia.append('r%s' % len(order_of_texts) + idx_marginal) id_of_marginalia.append('r%s' % ( len(order_of_texts) + idx_marginal) )
if len(found_polygons_text_region) > 0: if len(found_polygons_text_region) > 0:
xml_reading_order(page, order_of_texts, id_of_texts, found_polygons_marginals) xml_reading_order(page, order_of_texts, id_of_texts, found_polygons_marginals)

Loading…
Cancel
Save