Commit Graph
8520 Commits
Author SHA1 Message Date
Dylan M. Taylor fe695b930f Merge branch 'pdf-port/fwb5-a' into pdf-port/followups 2026-11-20 00:21:40 -05:00
Dylan M. Taylor 5dd342b274 Framework fwb6-a: port follow-ups (see runs/fwb6-a.md) 2026-11-20 00:21:40 -05:00
Dylan M. Taylor 4658409655 Framework fwb5-a: port follow-ups (see runs/fwb5-a.md) 2026-11-20 00:21:40 -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
kiwi4boy 79127c3c5a ppt-binary: PowerPoint 95 freeforms and groups
Freeforms (3016) now read as custom paths in their box: a move to the
first point and lines to the rest from the 3035 points, closed when the
low byte of the 3017 flag is 1, with the fill, line and shadow of their
format and, when open, the arrowheads of their 3007 atom. Points are
capped at 8192 and never read past their record; a freeform of fewer
than two points is left out. Their format's angle is not read.

Groups (3001) read as groups of their members, which keep their
absolute slide places: the group's box is the union of its members'
and is also its child space. Members are read as the page's objects
are, groups included, nested at most 32 deep, and count towards the
page's object cap.
2026-11-19 23:34:47 -05:00
aiongg eb8ac21eda tests: a label change runs its tab row once; a reveal measures again the rows the lead moves between
The tab row measures the new label before it places its tabs, so the
frame runs one pass and no discard pass runs the row again. A row whose
measured state the pass changes after step 5 measured it is measured
again with its new state.
2026-11-20 04:33:13 +00:00
aiongg 49f60f8a12 craft-ui: a collection's measure ahead is its own content, as its largest-row probe is
The rows' measure at step 5 runs under a layout memory boundary: no
transcript around takes its records, so a body's kept transcript serves
a settled frame as it did before the rows were measured there.
2026-11-20 04:33:13 +00:00
Dylan M. Taylor a7c6c9d61c image-codecs: extract JPEG and JP2 embedding probes (#2498) 2026-11-19 23:32:11 -05:00
Dylan M. Taylor f4c242fe21 test(raw): ensure CARGO_TARGET_TMPDIR exists in decode_report FixtureDir (#2502) 2026-11-19 23:32:07 -05:00
Martin BallandClaude Opus 5.5 9e099b475a Merge craft-libs next 3e9bbdff1 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:29:29 +00:00
aiongg 3e9bbdff11 Merge pull request #2487 from aiongg/clipboard-wasm-imports
Clipboard: craft-platform's clipboard feature builds for wasm32
2026-11-19 23:24:47 -05:00
Martin BallandClaude Opus 5.5 5dda594ad1 Merge craft-libs next 3e85f5975 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:24:38 +00:00
aiongg c6a1e2a372 Merge pull request #2470 from aiongg/canvas-view-clip
Clip a canvas's body to its view; the canvas shows its rulers
2026-11-19 23:24:05 -05:00
Dylan M. Taylor cfcc86242d ps(write): add line style, smooth shading, and image stream helpers (#2500) 2026-11-19 23:23:02 -05:00
FredApps ccd4ae3887 Include DDS texture cases in one integration binary 2026-11-20 05:17:04 +01:00
aiongg 247860db6d craft-ui: a roving group's owner writes its members' set positions
A member that gives no place of its own marks its stop at its report;
the group's owner, at its report after its body ran, writes each marked
member's position and set size from this pass's members. The mark is on
the stop record, so a replayed member carries it. Nothing reads last
pass's stops for a set position.
2026-11-20 04:16:58 +00:00
aiongg 6432fde0ec craft-ui: a collection measures its rows in view before it sizes itself
Step 5 measures the auto rows in the view the collection takes that this
pass has not measured, widths first, then heights, and sizes and places
the rows by that measure. The measuring run and the real run of a pass
share one measure through the pass stamp on the lazy store's row entry;
the content step measures only the rows it brings in itself and the rows
whose measured state this pass's input changed, and a size other than
the one the pass placed by asks for the frame's discard pass.

The row env and the row state known before input are one function each,
shared by the measure and the content step. ItemCx documents the
row-hook contract.
2026-11-20 04:16:58 +00:00
Dylan M. Taylor d0193d7e94 craft-rtf: add OutlineWriter for PowerPoint-compatible Outline/RTF (refs #778) (#2494) 2026-11-19 23:15:41 -05:00
aiongg 3e85f5975a Merge pull request #2468 from aiongg/tool-overlay-clip
Brush tip outlines show only inside the canvas view (photocraft#15863)
2026-11-19 23:15:06 -05:00
FredApps 9118f7ff50 Include DXF line and pattern tests in integration suite 2026-11-20 05:14:50 +01:00
FredApps 4041815638 Merge remote-tracking branch 'origin/next' into perf/2218-raster 2026-11-20 05:14:46 +01:00
aiongg a726e8a570 Merge pull request #2476 from aiongg/submenu-lag
Menus: a submenu row hover repaints only the menu
2026-11-19 23:14:23 -05:00
kiwi4boy c8e440d125 ppt-binary: PowerPoint 95 rotation direction, orientation bits, the other 12 autoshapes and shadow offset
PowerPoint 95 measures angles counter-clockwise, so every angle is now
negated into DrawingML's clockwise rot. For shape codes of 0 and up the
transform comes from the geometry alone: the byte above the code holds
counter-clockwise quarter-turns and a horizontal mirror made after them,
which become a clockwise rot and a horizontal flip, with the box turned
back after an odd number of quarters. The rectangle, rounded rectangle
and ellipse keep taking the angle from the format, without flips. A
mirrored trapezoid is the outline wide at the top, turned a half-turn
further and unflipped, so its text stays upright; otherwise it is the
trapezoid preset.

Codes 9 to 14, the object model's shapes 13 to 24, read as right arrows
(the arrow and thick arrow, in all four directions), home plate, cube,
balloon and seal, with adjust values matched to what PowerPoint 95 drew.
A code no probe showed is a rectangle with its fill, line and text. The
shadow now falls by the format's offset at +36 and +40, clamped to 10 in,
and is half transparent when +29 says so.

The sample check compares each straight outline against the polygon in
the rendering PowerPoint 95 saved beside its file.
2026-11-19 23:13:46 -05:00
FredApps c3c01fc11d Merge remote-tracking branch 'origin/next' into perf/2218-dxf 2026-11-20 05:13:45 +01:00
FredApps 4e0a3d5313 Keep memo token comparison within style 2026-11-20 04:56:51 +01:00
Martin BallandClaude Opus 5.5 bc4bb7bd73 Merge craft-libs next 7efbe8bb6 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:53:30 +00:00
aiongg 3625da9073 Merge storytold next into next-workspace-ci 2026-11-20 03:52:02 +00:00
kiwi4boy e6c282e942 ppt-binary: PowerPoint 95 line styles, dashes, arrowheads, flips and quarter-turn rotation
PowerPoint 95 shapes now take their angle and both flips from the format
record (3005 +48 and +52) rather than the geometry, which holds the outline
as drawn: whole quarter-turns are folded into its box, so a box turned an
odd number of them is turned back about its centre. Lines read their width
from the line style (1 to 10 pt), their dots and dashes, and on lines the
start and end arrowheads from the 3007 atom. The shadow colour comes from
+30, with the scheme's shadow slot by default. The trapezoid, wide at the
top, is now its own outline instead of a flipped preset, so a user's flip
applies on top. Shadow offsets are still fixed at 6 pt.
2026-11-19 22:49:03 -05:00
Dylan M. Taylor d7a1a6aec6 Merge branch 'main' into feat/audio-dsp 2026-11-19 22:48:18 -05:00
kiwi4boy b8879a2b0c ppt-binary: OfficeArt trapezoids face the right way (#2491)
OfficeArt's trapezoid (shape type 8) is wide at the top; DrawingML's trapezoid preset is wide at
the bottom, so mapping one to the other turned the shape upside down. It is now the custom outline
PowerPoint writes when it saves such a shape as .pptx: the full width along the top, the bottom
inset by the adjust value (5400 by default, clamped to 0-10800). Text in it stays upright.
2026-11-19 22:39:29 -05:00
aiongg 7efbe8bb61 Merge pull request #2478 from aiongg/menu-gate-memo-key
menu: Gate and ModalRules key the runtime's command gate
2026-11-19 22:36:31 -05:00
aiongg 4c99a71f0f Merge pull request #2477 from aiongg/next-sync-1120
Merge storytold main into next (20 Nov sync)
2026-11-19 22:35:47 -05:00
Dylan M. Taylor 057b0e3e01 fix(media): custom ftyp compatible brands and real ReferenceBlock deltas (#2486)
* fix(media): support custom ftyp compatible brands and real ReferenceBlock deltas

* fix(media): satisfy clippy::chunks_exact_to_as_chunks in ftyp test
2026-11-19 22:34:35 -05:00
Martin BallandClaude Opus 5.5 6eb08ef180 wasm: gate craft-print cancel token and craft-font-manager store imports off wasm32
On wasm32 the spooler-only `Cancel` internals (SENDING, CANCELLED_MESSAGE, start_sending)
and the SuiteStore imports (Arc, Catalog) were never used. They follow the same cfg as
their users, so the wasm check has no dead-code or unused-import warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:31:52 +00:00