Skip to content

reading order: WORD-based vs. top-level based #24

Description

@bertsky

The current implementation extracts the ReadingOrder from the top-level parents of all WORD blocks (in the order of these word blocks). This seems to be necessary for cases with TABLE results.

However, for LAYOUT_* blocks, the results look much better if the top-level blocks are directly taken as the order – as implemented in #23.

For example, here is how both implementations compare:

current (WORD-based) #23 (top-level based)
sn1991-02-09_pr_0002 ro_word small sn1991-02-09_pr_0002 ro_top-level small
Ansiedlung_Korotschin_UZS_Sign_22a_0018 ro_word Ansiedlung_Korotschin_UZS_Sign_22a_0018 ro_top-level
nd1969-01-21_3 ro_word small nd1969-01-21_3 ro_top-level small

The first page is a typical newspaper page (added to the tests in #23) and shows how #23 is better.

The 2nd and 3rd example are taken from the test suite. The 2nd shows that the current implementation is better, because #23 places the table after all the other regions.

In the 3rd example (nd1969 test case) has AWS results which obviously look bad either way, with 2 false tables and many highly overlapping column regions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions