"""Block-level normalization wrappers around utils.text_cleaning.""" from __future__ import annotations from app.utils.text_cleaning import clean_ocr_text, normalize_for_search def normalize_block(text: str) -> tuple[str, str]: """Return ``(display_text, normalized_text)``.""" display = clean_ocr_text(text) norm = normalize_for_search(display) return display, norm