DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge #1459: Control panel: the text controls have InDesign's Character (A) and Paragraph (¶) modes
aiongg3903519c80c5
diff --cc ROADMAP.mdindex 8cbf1cf70,8dce4fad7..bf18ebc54--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -377,7 -360,9 +377,10 @@@ 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** · 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-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-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.- **2026-10-16** · Type › Reload Fonts (`font.reload`): fonts installed, edited or removed while DesignCraft runs are read again without a restart, and the open documents recompose with them (#328, #547). An edited font file is noticed by its length and modification time; bundled, added and document fonts stay as they are. InDesign does this by itself, so noticing changes automatically is still open (gap 6). No readiness percentage change.- **2026-10-16** · Parents can be deleted from their Pages-panel context menu or `layout.parents.delete {id}`. Applied-page and based-on references are cleared, local override copies survive, and Undo restores the parent. Addresses the deletion portion of #956; no readiness percentage change.- **2026-10-17** · File › Package writes the document's and the IDML's links relative to the package (`Links/logo.png`, `file:Links/logo.png`), so a package holds no path from the machine that made it; opening a document resolves them to the files beside it. Links › Copy Link(s) To still links by full path. (#340). No readiness percentage change.diff --cc crates/ui-egui/src/i18n.rsindex cb473be0e,6a3812c29..82b2c46d8--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@@ -34,18 -34,29 +34,39 @@@ pub const LANGUAGES: &[(&str, &str)] =("ka", "ქართული"),];+/// The interface languages in the order the Preferences picker lists them: English first (the+/// source language), then the rest by their own name with accents folded, so Čeština sits under+/// C. Names in other scripts follow the Latin ones in code point order: Cyrillic, Arabic,+/// Georgian, then the CJK languages.+pub fn picker_languages() -> Vec<(&'static str, &'static str)> {+ let mut rest: Vec<(&str, &str)> = LANGUAGES.iter().copied().filter(|(code, _)| !code.is_empty()).collect();+ rest.sort_by_cached_key(|(_, name)| name_sort_key(name));+ std::iter::once(LANGUAGES[0]).chain(rest).collect()+}+/// English → [German, French, Spanish, Japanese, Simplified Chinese].const TABLE: &[(&str, [&str; 5])] = &[+ (+ "Character Formatting Controls",+ [+ "Steuerelemente für Zeichenformatierung",+ "Commandes de mise en forme des caractères",+ "Controles de formato de carácter",+ "文字形式コントロール",+ "字符格式控制",+ ],+ ),+ (+ "Paragraph Formatting Controls",+ [+ "Steuerelemente für Absatzformatierung",+ "Commandes de mise en forme des paragraphes",+ "Controles de formato de párrafo",+ "段落形式コントロール",+ "段落格式控制",+ ],+ ),+ ("Font Size", ["Schriftgrad", "Corps", "Tamaño de fuente", "フォントサイズ", "字体大小"]),("Vertical Scale", ["Vertikal skalieren", "Échelle verticale", "Escala vertical", "垂直比率", "垂直缩放"]),("Horizontal Scale", ["Horizontal skalieren", "Échelle horizontale", "Escala horizontal", "水平比率", "水平缩放"]),("Baseline Shift", ["Grundlinienversatz", "Décalage vertical", "Desplazamiento vertical", "ベースラインシフト", "基线偏移"]),diff --cc crates/ui-egui/src/i18n/ar.rsindex 137c74791,7afa8f317..7e33b3178--- a/crates/ui-egui/src/i18n/ar.rs+++ b/crates/ui-egui/src/i18n/ar.rs@@@ -30,15 -30,9 +30,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "قص"),("Copy", "نسخ"),("Paste", "لصق"),+ ("Hyphenation…", "الواصلة…"),+ ("Hyphenation Settings", "إعدادات الواصلة"),+ ("hyphens", "واصلات"),+ ("Hyphenation Zone:", "منطقة الواصلة:"),+ ("Better Spacing", "تباعد أفضل"),+ ("Fewer Hyphens", "واصلات أقل"),+ ("Hyphenate Capitalized Words", "وصل الكلمات ذات الأحرف الكبيرة"),+ ("Hyphenate Last Word", "وصل الكلمة الأخيرة"),+ ("Hyphenate Across Column", "الوصل عبر الأعمدة"),+ ("Character Formatting Controls", "عناصر تحكم تنسيق الأحرف"),+ ("Paragraph Formatting Controls", "عناصر تحكم تنسيق الفقرات"),+ ("Font Size", "حجم الخط"),("Vertical Scale", "المقياس الرأسي"),("Horizontal Scale", "المقياس الأفقي"),("Baseline Shift", "إزاحة خط الأساس"),diff --cc crates/ui-egui/src/i18n/cs.rsindex fbd874d2c,0fb962ab6..b1c177c51--- a/crates/ui-egui/src/i18n/cs.rs+++ b/crates/ui-egui/src/i18n/cs.rs@@@ -31,15 -31,9 +31,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Vyjmout"),("Copy", "Kopírovat"),("Paste", "Vložit"),+ ("Hyphenation…", "Dělení slov…"),+ ("Hyphenation Settings", "Nastavení dělení slov"),+ ("hyphens", "spojovníky"),+ ("Hyphenation Zone:", "Zóna dělení:"),+ ("Better Spacing", "Lepší mezery"),+ ("Fewer Hyphens", "Méně spojovníků"),+ ("Hyphenate Capitalized Words", "Dělit slova s velkým počátečním písmenem"),+ ("Hyphenate Last Word", "Dělit poslední slovo"),+ ("Hyphenate Across Column", "Dělit přes sloupce"),+ ("Character Formatting Controls", "Ovládací prvky formátování znaků"),+ ("Paragraph Formatting Controls", "Ovládací prvky formátování odstavců"),+ ("Font Size", "Velikost písma"),("Vertical Scale", "Svislá změna velikosti"),("Horizontal Scale", "Vodorovná změna velikosti"),("Baseline Shift", "Posun účaří"),diff --cc crates/ui-egui/src/i18n/it.rsindex 2ec371480,d740ab0c3..555bc77e2--- a/crates/ui-egui/src/i18n/it.rs+++ b/crates/ui-egui/src/i18n/it.rs@@@ -28,15 -28,9 +28,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Taglia"),("Copy", "Copia"),("Paste", "Incolla"),+ ("Hyphenation…", "Sillabazione…"),+ ("Hyphenation Settings", "Impostazioni sillabazione"),+ ("hyphens", "trattini"),+ ("Hyphenation Zone:", "Area di sillabazione:"),+ ("Better Spacing", "Spaziatura migliore"),+ ("Fewer Hyphens", "Meno trattini"),+ ("Hyphenate Capitalized Words", "Sillaba parole con iniziale maiuscola"),+ ("Hyphenate Last Word", "Sillaba ultima parola"),+ ("Hyphenate Across Column", "Sillaba tra colonne"),+ ("Character Formatting Controls", "Controlli di formattazione carattere"),+ ("Paragraph Formatting Controls", "Controlli di formattazione paragrafo"),+ ("Font Size", "Dimensione font"),("Vertical Scale", "Scala verticale"),("Horizontal Scale", "Scala orizzontale"),("Baseline Shift", "Spostamento linea di base"),diff --cc crates/ui-egui/src/i18n/ka.rsindex c51bfede5,87640821d..31ca47b72--- a/crates/ui-egui/src/i18n/ka.rs+++ b/crates/ui-egui/src/i18n/ka.rs@@@ -31,15 -31,9 +31,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "ამოჭრა"),("Copy", "კოპირება"),("Paste", "ჩასმა"),+ ("Hyphenation…", "დამარცვლა…"),+ ("Hyphenation Settings", "დამარცვლის პარამეტრები"),+ ("hyphens", "დეფისი"),+ ("Hyphenation Zone:", "დამარცვლის ზონა:"),+ ("Better Spacing", "უკეთესი დაშორება"),+ ("Fewer Hyphens", "ნაკლები დეფისი"),+ ("Hyphenate Capitalized Words", "მთავრული სიტყვების დამარცვლა"),+ ("Hyphenate Last Word", "ბოლო სიტყვის დამარცვლა"),+ ("Hyphenate Across Column", "სვეტებს შორის დამარცვლა"),+ ("Character Formatting Controls", "სიმბოლოების ფორმატირების მართვა"),+ ("Paragraph Formatting Controls", "აბზაცების ფორმატირების მართვა"),+ ("Font Size", "შრიფტის ზომა"),("Vertical Scale", "ვერტიკალური მასშტაბი"),("Horizontal Scale", "ჰორიზონტალური მასშტაბი"),("Baseline Shift", "საბაზო ხაზის წანაცვლება"),diff --cc crates/ui-egui/src/i18n/pl.rsindex 50f361864,54ed8ab61..30ad7925f--- a/crates/ui-egui/src/i18n/pl.rs+++ b/crates/ui-egui/src/i18n/pl.rs@@@ -29,15 -29,9 +29,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Wytnij"),("Copy", "Kopiuj"),("Paste", "Wklej"),+ ("Hyphenation…", "Dzielenie wyrazów…"),+ ("Hyphenation Settings", "Ustawienia dzielenia wyrazów"),+ ("hyphens", "dywizy"),+ ("Hyphenation Zone:", "Strefa dzielenia:"),+ ("Better Spacing", "Lepsze odstępy"),+ ("Fewer Hyphens", "Mniej dywizów"),+ ("Hyphenate Capitalized Words", "Dziel wyrazy pisane wielką literą"),+ ("Hyphenate Last Word", "Dziel ostatni wyraz"),+ ("Hyphenate Across Column", "Dziel między łamami"),+ ("Character Formatting Controls", "Elementy formatowania znaków"),+ ("Paragraph Formatting Controls", "Elementy formatowania akapitów"),+ ("Font Size", "Rozmiar czcionki"),("Vertical Scale", "Skala pionowa"),("Horizontal Scale", "Skala pozioma"),("Baseline Shift", "Przesunięcie linii bazowej"),diff --cc crates/ui-egui/src/i18n/pt_br.rsindex cbe86d915,72d7f1e4a..860f3b2b4--- a/crates/ui-egui/src/i18n/pt_br.rs+++ b/crates/ui-egui/src/i18n/pt_br.rs@@@ -31,15 -31,9 +31,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Recortar"),("Copy", "Copiar"),("Paste", "Colar"),+ ("Hyphenation…", "Hifenização…"),+ ("Hyphenation Settings", "Configurações de hifenização"),+ ("hyphens", "hifens"),+ ("Hyphenation Zone:", "Zona de hifenização:"),+ ("Better Spacing", "Melhor espaçamento"),+ ("Fewer Hyphens", "Menos hifens"),+ ("Hyphenate Capitalized Words", "Hifenizar palavras iniciadas por maiúscula"),+ ("Hyphenate Last Word", "Hifenizar última palavra"),+ ("Hyphenate Across Column", "Hifenizar entre colunas"),+ ("Character Formatting Controls", "Controles de formatação de caracteres"),+ ("Paragraph Formatting Controls", "Controles de formatação de parágrafos"),+ ("Font Size", "Tamanho da fonte"),("Vertical Scale", "Escala vertical"),("Horizontal Scale", "Escala horizontal"),("Baseline Shift", "Deslocamento da linha de base"),diff --cc crates/ui-egui/src/i18n/ru.rsindex f99f23b88,0a6abb9bb..41d93edb0--- a/crates/ui-egui/src/i18n/ru.rs+++ b/crates/ui-egui/src/i18n/ru.rs@@@ -33,15 -33,9 +33,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Вырезать"),("Copy", "Копировать"),("Paste", "Вставить"),+ ("Hyphenation…", "Расстановка переносов…"),+ ("Hyphenation Settings", "Параметры расстановки переносов"),+ ("hyphens", "дефисов"),+ ("Hyphenation Zone:", "Зона переносов:"),+ ("Better Spacing", "Лучшие интервалы"),+ ("Fewer Hyphens", "Меньше переносов"),+ ("Hyphenate Capitalized Words", "Переносить слова с прописной буквы"),+ ("Hyphenate Last Word", "Переносить последнее слово"),+ ("Hyphenate Across Column", "Переносить между колонками"),+ ("Character Formatting Controls", "Элементы управления форматированием символов"),+ ("Paragraph Formatting Controls", "Элементы управления форматированием абзацев"),+ ("Font Size", "Кегль"),("Vertical Scale", "Масштаб по вертикали"),("Horizontal Scale", "Масштаб по горизонтали"),("Baseline Shift", "Смещение базовой линии"),diff --cc crates/ui-egui/src/i18n/uk.rsindex e6455ccca,f1ab00427..d71d3ecd3--- a/crates/ui-egui/src/i18n/uk.rs+++ b/crates/ui-egui/src/i18n/uk.rs@@@ -29,15 -29,9 +29,18 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Вирізати"),("Copy", "Копіювати"),("Paste", "Вставити"),+ ("Hyphenation…", "Перенесення…"),+ ("Hyphenation Settings", "Параметри перенесення"),+ ("hyphens", "дефісів"),+ ("Hyphenation Zone:", "Зона перенесення:"),+ ("Better Spacing", "Кращі інтервали"),+ ("Fewer Hyphens", "Менше перенесень"),+ ("Hyphenate Capitalized Words", "Переносити слова з великої літери"),+ ("Hyphenate Last Word", "Переносити останнє слово"),+ ("Hyphenate Across Column", "Переносити між колонками"),+ ("Character Formatting Controls", "Елементи керування форматуванням символів"),+ ("Paragraph Formatting Controls", "Елементи керування форматуванням абзаців"),+ ("Font Size", "Кегль"),("Vertical Scale", "Масштаб по вертикалі"),("Horizontal Scale", "Масштаб по горизонталі"),("Baseline Shift", "Зсув базової лінії"),