Commit 50a5deb
committed
Measure the page's median font over text, not over blocks
The median font of a page is meant to say how big ordinary body text is;
every header heuristic is stated as a multiple of it. It was taken over
blocks, one vote each, so a crowd of tiny figure labels and axis ticks
outvoted the body. 10890106 lands on 6.1pt against a 72pt title, which
makes "title font" (1.4x median = 8.5pt) true of every block on the
poster: the test says nothing at all there. Weighting each block by its
length measures the body, which is what the multiples were chosen
against.
This is the root cause behind three patches attempted and rejected first
(all in the history, none worth re-running blind): admitting large
top-zone text as title fragments, scaling the block-gap threshold to
local line height, and keeping banner furniture out of col_start. The
last one is the tell - it made 10890106 WORSE, because a tight col_start
was the only thing holding a meaningless title-font test in check.
Widening the cutoff let the byline and legend become headers too. Fixing
the measure removes the need to compensate for it.
10890106 Study design 0.595 to 0.962, and its rField finally moves
(+0.029) after several attempts that could not touch it. 4552067 +0.096,
gasimova +0.013. Against that AISec2025 gives up 0.038, on a GT section
labelled "Conclusion" that holds a GitHub repo name, its URL and a
figure caption; the repo name now heads its own block, away from the
URL. Corpus rField 0.737 to 0.741 (0.729 at session start), w 0.976,
rGlobal 0.835, 20/21, 12/13 numbered, 13/13 logic-OK, suite green (260
passed), every affiliation string in the corpus unchanged and verified.
Unchanged: gasimova's title (0.706), whose cause is _flatten_top_band
dissolving a real two-column banner, not this measure.1 parent 317d8a9 commit 50a5deb
2 files changed
Lines changed: 26 additions & 16 deletions
Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
1023 | | - | |
| 1023 | + | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | | - | |
| 1028 | + | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | | - | |
| 1043 | + | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
| 1048 | + | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
| 1181 | + | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | 1184 | | |
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | | - | |
| 1220 | + | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | | - | |
| 1225 | + | |
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
931 | | - | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
932 | 942 | | |
933 | 943 | | |
934 | 944 | | |
| |||
0 commit comments