DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge #343: Tabs: commands, Tabs panel and a Tabs section in Paragraph Style Options
aiongg33a26228f5de
diff --cc ROADMAP.mdindex 9520e93c9,024a9f233..15222abab--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -54,7 -26,7 +54,8 @@@ DesignCraft aims at full Adobe InDesig- EPUB 3 (reflowable) export: stories in reading order, CSS from paragraph/character styles, images, navigation (`file.exportEpub`, CLI `--export x.epub`).- Data Merge (one linked CSV, TSV, text, or Excel file; text, image, QR, and hyperlink placeholders; preview; a new document with one record per page or records tiled on a single page), spell checking (public-domain Moby list + document dictionary, suggestions), Step and Repeat (count or grid), snippets, object styles, Numbering & Section Options.- Footnotes: Type › Insert Footnote (caret moves into the note), Document Footnote Options (numbering style incl. symbols, start/restart per page/spread/section, prefix/suffix, reference position/character style, paragraph style, separator, spacing, first baseline, rule above); notes composed at the bottom of the referencing column with the body text making room; edited in place on the canvas; rendered, exported to PDF (real text) and IDML (InDesign's structure, verified opening in InDesign 2026) and imported from IDML; `footnote.*` commands.+- IDML1: embedded text frames and groups retain forward story references in body text, footnotes and table cells; anonymous composed stories retain anchored artwork for screen/PDF rendering. Filled compound outlines retain open contours; object-only inline lines use geometric extents, preflight distinguishes unplaced stories and locates embedded overflow at its page frame, and cyclic frame references are rejected.+ - Tabs panel (Type › Tabs, ⇧⌘T): alignment buttons, X, Leader and Align On fields, a ruler to add, move and delete stops and drag the first-line, left and right indents, Clear All, Delete Tab, Repeat Tab and Reset Indents; it opens over the selected text frame with its ruler on the text column. Paragraph Style Options › Tabs edits a style's stops. Commands: `type.tabs.get`, `type.tabs.add`, `type.tabs.move`, `type.tabs.change`, `type.tabs.remove`, `type.tabs.clear`, `type.tabs.repeat` (with `style` for a paragraph style).- Paragraph Rules: Rule Above / Rule Below (on, weight, colour, tint, column or text width, offset, left/right indent) set in Type › Paragraph Rules…, the Paragraph panel menu and Paragraph Style Options › Paragraph Rules; inherited style values shown, and `type.para` / `style.paragraph.edit` change only the rule fields named.- Cross-references and text anchors: Insert Cross-Reference (paragraph by style, or text anchor), 11 formats with InDesign's building blocks (full/partial paragraph, paragraph text/number, page number, anchor name, chapter, file name) plus user formats; resolved live at composition — never out of date, no Update step; unresolved destinations show `??`; PDF link annotations to the destination page; IDML export/import as InDesign cross-reference sources, hyperlinks, text destinations and formats (verified in InDesign 2026); `xref.*` / `anchor.*` commands.- Index: page references (topic from the selection or up to 4 levels, sort keys; current page, to end of story, next n paragraphs, suppressed, See / See also), Generate / Update Index (section headings, nested or run-in, page ranges merged, Index Title / Section Head / Level 1–4 styles); IDML export/import as InDesign topics, page references and topic cross-references (verified in InDesign 2026); `index.*` commands.diff --cc crates/engine/src/cmd/mod.rsindex d4b0290a9,e54118146..b2b806203--- a/crates/engine/src/cmd/mod.rs+++ b/crates/engine/src/cmd/mod.rs@@@ -49,8 -49,8 +49,9 @@@ mod statesmod strokes;mod style;pub mod table;+ pub mod tabs;pub mod text;+mod thread;mod toc;mod transitions;mod variables;@@@ -185,7 -185,7 +186,8 @@@ pub fn command_specs() -> &'static [Comv.extend(package::specs());v.extend(print::specs());v.extend(text::specs());+ v.extend(thread::specs());+ v.extend(tabs::specs());v.extend(style::specs());v.extend(table::specs());v.extend(layout::specs());diff --cc crates/ui-egui/src/dialogs.rsindex 717ab120d,57ea8a2fc..04490c394--- a/crates/ui-egui/src/dialogs.rs+++ b/crates/ui-egui/src/dialogs.rs@@@ -2733,51 -2652,86 +2735,130 @@@ fn paragraph_style_options(app: &mut De});}+fn delete_paragraph_style(app: &mut DesignApp, ui: &mut egui::Ui, d: &mut Dialog) {+ let name = d.s("name");+ ui.set_min_width(380.0);+ crate::rtl::label(+ ui,+ egui::RichText::new(+ crate::i18n::tr(&app.ui.language, "Delete the paragraph style \"{name}\"?")+ .replace("{name}", crate::i18n::style_name(&app.ui.language, &name)),+ )+ .size(12.5),+ );+ ui.add_space(8.0);+ let Some(st) = app.session.active() else { return };+ let in_use = st.doc.stories.values().any(|s| s.paras.iter().any(|f| f.style == name));+ let names: Vec<String> = st.doc.styles.paragraph.iter().map(|p| p.name.clone()).filter(|n| *n != name).collect();+ if in_use {+ crate::rtl::label(+ ui,+ egui::RichText::new(crate::i18n::tr(&app.ui.language, "This style is in use. Text using it will be reassigned to:"))+ .size(11.0)+ .color(crate::theme::Tokens::get(ui.ctx()).text_dim),+ );+ } else {+ crate::rtl::label(+ ui,+ egui::RichText::new(crate::i18n::tr(&app.ui.language, "Replace with:")).size(11.0).color(crate::theme::Tokens::get(ui.ctx()).text_dim),+ );+ }+ ui.add_space(4.0);+ if !d.fields.contains_key("replaceWith") {+ d.fields.insert("replaceWith".into(), json!(designcraft_doc::BASIC_PARAGRAPH));+ }+ let replace = d.s("replaceWith");+ egui::ComboBox::from_id_salt("del_para_replace")+ .selected_text(crate::rtl::widget(ui, crate::i18n::style_name(&app.ui.language, &replace)))+ .width(260.0)+ .show_ui(ui, |ui| {+ for n in &names {+ if ui.selectable_label(*n == replace, crate::rtl::widget(ui, crate::i18n::style_name(&app.ui.language, n))).clicked() {+ d.fields.insert("replaceWith".into(), json!(n));+ }+ }+ });+}++ /// Paragraph Style Options › Tabs: the style's stops on a ruler as wide as the first page's+ /// column, edited in `p.tabs` (and the indents in `p.leftIndent`…) until OK.+ fn style_tabs(lang: &str, ui: &mut egui::Ui, d: &mut Dialog, pv: &Value, doc: &designcraft_doc::Document) {+ use crate::panels::tabs::{Ruler, RulerEdit, align_buttons, ruler, text_commit};+ use designcraft_engine::cmd::tabs;+ let cur = |d: &Dialog, k: &str| d.fields.get(k).cloned().unwrap_or_else(|| pv[k.trim_start_matches("p.")].clone());+ let mut list: Vec<designcraft_doc::TabStop> = serde_json::from_value(cur(d, "p.tabs")).unwrap_or_default();+ tabs::sort(&mut list);+ let num = |d: &Dialog, k: &str| cur(d, k).as_f64().filter(|v| v.is_finite()).unwrap_or(0.0);+ let (left, first, right) = (num(d, "p.leftIndent"), num(d, "p.firstLineIndent"), num(d, "p.rightIndent"));+ let width = doc.page(0).and_then(|p| p.column_rects().first().map(|r| r.width())).filter(|w| *w > 1.0).unwrap_or(468.0);+ let unit = doc.settings.horizontal_units;+ let mut sel = d.fields.get("tabsSelected").and_then(Value::as_u64).map(|i| i as usize).filter(|i| *i < list.len());+ let mut align = d.fields.get("tabsAlign").and_then(|v| serde_json::from_value(v.clone()).ok()).unwrap_or_default();+ let stop = sel.and_then(|i| list.get(i)).cloned();+ // Each control's edit, applied to the list below.+ let mut result: Option<Result<Option<usize>, String>> = None;+ let mut indent: Option<(&str, f64)> = None;+ ui.horizontal(|ui| {+ ui.spacing_mut().item_spacing.x = 4.0;+ if let Some(a) = align_buttons(ui, lang, stop.as_ref().map_or(align, |s| s.align)) {+ align = a;+ if let Some(i) = sel {+ result = Some(tabs::change(&mut list, i, Some(a), None, None));+ }+ }+ ui.add_space(6.0);+ crate::rtl::label(ui, crate::i18n::tr(lang, "X:"));+ if let Some(x) = crate::widgets::measure(ui, "pstabx", stop.as_ref().map(|s| s.position), unit, 72.0) {+ result = Some(match sel {+ Some(i) => tabs::move_to(&mut list, i, x),+ None => tabs::add(&mut list, designcraft_doc::TabStop { position: x, align, leader: String::new(), align_on: String::new() }),+ });+ }+ crate::rtl::label(ui, crate::i18n::tr(lang, "Leader:"));+ if let (Some(l), Some(i)) = (text_commit(ui, "psleader", stop.as_ref().map_or("", |s| s.leader.as_str()), 36.0, stop.is_some()), sel) {+ result = Some(tabs::leader_value(&l, "tabs").map_err(|e| e.to_string()).and_then(|l| tabs::change(&mut list, i, None, Some(l), None)));+ }+ crate::rtl::label(ui, crate::i18n::tr(lang, "Align On:"));+ let on_char = stop.as_ref().is_some_and(|s| s.align == designcraft_doc::TabAlign::Char);+ if let (Some(c), Some(i)) = (text_commit(ui, "psalignon", stop.as_ref().map_or("", |s| s.align_on.as_str()), 18.0, on_char), sel) {+ result = Some(tabs::align_on_value(&c, "tabs").map_err(|e| e.to_string()).and_then(|c| tabs::change(&mut list, i, None, None, Some(c))));+ }+ ui.add_space(6.0);+ if ui.button(crate::rtl::widget(ui, crate::i18n::tr(lang, "Clear All"))).clicked() {+ list.clear();+ result = Some(Ok(None));+ }+ });+ ui.add_space(6.0);+ let r = Ruler { tabs: &list, left, first, right, width, unit, selected: sel, scale: None };+ match ruler(ui, "style", &r) {+ Some(RulerEdit::Select(i)) => sel = Some(i),+ Some(RulerEdit::Add(x)) => {+ result = Some(tabs::add(&mut list, designcraft_doc::TabStop { position: x, align, leader: String::new(), align_on: String::new() }))+ }+ Some(RulerEdit::Move(i, x)) => result = Some(tabs::move_to(&mut list, i, x)),+ Some(RulerEdit::Remove(i)) => result = Some(tabs::remove(&mut list, i)),+ Some(RulerEdit::Indent(k, x)) => indent = Some((k, x)),+ None => {}+ }+ match result {+ Some(Ok(i)) => {+ sel = i;+ d.fields.insert("p.tabs".into(), serde_json::to_value(&list).unwrap_or_default());+ d.fields.remove("status");+ }+ Some(Err(e)) => {+ d.fields.insert("status".into(), json!(e));+ }+ None => {}+ }+ if let Some((k, x)) = indent {+ d.fields.insert(format!("p.{k}"), json!(x));+ }+ d.fields.insert("tabsSelected".into(), sel.map_or(Value::Null, |i| json!(i)));+ d.fields.insert("tabsAlign".into(), serde_json::to_value(align).unwrap_or_default());+ }+-/// The section list on the left of the style options dialogs.fn section_list(lang: &str, ui: &mut egui::Ui, d: &mut Dialog, sections: &[(&str, &str)]) {ui.vertical(|ui| {ui.set_width(170.0);@@@ -4407,6 -4078,218 +4488,32 @@@ mod tests}}- fn draw(app: &mut DesignApp, ctx: &egui::Context) {- let input =- egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1400.0, 900.0))), ..Default::default() };- let mut out = ctx.run_ui(input, |ui| {- app.logic(&ui.ctx().clone());- app.ui(ui);- });- out.textures_delta.clear();- }-- /// A paragraph styled "Ruled Child", whose Rule Below comes from its parent "Ruled".- fn ruled_paragraph() -> (DesignApp, Value) {- let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());- app.run("file.new", json!({})).unwrap();- let rule = json!({"on": true, "weight": 3.0, "color": "[Black]", "tint": 0.5, "columnWidth": false, "offset": 4.0, "leftIndent": 6.0, "rightIndent": 2.0});- app.run("style.paragraph.create", json!({"name": "Ruled", "para": {"ruleBelow": rule}})).unwrap();- app.run("style.paragraph.create", json!({"name": "Ruled Child", "basedOn": "Ruled"})).unwrap();- let r = app.run("frame.create", json!({"rect": [72, 72, 300, 400], "content": "text", "text": "One"})).unwrap();- app.run("text.select", json!({"story": r["story"], "anchor": 0, "focus": 0})).unwrap();- app.run("style.paragraph.apply", json!({"name": "Ruled Child"})).unwrap();- (app, rule)- }-- fn undo_steps(app: &DesignApp) -> usize {- app.session.doc().map_or(0, |st| st.history.undo.len())- }-- #[test]- fn paragraph_rules_dialog_shows_the_rule_and_applies_one_field() {- let (mut app, rule) = ruled_paragraph();- let ctx = egui::Context::default();- app.run("app.paragraphRulesDialog", json!({"rule": "ruleBelow"})).unwrap();- draw(&mut app, &ctx);- let d = app.ui.dialog.clone().unwrap();- assert_eq!(d.id, "paragraphRules");- let current = d.fields["current"].clone();- assert_eq!(shown_rule(&d, "", "ruleBelow", ¤t), rule, "the inherited rule");- assert_eq!(shown_rule(&d, "", "ruleAbove", ¤t)["on"], false);- // Pick a colour, as the Color menu does.- app.ui.dialog.as_mut().unwrap().fields.insert("ruleBelow.color".into(), json!("[Registration]"));- draw(&mut app, &ctx);- let before = undo_steps(&app);- confirm(&mut app).unwrap();- assert_eq!(undo_steps(&app), before + 1, "one undo step");- let mut want = rule.clone();- want["color"] = json!("[Registration]");- assert_eq!(app.run("type.selectionAttrs", json!({})).unwrap()["para"]["ruleBelow"], want);- app.run("edit.undo", json!({})).unwrap();- assert_eq!(app.run("type.selectionAttrs", json!({})).unwrap()["para"]["ruleBelow"], rule);- }-- #[test]- fn paragraph_style_options_edit_one_rule_field() {- let (mut app, rule) = ruled_paragraph();- let ctx = egui::Context::default();- app.ui.dialog = Some(Dialog::new("paragraphStyleOptions", json!({"name": "Ruled Child", "section": "rules", "rule": "ruleBelow"})));- draw(&mut app, &ctx);- let resolved = |app: &DesignApp| serde_json::to_value(app.session.doc().unwrap().doc.styles.resolve_para_style("Ruled Child").0).unwrap();- let d = app.ui.dialog.clone().unwrap();- assert_eq!(shown_rule(&d, "p.", "ruleBelow", &resolved(&app)), rule, "inherited from the parent style");- app.ui.dialog.as_mut().unwrap().fields.insert("p.ruleBelow.weight".into(), json!(1.5));- draw(&mut app, &ctx);- let before = undo_steps(&app);- confirm(&mut app).unwrap();- assert_eq!(undo_steps(&app), before + 1, "one undo step");- let mut want = rule.clone();- want["weight"] = json!(1.5);- assert_eq!(resolved(&app)["ruleBelow"], want);- assert_eq!(app.run("type.selectionAttrs", json!({})).unwrap()["para"]["ruleBelow"], want, "the paragraph follows its style");- app.run("edit.undo", json!({})).unwrap();- assert_eq!(resolved(&app)["ruleBelow"], rule);- }-+ #[test]+ fn paragraph_style_options_tabs_section_adds_a_stop_on_its_ruler() {+ use egui_kittest::kittest::Queryable;+ let (app, _) = ruled_paragraph();+ let mut h = crate::test_window::open(app, egui::vec2(1400.0, 900.0));+ h.state_mut().app.ui.dialog = Some(Dialog::new("paragraphStyleOptions", json!({"name": "Ruled Child", "section": "tabs"})));+ h.run_steps(4);+ h.get_by_label("Clear All");+ // The ruler sits below the row of alignment buttons; its strip takes the click.+ let b = h.get_by_label("Right-aligned tab").rect();+ h.get_by_label("Right-aligned tab").click();+ h.run_steps(2);+ let left = h.get_by_label("Left-aligned tab").rect();+ let at = egui::pos2(left.min.x + crate::panels::tabs::PAD + 100.0, b.max.y + 14.0);+ crate::test_window::click_at(&mut h, at);+ let d = h.state().app.ui.dialog.clone().unwrap();+ let tabs = d.fields.get("p.tabs").cloned().unwrap_or_default();+ assert_eq!(tabs.as_array().map(Vec::len), Some(1), "{tabs}");+ assert_eq!(tabs[0]["align"], "right");+ confirm(&mut h.state_mut().app).unwrap();+ let app = &mut h.state_mut().app;+ let style = app.session.execute("type.tabs.get", &json!({"style": "Ruled Child"})).unwrap();+ assert_eq!(style["tabs"], tabs);+ assert_eq!(app.session.execute("type.tabs.get", &json!({})).unwrap()["tabs"], tabs, "the paragraph follows its style");+ }+- fn command_app(id: &str, fields: Value) -> DesignApp {- let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());- app.ui.dialog = Some(Dialog::new(&format!("cmd:{id}"), fields));- app- }-- #[test]- fn generic_new_document_preserves_typed_values_and_text_entry() {- for pages in [json!(2), json!(" 2 ")] {- let mut app = command_app(- "file.new",- json!({- "preset": "A4", "pages": pages, "facingPages": false, "gutter": 0,- "margins": {"top": 10, "bottom": 20, "inside": 30, "outside": 40},- "title": " ", "status": "internal", "primaryTextFrame": true- }),- );- confirm(&mut app).unwrap();- let doc = &app.session.active().unwrap().doc;- assert_eq!(doc.page_count(), 2);- assert!(!doc.settings.facing_pages);- assert!(doc.title.starts_with("Untitled-"));- for page in doc.spreads.iter().flat_map(|s| &s.pages) {- assert!((page.width - 595.2755905511812).abs() < 0.01);- assert!((page.height - 841.8897637795277).abs() < 0.01);- assert_eq!(page.columns.gutter, 0.0);- assert_eq!(page.margins.top, 10.0);- assert_eq!(page.margins.outside, 40.0);- }- assert!(doc.spreads.iter().all(|s| s.items.is_empty()), "undocumented fields stay excluded");- assert!(app.ui.dialog.is_none());- }- }-- #[test]- fn generic_command_preserves_array_geometry() {- let mut app = command_app("file.new", json!({}));- confirm(&mut app).unwrap();- app.ui.dialog = Some(Dialog::new("cmd:frame.create", json!({"rect": [10, 20, 110, 220]})));- confirm(&mut app).unwrap();- let doc = &app.session.active().unwrap().doc;- let item = doc.spreads.iter().flat_map(|s| &s.items).next().unwrap();- assert_eq!(item.bounds(), designcraft_geom::Rect::new(10.0, 20.0, 110.0, 220.0));- }-- #[test]- fn generic_explicit_null_uses_the_commands_existing_semantics() {- // file.new accepts null width by using the selected preset's width.- for width in [Value::Null, json!("null")] {- let mut app = command_app("file.new", json!({"preset": "A4", "width": width, "title": " Sample layout "}));- confirm(&mut app).unwrap();- let doc = &app.session.active().unwrap().doc;- assert_eq!(doc.title, "Sample layout");- assert!((doc.settings.page_width - 595.2755905511812).abs() < 0.01);- }- }-- #[test]- fn generic_invalid_number_retains_dialog_without_creating_document() {- let mut app = command_app("file.new", json!({"width": 0}));- assert!(confirm(&mut app).is_err());- assert!(app.session.active().is_none());- let dialog = app.ui.dialog.as_ref().unwrap();- assert_eq!(dialog.fields["width"], 0);- assert!(dialog.fields["status"].as_str().unwrap().contains("page size out of range"));- }-- #[test]- fn text_frame_options_change_only_what_was_edited() {- let mut app = crate::DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());- app.run("file.new", json!({})).unwrap();- let r = app.run("frame.create", json!({"rect": [36, 36, 336, 236], "content": "text", "text": "Hello"})).unwrap();- let id = designcraft_doc::ItemId(r["id"].as_u64().unwrap());- app.run("object.textFrameOptions", json!({"ids": [id.0], "columns": 2, "inset": [1, 2, 3, 4]})).unwrap();- let opts = |app: &DesignApp| app.session.doc().unwrap().doc.item(id).unwrap().text_frame().unwrap().options.clone();- let before = opts(&app);- let open = |app: &mut DesignApp, fields: &[(&str, Value)]| {- app.ui.dialog = Some(Dialog::new("textFrameOptions", json!({})));- let mut d = app.ui.dialog.take().unwrap();- seed_text_frame_options(app, &mut d);- for (k, v) in fields {- d.fields.insert((*k).into(), v.clone());- }- app.ui.dialog = Some(d);- confirm(app)- };- // OK without edits changes nothing (no undo step either).- assert_eq!(open(&mut app, &[]).unwrap(), Value::Null);- assert_eq!(opts(&app), before);- // The rule's weight is in points; unequal insets the user didn't touch stay.- open(&mut app, &[("columnRule", json!(true)), ("columnRuleWeight", json!("6"))]).unwrap();- let o = opts(&app);- assert!(o.column_rule && o.column_rule_weight == 6.0, "{o:?}");- assert_eq!((o.inset, o.columns, o.gutter), (before.inset, before.columns, before.gutter));- // One of the rule's insets edited: the other rule settings stay.- open(&mut app, &[("columnRuleBottomInset", json!("0p9")), ("columnRuleTint", json!("40"))]).unwrap();- let o = opts(&app);- assert_eq!((o.column_rule_bottom_inset, o.column_rule_top_inset, o.column_rule_offset, o.column_rule_weight), (9.0, 0.0, 0.0, 6.0));- assert!((o.column_rule_tint - 0.4).abs() < 1e-6 && o.column_rule);- // One inset side edited: the others keep their values.- open(&mut app, &[("insetLeft", json!("1p0"))]).unwrap();- assert_eq!(opts(&app).inset, [1.0, 12.0, 3.0, 4.0]);- // An unknown swatch is an error and the dialog stays open.- let e = open(&mut app, &[("columnRuleColor", json!("Mauve"))]).unwrap_err();- assert!(e.contains("Mauve") && app.ui.dialog.is_some(), "{e}");- assert_eq!(opts(&app).column_rule_color, designcraft_color::swatch::BLACK);- // Each OK is one undo step.- for _ in 0..3 {- app.run("edit.undo", json!({})).unwrap();- }- assert_eq!(opts(&app), before);- }-#[test]fn parses_command_params() {let f = command_fields("{name, type: custom|lastPageNumber|chapterNumber, text?, rule?: {on, weight}, flag?: bool} — creates");diff --cc crates/ui-egui/src/i18n/it.rsindex a72493da6,a6fa60eb9..f240b6cc1--- a/crates/ui-egui/src/i18n/it.rs+++ b/crates/ui-egui/src/i18n/it.rs@@@ -1492,14 -1492,16 +1492,26 @@@ pub(super) const TABLE: &[(&str, &str)("Paragraph Rules", "Filetti paragrafo"),("Rule Below", "Filetto sotto"),("Tint:", "Tinta:"),+ // Machine-translated; not yet reviewed by a native speaker.+ ("Align Left Edge", "Allinea bordo sinistro"),+ ("Characters:", "Caratteri:"),+ ("Drop Caps", "Capilettera"),+ ("Drop Chars", "Caratteri capolettera"),+ ("Drop Lines", "Righe capolettera"),+ ("Lines:", "Righe:"),+ ("Scale for Descenders", "Ridimensiona per i discendenti"),+ ("Select an object or text to color its fill or stroke.", "Seleziona un oggetto o del testo per colorarne il riempimento o la traccia."),+ ("dropcap", "capolettera"),+ ("Left-aligned tab", "Tabulazione allineata a sinistra"),+ ("Centered tab", "Tabulazione centrata"),+ ("Right-aligned tab", "Tabulazione allineata a destra"),+ ("Tab aligned on a character", "Tabulazione allineata a un carattere"),+ ("X:", "X:"),+ ("Leader:", "Carattere di riempimento:"),+ ("Align On:", "Allinea a:"),+ ("Position panel above text frame", "Posiziona il pannello sopra la cornice di testo"),+ ("Clear All", "Cancella tutto"),+ ("Delete Tab", "Elimina tabulazione"),+ ("Repeat Tab", "Ripeti tabulazione"),+ ("Reset Indents", "Ripristina rientri"),];diff --cc crates/ui-egui/src/i18n/uk.rsindex c38b243df,e5dc4dc31..3144ffc87--- a/crates/ui-egui/src/i18n/uk.rs+++ b/crates/ui-egui/src/i18n/uk.rs@@@ -1454,50 -1455,18 +1454,62 @@@ pub(super) const TABLE: &[(&str, &str)("Selection", "Виділення"),("All Documents", "Усі документи"),("On", "Увімкнено"),+ // Machine-translated; not yet reviewed by a native speaker.+ ("Advanced Character Formats", "Розширене форматування символів"),+ ("Align Left Edge", "Вирівняти лівий край"),+ ("Baseline Shift:", "Зсув базової лінії:"),+ ("Bottom Inset", "Нижній відступ"),+ ("Can't Open the File", "Не вдалося відкрити файл"),+ ("Can't Place the File", "Не вдалося розмістити файл"),+ ("Case:", "Регістр:"),+ ("Character Style Options", "Параметри стилю символів"),+ ("Characters:", "Символи:"),+ ("Column Rules", "Лінії між колонками"),+ ("Drop Caps", "Буквиці"),+ ("Drop Chars", "Символи буквиці"),+ ("Drop Lines", "Рядки буквиці"),+ ("Edit \"{name}\"…", "Редагувати «{name}»…"),+ ("Figure Style:", "Стиль цифр:"),+ ("Horizontal Offset", "Горизонтальний зсув"),+ ("Horizontal Scale:", "Горизонтальний масштаб:"),+ ("Insert Column Rule", "Вставити лінію між колонками"),+ ("Kerning:", "Кернінг:"),+ ("Language:", "Мова:"),+ ("Ligatures", "Лігатури"),+ ("Lines:", "Рядки:"),+ ("No Break", "Без розриву"),+ ("OpenType All Small Caps", "Уся капітель OpenType"),+ ("OpenType Denominator", "Знаменник OpenType"),+ ("OpenType Features", "Функції OpenType"),+ ("OpenType Numerator", "Чисельник OpenType"),+ ("OpenType Subscript", "Нижній індекс OpenType"),+ ("Paragraph Rules", "Лінії абзацу"),+ ("Paragraph Rules…", "Лінії абзацу…"),+ ("Rule Below", "Лінія знизу"),+ ("Scale for Descenders", "Масштабувати з урахуванням виносних елементів"),+ ("Select an object or text to color its fill or stroke.", "Виділіть об’єкт або текст, щоб задати колір його заливки чи обведення."),+ ("Skew:", "Нахил:"),+ ("Strikethrough On", "Закреслення увімкнено"),+ ("Style Settings:", "Параметри стилю:"),+ ("Subscript", "Нижній індекс"),+ ("Tint %", "Відтінок %"),+ ("Tint:", "Відтінок:"),+ ("Top Inset", "Верхній відступ"),+ ("Underline On", "Підкреслення увімкнено"),+ ("Vertical Scale:", "Вертикальний масштаб:"),+ ("dropcap", "буквиця"),+ ("Left-aligned tab", "Табуляція з вирівнюванням ліворуч"),+ ("Centered tab", "Табуляція з вирівнюванням по центру"),+ ("Right-aligned tab", "Табуляція з вирівнюванням праворуч"),+ ("Tab aligned on a character", "Табуляція з вирівнюванням за символом"),+ ("X:", "X:"),+ ("Leader:", "Заповнювач:"),+ ("Align On:", "Вирівнювати за:"),+ ("Position panel above text frame", "Розмістити панель над текстовим фреймом"),+ ("Clear All", "Очистити все"),+ ("Delete Tab", "Видалити табуляцію"),+ ("Repeat Tab", "Повторити табуляцію"),+ ("Reset Indents", "Скинути відступи"),];/// Contexts whose Ukrainian noun differs from the shared action/text-layout label.