Commit Graph
2291 Commits
Author SHA1 Message Date
aiongg bc9b89fc68 Integration: #782 nests a heading under its parent when it is shallower than the heading before it 2026-10-13 19:14:29 +00:00
aiongg 1486f82212 Merge #782: EPUB: the navigation lists the headings, with a title in the book's language
# Conflicts:
#	crates/engine/src/cmd/export.rs
#	crates/epub/src/lib.rs
2026-10-13 19:14:13 +00:00
aiongg c3b3927ef2 Integration: #780 closes an open list or pre block before a footnote or a table 2026-10-13 19:12:37 +00:00
aiongg efbd516ee7 Merge #780: EPUB/HTML: list paragraphs share one ul/ol, and pre lines one block
# Conflicts:
#	crates/epub/src/lib.rs
2026-10-13 19:12:15 +00:00
aiongg d6ecd3d2b4 Merge #779: EPUB/HTML: anchored objects are exported where they are anchored
# Conflicts:
#	crates/epub/src/lib.rs
2026-10-13 19:11:12 +00:00
aiongg 033611d518 Integration: cargo fmt 2026-10-13 19:09:21 +00:00
aiongg 6477435e81 fix(transform): rotate and flip turn about the chosen reference point 2026-10-13 19:08:36 +00:00
aiongg ee2c450829 Merge #789: Styles: name the attributes in the params docs, and a wrong one in the command's error
# Conflicts:
#	crates/engine/src/cmd/style.rs
2026-10-13 19:07:52 +00:00
aiongg 258fd2d7c9 Integration: CMYK TIFFs with alpha report their pixel size (from #830) 2026-10-13 19:07:39 +00:00
aiongg 891e29ea92 Integration: #816's test (eyedropper ignores inactive states of a multi-state object) 2026-10-13 19:07:03 +00:00
aiongg 6eae3620ed Integration: #783 reads the cover image with a size cap (256 MiB), devices included 2026-10-13 19:07:02 +00:00
aiongg 3cb3f342c8 Integration: #812's test (overset preflight names the page of a frame in a moved group) 2026-10-13 19:07:02 +00:00
aiongg 73112e882f Merge #783: EPUB: real modified time, a stable unique identifier, and a cover image file
# Conflicts:
#	crates/engine/src/cmd/export.rs
#	crates/epub/src/lib.rs
2026-10-13 19:06:49 +00:00
aiongg 5917b24aaa Integration: #819 a pasted missing graphic always gets a fresh asset id from the target 2026-10-13 19:06:46 +00:00
aiongg 0016b8260e Merge #819: Keep a missing graphic missing when it is pasted into another document (#720)
# Conflicts:
#	crates/engine/src/cmd/object.rs
2026-10-13 19:06:14 +00:00
aiongg c24f658ab6 Merge #828: Compose: spaces at the end of a paragraph take no room on the line
# Conflicts:
#	crates/compose/src/tests.rs
2026-10-13 19:05:35 +00:00
aiongg 8f54d1cce4 Integration: #787 refuses bitmap-only fonts for embedding, and styles name the face's numeric weight 2026-10-13 19:05:28 +00:00
aiongg 693ca18713 Merge #807: Preferences: OK without vertical units keeps them
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
2026-10-13 19:05:24 +00:00
aiongg 71fecf8ad5 Merge #820: fix(geom): decompose of a flattened transform reports 0 shear instead of NaN 2026-10-13 19:04:34 +00:00
aiongg 7894699eaf Integration: #818 the document grid setting also drops the background render 2026-10-13 19:04:33 +00:00
aiongg 11e4a7f60e Merge #787: EPUB/HTML: generic font fallback from the font's class, and optional font embedding
# Conflicts:
#	crates/engine/src/cmd/export.rs
#	crates/epub/src/lib.rs
2026-10-13 19:04:24 +00:00
aiongg 6409cae252 Integration: #785's test builds Asset and Graphic with next's fields 2026-10-13 19:03:47 +00:00
aiongg 769b7f56d0 Merge #818: fix: drop the background render when a display option changes (#730) 2026-10-13 19:03:42 +00:00
aiongg 8a4dac7faa Merge #815: fix(pdf): leave form fields and media out of PDF/A-2b exports (#743) 2026-10-13 19:03:42 +00:00
Govinda RoyandClaude Opus 5.5 82ffb692fc INDD: graphics whose linked file is missing show InDesign's preview
An InDesign document holds a screen preview of each placed graphic, which
InDesign shows while the linked file is missing. indd-utils returns them
beside the IDML (`Conversion::previews`); opening an .indd now passes them
to the importer through `import_idml_report_with_previews`, and a graphic
whose file neither the package nor the folder provides takes its preview.
The graphic keeps its link, so relinking replaces it; IDML import without
previews is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 01:03:19 +06:00
aiongg 732008dd5a Merge #814: fix(render): cap the failed-image cache at 64 entries (#728)
# Conflicts:
#	crates/render/src/images.rs
2026-10-13 19:02:10 +00:00
aiongg 5f3a2fbb61 Merge #785: EPUB/HTML: no file name as alt text, readable image names in the package 2026-10-13 19:02:00 +00:00
aiongg 54c467a779 Merge #813: MCP: render_page and screenshot are not read-only because they can write to path (#733) 2026-10-13 19:01:57 +00:00
aiongg ffcf6e1c78 Merge #810: Images: reject EPS bounding boxes with nonfinite corners or size (#740) 2026-10-13 19:01:57 +00:00
aiongg c154b4325b pdf: right-to-left tests read UTF-16 units with as_chunks (clippy 1.99) 2026-10-13 18:46:47 +00:00
aiongg b4f7286482 Merge text-autosize: opening a file keeps its auto-size frame sizes (#632)
# Conflicts:
#	ROADMAP.md
#	crates/engine/src/cmd/interchange.rs
#	docs/gaps.md
#	docs/target-app-parity.md
2026-10-13 18:40:15 +00:00
aiongg 935741d47c Text frames: opening a file keeps its auto-size frame sizes 2026-10-13 18:40:01 +00:00
moppeeerandClaude Opus 5.5 dc712baeca fix(color): gradients between process colours blend as inks, as InDesign shows them
LYH Studio episode 6 builds every gradient from C=0 M=100 Y=0 K=0 to
C=100 M=0 Y=0 K=0. InDesign blends a gradient's process stops as inks:
halfway is C 50 M 50, a light lilac. DesignCraft converted both ends to
RGB and blended there, so the middle came out a darker violet (117, 88,
189 instead of 135, 119, 181), and every Episode 6 gradient looked
different. A midpoint between CMYK stops also became an RGB colour, so
the PDF shading turned RGB with a conversion warning.

- color: `Color::lerp` blends CMYK with CMYK (or grey), and grey with
  grey, in ink space; anything with RGB still blends in RGB.
- `Gradient::display_stops`: the expanded stops plus samples through
  each span that isn't RGB at both ends, for renderers that interpolate
  in RGB; the screen renderer uses it.
- pdf: a midpoint's expanded stop now keeps the stops' space; the
  colour-space test expects no conversion for CMYK or grey midpoints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:38:38 +02:00
noah1400 ba4519c382 Preferences: Story Editor size stays finite and in range (#821)
Preferences OK stored whatever number the dialog held as the Story
Editor font size. One that is not finite ("nan", "inf", or a number
too large for an f32) was written to ui.json as null; the next launch
could not read the file, started with the default UI settings and
saved them over it on exit. The size is now kept between 8 and 36 pt,
the slider's range, and a value that is not a finite number leaves
the size as it was.
2026-10-13 20:31:54 +02:00
Govinda RoyandClaude Opus 5.5 677cafbf9c Images: EPS shows through its proxy at display time; simple PostScript (QR codes) is drawn
An EPS that came in with a document (InDesign embeds its QR codes as
EPS) drew nothing: only File › Place converted EPS to a proxy. Now
`decode_rgba` draws any EPS through `eps_proxy` and `natural_size` measures
it by its bounding box in points, so screen, PNG and PDF show it while the
document keeps the EPS itself.

`eps_proxy` also draws PostScript that only fills rectangles in solid
colours (setcmykcolor, setrgbcolor, setgray, rectfill and procedures that
stand for them, as InDesign's QR codes are written), at 8 px per point so
modules stay crisp. Anything else keeps the preview or placeholder. Input is
bounded: tokens, rectangles, painted area and procedure definitions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 00:26:02 +06:00
moppeeerandClaude Opus 5.5 d49d7c4ea0 i18n: keep the new Window menu strings beside Workspace
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:18:14 +02:00
moppeeerandClaude Opus 5.5 0a34316b82 feat(ui): Window menu in InDesign's order; Window > Workspace with Essentials Classic
LYH Studio episode 6 starts with "Window > Workspace > Essential
Classic" and opens panels with "Window > Color > Gradient & Swatches".
DesignCraft's Window menu had no Workspace or Color submenu (panels sat
in one "Panels" list) and no Essentials Classic workspace.

- Window menu: Arrange, Workspace, then the panels alphabetically with
  InDesign's groups (Color: Color, Gradient, Swatches; Editorial;
  Interactive; Object & Layout; Output; Styles; Type & Tables;
  Utilities). Every panel stays reachable; Next/Previous Document moved
  into Arrange.
- Window > Workspace: the built-in workspaces as "[Essentials]", the
  current one checked, Reset <current>, New Workspace. The app bar's
  switcher uses the same list and order.
- Essentials Classic: the Control panel, no Properties stack, and an
  icon column of named panel groups ([Pages, Layers, Links] [Stroke,
  Color] [Swatches] [Effects] [Paragraph] [Text Wrap] [Character
  Styles, Paragraph Styles] [Gradient]); Window > Pages opens Pages
  from its group. Saved workspaces keep the groups.
- Flyouts and floating panels name Pages, Layers and Properties.
- Translations for Editorial, Object & Layout, Styles and Essentials
  Classic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:16:51 +02:00
Govinda RoyandClaude Opus 5.5 7e344e85f1 Compose: spaces at the end of a paragraph take no room on the line
The paragraph composer counted a trailing space (or several) before the
paragraph end or a forced line break in the line's width, so "2 VOOR " in a
frame exactly as wide as "2 VOOR" broke before "VOOR" and the frame went
overset. InDesign lets those spaces hang past the edge. They now add no
width; the line's visible range already left them out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 00:16:42 +06:00
moppeeerandClaude Opus 5.5 bdf66d7749 feat(ui): Gradient panel in InDesign's layout; swatches drop onto its stops
LYH Studio episode 6 (1:36-2:05) builds its gradient in the Gradient
panel: it drags C=0 M=100 Y=0 K=0 from the Swatches panel onto the left
stop, drops C=100 M=0 Y=0 K=0 on the ramp (a new stop at 68.636 %), then
drags the black stop off. DesignCraft's Gradient panel took no swatches,
showed only a hint until the fill was a gradient, and laid out its
fields differently.

- Gradient panel: InDesign's layout (thumbnail; Type; Location % and
  Angle; Reverse; the ramp with midpoint diamonds above and stops below).
  Until the fill is a gradient it shows the default White -> Black ramp;
  clicking the thumbnail or using the ramp starts one. Midpoints drag
  and take a Location. A stop's colour picker moved to its right-click
  menu, so selecting a stop no longer grows the panel.
- Swatches panel rows are drag sources (the chip follows the pointer):
  dropped on a stop a swatch colours it, elsewhere on the ramp it adds
  a stop there.
- Stops keep their colour model through panel edits (CMYK used to turn
  into hex RGB whenever a stop moved).
- engine: `object.gradient` stops accept `swatch` (its colour; gradient
  swatches and [None] are refused) and colours accept `{gray}`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:02:45 +02:00
moppeeerandClaude Opus 5.5 ac54c8faf7 feat(text): gradient swatches on text, laid across the frame as in InDesign
LYH Studio episode 6 (8:28) gives the "1969" headline the "New Gradient
Swatch" (magenta → cyan) from the Swatches panel. InDesign runs a gradient
on text across its text frame's box. DesignCraft resolved a character
fill to one solid colour, so a gradient swatch drew no text at all.

- render: a character fill or stroke that names a gradient swatch is
  painted with that gradient over the frame's box in text space (type on
  a path: the path's box).
- pdf: text runs take a gradient paint: the shading is laid out in the
  frame's text space and mapped into each run's origin, so skew and
  horizontal scale don't bend it; outlined runs and type on a path too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 19:30:55 +02:00
Tomasz LewandowskiandClaude Opus 5.5 226991cb28 i18n: add Polish interface language
Adds a Polish catalog (i18n/pl.rs, 1,698 strings), registers Polski in
Edit › Interface Language, uses category-first count captions for Polish
(as for Ukrainian) and adds catalog and language-switch tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DukHNvUY45rjRnvtz91x33
2026-10-13 19:16:32 +02:00
moppeeerandClaude Opus 5.5 370dca2ca2 feat(render): gradient strokes, on screen, in PDF and in the Gradient panel
A gradient swatch on a stroke drew nothing: strokes were painted with a
single resolved colour. LYH Studio episode 6 gives the loop on the right
page (9:13) and, at first by accident, the circle (1:19, "right now it
is on the stroke") a gradient stroke.

- doc: Stroke::gradient_angle / gradient_vector (as Fill's) and
  Stroke::as_fill(), the stroke's paint as a fill.
- render and PDF: a gradient stroke is painted like a gradient fill,
  across the path's box (dash gaps and arrowheads keep their paints).
- engine: object.gradient {target: stroke} edits the stroke's
  gradient (kind, stops, angle, the Gradient Swatch tool's from/to);
  scaling moves the stroke's vector with the shape.
- IDML: GradientStrokeStart/Length/Angle round-trip.
- Gradient panel: acts on the stroke when the toolbox's Stroke box is
  in front, as InDesign's follows the Fill/Stroke proxy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 19:11:58 +02:00
Saad Abdullah 3c070a8cdd fix(geom): decompose of a flattened transform reports 0 shear instead of NaN 2026-10-13 16:49:51 +00:00
MarekSpodBiedry 79b9971939 fix(pdf): leave form fields and media out of PDF/A-2b exports (#743) 2026-10-13 18:44:45 +02:00
MarekSpodBiedry 6599521305 fix: drop the background render when a display option changes (#730) 2026-10-13 18:43:26 +02:00
MarekSpodBiedry ec4ff485df Keep a missing graphic missing when it is pasted into another document (#720) 2026-10-13 18:43:16 +02:00
MarekSpodBiedry cab9200975 fix: eyedropper ignores inactive states of a multi-state object (#737) 2026-10-13 18:43:09 +02:00
MarekSpodBiedry b8e7e8ede6 fix(render): cap the failed-image cache at 64 entries (#728) 2026-10-13 18:20:29 +02:00
MarekSpodBiedry e329cb8023 Fix overset preflight page for frames inside translated groups (#738) 2026-10-13 18:20:01 +02:00
noah1400 a64c1350f6 Preferences: OK without vertical units keeps them (#806)
Preferences OK read the vertical units by indexing the dialog's
fields. A dialog opened through `ui.dialog.open` with horizontal
units only made that panic on the UI thread, outside the crash
guard, and the app exited. The units are now read with `get`, and a
ruler the dialog doesn't name keeps its units.
2026-10-13 18:18:08 +02:00