VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Tabs: in vertical type the panel names its alignments Top-Justified and Bottom-Justified Tab and labels the position Y
dotCooCoo96592e9e2739
diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsvindex 9fba45fef..3513099f8 100644--- a/crates/ui-egui/src/i18n/bg.tsv+++ b/crates/ui-egui/src/i18n/bg.tsv@@ -294,6 +294,7 @@Blur РазмазванеBottom ДолуBottom in Front Най-долу отпред+ Bottom-Justified Tab Табулация с долно подравняванеBottom: Долу:Bounds Ограничителна рамкаBounds (Fill Proportionally) Граници (пропорционално запълване)@@ -3213,6 +3214,7 @@Tools ИнструментиTop ГорноTop in Front Най-горе отпред+ Top-Justified Tab Табулация с горно подравняванеTop: Горно:Total Width: Обща ширина:Touch Type Tool Инструмент „Сензорен текст“diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex ca78b97f9..aecdbd788 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -1907,6 +1907,7 @@ lighting Light SvětloSelect art and click New Symbol to make one. Vyberte kresbu a symbol vytvořte tlačítkem Nový symbol.Symbol Libraries (on the roadmap) Knihovny symbolů (v plánu)Align On: Zarovnat na:+ Bottom-Justified Tab Tabulátor zarovnaný dolůCenter-Justified Tab Tabulátor zarovnaný na středAbove Text Nad textemPosition Panel Above Text Umístit panel nad text@@ -1918,6 +1919,7 @@ lighting Light SvětloNo text selected Není vybrán žádný textRepeat Tab Opakovat tabulátorRight-Justified Tab Tabulátor zarovnaný doprava+ Top-Justified Tab Tabulátor zarovnaný nahoruSelect a text object to set its tab stops. Vyberte textový objekt, abyste mohli nastavit jeho zarážky tabulátoru.Select text Vyberte textSnap to Unit Přichytávat k jednotkámdiff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsvindex c970314d5..194e0e5e5 100644--- a/crates/ui-egui/src/i18n/da.tsv+++ b/crates/ui-egui/src/i18n/da.tsv@@ -1724,6 +1724,7 @@ lighting Light LysSelect art and click New Symbol to make one. Markér grafik, og klik på Nyt symbol for at oprette et.Symbol Libraries (on the roadmap) Symbolbiblioteker (på roadmappen)Align On: Justér på:+ Bottom-Justified Tab Bundjusteret tabulatorCenter-Justified Tab Midterjusteret tabulatorAbove Text Over tekstenPosition Panel Above Text Placér panel over teksten@@ -1735,6 +1736,7 @@ lighting Light LysNo text selected Ingen tekst markeretRepeat Tab Gentag tabulatorRight-Justified Tab Højrejusteret tabulator+ Top-Justified Tab Topjusteret tabulatorSelect a text object to set its tab stops. Markér et tekstobjekt for at angive dets tabulatorstop.Select text Markér tekstSnap to Unit Fastgør til enheddiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex 08180017c..5a3467e08 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -289,6 +289,7 @@Blur WeichzeichnenBottom UntenBottom in Front Unten im Vordergrund+ Bottom-Justified Tab Unten ausgerichteter TabulatorBottom: Unten:Bounds BegrenzungBounds (Fill Proportionally) Begrenzung (proportional füllen)@@ -3238,6 +3239,7 @@ effect Points PunkteTools WerkzeugeTop ObenTop in Front Oben im Vordergrund+ Top-Justified Tab Oben ausgerichteter TabulatorTop: Oben:Total Width: Gesamtbreite:Touch Type Touch-Typediff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex 32ad0a8b3..8219bb20c 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -285,6 +285,7 @@Blur ΘόλωσηBottom ΚάτωBottom in Front Κάτω αντικείμενο μπροστά+ Bottom-Justified Tab Στηλοθέτης κάτω στοίχισηςBottom: Κάτω:Bounds ΌριαBounds (Fill Proportionally) Όρια (αναλογικό γέμισμα)@@ -3587,6 +3588,7 @@ theme Appearance ΕμφάνισηToolbar: Remove Tool Γραμμή εργαλείων: Αφαίρεση εργαλείουToolbar: Reset Γραμμή εργαλείων: ΕπαναφοράTop in Front Επάνω μπροστά+ Top-Justified Tab Στηλοθέτης επάνω στοίχισηςTotal Width: Συνολικό πλάτος:Touch Type Tool Επεξεργασία χαρακτήρων με αφή (Touch Type Tool)Trace Διανυσματοποίησηdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex b27935871..2935f42a0 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -307,6 +307,7 @@Blur DesenfocarBottom AbajoBottom in Front Inferior delante+ Bottom-Justified Tab Tabulación inferiorBottom: Abajo:Bounds LímitesBounds (Fill Proportionally) Límites (rellenar proporcionalmente)@@ -3272,6 +3273,7 @@Tools HerramientasTop ArribaTop in Front Superior delante+ Top-Justified Tab Tabulación superiorTop: Arriba:Total Width: Anchura total:Touch Type Tool Herramienta Retocar textodiff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsvindex 276d2df9a..fd1b7da6e 100644--- a/crates/ui-egui/src/i18n/fi.tsv+++ b/crates/ui-egui/src/i18n/fi.tsv@@ -1870,6 +1870,7 @@ lighting Light ValoSelect art and click New Symbol to make one. Luo symboli valitsemalla kuvitus ja napsauttamalla Uusi symboli.Symbol Libraries (on the roadmap) Symbolikirjastot (suunnitteilla)Align On: Tasaa kohteeseen:+ Bottom-Justified Tab Alas tasattu sarkainCenter-Justified Tab Keskitetty sarkainAbove Text Tekstin yläpuolellaPosition Panel Above Text Sijoita paneeli tekstin yläpuolelle@@ -1881,6 +1882,7 @@ lighting Light ValoNo text selected Ei valittua tekstiäRepeat Tab Toista sarkainRight-Justified Tab Oikealle tasattu sarkain+ Top-Justified Tab Ylös tasattu sarkainSelect a text object to set its tab stops. Valitse tekstiobjekti, jonka sarkainkohdat haluat asettaa.Select text Valitse tekstiSnap to Unit Kohdista yksikkööndiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex c20dc5989..9102b826a 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -308,6 +308,7 @@Blur FlouBottom BasBottom in Front Bas au premier plan+ Bottom-Justified Tab Tabulation alignée en basBottom: Bas :Bounds LimitesBounds (Fill Proportionally) Limites (remplir proportionnellement)@@ -3269,6 +3270,7 @@Tools OutilsTop HautTop in Front Haut au premier plan+ Top-Justified Tab Tabulation alignée en hautTop: Haut :Total Width: Largeur totale :Touch Type Tool Outil Retouche de textediff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex e0c99e58e..8f1911023 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -432,6 +432,7 @@Bottom Left Bal alsóBottom Right Jobb alsóBottom to Top Lentről felfelé+ Bottom-Justified Tab Alulra igazító tabulátorBottom-to-Bottom Leading Alulról alulra mért sorközBottom: Alsó:Bounding Box Befoglaló keret@@ -3945,6 +3946,7 @@ mark-style Japanese JapánTop Left Bal felsőTop Right Jobb felsőTop to Bottom Fentről lefelé+ Top-Justified Tab Felülre igazító tabulátorTop-to-Top Leading Felülről felülre mért sorközTop: Felső:Total Width: Teljes szélesség:diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex eb498472a..72a36349d 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -1724,6 +1724,7 @@ lighting Light CahayaSelect art and click New Symbol to make one. Pilih karya seni dan klik Simbol Baru untuk membuatnya.Symbol Libraries (on the roadmap) Pustaka simbol (ada di peta jalan)Align On: Ratakan pada:+ Bottom-Justified Tab Tab rata bawahCenter-Justified Tab Tab rata tengahAbove Text Di atas teksPosition Panel Above Text Posisikan panel di atas teks@@ -1735,6 +1736,7 @@ lighting Light CahayaNo text selected Tidak ada teks yang dipilihRepeat Tab Ulangi tabRight-Justified Tab Tab rata kanan+ Top-Justified Tab Tab rata atasSelect a text object to set its tab stops. Pilih objek teks untuk mengatur tab stop-nya.Select text Pilih teksSnap to Unit Snap ke satuandiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex 6c5e7ce06..b295f26c6 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -307,6 +307,7 @@Blur SfocaturaBottom In bassoBottom in Front Inferiore davanti+ Bottom-Justified Tab Tabulazione allineata in bassoBottom: In basso:Bounds LimitiBounds (Fill Proportionally) Limiti (riempi proporzionalmente)@@ -3305,6 +3306,7 @@ mark-style Japanese GiapponeseTools StrumentiTop In altoTop in Front Superiore davanti+ Top-Justified Tab Tabulazione allineata in altoTop: In alto:Total Width: Larghezza totale:Touch Type Ritocco testodiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex 7c9ae34dc..ae81f4f83 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3228,6 +3228,7 @@ gradient-kind Radial 円形Black and White Logo 白黒ロゴBottom 下Bottom in Front 下が前面+ Bottom-Justified Tab 下揃えタブBounds 境界Bounds (Fill Proportionally) 境界 (縦横比を保って全体を覆う)Bounds (Fit Proportionally) 境界 (縦横比を保って収める)@@ -3552,6 +3553,7 @@ file-filter Templates テンプレートTip on the end point 先端をパスの端点に合わせるTop 上Top in Front 上が前面+ Top-Justified Tab 上揃えタブTransforms 変形Transparent (Default) 透明 (デフォルト)Trim marks トリムマークdiff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsvindex d7a4c4058..cff083969 100644--- a/crates/ui-egui/src/i18n/ka.tsv+++ b/crates/ui-egui/src/i18n/ka.tsv@@ -1625,6 +1625,7 @@ lighting Light სინათლეSelect art and click New Symbol to make one. მონიშნეთ ნახატი და შესაქმნელად დაწკაპეთ „ახალ სიმბოლოზე“.Symbol Libraries (on the roadmap) სიმბოლოების ბიბლიოთეკები (სამომავლო გეგმაშია)Align On: სწორება მიმართ:+ Bottom-Justified Tab ქვემოთ სწორებული ტაბულაციაCenter-Justified Tab ცენტრით სწორებული ტაბულაციაAbove Text ტექსტის ზემოთPosition Panel Above Text პანელის ტექსტის ზემოთ განთავსება@@ -1636,6 +1637,7 @@ lighting Light სინათლეNo text selected ტექსტი მონიშნული არ არისRepeat Tab ტაბულაციის გამეორებაRight-Justified Tab მარჯვნივ სწორებული ტაბულაცია+ Top-Justified Tab ზემოთ სწორებული ტაბულაციაSelect a text object to set its tab stops. ტაბულაციის გაჩერებების დასაყენებლად მონიშნეთ ტექსტური ობიექტი.Select text მონიშნეთ ტექსტიSnap to Unit ერთეულზე მიბმაdiff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex d8beb2d71..cb3f52cee 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -3221,6 +3221,7 @@ gradient-kind Radial 방사형Black and White Logo 흑백 로고Bottom 아래쪽Bottom in Front 아래쪽이 앞+ Bottom-Justified Tab 아래쪽 정렬 탭Bounds 경계Bounds (Fill Proportionally) 경계(비율 유지하여 채우기)Bounds (Fit Proportionally) 경계(비율 유지하여 맞추기)@@ -3545,6 +3546,7 @@ file-filter Templates 템플릿Tip on the end point 끝이 끝점에 위치Top 위쪽Top in Front 위쪽이 앞+ Top-Justified Tab 위쪽 정렬 탭Transforms 변형Transparent (Default) 투명 (기본값)Trim marks 재단 표시diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex ea9953ac7..e8ce11a0b 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -1738,6 +1738,7 @@ lighting Light LichtSelect art and click New Symbol to make one. Selecteer artwork en klik op Nieuw symbool om er een te maken.Symbol Libraries (on the roadmap) Symboolbibliotheken (op de roadmap)Align On: Uitlijnen op:+ Bottom-Justified Tab Onder uitgelijnde tabstopCenter-Justified Tab Midden uitgelijnde tabstopAbove Text Boven tekstPosition Panel Above Text Paneel boven tekst plaatsen@@ -1749,6 +1750,7 @@ lighting Light LichtNo text selected Geen tekst geselecteerdRepeat Tab Tabstop herhalenRight-Justified Tab Rechts uitgelijnde tabstop+ Top-Justified Tab Boven uitgelijnde tabstopSelect a text object to set its tab stops. Selecteer een tekstobject om de tabstops in te stellen.Select text Selecteer tekstSnap to Unit Uitlijnen op eenheiddiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 988b37183..674b4c2ab 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -1826,6 +1826,7 @@ lighting Light ŚwiatłoSelect art and click New Symbol to make one. Zaznacz kompozycję i kliknij Nowy symbol, aby go utworzyć.Symbol Libraries (on the roadmap) Biblioteki symboli (w planach)Align On: Wyrównaj do:+ Bottom-Justified Tab Tabulator dolnyCenter-Justified Tab Tabulator środkowyAbove Text Nad tekstemPosition Panel Above Text Umieść panel nad tekstem@@ -1837,6 +1838,7 @@ lighting Light ŚwiatłoNo text selected Nie zaznaczono tekstuRepeat Tab Powtórz tabulatorRight-Justified Tab Tabulator prawy+ Top-Justified Tab Tabulator górnySelect a text object to set its tab stops. Zaznacz obiekt tekstowy, aby ustawić jego tabulatory.Select text Zaznacz tekstSnap to Unit Przyciągaj do jednostekdiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 2d261d5b4..0b8fe45c7 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -4089,6 +4089,7 @@ axis Both AmbosBlack and White Logo Logotipo em Preto e BrancoBottom InferiorBottom in Front Inferior na Frente+ Bottom-Justified Tab Parada de Tabulação InferiorBounds LimitesBounds (Fill Proportionally) Limites (Preencher Proporcionalmente)Bounds (Fit Proportionally) Limites (Ajustar Proporcionalmente)@@ -4472,6 +4473,7 @@ axis Both AmbosToolbar: Reset Barra de Ferramentas: RedefinirTop SuperiorTop in Front Superior na Frente+ Top-Justified Tab Parada de Tabulação SuperiorTransforms TransformaçõesTransparent (Default) Transparente (Padrão)Trim marks Marcas de cortediff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 69b0a5de0..85067406d 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -305,6 +305,7 @@Blur РазмытиеBottom ВнизуBottom in Front Нижний спереди+ Bottom-Justified Tab Табуляция с выравниванием по нижнему краюBottom: Внизу:Bounds ГраницыBounds (Fill Proportionally) Границы (заполнять пропорционально)@@ -3301,6 +3302,7 @@ mark-style Japanese ЯпонскийTools ИнструментыTop ВверхуTop in Front Верхний спереди+ Top-Justified Tab Табуляция с выравниванием по верхнему краюTop: Вверху:Total Width: Общая ширина:Touch Type Настройка текстаdiff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsvindex 19ade131d..800f4322c 100644--- a/crates/ui-egui/src/i18n/sv.tsv+++ b/crates/ui-egui/src/i18n/sv.tsv@@ -296,6 +296,7 @@Blur OskärpaBottom NederkantBottom in Front Nederkant framför+ Bottom-Justified Tab Bottenjusterad tabbBottom: Nederkant:Bounds GränserBounds (Fill Proportionally) Gränser (fyll proportionellt)@@ -3213,6 +3214,7 @@Tools VerktygTop ÖverkantTop in Front Ovansidan framför+ Top-Justified Tab Toppjusterad tabbTop: Överkant:Total Width: Total bredd:Touch Type Tool Beröringstextverktygdiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex 776b6a72e..e5c50a134 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -301,6 +301,7 @@Blur РозмиттяBottom ВнизуBottom in Front Нижній спереду+ Bottom-Justified Tab Табуляція з вирівнюванням по нижньому краюBottom: Внизу:Bounds МежіBounds (Fill Proportionally) Межі (заповнювати пропорційно)@@ -3298,6 +3299,7 @@ effect Points ТочкиTools ІнструментиTop ВгоріTop in Front Верхній спереду+ Top-Justified Tab Табуляція з вирівнюванням по верхньому краюTop: Вгорі:Total Width: Загальна ширина:Touch Type Налаштування текстуdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex 60e4138fe..6f28287fe 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -354,6 +354,7 @@Bottom Left Dưới tráiBottom Right Dưới phảiBottom to Top Dưới lên trên+ Bottom-Justified Tab Tab căn dướiBottom-to-Bottom Leading Giãn dòng đáy đến đáyBottom: Dưới:Bounds Giới hạn@@ -3644,6 +3645,7 @@ mark-style Japanese Kiểu NhậtTop Left Trên tráiTop Right Trên phảiTop to Bottom Trên xuống dưới+ Top-Justified Tab Tab căn trênTop-to-Top Leading Giãn dòng đỉnh đến đỉnhTop: Trên:Total Width: Tổng chiều rộng:diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 66fd1a557..3ee695c1a 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -262,6 +262,7 @@Blur 模糊Bottom 下Bottom in Front 下方置前+ Bottom-Justified Tab 底对齐制表位Bottom-to-Bottom Leading 基线至基线行距Burasagari 标点悬挂Force 强制@@ -3155,6 +3156,7 @@ font-script Japanese 汉字Tools 工具Top 上Top in Front 上方在前+ Top-Justified Tab 顶对齐制表位Top-to-Top Leading 上缘至上缘行距Top: 上:Total Width: 总宽度:diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 2d56da591..0e7bfcca3 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -273,6 +273,7 @@Blur 模糊Bottom 下Bottom in Front 下方置前+ Bottom-Justified Tab 靠下定位點Bottom-to-Bottom Leading 基線至基線行距Burasagari 標點懸掛Force 強制@@ -4029,6 +4030,7 @@ font-script Japanese 漢字Tools 工具Top 上Top in Front 上方在前+ Top-Justified Tab 靠上定位點Top-to-Top Leading 上緣至上緣行距Top: 上:Total Width: 總寬度:diff --git a/crates/ui-egui/src/panels/tabs.rs b/crates/ui-egui/src/panels/tabs.rsindex 558702719..d55cc0490 100644--- a/crates/ui-egui/src/panels/tabs.rs+++ b/crates/ui-egui/src/panels/tabs.rs@@ -1,7 +1,7 @@-//! Tabs panel: tab-stop alignment, X position, leader and "align on", and a ruler numbered in the-//! General unit on which a click adds a stop, dragging moves one and dragging it off the ruler-//! deletes it. With Snap to Unit on, or Shift held, a stop placed or dragged on the ruler lands on-//! the ruler's nearest tick.+//! Tabs panel: tab-stop alignment, X position (Y in vertical type), leader and "align on", and a+//! ruler numbered in the General unit on which a click adds a stop, dragging moves one and dragging+//! it off the ruler deletes it. With Snap to Unit on, or Shift held, a stop placed or dragged on the+//! ruler lands on the ruler's nearest tick.use egui::{Sense, Stroke, Ui, vec2};use serde_json::{Value, json};@@ -12,12 +12,21 @@ use crate::VectorcraftApp;use crate::theme::Tokens;use crate::widgets::{self, menu_item};-const ALIGNS: [(TabAlign, &str, &str); 4] = [- (TabAlign::Left, "⇥", "Left-Justified Tab"),- (TabAlign::Center, "⇹", "Center-Justified Tab"),- (TabAlign::Right, "⇤", "Right-Justified Tab"),- (TabAlign::Decimal, ".⇥", "Decimal-Justified Tab"),-];+const ALIGNS: [(TabAlign, &str); 4] = [(TabAlign::Left, "⇥"), (TabAlign::Center, "⇹"), (TabAlign::Right, "⇤"), (TabAlign::Decimal, ".⇥")];++/// The name of alignment `a`'s button: its tool tip and what screen readers call it. A line of+/// vertical type runs from top to bottom, so in vertical type a Left stop is named Top-Justified+/// and a Right stop is named Bottom-Justified.+fn align_name(a: TabAlign, vertical: bool) -> &'static str {+ match (a, vertical) {+ (TabAlign::Left, false) => tl!("Left-Justified Tab"),+ (TabAlign::Left, true) => tl!("Top-Justified Tab"),+ (TabAlign::Center, _) => tl!("Center-Justified Tab"),+ (TabAlign::Right, false) => tl!("Right-Justified Tab"),+ (TabAlign::Right, true) => tl!("Bottom-Justified Tab"),+ (TabAlign::Decimal, _) => tl!("Decimal-Justified Tab"),+ }+}fn align_id(a: TabAlign) -> &'static str {match a {@@ -129,15 +138,15 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {sel = stops.len().saturating_sub(1);}let mut align_idx: usize = pstate(ui.ctx(), "tabs-align");+ let vertical = matches!(&node.kind, NodeKind::Text(text) if text.vertical);ui.horizontal(|ui| {ui.spacing_mut().item_spacing.x = 3.0;- for (i, (a, label, tip)) in ALIGNS.iter().enumerate() {+ for (i, (a, label)) in ALIGNS.iter().enumerate() {let on = stops.get(sel).map_or(align_idx == i, |s| s.align == *a);- if ui- .add(egui::Button::new(egui::RichText::new(*label).size(13.0)).selected(on).min_size(vec2(28.0, 24.0)))- .on_hover_text(tl!(*tip))- .clicked()- {+ let tip = align_name(*a, vertical);+ let resp = ui.add(egui::Button::new(egui::RichText::new(*label).size(13.0)).selected(on).min_size(vec2(28.0, 24.0)));+ resp.widget_info(|| egui::WidgetInfo::selected(egui::WidgetType::Button, ui.is_enabled(), on, tip));+ if resp.on_hover_text(tip).clicked() {align_idx = i;set_pstate(ui.ctx(), "tabs-align", i);if let Some(s) = stops.get_mut(sel) {@@ -154,7 +163,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {});ui.add_space(4.0);egui::Grid::new("tabs-grid").num_columns(2).spacing([6.0, 4.0]).show(ui, |ui| {- ui.label(egui::RichText::new("X:").color(t.text));+ ui.label(egui::RichText::new(if vertical { "Y:" } else { "X:" }).color(t.text));let x = stops.get(sel).map(|s| s.position);if let Some(v) = widgets::spin_field(ui, "tabs-x", x, app.session.general_unit(), 90.0, 1.0, 0.0, &[])&& let Some(i) = apply_moved(app, ui.ctx(), &mut stops, sel, v.max(0.0))@@ -368,6 +377,60 @@ mod tests {assert_eq!(back[1]["align"], json!("decimal"));}+ /// In vertical type the Left and Right alignment buttons are named Top-Justified Tab and+ /// Bottom-Justified Tab, in their tool tips and for screen readers, and the position field is+ /// labeled Y. Horizontal type keeps Left-Justified Tab, Right-Justified Tab and X.+ #[test]+ fn vertical_type_names_the_alignments_top_and_bottom_and_the_position_y() {+ use crate::widgets::accessibility_tests::{role_and_state, tree};+ let mut app = VectorcraftApp::new(Session::new(), Default::default());+ app.session.execute("file.new", &json!({})).unwrap();+ app.session.execute("text.create", &json!({"x": 10, "y": 20, "text": "a b", "area": {"width": 300, "height": 100}})).unwrap();+ app.session.execute("text.tabs.set", &json!({"stops": [{"position": 50}]})).unwrap();+ let horizontal = ["Left-Justified Tab", "Center-Justified Tab", "Right-Justified Tab", "Decimal-Justified Tab"];+ let vertical = ["Top-Justified Tab", "Center-Justified Tab", "Bottom-Justified Tab", "Decimal-Justified Tab"];+ for (names, other, axis, other_axis) in [(horizontal, vertical, "X:", "Y:"), (vertical, horizontal, "Y:", "X:")] {+ if axis == "Y:" {+ app.session.execute("type.orientation.vertical", &json!({})).unwrap();+ }+ // Screen readers find the four buttons by name, and the selected stop's alignment is pressed.+ let nodes = tree(|ui| show(&mut app, ui));+ for (i, name) in names.iter().enumerate() {+ let pressed = if i == 0 { egui::accesskit::Toggled::True } else { egui::accesskit::Toggled::False };+ assert_eq!(role_and_state(&nodes, name), (egui::accesskit::Role::Button, Some(pressed)), "{name}");+ }+ for name in other.iter().filter(|n| !names.contains(n)) {+ assert!(!nodes.iter().any(|n| n.label() == Some(name)), "{name} with {axis}");+ }+ // Hovering each button shows its tool tip, and the panel shows the position field's label.+ let ctx = egui::Context::default();+ ctx.global_style_mut(|s| s.interaction.tooltip_delay = 0.0);+ let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, vec2(400.0, 400.0));+ let mut time = 0.0;+ let mut frame = |app: &mut VectorcraftApp, events: Vec<egui::Event>| {+ time += 0.5;+ let input = egui::RawInput { time: Some(time), screen_rect: Some(screen), events, ..Default::default() };+ let mut out = ctx.run_ui(input, |ui| show(app, ui));+ out.textures_delta.clear();+ out.shapes+ .iter()+ .filter_map(|c| match &c.shape {+ egui::Shape::Text(t) => Some((t.galley.text().to_string(), t.visual_bounding_rect())),+ _ => None,+ })+ .collect::<Vec<_>>()+ };+ let texts = frame(&mut app, vec![]);+ assert!(texts.iter().any(|(t, _)| t == axis) && !texts.iter().any(|(t, _)| t == other_axis), "{axis} in {texts:?}");+ for ((_, glyph), name) in ALIGNS.iter().zip(names) {+ let at = texts.iter().find(|(t, _)| t == glyph).unwrap_or_else(|| panic!("{glyph} in {texts:?}")).1.center();+ frame(&mut app, vec![egui::Event::PointerMoved(at)]);+ let tips = (0..3).flat_map(|_| frame(&mut app, vec![])).collect::<Vec<_>>();+ assert!(tips.iter().any(|(t, _)| t == name), "the tip {name} in {tips:?}");+ }+ }+ }+/// #924: Leader and Align On keep what is typed, frame after frame, until Enter applies it/// (spaces kept, eight characters at most).#[test]diff --git a/docs/target-app-parity.md b/docs/target-app-parity.mdindex 8d85e97c6..968d71a61 100644--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@ -654,6 +654,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featurThe frames of threaded text share one Optical Margin Alignment setting: turning it on or off in one frame sets it in every frame, threading frames gives the thread its first frame's setting, and frames taken out of a thread keep it.Type › Optical Margin Alignment (`type.opticalMarginAlignment`) hangs the punctuation and letter edges at the ends of a type object's lines outside its margins: at the left of left-aligned lines, at the right of right-aligned lines, and at both ends of centered and justified lines, in point and area type of left-to-right paragraphs. Quotation marks, hyphens, full stops and commas hang wholly; asterisks, tildes, ellipses, en and em dashes, colons and semicolons hang by half; and A, V, W, Y, v, w and y hang by a tenth of their width. It is off by default and saved with the type object.The Paragraph panel menu's Hyphenation… (`ui.hyphenation`, `text.setFormat {wordsLongerThan, afterFirst, beforeLast, hyphenLimit, hyphenationZone, hyphenateCapitalized}`) sets each paragraph's hyphenation limits: the shortest word that breaks, the fewest letters on each side of the hyphen, the most hyphenated lines in a row, a zone at the right edge where the Single-line Composer breaks before a word instead of hyphenating it, and whether capitalized words break. The defaults are words longer than 5 letters, 3 letters on each side, no limit or zone, and capitalized words hyphenated; paragraph styles and the native file keep the options.+ In vertical type, the Tabs panel names its alignment buttons Top-Justified Tab, Center-Justified Tab, Bottom-Justified Tab and Decimal-Justified Tab, in their tool tips and for screen readers, and labels the position field Y. In horizontal type the buttons keep the names Left-Justified Tab and Right-Justified Tab, and the field keeps the label X.The Tabs panel's ruler is numbered in the General unit with the canvas rulers' label steps and a tick every tenth of a step. With the panel menu's Snap to Unit on, or Shift held, a tab stop placed by a click on the ruler or dragged on it lands on the nearest tick (`text.tabs.set`).When a drag on the Tabs panel's ruler or a value typed in its X field moves a tab stop past another stop, the moved stop stays selected.The Tabs panel menu's Clear All Tabs (`text.tabs.clear`), Delete Tab and Repeat Tab (`text.tabs.set`) can be chosen while the panel's ruler shows tab stops. Delete Tab removes the stop selected on the ruler. Repeat Tab replaces the stops after the selected stop with up to 20 copies of it. The copies are spaced by the selected stop's distance from the stop before it, or from the paragraph's left indent when it is the first stop, and no copy is placed at 2,000 pt or beyond. Clear All Tabs removes every stop, so the default stops every ½ inch apply again.