Files
wordcraft/crates/layout
MyAIPluginsandClaude Opus 5.5 8664afe58f fix(export): pictures marked decorative are skipped by screen readers
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>
2026-10-19 14:52:55 +00:00
..