Commit Graph
576 Commits
Author SHA1 Message Date
Dylan M. Taylor 4828d96ba2 Merge pull request #1516 from moppeeer/layer-lock-guides
Layer Options: Lock Guides, as InDesign's (and IDML's LockGuides)
2026-11-15 18:22:18 -05:00
FredAppsandDylan M. Taylor f405f89da4 Formats: port the craft-libs cutover follow-ups from #2734 to main (#2838)
* 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>
2026-11-15 22:45:42 +01:00
aiongg 3bd9332a6c DES-10 review: export linked graphics in EPUB/HTML, PPTX, IDML and packages; cache output bytes in PDF export 2026-11-14 12:47:03 +00:00
aiongg 957e073664 DES-10 T9: IDML and INDD imports link the graphics they reference
(cherry picked from commit 995b248cd3b591cae6dd7dd0f9a1b10cac89f22d)
2026-11-14 06:45:09 +00:00
aiongg eafc04a2e1 IDML export: placements in cells and footnotes embed their PDF layer choices
(cherry picked from commit c017ca777c)
2026-11-14 06:23:07 +00:00
aiongg 55a0c7da3d DES-10 T2: port asset byte users to AssetData
Export, import, links, preflight, alpha wrap and the UI read bytes with
AssetData::load; every asset is still embedded.
2026-11-14 05:15:03 +00:00
aiongg 1a156fa564 Merge remote-tracking branch 'upstream/main' into image-perf
# Conflicts:
#	crates/images/src/jpeg.rs
#	crates/images/src/lib.rs
2026-11-14 04:29:08 +00:00
Dylan M. Taylor 614feb8607 Merge remote-tracking branch 'origin/main' into codex/designcraft-craftlibs-clean 2026-11-14 03:36:00 +00:00
Dylan M. Taylor 382fc27a5b fix(idml,images,pptx,textimport): update adapters and tests for craft-libs cutover 2026-11-14 03:35:09 +00:00
Dylan M. Taylor 32274e843a Merge codex/designcraft-craft-libs into origin/main: cut over document formats and codecs to craft-libs 2026-11-14 02:13:28 +00:00
jayzed80 c509445ed0 IDML export: keep endnote reference numbers (#2753) (#2764)
The IDML story writer skipped the endnote reference character, so an
exported body story lost every endnote's place: "an endnote here. End."
with nothing between "here" and the full stop. The endnote frame's
story was written with its numbers as text, so nothing linked the
listed endnote back to where it was referenced.

Each reference is now written as its own superscript character range
holding the endnote's number, formatted by Endnote Options (start,
style, prefix and suffix) as the endnote frame lists it. IDML's
Endnote / EndnoteRange elements are not written yet.
2026-11-14 00:34:31 +00:00
Dylan M. Taylor 59db0b67a7 Use shared IDML transparency writer 2026-11-13 09:43:29 -05:00
Dylan M. Taylor b409bccb0f Use shared IDML effect setting writers 2026-11-13 09:40:28 -05:00
Dylan M. Taylor 703ffed779 Use shared IDML text path writer 2026-11-13 09:37:36 -05:00
Dylan M. Taylor dab41a4f60 Use shared IDML hyperlink destination writer 2026-11-13 09:35:55 -05:00
Dylan M. Taylor 4fbe39af99 Use shared IDML index parser 2026-11-13 09:33:26 -05:00
Dylan M. Taylor 6cea56ce01 Remove app-local IDML topic ID helper 2026-11-13 09:30:20 -05:00
Dylan M. Taylor 6bc26299fa Use shared IDML anchored setting writer 2026-11-13 09:30:04 -05:00
Dylan M. Taylor 1cb0c04143 Use shared IDML index writer 2026-11-13 09:27:22 -05:00
Dylan M. Taylor a9c4253e57 Use shared IDML page reference writer 2026-11-13 09:23:32 -05:00
Dylan M. Taylor c74cf007d0 Use shared cell and table style decorations 2026-11-13 09:13:02 -05:00
Dylan M. Taylor 61f6a83de5 Use shared IDML object style values 2026-11-13 09:10:17 -05:00
Dylan M. Taylor 90f6ddba6e Use shared IDML graphic MIME fallback 2026-11-13 09:07:49 -05:00
Dylan M. Taylor 41bbd27a40 Use shared placed graphic metadata 2026-11-13 09:04:34 -05:00
Dylan M. Taylor 611fe571da Use shared IDML anchored object values 2026-11-13 09:00:48 -05:00
Dylan M. Taylor 7f2ac33275 Use shared IDML frame fitting values 2026-11-13 08:58:46 -05:00
Dylan M. Taylor a92db95301 Delegate IDML object style merging to craft-idml 2026-11-13 08:56:24 -05:00
Dylan M. Taylor 75eeeca16f Use shared IDML table style values 2026-11-13 08:50:49 -05:00
Dylan M. Taylor 862c052c2f Use shared IDML cell style values 2026-11-13 08:49:14 -05:00
Dylan M. Taylor 9ea7beb6f3 Format IDML cross-reference mapper 2026-11-13 08:47:15 -05:00
Dylan M. Taylor ed0543639a Write IDML cross-reference format through craft-idml 2026-11-13 08:47:03 -05:00
Dylan M. Taylor b782bdde6d Read IDML conditions and lists from shared models 2026-11-13 08:44:55 -05:00
Dylan M. Taylor b45c58f2e3 Use shared IDML cross-reference and EPUB models 2026-11-13 08:43:04 -05:00
Dylan M. Taylor 5b524b5554 Read IDML text variables through shared model 2026-11-13 08:39:54 -05:00
Dylan M. Taylor eeb085fb63 Read IDML table of contents styles through shared model 2026-11-13 08:37:27 -05:00
Dylan M. Taylor d939af608a Use shared writer for IDML footnote preferences 2026-11-13 08:35:11 -05:00
Dylan M. Taylor 54a4b1ceec Read footnote preferences through shared IDML model 2026-11-13 08:32:57 -05:00
Dylan M. Taylor 14c0ebd166 Use typed IDML range style accessor 2026-11-13 08:30:00 -05:00
Dylan M. Taylor c47dff9b62 Use shared IDML model for preference output 2026-11-13 08:27:49 -05:00
Dylan M. Taylor 5d1b5ccb17 Read document preferences through shared IDML model 2026-11-13 08:24:20 -05:00
Dylan M. Taylor fd1d1992f7 Use shared writer for CJK paragraph properties 2026-11-13 08:22:10 -05:00
Dylan M. Taylor 9d218d235c Use shared IDML writers for paragraph list and span settings 2026-11-13 08:20:00 -05:00
Dylan M. Taylor 1942a99634 Read custom kenten values through shared IDML model 2026-11-13 08:16:49 -05:00
Dylan M. Taylor b820166872 Read paragraph list and span settings through shared model 2026-11-13 08:15:00 -05:00
Dylan M. Taylor 1a7a6e3e4b Read CJK paragraph settings through shared IDML model 2026-11-13 08:12:23 -05:00
Dylan M. Taylor 2a0551b73a Read paragraph box values through shared IDML model 2026-11-13 08:10:32 -05:00
Dylan M. Taylor b46323ffda Read special character properties through shared IDML model 2026-11-13 08:05:07 -05:00
Dylan M. Taylor c91887f49e Read Ruby properties through shared IDML model 2026-11-13 08:02:41 -05:00
Dylan M. Taylor e9fe18a0f6 Read paragraph alignment and flow through shared model 2026-11-13 07:59:52 -05:00
Dylan M. Taylor 22de685d98 Read character appearance through shared IDML model 2026-11-13 07:57:17 -05:00