Repository navigation
feat(objects): decode TABLESTYLE from R2010 and CELLSTYLEMAP (§20.4.101.2, §20.4.102, #151) - #313
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. |
4 tasks done
…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.
DrunkOnJava
force-pushed
the
obj/tablestyle-r2010
branch
from
October 26, 2026 14:37
e2fe04c to
7adac67
Compare
This was referenced Oct 26, 2026
Open
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.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
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.
# Conflicts: # ARCHITECTURE.md # tools/corpus/baseline.tsv
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72300c3666
ℹ️ 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
enabled auto-merge (squash)
October 28, 2026 00:29
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
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
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 #303 (its base branch is
obj/tablestyle; it targets main so the diff below includes #303's commits until that lands). Decode TABLESTYLE from R2010 (§20.4.101.2) and CELLSTYLEMAP (§20.4.102). Both are sequences of cell styles (§20.4.101.4, with the content format of §20.4.101.3 inside them), read by one shared readersrc/objects/table_cell_style.rs. All 20 R2010 to R2018 TABLESTYLE records and all 32 R14 to R2007 CELLSTYLEMAP records were skipped.Spec reference
§20.4.101.2 TABLESTYLE (R24 format), §20.4.101.3 content format, §20.4.101.4 cell style, §20.4.102 CELLSTYLEMAP (tracking #151). Three readings come from the bits (ARCHITECTURE.md §7x has the evidence):
BLequal to its id, which the spec's table does not list;BLs after the description are 0 and 101 (the first custom cell style id).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_tablestyle -- <corpus>andcargo run --release --example probe_cellstylemap -- <corpus>over the 52 pinned drawings. Each closes on the boundary and compares every decoded value with AutoCAD's DXF export, walking its groups in the order the spec prints the fields, so a field in the wrong place shows as the wrong group.AutoCAD writes the CELLSTYLEMAP afresh on every save, so the DWG's and the DXF's never share a handle: each DWG record is paired with the only CELLSTYLEMAP in its twin. From R2010 the cell styles of the TABLESTYLE record are compared with that same twin object; the table's own cell style (id 4) and the text style and line type handles have no DXF value and are not compared.
Corpus baseline regenerated: decoded +52, skipped -52, errored unchanged (52 rows).
Tests touched: none.
examples/probe_cellstylemap.rs,examples/support/cellstyles.rsand the harness additions inexamples/support/twin.rsare new or extended examples, not tests.The DXF oracle does not score these types 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.