Commit Graph
7039 Commits
Author SHA1 Message Date
aiongg 71a764ab94 craft-ui: a collection takes its rows' measure ahead in the run that measures them
The measure ahead ran the row measure as a measuring run and set the
layout inside it, so a layout that reports its placement only outside
measuring runs (the tab strip's report: tab rects, hidden tabs, the
overflow button) kept the placement from before the measure in a pass
with no measuring run. The layout now takes the results after the
measure, in the run that called it.

The docking trial checks that a label too long for its group moves the
group's other tab to the overflow menu in the frame of the change.
2026-11-20 06:08:46 +00:00
Rees d6e13ee891 Count empty rows when resolving HTML zero row spans 2026-11-20 07:05:38 +01:00
aiongg e7e877ac57 Merge pull request #2504 from aiongg/modifier-reads
craft-ui: a modifier read reruns the settled component that read it
2026-11-20 01:03:16 -05:00
aiongg a7fb8a074e Merge pull request #2490 from aiongg/picker-caption-widest
Preset picker: a caption range keeps the field at its widest caption
2026-11-20 01:02:42 -05:00
kiwi4boy 4af95e2a75 Merge branch 'ppt95-text' into ppt95-shapes
# Conflicts:
#	crates/ppt-binary/src/lib.rs
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 01:02:34 -05:00
kiwi4boy bf729d6d02 ppt95: skip runs of no characters; the font table is the first list with a face
A zero-length run counted as one character of coverage, so a few of them
used up the runs read and a real run after them was never reached.

A font list whose only face atom was cut short gave an empty face and
still won over a later list with real faces.
2026-11-20 01:01:49 -05: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 86dde45a35 Merge branch 'ppt95' into ppt95-text
# Conflicts:
#	crates/ppt-binary/src/lib.rs
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 01:00:32 -05: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
kiwi4boy 08c85df8b4 Merge branch 'ppt95-text' into ppt95-shapes
# Conflicts:
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 00:54:08 -05:00
kiwi4boy e031ad06a0 ppt95: bound the paragraphs and runs text makes; a centred master title takes its ruler
Each paragraph is about 4 KB and each run about 2 KB, so a text atom of
nothing but paragraph or line breaks made gigabytes from a megabyte of
file. The document's text now makes at most 65,536 of them together and
leaves the rest out, with a warning.

