|
|
@ -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
|
|
|
@ -196,7 +196,7 @@ class EynollahXmlWriter():
|
|
|
|
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)
|
|
|
|