mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-07 03:01:32 +00:00
Two picture properties were dropped. - Crop: `fo:clip` (top, right, bottom, left, in lengths of the picture's own size, its pixels at 96 per inch) is now WordCraft's crop fractions. A picture's crop is written back as `fo:clip`, with a graphic style even for an in-line picture. - Contour wrapping: `style:wrap-contour` with `style:wrap-contour-mode` `outside` is Word's Tight wrapping, and `full` (the default) is Through. The frame's `draw:contour-polygon` becomes the wrap polygon, scaled from its view box. A polygon whose points lie well outside its view box is in another coordinate system (LibreOffice writes one for some pictures), so the outline is derived from the picture instead. All of this is written back, the polygon last in the frame. A cropped LibreOffice picture round-trips pixel-identical, and a contour-wrapped one round-trips with WordCraft wrapping text as LibreOffice does. Both validate against the schema. `Body::start`'s frame parts moved to a helper (clippy's complexity limit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC