Repository navigation
Fix repeated-header splitting and nested ruled-table output - #5294
Closed
minsukim-epapyrus wants to merge 2 commits into
Closed
minsukim-epapyrus wants to merge 2 commits into
minsukim-epapyrus wants to merge 2 commits into
Conversation
Require at least two distinct normalized nonempty labels in a repeated header signature, so a common omission marker cannot split body records. When repeated blocks each have a single bold, centered section title, move the split to that title after checking actual cached word ownership, physical vertical partitions, rowspans and complete logical slots. Recheck the final placements before expanding a proven title to the whole-table colspan; retain its source attributes and all body cells. Implement the policy in _table_sections and connect it to the existing main refine pipeline. Include the module in wheel packaging and add focused tests for labels, geometry, source ownership and preservation. Reuse cached words, characters and drawings without additional PDF extraction or model inference. Keep the default unrefined path unchanged.
Treat an admitted ruled grid wholly inside one actual cell of a selected ruled parent as existing parent-cell text instead of another output table. Protect approved grid-reference parents before replacement selection, then remove nested candidates only under parents retained in the result. Preserve independent panels, children of rejected or unselected parents, equal boxes, partial overlaps, gaps and grids crossing multiple cells. Reuse actual candidate grids and consumed indexes; retain the existing span gates, parent geometry and text without new extraction or inference. Keep the default non-union path unchanged. Add focused tests for nested hierarchies, actual cell containment, rejected containers, approved grid references and independent panels.
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
minsukim-epapyrus
force-pushed
the
table-experiements/repeated-header-nested-table-main-20261119
branch
from
November 19, 2026 06:16
fbed66c to
d05be3c
Compare
Author
|
I have read the CLA Document and I hereby sign the CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change addresses two table extraction issues:
Validation against main 75ea522, with OCR disabled: