Skip to content

refactor: separate Flash PDF inline evidence processing - #42

Merged
myhloli merged 1 commit into
nextfrom
codex/flash-pdf-05-inline
Sep 5, 2026
Merged

myhloli merged 1 commit into
nextfrom
codex/flash-pdf-05-inline

Conversation

@myhloli

@myhloli myhloli commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Motivation

A single module mixes evidence types, font/decorative/link detection, script classification, text projection and InlineSpan materialization; several primitive implementations are duplicated.

Modification

Split inline processing into explicit type, common, detection, script, matching and materialization modules. Keep the existing facade and migrate internal consumers to owners. Share identical font normalization, table-local geometry and sparse-table primitives without merging different geometry-validation policies.

This is stage 5/6 of the Flash PDF equivalence refactor, based on codex/flash-pdf-04-lifecycle. Review and integrate stages in order.

Validation

31 documents / 298 pages remain completely equivalent. 285 focused tests pass across text styles, native tables, pipeline and architecture. pdftext 0.6.3 compatibility is also verified in the completed stack.

The original test_demo_sparse_table_confidence_manifest bbox expectation failure is documented separately and its expected data is not modified.

Compatibility

The existing PdfModel.predict(), PDFDocument methods, ModelJson/MiddleJson output and renderer contracts remain unchanged. Recognition thresholds, candidate priority and fallback behavior are preserved.

Checklist

  • Relevant Ruff checks and git diff --check pass.
  • Focused regression and complete corpus output comparisons recorded.
  • New functions have Chinese docstrings and explicit type annotations.
  • Documentation or module responsibility docstrings updated.
  • Remote CI and CLA checks completed.

@myhloli
myhloli changed the base branch from codex/flash-pdf-04-lifecycle to next September 5, 2026 07:36
@myhloli
myhloli marked this pull request as ready for review September 5, 2026 07:36
@myhloli
myhloli merged commit 2722d8f into next Sep 5, 2026
1 of 2 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-09-05T07:37:03.980236Z ebde163 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant