Commit fe47a95
committed
Keep top-of-column section headings from being dropped as running headers
The raw-line running-furniture filter treated the whole top ~25% band as header candidates and removed repeating lines before block building, so a "SECTION 1/2/4" heading at the top of a column on a recurring page layout (us_constitution p5/p7/p8/p13/p15) was deleted as a phantom running header -- leaving no element and no bounding box. Tighten the line-level header band to the top 10% (LineHeaderBottomRatio = 0.90); the broader element-level repeating-furniture detector still runs after classification as the real backstop. Adds a regression test asserting those section headings keep positive-area bounding boxes.1 parent b302e90 commit fe47a95
2 files changed
Lines changed: 41 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
90 | 108 | | |
91 | 109 | | |
92 | 110 | | |
| |||
96 | 114 | | |
97 | 115 | | |
98 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
99 | 129 | | |
100 | 130 | | |
101 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
2029 | 2036 | | |
2030 | 2037 | | |
2031 | 2038 | | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
2035 | 2042 | | |
2036 | 2043 | | |
2037 | 2044 | | |
| |||
2042 | 2049 | | |
2043 | 2050 | | |
2044 | 2051 | | |
2045 | | - | |
| 2052 | + | |
2046 | 2053 | | |
2047 | 2054 | | |
2048 | 2055 | | |
| |||
0 commit comments