Commit Graph
8520 Commits
Author SHA1 Message Date
Martin BallandClaude Opus 5.5 e5ac84f5f5 platform: Apple open events pass the paths through without a same-type conversion (macOS clippy)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 08:27:24 +00:00
aiongg 0383e19b70 Keep a composite's faces out of the layout memory
A face measured by MeasureCx::face is part of its composite's measure
call: that call's answer and the inputs the faces read are the record
the layout memory keeps and checks. The face recorded a leaf of its own
under one id shared by every face of the composite, so only the first
face was kept, and a change to it that left the composite's size alone
dropped the kept measurements and asked for a discard pass.

measure_face measures a face as measure_under does, without the leaf.
2026-11-20 08:18:48 +00:00
aiongg ef1a365006 Lay out a text measured at its least once
TextRun::least (MeasureCx::least) returns the run laid out whole with its
least width, so a text measured at Proposal::Min no longer lays the whole
line out a second time for its height. A fitted select face takes its cap
from the same call. A select of 29 blend modes plus the mixed word lays out
56 texts per Min ask instead of 86.
2026-11-20 08:05:28 +00:00
aiongg e69f80e8a3 gallery tests: a story value edit runs its card in the frame of the edit 2026-11-20 08:04:20 +00:00
aiongg 0033d0c7b3 craft-ui: a kept run replays only on the font atlas it ran on
egui clears the font atlas when it fills up and rebuilds it for new text options; a kept galley's glyphs then name
other glyphs. lazy::Place holds the atlas generation (egui Fonts::atlas_generation, aiongg/egui memo-atlas-generation
dd086c7f29), so the one rule for kept paint covers it. Trial: a settled view runs after the atlas is rebuilt.
2026-11-20 08:04:19 +00:00
aiongg 417460a887 tracked: two Tracked values are equal when what they hold is
The mock's document holds a Tracked view and stays a story value, which compares by value.
2026-11-20 08:04:19 +00:00
aiongg 22835c7cf2 stories: format the scripted binds 2026-11-20 08:04:18 +00:00
kiwi4boy 8f14a19169 ppt95: share the trapezoid outline with the PowerPoint 97 path
#2492 landed, so the PowerPoint 95 path's copy of OfficeArt's trapezoid
outline now uses geom::trapezoid. A negative adjust value is 0 on both.
2026-11-20 02:56:26 -05:00
kiwi4boy c53d43acd1 Merge branch 'ppt95-text' into ppt95-shapes
# Conflicts:
#	crates/ppt-binary/src/geom.rs
2026-11-20 02:56:01 -05:00
kiwi4boy bb829867fa Merge remote-tracking branch 'origin/main' into ppt95-text 2026-11-20 02:54:29 -05:00
aiongg 07bc5387be gallery mock: the document's view is Tracked
The canvas, the Navigator and the status bar's zoom show and edit it, so they bind it by its source.
2026-11-20 07:43:21 +00:00
aiongg 13764666ac stories: bind story values through StoryData::bind
Scripted: Bind::bound(data.value(..)) becomes data.bind(..) and Bind::bound(data.ranged(..)) data.bind_ranged(..).
2026-11-20 07:43:21 +00:00
aiongg 906be95f25 craft-ui: kept records hold no read of a place by address; Tracked bindings key by source
A place's address names it in its pass only: a record kept for a later pass (a memoized view's) keeps no
BindKey::Place read and its replay notes none, while a measure-only record used within its pass keeps them.
State more than one part shows or edits is Tracked: a bind_tracked! binding keys by the value's source and the
field's offset (BindKey::Tracked), in its read, its edit and its memo key, so a replay in a later pass re-notes the
read and an edit later in the pass reruns it. StoryData::bind binds a story value the same way, and the Properties
editor binds and notes its edits through it. The memo_settled reader and editor share a Tracked value.
2026-11-20 07:42:50 +00:00
kiwi4boy 05121acf29 ppt95: decide upright text from the shape's final angle
Whether a shape's text is upright was decided from the quarter-turns
before shape::geometry ran, but geometry gives a mirrored trapezoid a
half-turn of its own, so its text turned upside down with it. The text
is now upright, at its own angle, whenever the shape ends at any other
angle. Probes of trapezoids turned and flipped before and after their
text was typed all end at the text's own angle, as PowerPoint 95 drew
them.
2026-11-20 02:37:52 -05:00
aiongg ae4c4b0679 tests: format 2026-11-20 07:35:33 +00:00
aiongg 5098b0e3ea tests: drop the overflow trial that a bar trial already guards
bars::overflow::a_bar_too_short_for_its_members_takes_the_wheel_from_its_first_frame fails without the real run's
extent; the scroll trial passed with or without it.
2026-11-20 07:31:57 +00:00
aiongg 8af8aeffad craft-ui: a record's journal holds what its real run registered, not its measuring runs
A body inside a memoized view measures only in some passes, and what a measuring run hands forward lives in the
body's kept transcript. The journal took those entries too, so a replay added a measuring sweep's registrations in a
pass that measured nothing. Trial: a view whose body measured in its run replays as a run with the audit on.
2026-11-20 07:31:57 +00:00
aiongg afbb2d66b0 craft-ui: a number field whose value is not finite has no numeric value in its node
It shows the dash, as a mixed field does. A NaN numeric value also never equals itself in a node comparison.
2026-11-20 07:31:57 +00:00
aiongg d5ea6a0e53 craft-ui: a memoized view's run in a pass egui will discard keeps no record
egui paints nothing of a pass it will discard (Painter::is_visible is false in it), so a run there registers invisible
widgets and no nodes; a shown pass's replay of that record lacked them. The kept record stays the last shown pass's, a
settled view still replays in such a pass, and the replay audit skips it. Trial: a settled view replays through a
discarded pass, and new props there run the view again in the shown pass.
2026-11-20 07:31:57 +00:00
kiwi4boy 91032e78b0 Merge branch 'ppt95-text' into ppt95-shapes 2026-11-20 02:23:26 -05:00
kiwi4boy 6571b28594 Merge branch 'ppt95' into ppt95-text 2026-11-20 02:23:15 -05:00
kiwi4boy b122ba51dd ppt-binary: a PowerPoint 95 slide whose SlideAtom was cut short is lost too
A stream cut just after the SlideAtom's header left an atom with no
body, which counted as kept: the slide read blank and nothing was named
lost. A slide is now kept only when its atom gives its id and its
master's.
2026-11-20 02:23:13 -05:00
kiwi4boy ebd664b8be ppt95 tests: read each WMF record within its size; drop only repeated outline vertices
The samples test's WMF reader took a polygon's points and a rectangle's
sides at fixed offsets, so a record shorter than its count read on into
the next one. Each record is now sliced to its stated size and skipped
when its values don't fit.

