reading order: fix @index

pull/28/head
Konstantin Baierer 4 years ago
parent 02aa31cc66
commit 6c60d9e90a

@ -50,6 +50,7 @@ def xml_reading_order(page, order_of_texts, id_of_texts, id_of_marginalia):
name = ET.SubElement(region_order_sub, 'RegionRefIndexed')
name.set('index', str(region_counter.get('region')))
name.set('regionRef', region_counter.region_id(order_of_texts[idx_textregion]))
region_counter.inc('region')
for id_marginal in id_of_marginalia:
name = ET.SubElement(region_order_sub, 'RegionRefIndexed')
name.set('index', str(region_counter.get('region')))

Loading…
Cancel
Save