You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VISUALSTYLE on R2004/R2007 (72 records): flag-less layout with a different property count; trailing 182-254 bits admit no solution over BS/BD/CMC/B/RC #48
#47 decodes VISUALSTYLE on R2010/R2013/R2018 by deriving the unique token sequence that closes every record on its string-stream start bit. R2004/R2007 store the same styles without the (value, flag) pairs and with a different property count (492-580 data bits vs 574-862). Verified prefix so far: BS type, BS lm, BS lq, BS cm, BD opacity, BD specular, CMC mono, BS, BS, BS, CMC, CMC - closes through 12 fields on all 24 records of arc_2004.dwg; the remaining 182-254 bits admit no solution over BS/BD/CMC/B/RC, so a token type is missing (possibly a count-driven sub-list). Tool: examples/probe_field_list.rs. Until solved, decode_object returns Unsupported and dispatch counts these as Unhandled.
PR #64 closes the R2004 half: 72/72 records, delta 0 on all 24 styles of each of arc_2004.dwg, circle_2004.dwg and line_2004.dwg. The layout is the flag-less generation — 30 fields, no (value, flag) pairs, is_internal_use_only as the record's final bit, and display_brightness as a BL (-50/50/0) where R2010 spends a BD. That BL is what the 182–254-bit spread was: full BL on Dim (+32), byte BL on Brighten (+8), 0 form on the other 22. No missing token type and no count-driven sub-list after all — the search failed because the R2010 property order does not carry over.
Remaining scope for this issue is R2007 only, and it is blocked upstream, not by the field list:
string_stream::data_section_end locates the split-stream trailer from the leading MC handle-stream size that only R2010+ writes, so it returns None for R2007.
probe_object_layout on arc_2007.dwg panics with this version has no object-stream walk; probe_class_census reports no AcDb:Classes section. No R2007 object of any type reaches a decoder, so the corpus cannot say whether R2007 writes the flag-less list or the paired one. decode_object returns Unsupported there rather than guessing. The 72 R2007 VISUALSTYLE records (24 in each of the three *_2007.dwg files) are invisible to coverage_report for the same reason, so this band costs nothing in the ratio today.
One residual budget on the R2004 side, documented in the module and ARCHITECTURE.md §7d.1a rather than guessed: 13 bits between edge_silhouette_width and edge_intersection_linetype hold the constant 0b0_0000_0001_0010 on all 72 records. Only the width is evidence; the internal boundaries are a reading (RC BS B BS), and an R2004 file with a non-default halo gap or isoline count would settle them.
Settled by #47 and #73. src/objects/acad_visual_style.rs documents the measured flag-less list shared by R14, R2000, R2004 and R2007 (R2007 adds one 2-bit slot), and the reason the R2004 list is not a guess (its doc comment, lines 103 to 222; ARCHITECTURE.md §7d.1a and §7d.1b). STATUS.md reports 456 of 456 corpus VISUALSTYLE records decoded on every release. The class is tracked to completion, including values against AutoCAD's DXF, in the classes-beyond-the-spec issue of the 0.3.0 milestone.
Activity
DrunkOnJava commentedon Aug 30, 2026
PR #64 closes the R2004 half: 72/72 records, delta 0 on all 24 styles of each of
arc_2004.dwg,circle_2004.dwgandline_2004.dwg. The layout is the flag-less generation — 30 fields, no(value, flag)pairs,is_internal_use_onlyas the record's final bit, anddisplay_brightnessas aBL(-50/50/0) where R2010 spends aBD. ThatBLis what the 182–254-bit spread was: fullBLonDim(+32), byteBLonBrighten(+8),0form on the other 22. No missing token type and no count-driven sub-list after all — the search failed because the R2010 property order does not carry over.Remaining scope for this issue is R2007 only, and it is blocked upstream, not by the field list:
SectionMapStatus::DeferredforAC1021(Publish from a signed tag through trusted publishing #110);string_stream::data_section_endlocates the split-stream trailer from the leadingMChandle-stream size that only R2010+ writes, so it returnsNonefor R2007.probe_object_layoutonarc_2007.dwgpanics withthis version has no object-stream walk;probe_class_censusreportsno AcDb:Classes section. No R2007 object of any type reaches a decoder, so the corpus cannot say whether R2007 writes the flag-less list or the paired one.decode_objectreturnsUnsupportedthere rather than guessing. The 72 R2007 VISUALSTYLE records (24 in each of the three*_2007.dwgfiles) are invisible tocoverage_reportfor the same reason, so this band costs nothing in the ratio today.One residual budget on the R2004 side, documented in the module and ARCHITECTURE.md §7d.1a rather than guessed: 13 bits between
edge_silhouette_widthandedge_intersection_linetypehold the constant0b0_0000_0001_0010on all 72 records. Only the width is evidence; the internal boundaries are a reading (RC BS B BS), and an R2004 file with a non-default halo gap or isoline count would settle them.feat(objects): decode VISUALSTYLE on R2004 — the flag-less generation (…
DrunkOnJava commentedon Oct 21, 2026
Settled by #47 and #73.
src/objects/acad_visual_style.rsdocuments the measured flag-less list shared by R14, R2000, R2004 and R2007 (R2007 adds one 2-bit slot), and the reason the R2004 list is not a guess (its doc comment, lines 103 to 222; ARCHITECTURE.md §7d.1a and §7d.1b). STATUS.md reports 456 of 456 corpus VISUALSTYLE records decoded on every release. The class is tracked to completion, including values against AutoCAD's DXF, in the classes-beyond-the-spec issue of the 0.3.0 milestone.