mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 04:09:54 +02:00
Ein klein bug gefixt
This commit is contained in:
parent
9f5e4af5f0
commit
6b2a6588fa
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue