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
MULTILEADER text background colour: R2000 DWG holds ACI 9, the DXF export holds true colour 0xC2C8C8C8 (3 records) #381
Spec: §2.11 CmColor (before R2004 a colour is the bare BS index), §20.4.86 MLeaderAnnotContext (CMC 91, the text background colour), §20.4.48 MULTILEADER.
The DXF value oracle (examples/dxf_oracle, #99) scores MULTILEADER's text background colour (text.background_color, group 91 inside CONTEXT_DATA) against AutoCAD's export. On R2004 to R2018 all 15 records per release equal. On R2000 three records differ:
The R2004 to R2018 saves hold the CMC in full and decode to 0xC2C8C8C8 for the same three multileaders. The R2000 record closes exactly on its data-stream boundary with the CMC read as a bare BS, so the RGB is not in the R2000 file: the save wrote the nearest colour index (9) and AutoCAD's DXF export of the drawing, as in the other releases' exports, writes the true colour. The decoder is right; the two files hold different amounts of information. LAYER has the same kind of gap (#245: 420 with the RGB, 62 the export's nearest index).
The oracle leaves the three values scored different rather than mapping the index onto the word.
Decision
Either keep them different as the record of the R2000 colour model, or score a pre-R2004 colour against the nearest ACI of the exported RGB (needs the ACI table in the oracle), or list the export's true colour as not decoded on R2000 as for LAYER.
Reproduce
cargo run --release --features dxf-reader --example dxf_oracle -- <corpus-dir> --details
and read the MULTILEADER ... text.background_color lines under "Disagreements".
Activity
feat(dxf): score MULTILEADER in the value oracle (§20.4.48) (#385)