mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-09 20:03:51 +00:00
A file that turns an inline picture but writes no wp:effectExtent (or a zero one), as other tools do, makes Word keep the picture's line to its frame and let the turn overhang it, cut at the line's top and bottom: the frame as it is in Word 2007 layout (compatibilityMode < 15), with width and height exchanged from 45 to 135 and 225 to 315 degrees in Word 2013+ layout. WordCraft always reserved the exact rotated bounds (Float::spin_pad), which is what Word's own files encode through their effect extents, so the text after such a picture sat up to 34 pt too low (docxide-pdf standalone-picture-compat12-* / compat15-angle45/135). The docx reader now marks such objects (Float::bare_turn, cleared when the object is turned again); the inline room comes from Float::line_pad, which display uses too to place the frame in it, and the line clips the picture's overhang. The writer keeps writing no turn overhang for them, so a save round-trips. Word-saved pictures are unchanged. Co-authored-by: Naxvog <4963183+naxvog@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>