Skip to content

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

Merge PR #1492: Character styles: a new style from the selected text, applied to it

aionggdc14a8c3294f
diff --cc ROADMAP.md
index 8df608dbc,6d13fe85f..0f9134a3a
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@@ -456,8 -444,7 +456,9 @@@ Newest first
- **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** · 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.
diff --cc crates/ui-egui/src/i18n/ar.rs
index 08a0d9438,588a1c25c..68473362c
--- a/crates/ui-egui/src/i18n/ar.rs
+++ b/crates/ui-egui/src/i18n/ar.rs
@@@ -31,7 -31,8 +31,9 @@@ 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", "إعادة التعيين إلى الأساس"),
diff --cc crates/ui-egui/src/i18n/cs.rs
index 384d410ee,530885bf7..1ba8450a5
--- a/crates/ui-egui/src/i18n/cs.rs
+++ b/crates/ui-egui/src/i18n/cs.rs
@@@ -32,8 -32,8 +32,10 @@@ 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"),
diff --cc crates/ui-egui/src/i18n/it.rs
index 97bb4ed7e,9759f41c8..6feb7b84a
--- a/crates/ui-egui/src/i18n/it.rs
+++ b/crates/ui-egui/src/i18n/it.rs
@@@ -29,7 -29,8 +29,9 @@@ 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"),
diff --cc crates/ui-egui/src/i18n/ka.rs
index 6f2a880ae,22e1972b2..5908be4a0
--- a/crates/ui-egui/src/i18n/ka.rs
+++ b/crates/ui-egui/src/i18n/ka.rs
@@@ -32,7 -32,8 +32,9 @@@ 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", "საბაზოზე დაბრუნება"),
diff --cc crates/ui-egui/src/i18n/pl.rs
index 8bfbfb863,d355370c3..3b9d31c00
--- a/crates/ui-egui/src/i18n/pl.rs
+++ b/crates/ui-egui/src/i18n/pl.rs
@@@ -30,8 -30,8 +30,10 @@@ 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"),
diff --cc crates/ui-egui/src/i18n/pt_br.rs
index cd1ee1ca6,2cd549b90..15c46aecf
--- a/crates/ui-egui/src/i18n/pt_br.rs
+++ b/crates/ui-egui/src/i18n/pt_br.rs
@@@ -32,7 -32,8 +32,9 @@@ 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"),
diff --cc crates/ui-egui/src/i18n/ru.rs
index 3e24376bf,a8ecd7291..14f043582
--- a/crates/ui-egui/src/i18n/ru.rs
+++ b/crates/ui-egui/src/i18n/ru.rs
@@@ -34,8 -34,8 +34,10 @@@ 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", "Сбросить до основы"),
diff --cc crates/ui-egui/src/i18n/uk.rs
index 7105b3bef,4d2d63423..1e17086c3
--- a/crates/ui-egui/src/i18n/uk.rs
+++ b/crates/ui-egui/src/i18n/uk.rs
@@@ -30,7 -30,8 +30,9 @@@ 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", "Скинути до основи"),