The outline matcher merged neighbouring vertices within the pen's
tolerance before comparing, so a narrow rectangle drawn with a wide pen
lost the corners of its short edges. Only exact repeats are dropped now;
the tolerance is for the comparison.
2026-11-20 02:14:43 -05:00
kiwi4boy 3d9992410d Merge branch 'ppt95-text' into ppt95-shapes
# Conflicts:
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 02:13:34 -05:00
aiongg c3c1ef70ad craft-ui: a scrolling body's measuring run lays its content out beside the bars, and again at full view when it fits
The first sweep takes the view an overflowing body shows; content that fits leaves another view, so the sweep is
taken back through the draft journal (lazy-store writes included) and runs once more there. The body's measure no
longer keys on the last pass's extent. Trials: the first frame lays content out at the settled width, and an
overflowing body's settled memoized children run no measuring run when the body measures again.
2026-11-20 07:13:24 +00:00
kiwi4boy ed6d273e05 ppt-binary: an empty footer gives its look from its end mark; cap point spacing at DrawingML's
The footer row's look came from its first run, so an empty footer, date
or slide number placeholder (no runs once normalized) gave none. It now
falls back to the paragraph's end mark. This is the shared helper, so
both paths take it.

PowerPoint 95 point spacing was capped at 4000 pt, but DrawingML holds at
most 1584 and the writer clamps to that, so a larger value changed on
export. It is now capped at 1584.
2026-11-20 02:13:09 -05:00
kiwi4boy 7fd97515a7 Merge branch 'ppt95' into ppt95-text
# Conflicts:
#	crates/ppt-binary/src/ppt95/tests.rs
2026-11-20 02:11:30 -05:00
kiwi4boy f09e70f281 ppt-binary: a PowerPoint 95 slide cut off after its header is left out and named as lost
PowerPoint 95 writes a slide's SlideAtom first. A slide record without
one is what a file cut just after the slide's header leaves; it read as
a blank slide, and import_checked reported nothing lost. It is now left
out, as the PowerPoint 97 path leaves out the slides it lost, and named
by its position.
2026-11-20 02:11:02 -05:00
kiwi4boy 883fafe72a ppt95: text in a turned box keeps its own angle
PowerPoint 95 lays a shape's text out in the box the geometry holds,
turned by the text's own angle (4003 +16, the geometry's own angle in
every probe). Quarter-turns folded into that box don't turn the text: a
shape turned a quarter before its text was typed draws it upright, and
one turned on to 120 degrees after that draws it at 30 (probes wrap-before,
wrap-mix, wrap-arrow, with word wrap set in the Text Anchor dialog).

