pdftract/crates/pdftract-cli
jedarden 0fd1ac7041 feat(pdftract-21wci): integrate OCR regions renderer into inspector API
- 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
2026-05-31 23:54:14 -04:00
..
benches feat(pdftract-3h9xo): implement threads JSON output + schema integration 2026-05-25 13:40:15 -04:00
src feat(pdftract-21wci): integrate OCR regions renderer into inspector API 2026-05-31 23:54:14 -04:00
tests test(pdftract-5kqbl): fix TH-08 log audit test 2026-05-31 15:51:34 -04:00
build.rs feat(pdftract-1t5sj): implement book_chapter profile with fixtures and tests 2026-05-27 22:30:09 -04:00
Cargo.toml feat(profiles): add profile infrastructure and initial fixtures 2026-05-31 15:10:51 -04:00
header chore(pdftract-36glh): remove unused JpxDecoder import and add verification note 2026-05-28 05:23:13 -04:00
pdftract-cli.cdx.json feat(pdftract-67tm8): implement MCP stdio transport with integration tests 2026-05-23 00:16:42 -04:00