Repository navigation
feat(objects): decode TABLEGEOMETRY from §20.4.103 (#151) - #316
Merged
Merged
Conversation
§20.4.101 prints TABLESTYLE; the notes that declined it said §20.4 had no entry. Its until-R21 layout closes on its data-stream boundary on all 32 records of R14 to R2007 in the public corpus, and against AutoCAD's DXF export all 1896 values of the 24 R2000 to R2007 records equal it. Two readings come from the bits, not the spec's table: the data type, unit type and format string are R2007+ together, and every colour is the 44-bit TC on R2000 and R14 too. R2010 and later use §20.4.101.2's layout and stay Unhandled.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ares, so the copies merge in any order
….4.101.2 and §20.4.102 (#151) Both objects are sequences of cell styles (§20.4.101.4, with the content format of §20.4.101.3 inside), read by one shared reader. All 20 TABLESTYLE records of R2010 to R2018 and all 32 CELLSTYLEMAP records of R14 to R2007 close on their data-stream boundary. Against AutoCAD's DXF export every value of the 24 CELLSTYLEMAP records with a twin equals it (7080) and so does every value of the cell styles of the 20 R2010+ TABLESTYLE records, compared with the drawing's one CELLSTYLEMAP object (5328); none differ. The spec's order of the repeated cell styles is title, header, data, not data, title, header, and each is led by a BL equal to its id; both are read from the bits.
The laid-out geometry of a table is a row, column and cell count, then per cell a flag, two sizes, a content count and per content two distances and five more numbers. It had no decoder, so all 14 records of the corpus (two tables on each of R14 to R2018) were skipped; all 14 close on their data-stream boundary. Against AutoCAD's DXF export (R2000 to R2018) all 3462 values of the 12 records with a twin equal it. The second table's objects have other handles in the DXF and are paired in file order.
DrunkOnJava
force-pushed
the
obj/table-geometry
branch
from
October 26, 2026 14:37
224edad to
9877c8d
Compare
This was referenced Oct 26, 2026
Resolved against main's squash of #303 (the TABLESTYLE R14 to R2007 commit this stack carried): its decoder, probe and section stay main's, and this branch's R2010 TABLESTYLE, CELLSTYLEMAP and cell-style reader sit beside them. - src and examples: both sides kept; dispatch and the objects table list the modern TABLESTYLE and CELLSTYLEMAP arms next to main's. - ARCHITECTURE.md: main's sections plus this branch's R2010 section as 7au; the duplicate until-R2007 section is main's 7ad. - README.md: main's. spec-coverage: this branch's newer TABLESTYLE and CELLSTYLEMAP rows, regenerated. - tools/corpus/baseline.tsv: regenerated by measurement; against main's it is decoded +52, skipped -52 and nothing else.
Bring the #313 head, which already carries main, into this branch. The one section this branch adds to ARCHITECTURE.md moves to 7av after #313's 7au, and the spec-coverage page is regenerated. tools/corpus/baseline.tsv is main's; the Corpus job measures the count change and the baseline is regenerated from its artifact.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
Bring the #316 head, which carries #313 and main, into this branch. The section this branch adds to ARCHITECTURE.md moves to 7aw after #316's 7av, and the spec-coverage page is regenerated. tools/corpus/baseline.tsv is main's; the Corpus job measures the count change and the baseline is regenerated from its artifact.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
Bring the #317 head, which carries #316, #313 and main, into this branch. The section this branch adds to ARCHITECTURE.md moves to 7ax after #317's 7aw, and the spec-coverage page is regenerated. tools/corpus/baseline.tsv is main's; the Corpus job measures the count change and the baseline is regenerated from its artifact.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9dd3a503a8
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
…seline Brings in #316's regenerated baseline, then regenerates tools/corpus/baseline.tsv with measure.py baseline from the corpus-measurement artifact of the Corpus (public DWG) job on ee818e8. Against main: decoded +80, skipped -80, every other column unchanged (+52 TABLESTYLE R2010 and CELLSTYLEMAP, +14 TABLEGEOMETRY, +14 TABLECONTENT).
Merged three-way against 6d9c59f, the #313 head this branch carried, so #313's parts are main's squash (5545572) and this branch's TABLEGEOMETRY decoder, probe, dispatch arm and spec-coverage row stay. Its ARCHITECTURE section is renumbered 7bd after main's 7bc. tools/corpus/baseline.tsv, tools/oracle/baseline.tsv, README.md and STATUS.md are main's; the train regenerates them from CI.
DrunkOnJava
enabled auto-merge (squash)
October 28, 2026 01:02
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
Merged three-way against 1f190eb, the #316 head this branch carried (the train's later #316 commits were never merged here), so #313 and #316 are main's squashes and this branch's TABLECONTENT decoder, probe, cell style walk, dispatch arm and spec-coverage rows for §20.4.97 to §20.4.100 stay; §20.4.101 is main's row. Its ARCHITECTURE section is renumbered 7be after main's 7bd. tools/corpus/baseline.tsv, tools/oracle/baseline.tsv, README.md and STATUS.md are main's; the train regenerates them from CI.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
Merged three-way against 1e08844, the #317 head this branch carried, onto #317's refreshed head (which carries main, with #313 and #316 landed). This branch's ACAD_TABLE decoder, probe, dispatch arms and spec-coverage row stay; its ARCHITECTURE section is renumbered 7bf after #317's 7be. tools/corpus/baseline.tsv, tools/oracle/baseline.tsv, README.md and STATUS.md are main's; the train regenerates them from CI.
This was referenced Oct 28, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
…till skipped (#424) CHANGELOG gains the table objects (#313, #316, #317, #319), the nineteen classes derived from AutoCAD's output (#326 to #341), the DIMENSION scorer (#387), the BLOCK fixtures (#407), the maintainer tools (#406, #383) and the merge train's stack handling (#421 to #423). README said every skipped type had a decoder in review; only SHAPE (#310) and the VIEWPORT entity header (#311) do, and the rest are twelve custom classes in the BookViewerApp3 drawings with no DXF export yet, now named. STATUS's pending section says its counts are the 2026-08-30 snapshot.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Stacked on #313, which is stacked on #303 (it targets main, so the diff includes both until they land). Decode TABLEGEOMETRY (§20.4.103): the laid-out geometry of a table,
BLrow, column and cell counts then per cell a flag, two sizes, a content count and per content two3BDdistances, fourBDand a last unknown. It had no decoder, so all 14 corpus records were skipped.Spec reference
§20.4.103 TABLEGEOMETRY (tracking #151). The field list closes as printed. The last value is typed
BDin the spec andBLin the DXF (group 95); both are the same two bits at 0, which every record holds, so it is read asBL. The cells' unknown handle is in the handle stream and is not read.Test plan
cargo fmt --all -- --checkandcargo clippy --all-targets --all-features -- -D warningspass on this branch.cargo test,cargo docand the 1.85 MSRV check run once on a merge of this lane's open branches instead of per branch (the machine is at memory pressure red); the result goes in a comment.Shown on real files, no new unit tests:
cargo run --release --example probe_tablegeometry -- <corpus>over the 52 pinned drawings. It closes on the boundary and compares every decoded value with AutoCAD's DXF export, walking the groups in the order the spec prints the fields.The first table's objects have the same handles in the DWG and the DXF. The second table's were created while saving and have other handles in the DXF, so a DWG record that finds no DXF record of its handle is paired with the next unpaired DXF record of the type, in file order (
Pairing::HandleThenOrderinexamples/support/twin.rs).Corpus baseline regenerated: decoded +14, skipped -14, errored unchanged (7 rows).
Tests touched: none.
examples/probe_tablegeometry.rsand the harness addition are examples, not tests.The DXF oracle does not score TABLEGEOMETRY yet.
Source-provenance declaration
By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:
973628f3…f504b) is explicitly allowed (seeCLEANROOM.md).My contribution is based on:
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.