Skip to content

Field scorers for every type the public corpus holds #102

Open

Description

@DrunkOnJava

Spec: ODA Open Design Specification for .dwg files v5.4.1, §20.4 sections of the types the corpus holds.

Scope

Per type, compare each decoded field with its DXF group code: POINT, LINE, ARC, CIRCLE, ELLIPSE, 2D POLYLINE and VERTEX, the symbol table records, BLOCK_HEADER, LAYOUT, DICTIONARY and every other object both files carry. Tolerances are stated per field (DXF prints 16 significant digits).

State on main (2026-10-21)

Value checks exist only for LINE/CIRCLE/ARC on R2013 (tests/r2013_entity_values.rs), against the authored commands.

Acceptance

  • One table per type and release: fields equal, different, missing
  • A field the DWG holds and the DXF does not (or the reverse) is listed, not counted equal
  • docs/spec-coverage.md links the scorer for every section it checks

Parent: #99

Activity

  1. added
    type:test
    area:oracle
    priority:P1
    on Oct 21, 2026
  2. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    Scorers in #248 cover the decoded fields of 44 spec sections (entities §20.4.3-§20.4.85 the corpus holds, every symbol table and control, DICTIONARY/WDFLT, DICTIONARYVAR, SCALE, LAYOUT, MLINESTYLE, XRECORD, PLACEHOLDER); ENDBLK/SEQEND pair with nothing to compare. A follow-up after #248 adds VISUALSTYLE and MLEADERSTYLE (§20.4.87); those scorers found #251 and #253. Still unscored, paired in the corpus: DIMENSION (all seven), HATCH, SPLINE, MLINE, LEADER, MULTILEADER, TOLERANCE, VIEW (#256), GROUP, IMAGE/IMAGEDEF, WIPEOUT, PDFUNDERLAY, 3DSOLID/REGION, the two view styles, and the undecoded classes (MATERIAL, TABLESTYLE, CELLSTYLEMAP, ...). This issue stays open for them.

  3. 13 remaining items

  4. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Status against the current oracle (CI run 40503137263 at 9292ba3, oracle-summary.md and oracle.tsv of artifact corpus-measurement). The 2026-10-26 comment is behind: the summary now scores 57 types (it counted 44 spec sections), 8,718 records. Landed since that comment: VIEW (#279), TABLESTYLE on R14 to R2007 (§20.4.101.1, #349), IMAGEDEF_REACTOR and RASTERVARIABLES (#350), SORTENTSTABLE (#351), and ACDBASSOCPERSSUBENTMANAGER and ACDBPERSSUBENTMANAGER (#379).

    Over all releases: 105,864 values equal, 11,142 equal through the DXF default, 283 different, 6,722 DWG-only (a DXF group the DWG does not hold is listed, never counted equal). The 283 different are 264 VISUALSTYLE (#250), 10 control-object counts (#241), 4 LTYPE (#242), 3 BLOCK (#243) and 2 VPORT (#244).

    Still unscored: 50 rows of the summary carry records no scorer reads, 848 in all. The largest are MATERIAL (174), MULTILEADER (90), the seven DIMENSION types (66), HATCH (48), the two view-style classes (48 each), VIEWPORT (36) and BLOCKGRIPLOCATIONCOMPONENT (36); TABLESTYLE on R2010+ accounts for 18. SPATIAL_FILTER (#352), MULTILEADER (#385) and the DIMENSION family (#387) are queued. The third acceptance item, that docs/spec-coverage.md links the scorer for every section it checks, is served by tools/oracle/spec_notes.py, which writes each measured section's oracle note into docs/data/spec-coverage.tsv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:oraclepriority:P1type:test

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions