From 734dedde28354fc71b17ed398dfdfb4e7fa6bb29 Mon Sep 17 00:00:00 2001 From: justinjohn0306 Date: Thu, 15 Oct 2026 12:12:27 +0530 Subject: [PATCH 1/7] #1913: apply paragraph spacing presets to styles --- ROADMAP.md | 5 ++-- crates/engine/src/cmd/design.rs | 45 ++++++++++++++++++++++++++++++--- docs/target-app-parity.md | 5 ++-- docs/ui-parity.md | 3 ++- 4 files changed, 49 insertions(+), 9 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 6ef6b33708..704e1a3ca9 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -2,8 +2,8 @@ **Stage: alpha** · next: beta, ~15 points (60% → 75% ready for real work) and ~150–230 h away -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** trivial (table style editor formats every part, #714); previously trivial: VML freeforms read and kept on save; previously trivial: progress log: consistent preferred cell widths; previously trivial: multi-paragraph field instructions no longer add blank lines; previously trivial: page-break-only list paragraphs hide their labels; previously trivial: progress log: grouped `flowChartOr` shapes draw their circle and crossing spokes; previously trivial: progress log: copies keep their formatting in other programs, #1523; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** trivial (progress log: print-area strings translated in every catalog; previously trivial: progress log: ODT sections, #1379; previously trivial: progress log: table deletes, Change Case and Unlink Fields respect Track Changes and locked content controls, #1329; previously trivial: progress log: rounded rectangle corners, #1476; previously trivial: progress log: Save As type list, #1399; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** trivial (Design › Paragraph Spacing presets update built-in paragraph styles, #1913; table style editor formats every part, #714); previously trivial: VML freeforms read and kept on save; previously trivial: progress log: consistent preferred cell widths; previously trivial: multi-paragraph field instructions no longer add blank lines; previously trivial: page-break-only list paragraphs hide their labels; previously trivial: progress log: grouped `flowChartOr` shapes draw their circle and crossing spokes; previously trivial: progress log: copies keep their formatting in other programs, #1523; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** trivial (Design › Paragraph Spacing presets update built-in paragraph styles, #1913; progress log: print-area strings translated in every catalog; previously trivial: progress log: ODT sections, #1379; previously trivial: progress log: table deletes, Change Case and Unlink Fields respect Track Changes and locked content controls, #1329; previously trivial: progress log: rounded rectangle corners, #1476; previously trivial: progress log: Save As type list, #1399; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 > **Printing update:** 2026-10-12 · direct desktop printing through craft-print; details below. WordCraft aims for complete parity with Microsoft Word, then goes further on speed, openness and @@ -135,6 +135,7 @@ Ranked, to beta (detail and remaining milestones in [docs/roadmap.md](docs/roadm ## Progress log | Date | What landed | +| 2026-10-15 | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | | 2026-10-14 | DOCX row table border exceptions render and survive saving. Explicit cell borders win; a row exception does not change other rows. | | 2026-10-14 | Tab stops edited on the ruler: the corner selector picks Left/Center/Right/Decimal/Bar, a click sets a stop (Alt skips the snap), dragging moves it with a guide line and position tooltip, dragging off the ruler clears it; markers draw per kind and mirror for RTL; one `para.tabs` call and one undo step per gesture | | 2026-10-12 | Fields keep `w:dirty` through DOCX saves (#877): a begin marker flagged by a generator that couldn't compute a result (pandoc-style TOC placeholders) keeps the flag on open/save — as a buffered field or a range field — so Word still refreshes it on open; computing a result (Update Field, Update Table) clears it, like Word's F9 | diff --git a/crates/engine/src/cmd/design.rs b/crates/engine/src/cmd/design.rs index d1fedc1602..6e9d5b19e4 100644 --- a/crates/engine/src/cmd/design.rs +++ b/crates/engine/src/cmd/design.rs @@ -2,7 +2,7 @@ use serde_json::{Value, json}; use wordcraft_doc::props::{Border, BorderStyle, Borders, LineSpacing, Rgb, TextColor}; -use wordcraft_doc::{Watermark, styles}; +use wordcraft_doc::{StyleKind, Watermark, styles}; use super::sel_result; use crate::{CmdError, CmdResult, CommandSpec, Session, p}; @@ -190,9 +190,15 @@ fn para_spacing(s: &mut Session, v: &Value) -> CmdResult { "double" => (0.0, 8.0, 2.0), _ => (0.0, 8.0, 1.15), }; - s.doc.styles.default_para.space_before = Some(before); - s.doc.styles.default_para.space_after = Some(after); - s.doc.styles.default_para.line_spacing = Some(LineSpacing::Multiple(line)); + let apply = |p: &mut wordcraft_doc::props::ParaProps| { + p.space_before = Some(before); + p.space_after = Some(after); + p.line_spacing = Some(LineSpacing::Multiple(line)); + }; + apply(&mut s.doc.styles.default_para); + for style in s.doc.styles.styles.iter_mut().filter(|style| style.builtin && style.kind == StyleKind::Paragraph) { + apply(&mut style.para); + } sel_result(s) } @@ -237,3 +243,34 @@ fn page_borders(s: &mut Session, v: &Value) -> CmdResult { } sel_result(s) } + +#[cfg(test)] +mod tests { + use super::*; + use serde_json::json; + use wordcraft_doc::{Document, Style}; + + #[test] + fn paragraph_spacing_preset_updates_builtin_styles_and_keeps_custom_styles() { + let mut s = Session::new(Document::new()); + s.doc.styles.styles.push(Style { + id: "CustomSpacing".into(), + name: "Custom Spacing".into(), + kind: StyleKind::Paragraph, + builtin: false, + para: wordcraft_doc::props::ParaProps { space_after: Some(24.0), ..Default::default() }, + ..Default::default() + }); + + s.run("design.paragraphSpacing", &json!({"value": "double"})).unwrap(); + + let normal = s.doc.styles.get("Normal").unwrap(); + assert_eq!(normal.para.line_spacing, Some(LineSpacing::Multiple(2.0))); + let heading = s.doc.styles.get("Heading1").unwrap(); + assert_eq!((heading.para.space_before, heading.para.space_after), (Some(0.0), Some(8.0))); + assert_eq!(heading.para.line_spacing, Some(LineSpacing::Multiple(2.0))); + let custom = s.doc.styles.get("CustomSpacing").unwrap(); + assert_eq!(custom.para.space_after, Some(24.0)); + assert_eq!(custom.para.line_spacing, None); + } +} diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 2699ee237d..dfe2cb81bd 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1,6 +1,6 @@ # WordCraft parity with Microsoft Word -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** trivial (Ink to Shape recognises arrows; previously trivial: Windows Magnifier follows the caret onto a new line, #1119; previously trivial: table border drags with Ctrl and Alt, from the left edge and of selected cells, #711; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: all 12 bibliography styles, #383; previously trivial: formatting revisions landed, #41; previously trivial: Draw Table and Eraser landed, #303; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; replaces the parity tables that lived in ROADMAP.md) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** trivial (Design › Paragraph Spacing presets update built-in paragraph styles, #1913; Ink to Shape recognises arrows; previously trivial: Windows Magnifier follows the caret onto a new line, #1119; previously trivial: table border drags with Ctrl and Alt, from the left edge and of selected cells, #711; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: all 12 bibliography styles, #383; previously trivial: formatting revisions landed, #41; previously trivial: Draw Table and Eraser landed, #303; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; replaces the parity tables that lived in ROADMAP.md) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 The authoritative assessment of how close WordCraft is to Microsoft Word. [`ROADMAP.md`](../ROADMAP.md) summarizes it; [`gaps.md`](gaps.md) itemizes every shortfall; the deep checklists are @@ -57,7 +57,7 @@ full parity for the area. | Area | Weight | Parity | Was (2026-10-06) | Hours | Evidence and what's missing | |---|---|---|---|---|---| | Typing, selection, clipboard, undo, find/replace | 12 | 85% | 85% | 8–12 | Typing parity pinned by `tests_typing.rs` ([typing-parity.md](typing-parity.md)). Paste Special (#235), Advanced Find (#234) and Column Selection (#237) landed; Clipboard pane still missing (PR #264 open). | -| Character and paragraph formatting | 11 | 82% | 85% | 8–12 | Nearly every property, Font/Paragraph dialogs, character border, Phonetic Guide (#288), Enclose Characters (#297). Missing: Asian Typography, kerning/ligature/stylistic-set options in the Font dialog's Advanced tab. | +| Character and paragraph formatting | 11 | 82% | 85% | 8–12 | Nearly every property, Font/Paragraph dialogs, character border, Phonetic Guide (#288), Enclose Characters (#297); Design › Paragraph Spacing presets update built-in paragraph styles (#1913). Missing: Asian Typography, kerning/ligature/stylistic-set options in the Font dialog's Advanced tab. | | Styles and themes | 8 | 74% | 75% | 8–12 | Gallery, pane, create/modify, style sets, themes. Style Inspector landed (#236). Missing: Manage Styles (#270 open), style separators, linked-style edge cases; Word ships 11 Quick Style sets plus dozens of themes, we ship our own smaller set. | | Lists | 6 | 78% | 75% | 5–8 | Bullets, numbering, multilevel, restart, `w:lvlOverride` levels (#134), Word's list AutoFormat and Enter/Backspace behaviour. Missing: Define New Multilevel List dialog depth, list styles, legal numbering edge cases. | | Tables | 8 | 76% | 72% | 10–16 | Merge/split, styles (cell text takes style formatting, #104), custom table styles saved in the .docx (#256), Word 2013 edge, floating tables, rows split across pages, sort, formula, cell gridlines (#243), Draw Table and Eraser (#303). Missing: splitting or erasing around vertically merged cells, nested-table polish. Dragging column and row borders and the resize handle on the page (#217) and the column and row markers on the rulers (#700) landed, with Word's Ctrl, Alt, left-edge and selected-cells drags (#711), and so did selecting columns, rows and cells, the "+" insert buttons, the move handle and double-click AutoFit on the page, Select Column, and drags and Shift+arrows over cells selecting whole cells; right-clicking a cell offers the table's commands, following the selection as in Word (Delete Cells, Rows, Columns or Table, Merge and Split Cells, Distribute, AutoFit, Text Direction, Insert Caption…, Table Properties…); cell text direction landed (#245). | @@ -251,6 +251,7 @@ can be used without committing Word output. | Date | Change | Summary | |---|---|---| +| 2026-10-15 | trivial | Character and paragraph formatting: Design › Paragraph Spacing presets update built-in paragraph styles (#1913); no percentage change | | 2026-10-12 | minor | Czech proofing review: short-word splits rank after deletion, NOSUGGEST excludes suggestions while accepting typed forms, affix comments apply only to headers, ratios keep spaces and repeated-word messages use Czech quotes; synthetic engine end-to-end and latency checks | | 2026-10-12 | minor | Czech spelling from the installed Hunspell dictionary, runtime-table suggestions and generic checks; Czech interface writes cs-CZ documents; no Czech hyphenation patterns bundled; estimates unchanged | | 2026-10-13 | trivial | Windows Magnifier follows the caret onto a new line (#1119): Accessibility row updated; no percentage change | diff --git a/docs/ui-parity.md b/docs/ui-parity.md index b1c503f5c5..d78acade56 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,6 @@ # UI parity with Microsoft Word -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** trivial (Modify Table Style formats every table style part, #714); previously trivial: a click on the ribbon chrome hands the keyboard to the page in the same frame, #1093 follow-up; previously trivial: Page Setup vertical alignment, #1320; previously trivial: the app opens on the Home tab every launch, as in Word; previously trivial: no document behind the Start screen, #1129; previously trivial: equation pictures share a few textures, #1002; previously trivial: selection bar in the left margin, #856; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously major: first version; ribbon, dialogs, shortcuts and on-canvas interaction measured from `crates/ui-egui` and the command registry) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** trivial (Design › Paragraph Spacing presets update built-in paragraph styles, #1913; Modify Table Style formats every table style part, #714); previously trivial: a click on the ribbon chrome hands the keyboard to the page in the same frame, #1093 follow-up; previously trivial: Page Setup vertical alignment, #1320; previously trivial: the app opens on the Home tab every launch, as in Word; previously trivial: no document behind the Start screen, #1129; previously trivial: equation pictures share a few textures, #1002; previously trivial: selection bar in the left margin, #856; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously major: first version; ribbon, dialogs, shortcuts and on-canvas interaction measured from `crates/ui-egui` and the command registry) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 How WordCraft looks and feels next to Word: ribbon, dialogs, panes, keyboard, mouse and touch. Typing behaviour has its own checklist ([`typing-parity.md`](typing-parity.md)). All assets are our @@ -59,6 +59,7 @@ Document title opens Rename Document; the account badge opens Options › Genera | Date | Change | Summary | |---|---|---| +| 2026-10-15 | trivial | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | | 2026-10-13 | trivial | New/Modify Table Style: No Border on a part that inherits its lines hides them; emptying the font box makes the part's font inherited again (#1288) | | 2026-10-14 | trivial | Tab stops edited on the ruler: corner kind selector, click to set, drag to move or off to clear, per-kind markers mirrored for RTL; each gesture one `para.tabs` call and one undo step; Rulers 85% → 90% | | 2026-10-12 | trivial | Tables on the page: one selected cell (Select Cell, or a click along its left edge) is a cell selection when its border is dragged: the border moves in its row only (#962) | From 73f0701255c15402d018e49f7d5d569b61d340ea Mon Sep 17 00:00:00 2001 From: justinjohn0306 Date: Fri, 16 Oct 2026 13:43:51 +0530 Subject: [PATCH 2/7] #1913: expose spacing templates in Backstage --- ROADMAP.md | 1 + crates/ui-egui/src/backstage.rs | 9 +++++++ crates/ui-egui/src/file_dialogs.rs | 39 ++++++++++++++++++++++++++++++ docs/target-app-parity.md | 1 + docs/ui-parity.md | 1 + 5 files changed, 51 insertions(+) diff --git a/ROADMAP.md b/ROADMAP.md index 704e1a3ca9..7e86461400 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -135,6 +135,7 @@ Ranked, to beta (detail and remaining milestones in [docs/roadmap.md](docs/roadm ## Progress log | Date | What landed | +| 2026-10-16 | Design › Paragraph Spacing defaults can be saved as a `.dotx` from File › Save As and reused from File › New (#1913 follow-up) | | 2026-10-15 | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | | 2026-10-14 | DOCX row table border exceptions render and survive saving. Explicit cell borders win; a row exception does not change other rows. | | 2026-10-14 | Tab stops edited on the ruler: the corner selector picks Left/Center/Right/Decimal/Bar, a click sets a stop (Alt skips the snap), dragging moves it with a guide line and position tooltip, dragging off the ruler clears it; markers draw per kind and mirror for RTL; one `para.tabs` call and one undo step per gesture | diff --git a/crates/ui-egui/src/backstage.rs b/crates/ui-egui/src/backstage.rs index b89665ad3b..6b95383c06 100644 --- a/crates/ui-egui/src/backstage.rs +++ b/crates/ui-egui/src/backstage.rs @@ -319,6 +319,10 @@ fn home_page(app: &mut WordApp, ui: &mut Ui) { fn new_page(app: &mut WordApp, ui: &mut Ui) { let t = Tokens::get(ui.ctx()); heading(ui, "New"); + if ui.button(tl!("Browse templates…")).clicked() { + app.new_from_template_dialog(); + } + ui.add_space(10.0); let id = egui::Id::new("backstage_template_search"); let mut query = ui.ctx().data(|d| d.get_temp::(id)).unwrap_or_default(); let search = ui.add(egui::TextEdit::singleline(&mut query).hint_text(tl!("Search for templates")).desired_width(360.0)); @@ -389,6 +393,9 @@ fn save_as_page(app: &mut WordApp, ui: &mut Ui) { if ui.button(egui::RichText::new(tl!("Browse…")).font(medium(14.0))).clicked() { app.save_as_dialog(); } + if ui.button(egui::RichText::new(tl!("Save as Template…")).font(medium(14.0))).clicked() { + app.save_template_dialog(); + } } fn info_page(app: &mut WordApp, ui: &mut Ui) { @@ -630,6 +637,7 @@ mod tests { h.run_steps(4); assert_eq!(h.state().ui.backstage_page, "new", "the link opens New"); assert!(h.query_by_label("Report").is_some(), "New shows every template"); + assert!(h.query_by_label("Browse templates…").is_some(), "New can create from a saved template"); assert!(h.query_by_label("Recent").is_none(), "New has no Recent list"); } @@ -709,6 +717,7 @@ mod tests { ); h.run_steps(4); assert!(h.query_by_label("Browse…").is_some(), "Save As has Browse button"); + assert!(h.query_by_label("Save as Template…").is_some(), "Save As can save a reusable template"); assert!(h.query_by_label("Recent").is_none(), "Save As has no list that opens documents"); } diff --git a/crates/ui-egui/src/file_dialogs.rs b/crates/ui-egui/src/file_dialogs.rs index 0dc13b1f3c..68498c797d 100644 --- a/crates/ui-egui/src/file_dialogs.rs +++ b/crates/ui-egui/src/file_dialogs.rs @@ -39,6 +39,7 @@ const DOCUMENTS: &[&str] = &["docx", "docm", "dotx", "dotm", "doc", "dot", "odt" /// The host's system dialog and the built-in browser offer the same. pub fn open_filters(purpose: &str) -> &'static [(&'static str, &'static [&'static str])] { match purpose { + "template" => &[("Word templates", &["dotx", "dotm"])], "picture" => &[("Pictures", PICTURES)], "font" => &[("Fonts", wordcraft_fonts::FONT_FILE_EXTS)], "recipients" => &[("Recipient lists", wordcraft_engine::cmd::mailings::RECIPIENT_EXTENSIONS), ("All files", &["*"])], @@ -50,12 +51,16 @@ pub fn open_filters(purpose: &str) -> &'static [(&'static str, &'static [&'stati pub(crate) enum AfterPick { /// Open the picked document. OpenDocument, + /// Create a document from a picked template. + NewFromTemplate, /// Insert the picked picture, or replace the pending Change Picture target. Picture, /// Save the document there, then carry on. SaveAs(AfterSave), /// Save a copy there in this format (`pdf`, `docx`, `png`…). Export { ext: String }, + /// Save the current document as a template. + SaveTemplate, /// Write the PDF of these print settings there (File › Print › Save these pages as PDF). PrintPdf { settings: Value }, /// Load the picked CSV/TSV/text file or spreadsheet as the mail-merge recipients (#240, #334). @@ -187,6 +192,12 @@ impl WordApp { self.ui.backstage = false; r } + AfterPick::NewFromTemplate => { + let Some(path) = picked else { return Ok(json!({"cancelled": true})) }; + let r = self.run("file.newFromTemplate", json!({"path": path})); + self.ui.backstage = false; + r + } AfterPick::Picture => { let Some(path) = picked else { self.change_picture_target = None; @@ -227,6 +238,10 @@ impl WordApp { } r } + AfterPick::SaveTemplate => { + let Some(path) = picked else { return Ok(json!({"cancelled": true})) }; + self.run("file.saveTemplate", json!({"path": path})) + } AfterPick::PrintPdf { settings } => { let Some(path) = picked else { return Ok(json!({"cancelled": true})) }; let mut params = settings; @@ -272,6 +287,17 @@ impl WordApp { let _ = self.save_as(AfterSave::Nothing); } + /// Save the current document as a reusable Word template. + pub(crate) fn save_template_dialog(&mut self) { + let name = format!("{}.dotx", self.title_stem()); + let _ = self.ask_file(FileDialogRequest::Save { name }, AfterPick::SaveTemplate); + } + + /// Pick a Word template and create a new document from it. + pub(crate) fn new_from_template_dialog(&mut self) { + let _ = self.ask_file(FileDialogRequest::Open { purpose: "template".into() }, AfterPick::NewFromTemplate); + } + /// Ask where to save, save there, then do `after`. pub(crate) fn save_as(&mut self, after: AfterSave) -> Asked { let name = self.default_save_name(); @@ -338,6 +364,19 @@ mod tests { use crate::Services; use wordcraft_engine::Session; + #[test] + fn saved_spacing_template_can_create_a_new_document() { + let root = std::env::temp_dir().join(format!("wordcraft-spacing-template-{}", std::process::id())); + let path = root.with_extension("dotx"); + let mut app = WordApp::new(Session::new(wordcraft_doc::Document::new()), Services::default()); + app.run("design.paragraphSpacing", json!({"value": "double"})).unwrap(); + app.finish_pick(AfterPick::SaveTemplate, Some(path.to_string_lossy().into_owned())).unwrap(); + app.run("file.new", json!({})).unwrap(); + app.finish_pick(AfterPick::NewFromTemplate, Some(path.to_string_lossy().into_owned())).unwrap(); + assert_eq!(app.session.doc.styles.default_para.line_spacing, Some(wordcraft_doc::props::LineSpacing::Multiple(2.0))); + let _ = std::fs::remove_file(path); + } + const UNSAVED: &str = "My unsaved novel chapter"; /// Dialogs the fake host was asked to show, each with the channel its answer goes through. diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index dfe2cb81bd..4e203fceca 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -250,6 +250,7 @@ can be used without committing Word output. ## Revision history | Date | Change | Summary | +| 2026-10-16 | trivial | Template save and create-from-template UI for reusable paragraph spacing defaults (#1913); no percentage change | |---|---|---| | 2026-10-15 | trivial | Character and paragraph formatting: Design › Paragraph Spacing presets update built-in paragraph styles (#1913); no percentage change | | 2026-10-12 | minor | Czech proofing review: short-word splits rank after deletion, NOSUGGEST excludes suggestions while accepting typed forms, affix comments apply only to headers, ratios keep spaces and repeated-word messages use Czech quotes; synthetic engine end-to-end and latency checks | diff --git a/docs/ui-parity.md b/docs/ui-parity.md index d78acade56..647ecc1457 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -58,6 +58,7 @@ Document title opens Rename Document; the account badge opens Options › Genera ## Revision history | Date | Change | Summary | +| 2026-10-16 | trivial | File › Save As exposes Save as Template and File › New can browse and create from a `.dotx`; spacing defaults survive the round trip (#1913) | |---|---|---| | 2026-10-15 | trivial | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | | 2026-10-13 | trivial | New/Modify Table Style: No Border on a part that inherits its lines hides them; emptying the font box makes the part's font inherited again (#1288) | From 1d890c093271aa11f7a0ef8913177b6df33383c3 Mon Sep 17 00:00:00 2001 From: justinjohn0306 Date: Fri, 16 Oct 2026 16:41:47 +0530 Subject: [PATCH 3/7] =?UTF-8?q?#1913:=20translate=20"Browse=20templates?= =?UTF-8?q?=E2=80=A6"=20in=20every=20interface=20catalog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The i18n audit failed on the new Backstage button. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/i18n/bg.tsv | 1 + crates/ui-egui/src/i18n/cs.tsv | 1 + crates/ui-egui/src/i18n/de.tsv | 1 + crates/ui-egui/src/i18n/es.tsv | 1 + crates/ui-egui/src/i18n/et.tsv | 1 + crates/ui-egui/src/i18n/fr.tsv | 1 + crates/ui-egui/src/i18n/hr.tsv | 1 + crates/ui-egui/src/i18n/hu.tsv | 1 + crates/ui-egui/src/i18n/it.tsv | 1 + crates/ui-egui/src/i18n/ja.tsv | 1 + crates/ui-egui/src/i18n/ko.tsv | 1 + crates/ui-egui/src/i18n/pl.tsv | 1 + crates/ui-egui/src/i18n/pt-br.tsv | 1 + crates/ui-egui/src/i18n/ru.tsv | 1 + crates/ui-egui/src/i18n/sr-latn.tsv | 1 + crates/ui-egui/src/i18n/sr.tsv | 1 + crates/ui-egui/src/i18n/sv.tsv | 1 + crates/ui-egui/src/i18n/tr.tsv | 1 + crates/ui-egui/src/i18n/uk.tsv | 1 + crates/ui-egui/src/i18n/vi.tsv | 1 + crates/ui-egui/src/i18n/zh-hans.tsv | 1 + crates/ui-egui/src/i18n/zh-hant.tsv | 1 + 22 files changed, 22 insertions(+) diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 66d02b6cf9..bfb5a10e33 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -938,6 +938,7 @@ {selected} of {words} words Думи: {selected} от {words} {words} words Думи: {words} Browse… Преглед… + Browse templates… Преглед на шаблони… Equation Уравнение Review Преглед Track\nChanges Проследяване\nна промените diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 02e380d826..382cd2daeb 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -158,6 +158,7 @@ Breaks Konce Bring Forward Přenést blíž Browse… Procházet… + Browse templates… Procházet šablony… Built-In Vestavěné Built-in style Vestavěný styl Built-in styles can't be deleted. Vestavěné styly nelze odstranit. diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 6a9f286f88..6ec1035396 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -904,6 +904,7 @@ {group} settings {group}-Einstellungen {key}+Click to follow link {key}+Klick, um dem Link zu folgen Browse… Durchsuchen… + Browse templates… Vorlagen durchsuchen… {words} words Wörter: {words} {selected} of {words} words Wörter: {words}; ausgewählt: {selected} Direction: Richtung: diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 794cef7de7..fd8bf0c9a1 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -1029,6 +1029,7 @@ {selected} of {words} words {selected} de {words} palabras {words} words {words} palabras Browse… Examinar… + Browse templates… Examinar plantillas… Equation Ecuación Review Revisar Track\nChanges Control de\ncambios diff --git a/crates/ui-egui/src/i18n/et.tsv b/crates/ui-egui/src/i18n/et.tsv index b37c9ac9d0..0b016c3709 100644 --- a/crates/ui-egui/src/i18n/et.tsv +++ b/crates/ui-egui/src/i18n/et.tsv @@ -1158,6 +1158,7 @@ Line breaking Reamurdmine Ungroup Tühista rühmitus Browse… Sirvi… + Browse templates… Sirvi malle… Draw Ink Joonista tindiga Erase Ink Kustuta tint Hide Ink Peida tint diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 78f281359a..91760a3b38 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -935,6 +935,7 @@ {group} settings Paramètres de {group} {key}+Click to follow link {key}+clic pour suivre le lien Browse… Parcourir… + Browse templates… Parcourir les modèles… {words} words {words} mots {selected} of {words} words {selected} mots sur {words} Apply Styles Appliquer les styles diff --git a/crates/ui-egui/src/i18n/hr.tsv b/crates/ui-egui/src/i18n/hr.tsv index 2fda6e1926..5c8e5f8009 100644 --- a/crates/ui-egui/src/i18n/hr.tsv +++ b/crates/ui-egui/src/i18n/hr.tsv @@ -298,6 +298,7 @@ Bring Forward Pomakni naprijed Browse in WordCraft… Pregledaj u programu WordCraft… Browse… Pregledaj… + Browse templates… Pregledaj predloške… Building Block Gallery Content Control Kontrola sadržaja galerije gradivnih blokova Built-In Ugrađeno Built-in style Ugrađeni stil diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 73d3f752ee..49444db56a 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -1092,6 +1092,7 @@ Preview Előnézet getartcraft.com/apps/wordcraft getartcraft.com/apps/wordcraft Browse… Tallózás… + Browse templates… Sablonok tallózása… AaBbYyZz AaBbYyZz ŐőŰű Align Top Left Igazítás balra fel Align Top Center Igazítás középre fel diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 0edbd298a2..33a586c124 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -925,6 +925,7 @@ {selected} of {words} words Parole: {words}; selezionate: {selected} {words} words Parole: {words} Browse… Sfoglia… + Browse templates… Sfoglia modelli… Equation Equazione Review Revisione Track\nChanges Revisioni diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 9c92f9fcfd..7be0575d56 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -977,6 +977,7 @@ {group} settings {group} の設定 {key}+Click to follow link {key} キーを押しながらクリックしてリンク先を表示 Browse… 参照… + Browse templates… テンプレートを参照… {words} words {words} 語 {selected} of {words} words {selected}/{words} 語 Direction: 方向: diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index 96002d803a..a9df0f1bc7 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -983,6 +983,7 @@ {group} settings {group} 설정 {key}+Click to follow link {key}+클릭하여 링크 열기 Browse… 찾아보기… + Browse templates… 서식 파일 찾아보기… {words} words 단어 {words}개 {selected} of {words} words 전체 {words}개 중 {selected}개 선택 Apply Styles 스타일 적용 diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index dd9969a3b6..ffbe1d6778 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -1088,6 +1088,7 @@ AutoSave only keeps .docx, .odt and .rtf files; {name} can't keep all formatting. Save as .docx to turn on AutoSave. Autozapis obsługuje tylko pliki .docx, .odt i .rtf; plik {name} nie zachowa całego formatowania. Zapisz jako .docx, aby włączyć Autozapis. Based on: {style} Na podstawie: {style} Browse… Przeglądaj… + Browse templates… Przeglądaj szablony… Built-in style Styl wbudowany Built-in styles can't be deleted. Nie można usuwać stylów wbudowanych. Change Password… Zmień hasło… diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 5e44995910..735f9c34ea 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -977,6 +977,7 @@ {group} settings Configurações de {group} {key}+Click to follow link {key}+clique para seguir o link Browse… Procurar… + Browse templates… Procurar modelos… {words} words Palavras: {words} {selected} of {words} words Palavras: {words}; seleção: {selected} Dark page (white text on black) Página escura (texto branco sobre preto) diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index a9c41168b7..33e9235512 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -1102,6 +1102,7 @@ preview Title Пример Preview Предварительный просмотр getartcraft.com/apps/wordcraft getartcraft.com/apps/wordcraft Browse… Обзор… + Browse templates… Обзор шаблонов… # Equation gallery, themes, watermarks, paper sizes, table styles and other strings the # interface audit (`i18n/audit.rs`) found without a Russian entry. diff --git a/crates/ui-egui/src/i18n/sr-latn.tsv b/crates/ui-egui/src/i18n/sr-latn.tsv index 81d9f4f4af..976039325a 100644 --- a/crates/ui-egui/src/i18n/sr-latn.tsv +++ b/crates/ui-egui/src/i18n/sr-latn.tsv @@ -1039,6 +1039,7 @@ {name} is protected with a password. {name} je zaštićen lozinkom. {size} pt {size} pt Browse… Potraži… + Browse templates… Potraži šablone… {words} words {words} reči {selected} of {words} words {selected} od {words} reči Direction: Smer: diff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsv index 42bbeaf7b6..50630caa7c 100644 --- a/crates/ui-egui/src/i18n/sr.tsv +++ b/crates/ui-egui/src/i18n/sr.tsv @@ -1043,6 +1043,7 @@ {name} is protected with a password. {name} је заштићен лозинком. {size} pt {size} пт Browse… Потражи… + Browse templates… Потражи шаблоне… {words} words {words} речи {selected} of {words} words {selected} од {words} речи Direction: Смер: diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 6052c9a231..b2c0d1d094 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -1019,6 +1019,7 @@ {selected} of {words} words {selected} av {words} ord {words} words {words} ord Browse… Bläddra… + Browse templates… Bläddra bland mallar… Equation Ekvation Review Granska Track\nChanges Spåra\nändringar diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 8ace2dd7b6..b15687d148 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -1102,6 +1102,7 @@ preview Title Örnek Preview Önizleme getartcraft.com/apps/wordcraft getartcraft.com/apps/wordcraft Browse… Gözat… + Browse templates… Şablonlara gözat… # Equation gallery, themes, watermarks, paper sizes, table styles and other strings the # interface audit (`i18n/audit.rs`) found without a Russian entry. diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index ca2070d95d..e64cf7991b 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -1005,6 +1005,7 @@ {group} settings Параметри групи «{group}» {key}+Click to follow link {key}+клацання, щоб перейти за посиланням Browse… Огляд… + Browse templates… Огляд шаблонів… {words} words Слів: {words} {selected} of {words} words Слів: {words}; виділено: {selected} Apply Styles Застосувати стилі diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index c1d28add3d..0867ed5260 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -930,6 +930,7 @@ {selected} of {words} words Từ: {selected} trên {words} {words} words Từ: {words} Browse… Duyệt… + Browse templates… Duyệt mẫu… Equation Phương trình Review Xem lại Track\nChanges Theo dõi\nthay đổi diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 07b0861daa..9cb2ff4967 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -989,6 +989,7 @@ {group} settings {group}设置 {key}+Click to follow link 按住 {key} 并单击可访问链接 Browse… 浏览… + Browse templates… 浏览模板… {words} words {words} 个字 {selected} of {words} words {selected}/{words} 个字 Direction: 方向: diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 7b75dc9783..331b9cbbf9 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -978,6 +978,7 @@ {group} settings {group}設定 {key}+Click to follow link 按住 {key} 並按一下以追蹤連結 Browse… 瀏覽… + Browse templates… 瀏覽範本… {words} words {words} 個字 {selected} of {words} words {selected}/{words} 個字 Direction: 方向: From 913d9fa5ab9a0de830ed5149efd3edac831b320a Mon Sep 17 00:00:00 2001 From: SlavenDj Date: Mon, 19 Oct 2026 23:43:49 +0200 Subject: [PATCH 4/7] =?UTF-8?q?Offer=20Blank=20document,=20Browse=E2=80=A6?= =?UTF-8?q?=20and=20Home=20in=20the=20empty=20window=20(#3126)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With no document open (Esc on the Start screen, File › Close) the page area was blank while the ribbon was greyed out, so the only way back to the Start screen was the account button. It now says no document is open and offers Blank document, Browse… and Home; Home returns to the Start screen without creating a document, and Blank document opens one ready for typing. --- ROADMAP.md | 3 ++- crates/ui-egui/src/canvas.rs | 32 ++++++++++++++++++++++++- crates/ui-egui/src/lib.rs | 46 ++++++++++++++++++++++++++++++++++-- docs/ui-parity.md | 5 ++-- 4 files changed, 80 insertions(+), 6 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 5a9fbf09fe..70f49dc55d 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -2,7 +2,7 @@ **Stage: alpha** · next: beta, ~15 points (60% → 75% ready for real work) and ~150–230 h away -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-19 · **Change:** trivial (progress log: caret inside ligatures, #1974; previously trivial: text typed into a content control takes the control's formatting; localized placeholder styles recognised; previously trivial: forms protection keeps its content controls: no inserting, Properties or Remove Content Control; previously trivial: long navigation headings wrap onto further lines within the pane, #3015; previously trivial: clearing a no-match font query keeps the recent heading visible, #2068; previously trivial: a word after a slash wraps whole, like Word, #2963; previously trivial: progress log: a header-cell picture watermark sits behind the text, #1775; previously trivial: symbols keep their font when the text font changes, #2036; previously trivial: opening a DOCX no longer copies its pictures; previously trivial: Add Font imports every selected font file, #1789); previously trivial (RTF export writes sections (gap 19); previously trivial: ODT export writes sections (gap 19); previously trivial: Read Aloud speaks each sentence in its own language, #1843; previously trivial: hint-reliant CJK outlines; previously trivial: Ctrl+wheel zoom no longer scrolls the document, #1743; previously trivial: progress log: Turkish case mapping in AutoCorrect, #1923; previously trivial: a mouse drag on a table leaves the view where it is, #1738; previously trivial: progress log: Hebrew field results and smart quotes, #1670; previously trivial: Backspace removes a selected table, rows or columns, #1844; previously trivial: progress log: mixed Hebrew/Latin text keeps its order in Word, #1543; previously trivial: progress log: web typing in non-Latin text no longer repeats, #1480; previously trivial: progress log: font family caches bounded and math font lookups follow font changes, #1354; previously trivial: `-->` AutoCorrect replacement, #2223; previously trivial: numbered headings, #1793; previously trivial: Navigation Find exposes Results, #2096; previously trivial: progress log: Columns on selected text, #2024; previously trivial: progress log: legacy outline, shadow, emboss and imprint text effects drawn, #2534; previously trivial: progress log: Indonesian proofing, #498; previously trivial: progress log: DOCX glossary documents (building blocks); previously trivial: progress log: Read Mode keeps the keyboard and shows whole, unobscured columns, #1772); previously trivial: progress log: font list entries of tall-ascent fonts no longer cut off, #2570); previously trivial: progress log: Split Cells and Convert Text to Table dialogs follow the Word check, #2592; previously trivial: a new source's Tag is made like Word's, three letters of the author and two digits of the year with a number added when taken, and an edit keeps the Tag, #2094; previously trivial: Web Layout fills the window width, #1876; previously trivial: progress log: Different First Page headers reachable from page 1, #2826; previously trivial: Language dialog keeps inherited proofing language and no-proof choices (#2717); previously trivial: progress log: web preferences kept between visits, #2132; previously trivial: progress log: undrawable private-use list bullets show the level's default bullet, #1683; previously trivial: progress log: `w:eastAsianLayout` kept on save; previously trivial: table style editor formats every part, #714); previously trivial: VML freeforms read and kept on save; previously trivial: progress log: consistent preferred cell widths; previously trivial: multi-paragraph field instructions no longer add blank lines; previously trivial: page-break-only list paragraphs hide their labels; previously trivial: progress log: grouped `flowChartOr` shapes draw their circle and crossing spokes; previously trivial: progress log: copies keep their formatting in other programs, #1523; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-19 · **Change:** trivial (the empty window says no document is open and offers Blank document, Browse… and Home, #3126; previously trivial: progress log: caret inside ligatures, #1974; previously trivial: text typed into a content control takes the control's formatting; localized placeholder styles recognised; previously trivial: forms protection keeps its content controls: no inserting, Properties or Remove Content Control; previously trivial: long navigation headings wrap onto further lines within the pane, #3015; previously trivial: clearing a no-match font query keeps the recent heading visible, #2068; previously trivial: a word after a slash wraps whole, like Word, #2963; previously trivial: progress log: a header-cell picture watermark sits behind the text, #1775; previously trivial: symbols keep their font when the text font changes, #2036; previously trivial: opening a DOCX no longer copies its pictures; previously trivial: Add Font imports every selected font file, #1789); previously trivial (RTF export writes sections (gap 19); previously trivial: ODT export writes sections (gap 19); previously trivial: Read Aloud speaks each sentence in its own language, #1843; previously trivial: hint-reliant CJK outlines; previously trivial: Ctrl+wheel zoom no longer scrolls the document, #1743; previously trivial: progress log: Turkish case mapping in AutoCorrect, #1923; previously trivial: a mouse drag on a table leaves the view where it is, #1738; previously trivial: progress log: Hebrew field results and smart quotes, #1670; previously trivial: Backspace removes a selected table, rows or columns, #1844; previously trivial: progress log: mixed Hebrew/Latin text keeps its order in Word, #1543; previously trivial: progress log: web typing in non-Latin text no longer repeats, #1480; previously trivial: progress log: font family caches bounded and math font lookups follow font changes, #1354; previously trivial: `-->` AutoCorrect replacement, #2223; previously trivial: numbered headings, #1793; previously trivial: Navigation Find exposes Results, #2096; previously trivial: progress log: Columns on selected text, #2024; previously trivial: progress log: legacy outline, shadow, emboss and imprint text effects drawn, #2534; previously trivial: progress log: Indonesian proofing, #498; previously trivial: progress log: DOCX glossary documents (building blocks); previously trivial: progress log: Read Mode keeps the keyboard and shows whole, unobscured columns, #1772); previously trivial: progress log: font list entries of tall-ascent fonts no longer cut off, #2570); previously trivial: progress log: Split Cells and Convert Text to Table dialogs follow the Word check, #2592; previously trivial: a new source's Tag is made like Word's, three letters of the author and two digits of the year with a number added when taken, and an edit keeps the Tag, #2094; previously trivial: Web Layout fills the window width, #1876; previously trivial: progress log: Different First Page headers reachable from page 1, #2826; previously trivial: Language dialog keeps inherited proofing language and no-proof choices (#2717); previously trivial: progress log: web preferences kept between visits, #2132; previously trivial: progress log: undrawable private-use list bullets show the level's default bullet, #1683; previously trivial: progress log: `w:eastAsianLayout` kept on save; previously trivial: table style editor formats every part, #714); previously trivial: VML freeforms read and kept on save; previously trivial: progress log: consistent preferred cell widths; previously trivial: multi-paragraph field instructions no longer add blank lines; previously trivial: page-break-only list paragraphs hide their labels; previously trivial: progress log: grouped `flowChartOr` shapes draw their circle and crossing spokes; previously trivial: progress log: copies keep their formatting in other programs, #1523; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-18 · **Change:** trivial (long navigation headings wrap onto further lines within the pane, #3015; previously trivial: clearing a no-match font query keeps the recent heading visible, #2068; previously trivial: a word after a slash wraps whole, like Word, #2963; previously trivial: RTF export writes sections (gap 19); previously trivial: ODT export writes sections (gap 19); previously trivial: progress log: pasted blockquotes are indented paragraphs, #1270; previously trivial: progress log: print-area strings translated in every catalog; previously trivial: progress log: comments readable in the dark theme, #2045; previously trivial: progress log: ODT sections, #1379; previously trivial: progress log: table deletes, Change Case and Unlink Fields respect Track Changes and locked content controls, #1329; previously trivial: progress log: rounded rectangle corners, #1476; previously trivial: progress log: Save As type list, #1399; previously trivial: progress log: privacy options on save, #1062; previously trivial: progress log: equation pictures in theme colours on Windows, #1002; previously trivial: symbol fonts, #776; previously trivial: the save prompt answers from the keyboard, #861; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously trivial: formatting revisions landed, #41; previously trivial: Draw tab ink, #307, and Draw Table and Eraser, #303, landed: catalog 402/434; previously minor: readiness table with hours per audience; full number back to the additive weighted sum, 60%; mainstream and essentials numbers added; alpha gate checked; previously major: full re-measure against Word for Mac 16.113.4; restructured to the craftrules progress-docs standard) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 > **Printing update:** 2026-10-12 · direct desktop printing through craft-print; details below. @@ -141,6 +141,7 @@ Imported Word 97–2003 `.doc`/`.dot` files now ask for a supported DOCX target - 2026-10-15: Find opens Navigation on Results; editing the query restores Results after manual Headings/Pages navigation. Typed and selected-text searches retain document contents (#2096). | Date | What landed | +| 2026-10-19 | The empty window (no document, as after Esc on the Start screen or File › Close) says no document is open in the page area and offers Blank document, Browse… and Home; Home returns to the Start screen without making a document (#3126). | | 2026-10-19 | Save As, Export and Open no longer do nothing on Linux desktops whose file chooser portal fails to show its dialog (#2999): a "cancel" quicker than anyone could make one asks again without the parent window, then opens the built-in file browser. | | 2026-10-18 | Long navigation headings wrap onto further lines inside the resizable pane instead of ending in an ellipsis: the row grows with the text and the pane keeps its width (#759, #3015). | | 2026-10-18 | Clearing a font query with no matches keeps Recently Used Fonts visible at the top of a scrollable list. The initial scroll position no longer skips its heading; measured keyboard scrolling is unchanged (#2068). | diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index fabe1d43dc..1745f49cf1 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -12,7 +12,7 @@ use wordcraft_layout::display::CommentDisplay; use wordcraft_layout::{DocLayout, Page, Placed}; use crate::WordApp; -use crate::theme::{Tokens, regular, semibold}; +use crate::theme::{Tokens, medium, regular, semibold}; /// Points on screen per document point at 100% (96 px per inch, like a word processor). pub const PX_PER_PT: f32 = 96.0 / 72.0; @@ -899,6 +899,36 @@ fn drawing_grid_step(spacing: f32, scale: f32) -> f32 { step } +/// The page area with no document open (#3126): what to do next, so Esc on the Start screen or +/// File › Close leaves the ways to make or open a document in sight instead of just a greyed-out +/// ribbon that looks broken. The page itself stays empty until one is made or opened, as #1129 +/// has it; Home goes back to the Start screen. +pub(crate) fn empty_state(app: &mut WordApp, ui: &mut Ui) { + let t = Tokens::get(ui.ctx()); + let full = ui.available_rect_before_wrap(); + // Centred in the page area, but never pushed off the top of a short window. + ui.add_space(((full.height() - 100.0) * 0.5).max(24.0)); + ui.vertical_centered(|ui| { + ui.label(egui::RichText::new(tl!("No document is open. Create a document or open one first.")).font(regular(15.0)).color(t.text_dim)); + ui.add_space(16.0); + if ui.button(egui::RichText::new(tl!("Blank document")).font(medium(14.0))).clicked() { + let _ = app.run("file.new", json!({"template": "blank"})); + app.canvas.want_focus = true; + } + ui.add_space(2.0); + if ui.button(egui::RichText::new(tl!("Browse…")).font(medium(14.0))).clicked() { + let _ = app.run("ui.openFileDialog", json!({})); + } + ui.add_space(8.0); + // A frame-less button, so it reads as a link beside the two actions; the ribbon's Home tab + // is a button above it, so the test takes the lower one with the label. + let home = ui.add(egui::Button::new(egui::RichText::new(tl!("Home")).font(medium(13.5)).color(t.accent)).frame(false)); + if home.clicked() { + let _ = app.run("ui.backstage", json!({"value": true, "page": "home"})); + } + }); +} + pub fn show(app: &mut WordApp, ui: &mut Ui) { let t = Tokens::get(ui.ctx()); let full = ui.available_rect_before_wrap(); diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index c7f687a4e8..40376262b4 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -2215,11 +2215,14 @@ impl WordApp { if self.ui.backstage { backstage::show(self, ui); } else if !self.has_document() { - // No document open (#1129): the ribbon greyed out but for Help, and no page. + // No document open (#1129): the ribbon greyed out but for Help, and no page. The page + // area says how to make or open one, the ways out of the empty window (#3126). chrome::title_bar(self, ui); ribbon::show(self, ui); chrome::status_bar(self, ui); - egui::CentralPanel::default().frame(egui::Frame::NONE.fill(t.canvas)).show(ui, |_| {}); + egui::CentralPanel::default().frame(egui::Frame::NONE.fill(t.canvas)).show(ui, |ui| { + canvas::empty_state(self, ui); + }); } else { chrome::title_bar(self, ui); if !self.session.view.focus_mode { @@ -3027,6 +3030,45 @@ mod tests { assert!(h.query_by_label("Blank document").is_some(), "where a document can be made"); } + /// #3126: the empty window (Esc on the Start screen, File › Close) is not a dead end: its + /// page area offers Blank document, Browse… and Home. Home returns to the Start screen and + /// makes nothing; Blank document makes one and the empty state gives way to the page. + #[test] + fn empty_window_offers_ways_to_make_or_open_a_document() { + use egui::accesskit::Role; + use egui_kittest::kittest::Queryable; + let mut a = app(); + a.start_screen(); + let mut h = harness(a); + h.run_steps(4); + h.key_press(egui::Key::Escape); + h.run_steps(4); + assert!(!h.state().has_document() && !h.state().ui.backstage, "the empty window"); + assert!(h.query_by_label("No document is open. Create a document or open one first.").is_some(), "the page area says what to do"); + assert!(h.query_by_role_and_label(Role::Button, "Blank document").is_some(), "Blank document is offered"); + assert!(h.query_by_role_and_label(Role::Button, "Browse…").is_some(), "Browse… is offered"); + // Home in the page area (the ribbon's Home tab shares the label but sits above it) goes + // back to the Start screen and creates no document. + let home = h + .get_all_by_role_and_label(Role::Button, "Home") + .max_by(|a, b| a.rect().top().total_cmp(&b.rect().top())) + .expect("a Home button in the page area"); + home.click(); + h.run_steps(4); + assert!(h.state().ui.backstage && h.state().ui.backstage_page == "home", "Home reaches the Start screen"); + assert!(!h.state().has_document(), "Home alone makes no document"); + h.key_press(egui::Key::Escape); + h.run_steps(4); + // Blank document makes one, ready for typing, and the empty state is gone. + h.get_by_role_and_label(Role::Button, "Blank document").click(); + h.run_steps(4); + assert!(h.query_by_label("No document is open. Create a document or open one first.").is_none(), "the page takes over"); + let a = h.state_mut(); + assert!(a.has_document() && !a.ui.backstage, "Blank document opens one"); + a.run("text.insert", json!({"text": "Hello"})).unwrap(); + assert_eq!(a.session.doc.plain_text(wordcraft_doc::StoryRef::Body).trim(), "Hello"); + } + /// #1908: with no document open the Home ribbon's split buttons grey out like the plain /// buttons beside them, and their drop-down arrow opens no menu. #[test] diff --git a/docs/ui-parity.md b/docs/ui-parity.md index d4948067e1..c604e7c853 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,6 @@ # UI parity with Microsoft Word -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-18 · **Change:** trivial (long navigation headings wrap onto further lines within the pane, #3015; previously trivial: clearing a no-match font query keeps the recent heading visible, #2068; previously trivial: dragging the vertical scrollbar names the page at the top of the window, #2551; previously trivial: Add Font imports every selected font file, #1789); previously trivial (File › Close keeps the window, #1712; previously trivial: the Spike: Ctrl+F3 and Ctrl+Shift+F3; previously trivial: Ctrl+wheel zoom no longer scrolls the document, #1743; previously trivial: a mouse drag on a table leaves the view where it is, #1738; previously trivial: numbered headings, #1793; previously trivial: Navigation Find exposes Results, #2096; previously trivial: the tab strip never draws tabs over Comments / Editing / Share, #2026; previously trivial: Columns on selected text, #2024; previously trivial: Different First Page headers reachable from page 1, #2826; previously trivial: a copied equation also goes in the clipboard's MathML formats, #1297; previously trivial: Read Mode keeps the keyboard, shows whole columns and keeps text clear of the page-turn bar, #1772); previously trivial: font list entries of tall-ascent fonts sit in their row, not cut off, #2570); previously trivial: Split Cells and Convert Text to Table dialogs follow Word's merged-cell limits and Initial column width, #2592; previously trivial: a new source's Tag is made like Word's, three letters of the author and two digits of the year with a number added when taken, and an edit keeps the Tag, #2094; previously trivial: Web Layout text fills the window width, #1876; previously trivial: Language dialog keeps inherited proofing language and no-proof choices (#2717)); previously trivial: comment balloons readable in the dark theme, #2045; previously trivial: Recently Used Fonts section at the top of the font list, #2068; previously trivial: web preferences kept between visits, #2132; previously trivial: dialog close control: a Windows-style box at the title bar's right end, the whole box clickable, red on hover, #1885); previously trivial (Modify Table Style formats every table style part, #714); previously trivial: a click on the ribbon chrome hands the keyboard to the page in the same frame, #1093 follow-up; previously trivial: Page Setup vertical alignment, #1320; previously trivial: the app opens on the Home tab every launch, as in Word; previously trivial: no document behind the Start screen, #1129; previously trivial: equation pictures share a few textures, #1002; previously trivial: selection bar in the left margin, #856; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously major: first version; ribbon, dialogs, shortcuts and on-canvas interaction measured from `crates/ui-egui` and the command registry) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-19 · **Change:** trivial (the empty window says no document is open and offers Blank document, Browse… and Home, #3126; previously trivial: long navigation headings wrap onto further lines within the pane, #3015; previously trivial: clearing a no-match font query keeps the recent heading visible, #2068; previously trivial: dragging the vertical scrollbar names the page at the top of the window, #2551; previously trivial: Add Font imports every selected font file, #1789); previously trivial (File › Close keeps the window, #1712; previously trivial: the Spike: Ctrl+F3 and Ctrl+Shift+F3; previously trivial: Ctrl+wheel zoom no longer scrolls the document, #1743; previously trivial: a mouse drag on a table leaves the view where it is, #1738; previously trivial: numbered headings, #1793; previously trivial: Navigation Find exposes Results, #2096; previously trivial: the tab strip never draws tabs over Comments / Editing / Share, #2026; previously trivial: Columns on selected text, #2024; previously trivial: Different First Page headers reachable from page 1, #2826; previously trivial: a copied equation also goes in the clipboard's MathML formats, #1297; previously trivial: Read Mode keeps the keyboard, shows whole columns and keeps text clear of the page-turn bar, #1772); previously trivial: font list entries of tall-ascent fonts sit in their row, not cut off, #2570); previously trivial: Split Cells and Convert Text to Table dialogs follow Word's merged-cell limits and Initial column width, #2592; previously trivial: a new source's Tag is made like Word's, three letters of the author and two digits of the year with a number added when taken, and an edit keeps the Tag, #2094; previously trivial: Web Layout text fills the window width, #1876; previously trivial: Language dialog keeps inherited proofing language and no-proof choices (#2717)); previously trivial: comment balloons readable in the dark theme, #2045; previously trivial: Recently Used Fonts section at the top of the font list, #2068; previously trivial: web preferences kept between visits, #2132; previously trivial: dialog close control: a Windows-style box at the title bar's right end, the whole box clickable, red on hover, #1885); previously trivial (Modify Table Style formats every table style part, #714); previously trivial: a click on the ribbon chrome hands the keyboard to the page in the same frame, #1093 follow-up; previously trivial: Page Setup vertical alignment, #1320; previously trivial: the app opens on the Home tab every launch, as in Word; previously trivial: no document behind the Start screen, #1129; previously trivial: equation pictures share a few textures, #1002; previously trivial: selection bar in the left margin, #856; previously trivial: table column and row markers on the rulers, #700; previously trivial: table borders and the resize handle drag on the page, #217; previously major: first version; ribbon, dialogs, shortcuts and on-canvas interaction measured from `crates/ui-egui` and the command registry) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 How WordCraft looks and feels next to Word: ribbon, dialogs, panes, keyboard, mouse and touch. Typing behaviour has its own checklist ([`typing-parity.md`](typing-parity.md)). All assets are our @@ -33,7 +33,7 @@ Document title opens Rename Document; the account badge opens Options › Genera | Task panes (Navigation, Styles, Comments, Reviewing, Format Picture/Shape, Thesaurus, Accessibility, Clipboard, Selection) | Navigation (long headings wrap onto further lines within the pane instead of expanding it, #759, #3015), Styles, Comments (balloons and cards read in both themes, #2045), Thesaurus, Restrict Editing, Accessibility (grouped findings, jump-to, fixes) and Alt Text (#386), Read Aloud, Zotero; Style Inspector (#236); Clipboard pane (#264) open | all | 70% | 4–6 | | Context menus (right-click) | text, spelling suggestions, fields (Update Field, Edit Field…, Toggle Field Codes, #339; Update Field on a table of contents entry updates the table, #1197, and after a save and reopen, #2182); right-click selects a picture, shape or text box and offers Insert Caption… (#1230) and Wrap Text (styles, Move with Text / Fix Position on Page, #513); tables, the items following the selection as in Word (Insert, Delete › Cells, Columns, Rows or Table whatever is selected (#1198), Merge and Split Cells, Distribute, AutoFit, Text Direction, Insert Caption…, Table Properties…; no Border Styles yet) | rich per context | 65% | 2–4 | | Task panes (Navigation, Styles, Comments, Reviewing, Format Picture/Shape, Thesaurus, Accessibility, Clipboard, Selection) | Navigation (long headings wrap onto further lines within the pane instead of expanding it, #759, #3015), Styles, Comments (typed comment and reply text stays with its document, is written before Save, Export, Print, Close, New or Open, Escape discards it, and the fields are read-only where comments can't change, #1348), Thesaurus, Restrict Editing, Accessibility (grouped findings, jump-to, fixes) and Alt Text (#386), Read Aloud, Zotero; Style Inspector (#236); Clipboard pane (#264) open | all | 70% | 4–6 | -| Backstage (Home, New, Open, Info, Save As, Print, Share, Export, Options) | Home and New separate (#254), Info properties kept (#268), Options in Word's panes with working settings (#485), Print page with preview, page range and copies (#641); launched with nothing to open, the app starts on Home (the Start screen: Blank document, templates, Recent; no document is open until one is picked or opened, so Esc or Back shows an empty window with the ribbon greyed out but for Help, #1129), with File › Options › General › Start-up to turn it off (#766); Info › Inspect Document finds and removes hidden text by its effective formatting (direct, character or paragraph style) in every story: body, headers, footers, notes, comments and text boxes, and lists what it couldn't reach (#1344); File › Close (Mod+W, Mod+F4) closes the document and keeps the window, showing no page, as Word does; the window's close button quits (#1712); each side-menu item has an icon, drawn in code (#1714) | | 68% | 4–6 | +| Backstage (Home, New, Open, Info, Save As, Print, Share, Export, Options) | Home and New separate (#254), Info properties kept (#268), Options in Word's panes with working settings (#485), Print page with preview, page range and copies (#641); launched with nothing to open, the app starts on Home (the Start screen: Blank document, templates, Recent; no document is open until one is picked or opened, so Esc or Back shows an empty window with the ribbon greyed out but for Help, #1129), whose page area says no document is open and offers Blank document, Browse… and Home; Home returns to the Start screen without making one (#3126), with File › Options › General › Start-up to turn it off (#766); Info › Inspect Document finds and removes hidden text by its effective formatting (direct, character or paragraph style) in every story: body, headers, footers, notes, comments and text boxes, and lists what it couldn't reach (#1344); File › Close (Mod+W, Mod+F4) closes the document and keeps the window, showing no page, as Word does; the window's close button quits (#1712); each side-menu item has an icon, drawn in code (#1714) | | 68% | 4–6 | | Rulers: indents, tabs, margins, table columns | indents draggable (one undo, #62); tab stops: corner selector (Left/Center/Right/Decimal/Bar), click to set, drag to move, drag off to clear, per-kind markers, Alt skips the snap, one undo step per gesture, double-click opens the Tabs dialog (#320); table column and row markers drag their borders (one undo) and in a cell the indents are measured from it (#700); the numbers thin out as the page shrinks on screen (every 1, 2, 4… units, never closer than 30 px, the small ticks never closer than 4 px, the text keeps its size), give way to an indent, tab or column marker on them, and the margins get ticks only; both rulers span the caret's page at its own scale in every layout (one column, One Page, Multiple Pages) and follow the caret to another page (#1878) | ✅ | 92% | 1 | | On-canvas objects: select, drag, resize handles, nudge | ✅ tested (#228); a picture or shape behind text can be dragged across the overlapping text (body and header/footer), whether or not it was selected first, while a click without movement still edits that text | ✅ | 75% | — | | On-canvas objects: select, drag, Ctrl+drag to copy, resize handles, nudge | ✅ tested (#228, #1014) | ✅ | 75% | — | @@ -74,6 +74,7 @@ Footnote and endnote editing keeps body and note text at normal opacity, on ligh | Date | Change | Summary | |---|---|---| +| 2026-10-19 | trivial | Empty window (#3126): with no document open (Esc on the Start screen, File › Close), the page area says no document is open and offers Blank document, Browse… and Home; Home goes back to the Start screen without making a document | | 2026-10-18 | trivial | Long navigation headings wrap onto further lines inside the pane instead of ending in an ellipsis; the row grows with the text and the pane still resizes (#759, #3015) | | 2026-10-18 | trivial | Font list starts at its first row after clearing a no-match query; recent heading remains visible (#2068) | | 2026-10-16 | trivial | Dragging the vertical scrollbar shows a tip beside the pointer with the page at the top of the window ("Page 7 of 10"); nothing said where the drag would land (#2551) | From a65a49f9a28fe3a40c4f0742d716df4d2131a130 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:38:52 +0700 Subject: [PATCH 5/7] docs: fix the #1913 history rows from the main merge The progress-log row had a third cell in a two-column table, the ui-parity rows sat above the table's separator, and two rows described template UI that this PR does not add. Rows now sit in date order. --- ROADMAP.md | 2 +- docs/target-app-parity.md | 3 +-- docs/ui-parity.md | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 769fd91aaf..f9e1575844 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -602,7 +602,7 @@ Imported Word 97–2003 `.doc`/`.dot` files now ask for a supported DOCX target | 2026-10-15 | Rulers: the numbers thin out as the page shrinks on screen (every 1, 2, 4… units, at least 30 px apart, the small ticks at least 4 px apart), give way to the indent, tab and column markers, and the margins get ticks only; both rulers span the caret's page at its own scale in One Page and Multiple Pages and follow the caret to another page (#1878) | | 2026-10-15 | Spelling as you type no longer flags the word being typed; the squiggle comes when the word ends or the caret leaves it, as in Word (#1552) | | 2026-10-15 | Text Highlight Color: No Color becomes the Highlight button's choice, as in Word, so the next click on the button removes highlighting instead of applying the colour picked before; the ribbon and the mini toolbar share one menu (#2105) | -| 2026-10-15 | trivial | Progress log: Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | +| 2026-10-15 | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset; custom paragraph styles keep their own spacing (#1913) | | 2026-10-14 | Insert › Date & Time and DATE, TIME and other date fields show the computer's local date, time and weekday, daylight saving included, as Word does (#1707); they showed UTC, so a user in New Zealand at noon on 31 October got 30 October 23:00. Timestamps saved in files (revisions, comments, document properties) stay UTC. Backstage's greeting follows the local hour too | | 2026-10-14 | DOCX row table border exceptions render and survive saving. Explicit cell borders win; a row exception does not change other rows. | | 2026-10-14 | Tab stops edited on the ruler: the corner selector picks Left/Center/Right/Decimal/Bar, a click sets a stop (Alt skips the snap), dragging moves it with a guide line and position tooltip, dragging off the ruler clears it; markers draw per kind and mirror for RTL; one `para.tabs` call and one undo step per gesture | diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 07bff89130..3307733dbd 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -335,9 +335,8 @@ can be used without committing Word output. | 2026-10-10 | minor | Stage checked against the core-workflow alpha gate: passes, stays alpha | | 2026-10-10 | major | Created from ROADMAP.md's "Parity by area" and "Estimate to 100%" sections; full re-measure against Word for Mac 16.113.4 (bundle listing, catalog diff from source, issue tracker); split into feature depth (67%) and ready for real work (60%); added proofing, East Asian, accessibility areas and the dimension table; hours re-calibrated from PR history | | 2026-10-06 | major | First estimate in ROADMAP.md: ~62% real feature parity, 120–150 h to 100% | +| 2026-10-15 | trivial | Character and paragraph formatting: Design › Paragraph Spacing presets update built-in paragraph styles (#1913); no percentage change | | 2026-10-29 | trivial | Tables row: Table Properties' row, column and cell settings apply to the selection, as in Word (#4857); no percentage change | | 2026-11-07 | trivial | Proofing: freestanding custom dictionary file support (plain UTF-8 and Word CUSTOM.DIC UTF-16LE with BOM) in File › Options › Proofing (#5840); no percentage change | | 2026-11-28 | minor | Refreshed against the 28 Nov parity run (#7969): catalog coverage 510 / 522 (97.7%); commands, tests and lines of code re-counted from source; open issue and PR counts updated. The percentage estimates are unchanged: they predate the craft-ui port (#7101), whose regressions are tracked in epic #7671, and are being re-measured. | | 2026-11-28 | minor | Re-measured against main `6fbf780789` after the craft-ui port (#7101, #7671). Full ~60% → ~63%, mainstream ~55% → ~56%, essentials ~63% → ~62%, feature depth ~68% → ~71%, breadth ~80% → ~85%. Dimensions: Features 68 → 71, File formats 60 → 65, Layout 55 → 60, UI/UX 65 → 62, Stability 50 → 45, Performance 75 → 70, Localization 27 → 45, Hardware 40 → 45; Platforms, Ecosystem and AI unchanged. Beta ~150–230 h → ~175–275 h, full parity ~750–1,250 h → ~775–1,300 h (#7671 work added; areas not re-priced). Duplicate Mailings and Pictures rows removed; superseded "missing" notes dropped; Features hours corrected to the rows, 200–325 h | -| 2026-10-15 | trivial | Character and paragraph formatting: Design › Paragraph Spacing presets update built-in paragraph styles (#1913); no percentage change | -| 2026-10-16 | trivial | Template save and create-from-template UI for reusable paragraph spacing defaults (#1913); no percentage change | diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 6a83174bfe..06059c12d4 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -124,8 +124,6 @@ Page Setup's margin, paper-size and document-grid number boxes scroll long text ## Revision history | Date | Change | Summary | -| 2026-10-16 | trivial | File › Save As exposes Save as Template and File › New can browse and create from a `.dotx`; spacing defaults survive the round trip (#1913) | -| 2026-10-15 | trivial | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | |---|---|---| | 2026-11-25 | trivial | Review › Comments › Delete is a split button: Delete, Delete All Comments in Document and Delete All Resolved Comments. The last deletes each resolved comment with its replies and keeps the open ones, in one undo step (#7818) | | 2026-11-17 | trivial | Format Shape pane adds Line section (No line, Solid line with color, width, dash type, and cap type) and Layout & Properties section (size, rotation, and text box direction and vertical alignment), routes active canvas text-box edits to the member while leaving grouped text boxes disabled, rejects unknown outline `dash`/`cap` values, and applies Line and Layout edits across multi-shape selections (#5896) | @@ -250,6 +248,7 @@ Page Setup's margin, paper-size and document-grid number boxes scroll long text | 2026-10-16 | trivial | Update Field is offered on a table of contents after it was saved and reopened (a range field then), including at its first and last character; repeated save and update no longer adds a blank line (#2182; the flow in that report already worked since #1197) | | 2026-10-18 | trivial | Different First Page: double-clicking page 1's header while editing another one goes into page 1's own; Insert › Header/Footer/Page Number and Edit Header/Footer use the header the caret's page shows (first, even or default) instead of always the default (#2826) | | 2026-10-15 | trivial | Track Changes Options › Moves: Moved from and Moved to rows (mark and colour; green double strikethrough and double underline by default, as in Word for Mac, which has no Track moves checkbox). `review.trackingOptions {"moveFromMark", "moveFromColor", "moveToMark", "moveToColor"}`, saved per user; `"trackMoves"` sets the document's setting. Mark lists in Word for Mac's order; Deletions and Moved from gain (none), Bold, Italic and Double underline; moved text marked (none) is plain text | +| 2026-10-15 | trivial | Design › Paragraph Spacing presets update built-in paragraph styles, so existing styled paragraphs follow the preset (#1913) | | 2026-10-14 | trivial | Comments pane and balloons: a comment or reply edit the document refuses keeps the typed text and shows why; drafts belong to their document, so a new or opened one never shows them; Save, Export, Print, Close, New and Open write pending drafts first; a refused draft doesn't block them (Save saves the rest, Close/New/Open ask Save / Don't Save / Cancel about it); Escape discards a draft; comment and reply fields are read-only in a document protected as read only or for forms (#1348) | | 2026-10-17 | trivial | Language dialog keeps inherited proofing language and no-proof choices (#2717); readiness estimates unchanged | | 2026-10-15 | trivial | Selection bar: the right margin for right-to-left paragraphs and tables, and the page margin beside table rows selects rows (click, drag, Shift+click) | From c0b83621872c9509ef53e44b312af7606a67e1d6 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:40:01 +0700 Subject: [PATCH 6/7] Empty window: keep Home a quiet link-style button after the craft::ui port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The port to craft::ui made Home a regular button, though its comment (and the original change) has it reading as a link beside Blank document and Browse…. Use the ghost variant, as other quiet buttons do. --- crates/ui-egui/src/canvas/empty.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas/empty.rs b/crates/ui-egui/src/canvas/empty.rs index 2626d1b9d2..e39843c0a5 100644 --- a/crates/ui-egui/src/canvas/empty.rs +++ b/crates/ui-egui/src/canvas/empty.rs @@ -1,5 +1,6 @@ //! The page area with no document open (#3126). +use craft::theme::Variant; use craft::ui::buttons::Button; use craft::ui::contract::{Props as _, Show as _, clicked}; use craft::ui::display::{Shade, Text}; @@ -29,9 +30,9 @@ pub(crate) fn empty_state(app: &mut WordApp, ui: &mut Ui) { let _ = app.run("ui.openFileDialog", json!({})); } ui.add_space(8.0); - // A Quiet button, so it reads as a link beside the two actions; the ribbon's Home tab + // A ghost button, so it reads as a link beside the two actions; the ribbon's Home tab // is a button above it, so the test takes the lower one with the label. - if clicked(&Button::new(tl!("Home")).id_salt("empty-home").show(ui)) { + if clicked(&Button::new(tl!("Home")).variant(Variant::GHOST).id_salt("empty-home").show(ui)) { let _ = app.run("ui.backstage", json!({"value": true, "page": "home"})); } }); From 7a49244c7a76e2deb02282c0000f5c6fa7af5f50 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:40:44 +0700 Subject: [PATCH 7/7] Empty window test: check the page gets the keyboard after Blank document As CodeRabbit noted, text.insert does not depend on focus, so the test passed without focus_page_after_pass. Assert the canvas is focused and type through the harness instead. --- crates/ui-egui/src/tests/chrome.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/tests/chrome.rs b/crates/ui-egui/src/tests/chrome.rs index 50a2d5e2a9..3e361ad09a 100644 --- a/crates/ui-egui/src/tests/chrome.rs +++ b/crates/ui-egui/src/tests/chrome.rs @@ -422,10 +422,12 @@ fn empty_window_offers_ways_to_make_or_open_a_document() { h.get_by_role_and_label(Role::Button, "Blank document").click(); h.run_steps(4); assert!(h.query_by_label("No document is open. Create a document or open one first.").is_none(), "the page takes over"); - let a = h.state_mut(); - assert!(a.has_document() && !a.ui.backstage, "Blank document opens one"); - a.run("text.insert", json!({"text": "Hello"})).unwrap(); - assert_eq!(a.session.doc.plain_text(wordcraft_doc::StoryRef::Body).trim(), "Hello"); + assert!(h.state().has_document() && !h.state().ui.backstage, "Blank document opens one"); + assert!(h.state().canvas.focused(&h.ctx), "Blank document gives the page the keyboard"); + // Typed through the harness, as a user types, so the text only lands if the page has focus. + h.event(egui::Event::Text("Hello".into())); + h.run_steps(2); + assert_eq!(h.state().session.doc.plain_text(wordcraft_doc::StoryRef::Body).trim(), "Hello"); } /// #1129: a template or a file opened from the Start screen (or handed over later) is the