mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-11 16:31:54 -06:00
A picture marked decorative (Alt Text > Mark as decorative, `adec:decorative` in DOCX) was still exported as content: - tagged PDF: a Figure with its alt text, or with "picture" when it had none, inline and floating alike. PDF/UA expects decorative content to be an artifact, so screen readers skip it. Draw::Image now carries the mark, and the exporter tags a decorative picture (inline, rotated or floating) as an artifact instead of a Figure. - HTML and Markdown (and ODT, which reads the same model): the description, which the document keeps when a picture is marked decorative, was written as its alt text. A decorative picture now exports with an empty alt text (alt="" in HTML), the WCAG way to say "skip this". Pictures not marked decorative are unchanged. Charts and diagrams are left as figures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>