mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-28 20:37:10 -06:00
* DOCX: draw VML preset shapes such as Word's right arrow (#1377) A VML v:shape that takes its geometry from a preset shapetype (type="#_x0000_t13", o:spt) was dropped on import. Its preset number now comes from the shape's o:spt, its v:shapetype, or Word's _x0000_tNN id, and the presets whose geometry matches a DrawingML preset WordCraft draws are read with their fill, outline and size (paint left out by the shape comes from its shapetype): rectangle, rounded rectangle, ellipse, diamond, isosceles triangle, five-point star, right arrow, line and straight connector, heart, text box, and the flowchart process, decision and connector. Saving writes them as DrawingML presets. Text in a preset keeps the shape around it. MSOSPT numbers from [MS-ODRAW] 2.4.24. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * DOCX: draw unmatched VML presets as their nearest shape (#1377) VML preset numbers now map to the DrawingML preset of the same shape and go through preset_kind, so a preset WordCraft has no shape for (left, up and down arrows, right triangle, callouts, four-point star...) is drawn as the nearest one, as DrawingML presets are, instead of being left out. The exact mappings are unchanged. WordArt text shapes, picture frames without a picture and non-primitive shapes are still not drawn. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>