A master's title placeholder of type 0x0F (a centred title) is in the
title family, but only a plain title set the title style's ruler.
2026-11-20 00:53:23 -05: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 40b7358574 Merge commit '051ec4fd' into perf/2218-idml 2026-11-20 06:40:41 +01: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
aiongg 5ed60e5564 craft-ui: a record's clip with no area is Rect::NOTHING
A cut member's shapes record an empty clip that came about in different ways in
different passes; one clip passes nothing.
2026-11-20 05:38:29 +00:00
aiongg 2b3f149afe craft-ui: a record journals each read once
The reads are a set to what reads them. A run that measures a component again (a kept
transcript's check) reads nothing new, so its journal no longer depends on how many
times the pass measured.
2026-11-20 05:38:29 +00:00
aiongg 6b634df42e craft-ui: a scrolling body's real run decides its scroll from the content this pass measured
The measuring run records the content's extent, and the real run takes it at step 5:
whether the content overflows (the wheel, the bars, the strips) and how far it
scrolls. A bar too short for its members takes the wheel from its first frame.
2026-11-20 05:38:29 +00:00
kiwi4boy ec51aa9d1c ppt-binary: slides with their own scheme in the PowerPoint 95 shape tests don't follow the master's
Two tests gave a slide its own colours while it still followed the master's scheme; since the
slide box's flags are read, PowerPoint 95 marks such a slide as not following.
2026-11-20 00:38:13 -05:00
kiwi4boy 82037cf1a0 Merge branch 'ppt95-text' into ppt95-shapes 2026-11-20 00:37:37 -05:00
kiwi4boy 513eecc86c Merge branch 'ppt95' into ppt95-text
# Conflicts:
#	crates/ppt-binary/README.md
#	crates/ppt-binary/src/ppt95.rs
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 00:37:32 -05:00
FredApps 051ec4fd62 Merge pull request #2389 from yoriswind/codex/shared-dpx-export-u8-r1
Avoid widened sample buffers in eight-bit DPX export
2026-11-20 12:36:48 +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 54cb4af7e1 Merge pull request #2396 from yoriswind/codex/shared-dpx-decode-widen-r1
Reduce temporary memory when decoding DPX and Cineon
2026-11-20 12:31:20 +07:00
kiwi4boy cfd19dcf87 Merge branch 'ppt95-text' into ppt95-shapes
# Conflicts:
#	crates/ppt-binary/README.md
#	crates/ppt-binary/src/lib.rs
#	crates/ppt-binary/src/ppt95.rs
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 00:29:58 -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
kiwi4boy 07b7c8b8fb ppt-binary: PowerPoint 95 master text styles, anchoring, spacing and justified text
Paragraph runs give line spacing, space before and space after at +52, +56 and +60: a percentage
of a line, or minus a size in points. Alignment 3 is justified. The text atom's +8 byte holds the
anchoring (top, middle or bottom, and whether it is centred across) and its +4 flags word wrap.
The Environment's 4052 atoms, one per text type, hold the master's styles, five levels each laid
out as the runs are; the title, body and other ones become the master's styles, with the margins
of the ruler the master's title and body name. All of this was learned from files PowerPoint 95
wrote.
2026-11-20 00:25:00 -05:00
aiongg b5f9412055 Merge pull request #2469 from aiongg/drag-value-lag
Value drags rerun only the regions that show the value (photocraft#15859)
2026-11-20 00:22:50 -05:00
aiongg 34cfca1ee9 Merge pull request #2436 from aiongg/next-workspace-ci
ci: use main's workspace workflow on next
2026-11-20 00:21:43 -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
aiongg 19b53c5edd tests: a root's widgets sense what its members sense in the same pass 2026-11-20 05:17:28 +00:00
Martin BallandClaude Opus 5.5 a5f6cd7f6c Test kit: a closed child window leaves the next frame's input
The windows kit listed every child that ever ran a pass in each later
input, so a closed window stayed live with what its last pass left. Since
c8fe2cf86 a modal cover records itself from its first pass, so a window
closed right after its first modal pass (a Save prompt answered at once)
kept blocking the root's close in later frames. An integration drops a
viewport egui no longer outputs; the kit now does too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 05:16:35 +00: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
aiongg 4953aafdf9 craft-ui: a root's widgets take this pass's member senses once its body has run
Step 8 registers the root's own sense and its parts'. After paint_over, every member
of its arena has joined, and the root's widget and its transformed body's forwarding
widget take the members' senses (egui ORs the sense of a widget registered again in a
pass). A press's untargeted check reads the root widget's sense from the pass egui's
targets come from. The union of last pass's members goes.
2026-11-20 04:58:01 +00:00
Dylan M. Taylor a6e9a7e6c5 craft-pdf: add font wire builders (FontDescriptor, font stream, CID, ToUnicode) (#2499)
* craft-pdf: add font wire builders (FontDescriptor, font stream, CID, ToUnicode)

* craft-pdf: match Object::Stream in wire unit test

* craft-pdf: split doc.add borrow in wire unit test
2026-11-19 23:56:13 -05:00
FredApps c0eb1b6277 Merge pull request #1162 from keithcsqueensu/math-ports
craft-math: linear-format and OMML writer fixes (ports of wordcraft#6080–#6085, #6230, #6236)
2026-11-20 11:55:26 +07:00
Martin BallandClaude Opus 5.5 5d6a3ef6ea Merge follow-up: the page view leaves room for its rulers without Canvas::show_rulers
Upstream 650694d5a removed Canvas::show_rulers and clips a canvas body to its view. PageView::rulers(on) now shows the canvas inside the ruler strips (Rulers::strips), so the view is inset as before, and runs the app body with the clip opened over the strips, where PageRulers show at PageBody::rect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:53:30 +00:00
Rees f2adcfc70c Proofing #3656: index spelling MAP lookups 2026-11-20 05:49:52 +01:00
Dylan M. Taylor b92907f69d idml: add reusable schema emission helpers for remaining IDML parts (#778) (#2501)
* idml: add reusable schema emission helpers for remaining IDML parts (#778)

* fix(idml): remove duplicate push_prefixed_attrs on FillValues
2026-11-19 23:48:59 -05:00
Dylan M. Taylor 4e1983238a Merge branch 'main' into feat/audio-dsp 2026-11-19 23:48:41 -05:00
Dylan M. Taylor c470ed170d hayro-interpret: restore FormXObject RESOURCES presence check and Indexed image recovery in x_object.rs (#2497)
* hayro-interpret: port remaining pdfcraft resource-scope, indexed-image, and text-clip patches

* hayro-interpret: keep craft-libs resource-scope and text contracts; retain x_object.rs fixes
2026-11-19 23:46:01 -05:00
Rees 0b26d31fec RTF #2915: preserve prior paragraph layout in tracked changes 2026-11-20 05:45:58 +01:00
aiongg 0ca4fd7c26 craft-ui: a modifier read reruns the settled component that read it
Cx::modifiers read the pass's modifiers without a record, so a settled region
whose component painted by them (a menu bar underlining its mnemonics while Alt is
held) replayed its last paint until something else ran it. The read is now noted
under BindKey::Modifiers, and the pointer's begin hook notes an edit of that key
when the pass's modifiers, latched ones included, differ from the last pass's: the
regions that read them run in that frame, as for any edited value.

Part of storytold/photocraft#15476.
2026-11-20 04:41:35 +00:00
Dylan M. Taylor 380a2f79f6 craft-sbs: share SBS package/schema read/write, sniffing, URI resolution, and embedded codec (#2496)
* sbs: add craft-sbs crate for SBS package/schema read/write

* craft-sbs: fix roxmltree 0.21 ParsingOptions and test imports
2026-11-19 23:40:51 -05:00
aiongg b83509532e Preset picker: the caption range sizes the field as a number field does
The field measured its face over both formatted ends of the range, in the
caption's proportional figures, so a value between them could still be wider
(4888 beside 5000) and change the chip's width. caption_range now names the
numeric range and decimal places of the caption; the field measures with
NumberCodec::widest of that range, and a face's thumbnail caption shows in
tabular figures, so the widest text is the widest number whatever its digits.
BrushPresetPicker writes its caption with the same codec.

Part of storytold/photocraft#15476, for storytold/photocraft#15859.
2026-11-20 04:39:56 +00:00