pdf-untangle 0.0.1

Untangle garbled PDF text: layout-aware extraction that reconstructs reading order, strips page furniture, and splits documents into structured, citable sections
Documentation
//! Layer 3 — blocks → provisions, driven by a [`Profile`].
//!
//! Applies the profile's heading/history/skip patterns to Layer-2 blocks,
//! assembles provisions, parses effective dates (never-null fallback chain:
//! parsed → document adoption date → sentinel), computes per-provision
//! confidence, and keeps full coverage accounting so silent text loss is
//! impossible (every input line is consumed, skipped-by-rule, or reported).

use anyhow::Result;

use crate::layout::Block;
use crate::output::Document;
use crate::profile::Profile;

/// Detect provisions in reconstructed blocks using `profile`.
pub fn detect(blocks: &[Block], profile: &Profile) -> Result<Document> {
    let _ = (blocks, profile);
    anyhow::bail!("Layer 3 structure detection lands in Phase 3 (see docs/DESIGN.md)")
}