Skip to content

feat(dxf): score TABLESTYLE in the value oracle (§20.4.101.1) - #349

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/dxf-oracle-tablestyle
Oct 26, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/dxf-oracle-tablestyle

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

The value oracle scores TABLESTYLE (§20.4.101.1, decoded by #303) field by field against AutoCAD's DXF export: 3, 70, 71, 40, 41, 280, 281, then per row style (data, title, header) 140, 170, 62, 63, 283, on R2007 also 90, 91 and 1, and per border 274-279, 284-289 and 64-69. The text style (7) is a handle the decoder does not read and stays not-decoded. The colours are TC and export as their index.

Measured (49 drawing pairs)

Section Records Equal Default Different DWG only Not decoded Unscored
§20.4.101 TABLESTYLE 24 (R2000-R2007) 1896 0 0 0 144 18 (R2010+, §20.4.101.2, not decoded)

All 1896 decoded values equal the export, the count #303's own probe reports. The oracle's other disagreements are unchanged. tools/oracle/baseline.tsv gains the 237 new rows (ratchet against main's: no count fell), and the §20.4.101 row of docs/spec-coverage.md says what the oracle measured.

Test plan

  • cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, python3 tools/ci/spec_coverage.py --check
  • Oracle over the 102 pinned files with --baseline tools/oracle/baseline.tsv (main's): exit 0; the regenerated TSV is committed
  • cargo run --release --example spec_examples: OK: 425 checks

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:

  • No Autodesk DWG SDK source (RealDWG, ObjectARX, ObjectDBX) or NDA-protected Autodesk documentation was consulted or imported.
  • No Open Design Alliance Teigha / Drawings SDK source was consulted or imported. The ODA's public Open Design Specification for .dwg files PDF is explicitly allowed (see CLEANROOM.md).
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported.

Based on the DXF column of ODA spec v5.4.1 §20.4.101.1 and AutoCAD's DXF exports read as data, as CLEANROOM.md's entry for the oracle's scorers records.

Developer Certificate of Origin

By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.

Refs #99, #102, #151.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

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 ✅ Completed 2026-10-26T23:25:08.229731Z 2110bdb New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca234b2e80

ℹ️ 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".

Comment thread examples/dxf_oracle/scorers.rs Resolved
The TABLESTYLE decoder (#303) reads §20.4.101.1's layout on R2000 to
R2007; the oracle now compares each field with the group the section's
DXF column gives it: 3, 70, 71, 40, 41, 280 and 281, then per row style
(data, title, header) 140, 170, 62, 63, 283, on R2007 also 90, 91 and 1,
and per border 274-279, 284-289 and 64-69. The text style (7) is a
handle the decoder does not read and stays not-decoded; the colours are
TC and export as their index. Where an export writes two 280s before
the first row style (the R2010+ ones), the suppress-title flag is the
second, as the decoder's probe reads it.

On the 49 drawing pairs: 24 records, R2000 to R2007, all 1896 decoded
values equal AutoCAD's export, the count the decoder's own probe
reports. The 18 paired R2010+ records (§20.4.101.2) remain undecoded.
tools/oracle/baseline.tsv gains the 237 new rows, and the §20.4.101 row
of docs/spec-coverage.md says what the oracle measured.

Refs #99, #102, #151
@DrunkOnJava
DrunkOnJava force-pushed the feat/dxf-oracle-tablestyle branch from ca234b2 to 07e426b Compare October 26, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant