Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Merge track b: swatches, canvas, tools and tables PRs

aiongg92327dcc4c35
diff --cc ROADMAP.md
index 5a777eb36,e056f61c7..471e16039
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@@ -436,7 -433,7 +436,8 @@@ Newest first
- **2026-10-18** · German text hyphenates using the MIT-licensed 2006 reform patterns (`hyph-de-1996.tex`) through `hypher`. Explicit 2006 names and plain/2006 locale codes reach both composers; traditional and unknown spelling variants stay unhyphenated. Tests cover this distinction, umlauts, ß, compounds, reformed ck/st breaks and paragraph limits. Six of InDesign's ~40 hyphenation languages. No readiness percentage change.
- **2026-10-16** · Edit › Keyboard Shortcuts imports a set saved by InDesign's Show Set (.txt, Windows or Mac key names, UTF-8 or UTF-16): matched commands take its Default shortcuts or lose theirs, other commands give up keys it takes, and a report lists what it changed and the items it could not match (`window.importShortcuts`, #1180). Tool keys stay fixed. No readiness percentage change.
- **2026-10-23** · Translations: a missing string shows in English and fails no test; `cargo xtask i18n-report`, run by `cargo xtask ci`, prints the missing strings per language. Tests keep duplicate-key and placeholder checks and the language mechanics (lookup, context captions, plural captions, right-to-left). No readiness percentage change.
+- **2026-10-23** · Show Hidden Characters marks table cells as InDesign does: every cell shows its own spaces, tabs and paragraph returns and an end-of-story # after its text (an empty cell shows just the #), and the table paragraph's ¶ sits after the table's bottom right corner. Cells showed no marks. No readiness percentage change.
+ - **2026-10-23** · Tables: with the Type tool in a cell, Shift+Tab goes back a cell (it went on to the next one) and Esc toggles between the text and the cell, as in InDesign: the insertion point selects its cell, and selected cells select the text of the first one (`table.toggleSelection`). Esc left the table for the frame. No readiness percentage change.
- **2026-10-22** · Hyphenation Settings, as in InDesign: the Paragraph panel menu's Hyphenation… (`app.hyphenationDialog`) sets the selected paragraphs' Hyphenate, Words with at Least, After First, Before Last, Hyphen Limit, Hyphenation Zone, the Better Spacing ↔ Fewer Hyphens slider (InDesign's 0–10 steps), Hyphenate Capitalized Words, Last Word and Across Column, with Preview, as one undo step; Paragraph Style Options › Hyphenation has the same form. The panel menu lists its items in InDesign's order. Replicated from a hyphenation tutorial: the same text in Minion Pro breaks into the same lines as InDesign's with hyphenation on, off, and at Fewer Hyphens. No readiness percentage change.
- **2026-10-22** · Hyphenate Across Column (Hyphenation Settings; IDML HyphenateAcrossColumns) is applied: with it off, a paragraph whose line ending in an automatic hyphen would end a column or frame is re-composed without that hyphenation point, so the word moves on whole, as in InDesign. Opened and imported files keep their own setting, so their layouts don't change. No readiness percentage change.
- **2026-10-22** · The Paragraph panel is laid out as InDesign's: the nine alignment buttons in groups; indent, spacing and drop cap fields by their icons in two columns, with Space Between Paragraphs Using Same Style (Ignore or a space); Shading and Border with the Paragraph Borders and Shading button and colour; Hyphenate with Do Not Align / Align to Baseline Grid. Its panel menu follows InDesign's order: Paragraph and Single-line Composer, Only Align First Line to Grid, Balance Ragged Lines, Optical Margin Alignment, Justification…, Keep Options…, Span Columns…, Hyphenation…, Drop Caps and Nested Styles…, GREP Styles… (these three now open for the selected paragraphs), Paragraph Rules…, Paragraph Borders and Shading…, Bullets and Numbering…, Restart/Continue Numbering, Define Lists… and the paragraph direction. Convert Bullets and Numbering to Text is listed but not available yet. No readiness percentage change.
@@@ -460,32 -456,16 +461,42 @@@
- **2026-10-16** · Lock Guides and Lock Column Guides are commands in View ▸ Grids & Guides (`view.lockGuides`, ⌥⌘;, and `view.lockColumnGuides`), so the control channel and MCP reach them. Lock Column Guides is an undo step, is saved with the document, on in new ones, and read from and written to IDML's `ColumnGuideLocked`, which export always wrote as locked (#1096). No readiness percentage change.
- **2026-10-16** · IDML: a page keeps column guides that were dragged off centre (InDesign's Custom columns). They were divided evenly on import, so the gutter sprang back to the middle; the imported positions now place the columns, with the canvas guides, snapping and text placement following them, and they are written back on export. Layout › Margins and Columns re-divides them evenly when the count or gutter changes, as InDesign's does. No readiness percentage change.
- **2026-10-16** · IDML: custom column positions are checked before they are used (#1096). A set must give two edges per column, ascending from the left margin to the right one; any other (a wrong count, unsorted or non-numeric values, a list longer than 216 columns allow, or positions left behind by a margin or page-size change) is the even split, in the canvas, on import and on export, instead of columns drawn outside the margins. No readiness percentage change.
+- **2026-10-21** · Paragraph Border and Paragraph Shading link their four sides as InDesign's: the stroke weights, offsets and corners have the "Make all settings the same" link, on when the four are the same, so a side typed in sets all four; with the link off a side is set alone (a border with only a thick left side). Found in the Learn Skills Daily course, chapter 40. No readiness percentage change.
+- **2026-10-21** · Paragraph rules have InDesign's Type (solid, thick/thin stripes, dashed, dotted, straight hash, wavy, or a stroke style of the document), Gap Color and Gap Tint, and Keep In Frame (rule above); the Paragraph Rules page is laid out as InDesign's (Weight and Type, Color and Tint, Gap Color and Gap Tint, Width and Offset, Left and Right Indent). IDML reads and writes them (`RuleAboveType`, `RuleBelowGapColor`, `KeepRuleAboveInFrame`…). Found in the Learn Skills Daily course, chapter 20. No readiness percentage change.
+- **2026-10-21** · New Character Style with text selected starts from what the text has of its own over its paragraph style, as InDesign's ("[None] + Bold + color"), and Apply Style to Selection gives the text the new style, with no override left. A new style's dialog is titled New Paragraph Style / New Character Style. `type.selectionAttrs` reports the text's own character attributes (`ownChars`). Found in the Learn Skills Daily course, chapter 22. No readiness percentage change.
+- **2026-10-21** · New Paragraph Style with text selected starts from it, as InDesign's (Based On [No Paragraph Style], every setting of the text that differs) and Apply Style to Selection gives the paragraph the new style; General has Next Style and Reset To Base; Basic Character Formats is in two columns (Size | Leading, Kerning | Tracking, Case | Position). `style.paragraph.edit` honours `nextStyle` (it was ignored) and takes `resetToBase`. Found in the Learn Skills Daily course, chapter 20. No readiness percentage change.
+- **2026-10-21** · Find/Change has InDesign's Change Format. Specify Attributes opens Change Format Settings: Style Options (the character and paragraph style to apply, [Any Style] for none), then Basic and Advanced Character Formats, Character Color, OpenType Features, Underline and Strikethrough Options. The box shows the format ("Character Style: eggs"), and Change All gives it to the changed text. With a Change Format and nothing in Change to, the found text stays and is only formatted, as InDesign's (an ⓘ beside Change to says so). `find.change` takes `charStyle` and `paraStyle`. Found in the Learn Skills Daily course, chapter 22. No readiness percentage change.
+- **2026-10-21** · Preferences › Interface follows InDesign's: Appearance has a Color Theme swatch per interface theme (a click shows it at once, Cancel goes back) and Panels sets the Tools panel to a single or double column; UI Size moves to a UI Scaling section of its own. Interface held only UI Size, and the theme could be changed only from the Window menu. Found in the Learn Skills Daily course, chapter 26. No readiness percentage change.
+- **2026-10-21** · Preferences › File Handling shows Number of Recent Items to Display as a whole number ("20"; it read "20.0"). Found in the Learn Skills Daily course, chapter 26. No readiness percentage change.
+- **2026-10-21** · Insert Pages… opens InDesign's dialog: Pages, Insert (After Page, Before Page, At Start of Document, At End of Document) with the page by name, and Parent ([None] or a parent), set to the page in view and its parent. It was a form asking for a page index and a parent id, and pages could not go before the first page; `layout.pages.insert` takes `before` (0: at the start). Found in the Learn Skills Daily course, chapter 25. No readiness percentage change.
+- **2026-10-18** · Table of Contents offers More Options / Fewer Options, preserving page-number, separator, sorting and level settings while their controls are hidden. No readiness percentage change.
+- **2026-10-18** · Table of Contents reserves the title field's width so Contents is readable next to its style picker; the grid previously squeezed it to a few characters. No readiness percentage change.
+- **2026-10-21** · Spelling (Check Spelling and Dynamic Spelling) no longer flags everyday words the bundled hyphenation word list lacks: "we", "us", "if", titles such as "Mr", and words such as email, online, website, database, desktop and download, with their plurals and other forms. Contractions typed with a typographer's apostrophe (don’t, we’re), which Use Typographer's Quotes produces by default, count like their straight-apostrophe forms. Dynamic Spelling used to underline most words of an ordinary sentence. Found in the Learn Skills Daily course, chapter 26. No readiness percentage change.
+- **2026-10-21** · While a parent is shown, the status bar's page box and Properties › Page name it ("A-Parent") instead of page 1, as InDesign's; their lists have the parents after the pages, and choosing one shows that parent (a page leaves the parents). Found in the Learn Skills Daily course, chapter 25. No readiness percentage change.
+- **2026-10-21** · Effects dialog: the Angle field of the shadows, Bevel and Emboss, Satin and Gradient Feather has InDesign's dial beside it, its radius pointing where the light comes from; a click or drag on it sets the angle. Found in the Learn Skills Daily course, chapter 14. No readiness percentage change.
+- **2026-10-21** · A double-click on a Fill or Stroke chip of Properties › Appearance opens the Color Picker with its colour, as in InDesign (a click still opens the swatches); for selected text, its own chips open it for the text. Found in the Learn Skills Daily course, chapter 23. No readiness percentage change.
+- **2026-10-20** · Properties › Appearance: with several text frames selected, the Fill and Stroke popups offer Apply To Frame or Text, as with one frame, so their text can be coloured at once, as in InDesign. No readiness percentage change.
+- **2026-10-20** · Properties › Appearance: the arrow beside Opacity opens a slider under the field, as in InDesign, instead of the Effects panel; a drag shows the opacity live and is one undo step (the Opacity link still opens Effects). No readiness percentage change.
+- **2026-10-20** · Properties › Frame Fitting has InDesign's Auto-Fit checkbox and Options button (Frame Fitting Options); the app's checkboxes are now named and ticked-or-not for screen readers. No readiness percentage change.
+- **2026-10-20** · Properties › Text Wrap shows the four wrap offsets under the wrap buttons, with the link that makes them the same, as InDesign's Properties panel does (greyed with no wrap). No readiness percentage change.
+- **2026-10-21** · Properties › Bullets and Numbering › Options opens the Bullets and Numbering dialog for the selected paragraphs, as InDesign's, instead of the Paragraph panel. Found in the Learn Skills Daily course, chapter 21. No readiness percentage change.
+- **2026-10-20** · Properties › Appearance: the corner shape list shows each shape's glyph beside its name, drawn as InDesign draws them (Fancy has its own glyph now), and the stroke type list shows each type's line; both dropdowns are named for screen readers. No readiness percentage change.
+- **2026-10-21** · Properties › Align: the Align To button shows what the objects align to, one glyph each for the selection, the key object, the margins, the page and the spread, as InDesign's. Found in the Learn Skills Daily course, chapter 12. No readiness percentage change.
+- **2026-10-20** · Object › Corner Options opens a Corner Options dialog laid out as InDesign's: each corner's size and shape, the link button that makes all four the same, and Preview. The Corner link in Properties › Appearance opens it too (it opened a Rectangle size dialog). No readiness percentage change.
+- **2026-10-20** · The Object menu is in InDesign's order and groups; Paths has Join, Open Path and Close Path (Convert Shape lists only shapes, as InDesign's does) and a Convert Point submenu (Plain, Corner, Smooth, Symmetrical) is added. No readiness percentage change.
+- **2026-10-14** · Numbering & Section Options opened on a page that doesn't start a section is New Section, as in InDesign: Start Section on, 1 offered, and the start numbers stay editable (typing one chooses it). No readiness percentage change.
+- **2026-10-20** · Layout › Create Guides puts its guides on both pages of the spread in view, as InDesign does; "This page" in Apply to narrows them to one page. No readiness percentage change.
+- **2026-10-21** · Object › Fitting › Clear Frame Fitting Options (`object.clearFittingOptions`): the frames' auto-fit, crop amounts and reference point go back to their defaults, and the picture stays where it is. The Fitting submenu is grouped as InDesign's. Found in the Learn Skills Daily course, chapter 11. No readiness percentage change.
+ - **2026-10-21** · Swatches panel rows show InDesign's columns, drawn in code: a crossed pencil on the swatches that can't be edited ([None], [Registration], [Black]), the colour type (process or spot) and the colour mode (CMYK, RGB, Gray, or [None]'s and [Registration]'s own glyphs), in place of a lock and "CMYK" text. Tint reads 100 with nothing selected. No readiness percentage change.
+ - **2026-10-21** · With a gradient fill or stroke, the Color panel shows the stop selected in the Gradient panel (the stop before a selected midpoint) with its values, and its C/M/Y/K or R/G/B sliders and spectrum colour that stop, keeping the others, as in InDesign. It showed "[None] — choose a colour on the ramp", and a spectrum click replaced the whole gradient with a flat colour. Found in the Learn Skills Daily course, chapter 24. No readiness percentage change.
+ - **2026-10-20** · A new document's Swatches panel lists InDesign's defaults: [None], [Registration], [Paper], [Black] and six process colours (C=100, M=100, Y=100, C=15 M=100 Y=100, C=75 M=5 Y=100, C=100 M=90 Y=10); the extra M=100 Y=100, C=100 Y=100 and C=100 M=100 swatches are gone. No readiness percentage change.
+ - **2026-10-21** · The readout beside the cursor while drawing or measuring ("W: 3.13 cm") is InDesign's light grey box with white text, measured from the tutorials' frames; High Contrast keeps it black. It was a dark translucent box. No readiness percentage change.
+ - **2026-10-14** · The Direct Selection tool pressed on a corner or anchor of an object that isn't selected selects it and pulls just that point, as in InDesign (it moved the whole object). No readiness percentage change.
+ - **2026-10-16** · A Direct Selection click on an image whose frame is already selected selects the image, so Delete removes only the image and leaves the empty frame, as in InDesign. No readiness percentage change.
+ - **2026-10-20** · Drawing a frame or shape shows its width and height in the document's ruler units, to two decimals and on two lines ("W: 6.08 cm", "H: 6.08 cm"), as InDesign does; it was always whole points. No readiness percentage change.
+ - **2026-10-20** · Type tool: a drag that starts in an empty frame draws a new text frame over it, as in InDesign; a click still turns the frame into a text frame. No readiness percentage change.
+ - **2026-10-20** · Measures in centimetres show four decimals, as InDesign's fields do (a 1p gutter reads 0.4233 cm, not 0.423 cm). No readiness percentage change.
+ - **2026-10-15** · Anchored objects wrap their own story as their anchor lines are set, as in InDesign: the layout no longer depends on where an earlier composition put them (a long story whose pictures moved between frames from pass to pass never settled). No readiness percentage change.
- **2026-10-21** · Properties › Character and Paragraph: ••• (More Options) expands the section in place, as InDesign's: Character adds vertical and horizontal scale, baseline shift, skew, language and OpenType, and All Caps, Small Caps, Superscript, Subscript, Underline and Strikethrough; Paragraph adds the left, right, first line and last line indents, space before and after, the drop cap's lines and characters, Align to Baseline Grid and Hyphenate. It used to open the Character or Paragraph panel; the language field moved under ••• as in InDesign. Found in the Learn Skills Daily course, chapter 16. No readiness percentage change.
- **2026-10-21** · The text Control panel has InDesign's two modes: A (Character Formatting Controls: font and style, size and leading, All Caps/Superscript/Underline and Small Caps/Subscript/Strikethrough, kerning and tracking, vertical and horizontal scale, baseline shift and skew, character style and language) and ¶ (Paragraph Formatting Controls: the nine alignments, left/first line and right/last line indents, space before and after, the drop cap's lines and characters, paragraph style, Hyphenate and Align to Baseline Grid). It used to show a fixed mix of both. Found in the Learn Skills Daily course, chapter 16. No readiness percentage change.
- **2026-10-20** · With the Type tool, the Control panel's font size, leading and tracking fields have a spinner and a list of common values, as in InDesign (auto leading in parentheses). No readiness percentage change.
diff --cc crates/engine/src/tests.rs
index 97e029da8,0b1107509..a72561f18
--- a/crates/engine/src/tests.rs
+++ b/crates/engine/src/tests.rs
@@@ -1664,45 -1661,95 +1664,134 @@@ fn a_line_fits_when_its_baseline_does(
assert!(overset(&mut s, 50.0), "a baseline below the frame still oversets the line");
}
+/// Reset To Base with a new Based On: a partial rule edit resolves over the new parent, not the
+/// old one.
+#[test]
+fn reset_to_base_with_a_new_parent_resolves_rule_edits_over_it() {
+ let mut s = session();
+ let rule = |weight: f64, offset: f64| json!({"on": true, "weight": weight, "color": "[Black]", "offset": offset});
+ s.execute("style.paragraph.create", &json!({"name": "Old", "para": {"ruleBelow": rule(3.0, 1.0)}})).unwrap();
+ s.execute("style.paragraph.create", &json!({"name": "New", "para": {"ruleBelow": rule(1.0, 9.0)}})).unwrap();
+ s.execute("style.paragraph.create", &json!({"name": "Child", "basedOn": "Old"})).unwrap();
+ s.execute("style.paragraph.edit", &json!({"name": "Child", "resetToBase": true, "basedOn": "New", "para": {"ruleBelow": {"weight": 2}}}))
+ .unwrap();
+ let r = s.doc().unwrap().doc.styles.resolve_para_style("Child").0.rule_below;
+ assert_eq!((r.weight, r.offset), (2.0, 9.0), "the offset is the new parent's");
+}
+
+/// Paragraph style references are checked: a Based On or Next Style that names no style, or
+/// that isn't a name or null, is refused and changes nothing.
+#[test]
+fn paragraph_style_references_must_name_styles() {
+ let mut s = session();
+ s.execute("style.paragraph.create", &json!({"name": "Body"})).unwrap();
+ assert!(s.execute("style.paragraph.create", &json!({"name": "Lost", "nextStyle": "Nowhere"})).is_err());
+ assert!(s.doc().unwrap().doc.styles.para("Lost").is_none());
+ // On creation too, a reference that isn't a name or null is refused, not dropped.
+ for p in [json!({"name": "Lost", "nextStyle": true}), json!({"name": "Lost", "basedOn": 3})] {
+ assert!(s.execute("style.paragraph.create", &p).is_err(), "{p}");
+ assert!(s.doc().unwrap().doc.styles.para("Lost").is_none(), "{p}");
+ }
+ assert!(s.execute("style.character.create", &json!({"name": "Lost", "basedOn": ["Body"]})).is_err());
+ assert!(s.doc().unwrap().doc.styles.char_style("Lost").is_none());
+ s.execute("style.paragraph.create", &json!({"name": "Self", "nextStyle": "Self"})).unwrap();
+ let before = s.doc().unwrap().doc.clone();
+ for p in [json!({"name": "Body", "basedOn": "Nowhere"}), json!({"name": "Body", "basedOn": 3}), json!({"name": "Body", "nextStyle": true})] {
+ assert!(s.execute("style.paragraph.edit", &p).is_err(), "{p}");
+ }
+ assert!(std::sync::Arc::ptr_eq(&before, &s.doc().unwrap().doc), "nothing changed");
+ s.execute("style.paragraph.edit", &json!({"name": "Body", "basedOn": null, "nextStyle": "Self"})).unwrap();
+}
+
+ #[test]
+ fn direct_selection_pulls_one_corner_of_an_unselected_frame() {
+ // Chris Nielsen's "The Adobe InDesign Toolbox" (10:10): with the White Arrow, click outside,
+ // then press on a frame's corner and pull it: only that corner moves (a triangle, nearly).
+ use designcraft_tools::{PointerEvent, PointerKind, SnapView};
+ let mut s = Session::new();
+ s.execute("file.new", &json!({"width": 612, "height": 792, "facingPages": false})).unwrap();
+ let id = s.execute("frame.create", &json!({"rect": [156, 219, 455, 569], "content": "graphic"})).unwrap()["id"].as_u64().unwrap();
+ s.execute("edit.deselectAll", &json!({})).unwrap();
+ let corners = |s: &Session| {
+ let d = &s.doc().unwrap().doc;
+ let it = d.item(designcraft_doc::ItemId(id)).unwrap();
+ it.path.subpaths[0].anchors.iter().map(|a| it.xf * a.p).collect::<Vec<_>>()
+ };
+ let before = corners(&s);
+ s.set_tool("directSelection");
+ let v = ViewInfo { snap: SnapView::OFF, ..ViewInfo::at_zoom(1.0) };
+ let layout = s.layout();
+ let at = |x: f64, y: f64| layout.to_canvas(designcraft_doc::SpreadRef::Doc(0), designcraft_geom::Point::new(x, y));
+ let (a, b) = (at(455.0, 219.0), at(455.0, 150.0));
+ s.pointer(&PointerEvent::new(PointerKind::Down, a.x, a.y), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Drag, a.x, a.y - 30.0), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Drag, b.x, b.y), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Up, b.x, b.y), v).unwrap();
+ let after = corners(&s);
+ let moved: Vec<_> = before.iter().zip(&after).filter(|(p, q)| (**p - **q).hypot() > 1e-6).collect();
+ assert_eq!(moved.len(), 1, "one corner moved: {before:?} → {after:?}");
+ assert!((*moved[0].1 - designcraft_geom::Point::new(455.0, 150.0)).hypot() < 1e-6, "{after:?}");
+ assert_eq!(s.doc().unwrap().selection.items, [designcraft_doc::ItemId(id)], "the frame is selected");
+ // One undo step puts the corner back.
+ s.execute("edit.undo", &json!({})).unwrap();
+ assert_eq!(corners(&s), before);
+ // Away from its corners, the White Arrow still drags the whole unselected frame.
+ s.execute("edit.deselectAll", &json!({})).unwrap();
+ let (c, d) = (at(300.0, 219.0), at(300.0, 269.0));
+ s.pointer(&PointerEvent::new(PointerKind::Down, c.x, c.y), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Drag, c.x, c.y + 20.0), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Drag, d.x, d.y), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Up, d.x, d.y), v).unwrap();
+ assert!(corners(&s).iter().zip(&before).all(|(p, q)| (p.y - q.y - 50.0).abs() < 1e-6), "{:?}", corners(&s));
+ }
+
+ #[test]
+ fn direct_selection_on_a_selected_frame_deletes_only_its_image() {
+ use designcraft_tools::{Mods, PointerEvent, PointerKind, ToolKey};
+ let dir = tempfile::tempdir().unwrap();
+ let png = dir.path().join("photo.png");
+ std::fs::write(&png, designcraft_render::Rendered { width: 100, height: 100, pixels: vec![40u8; 100 * 100 * 4] }.to_png()).unwrap();
+ let mut s = Session::new();
+ s.execute("file.new", &json!({})).unwrap();
+ let frame = s.execute("frame.create", &json!({"rect": [100, 100, 200, 200]})).unwrap()["id"].as_u64().unwrap();
+ s.execute("file.place", &json!({"path": png.to_string_lossy(), "frame": frame})).unwrap();
+ s.execute("selection.set", &json!({"ids": [frame], "content": false})).unwrap();
+ let v = ViewInfo::at_zoom(1.0);
+ let click = |s: &mut Session| {
+ s.pointer(&PointerEvent::new(PointerKind::Down, 110.0, 150.0), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Up, 110.0, 150.0), v).unwrap();
+ };
+ // The frame is selected with the Selection tool, then the image is clicked with Direct Selection.
+ s.set_tool("selection");
+ click(&mut s);
+ assert!(!s.doc().unwrap().selection.content);
+ s.set_tool("directSelection");
+ click(&mut s);
+ assert!(s.doc().unwrap().selection.content, "Direct Selection selects the image inside the selected frame");
+ assert!(s.tool_key(ToolKey::Delete, Mods::default(), v).unwrap());
+ let st = s.doc().unwrap();
+ let it = st.doc.item(designcraft_doc::ItemId(frame)).expect("the frame stays");
+ assert!(matches!(it.content, designcraft_doc::Content::Unassigned), "{:?}", it.content);
+ assert_eq!(st.selection.items, vec![designcraft_doc::ItemId(frame)]);
+ // A frame holding pasted-in items: the click selects them too, so arrow keys move them.
+ let inner = s.execute("frame.create", &json!({"rect": [320, 120, 360, 160]})).unwrap()["id"].as_u64().unwrap();
+ s.execute("selection.set", &json!({"ids": [inner]})).unwrap();
+ s.execute("edit.cut", &json!({})).unwrap();
+ let holder = s.execute("frame.create", &json!({"rect": [300, 100, 400, 200]})).unwrap()["id"].as_u64().unwrap();
+ s.execute("selection.set", &json!({"ids": [holder]})).unwrap();
+ s.execute("edit.pasteInto", &json!({})).unwrap();
+ s.set_tool("selection");
+ s.pointer(&PointerEvent::new(PointerKind::Down, 340.0, 140.0), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Up, 340.0, 140.0), v).unwrap();
+ assert_eq!(s.doc().unwrap().selection.items, vec![designcraft_doc::ItemId(holder)]);
+ assert!(!s.doc().unwrap().selection.content);
+ s.set_tool("directSelection");
+ s.pointer(&PointerEvent::new(PointerKind::Down, 340.0, 140.0), v).unwrap();
+ s.pointer(&PointerEvent::new(PointerKind::Up, 340.0, 140.0), v).unwrap();
+ let st = s.doc().unwrap();
+ assert!(st.selection.content && st.selection.items == [designcraft_doc::ItemId(holder)], "the pasted-in items are selected: {:?}", st.selection);
+ }
+
/// Issue #1637: with several objects selected, a click on one of them (no drag) makes it the key
/// object, and Align to Key Object leaves it in place. A second click on it drops the key.
#[test]
diff --cc crates/ui-egui/src/i18n/ar.rs
index bbca5e260,2477c9c52..a2d19e1cd
--- a/crates/ui-egui/src/i18n/ar.rs
+++ b/crates/ui-egui/src/i18n/ar.rs
@@@ -32,39 -31,7 +32,40 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "قص"),
("Copy", "نسخ"),
("Paste", "لصق"),
+ ("Keep In Frame", "الإبقاء داخل الإطار"),
+ ("New Paragraph Style", "نمط فقرة جديد"),
+ ("New Character Style", "نمط حرف جديد"),
+ ("Next Style:", "النمط التالي:"),
+ ("[Same style]", "[النمط نفسه]"),
+ ("Reset To Base", "إعادة التعيين إلى الأساس"),
+ ("Apply Style to Selection", "تطبيق النمط على التحديد"),
+ ("Change Format:", "تغيير التنسيق:"),
+ ("Change Format Settings", "إعدادات تغيير التنسيق"),
+ ("Style Options", "خيارات النمط"),
+ ("[Any Style]", "[أي نمط]"),
+ ("Specify attributes to change", "تحديد السمات المراد تغييرها"),
+ ("Clear specified attributes", "مسح السمات المحددة"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "مع تنسيق للتغيير وحقل «تغيير إلى» فارغ، يبقى النص الذي تم العثور عليه ويتغير تنسيقه فقط",
+ ),
+ ("Double Column", "عمود مزدوج"),
+ ("Tools Panel:", "لوحة الأدوات:"),
+ ("Color Theme:", "سمة الألوان:"),
+ ("At End of Document", "في نهاية المستند"),
+ ("At Start of Document", "في بداية المستند"),
+ ("Before Page", "قبل الصفحة"),
+ ("After Page", "بعد الصفحة"),
+ ("Parent:", "الصفحة الأصلية:"),
+ ("Insert:", "إدراج:"),
+ ("Stroke Type", "نوع الحد"),
+ ("Corner Shape", "شكل الزاوية"),
+ ("Corner Size and Shape:", "حجم الزوايا وشكلها:"),
+ ("Join", "وصل"),
+ ("Convert Point", "تحويل النقطة"),
+ ("New Section", "قسم جديد"),
+ ("Clear Frame Fitting Options", "مسح خيارات ملاءمة الإطار"),
+ ("Cannot be edited", "غير قابل للتحرير"),
("Restart Numbering", "إعادة الترقيم"),
("Continue Numbering", "متابعة الترقيم"),
("Keep Options…", "خيارات الإبقاء…"),
diff --cc crates/ui-egui/src/i18n/cs.rs
index a96564077,dfe22ad6f..fdb75d7b4
--- a/crates/ui-egui/src/i18n/cs.rs
+++ b/crates/ui-egui/src/i18n/cs.rs
@@@ -33,43 -32,7 +33,44 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Vyjmout"),
("Copy", "Kopírovat"),
("Paste", "Vložit"),
+ ("Keep In Frame", "Zachovat v rámečku"),
+ ("Gap Tint:", "Odstín mezery:"),
+ ("New Paragraph Style", "Nový styl odstavce"),
+ ("New Character Style", "Nový styl znaku"),
+ ("Next Style:", "Další styl:"),
+ ("[Same style]", "[Stejný styl]"),
+ ("Reset To Base", "Obnovit podle základu"),
+ ("Apply Style to Selection", "Použít styl na výběr"),
+ ("Change Format:", "Změnit formát:"),
+ ("Change Format Settings", "Nastavení změny formátu"),
+ ("Style Options", "Volby stylu"),
+ ("[Any Style]", "[Libovolný styl]"),
+ ("Specify attributes to change", "Určit atributy ke změně"),
+ ("Clear specified attributes", "Vymazat určené atributy"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "Se změnou formátu a prázdným polem „Změnit na“ nalezený text zůstane a změní se jen jeho formát",
+ ),
+ ("Double Column", "Dvojitý sloupec"),
+ ("Single Column", "Jednoduchý sloupec"),
+ ("Tools Panel:", "Panel nástrojů:"),
+ ("Color Theme:", "Barevný motiv:"),
+ ("At End of Document", "Na konec dokumentu"),
+ ("At Start of Document", "Na začátek dokumentu"),
+ ("Before Page", "Před stránku"),
+ ("After Page", "Za stránku"),
+ ("Parent:", "Vzor:"),
+ ("Insert:", "Vložit:"),
+ ("Stroke Type", "Typ tahu"),
+ ("Corner Shape", "Tvar rohu"),
+ ("Corner Size and Shape:", "Velikost a tvar rohů:"),
+ ("Join", "Spojit"),
+ ("Convert Point", "Převést bod"),
+ ("Plain", "Obyčejný"),
+ ("Symmetrical", "Symetrický"),
+ ("New Section", "Nový oddíl"),
+ ("Clear Frame Fitting Options", "Vymazat volby přizpůsobení rámečku"),
+ ("Cannot be edited", "Nelze upravit"),
("Restart Numbering", "Začít číslování znovu"),
("Continue Numbering", "Pokračovat v číslování"),
("Keep Options…", "Volby zachování…"),
diff --cc crates/ui-egui/src/i18n/de.rs
index 14203ec70,2b41bdff1..07a026f55
--- a/crates/ui-egui/src/i18n/de.rs
+++ b/crates/ui-egui/src/i18n/de.rs
@@@ -32,15 -31,7 +32,16 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Ausschneiden"),
("Copy", "Kopieren"),
("Paste", "Einfügen"),
+ ("Stroke Type", "Konturtyp"),
+ ("Corner Shape", "Eckenform"),
+ ("Corner Size and Shape:", "Eckengröße und -form:"),
+ ("Join", "Verbinden"),
+ ("Convert Point", "Punkt konvertieren"),
+ ("Plain", "Einfach"),
+ ("Symmetrical", "Symmetrisch"),
+ ("New Section", "Neuer Abschnitt"),
+ ("Clear Frame Fitting Options", "Rahmeneinpassungsoptionen löschen"),
+ ("Cannot be edited", "Nicht bearbeitbar"),
("Restart Numbering", "Nummerierung neu beginnen"),
("Continue Numbering", "Nummerierung fortführen"),
("Keep Options…", "Umbruchoptionen …"),
diff --cc crates/ui-egui/src/i18n/it.rs
index 649ecf1dd,1b07e86a2..d71f2870d
--- a/crates/ui-egui/src/i18n/it.rs
+++ b/crates/ui-egui/src/i18n/it.rs
@@@ -30,40 -29,7 +30,41 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Taglia"),
("Copy", "Copia"),
("Paste", "Incolla"),
+ ("Keep In Frame", "Mantieni nella cornice"),
+ ("New Paragraph Style", "Nuovo stile di paragrafo"),
+ ("New Character Style", "Nuovo stile di carattere"),
+ ("Next Style:", "Stile successivo:"),
+ ("[Same style]", "[Stesso stile]"),
+ ("Reset To Base", "Ripristina base"),
+ ("Apply Style to Selection", "Applica stile alla selezione"),
+ ("Change Format:", "Modifica formato:"),
+ ("Change Format Settings", "Impostazioni di modifica formato"),
+ ("Style Options", "Opzioni stile"),
+ ("[Any Style]", "[Qualsiasi stile]"),
+ ("Specify attributes to change", "Specifica gli attributi da modificare"),
+ ("Clear specified attributes", "Cancella gli attributi specificati"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "Con un formato di modifica e «Sostituisci con» vuoto, il testo trovato resta e cambia solo la formattazione",
+ ),
+ ("Double Column", "Colonna doppia"),
+ ("Tools Panel:", "Pannello Strumenti:"),
+ ("Color Theme:", "Tema colore:"),
+ ("At End of Document", "Alla fine del documento"),
+ ("At Start of Document", "All'inizio del documento"),
+ ("Before Page", "Prima della pagina"),
+ ("After Page", "Dopo la pagina"),
+ ("Parent:", "Pagina mastro:"),
+ ("Insert:", "Inserisci:"),
+ ("Insert Pages", "Inserisci pagine"),
+ ("Stroke Type", "Tipo traccia"),
+ ("Corner Shape", "Forma angolo"),
+ ("Corner Size and Shape:", "Dimensione e forma angoli:"),
+ ("Join", "Unisci"),
+ ("Convert Point", "Converti punto"),
+ ("New Section", "Nuova sezione"),
+ ("Clear Frame Fitting Options", "Cancella opzioni di adattamento cornice"),
+ ("Cannot be edited", "Non modificabile"),
("Restart Numbering", "Riavvia numerazione"),
("Continue Numbering", "Continua numerazione"),
("Keep Options…", "Opzioni di separazione…"),
diff --cc crates/ui-egui/src/i18n/ja.rs
index d59b8fb18,c17929d7e..761512b83
--- a/crates/ui-egui/src/i18n/ja.rs
+++ b/crates/ui-egui/src/i18n/ja.rs
@@@ -31,13 -30,7 +31,14 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "カット"),
("Copy", "コピー"),
("Paste", "ペースト"),
+ ("Stroke Type", "線の種類"),
+ ("Corner Shape", "角のシェイプ"),
+ ("Corner Size and Shape:", "角のサイズとシェイプ:"),
+ ("Join", "連結"),
+ ("Convert Point", "ポイントを切り換え"),
+ ("New Section", "新規セクション"),
+ ("Clear Frame Fitting Options", "フレーム調整オプションを消去"),
+ ("Cannot be edited", "編集不可"),
("Restart Numbering", "番号の振り直し"),
("Continue Numbering", "番号の継続"),
("Keep Options…", "段落分離禁止オプション…"),
diff --cc crates/ui-egui/src/i18n/ka.rs
index 580c36c0d,8fae7debc..5a68e37b0
--- a/crates/ui-egui/src/i18n/ka.rs
+++ b/crates/ui-egui/src/i18n/ka.rs
@@@ -33,37 -32,7 +33,38 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "ამოჭრა"),
("Copy", "კოპირება"),
("Paste", "ჩასმა"),
+ ("Keep In Frame", "ჩარჩოში შენარჩუნება"),
+ ("New Paragraph Style", "აბზაცის ახალი სტილი"),
+ ("New Character Style", "სიმბოლოს ახალი სტილი"),
+ ("Next Style:", "შემდეგი სტილი:"),
+ ("[Same style]", "[იგივე სტილი]"),
+ ("Reset To Base", "საბაზოზე დაბრუნება"),
+ ("Apply Style to Selection", "სტილის გამოყენება მონიშნულზე"),
+ ("Change Format:", "ფორმატის შეცვლა:"),
+ ("Change Format Settings", "ფორმატის შეცვლის პარამეტრები"),
+ ("Style Options", "სტილის პარამეტრები"),
+ ("[Any Style]", "[ნებისმიერი სტილი]"),
+ ("Specify attributes to change", "შესაცვლელი ატრიბუტების მითითება"),
+ ("Clear specified attributes", "მითითებული ატრიბუტების გასუფთავება"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "ფორმატის შეცვლით და ცარიელი „ჩანაცვლება“ ველით ნაპოვნი ტექსტი რჩება და მხოლოდ ფორმატი იცვლება",
+ ),
+ ("Double Column", "ორმაგი სვეტი"),
+ ("Tools Panel:", "ხელსაწყოების პანელი:"),
+ ("Color Theme:", "ფერთა თემა:"),
+ ("At End of Document", "დოკუმენტის ბოლოს"),
+ ("At Start of Document", "დოკუმენტის დასაწყისში"),
+ ("Before Page", "გვერდის წინ"),
+ ("After Page", "გვერდის შემდეგ"),
+ ("Parent:", "საბაზო გვერდი:"),
+ ("Insert:", "ჩასმა:"),
+ ("Stroke Type", "კონტურის ტიპი"),
+ ("Corner Shape", "კუთხის ფორმა"),
+ ("Corner Size and Shape:", "კუთხეების ზომა და ფორმა:"),
+ ("New Section", "ახალი სექცია"),
+ ("Clear Frame Fitting Options", "ჩარჩოს მორგების პარამეტრების გასუფთავება"),
+ ("Cannot be edited", "რედაქტირება შეუძლებელია"),
("Restart Numbering", "ნუმერაციის თავიდან დაწყება"),
("Continue Numbering", "ნუმერაციის გაგრძელება"),
("Keep Options…", "შენარჩუნების პარამეტრები…"),
diff --cc crates/ui-egui/src/i18n/pl.rs
index 45aebc397,8442c1164..b536be8c7
--- a/crates/ui-egui/src/i18n/pl.rs
+++ b/crates/ui-egui/src/i18n/pl.rs
@@@ -31,43 -30,7 +31,44 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Wytnij"),
("Copy", "Kopiuj"),
("Paste", "Wklej"),
+ ("Keep In Frame", "Zachowaj w ramce"),
+ ("Gap Tint:", "Odcień odstępu:"),
+ ("New Paragraph Style", "Nowy styl akapitowy"),
+ ("New Character Style", "Nowy styl znakowy"),
+ ("Next Style:", "Następny styl:"),
+ ("[Same style]", "[Ten sam styl]"),
+ ("Reset To Base", "Przywróć bazowy"),
+ ("Apply Style to Selection", "Zastosuj styl do zaznaczenia"),
+ ("Change Format:", "Zmień format:"),
+ ("Change Format Settings", "Ustawienia zmiany formatu"),
+ ("Style Options", "Opcje stylu"),
+ ("[Any Style]", "[Dowolny styl]"),
+ ("Specify attributes to change", "Określ atrybuty do zmiany"),
+ ("Clear specified attributes", "Wyczyść określone atrybuty"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "Przy zmianie formatu i pustym polu „Zmień na” znaleziony tekst zostaje, a zmienia się tylko jego format",
+ ),
+ ("Double Column", "Podwójna kolumna"),
+ ("Single Column", "Pojedyncza kolumna"),
+ ("Tools Panel:", "Panel narzędzi:"),
+ ("Color Theme:", "Motyw kolorów:"),
+ ("At End of Document", "Na końcu dokumentu"),
+ ("At Start of Document", "Na początku dokumentu"),
+ ("Before Page", "Przed stroną"),
+ ("After Page", "Po stronie"),
+ ("Parent:", "Strona wzorcowa:"),
+ ("Insert:", "Wstaw:"),
+ ("Stroke Type", "Rodzaj obrysu"),
+ ("Corner Shape", "Kształt narożnika"),
+ ("Corner Size and Shape:", "Rozmiar i kształt narożników:"),
+ ("Join", "Połącz"),
+ ("Convert Point", "Konwertuj punkt"),
+ ("Plain", "Zwykły"),
+ ("Symmetrical", "Symetryczny"),
+ ("New Section", "Nowa sekcja"),
+ ("Clear Frame Fitting Options", "Wyczyść opcje dopasowania ramki"),
+ ("Cannot be edited", "Nie można edytować"),
("Restart Numbering", "Zacznij numerowanie od nowa"),
("Continue Numbering", "Kontynuuj numerowanie"),
("Keep Options…", "Opcje utrzymywania…"),
diff --cc crates/ui-egui/src/i18n/pt_br.rs
index 96539bcd2,68b413834..505b840ea
--- a/crates/ui-egui/src/i18n/pt_br.rs
+++ b/crates/ui-egui/src/i18n/pt_br.rs
@@@ -33,40 -32,7 +33,41 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Recortar"),
("Copy", "Copiar"),
("Paste", "Colar"),
+ ("Keep In Frame", "Manter no quadro"),
+ ("New Paragraph Style", "Novo estilo de parágrafo"),
+ ("New Character Style", "Novo estilo de caractere"),
+ ("Next Style:", "Próximo estilo:"),
+ ("[Same style]", "[Mesmo estilo]"),
+ ("Reset To Base", "Redefinir para base"),
+ ("Apply Style to Selection", "Aplicar estilo à seleção"),
+ ("Change Format:", "Alterar formato:"),
+ ("Change Format Settings", "Configurações de alteração de formato"),
+ ("Style Options", "Opções de estilo"),
+ ("[Any Style]", "[Qualquer estilo]"),
+ ("Specify attributes to change", "Especificar atributos a alterar"),
+ ("Clear specified attributes", "Limpar atributos especificados"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "Com um formato de alteração e “Alterar para” vazio, o texto encontrado permanece e só a formatação muda",
+ ),
+ ("Double Column", "Coluna dupla"),
+ ("Tools Panel:", "Painel Ferramentas:"),
+ ("Color Theme:", "Tema de cores:"),
+ ("At End of Document", "No final do documento"),
+ ("At Start of Document", "No início do documento"),
+ ("Before Page", "Antes da página"),
+ ("After Page", "Após a página"),
+ ("Parent:", "Página principal:"),
+ ("Insert:", "Inserir:"),
+ ("Insert Pages", "Inserir páginas"),
+ ("Stroke Type", "Tipo de traçado"),
+ ("Corner Shape", "Forma do canto"),
+ ("Corner Size and Shape:", "Tamanho e forma dos cantos:"),
+ ("Join", "Unir"),
+ ("Convert Point", "Converter ponto"),
+ ("New Section", "Nova seção"),
+ ("Clear Frame Fitting Options", "Limpar opções de ajuste do quadro"),
+ ("Cannot be edited", "Não editável"),
("Restart Numbering", "Reiniciar numeração"),
("Continue Numbering", "Continuar numeração"),
("Keep Options…", "Opções de manutenção…"),
diff --cc crates/ui-egui/src/i18n/ru.rs
index 12a977d47,3ea850899..6e8e49df2
--- a/crates/ui-egui/src/i18n/ru.rs
+++ b/crates/ui-egui/src/i18n/ru.rs
@@@ -35,43 -34,7 +35,44 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Вырезать"),
("Copy", "Копировать"),
("Paste", "Вставить"),
+ ("Keep In Frame", "Сохранить во фрейме"),
+ ("Gap Tint:", "Оттенок пробелов:"),
+ ("New Paragraph Style", "Новый стиль абзаца"),
+ ("New Character Style", "Новый стиль символов"),
+ ("Next Style:", "Следующий стиль:"),
+ ("[Same style]", "[Тот же стиль]"),
+ ("Reset To Base", "Сбросить до основы"),
+ ("Apply Style to Selection", "Применить стиль к выделенному"),
+ ("Change Format:", "Заменить формат:"),
+ ("Change Format Settings", "Параметры замены формата"),
+ ("Style Options", "Параметры стиля"),
+ ("[Any Style]", "[Любой стиль]"),
+ ("Specify attributes to change", "Задать атрибуты для замены"),
+ ("Clear specified attributes", "Очистить заданные атрибуты"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "Если задан формат замены, а поле «Заменить на» пусто, найденный текст остаётся, меняется только его формат",
+ ),
+ ("Double Column", "Две колонки"),
+ ("Single Column", "Одна колонка"),
+ ("Tools Panel:", "Панель инструментов:"),
+ ("Color Theme:", "Цветовая тема:"),
+ ("At End of Document", "В конец документа"),
+ ("At Start of Document", "В начало документа"),
+ ("Before Page", "Перед страницей"),
+ ("After Page", "После страницы"),
+ ("Parent:", "Шаблон:"),
+ ("Insert:", "Вставить:"),
+ ("Stroke Type", "Тип обводки"),
+ ("Corner Shape", "Форма угла"),
+ ("Corner Size and Shape:", "Размер и форма углов:"),
+ ("Join", "Соединить"),
+ ("Convert Point", "Преобразовать точку"),
+ ("Plain", "Простая"),
+ ("Symmetrical", "Симметричная"),
+ ("New Section", "Новый раздел"),
+ ("Clear Frame Fitting Options", "Очистить параметры подгонки фрейма"),
+ ("Cannot be edited", "Нельзя изменить"),
("Restart Numbering", "Начать нумерацию заново"),
("Continue Numbering", "Продолжить нумерацию"),
("Keep Options…", "Параметры удержания…"),
diff --cc crates/ui-egui/src/i18n/table.rs
index f0ef4020f,91f77a83c..93e83a382
--- a/crates/ui-egui/src/i18n/table.rs
+++ b/crates/ui-egui/src/i18n/table.rs
@@@ -1199,7 -1129,7 +1200,8 @@@ pub(super) const TABLE: &[(&str, [&str
],
),
("Load Styles", ["Formate laden", "Charger les styles", "Cargar estilos", "スタイルを読み込み", "加载样式"]),
+ ("New Section", ["Neuer Abschnitt", "Nouvelle section", "Nueva sección", "新規セクション", "新建章节"]),
+ ("Cannot be edited", ["Nicht bearbeitbar", "Non modifiable", "No editable", "編集不可", "不可编辑"]),
("Restart Numbering", ["Nummerierung neu beginnen", "Recommencer la numérotation", "Reiniciar numeración", "番号の振り直し", "重新开始编号"]),
("Continue Numbering", ["Nummerierung fortführen", "Poursuivre la numérotation", "Continuar numeración", "番号の継続", "继续编号"]),
("Keep Options…", ["Umbruchoptionen …", "Options d'enchaînement…", "Opciones de separación…", "段落分離禁止オプション…", "保持选项…"]),
diff --cc crates/ui-egui/src/i18n/uk.rs
index 5ada17a20,a6b1775f1..858e0912e
--- a/crates/ui-egui/src/i18n/uk.rs
+++ b/crates/ui-egui/src/i18n/uk.rs
@@@ -31,40 -30,7 +31,41 @@@ pub(super) const TABLE: &[(&str, &str)
("Cut", "Вирізати"),
("Copy", "Копіювати"),
("Paste", "Вставити"),
+ ("Keep In Frame", "Зберегти у фреймі"),
+ ("New Paragraph Style", "Новий стиль абзацу"),
+ ("New Character Style", "Новий стиль символів"),
+ ("Next Style:", "Наступний стиль:"),
+ ("[Same style]", "[Той самий стиль]"),
+ ("Reset To Base", "Скинути до основи"),
+ ("Apply Style to Selection", "Застосувати стиль до виділеного"),
+ ("Change Format:", "Замінити формат:"),
+ ("Change Format Settings", "Параметри заміни формату"),
+ ("Style Options", "Параметри стилю"),
+ ("[Any Style]", "[Будь-який стиль]"),
+ ("Specify attributes to change", "Задати атрибути для заміни"),
+ ("Clear specified attributes", "Очистити задані атрибути"),
+ (
+ "With a Change Format and nothing in Change to, the found text stays and is only formatted",
+ "Якщо задано формат заміни, а поле «Замінити на» порожнє, знайдений текст лишається, змінюється лише його формат",
+ ),
+ ("Double Column", "Подвійна колонка"),
+ ("Tools Panel:", "Панель інструментів:"),
+ ("Color Theme:", "Колірна тема:"),
+ ("At End of Document", "У кінець документа"),
+ ("At Start of Document", "На початок документа"),
+ ("Before Page", "Перед сторінкою"),
+ ("After Page", "Після сторінки"),
+ ("Parent:", "Шаблон:"),
+ ("Insert:", "Вставити:"),
+ ("Insert Pages", "Вставити сторінки"),
+ ("Stroke Type", "Тип обведення"),
+ ("Corner Shape", "Форма кута"),
+ ("Corner Size and Shape:", "Розмір і форма кутів:"),
+ ("Join", "Зʼєднати"),
+ ("Convert Point", "Перетворити точку"),
+ ("New Section", "Новий розділ"),
+ ("Clear Frame Fitting Options", "Очистити параметри припасування фрейму"),
+ ("Cannot be edited", "Не можна змінити"),
("Restart Numbering", "Почати нумерацію знову"),
("Continue Numbering", "Продовжити нумерацію"),
("Keep Options…", "Параметри утримання…"),