pub enum ColumnMode {
Auto,
Two,
Single,
}Expand description
Build a StructuredPage from reading-order spans + page dimensions.
Column-detection mode for build_structured_page_with_mode (Fix 3). The
geometric column split is heuristic — ISO 32000-1:2008 defines
no reading order for untagged content (§14.8.2.3) — so a consumer who knows
their layout may override the heuristic. This override applies only to the
geometric (Tier-3) path; it never overrides a trustworthy structure tree.
Variants§
Auto
Detect two-column bodies heuristically (the default).
Two
Force a two-column split: use the detected gutter, or the page midpoint when no clean gutter is found. For consumers who know the page is two-column (e.g. reference editions whose short, ragged lines the heuristic is conservative about).
Single
Treat the whole page as a single column — suppress all column detection
(column_index stays None).