* Formats: port the craft-libs cutover follow-ups from #2734 to main (craft-libs#778)
Brings #2734's changes (made against the release branch) to main:
IDML CDATA on write and table span parsing, DOCX plain-text accepted
changes, XLSX invalid number cells shown as written, shared CMYK JPEG
polarity, exact PPTX opacity, PDF CMYK fallback wording, and the
craft-libs re-pins. Imported DOCX built-in headings keep main's and
v0.21.0's spelling ("Heading 1"), with a test. craft-pdf, craft-prepress,
craft-cms, the krilla/hayro patches and craft-xml-dtd move to the #1322
squash merge on craft-libs main (a5ac3aa0).
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* Point the PDF dependency check at the craft-libs main pin
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* Formats: address review on the cutover follow-ups
- PDF: keep main's CMYK fallback warning. The shared decoder reads planar
CMYK TIFFs and makes associated alpha straight, so neither falls back;
a test now checks both keep their inks.
- DOCX plain-text import uses craft-wordmodel's Paragraph::final_text,
which already drops tracked deletions and expands inline objects.
- IDML: a test pins numeric table spans (fractions round down, spans past
the table or past 32 bits reach its edge, anything under 1 or not a
number spans one cell).
- Cargo.lock: craft-rtf takes craft-codepage at bfea7d98 after the merge
with main.
* PDF test: expect the CMYK fallback warning's main wording
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* Updates: take craft-update from craft-libs main at 6e03f65bf
craft-update moves from storytold/craft-libs at 1b34eba41 to 6e03f65bf. Cargo.lock follows.
* Updates: take craft-update from craft-libs main at e98299546
craft-libs e98299546 includes #923: the check of whether the copy can install itself now runs on the update-check thread instead of in Updater::tick on the UI thread.
* Build: restore designcraft_format::write for recovery; render decodes without naming the image crate
* Build: collapse the nested if in images tone (clippy)
* IDML export: placements in cells and footnotes embed their PDF layer choices
* Tests: Word fixtures carry the document relationships part
* PDF/X-4: untagged WebP images carry sRGB
* Images: CMYK TIFFs with other inks fall back to RGB; associated alpha keeps its inks
craft-image-codecs' TiffPage lists InkSet (storytold/craft-libs#1307), so decode_cmyk_tiff
again refuses InkSet 2 instead of reading other inks as C, M, Y and K. Associated alpha
is made straight by the decoder; the PDF tests check those inks and that alpha.
* PDF tests: CMYK fallback expects the screen's RGB; alpha images read the masked image
The RGB fallback for other inks converts through the working CMYK space, as decode_rgba
does, so the test takes its expected samples from decode_rgba. image_color_samples took the
first image stream, which for an image with alpha is its soft mask.
* Images: repin craft-image-codecs to the InkSet enum (storytold/craft-libs#1307)
* Pin craft-image-codecs to storytold/craft-libs ea1c842 (#1307)
AssetData::linked carries a LinkedSource (absolute and relative path, document,
size, fingerprint, content hash). Linked bytes load through a process-wide
single-flight LRU store (512 MiB, 1 GiB per file) and the Loader the engine
installs in Session:🆕 absolute path first, then relative; a changed
fingerprint is checked against the hash, and other bytes are Modified.
Proxy.data is an AssetData so its decodes have a key of their own.