pdftract/crates/pdftract-cli
jedarden 8798501d8c feat(pdftract-4k1x4): complete Phase 4 Text Assembly and Layout
All 7 sub-phases (4.1-4.7) are now fully implemented:
- 4.1 Glyph to Span Merging: grouping consecutive glyphs into spans
- 4.2 Line Formation: baseline clustering and direction detection
- 4.3 Column Detection: histogram-based gap analysis
- 4.4 Block Formation: paragraph/heading/list/table/caption/figure/code classification
- 4.5 Reading Order: XY-cut algorithm with Docstrum fallback
- 4.6 Output Serialization: plain text projection with configurable filters
- 4.7 Text Readability: composite scoring and correction pipeline

Closes pdftract-4k1x4. Verification: notes/pdftract-4k1x4.md.

Changes:
- extract.rs: integrate Phase 4 modules into main pipeline
- layout/correction.rs: expand correction pipeline with 2048 lines of tests
- layout/readability.rs: five-signal scoring with char-weighted median
- text.rs: plain text serialization with page breaks and filters
- span/mod.rs: Span struct with flags and confidence tracking
- layout/columns.rs: column assignment to lines and spans

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 09:09:37 -04:00
..
benches feat(pdftract-3h9xo): implement threads JSON output + schema integration 2026-05-25 13:40:15 -04:00
examples fix(pdftract-39gey): fix indent trigger to not split drop-cap paragraphs 2026-06-07 13:43:19 -04:00
src feat(pdftract-4k1x4): complete Phase 4 Text Assembly and Layout 2026-06-08 09:09:37 -04:00
tests test(pdftract-5kqbl): fix TH-08 log audit test 2026-05-31 15:51:34 -04:00
-.json feat(pdftract-4k1x4): complete Phase 4 Text Assembly and Layout 2026-06-08 09:09:37 -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 fix(bf-1avnz): remove .code field access on String diagnostics in serve.rs 2026-06-01 04:14:05 -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