|
|
@ -124,7 +124,6 @@ def test_page_order():
|
|
|
|
def test_page_mixed_regions():
|
|
|
|
def test_page_mixed_regions():
|
|
|
|
# This file contains ImageRegions and TextRegions in the ReadingOrder
|
|
|
|
# This file contains ImageRegions and TextRegions in the ReadingOrder
|
|
|
|
tree = ET.parse(os.path.join(data_dir, 'mixed-regions.page.xml'))
|
|
|
|
tree = ET.parse(os.path.join(data_dir, 'mixed-regions.page.xml'))
|
|
|
|
with pytest.warns(UserWarning, match=r'Not a TextRegion'):
|
|
|
|
|
|
|
|
result = page_text(tree)
|
|
|
|
result = page_text(tree)
|
|
|
|
|
|
|
|
|
|
|
|
assert 'non exaudiam uos. Chriſtiani uero quia orant iuxta' in result
|
|
|
|
assert 'non exaudiam uos. Chriſtiani uero quia orant iuxta' in result
|
|
|
|