From d582277cc79c4bc9cee174b25b13fb11e6957aa5 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 6 Oct 2026 14:53:14 -0400 Subject: [PATCH] i18n: fonts from craft-fonts, not the repo; rebase onto main - Noto Sans CJK SC and Noto Sans Arabic now live in storytold/craft-fonts (byte-identical to upstream); the UI picks them up by script (Hans, Arab) from CRAFT_FONTS, Chinese forms first in the zh interface, and the fonts reinstall when the interface language changes. - Rebased onto main: zh column for the vertical-type and smart-guide rows added since; duplicate rows removed; ROADMAP merged. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/i18n.rs | 41 +++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index 0d755865..60fae75f 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -67,8 +67,8 @@ const TABLE: &[(&str, [&str; 5])] = &[ ), // Type. ("Story Direction", ["Textrichtung", "Sens du texte", "Dirección del texto", "組み方向", "文章方向"]), - ("Horizontal", ["Horizontal", "Horizontal", "Horizontal", "横書き", "横排"]), - ("Vertical", ["Vertikal", "Vertical", "Vertical", "縦書き", "直排"]), + ("Horizontal", ["Horizontal", "Horizontal", "Horizontal", "横書き", "水平"]), + ("Vertical", ["Vertikal", "Vertical", "Vertical", "縦書き", "垂直"]), ("Tate-Chu-Yoko", ["Tate-Chu-Yoko", "Tate-Chu-Yoko", "Tate-Chu-Yoko", "縦中横", "直排内横排"]), ("Ruby…", ["Ruby …", "Ruby…", "Ruby…", "ルビ…", "注音…"]), ("Kenten", ["Kenten", "Kenten", "Kenten", "圏点", "着重号"]), @@ -115,10 +115,37 @@ const TABLE: &[(&str, [&str; 5])] = &[ ("Grids & Guides", ["Raster und Hilfslinien", "Grilles et repères", "Cuadrículas y guías", "グリッドとガイド", "网格和参考线"]), ("Show Rulers", ["Lineale einblenden", "Afficher les règles", "Mostrar reglas", "定規を表示", "显示标尺"]), ("Snap to Guides", ["An Hilfslinien ausrichten", "Coller aux repères", "Ajustar a las guías", "ガイドにスナップ", "对齐参考线"]), - ("Snap to Document Grid", ["Am Dokumentraster ausrichten", "Coller à la grille du document", "Ajustar a la cuadrícula del documento", "ドキュメントグリッドにスナップ", "对齐文档网格"]), + ( + "Snap to Document Grid", + [ + "Am Dokumentraster ausrichten", + "Coller à la grille du document", + "Ajustar a la cuadrícula del documento", + "ドキュメントグリッドにスナップ", + "对齐文档网格", + ], + ), ("Smart Guides", ["Smarte Hilfslinien", "Repères intelligents", "Guías inteligentes", "スマートガイド", "智能参考线"]), - ("Align to Object Edges", ["An Objektkanten ausrichten", "Aligner sur les bords des objets", "Alinear a los bordes del objeto", "オブジェクトの端に揃える", "对齐对象边缘"]), - ("Align to Object Centers", ["An Objektmitten ausrichten", "Aligner sur les centres des objets", "Alinear a los centros del objeto", "オブジェクトの中心に揃える", "对齐对象中心"]), + ( + "Align to Object Edges", + [ + "An Objektkanten ausrichten", + "Aligner sur les bords des objets", + "Alinear a los bordes del objeto", + "オブジェクトの端に揃える", + "对齐对象边缘", + ], + ), + ( + "Align to Object Centers", + [ + "An Objektmitten ausrichten", + "Aligner sur les centres des objets", + "Alinear a los centros del objeto", + "オブジェクトの中心に揃える", + "对齐对象中心", + ], + ), ("Smart Dimensions", ["Smarte Maße", "Mesures intelligentes", "Dimensiones inteligentes", "スマートサイズ", "智能尺寸"]), ("Smart Spacing", ["Smarte Abstände", "Espacements intelligents", "Espaciado inteligente", "スマート間隔", "智能间距"]), ("Snap to Zone", ["Fangzone", "Zone de magnétisme", "Zona de ajuste", "スナップゾーン", "吸附范围"]), @@ -1340,7 +1367,6 @@ const TABLE: &[(&str, [&str; 5])] = &[ "超链接交叉引用", ], ), - ("Story Direction", ["Story Direction", "Story Direction", "Story Direction", "Story Direction", "文章方向"]), ( "Document Footnote Options...", [ @@ -2117,7 +2143,6 @@ const TABLE: &[(&str, [&str; 5])] = &[ ("Show Baseline Grid", ["Show Baseline Grid", "Show Baseline Grid", "Show Baseline Grid", "Show Baseline Grid", "显示基线网格"]), ("Show Document Grid", ["Show Document Grid", "Show Document Grid", "Show Document Grid", "Show Document Grid", "显示文档网格"]), ("Show Guides", ["Show Guides", "Show Guides", "Show Guides", "Show Guides", "显示参考线"]), - ("Smart Guides", ["Smart Guides", "Smart Guides", "Smart Guides", "Smart Guides", "智能参考线"]), ("Stop Color:", ["Stop Color:", "Stop Color:", "Stop Color:", "Stop Color:", "色标颜色:"]), ("Style", ["Style", "Style", "Style", "Style", "样式"]), ("Styles panel", ["Styles panel", "Styles panel", "Styles panel", "Styles panel", "样式面板"]), @@ -2228,8 +2253,6 @@ const TABLE: &[(&str, [&str; 5])] = &[ ("Pin left", ["Pin left", "Pin left", "Pin left", "Pin left", "固定左侧"]), ("Pin right", ["Pin right", "Pin right", "Pin right", "Pin right", "固定右侧"]), ("Inward", ["Inward", "Inward", "Inward", "Inward", "向内"]), - ("Horizontal", ["Horizontal", "Horizontal", "Horizontal", "Horizontal", "水平"]), - ("Vertical", ["Vertical", "Vertical", "Vertical", "Vertical", "垂直"]), ("Metrics", ["Metrics", "Metrics", "Metrics", "Metrics", "度量"]), ("Optical", ["Optical", "Optical", "Optical", "Optical", "视觉"]), ("Applies to fill", ["Applies to fill", "Applies to fill", "Applies to fill", "Applies to fill", "应用于填色"]),