Commit Graph
7039 Commits
Author SHA1 Message Date
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
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
haranishi 4df6107dba Merge next to pick up the design lint fix 2026-11-20 15:33:30 +09:00
haranishi 3cbd10a228 Use the theme field color for the status zoom 2026-11-20 15:33:26 +09: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
aiongg d368d684c9 tests: a bar member's shown part is its interact rect
A member the bar cuts keeps its whole rect as its response rect; the part
the bar shows is the rect egui senses it in.
2026-11-20 06:19:22 +00: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
kiwi4boy 1cf315b637 ppt95: text insets follow the unturned box; a balloon's text ends at its body
A shape turned a quarter before its text was typed holds its box and its
text rectangle turned (probes rot90thentext and rot90arrowtext). The
shape's box is turned back, so the insets now move to the unturned box's
edges with it. A balloon's box is its body, so its bottom inset is now
measured from the body's bottom (balloontext).

The samples test now reads the slide size from each file's DocumentAtom,
matches outlines vertex by vertex in order, reads rectangle records as
outlines too, and fails on a rendering it can't read. Tests that skipped
their checks on a missing slide or shape now fail instead.
2026-11-20 01:12:08 -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
aiongg f43fb4e2c2 craft-ui: a root's egui widget takes its whole rect and egui clips its interact rect
As egui's own widgets do (Response::rect and interact_rect): a root its
clip cuts reports and reveals where it is, and egui's hit test uses the
part inside the clip. Widening a widget's sense checks its interact
rect; a secondary release opens a press opener only inside it.
2026-11-20 06:08:46 +00:00
aiongg 16952f629e tests: a tab strip places its tabs by their measure in its first frame, and reports the rects it places
The frame-0 trial uses a panel strip too narrow for its tabs that takes
its measured height, so it fails without the measure ahead. The report
trial checks tab_rects in the frame a title changes.
2026-11-20 06:08:46 +00:00