Commit Graph
4116 Commits
Author SHA1 Message Date
bdb9dae67d craft-xlsx: typed external links, and external references in binary formulas (#1347)
* craft-xlsx: typed external links, read from .xlsx and .xlsb; external references in binary formulas

ExternalLink (another workbook as ExternalBook: its target, sheet names,
defined names with refersTo and sheetId, and cached cells; a DDE or OLE link
as Other) reads from externalLinkN.xml and externalLinkN.bin alike.
Package::external_links gives one entry per Workbook::external_references,
which is now a typed field, read from externalReferences or the binary
workbook's BrtSupBookSrc records and written back from the field.

A binary formula's reference to another workbook decodes as .xlsx spells it:
[1]Data!$A$1, '[1]Other Sheet'!A1, '[1]A:C'!A1, [1]!ExtName, [1]Data!Local
for a sheet-scoped name, a DDE item [2]!'R1C1'. The link parts are read when
the workbook part is; one that can't be read, a deleted sheet of it or a name
it lacks keeps the cell's saved result.

Closes #1252.

* craft-xlsx: review fixes: external links keep their numbers, are read once, and deleted sheets keep values

- An externalReference without an r:id, or a BrtSupBookSrc whose id can't be
  read, keeps its place as an empty id, so the links after it keep their
  [n]; it is written back without r:id.
- A binary workbook's external link parts are read once, with its workbook
  part: the formulas' index and Package::external_links share that read, so
  cached cells are charged to binary_cells once.
- PtgNameX through a deleted sheet of another workbook (-1) keeps the cell's
  saved result instead of falling back to the name's own scope.

* craft-xlsx: deduplicate binary external links against budget and add cache-cap test

* craft-xlsx: avoid cloning ExternalLink on duplicate binary external references

---------

Co-authored-by: kiwi4boy <kiwi4boy@gmail.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-20 13:19:14 -05:00
FredApps 86d6df9c45 Preserve additional COLLADA camera instances (#2576) 2026-11-21 01:14:47 +07:00
FredApps 7f5c123859 Merge pull request #2116 from marcwgls/fix/html-fragment-spacing
craft-html: a fragment keeps its paragraphs' spacing and indents
2026-11-21 01:05:10 +07:00
aiongg 7d22ffc36b Merge pull request #2503 from aiongg/ci-test-select
Workspace: pull requests run only the tests their change reaches
2026-11-20 13:01:27 -05:00
FredApps a49329e71e Merge pull request #2507 from OPUZZLES/opuzzles/proof-map-lookups
Proofing: index spelling MAP lookups
2026-11-21 00:23:07 +07:00
aiongg 1819a0868e Workspace: pull requests run only the tests their change reaches
craft-common-actions' select-platforms selects the tests: the crates that
own a changed file, the crates that declare a read of it, and every
crate that depends on them. Every nextest run gets the filter; the build
and the doctests stay whole-workspace. The build setup, a crate's own
Cargo.toml and files outside the crates other than docs run every test;
docs alone run none. pdf, svg and the fonts-build consumer declare the
files of other crates that their tests read.
2026-11-20 17:17:41 +00:00
Dylan M. Taylor 5d4357256a ps(write): handle empty, single, and flat stops in push_shading (#2570) 2026-11-20 11:43:22 -05:00
FredApps 712b35379b Merge pull request #1691 from vangel76/fix/drawingml-numfmt-1675
Chart number and date formats show what Excel shows (rounding, dates, fractions, conditions)
2026-11-20 22:45:34 +07:00
FredApps f389c25c23 Resolve scatter category axis by position rather than ID order 2026-11-20 16:01:18 +01:00
David Mann 8f92ed1334 Merge pull request #2550 from davidmann4/agents/default-folder
craft-control agents: default agent folder in Documents and the agent_folders tool
2026-11-20 15:54:58 +01:00
FredApps 6200c71304 Keep category formats with their source and preserve literal slashes 2026-11-20 15:51:04 +01:00
49b542759c mesh: support opt-in GLB sampler filtering (#2523)
* mesh: support opt-in GLB sampler filtering

* mesh: describe GLB sampler filtering in the README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:28:05 +07:00
FredApps 05603f5e40 Match observed second rounding in date and minute formats 2026-11-20 15:10:53 +01:00
FredApps 533518fc18 Keep original date and minute when seconds are not displayed 2026-11-20 15:05:31 +01:00
FredApps 7c2494b611 Merge main, retaining chart date formats and data-table metadata 2026-11-20 15:05:16 +01:00
David MannandClaude Opus 5.5 f9ebae49c0 craft-control agents: default agent folder in Documents and the agent_folders tool (#2548)
An empty agent folder setting meant no file access, so an agent reached
through the launcher's MCP entry could neither open nor save a file, and
nothing told it where to put files.

- default_folder(app): Documents/ArtCraft/Agents/<App> (dirs::document_dir,
  else ~/Documents), only for plain app names.
- AgentSettings::folders / folders_with: the person's own folders win; an
  empty setting falls back to the default, created on first use.
- The live client's headless sessions use it (LiveConfig::default_folder).
- FOLDERS_TOOL, folders_tool, folders_answer: the tool each app offers so an
  agent learns the folders it may use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:00:40 +01:00
Dylan M. Taylor 9eb02be84f Merge pull request #2546 from dylanmtaylor/feat/pdf-max-coverage
feat(pdf): enforce max_coverage budget via vendored vello_cpu 0.0.8
2026-11-20 08:27:48 -05:00
David Mann e544a6c69b Merge pull request #2035 from dotCooCoo/fix/update-test-attach-retry
craft-update: the macOS partway-install test retries a busy disk-image attach
2026-11-20 14:20:44 +01:00
aiongg 8048f8ef92 Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071) (#2489) 2026-11-20 18:08:50 +07:00
FredApps e6dbc97ca3 Merge pull request #2348 from OPUZZLES/opuzzles/rtf-info-groups
craft-rtf: preserve document properties across nested groups
2026-11-20 13:58:23 +07:00
Codex 9b57bcdd94 Merge main for combined HTML fragment and table export validation 2026-11-20 07:54:59 +01:00
FredApps f7067b297c Merge pull request #2485 from keithcsqueensu/ppt95
craft-ppt-binary: read PowerPoint 95 slides, masters, layouts and backgrounds (#2317, step 1)
2026-11-20 13:49:24 +07:00
FredApps 227009258a Merge pull request #2512 from FredApps/integrate/778-dpx-main
Integrate reviewed DPX memory reductions on main
2026-11-20 13:48:54 +07:00
FredApps 17ec60ad0c Merge pull request #2379 from trufae/fix/raw-orf-preview-fallback
craft-raw: recover ORF previews with missing pointers
2026-11-20 13:43:32 +07:00
FredApps 8014b39bfc Merge pull request #2378 from trufae/fix/raw-nef-packed-guard
craft-raw: simplify NEF packed-layout eligibility
2026-11-20 13:41:41 +07:00
FredApps 385988d9a4 Merge pull request #2346 from OPUZZLES/opuzzles/html-rowspan-zero
craft-html: keep zero row spans in their row group
2026-11-20 13:36:07 +07:00
FredApps 63ed548b69 Merge pull request #2380 from trufae/fix/raw-orf-crop-coordinates
craft-raw: reject narrowing ORF crop coordinates
2026-11-20 13:35:05 +07:00
FredApps 2e45aeeee5 Merge pull request #2192 from Morzilla/docx-grid-from-cells
craft-docx: a table without w:tblGrid takes its grid from its cells, as Word rebuilds it
2026-11-20 13:33:59 +07:00
FredApps b93d7ca706 Merge pull request #2180 from dotCooCoo/fix/number-format-trailing-spaces
wordmodel: number formats keep a trailing space that is part of the code
2026-11-20 13:29:45 +07:00
Codex 45aebd6f99 Integrate reviewed metadata reader with merged prior-layout state
Retain both metadata and prior-paragraph-layout regression suites. Combined-head validation is pending normal upstream CI.
2026-11-20 07:27:17 +01:00
FredApps 946094d5cf Merge pull request #2505 from OPUZZLES/opuzzles/rtf-prior-paragraph-layout
RTF: retain prior paragraph layout in tracked changes
2026-11-20 13:22:28 +07:00
Dylan M. Taylor a0afd7bbd2 Merge pull request #2013 from dotCooCoo/feat/audio-dsp
Add craft-audio-dsp: compressor, limiter, equalizer, loudness meter and other effects
2026-11-20 01:20:58 -05:00
FredApps 407e4a41b8 Merge pull request #2190 from arnav-hiwarkar/fix/3831-spi3d-allocate-after-rows
cms: validate SPI3D rows before reserving the lattice
2026-11-20 13:19:20 +07:00
Dylan M. Taylor 0c6b195efe craft-zip: add SeekableArchive::has_duplicate_names_matching and duplicate_names (#2511)
* craft-zip: add SeekableArchive::has_duplicate_names_matching and duplicate_names

* craft-zip: use zip::ZipWriter in duplicate-names test

* craft-zip: patch second entry name in duplicate-names test
2026-11-20 01:15:20 -05:00
FredApps d042b09745 Merge pull request #2510 from OPUZZLES/opuzzles/docx-picture-soft-edge-roundtrip
DOCX: preserve imported picture soft edges
2026-11-20 13:09:33 +07:00
Rees d6e13ee891 Count empty rows when resolving HTML zero row spans 2026-11-20 07:05:38 +01:00
yoriswind b7cf916792 style: format DPX decoded budget assertion
(cherry picked from commit a874344ced)
2026-11-20 07:00:55 +01:00
yoriswind 0596a975ae Reduce temporary memory when decoding DPX and Cineon
(cherry picked from commit f08789c7a6)
2026-11-20 07:00:55 +01:00
yoriswind 4f31e9c33a Avoid widened sample buffers in eight-bit DPX export
(cherry picked from commit 23393d1def)
2026-11-20 07:00:49 +01:00
kiwi4boy b1984522c4 ppt-binary: a PowerPoint 95 Document needs its DocumentAtom; name the slides a short file lost
The detector took any root whose first child was a Document, so an empty
Document read as a deck with no slides instead of being damaged. It now
also needs a DocumentAtom long enough for its slide count.

import_checked names the slides that count says are missing, by position,
so a cut-short file no longer reads as whole.

TooOld no longer promises every file before PowerPoint 95: a file that
isn't a compound file is NotPpt, and no earlier file was tried.
2026-11-20 00:59:29 -05:00
FredApps 9867c5ac13 Merge pull request #2347 from OPUZZLES/opuzzles/docx-screentips
craft-docx: preserve bounded hyperlink ScreenTips
2026-11-20 12:54:14 +07:00
FredApps e956256f1d Merge pull request #2349 from OPUZZLES/opuzzles/docx-mail-merge
Preserve external DOCX mail-merge source relationships
2026-11-20 12:51:44 +07:00
FredApps 796d915ba9 Merge pull request #2445 from MMexicann/patch-4
DOCX: save the current zoom when merging retained settings
2026-11-20 12:47:19 +07:00
FredApps ceb5c69e7c Merge pull request #2492 from keithcsqueensu/ppt-trapezoid
craft-ppt-binary: OfficeArt trapezoids face the right way
2026-11-20 12:39:29 +07:00
kiwi4boy 041ba948c8 ppt-binary: PowerPoint 95 slides follow the master's objects and scheme
The slide box's bytes at +16 and +17 are whether a slide shows the master's objects and uses the
master's colour scheme: turning the master's objects off on one slide clears the first, and giving
one slide its own scheme clears the second. A slide following the master's scheme now takes the
master's colours rather than the copy it holds.
2026-11-20 00:36:22 -05:00
FredApps 726b5b1184 Merge pull request #2450 from mmazzieri/fix/doc-layout-in-cell
craft-doc-binary: read Layout in table cell from a shape's properties
2026-11-20 12:27:44 +07:00
Dylan M. Taylor cbf62cb2ce Merge branch 'main' into feat/audio-dsp 2026-11-20 00:26:12 -05:00
FredApps 5a913a42ab Merge pull request #2449 from mmazzieri/fix/vml-allowincell
craft-docx: a VML shape in a body table cell keeps Layout in table cell off
2026-11-20 12:21:02 +07:00
Rees 8eae257cf3 DOCX #2532: preserve imported picture soft edges 2026-11-20 05:59:01 +01:00
FredApps 0a385b97df Merge pull request #2441 from MMexicann/patch-2
fix(ipp): decode language-tagged attribute text
2026-11-20 11:58:14 +07:00