DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge origin/main into codex/paste-svg-paths
moppeeerbfe7ba75b745
diff --cc ROADMAP.mdindex 5bb98cbba,d60a6bf49..a3f953d88--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -144,7 -421,7 +421,8 @@@ Newest first- **2026-10-12** · The Pen tool continues an open path from either end point, as in InDesign: the cursor shows it over an end point, a click there carries on drawing that path, a drag first reshapes the end point's direction lines, and the other end closes it. Object › Paths › Reverse Path (`path.reverse`); `path.setAnchor`; `path.appendAnchor` and `path.close` take a subpath. No readiness percentage change.- **2026-10-12** · Editing type on a path: the Type tool clicks, drags and double-clicks along the curve (the character under the pointer, not one on the straightened line), a click on the letters themselves hits the frame, and the caret and highlight bend with the path. No readiness percentage change.- **2026-10-12** · Type on a path has start and end brackets, as in InDesign: selected path type shows them across the path, and dragging either with the Selection or Direct Selection tool moves where the text starts or ends (text past the end bracket is overset). `type.pathOptions {end}`; IDML reads and writes EndBracket. No readiness percentage change.+- **2026-10-12** · Vector art copied in Illustrator, VectorCraft, Figma or Inkscape pastes as editable paths, as InDesign pastes Illustrator art: the SVG those apps put on the clipboard becomes paths with their fills, strokes (weight, caps, joins, dashes) and opacity, groups stay groups and text comes in as outlines, centred in the view (`edit.pasteSvg`, `ui.paste`). Edit › Paste reads the system clipboard when nothing was copied in DesignCraft. No readiness percentage change.+ - **2026-10-12** · The Eyedropper puts a colour sampled from an image on the stroke when the toolbox's Stroke box is in front, as in InDesign (a line takes it on its stroke). No readiness percentage change.- **2026-10-12** · Window close and application/menu Quit ask about unsaved documents; later Cancel keeps every tab open, including earlier Don't Save choices. Approvals are rechecked after edits. Cancelable macOS Dock Quit remains open (#544). No readiness percentage change.- **2026-10-12** · Each running app keeps recovery data in its own locked folder; current folder and lock ownership are checked before writes and cleanup. Failed isolation disables recovery with a warning instead of sharing document IDs. No readiness percentage change.- **2026-10-12** · Native engine saves and exports replace files atomically; failed writes retain the original, private staging preserves Unix permissions, and valid long filenames work. Desktop Services and CLI raster exports remain separate follow-ups. No readiness percentage change.diff --cc crates/ui-egui/src/canvas.rsindex dd23faa03,40b146f56..f4b744b46--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@@ -1909,57 -2376,38 +2376,89 @@@ mod tests(s.horizontal_units, s.vertical_units)}+ const ART: &str = r##"<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" width="100pt" height="50pt"><path d="M0,0 C30,0 70,50 100,50" fill="none" stroke="#000" stroke-width="2"/></svg>"##;++ #[test]+ fn pasting_svg_from_another_app_places_editable_paths_in_the_middle_of_the_view() {+ let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());+ app.run("file.new", json!({})).unwrap();+ let mut h = harness(app);+ let undo = h.state().session.doc().unwrap().history.undo.len();+ h.event(egui::Event::Paste(ART.into()));+ h.run_steps(2);+ let app = h.state();+ let st = app.session.doc().unwrap();+ assert_eq!(st.history.undo.len(), undo + 1, "one undo step");+ let id = *st.selection.items.first().expect("the pasted path is selected");+ let it = st.doc.item(id).unwrap();+ assert_eq!(it.shape, designcraft_doc::Shape::Path);+ assert_eq!(it.path.subpaths[0].anchors.len(), 2);+ assert!((it.stroke.weight - 2.0).abs() < 1e-9);+ // Centred where the view's centre falls on the spread.+ let rect = app.canvas_rect.unwrap();+ let xf = Xf::new(rect, app.view().unwrap());+ let (_, centre) = CanvasLayout::new(&st.doc, false).spread_at(xf.to_canvas(rect.center())).unwrap();+ assert!((it.bounds().center() - centre).hypot() < 0.01, "{:?} vs {centre:?}", it.bounds());+ // Plain text isn't art: it goes to Edit › Paste, as on main, and never becomes paths.+ let paths = |app: &DesignApp| {+ let d = &app.session.doc().unwrap().doc;+ d.spreads.iter().flat_map(|sp| sp.items.iter()).filter(|it| it.shape == designcraft_doc::Shape::Path).count()+ };+ let before = paths(h.state());+ h.event(egui::Event::Paste("just words".into()));+ h.run_steps(2);+ assert_eq!(paths(h.state()), before);+ }++ #[test]+ fn edit_paste_from_a_menu_pastes_svg_on_the_system_clipboard_as_paths() {+ let services = crate::Services { clipboard_text: Some(Box::new(|| Some(ART.to_string()))), ..Default::default() };+ let mut app = DesignApp::new(designcraft_engine::Session::new(), services);+ app.run("file.new", json!({})).unwrap();+ crate::menus::activate(&mut app, "edit.paste", &Value::Null);+ let st = app.session.doc().unwrap();+ let id = *st.selection.items.first().expect("the pasted path is selected");+ assert_eq!(st.doc.item(id).unwrap().shape, designcraft_doc::Shape::Path, "paths, not a text frame of markup");+ // Typing: the markup is text, pasted at the insertion point.+ let sid = app.run("frame.create", json!({"rect": [10, 10, 300, 300], "content": "text", "text": ""})).unwrap()["story"].clone();+ app.run("text.select", json!({"story": sid, "anchor": 0, "focus": 0})).unwrap();+ crate::menus::activate(&mut app, "edit.paste", &Value::Null);+ let d = &app.session.doc().unwrap().doc;+ assert!(d.story(designcraft_doc::StoryId(sid.as_u64().unwrap())).unwrap().text.contains("<svg"));+ }++ /// A viewport wider than the GPU's largest texture: the canvas texture is sampled down, and an+ /// edit repaints it whole. A region repainted in view pixels would land in the wrong place,+ /// or outside the texture (a wgpu validation error). A view that fits is still patched.+ #[test]+ fn an_edit_repaints_a_canvas_texture_sampled_down_to_the_gpu_limit_whole() {+ for (width, sampled_down) in [(1440.0, false), (2600.0, true)] {+ let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());+ app.run("file.new", json!({})).unwrap();+ let frame = app.run("frame.create", json!({"rect": [72, 72, 400, 300], "content": "text", "text": "Text"})).unwrap();+ let mut h = Harness::builder().with_size(vec2(width, 900.0)).build_ui_state(+ |ui, app: &mut DesignApp| {+ let ctx = ui.ctx().clone();+ app.logic(&ctx);+ app.ui(ui);+ },+ app,+ );+ h.run_steps(6);+ let limit = h.ctx.input(|i| i.max_texture_side);+ let size = h.state().canvas.texture.as_ref().map(|t| t.size()).unwrap();+ assert!(size[0] <= limit && size[1] <= limit, "{size:?}");+ let shown = h.state().canvas.shown.unwrap().size;+ assert_eq!(shown.0 > limit as f32, sampled_down, "view {shown:?}, limit {limit}");+ let patches = h.state().canvas.patches;+ // A small edit: one more character in the frame.+ h.state_mut().run("text.insert", json!({"story": frame["story"], "at": 4, "text": "s"})).unwrap();+ h.run_steps(6);+ assert_eq!(h.state().canvas.patches == patches, sampled_down, "width {width}");+ assert_eq!(h.state().canvas.texture.as_ref().map(|t| t.size()), Some(size));+ }+ }+#[test]fn selected_merged_owners_paint_the_same_row_and_column_targets() {for column in [true, false] {diff --cc crates/ui-egui/src/i18n.rsindex 2cb3a229d,245a6e287..81b39d276--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@@ -55,12 -58,121 +58,125 @@@ const TABLE: &[(&str, [&str; 5])] = &("Cut", ["Ausschneiden", "Couper", "Cortar", "カット", "剪切"]),("Copy", ["Kopieren", "Copier", "Copiar", "コピー", "复制"]),("Paste", ["Einfügen", "Coller", "Pegar", "ペースト", "粘贴"]),+ (+ "Bulleted & Numbered Lists",+ [+ "Aufzählungszeichen und nummerierte Listen",+ "Listes à puces et numérotées",+ "Listas con viñetas y numeradas",+ "箇条書き",+ "项目符号列表和编号列表",+ ],+ ),+ ("Current Page Number", ["Aktuelle Seitenzahl", "Numéro de page actuelle", "Número de página actual", "現在のページ番号", "当前页码"]),+ ("Apply Color (,)", ["Farbe anwenden (,)", "Appliquer la couleur (,)", "Aplicar color (,)", "カラーを適用 (,)", "应用颜色 (,)"]),+ ("Apply Gradient (.)", ["Verlauf anwenden (.)", "Appliquer le dégradé (.)", "Aplicar degradado (.)", "グラデーションを適用 (.)", "应用渐变 (.)"]),+ ("View Options", ["Ansichtsoptionen", "Options d’affichage", "Opciones de visualización", "表示オプション", "视图选项"]),+ ("Frame Edges", ["Rahmenkanten", "Bords du bloc", "Bordes del marco", "フレーム枠", "框架边缘"]),+ ("Rulers", ["Lineale", "Règles", "Reglas", "定規", "标尺"]),+ ("Hidden Characters", ["Verborgene Zeichen", "Caractères masqués", "Caracteres ocultos", "制御文字", "隐藏字符"]),+ ("Flex Layout", ["Flex-Layout", "Mise en page flexible", "Diseño flexible", "フレックスレイアウト", "弹性布局"]),+ (+ "Create Flex Layout",+ ["Flex-Layout erstellen", "Créer une mise en page flexible", "Crear diseño flexible", "フレックスレイアウトを作成", "创建弹性布局"],+ ),+ (+ "Add to Flex Layout",+ [+ "Zu Flex-Layout hinzufügen",+ "Ajouter à la mise en page flexible",+ "Añadir a diseño flexible",+ "フレックスレイアウトに追加",+ "添加到弹性布局",+ ],+ ),+ (+ "Convert to Flex Layout",+ [+ "In Flex-Layout umwandeln",+ "Convertir en mise en page flexible",+ "Convertir en diseño flexible",+ "フレックスレイアウトに変換",+ "转换为弹性布局",+ ],+ ),+ (+ "Remove Flex Layout",+ ["Flex-Layout entfernen", "Supprimer la mise en page flexible", "Quitar diseño flexible", "フレックスレイアウトを削除", "移除弹性布局"],+ ),+ (+ "Show Flex Controls",+ [+ "Flex-Steuerelemente einblenden",+ "Afficher les commandes flexibles",+ "Mostrar controles flexibles",+ "フレックスコントロールを表示",+ "显示弹性控件",+ ],+ ),+ (+ "Flex Layout Options",+ ["Flex-Layout-Optionen", "Options de mise en page flexible", "Opciones de diseño flexible", "フレックスレイアウトオプション", "弹性布局选项"],+ ),+ (+ "Reorder in Flex Layout",+ [+ "Im Flex-Layout umordnen",+ "Réorganiser dans la mise en page flexible",+ "Reordenar en diseño flexible",+ "フレックスレイアウト内で並べ替え",+ "在弹性布局中重新排序",+ ],+ ),+ ("Flex Start", ["Flex-Anfang", "Début flexible", "Inicio flexible", "フレックス開始", "弹性起点"]),+ ("Flex End", ["Flex-Ende", "Fin flexible", "Fin flexible", "フレックス終了", "弹性终点"]),+ ("Space Between", ["Abstand dazwischen", "Espace entre", "Espacio entre", "間隔を均等", "两端对齐"]),+ ("Space Around", ["Abstand ringsum", "Espace autour", "Espacio alrededor", "周囲に間隔", "周围间距"]),+ ("Space Evenly", ["Gleichmäßig verteilen", "Espace uniforme", "Espacio uniforme", "均等に配置", "均匀分布"]),+ ("Row", ["Zeile", "Ligne", "Fila", "行", "行"]),+ ("Reverse Row", ["Zeile umgekehrt", "Ligne inversée", "Fila invertida", "行(逆方向)", "反向行"]),+ ("Reverse Column", ["Spalte umgekehrt", "Colonne inversée", "Columna invertida", "列(逆方向)", "反向列"]),+ ("Wrap Content", ["Inhalt umbrechen", "Renvoyer le contenu à la ligne", "Ajustar contenido", "コンテンツを折り返す", "内容换行"]),+ ("Spacing", ["Abstände", "Espacement", "Espaciado", "間隔", "间距"]),+ ("Horizontal Spacing", ["Horizontaler Abstand", "Espacement horizontal", "Espaciado horizontal", "水平方向の間隔", "水平间距"]),+ ("Vertical Spacing", ["Vertikaler Abstand", "Espacement vertical", "Espaciado vertical", "垂直方向の間隔", "垂直间距"]),+ ("Constrain proportions", ["Proportionen beibehalten", "Conserver les proportions", "Restringir proporciones", "縦横比を固定", "约束比例"]),+ ("Auto", ["Automatisch", "Automatique", "Automático", "自動", "自动"]),+ ("W:", ["B:", "L :", "An.:", "幅:", "宽:"]),+ ("H:", ["H:", "H :", "Al.:", "高さ:", "高:"]),+ ("Number:", ["Anzahl:", "Nombre :", "Número:", "数:", "数量:"]),+ ("Gutter:", ["Steg:", "Gouttière :", "Medianil:", "間隔:", "栏间距:"]),+ ("Fit Guides to:", ["Hilfslinien einpassen in:", "Ajuster les repères à :", "Ajustar guías a:", "ガイドの適用先:", "参考线适合:"]),+ ("Top:", ["Oben:", "Haut :", "Superior:", "天:", "上:"]),+ ("Bottom:", ["Unten:", "Bas :", "Inferior:", "地:", "下:"]),+ ("Inside:", ["Innen:", "Intérieur :", "Interior:", "ノド:", "内:"]),+ ("Outside:", ["Außen:", "Extérieur :", "Exterior:", "小口:", "外:"]),+ ("Left:", ["Links:", "Gauche :", "Izquierda:", "左:", "左:"]),+ ("Right:", ["Rechts:", "Droite :", "Derecha:", "右:", "右:"]),+ ("Paths:", ["Pfade:", "Tracés :", "Trazados:", "パス:", "路径:"]),+ ("Pathfinder:", ["Pathfinder:", "Pathfinder :", "Buscatrazos:", "パスファインダー:", "路径查找器:"]),+ ("Convert Shape:", ["Form konvertieren:", "Convertir la forme :", "Convertir forma:", "シェイプを変換:", "转换形状:"]),+ ("Convert Point:", ["Punkt konvertieren:", "Convertir le point :", "Convertir punto:", "ポイントを変換:", "转换点:"]),+ ("Join Path", ["Pfad zusammenfügen", "Joindre le tracé", "Unir trazado", "パスを連結", "连接路径"]),+ ("Open Path", ["Pfad öffnen", "Ouvrir le tracé", "Abrir trazado", "パスをオープン", "开放路径"]),+ ("Plain", ["Einfach", "Simple", "Normal", "プレーン", "普通"]),+ ("Symmetrical", ["Symmetrisch", "Symétrique", "Simétrico", "対称", "对称"]),+ (+ "The stroke isn't a gradient.",+ [+ "Die Kontur ist kein Verlauf.",+ "Le contour n’est pas un dégradé.",+ "El trazo no es un degradado.",+ "線はグラデーションではありません。",+ "描边不是渐变。",+ ],+ ),("Reverse Path", ["Pfadrichtung umkehren", "Inverser le tracé", "Invertir trazado", "パスの方向反転", "反转路径"]),("Set Anchor", ["Ankerpunkt festlegen", "Définir le point d’ancrage", "Definir punto de ancla", "アンカーポイントを設定", "设置锚点"]),+ (+ "Paste Vector Art",+ ["Vektorgrafik einfügen", "Coller l’illustration vectorielle", "Pegar ilustración vectorial", "ベクトルアートをペースト", "粘贴矢量图稿"],+ ),("Clear", ["Löschen", "Effacer", "Borrar", "消去", "清除"]),("Duplicate", ["Duplizieren", "Dupliquer", "Duplicar", "複製", "重复"]),("Select All", ["Alles auswählen", "Tout sélectionner", "Seleccionar todo", "すべてを選択", "全选"]),diff --cc crates/ui-egui/src/i18n/ar.rsindex 9a7896a53,d1dcb7acf..eaccade53--- a/crates/ui-egui/src/i18n/ar.rs+++ b/crates/ui-egui/src/i18n/ar.rs@@@ -30,9 -30,55 +30,56 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "قص"),("Copy", "نسخ"),("Paste", "لصق"),+ ("Bulleted & Numbered Lists", "القوائم ذات التعداد النقطي والرقمي"),+ ("Current Page Number", "رقم الصفحة الحالية"),+ ("Apply Color (,)", "تطبيق اللون (,)"),+ ("Apply Gradient (.)", "تطبيق التدرج (.)"),+ ("View Options", "خيارات العرض"),+ ("Frame Edges", "حواف الإطار"),+ ("Hidden Characters", "الأحرف المخفية"),+ ("Create Flex Layout", "إنشاء تخطيط مرن"),+ ("Add to Flex Layout", "إضافة إلى التخطيط المرن"),+ ("Convert to Flex Layout", "تحويل إلى تخطيط مرن"),+ ("Remove Flex Layout", "إزالة التخطيط المرن"),+ ("Show Flex Controls", "إظهار عناصر التحكم المرنة"),+ ("Flex Layout Options", "خيارات التخطيط المرن"),+ ("Reorder in Flex Layout", "إعادة الترتيب في التخطيط المرن"),+ ("Flex Start", "بداية مرنة"),+ ("Flex End", "نهاية مرنة"),+ ("Space Between", "مسافة بينية"),+ ("Space Around", "مسافة حول"),+ ("Space Evenly", "توزيع متساوٍ"),+ ("Reverse Row", "صف معكوس"),+ ("Reverse Column", "عمود معكوس"),+ ("Wrap Content", "التفاف المحتوى"),+ ("Spacing", "التباعد"),+ ("Horizontal Spacing", "التباعد الأفقي"),+ ("Vertical Spacing", "التباعد الرأسي"),+ ("Constrain proportions", "تقييد النسب"),+ ("Auto", "تلقائي"),+ ("W:", "ع:"),+ ("H:", "ا:"),+ ("Number:", "العدد:"),+ ("Gutter:", "الفاصل:"),+ ("Fit Guides to:", "ملاءمة الأدلة مع:"),+ ("Top:", "أعلى:"),+ ("Bottom:", "أسفل:"),+ ("Inside:", "الداخل:"),+ ("Outside:", "الخارج:"),+ ("Left:", "يسار:"),+ ("Right:", "يمين:"),+ ("Paths:", "المسارات:"),+ ("Pathfinder:", "مستكشف المسار:"),+ ("Convert Shape:", "تحويل الشكل:"),+ ("Convert Point:", "تحويل النقطة:"),+ ("Join Path", "ربط المسار"),+ ("Open Path", "فتح المسار"),+ ("Plain", "عادي"),+ ("Symmetrical", "متماثل"),+ ("The stroke isn't a gradient.", "الحد ليس تدرجًا."),("Reverse Path", "عكس المسار"),("Set Anchor", "تعيين نقطة الارتساء"),+ ("Paste Vector Art", "لصق رسم متجه"),("Clear", "مسح"),("Delete", "حذف"),("Duplicate", "تكرار"),diff --cc crates/ui-egui/src/i18n/it.rsindex 9ff7d60fa,00328ac9f..761c704e4--- a/crates/ui-egui/src/i18n/it.rs+++ b/crates/ui-egui/src/i18n/it.rs@@@ -28,9 -28,55 +28,56 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Taglia"),("Copy", "Copia"),("Paste", "Incolla"),+ ("Bulleted & Numbered Lists", "Elenchi puntati e numerati"),+ ("Current Page Number", "Numero di pagina corrente"),+ ("Apply Color (,)", "Applica colore (,)"),+ ("Apply Gradient (.)", "Applica sfumatura (.)"),+ ("View Options", "Opzioni di visualizzazione"),+ ("Frame Edges", "Bordi cornice"),+ ("Hidden Characters", "Caratteri nascosti"),+ ("Create Flex Layout", "Crea Layout Flex"),+ ("Add to Flex Layout", "Aggiungi a Layout Flex"),+ ("Convert to Flex Layout", "Converti in Layout Flex"),+ ("Remove Flex Layout", "Rimuovi Layout Flex"),+ ("Show Flex Controls", "Mostra controlli Flex"),+ ("Flex Layout Options", "Opzioni Layout Flex"),+ ("Reorder in Flex Layout", "Riordina nel Layout Flex"),+ ("Flex Start", "Inizio Flex"),+ ("Flex End", "Estremità Flex"),+ ("Space Between", "Spazio tra"),+ ("Space Around", "Spazio intorno"),+ ("Space Evenly", "Disponi lo spazio in modo uniforme"),+ ("Reverse Row", "Riga inversa"),+ ("Reverse Column", "Colonna inversa"),+ ("Wrap Content", "Disponi testo"),+ ("Spacing", "Spaziatura"),+ ("Horizontal Spacing", "Spaziatura orizzontale"),+ ("Vertical Spacing", "Spaziatura verticale"),+ ("Constrain proportions", "Vincola proporzioni"),+ ("Auto", "Automatico"),+ ("W:", "L:"),+ ("H:", "A:"),+ ("Number:", "Numero:"),+ ("Gutter:", "Spaziatura:"),+ ("Fit Guides to:", "Adatta guide a:"),+ ("Top:", "Superiore:"),+ ("Bottom:", "Inferiore:"),+ ("Inside:", "Interno:"),+ ("Outside:", "Esterno:"),+ ("Left:", "Sinistra:"),+ ("Right:", "Destra:"),+ ("Paths:", "Tracciati:"),+ ("Pathfinder:", "Elaborazione tracciati:"),+ ("Convert Shape:", "Converti forma:"),+ ("Convert Point:", "Converti punto:"),+ ("Join Path", "Unisci tracciato"),+ ("Open Path", "Apri tracciato"),+ ("Plain", "Semplice"),+ ("Symmetrical", "Simmetrico"),+ ("The stroke isn't a gradient.", "La traccia non è una sfumatura."),("Reverse Path", "Inverti tracciato"),("Set Anchor", "Imposta ancoraggio"),+ ("Paste Vector Art", "Incolla grafica vettoriale"),("Clear", "Cancella"),("Duplicate", "Duplica"),("Select All", "Seleziona tutto"),diff --cc crates/ui-egui/src/i18n/ja.rsindex 89eb153dc,fe9e213e7..8d1f12e48--- a/crates/ui-egui/src/i18n/ja.rs+++ b/crates/ui-egui/src/i18n/ja.rs@@@ -30,9 -30,49 +30,50 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "カット"),("Copy", "コピー"),("Paste", "ペースト"),+ ("Bulleted & Numbered Lists", "箇条書き"),+ ("Apply Color (,)", "カラーを適用 (,)"),+ ("Apply Gradient (.)", "グラデーションを適用 (.)"),+ ("View Options", "表示オプション"),+ ("Frame Edges", "フレーム枠"),+ ("Hidden Characters", "制御文字"),+ ("Create Flex Layout", "フレックスレイアウトを作成"),+ ("Add to Flex Layout", "フレックスレイアウトに追加"),+ ("Convert to Flex Layout", "フレックスレイアウトに変換"),+ ("Remove Flex Layout", "フレックスレイアウトを削除"),+ ("Show Flex Controls", "フレックスコントロールを表示"),+ ("Flex Layout Options", "フレックスレイアウトオプション"),+ ("Reorder in Flex Layout", "フレックスレイアウト内で並べ替え"),+ ("Flex Start", "フレックス開始"),+ ("Flex End", "フレックス終了"),+ ("Space Between", "間隔を均等"),+ ("Space Around", "周囲に間隔"),+ ("Space Evenly", "均等に配置"),+ ("Reverse Row", "行(逆方向)"),+ ("Reverse Column", "列(逆方向)"),+ ("Wrap Content", "コンテンツを折り返す"),+ ("Spacing", "間隔"),+ ("Horizontal Spacing", "水平方向の間隔"),+ ("Vertical Spacing", "垂直方向の間隔"),+ ("Constrain proportions", "縦横比を固定"),+ ("Auto", "自動"),+ ("W:", "幅:"),+ ("H:", "高さ:"),+ ("Number:", "数:"),+ ("Gutter:", "間隔:"),+ ("Fit Guides to:", "ガイドの適用先:"),+ ("Inside:", "ノド:"),+ ("Outside:", "小口:"),+ ("Paths:", "パス:"),+ ("Pathfinder:", "パスファインダー:"),+ ("Convert Shape:", "シェイプを変換:"),+ ("Convert Point:", "ポイントを変換:"),+ ("Join Path", "パスを連結"),+ ("Plain", "プレーン"),+ ("Symmetrical", "対称"),+ ("The stroke isn't a gradient.", "線はグラデーションではありません。"),("Reverse Path", "パスの方向反転"),("Set Anchor", "アンカーポイントを設定"),+ ("Paste Vector Art", "ベクトルアートをペースト"),("Clear", "消去"),("Duplicate", "複製"),("Select All", "すべてを選択"),diff --cc crates/ui-egui/src/i18n/pt_br.rsindex 15d8e8c37,0675a2f66..81eba1ee2--- a/crates/ui-egui/src/i18n/pt_br.rs+++ b/crates/ui-egui/src/i18n/pt_br.rs@@@ -31,9 -31,60 +31,61 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Recortar"),("Copy", "Copiar"),("Paste", "Colar"),+ ("Bulleted & Numbered Lists", "Listas com marcadores e numeradas"),+ ("Show Hidden Characters", "Mostrar caracteres ocultos"),+ ("Current Page Number", "Número da página atual"),+ ("New Note", "Nova nota"),+ ("Insert Endnote", "Inserir nota de fim"),+ ("Apply Color (,)", "Aplicar cor (,)"),+ ("Apply Gradient (.)", "Aplicar degradê (.)"),+ ("View Options", "Opções de visualização"),+ ("Frame Edges", "Bordas do quadro"),+ ("Hidden Characters", "Caracteres ocultos"),+ ("Create Flex Layout", "Criar layout flexível"),+ ("Add to Flex Layout", "Adicionar ao layout flexível"),+ ("Convert to Flex Layout", "Converter em layout flexível"),+ ("Remove Flex Layout", "Remover layout flexível"),+ ("Show Flex Controls", "Mostrar controles flexíveis"),+ ("Flex Layout Options", "Opções de layout flexível"),+ ("Reorder in Flex Layout", "Reordenar no layout flexível"),+ ("Flex Start", "Início flexível"),+ ("Flex End", "Fim flexível"),+ ("Space Between", "Espaço entre"),+ ("Space Around", "Espaço ao redor"),+ ("Space Evenly", "Espaço uniforme"),+ ("Reverse Row", "Linha invertida"),+ ("Reverse Column", "Coluna invertida"),+ ("Wrap Content", "Quebrar conteúdo"),+ ("Spacing", "Espaçamento"),+ ("Horizontal Spacing", "Espaçamento horizontal"),+ ("Vertical Spacing", "Espaçamento vertical"),+ ("Constrain proportions", "Restringir proporções"),+ ("Auto", "Automático"),+ ("W:", "L:"),+ ("H:", "A:"),+ ("Number:", "Número:"),+ ("Gutter:", "Medianiz:"),+ ("Fit Guides to:", "Ajustar guias a:"),+ ("Top:", "Superior:"),+ ("Bottom:", "Inferior:"),+ ("Inside:", "Interna:"),+ ("Outside:", "Externa:"),+ ("Left:", "Esquerda:"),+ ("Right:", "Direita:"),+ ("Paths:", "Demarcadores:"),+ ("Pathfinder:", "Pathfinder:"),+ ("Convert Shape:", "Converter forma:"),+ ("Convert Point:", "Converter ponto:"),+ ("Join Path", "Unir demarcador"),+ ("Open Path", "Abrir demarcador"),+ ("Close Path", "Fechar demarcador"),+ ("Plain", "Simples"),+ ("Smooth", "Suave"),+ ("Symmetrical", "Simétrico"),+ ("The stroke isn't a gradient.", "O traçado não é um gradiente."),("Reverse Path", "Inverter demarcador"),("Set Anchor", "Definir ponto de ancoragem"),+ ("Paste Vector Art", "Colar arte vetorial"),("Clear", "Limpar"),("Delete", "Excluir"),("Duplicate", "Duplicar"),diff --cc crates/ui-egui/src/i18n/uk.rsindex 1c82ba2d7,8f1d27f84..2d032b0e1--- a/crates/ui-egui/src/i18n/uk.rs+++ b/crates/ui-egui/src/i18n/uk.rs@@@ -31,9 -31,55 +31,56 @@@ pub(super) const TABLE: &[(&str, &str)("Cut", "Вирізати"),("Copy", "Копіювати"),("Paste", "Вставити"),+ ("Bulleted & Numbered Lists", "Марковані й нумеровані списки"),+ ("Current Page Number", "Номер поточної сторінки"),+ ("Apply Color (,)", "Застосувати колір (,)"),+ ("Apply Gradient (.)", "Застосувати градієнт (.)"),+ ("View Options", "Параметри перегляду"),+ ("Frame Edges", "Краї фреймів"),+ ("Hidden Characters", "Приховані символи"),+ ("Create Flex Layout", "Створити гнучкий макет"),+ ("Add to Flex Layout", "Додати до гнучкого макета"),+ ("Convert to Flex Layout", "Перетворити на гнучкий макет"),+ ("Remove Flex Layout", "Прибрати гнучкий макет"),+ ("Show Flex Controls", "Показати елементи гнучкого макета"),+ ("Flex Layout Options", "Параметри гнучкого макета"),+ ("Reorder in Flex Layout", "Змінити порядок у гнучкому макеті"),+ ("Flex Start", "Початок"),+ ("Flex End", "Кінець"),+ ("Space Between", "Простір між"),+ ("Space Around", "Простір навколо"),+ ("Space Evenly", "Рівномірно"),+ ("Reverse Row", "Рядок у зворотному порядку"),+ ("Reverse Column", "Стовпець у зворотному порядку"),+ ("Wrap Content", "Переносити вміст"),+ ("Spacing", "Відступи"),+ ("Horizontal Spacing", "Горизонтальний відступ"),+ ("Vertical Spacing", "Вертикальний відступ"),+ ("Constrain proportions", "Зберігати пропорції"),+ ("Auto", "Авто"),+ ("W:", "Ш:"),+ ("H:", "В:"),+ ("Number:", "Кількість:"),+ ("Gutter:", "Проміжок:"),+ ("Fit Guides to:", "Узгодити напрямні з:"),+ ("Top:", "Верх:"),+ ("Bottom:", "Низ:"),+ ("Inside:", "Внутрішнє:"),+ ("Outside:", "Зовнішнє:"),+ ("Left:", "Ліворуч:"),+ ("Right:", "Праворуч:"),+ ("Paths:", "Контури:"),+ ("Pathfinder:", "Обробка контурів:"),+ ("Convert Shape:", "Перетворити фігуру:"),+ ("Convert Point:", "Перетворити точку:"),+ ("Join Path", "Об’єднати контур"),+ ("Open Path", "Розімкнути контур"),+ ("Plain", "Простий"),+ ("Symmetrical", "Симетричний"),+ ("The stroke isn't a gradient.", "Обведення не є градієнтом."),("Reverse Path", "Розвернути контур"),("Set Anchor", "Задати прив’язку"),+ ("Paste Vector Art", "Вставити векторну графіку"),("Clear", "Очистити"),("Duplicate", "Дублювати"),("Select All", "Виділити все"),diff --cc docs/control-protocol.mdindex 911fe74af,25136a807..121806777--- a/docs/control-protocol.md+++ b/docs/control-protocol.md@@@ -39,8 -39,7 +39,8 @@@ so only enable it while you use it. Tra| `ui.tool.select` | `{tool}` | Select a tool (`selection`, `type`, `rectangleFrame`, …) || `ui.pointer` | `{events:[{kind: down\|drag\|up\|move\|doubleclick, x, y, space?: "screen"\|"canvas", clicks?}], mods?}` | Drive the active tool through the same code path as the mouse; `clicks` on a `down` is the press count (3 = triple click); returns the selection, the tool and its cursor at the last event (e.g. `LoadedText`, `ThreadLink`, `Unthread`) || `ui.key` / `ui.text` | `{key, shift?, alt?, cmd?}` / `{text}` | Synthetic keyboard input (typing into a text frame) |+| `ui.paste` | `{text}` | What Ctrl/Cmd+V delivers from the system clipboard: text into the text being edited, or SVG markup (vector art copied in Illustrator, VectorCraft or Figma) as editable paths in the middle of the view |- | `ui.move` / `ui.click` / `ui.drag` | screen points, `button?: left\|right\|middle` | Real egui pointer input — reaches every widget, menu and panel |+ | `ui.move` / `ui.click` / `ui.drag` | screen points, `button?: left\|right\|middle`, `count?: positive integer` (click/drag, default 1), `steps?: positive integer` (drag, default 8) | Real egui pointer input — reaches every widget, menu and panel || `ui.set` | `{brightness?, panel?, rulers?, guides?, frameEdges?, baselineGrid?, textThreads?, screenMode?, zoom?, page?, fit?}` | UI state || `ui.dialog.open` | `{id, fields?}` | Open a dialog by id (e.g. `paragraphStyleOptions` or `characterStyleOptions` with `{name, section}`, or `{new: true}` for a new style) || `ui.dialog.set` / `ui.dialog.confirm` / `ui.dialog.cancel` | `{field, value}` | Fill and confirm the open dialog |