- Update api.rs to use ocr_regions::render_ocr_regions instead of local function - Remove local render_ocr_layer function (no longer needed) - Remove obsolete test_render_ocr_layer test - Stage ocr_regions.rs module with comprehensive implementation The OCR regions renderer provides cyan diagonal-stripe overlays for text spans extracted via OCR (Tesseract), distinguishing them from vector-text spans. Implementation includes: - SVG pattern definition for 45° cyan diagonal stripes - Per-span overlay rects with data-* attributes for tooltip consumption - Comprehensive test coverage in ocr_regions.rs module - CSS class 'ocr-region-rect' for frontend toggling Acceptance criteria: ✓ Helper compiles and produces valid SVG output ✓ Layer is independently toggleable via CSS class ✓ data-* attrs populated for downstream UI consumption ✓ Performance: string-based rendering for efficiency References: Phase 7.9.5, Coordinator pdftract-liq5f |
||
|---|---|---|
| .. | ||
| benches | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| header | ||
| pdftract-cli.cdx.json | ||