mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
EPS files the reference app saves (its procsets in the prolog, a binary header with a TIFF preview) now open as editable art instead of failing with "undefinedresource in Generic". When their PostScript still can't be read, the palette preview they carry is placed with the usual warning instead of the file being refused. Root cause: five interpreter gaps and one preview format. The Generic and Category resource categories didn't exist, so categories couldn't be made from Generic (now Category holds the standard categories, defineresource in Category makes new ones, undefineresource is added); clipsave/cliprestore were unknown (now a clip stack in the graphics state); systemdict's languagelevel was the operator, not the integer 3; getinterval copied arrays and strings instead of sharing their storage, so astore into a subarray was lost (arrays and strings are now views into shared storage, and readstring/readline return the part they fill); and resourceforall was unknown (now enumerates matching names with * ? \ templates). The preview is an 8-bit palette TIFF with an alpha sample, which the image crate can't decode: a small bounds-checked reader handles that layout (either byte order, any strips). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>