Skip to content

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

Merge PR #1508: Insert Pages dialog as InDesign's: before or after a page, at the start or end, with a parent

aionggeb2eb299f37b
diff --cc ROADMAP.md
index de3bb0fb3,eef544b8c..6cffc5260
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@@ -457,13 -443,7 +457,14 @@@ 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** · 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-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/ui-egui/src/i18n/ar.rs
index 977a35ab1,0f7e79f29..0af090545
--- a/crates/ui-egui/src/i18n/ar.rs
+++ b/crates/ui-egui/src/i18n/ar.rs
@@@ -31,26 -31,12 +31,32 @@@ 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:", "إدراج:"),
("Restart Numbering", "إعادة الترقيم"),
("Continue Numbering", "متابعة الترقيم"),
("Keep Options…", "خيارات الإبقاء…"),
diff --cc crates/ui-egui/src/i18n/cs.rs
index 759ece7e9,d0de53a63..e0bbb5f58
--- a/crates/ui-egui/src/i18n/cs.rs
+++ b/crates/ui-egui/src/i18n/cs.rs
@@@ -32,28 -32,12 +32,34 @@@ 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:"),
("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/it.rs
index 00aba2c28,c15460e20..97feafc60
--- a/crates/ui-egui/src/i18n/it.rs
+++ b/crates/ui-egui/src/i18n/it.rs
@@@ -29,26 -29,13 +29,33 @@@ 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"),
("Restart Numbering", "Riavvia numerazione"),
("Continue Numbering", "Continua numerazione"),
("Keep Options…", "Opzioni di separazione…"),
diff --cc crates/ui-egui/src/i18n/ka.rs
index ee8346130,700976460..d8e8a6bdd
--- a/crates/ui-egui/src/i18n/ka.rs
+++ b/crates/ui-egui/src/i18n/ka.rs
@@@ -32,26 -32,12 +32,32 @@@ 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:", "ჩასმა:"),
("Restart Numbering", "ნუმერაციის თავიდან დაწყება"),
("Continue Numbering", "ნუმერაციის გაგრძელება"),
("Keep Options…", "შენარჩუნების პარამეტრები…"),
diff --cc crates/ui-egui/src/i18n/pl.rs
index b9d3924b0,ec27d21a6..6b73125b8
--- a/crates/ui-egui/src/i18n/pl.rs
+++ b/crates/ui-egui/src/i18n/pl.rs
@@@ -30,28 -30,12 +30,34 @@@ 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:"),
("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 2b6ccb2e6,8e02a5526..aefdc3216
--- a/crates/ui-egui/src/i18n/pt_br.rs
+++ b/crates/ui-egui/src/i18n/pt_br.rs
@@@ -32,26 -32,13 +32,33 @@@ 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"),
("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 837af64a3,5a25e3368..45e141d4e
--- a/crates/ui-egui/src/i18n/ru.rs
+++ b/crates/ui-egui/src/i18n/ru.rs
@@@ -34,28 -34,12 +34,34 @@@ 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:", "Вставить:"),
("Restart Numbering", "Начать нумерацию заново"),
("Continue Numbering", "Продолжить нумерацию"),
("Keep Options…", "Параметры удержания…"),
diff --cc crates/ui-egui/src/i18n/uk.rs
index 475cbb9b1,8e6c23bde..a93cf2d59
--- a/crates/ui-egui/src/i18n/uk.rs
+++ b/crates/ui-egui/src/i18n/uk.rs
@@@ -30,26 -30,13 +30,33 @@@ 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", "Вставити сторінки"),
("Restart Numbering", "Почати нумерацію знову"),
("Continue Numbering", "Продовжити нумерацію"),
("Keep Options…", "Параметри утримання…"),