When the shape's box is turned back, its text is now upright at that
angle, with its insets on the held box's edges. That replaces remapping
the insets: in PowerPoint 16, upright text with these insets breaks into
the same lines at the same places as PowerPoint 95's renderings, while
remapped insets put an up arrow's text 18 pt off. A balloon's body cut is
taken from whichever edge of the held box its tail is on.
2026-11-20 02:05:01 -05:00
Dylan M. Taylor e460d3a4ad Framework fwb7-a: F-116 builder, F-117, F-118 (see runs/fwb7-a.md) 2026-11-20 02:04:51 -05:00
haranishi 3693274e82 Restore the preset layout of the New Document dialog 2026-11-20 16:01:25 +09: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
kiwi4boy 261b6e7a75 Merge branch 'ppt95-text' into ppt95-shapes 2026-11-20 01:49:23 -05:00
kiwi4boy c9eba77824 ppt-binary: a paragraph's end mark keeps the formatting at its CR, on both paths
Both paths gave a paragraph's end mark the formatting of its first
character. PowerPoint reads it from the character run at the CR (or at
the text's end for the last paragraph): a .ppt PowerPoint 16 saved, with
'AB\rCD' at 24 pt and only the first CR at 40, opens with that paragraph's
endParaRPr at 40. PowerPoint 95 gives the CR a run of its own when it
differs, so its path reads the same position.
2026-11-20 01:49:15 -05: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
haranishi 523e2fb2c5 Validate process channel deletion against the current row 2026-11-20 15:46:50 +09:00
haranishi 3e80f5bd3a Reserve the document scrollbar corner for chrome 2026-11-20 15:46:45 +09: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
haranishi a912ccf14a Preserve menu-local repainting when replacing a submenu 2026-11-20 15:35:16 +09: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
haranishi 37c7ad58c5 Merge next to pick up the design lint fix 2026-11-20 15:33:52 +09:00
haranishi 942904d61d Merge next to pick up the design lint fix 2026-11-20 15:33:48 +09:00
haranishi c0cca55370 Merge next to pick up the design lint fix 2026-11-20 15:33:44 +09:00
haranishi f3c16efa1f Merge next to pick up the design lint fix 2026-11-20 15:33:40 +09:00
haranishi 38fd086d32 Merge next to pick up the design lint fix 2026-11-20 15:33:35 +09:00