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 = []
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_l = 0
@ -196,7 +196,7 @@ class EynollahXmlWriter():
id_indexer_l = 0
id_of_marginalia = []
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:
xml_reading_order(page, order_of_texts, id_of_texts, found_polygons_marginals)

Loading…
Cancel
Save