Commit f88efbf
feat(pdf): band-aware reading order for two-column pages
Full-width regions (title, wide figures/tables spanning most of the page) now
break the two-column flow into horizontal bands: within a band the left column
reads fully then the right, and a full-width region reads after the band above it
and before the band below. Previously a full-width title was assigned to a column
by its center and emitted in the middle of the page (the DocLayNet title landed
12th instead of first).
Band break requires spanning >70% of the width (a merely wide column region
doesn't count), which keeps it from mis-ordering dense layouts. Net −12 diff-lines
(normal_4pages 86→78, right_to_left_03 70→66, 2206 276→274); the 4 exact PDFs are
unchanged. The table papers remain dominated by finer reading-order + table-content
differences.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent dee04c5 commit f88efbf
1 file changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
76 | 103 | | |
77 | 104 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 105 | + | |
| 106 | + | |
81 | 107 | | |
82 | 108 | | |
83 | 109 | | |
| |||
0 commit comments