From b435c97e50524a2cd4ff63d596e79447daba6bb4 Mon Sep 17 00:00:00 2001 From: ruchirguitar <113586074+ruchirguitar@users.noreply.github.com> Date: Wed, 4 Nov 2026 02:56:59 +0530 Subject: [PATCH 001/273] Fix #4943: Sanskrit, Nepali, Assamese, Konkani and Sindhi languages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document Setup's language list, and with it the Character panel's and Character Style Options' Language menus and text.setFormat / document.setup, gains Sanskrit (sa), Nepali (ne), Assamese (as), Konkani (kok) and Sindhi (sd). Their quote marks are CLDR's: none of the five has delimiters of its own, so they inherit root's “…” and ‘…’. Each catalog gets the five names from CLDR's language names. Co-Authored-By: Claude Opus 5.5 --- crates/doc/src/setup.rs | 19 +++++++++++++++++++ crates/engine/src/tests/docsetup.rs | 21 +++++++++++++++++++++ crates/ui-egui/src/i18n/bg.tsv | 5 +++++ crates/ui-egui/src/i18n/bs.tsv | 5 +++++ crates/ui-egui/src/i18n/ca.tsv | 5 +++++ crates/ui-egui/src/i18n/cs.tsv | 5 +++++ crates/ui-egui/src/i18n/da.tsv | 5 +++++ crates/ui-egui/src/i18n/de.tsv | 5 +++++ crates/ui-egui/src/i18n/el.tsv | 5 +++++ crates/ui-egui/src/i18n/es.tsv | 5 +++++ crates/ui-egui/src/i18n/fi.tsv | 5 +++++ crates/ui-egui/src/i18n/fr.tsv | 5 +++++ crates/ui-egui/src/i18n/hu.tsv | 5 +++++ crates/ui-egui/src/i18n/id.tsv | 5 +++++ crates/ui-egui/src/i18n/it.tsv | 5 +++++ crates/ui-egui/src/i18n/ja.tsv | 5 +++++ crates/ui-egui/src/i18n/ka.tsv | 5 +++++ crates/ui-egui/src/i18n/ko.tsv | 5 +++++ crates/ui-egui/src/i18n/nl.tsv | 5 +++++ crates/ui-egui/src/i18n/pl.tsv | 5 +++++ crates/ui-egui/src/i18n/pt-br.tsv | 5 +++++ crates/ui-egui/src/i18n/ru.tsv | 5 +++++ crates/ui-egui/src/i18n/sv.tsv | 5 +++++ crates/ui-egui/src/i18n/tr.tsv | 5 +++++ crates/ui-egui/src/i18n/uk.tsv | 5 +++++ crates/ui-egui/src/i18n/vi.tsv | 5 +++++ crates/ui-egui/src/i18n/zh-hans.tsv | 5 +++++ crates/ui-egui/src/i18n/zh-hant.tsv | 5 +++++ docs/type-parity.md | 5 +++-- 29 files changed, 173 insertions(+), 2 deletions(-) diff --git a/crates/doc/src/setup.rs b/crates/doc/src/setup.rs index c269181536..706ff42bd1 100644 --- a/crates/doc/src/setup.rs +++ b/crates/doc/src/setup.rs @@ -186,6 +186,15 @@ pub const LANGUAGES: &[(&str, &str, Quotes)] = &[ ("Malayalam", "ml", Quotes::ENGLISH), ("Odia", "or", Quotes::ENGLISH), ("Urdu", "ur", Quotes::ENGLISH), + // “…” outside, ‘…’ inside: CLDR gives these no delimiters of their own (`↑↑↑`, inherited), so + // they take root's (https://github.com/unicode-org/cldr/blob/main/common/main/root.xml, + // `delimiters`): sa.xml, ne.xml, as.xml, kok.xml and sd.xml (Arabic script; sd_Deva.xml for + // Devanagari inherits too) in https://github.com/unicode-org/cldr/blob/main/common/main/. + ("Sanskrit", "sa", Quotes { double: ['“', '”'], single: ['‘', '’'] }), + ("Nepali", "ne", Quotes { double: ['“', '”'], single: ['‘', '’'] }), + ("Assamese", "as", Quotes { double: ['“', '”'], single: ['‘', '’'] }), + ("Konkani", "kok", Quotes { double: ['“', '”'], single: ['‘', '’'] }), + ("Sindhi", "sd", Quotes { double: ['“', '”'], single: ['‘', '’'] }), ]; /// The quotes of a [`LANGUAGES`] entry (case-insensitive). @@ -386,6 +395,11 @@ mod tests { assert_eq!(char_language("sr-latn"), Ok(Some("sr-Latn"))); assert_eq!(char_language("Croatian"), Ok(Some("hr"))); assert_eq!(char_language_name(Some("sr-Cyrl")), Some("Serbian: Cyrillic")); + // Sanskrit, Nepali, Assamese, Konkani (a three-letter tag) and Sindhi, by name or tag. + for (name, tag) in [("Sanskrit", "sa"), ("Nepali", "ne"), ("Assamese", "as"), ("Konkani", "kok"), ("Sindhi", "sd")] { + assert_eq!((char_language(name), char_language(&tag.to_uppercase())), (Ok(Some(tag)), Ok(Some(tag))), "{name}"); + assert_eq!(char_language_name(Some(tag)), Some(name)); + } // Every entry has a tag of its own, and a name of its own. for (i, (n, t, _)) in LANGUAGES.iter().enumerate() { assert!(LANGUAGES.iter().skip(i + 1).all(|(n2, t2, _)| n2 != n && t2 != t), "{n} {t}"); @@ -409,6 +423,11 @@ mod tests { } let mut prev = None; assert_eq!(language_quotes("croatian").unwrap().apply("\"a 'b' c\"", &mut prev), "„a ‚b‘ c“"); + // Sanskrit, Nepali, Assamese, Konkani and Sindhi take CLDR root's quotes. + for name in ["Sanskrit", "Nepali", "Assamese", "Konkani", "Sindhi"] { + let mut prev = None; + assert_eq!(language_quotes(name).unwrap().apply("\"a 'b' c\"", &mut prev), "“a ‘b’ c”", "{name}"); + } // Converting in pieces keeps the context. let mut prev = None; let a = Quotes::ENGLISH.apply("\"", &mut prev); diff --git a/crates/engine/src/tests/docsetup.rs b/crates/engine/src/tests/docsetup.rs index c1c70ac07e..a7ae320b0e 100644 --- a/crates/engine/src/tests/docsetup.rs +++ b/crates/engine/src/tests/docsetup.rs @@ -162,6 +162,27 @@ fn language_picks_its_quotes_unless_quotes_are_given() { assert_eq!((setup(&s).quotes.double, setup(&s).quotes.single), (['“', '”'], ['‹', '›'])); } +/// Sanskrit, Nepali, Assamese, Konkani and Sindhi (#4943): each is a document language, new type +/// takes its tag, and each can be set on a text by name or tag. +#[test] +fn the_further_indian_languages_are_document_and_text_languages() { + let mut s = session(); + let id = create_text(&mut s, "a"); + for (name, tag) in [("Sanskrit", "sa"), ("Nepali", "ne"), ("Assamese", "as"), ("Konkani", "kok"), ("Sindhi", "sd")] { + s.execute("document.setup", &json!({"language": name.to_lowercase()})).unwrap(); + assert_eq!((setup(&s).language.as_str(), setup(&s).quotes.double), (name, ['“', '”'])); + let new = create_text(&mut s, "b"); + assert_eq!(text(&s, new).runs[0].style.language.as_deref(), Some(tag), "new type in {name}"); + s.execute("document.setup", &json!({"language": "English: USA"})).unwrap(); + s.execute("select.set", &json!({"ids": [id.0]})).unwrap(); + s.execute("text.setFormat", &json!({"language": name})).unwrap(); + assert_eq!(text(&s, id).runs[0].style.language.as_deref(), Some(tag), "{name} by name"); + s.execute("text.setFormat", &json!({"language": "English: USA"})).unwrap(); + s.execute("text.setFormat", &json!({"language": tag.to_uppercase()})).unwrap(); + assert_eq!(text(&s, id).runs[0].style.language.as_deref(), Some(tag), "{name} by tag"); + } +} + #[test] fn typographers_quotes_setting_changes_typed_quotes() { let mut s = session(); diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index e0b4646714..6b724d6d34 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -6087,6 +6087,11 @@ breakText Glyphs Глифи Malayalam Малаялам Odia Ория Urdu Урду + Sanskrit Санскрит + Nepali Непалски + Assamese Асамски + Konkani Конкани + Sindhi Синдхи VectorCraft {release} and later (version {n}) VectorCraft {release} и по-нови (версия {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Експортиране на всички отворени документи като PDF diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index 0a730a8bb6..307fb47a38 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -6121,6 +6121,11 @@ shape Open Otvoren Malayalam Malajalam Odia Odija Urdu Urdu + Sanskrit Sanskrit + Nepali Nepalski + Assamese Asamski + Konkani Konkani + Sindhi Sindi VectorCraft {release} and later (version {n}) VectorCraft {release} i novije (verzija {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Izvezi sve otvorene dokumente kao PDF diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index c54c8b11de..20ae695935 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -6221,6 +6221,11 @@ breakText Glyphs Glifs Malayalam Malaiàlam Odia Oriya Urdu Urdú + Sanskrit Sànscrit + Nepali Nepalès + Assamese Assamès + Konkani Concani + Sindhi Sindi VectorCraft {release} and later (version {n}) VectorCraft {release} i posteriors (versió {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Exporta tots els documents oberts com a PDF diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 3e535f31d7..e4189b03b3 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -6235,6 +6235,11 @@ breakText Glyphs Glyfy Malayalam Malajálamština Odia Urijština Urdu Urdština + Sanskrit Sanskrt + Nepali Nepálština + Assamese Ásámština + Konkani Konkánština + Sindhi Sindhština VectorCraft {release} and later (version {n}) VectorCraft {release} a novější (verze {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Exportovat všechny otevřené dokumenty jako PDF diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index dd3b54a4e2..d2fb1349fb 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -6103,6 +6103,11 @@ breakText Glyphs Glyffer Malayalam Malayalam Odia Oriya Urdu Urdu + Sanskrit Sanskrit + Nepali Nepalesisk + Assamese Assamesisk + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} og nyere (version {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Eksportér alle åbne dokumenter som PDF diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 4956d08d4c..1ddf569dd0 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -5821,6 +5821,11 @@ breakText Glyphs Glyphen Malayalam Malayalam Odia Oriya Urdu Urdu + Sanskrit Sanskrit + Nepali Nepalesisch + Assamese Assamesisch + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} und neuer (Version {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Alle geöffneten Dokumente als PDF exportieren diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index d73cddb44b..e70bf28df2 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -6187,6 +6187,11 @@ breakText Glyphs Γλύφοι Malayalam Μαλαγιάλαμ Odia Όντια Urdu Ούρντου + Sanskrit Σανσκριτικά + Nepali Νεπαλικά + Assamese Ασαμικά + Konkani Κονκανικά + Sindhi Σίντι VectorCraft {release} and later (version {n}) VectorCraft {release} και νεότερες (έκδοση {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Εξαγωγή όλων των ανοιχτών εγγράφων ως PDF diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index b43199c7e9..c9e1ee76e1 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -6177,6 +6177,11 @@ breakText Glyphs Glifos Malayalam Malayálam Odia Oriya Urdu Urdu + Sanskrit Sánscrito + Nepali Nepalí + Assamese Asamés + Konkani Konkaní + Sindhi Sindi VectorCraft {release} and later (version {n}) VectorCraft {release} y posteriores (versión {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Exportar todos los documentos abiertos como PDF diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index b211b4c481..0b9f9994db 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -6265,6 +6265,11 @@ breakText Glyphs Merkit Malayalam Malajalam Odia Orija Urdu Urdu + Sanskrit Sanskrit + Nepali Nepali + Assamese Assami + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} ja uudemmat (versio {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Vie kaikki avoimet asiakirjat PDF-muodossa diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index d80d26230d..a675037940 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -6230,6 +6230,11 @@ breakText Glyphs Glyphes Malayalam Malayalam Odia Odia Urdu Ourdou + Sanskrit Sanskrit + Nepali Népalais + Assamese Assamais + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} et ultérieures (version {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Exporter tous les documents ouverts en PDF diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 5e5fae2043..a9d7f1615f 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -6219,6 +6219,11 @@ breakText Glyphs Glifák Malayalam Malajálam Odia Odia Urdu Urdu + Sanskrit Szanszkrit + Nepali Nepáli + Assamese Asszámi + Konkani Konkani + Sindhi Szindhi VectorCraft {release} and later (version {n}) VectorCraft {release} és újabb (verzió: {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Az összes megnyitott dokumentum exportálása PDF-ként diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 987d8db0de..b18b2e5bc4 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -6103,6 +6103,11 @@ breakText Glyphs Glif Malayalam Malayalam Odia Oriya Urdu Urdu + Sanskrit Sanskerta + Nepali Nepali + Assamese Assam + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} dan yang lebih baru (versi {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Ekspor Semua Dokumen Terbuka sebagai PDF diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 1f43f530ba..7dca688024 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -5855,6 +5855,11 @@ breakText Glyphs Glifi Malayalam Malayalam Odia Odia Urdu Urdu + Sanskrit Sanscrito + Nepali Nepalese + Assamese Assamese + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} e successive (versione {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Esporta tutti i documenti aperti come PDF diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 6c3b728695..0f09328eb7 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -5920,6 +5920,11 @@ breakText Glyphs 字形 Malayalam マラヤーラム語 Odia オディア語 Urdu ウルドゥー語 + Sanskrit サンスクリット語 + Nepali ネパール語 + Assamese アッサム語 + Konkani コンカニ語 + Sindhi シンド語 VectorCraft {release} and later (version {n}) VectorCraft {release} 以降 (バージョン {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF 開いているすべてのドキュメントを PDF として書き出し diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index f85b3bcd5c..3961398aeb 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -6223,6 +6223,11 @@ breakText Glyphs გლიფები Malayalam მალაიალამური Odia ორია Urdu ურდუ + Sanskrit სანსკრიტი + Nepali ნეპალური + Assamese ასამური + Konkani კონკანი + Sindhi სინდჰური VectorCraft {release} and later (version {n}) VectorCraft {release} და უფრო ახალი (ვერსია {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF ყველა ღია დოკუმენტის ექსპორტი PDF-ად diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index 7a83c0316e..5130834fa4 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -5816,6 +5816,11 @@ breakText Glyphs 글리프 Malayalam 말라얄람어 Odia 오리야어 Urdu 우르두어 + Sanskrit 산스크리트어 + Nepali 네팔어 + Assamese 아삼어 + Konkani 코카니어 + Sindhi 신디어 VectorCraft {release} and later (version {n}) VectorCraft {release} 이상 (버전 {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF 열린 모든 문서를 PDF로 내보내기 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 8d1deb5043..a173a8e423 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -6147,6 +6147,11 @@ breakText Glyphs Glyphs Malayalam Malayalam Odia Odia Urdu Urdu + Sanskrit Sanskriet + Nepali Nepalees + Assamese Assamees + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} en nieuwer (versie {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Alle geopende documenten exporteren als PDF diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index c3ba696532..ecbe665946 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -6090,6 +6090,11 @@ breakText Glyphs Glify Malayalam Malajalam Odia Orija Urdu Urdu + Sanskrit Sanskryt + Nepali Nepalski + Assamese Asamski + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} i nowsze (wersja {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Eksportuj wszystkie otwarte dokumenty jako PDF diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index e0af75dda4..6299441a8a 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -6153,6 +6153,11 @@ breakText Glyphs Glifos Malayalam Malaiala Odia Oriá Urdu Urdu + Sanskrit Sânscrito + Nepali Nepalês + Assamese Assamês + Konkani Concani + Sindhi Sindi VectorCraft {release} and later (version {n}) VectorCraft {release} e posteriores (versão {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Exportar todos os documentos abertos como PDF diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index b37b9a3193..ac2d32b02c 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -6212,6 +6212,11 @@ breakText Glyphs Глифы Malayalam Малаялам Odia Ория Urdu Урду + Sanskrit Санскрит + Nepali Непальский + Assamese Ассамский + Konkani Конкани + Sindhi Синдхи VectorCraft {release} and later (version {n}) VectorCraft {release} и новее (версия {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Экспортировать все открытые документы в PDF diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index ab678406c1..272f50d8d6 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -6287,6 +6287,11 @@ breakText Glyphs Glyfer Malayalam Malayalam Odia Oriya Urdu Urdu + Sanskrit Sanskrit + Nepali Nepalesiska + Assamese Assamesiska + Konkani Konkani + Sindhi Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} och senare (version {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Exportera alla öppna dokument som PDF diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 78ffc5ae73..44548ec610 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -6192,6 +6192,11 @@ breakText Glyphs Glifler Malayalam Malayalam dili Odia Oriya dili Urdu Urduca + Sanskrit Sanskrit + Nepali Nepalce + Assamese Assamca + Konkani Konkani dili + Sindhi Sindhi dili VectorCraft {release} and later (version {n}) VectorCraft {release} ve sonrası (sürüm {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Tüm Açık Belgeleri PDF Olarak Dışa Aktar diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 87a8a1a612..a7b16b1023 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -5835,6 +5835,11 @@ breakText Glyphs Гліфи Malayalam Малаялам Odia Одія Urdu Урду + Sanskrit Санскрит + Nepali Непальська + Assamese Ассамська + Konkani Конкані + Sindhi Синдхі VectorCraft {release} and later (version {n}) VectorCraft {release} і новіші (версія {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Експортувати всі відкриті документи як PDF diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 3856eef442..8c51ea2423 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -5836,6 +5836,11 @@ breakText Glyphs Glyph Malayalam Tiếng Malayalam Odia Tiếng Odia Urdu Tiếng Urdu + Sanskrit Tiếng Phạn + Nepali Tiếng Nepal + Assamese Tiếng Assam + Konkani Tiếng Konkani + Sindhi Tiếng Sindhi VectorCraft {release} and later (version {n}) VectorCraft {release} trở lên (phiên bản {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF Xuất tất cả tài liệu đang mở dưới dạng PDF diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 78542f8a25..5751d4c5ba 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -6076,6 +6076,11 @@ breakText Glyphs 字形 Malayalam 马拉雅拉姆语 Odia 奥里亚语 Urdu 乌尔都语 + Sanskrit 梵语 + Nepali 尼泊尔语 + Assamese 阿萨姆语 + Konkani 孔卡尼语 + Sindhi 信德语 VectorCraft {release} and later (version {n}) VectorCraft {release} 及更高版本 (版本 {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF 将所有打开的文档导出为 PDF diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index a7bcd23d81..8a42734867 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -5873,6 +5873,11 @@ breakText Glyphs 字符 Malayalam 馬來亞拉姆文 Odia 歐利亞文 Urdu 烏都文 + Sanskrit 梵文 + Nepali 尼泊爾文 + Assamese 阿薩姆文 + Konkani 貢根文 + Sindhi 信德文 VectorCraft {release} and later (version {n}) VectorCraft {release} 及更新版本 (版本 {n}) # Document Tools add-on: Export All Open Documents (#4920). Export All Open Documents as PDF 將所有開啟的文件匯出為 PDF diff --git a/docs/type-parity.md b/docs/type-parity.md index 5e506c2360..5ec0ef53a2 100644 --- a/docs/type-parity.md +++ b/docs/type-parity.md @@ -1,6 +1,6 @@ # Type parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-03 · **Change:** minor (Touch Type moves right-to-left characters along their line; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-04 · **Change:** minor (Sanskrit, Nepali, Assamese, Konkani and Sindhi in the language list; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) Type is Illustrator's largest single area by use (weight 13 of 105 across "Type core" and "Type advanced" in [target-app-parity.md](target-app-parity.md)). This checklist lists the features one by one. Status is from the @@ -65,7 +65,7 @@ against Illustrator's public documentation; **estimated** unless noted. | CJK: manual tate-chu-yoko | done | Character panel menu › Tate-chu-yoko (`text.setFormat` / `text.setRangeStyle {tateChuYoko}`), with Show East Asian Options: marked characters stand side by side across one em of a vertical column, squeezed to the em when wider; two or three half-width digits still do so without the mark; horizontal type keeps the mark and does not move them. Tate-chu-yoko Settings… (`ui.tateChuYokoSettings`, `{tcyUpDown, tcyLeftRight}` in points) moves a marked block up or down and right or left as one piece. Evidence: `tests_vertical::manual_tate_chu_yoko_sets_marked_characters_across_one_em`, `tests_vertical::tate_chu_yoko_settings_move_a_marked_block_up_down_left_and_right`, `typecmd::tate_chu_yoko_is_a_character_attribute_saved_only_when_on`, `typecmd::tate_chu_yoko_settings_are_character_attributes_saved_only_when_set`, `dialogs::tate_chu_yoko::tests` | | CJK: Standard Vertical Roman Alignment | done | Character panel menu › Standard Vertical Roman Alignment (`text.setFormat` / `text.setRangeStyle {standardVerticalRoman}`), with Show East Asian Options, off by default: in vertical type the marked half-width characters (Latin letters, digits and other characters that would lie on their side) stand upright one below the other, each in its upright cell; spaces keep their width and tate-chu-yoko blocks stay across the column; horizontal type keeps the mark and does not change. Character Style Options has its own checkbox for it. Evidence: `tests_vertical::standard_vertical_roman_alignment_stands_half_width_characters_upright`, `typecmd::standard_vertical_roman_is_a_character_attribute_saved_only_when_on` | | CJK: ruby, manual tate-chu-yoko | partial | ruby (ふりがな) for live text (`type.ruby`): a reading over a byte range, above (right of the column in vertical type) or below, start/centre/end alignment, size, overhang or squeeze; saved natively, laid out with its line growing, drawn on the canvas, in SVG and PDF (as outlines where ruby is present), in EPS, EMF/WMF and legacy `.ai` (legacy `.ai` writes type with ruby as outlines), and kept by Create Outlines, Expand Appearance and flattening, each glyph where the layout puts it (`typecmd::ruby_tests::create_outlines_keeps_the_ruby_where_it_is_laid_out`); manual tate-chu-yoko missing | #633 | -| Language per character (Character panel › Language, character styles), text shaped in it | done | `text.setFormat` / `text.setRangeStyle {language}` by name or BCP 47 tag, one of Document Setup's languages (Hindi, Marathi, Gujarati, Bengali, Punjabi, Tamil, Telugu, Kannada, Malayalam, Odia and Urdu added, #4943; Serbian: Cyrillic, Serbian: Latin and Croatian); the shaper gets the tag, so the font's language forms apply (OpenType `locl`: Turkish keeps `fi` apart and the dot on its i, #4940); new type takes the document's language; saved as the tag only when set, carried by character styles (#4946). Not yet: hyphenation and spelling by it, `.ai`/PDF import of a text's language, paragraph styles. Evidence: `features::tests::language_picks_the_fonts_forms`, `features::tests::serbian_gets_the_fonts_serbian_forms`, `typecmd::area_tests::language_is_a_character_attribute_saved_only_when_set` | +| Language per character (Character panel › Language, character styles), text shaped in it | done | `text.setFormat` / `text.setRangeStyle {language}` by name or BCP 47 tag, one of Document Setup's languages (Hindi, Marathi, Gujarati, Bengali, Punjabi, Tamil, Telugu, Kannada, Malayalam, Odia, Urdu, Sanskrit, Nepali, Assamese, Konkani and Sindhi added, #4943; Serbian: Cyrillic, Serbian: Latin and Croatian); the shaper gets the tag, so the font's language forms apply (OpenType `locl`: Turkish keeps `fi` apart and the dot on its i, #4940); new type takes the document's language; saved as the tag only when set, carried by character styles (#4946). Not yet: hyphenation and spelling by it, `.ai`/PDF import of a text's language, paragraph styles. Evidence: `features::tests::language_picks_the_fonts_forms`, `features::tests::serbian_gets_the_fonts_serbian_forms`, `typecmd::area_tests::language_is_a_character_attribute_saved_only_when_set`, `tests::docsetup::the_further_indian_languages_are_document_and_text_languages` | | No Break | done | Character panel menu (`text.setFormat` / `text.setRangeStyle {noBreak}`): the marked characters stay on one line, including across a space; a run that does not fit after earlier text moves together, and a run longer than the line stays together. Evidence: `layout::wrapping_tests::no_break_keeps_marked_characters_on_one_line`, `tests::no_break_keeps_marked_words_on_one_line`, `typecmd::no_break_is_a_character_attribute_saved_only_when_on` | | CJK: ruby | missing | #633 | | Inline symbols in text | beyond Illustrator | not scored | @@ -77,6 +77,7 @@ Character Styles menu New/Redefine and footer New capture the first selected cha | Date | Change | Summary | |---|---|---| +| 2026-11-04 | minor | Sanskrit (`sa`), Nepali (`ne`), Assamese (`as`), Konkani (`kok`) and Sindhi (`sd`) in the language list (#4943), with “…” and ‘…’, which [CLDR](https://github.com/unicode-org/cldr/blob/main/common/main/) gives them by inheriting [root](https://github.com/unicode-org/cldr/blob/main/common/main/root.xml); scores unchanged | | 2026-11-03 | minor | Character-menu Kashidas controls selected characters separately from the paragraph's Insert Kashidas length. Existing text allows Kashidas by default; scores and estimates unchanged. | | 2026-11-03 | minor | Type on a Path Options has a Preview checkbox: the type follows the fields while it is on, Cancel restores it, OK is one undo step (#5360, as public tutorials of the dialog show); scores and estimates unchanged. | | 2026-11-02 | minor | The wheel over Character, Properties and Control font-family fields changes selected text, one undo step per notch (#5253); scores and estimates unchanged. | From 015eb4e5fc8f471c0cd2fa9895c0dae40949ec35 Mon Sep 17 00:00:00 2001 From: ruchirguitar <113586074+ruchirguitar@users.noreply.github.com> Date: Wed, 4 Nov 2026 10:00:56 +0530 Subject: [PATCH 002/273] #4943: Quotes::ENGLISH for the new languages; ui-parity row As the other Indic rows do (review). The CLDR citation stays: root's delimiters are the English ones. Co-Authored-By: Claude Opus 5.5 --- crates/doc/src/setup.rs | 10 +++++----- docs/ui-parity.md | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/crates/doc/src/setup.rs b/crates/doc/src/setup.rs index 706ff42bd1..2d0a4012ba 100644 --- a/crates/doc/src/setup.rs +++ b/crates/doc/src/setup.rs @@ -190,11 +190,11 @@ pub const LANGUAGES: &[(&str, &str, Quotes)] = &[ // they take root's (https://github.com/unicode-org/cldr/blob/main/common/main/root.xml, // `delimiters`): sa.xml, ne.xml, as.xml, kok.xml and sd.xml (Arabic script; sd_Deva.xml for // Devanagari inherits too) in https://github.com/unicode-org/cldr/blob/main/common/main/. - ("Sanskrit", "sa", Quotes { double: ['“', '”'], single: ['‘', '’'] }), - ("Nepali", "ne", Quotes { double: ['“', '”'], single: ['‘', '’'] }), - ("Assamese", "as", Quotes { double: ['“', '”'], single: ['‘', '’'] }), - ("Konkani", "kok", Quotes { double: ['“', '”'], single: ['‘', '’'] }), - ("Sindhi", "sd", Quotes { double: ['“', '”'], single: ['‘', '’'] }), + ("Sanskrit", "sa", Quotes::ENGLISH), + ("Nepali", "ne", Quotes::ENGLISH), + ("Assamese", "as", Quotes::ENGLISH), + ("Konkani", "kok", Quotes::ENGLISH), + ("Sindhi", "sd", Quotes::ENGLISH), ]; /// The quotes of a [`LANGUAGES`] entry (case-insensitive). diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 5499b09aa1..56c1bb1728 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,6 @@ # UI and interaction parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-03 · **Change:** minor (Type on a Path Options has a Preview checkbox, #5360; the Action Options row cites the public Actions panel page; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged) · **Target:** Adobe Illustrator 2026 (30.x) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-04 · **Change:** minor (Document Setup's language list gains Sanskrit, Nepali, Assamese, Konkani and Sindhi, #4943; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged) · **Target:** Adobe Illustrator 2026 (30.x) ## Feature submission evidence @@ -420,6 +420,7 @@ separate. Scores and hours unchanged. [Behavior and command details](development | Date | Change | Summary | |---|---|---| +| 2026-11-04 | minor | Document Setup › Language and Character panel › Language: the list gains Sanskrit, Nepali, Assamese, Konkani and Sindhi (#4943), with their names in every catalog from CLDR; scores unchanged | | 2026-11-03 | minor | Enclosing Lasso selects fully enclosed objects with a freehand loop under Object › Plug-ins; scores and estimates unchanged. | | 2026-11-03 | minor | Type on a Path Options has a Preview checkbox (#5360, as public tutorials of the dialog show); scores and estimates unchanged | | 2026-11-02 | minor | Font-family fields in Character, Properties and Control accept the wheel without opening the menu (#5253); scores and estimates unchanged. | From 447e1f898e9148a26f043d0ad9bf326512c5fde5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 13 Nov 2026 15:39:31 -0800 Subject: [PATCH 003/273] Blob Brush: path.blob rejects invalid fidelity, angle and roundness path.blob used to clamp a supplied angle to -180..180, a roundness to 0..100 and a fidelity to 0.01..100 pt, so a value such as 200 or -1 painted with a different value than the one given. It now returns an invalid-parameters error for a value outside its range, before the document changes, and records no undo step. A key left out or null still takes its default: 0 degrees, 100% and no fitting. path.freehand (and brush.freehand) treated any style other than "brush" as "pencil", and any extend end other than "start" as "end". It now rejects an unknown style or extend end with an error, as it already did for connect end; left out or null, they keep their defaults. The new messages have rows in every complete-message catalog, and the connect end message gets rows in the catalogs that lacked one. Docs: path.blob and path.freehand params text, docs/mcp.md, docs/target-app-parity.md. --- crates/engine/src/cmd/draw2/commands.rs | 4 +- crates/engine/src/cmd/draw2/freehand.rs | 38 +++++++---- crates/engine/src/tests/draw2.rs | 88 ++++++++++++++++++++++++- crates/ui-egui/src/i18n/ca.tsv | 6 ++ crates/ui-egui/src/i18n/cs.tsv | 6 ++ crates/ui-egui/src/i18n/de.tsv | 6 ++ crates/ui-egui/src/i18n/el.tsv | 6 ++ crates/ui-egui/src/i18n/es.tsv | 6 ++ crates/ui-egui/src/i18n/fi.tsv | 6 ++ crates/ui-egui/src/i18n/fr.tsv | 6 ++ crates/ui-egui/src/i18n/hi.tsv | 8 ++- crates/ui-egui/src/i18n/hu.tsv | 6 ++ crates/ui-egui/src/i18n/it.tsv | 6 ++ crates/ui-egui/src/i18n/ja.tsv | 6 ++ crates/ui-egui/src/i18n/ka.tsv | 6 ++ crates/ui-egui/src/i18n/ko.tsv | 6 ++ crates/ui-egui/src/i18n/nl.tsv | 6 ++ crates/ui-egui/src/i18n/pl.tsv | 6 ++ crates/ui-egui/src/i18n/pt-br.tsv | 6 ++ crates/ui-egui/src/i18n/ru.tsv | 6 ++ crates/ui-egui/src/i18n/sv.tsv | 6 +- crates/ui-egui/src/i18n/tests.rs | 57 ++++++++++++++++ crates/ui-egui/src/i18n/tr.tsv | 6 ++ crates/ui-egui/src/i18n/uk.tsv | 6 ++ crates/ui-egui/src/i18n/vi.tsv | 6 ++ crates/ui-egui/src/i18n/zh-hans.tsv | 6 ++ crates/ui-egui/src/i18n/zh-hant.tsv | 6 ++ docs/mcp.md | 10 ++- docs/target-app-parity.md | 1 + 29 files changed, 317 insertions(+), 21 deletions(-) diff --git a/crates/engine/src/cmd/draw2/commands.rs b/crates/engine/src/cmd/draw2/commands.rs index 53949fdaf0..9b8a648411 100644 --- a/crates/engine/src/cmd/draw2/commands.rs +++ b/crates/engine/src/cmd/draw2/commands.rs @@ -11,7 +11,7 @@ pub fn specs() -> Vec { "Pencil", [], None, - "{points: [[x,y]…] or [[x,y,pressure]…] or [[x,y,pressure,tiltX,tiltY,rotation]…] (pen pressure 0..1: the stroke keeps it, for Calligraphic and Scatter brushes with Pressure variation; a point without one presses fully. Pen tilt in degrees, each −90..90, x positive leaning right and y leaning down the page, and barrel rotation in degrees clockwise: the stroke keeps how far the pen leaned, which way and how far its barrel turned, for brushes with Tilt, Bearing and Rotation variation; null for what a point lacks), fidelity?: pt (1.5; from 0.000015625 (0.01 / 640) to 100 / 0.0313 (about 3194.89), the Pencil's and the Paintbrush's 0.01 to 100 px Fidelity at the highest and the lowest zoom; a value outside that range is an error. The tools send their Fidelity in pixels divided by the zoom, kept within the range), fit?: bool (true; false: the points are joined by straight segments, as the Pencil previews a stroke with Live curve fitting off), closed?, style?: \"pencil\"|\"brush\", fill?: bool, keepSelected?: bool (true: the drawn or continued path is selected; false: a new path leaves nothing selected, and a continued or redrawn one is deselected while the rest of the selection stays), extend?: {id, end: \"start\"|\"end\"}, connect?: {id, end: \"start\"|\"end\"}, redraw?: {id, within?: pt (12)}} fit a freehand stroke → {id}. extend continues the path from that end; with connect, the stroke ends on that end of another path's last open subpath and joins it on, in one path with the extended path's appearance (the other path is removed when nothing of it is left); redraw (Edit Selected Paths) replaces the section of the path between where the stroke starts and ends, each within `within` of one subpath (the shorter way round a closed one), and draws a new path when the stroke doesn't end on it", + "{points: [[x,y]…] or [[x,y,pressure]…] or [[x,y,pressure,tiltX,tiltY,rotation]…] (pen pressure 0..1: the stroke keeps it, for Calligraphic and Scatter brushes with Pressure variation; a point without one presses fully. Pen tilt in degrees, each −90..90, x positive leaning right and y leaning down the page, and barrel rotation in degrees clockwise: the stroke keeps how far the pen leaned, which way and how far its barrel turned, for brushes with Tilt, Bearing and Rotation variation; null for what a point lacks), fidelity?: pt (1.5; from 0.000015625 (0.01 / 640) to 100 / 0.0313 (about 3194.89), the Pencil's and the Paintbrush's 0.01 to 100 px Fidelity at the highest and the lowest zoom; a value outside that range is an error. The tools send their Fidelity in pixels divided by the zoom, kept within the range), fit?: bool (true; false: the points are joined by straight segments, as the Pencil previews a stroke with Live curve fitting off), closed?, style?: \"pencil\" (default) | \"brush\", fill?: bool, keepSelected?: bool (true: the drawn or continued path is selected; false: a new path leaves nothing selected, and a continued or redrawn one is deselected while the rest of the selection stays), extend?: {id, end?: \"end\" (default) | \"start\"}, connect?: {id, end: \"start\"|\"end\"}, redraw?: {id, within?: pt (12)}} fit a freehand stroke → {id}. extend continues the path from that end; with connect, the stroke ends on that end of another path's last open subpath and joins it on, in one path with the extended path's appearance (the other path is removed when nothing of it is left); redraw (Edit Selected Paths) replaces the section of the path between where the stroke starts and ends, each within `within` of one subpath (the shorter way round a closed one), and draws a new path when the stroke doesn't end on it. Any other style, extend end or connect end is an error, and nothing changes", has_doc, freehand ), @@ -128,7 +128,7 @@ pub fn specs() -> Vec { "Blob Brush", [], None, - "{points: [[x,y]…] or [[x,y,pressure]…] (pen pressure 0..1), size?: pt (10), sizeMode?: \"fixed\" (default) | \"pressure\" (Blob Brush Tool Options' Size set to Pressure: the brush is size − sizeVariation wide at the lightest pen pressure and size + sizeVariation at the heaviest, at least 0.1 pt; a stroke without pressure keeps the size), sizeVariation?: pt (0), angle?: ° (0, kept within −180–180: the tip's long axis counter-clockwise from horizontal, kept on the page along the stroke), roundness?: % (100, kept within 0–100: the tip's short axis in percent of its long one, 100 round; 0 is drawn as 0.1), fidelity?: pt (0.01–100; the brush follows the stroke fitted at this tolerance as path.freehand fits a Pencil stroke, and a higher value gives a smoother shape; without it the brush follows every point), merge?: true, mergeOnlySelection?: bool (false: merge with any touching same-color blob; true: only with selected ones), keepSelected?: bool (false: the drawn or merged path is not selected, and the rest of the selection stays; true: it is selected)} filled brush shape, merged with the topmost touching same-color blob and the touching ones next to it in stacking order in its group or layer → {id}", + "{points: [[x,y]…] or [[x,y,pressure]…] (pen pressure 0..1), size?: pt (10), sizeMode?: \"fixed\" (default) | \"pressure\" (Blob Brush Tool Options' Size set to Pressure: the brush is size − sizeVariation wide at the lightest pen pressure and size + sizeVariation at the heaviest, at least 0.1 pt; a stroke without pressure keeps the size), sizeVariation?: pt (0), angle?: ° (0, −180–180: the tip's long axis counter-clockwise from horizontal, kept on the page along the stroke), roundness?: % (100, 0–100: the tip's short axis in percent of its long one, 100 round; 0 is drawn as 0.1), fidelity?: pt (0.01–100; the brush follows the stroke fitted at this tolerance as path.freehand fits a Pencil stroke, and a higher value gives a smoother shape; without it the brush follows every point), merge?: true, mergeOnlySelection?: bool (false: merge with any touching same-color blob; true: only with selected ones), keepSelected?: bool (false: the drawn or merged path is not selected, and the rest of the selection stays; true: it is selected)} filled brush shape, merged with the topmost touching same-color blob and the touching ones next to it in stacking order in its group or layer → {id}. An angle, roundness or fidelity outside its range is rejected with an error, and nothing changes", has_doc, blob ), diff --git a/crates/engine/src/cmd/draw2/freehand.rs b/crates/engine/src/cmd/draw2/freehand.rs index 31e184e195..645fad27f8 100644 --- a/crates/engine/src/cmd/draw2/freehand.rs +++ b/crates/engine/src/cmd/draw2/freehand.rs @@ -159,12 +159,20 @@ pub(super) fn freehand(s: &mut Session, p: &Value) -> Result { // The tolerance the stroke is fitted at; with `fit: false` it is not fitted. let fit_tol = switch_or(p, "fit", true, C)?.then_some(tol); let closed = switch_or(p, "closed", false, C)?; - let brush = str_param(p, "style") == Some("brush"); + let brush = match p.get("style").filter(|v| !v.is_null()).map(Value::as_str) { + None | Some(Some("pencil")) => false, + Some(Some("brush")) => true, + Some(_) => return Err(bad(C, "style must be \"pencil\" or \"brush\"")), + }; let keep_selected = switch_or(p, "keepSelected", true, C)?; let filled = switch_or(p, "fill", false, C)?; if let Some(ext) = p.get("extend").filter(|v| !v.is_null()) { let id = object_param(ext, "id", C)?.ok_or_else(|| bad(C, "extend needs id"))?; - let at_start = str_param(ext, "end") == Some("start"); + let at_start = match ext.get("end").filter(|v| !v.is_null()).map(Value::as_str) { + None | Some(Some("end")) => false, + Some(Some("start")) => true, + Some(_) => return Err(bad(C, "extend end must be \"start\" or \"end\"")), + }; let (pd, _) = path_of(&s.doc()?.doc, id)?; let si = pd.subpaths.iter().rposition(|s| !s.closed && !s.anchors.is_empty()).ok_or_else(|| bad(C, "path has no open end"))?; let mut sp = pd.subpaths[si].clone(); @@ -391,12 +399,23 @@ pub(super) fn blob(s: &mut Session, p: &Value) -> Result { return Err(bad(C, "size must be positive")); } let angle = number_or(p, "angle", 0.0, C)?; + if !(-180.0..=180.0).contains(&angle) { + return Err(bad(C, "`angle` must be from -180 to 180 degrees")); + } let roundness = number_or(p, "roundness", 100.0, C)?; - if !angle.is_finite() || !roundness.is_finite() { - return Err(bad(C, "angle and roundness must be finite")); + if !(0.0..=100.0).contains(&roundness) { + return Err(bad(C, "`roundness` must be from 0 to 100%")); + } + // With `fidelity` (pt), the brush follows the stroke fitted by [`fit_freehand`], as a Pencil + // stroke is fitted. Without it, or when the fitted stroke has no length (a short stroke back to + // its start), the brush follows every point. + let fidelity = match p.get("fidelity") { + None | Some(Value::Null) => None, + Some(_) => Some(number_or(p, "fidelity", 0.0, C)?), + }; + if fidelity.is_some_and(|f| !(vectorcraft_tools::draw2::MIN_FIDELITY..=100.0).contains(&f)) { + return Err(bad(C, "`fidelity` must be from 0.01 to 100 pt")); } - let angle = angle.clamp(-180.0, 180.0); - let roundness = roundness.clamp(0.0, 100.0); let tip = vectorcraft_tools::draw2::blob_tip(angle, roundness); let squash = tip.inverse(); // Width profiles use distance along the spine, so measure pressure on the same squashed @@ -418,13 +437,6 @@ pub(super) fn blob(s: &mut Session, p: &Value) -> Result { let mapped_pts: Vec = mapped_samples.into_iter().map(|s| s.pt).collect(); // The widest the brush gets: the area merges look in. let reach = pressure.as_ref().map_or(size, |(_, v)| size + v); - // With `fidelity` (pt), the brush follows the stroke fitted by [`fit_freehand`], as a Pencil - // stroke is fitted. Without it, or when the fitted stroke has no length (a short stroke back to - // its start), the brush follows every point. - let fidelity = match p.get("fidelity") { - None | Some(Value::Null) => None, - Some(_) => Some(number_or(p, "fidelity", 0.0, C)?.clamp(vectorcraft_tools::draw2::MIN_FIDELITY, 100.0)), - }; let spine = |tol: Option| { let path = match tol { Some(tol) => PathData::single(fit_freehand(&pts, tol, false)), diff --git a/crates/engine/src/tests/draw2.rs b/crates/engine/src/tests/draw2.rs index 79dbd366f6..3a4ec30ab5 100644 --- a/crates/engine/src/tests/draw2.rs +++ b/crates/engine/src/tests/draw2.rs @@ -86,8 +86,57 @@ fn blob_tip_zero_and_invalid_values_are_safe() { p[key] = value; assert!(s.execute("path.blob", &p).is_err(), "{key}: {p}"); } - s.execute("path.blob", &json!({"points": [[100, 200], [300, 200]], "angle": 1e300, "roundness": -1e300, "merge": false})).unwrap(); - assert!(paths(&s)[1].1.control_bounds().unwrap().height().is_finite()); + let stroke = json!({"points": [[100, 200], [300, 200]], "merge": false}); + refuses_with(&mut s, "path.blob", &with(&stroke, json!({"angle": 1e300})), "`angle` must be from -180 to 180 degrees"); + refuses_with(&mut s, "path.blob", &with(&stroke, json!({"roundness": -1e300})), "`roundness` must be from 0 to 100%"); + assert_eq!(paths(&s).len(), 1); +} + +/// `path.blob` refuses an `angle`, `roundness` or `fidelity` outside its range and changes nothing; +/// each end of a range paints, and a key left out or null takes its default (0°, 100% and no fitting). +#[test] +fn blob_brush_rejects_out_of_range_tip_and_fidelity_without_edit() { + let mut s = session(); + let stroke = json!({"points": [[100, 100], [300, 100]], "size": 20, "merge": false}); + let angle = "`angle` must be from -180 to 180 degrees"; + let roundness = "`roundness` must be from 0 to 100%"; + let fidelity = "`fidelity` must be from 0.01 to 100 pt"; + for (extra, want) in [ + (json!({"angle": -180.5}), angle), + (json!({"angle": 181}), angle), + (json!({"angle": 1e300}), angle), + (json!({"roundness": -0.5}), roundness), + (json!({"roundness": 101}), roundness), + (json!({"fidelity": 0.005}), fidelity), + (json!({"fidelity": 0}), fidelity), + (json!({"fidelity": -1}), fidelity), + (json!({"fidelity": 101}), fidelity), + (json!({"fidelity": 1e300}), fidelity), + (json!({"angle": 45, "roundness": 50, "fidelity": 100.5}), fidelity), + ] { + refuses_with(&mut s, "path.blob", &with(&stroke, extra), want); + } + assert!(paths(&s).is_empty()); + let painted = |s: &mut Session, extra: serde_json::Value| { + let id = NodeId(s.execute("path.blob", &with(&stroke, extra)).unwrap()["id"].as_u64().unwrap()); + path(s, id) + }; + for extra in [ + json!({"angle": -180}), + json!({"angle": 180}), + json!({"roundness": 0}), + json!({"roundness": 100}), + json!({"fidelity": 0.01}), + json!({"fidelity": 100}), + ] { + let pd = painted(&mut s, extra.clone()); + assert!(pd.control_bounds().is_some_and(|b| b.height().is_finite() && b.height() > 0.0), "{extra}: {pd:?}"); + } + let defaults = painted(&mut s, json!({})); + let nulls = painted(&mut s, json!({"angle": null, "roundness": null, "fidelity": null})); + let given = painted(&mut s, json!({"angle": 0, "roundness": 100})); + assert_eq!(nulls, defaults); + assert_eq!(given, defaults); } #[test] @@ -311,6 +360,41 @@ fn pencil_connect_keeps_the_rest_of_a_compound_path_and_refuses_the_extended_pat assert!(s.execute("path.freehand", &json!({"points": points, "extend": {"id": a.0}, "connect": {"id": a.0}})).is_err()); } +/// `path.freehand` refuses a `style` other than "pencil" or "brush" and an `extend` end other than +/// "start" or "end" and changes nothing; left out or null, the style is "pencil" and the stroke +/// continues the path from its end. +#[test] +fn pencil_refuses_an_unknown_style_or_extend_end() { + let mut s = session(); + let a = line(&mut s, 100.0, 100.0, 200.0, 100.0); + let stroke = json!({"points": [[100, 300], [200, 320], [300, 300]]}); + for style in [json!("calligraphic"), json!("Brush"), json!(""), json!(1), json!(true)] { + refuses_with(&mut s, "path.freehand", &with(&stroke, json!({ "style": style })), "style must be \"pencil\" or \"brush\""); + } + let from_end = json!({"points": [[200, 100], [250, 150], [300, 100]]}); + for end in [json!("middle"), json!("START"), json!(""), json!(0), json!(false)] { + let p = with(&from_end, json!({"extend": {"id": a.0, "end": end}})); + refuses_with(&mut s, "path.freehand", &p, "extend end must be \"start\" or \"end\""); + } + assert_eq!((paths(&s).len(), path(&s, a).anchor_count()), (1, 2), "refused: nothing changed"); + for style in [json!("pencil"), json!("brush"), json!(null)] { + s.execute("path.freehand", &with(&stroke, json!({ "style": style }))).unwrap(); + } + assert_eq!(paths(&s).len(), 4); + for end in [json!(null), json!("end")] { + let mut s = session(); + let a = line(&mut s, 100.0, 100.0, 200.0, 100.0); + s.execute("path.freehand", &with(&from_end, json!({"extend": {"id": a.0, "end": end}}))).unwrap(); + let sp = &path(&s, a).subpaths[0]; + assert_eq!((sp.anchors[0].p, sp.anchors[sp.anchors.len() - 1].p), (Point::new(100.0, 100.0), Point::new(300.0, 100.0)), "{end}"); + } + let mut s = session(); + let a = line(&mut s, 100.0, 100.0, 200.0, 100.0); + s.execute("path.freehand", &json!({"points": [[100, 100], [50, 150], [0, 100]], "extend": {"id": a.0, "end": "start"}})).unwrap(); + let ends: Vec = path(&s, a).subpaths[0].anchors.iter().map(|x| x.p).collect(); + assert!(ends.contains(&Point::new(0.0, 100.0)) && ends.contains(&Point::new(200.0, 100.0)), "continued from its start: {ends:?}"); +} + /// With Keep selected off, a compound path whose direct-selected anchors all lie on the subpath /// that connect joins on is no longer selected, and Delete then has nothing to delete. #[test] diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 9dfc5458b5..aa5ee3510f 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -7457,6 +7457,12 @@ breakText Glyphs Glifs @msg No bridge of this width fits across the selected art Cap pont d’aquesta amplada no cap a la il·lustració seleccionada @msg Some islands could not be joined to the area around the art Algunes illes no s’han pogut unir a l’àrea que envolta la il·lustració @msg `width` must be from {lo} to {hi} pt `width` ha d’estar entre {lo} i {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` ha d’estar entre -180 i 180 graus +@msg `roundness` must be from 0 to 100% `roundness` ha d’estar entre 0 i 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` ha d’estar entre 0.01 i 100 pt +@msg style must be "pencil" or "brush" style ha de ser "pencil" o "brush" +@msg extend end must be "start" or "end" l’extrem d’extend ha de ser "start" o "end" +@msg connect end must be "start" or "end" l’extrem de connect ha de ser "start" o "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` ha de ser un nombre enter d’1 a {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Caixa i línies de pelat… Weed Box and Lines Caixa i línies de pelat diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index edaad350a0..2ff4359d18 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -7476,6 +7476,12 @@ breakText Glyphs Glyfy @msg No bridge of this width fits across the selected art Přes vybranou kresbu se nevejde žádný můstek této šířky @msg Some islands could not be joined to the area around the art Některé ostrůvky nebylo možné připojit k oblasti kolem kresby @msg `width` must be from {lo} to {hi} pt `width` musí být od {lo} do {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` musí být od -180 do 180 stupňů +@msg `roundness` must be from 0 to 100% `roundness` musí být od 0 do 100 % +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` musí být od 0.01 do 100 pt +@msg style must be "pencil" or "brush" style musí být "pencil" nebo "brush" +@msg extend end must be "start" or "end" konec extend musí být "start" nebo "end" +@msg connect end must be "start" or "end" konec connect musí být "start" nebo "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` musí být celé číslo od 1 do {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Rámeček a linie pro vybírání… Weed Box and Lines Rámeček a linie pro vybírání diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index cd6a428631..345c772d9e 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -7072,6 +7072,12 @@ breakText Glyphs Glyphen @msg No bridge of this width fits across the selected art Kein Steg dieser Breite passt über das ausgewählte Bildmaterial @msg Some islands could not be joined to the area around the art Einige Inseln konnten nicht mit der Fläche um das Bildmaterial verbunden werden @msg `width` must be from {lo} to {hi} pt `width` muss zwischen {lo} und {hi} pt liegen +@msg `angle` must be from -180 to 180 degrees `angle` muss zwischen -180 und 180 Grad liegen +@msg `roundness` must be from 0 to 100% `roundness` muss zwischen 0 und 100 % liegen +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` muss zwischen 0.01 und 100 pt liegen +@msg style must be "pencil" or "brush" style muss "pencil" oder "brush" sein +@msg extend end must be "start" or "end" Das Ende von extend muss "start" oder "end" sein +@msg connect end must be "start" or "end" Das Ende von connect muss "start" oder "end" sein @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` muss eine ganze Zahl von 1 bis {MAX_BRIDGES_PER_ISLAND} sein Weed Box and Lines… Entgitterrahmen und -linien… Weed Box and Lines Entgitterrahmen und -linien diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index fc76658c72..2a3c947e76 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -7429,6 +7429,12 @@ breakText Glyphs Γλύφοι @msg No bridge of this width fits across the selected art Καμία γέφυρα αυτού του πλάτους δεν χωράει στο επιλεγμένο γραφικό @msg Some islands could not be joined to the area around the art Ορισμένες νησίδες δεν ήταν δυνατό να συνδεθούν με την περιοχή γύρω από το γραφικό @msg `width` must be from {lo} to {hi} pt Το `width` πρέπει να είναι από {lo} έως {hi} pt +@msg `angle` must be from -180 to 180 degrees Το `angle` πρέπει να είναι από -180 έως 180 μοίρες +@msg `roundness` must be from 0 to 100% Το `roundness` πρέπει να είναι από 0 έως 100% +@msg `fidelity` must be from 0.01 to 100 pt Το `fidelity` πρέπει να είναι από 0.01 έως 100 pt +@msg style must be "pencil" or "brush" Το style πρέπει να είναι "pencil" ή "brush" +@msg extend end must be "start" or "end" Το άκρο του extend πρέπει να είναι "start" ή "end" +@msg connect end must be "start" or "end" Το άκρο του connect πρέπει να είναι "start" ή "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} Το `count` πρέπει να είναι ακέραιος από 1 έως {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Πλαίσιο και γραμμές αφαίρεσης περισσευμάτων… Weed Box and Lines Πλαίσιο και γραμμές αφαίρεσης περισσευμάτων diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index c7c9c8bc1e..070238b7a0 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -7420,6 +7420,12 @@ breakText Glyphs Glifos @msg No bridge of this width fits across the selected art Ningún puente de este ancho cabe en la ilustración seleccionada @msg Some islands could not be joined to the area around the art Algunas islas no se pudieron unir al área que rodea la ilustración @msg `width` must be from {lo} to {hi} pt `width` debe estar entre {lo} y {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` debe estar entre -180 y 180 grados +@msg `roundness` must be from 0 to 100% `roundness` debe estar entre 0 y 100 % +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` debe estar entre 0.01 y 100 pt +@msg style must be "pencil" or "brush" style debe ser "pencil" o "brush" +@msg extend end must be "start" or "end" el extremo de extend debe ser "start" o "end" +@msg connect end must be "start" or "end" el extremo de connect debe ser "start" o "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` debe ser un número entero entre 1 y {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Caja y líneas de pelado… Weed Box and Lines Caja y líneas de pelado diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 126e7854f9..70c6851636 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -7511,6 +7511,12 @@ breakText Glyphs Merkit @msg No bridge of this width fits across the selected art Näin leveä silta ei mahdu valitun grafiikan poikki @msg Some islands could not be joined to the area around the art Joitakin saarekkeita ei voitu yhdistää grafiikkaa ympäröivään alueeseen @msg `width` must be from {lo} to {hi} pt `width`-arvon on oltava {lo}–{hi} pt +@msg `angle` must be from -180 to 180 degrees `angle`-arvon on oltava -180–180 astetta +@msg `roundness` must be from 0 to 100% `roundness`-arvon on oltava 0–100 % +@msg `fidelity` must be from 0.01 to 100 pt `fidelity`-arvon on oltava 0.01–100 pt +@msg style must be "pencil" or "brush" style-arvon on oltava "pencil" tai "brush" +@msg extend end must be "start" or "end" extend-pään on oltava "start" tai "end" +@msg connect end must be "start" or "end" connect-pään on oltava "start" tai "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` on oltava kokonaisluku 1–{MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Karsintakehys ja -viivat… Weed Box and Lines Karsintakehys ja -viivat diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 3941bf0497..8c90ad7233 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -7471,6 +7471,12 @@ breakText Glyphs Glyphes @msg No bridge of this width fits across the selected art Aucun pont de cette largeur ne tient en travers de l’illustration sélectionnée @msg Some islands could not be joined to the area around the art Certains îlots n’ont pas pu être reliés à la zone autour de l’illustration @msg `width` must be from {lo} to {hi} pt `width` doit être compris entre {lo} et {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` doit être compris entre -180 et 180 degrés +@msg `roundness` must be from 0 to 100% `roundness` doit être compris entre 0 et 100 % +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` doit être compris entre 0.01 et 100 pt +@msg style must be "pencil" or "brush" style doit être "pencil" ou "brush" +@msg extend end must be "start" or "end" l’extrémité de extend doit être "start" ou "end" +@msg connect end must be "start" or "end" l’extrémité de connect doit être "start" ou "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` doit être un nombre entier compris entre 1 et {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Cadre et lignes d’échenillage… Weed Box and Lines Cadre et lignes d’échenillage diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index bf2f223fc0..f0e45ef79c 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -6386,7 +6386,6 @@ antiAlias Sharp शार्प @msg anchor `{key}` must be a number एंकर `{key}` को एक नंबर होना चाहिए @msg anchor `smooth` must be true or false एंकर का `smooth` true या false होना चाहिए @msg anchor must name a registered panel anchor किसी पंजीकृत पैनल का नाम होना चाहिए -@msg angle and roundness must be finite कोण और गोलाई परिमित होना चाहिए @msg angles must be a list as long as pins (degrees or null) angles पिन जितनी लंबी सूची होनी चाहिए (डिग्री या null) @msg Angles require two straight segments कोणों को दो सीधे खंडों की आवश्यकता होती है @msg antiAlias `{id}`: none, art or type antiAlias `{id}`: none, art या type @@ -6569,7 +6568,7 @@ antiAlias Sharp शार्प @msg compound paths can only contain paths यौगिक पाथ में केवल पाथ हो सकते हैं @msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes कंपाउंड शेप पाथ, कंपाउंड पाथ, समूह, कंपाउंड शेप, टाइप, ब्लेंड और एन्वेलप लेते हैं @msg compressed (RLE) bitmaps can't be read yet संकुचित (RLE) bitmaps अभी तक पढ़ा नहीं जा सकता है -@msg connect end must be "start" or "end" कनेक्ट अंत "start" या "end" होना चाहिए +@msg connect end must be "start" or "end" connect अंत "start" या "end" होना चाहिए @msg connect needs a path other than the one extended connect के लिए बढ़ाए गए पाथ के अलावा कोई दूसरा पाथ चाहिए @msg connect needs id connect के लिए id चाहिए @msg connect path has no open end कनेक्ट पाथ का कोई खुला अंत नहीं है @@ -8868,6 +8867,11 @@ theme Appearance अपीयरेंस @msg No bridge of this width fits across the selected art इस चौड़ाई का कोई ब्रिज चुने गए आर्टवर्क के पार नहीं आता @msg Some islands could not be joined to the area around the art कुछ आइलैंड आर्टवर्क के आसपास के क्षेत्र से नहीं जोड़े जा सके @msg `width` must be from {lo} to {hi} pt `width` {lo} से {hi} pt तक होना चाहिए +@msg `angle` must be from -180 to 180 degrees `angle` -180 से 180 डिग्री तक होना चाहिए +@msg `roundness` must be from 0 to 100% `roundness` 0 से 100% तक होना चाहिए +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` 0.01 से 100 pt तक होना चाहिए +@msg style must be "pencil" or "brush" style "pencil" या "brush" होना चाहिए +@msg extend end must be "start" or "end" extend अंत "start" या "end" होना चाहिए @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` 1 से {MAX_BRIDGES_PER_ISLAND} तक पूरी संख्या होना चाहिए Weed Box and Lines… वीड बॉक्स और लाइनें… Weed Box and Lines वीड बॉक्स और लाइनें diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 969b923a1c..939ccb6912 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -7460,6 +7460,12 @@ breakText Glyphs Glifák @msg No bridge of this width fits across the selected art Ilyen széles híd nem fér el a kijelölt grafikán @msg Some islands could not be joined to the area around the art Egyes szigeteket nem sikerült összekötni a grafikát körülvevő területtel @msg `width` must be from {lo} to {hi} pt A `width` értéke {lo} és {hi} pt között lehet +@msg `angle` must be from -180 to 180 degrees Az `angle` értéke -180 és 180 fok között lehet +@msg `roundness` must be from 0 to 100% A `roundness` értéke 0 és 100% között lehet +@msg `fidelity` must be from 0.01 to 100 pt A `fidelity` értéke 0.01 és 100 pt között lehet +@msg style must be "pencil" or "brush" A style értéke "pencil" vagy "brush" lehet +@msg extend end must be "start" or "end" Az extend vége "start" vagy "end" lehet +@msg connect end must be "start" or "end" A connect vége "start" vagy "end" lehet @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count`: 1 és {MAX_BRIDGES_PER_ISLAND} közötti egész szám kell Weed Box and Lines… Gyomláló keret és vonalak… Weed Box and Lines Gyomláló keret és vonalak diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index ea10433ebd..bb7dda9ee7 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -7106,6 +7106,12 @@ breakText Glyphs Glifi @msg No bridge of this width fits across the selected art Nessun ponte di questa larghezza entra nella grafica selezionata @msg Some islands could not be joined to the area around the art Non è stato possibile collegare alcune isole all’area intorno alla grafica @msg `width` must be from {lo} to {hi} pt `width` deve essere compreso tra {lo} e {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` deve essere compreso tra -180 e 180 gradi +@msg `roundness` must be from 0 to 100% `roundness` deve essere compreso tra 0 e 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` deve essere compreso tra 0.01 e 100 pt +@msg style must be "pencil" or "brush" style deve essere "pencil" o "brush" +@msg extend end must be "start" or "end" l’estremità di extend deve essere "start" o "end" +@msg connect end must be "start" or "end" l’estremità di connect deve essere "start" o "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` deve essere un numero intero compreso tra 1 e {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Riquadro e linee di spellicolatura… Weed Box and Lines Riquadro e linee di spellicolatura diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index ca80ba3a83..cb7b962a42 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -7172,6 +7172,12 @@ breakText Glyphs 字形 @msg No bridge of this width fits across the selected art この幅のブリッジは選択したアートワークに収まりません @msg Some islands could not be joined to the area around the art 一部のアイランドをアートワークの周囲の領域につなげられませんでした @msg `width` must be from {lo} to {hi} pt `width` は {lo}~{hi} pt の範囲で指定してください +@msg `angle` must be from -180 to 180 degrees `angle` は -180~180 度の範囲で指定してください +@msg `roundness` must be from 0 to 100% `roundness` は 0~100% の範囲で指定してください +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` は 0.01~100 pt の範囲で指定してください +@msg style must be "pencil" or "brush" style は "pencil" または "brush" を指定してください +@msg extend end must be "start" or "end" extend の端は "start" または "end" を指定してください +@msg connect end must be "start" or "end" connect の端は "start" または "end" を指定してください @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` には 1 から {MAX_BRIDGES_PER_ISLAND} の整数を指定してください Weed Box and Lines… カス取り枠とライン… Weed Box and Lines カス取り枠とライン diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 0778b2e405..06dbf93110 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -7590,6 +7590,12 @@ font-script Japanese იაპონური @msg No bridge of this width fits across the selected art ამ სიგანის ხიდი მონიშნულ ნახატზე არ ეტევა @msg Some islands could not be joined to the area around the art ზოგიერთი კუნძული ვერ დაუკავშირდა ნახატის გარშემო არეს @msg `width` must be from {lo} to {hi} pt `width` უნდა იყოს {lo}-დან {hi} pt-მდე +@msg `angle` must be from -180 to 180 degrees `angle` უნდა იყოს -180-დან 180 გრადუსამდე +@msg `roundness` must be from 0 to 100% `roundness` უნდა იყოს 0-დან 100%-მდე +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` უნდა იყოს 0.01-დან 100 pt-მდე +@msg style must be "pencil" or "brush" style უნდა იყოს "pencil" ან "brush" +@msg extend end must be "start" or "end" extend-ის ბოლო უნდა იყოს "start" ან "end" +@msg connect end must be "start" or "end" connect-ის ბოლო უნდა იყოს "start" ან "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` უნდა იყოს მთელი რიცხვი 1-დან {MAX_BRIDGES_PER_ISLAND}-მდე Weed Box and Lines… ნარჩენის მოსაცილებელი ჩარჩო და ხაზები… Weed Box and Lines ნარჩენის მოსაცილებელი ჩარჩო და ხაზები diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index d0e5750000..59e2f4cda0 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -7067,6 +7067,12 @@ breakText Glyphs 글리프 @msg No bridge of this width fits across the selected art 이 너비의 브리지가 선택한 아트워크에 들어가지 않습니다 @msg Some islands could not be joined to the area around the art 일부 섬을 아트워크 주변 영역에 연결할 수 없습니다 @msg `width` must be from {lo} to {hi} pt `width`는 {lo}에서 {hi}pt 사이여야 합니다 +@msg `angle` must be from -180 to 180 degrees `angle`는 -180도에서 180도 사이여야 합니다 +@msg `roundness` must be from 0 to 100% `roundness`는 0%에서 100% 사이여야 합니다 +@msg `fidelity` must be from 0.01 to 100 pt `fidelity`는 0.01에서 100pt 사이여야 합니다 +@msg style must be "pencil" or "brush" style은 "pencil" 또는 "brush"여야 합니다 +@msg extend end must be "start" or "end" extend 끝은 "start" 또는 "end"여야 합니다 +@msg connect end must be "start" or "end" connect 끝은 "start" 또는 "end"여야 합니다 @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count`는 1에서 {MAX_BRIDGES_PER_ISLAND} 사이의 정수여야 합니다 Weed Box and Lines… 위딩 상자 및 선… Weed Box and Lines 위딩 상자 및 선 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 0d4ceaf795..a414c66bae 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -526,6 +526,12 @@ @msg No bridge of this width fits across the selected art Geen brug van deze breedte past over de geselecteerde illustratie @msg Some islands could not be joined to the area around the art Sommige eilanden konden niet worden verbonden met het gebied rond de illustratie @msg `width` must be from {lo} to {hi} pt `width` moet van {lo} tot {hi} pt zijn +@msg `angle` must be from -180 to 180 degrees `angle` moet van -180 tot 180 graden zijn +@msg `roundness` must be from 0 to 100% `roundness` moet van 0 tot 100% zijn +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` moet van 0.01 tot 100 pt zijn +@msg style must be "pencil" or "brush" style moet "pencil" of "brush" zijn +@msg extend end must be "start" or "end" het einde van extend moet "start" of "end" zijn +@msg connect end must be "start" or "end" het einde van connect moet "start" of "end" zijn @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` moet een geheel getal van 1 tot {MAX_BRIDGES_PER_ISLAND} zijn File Bestand diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 7911a22071..61ef1e88e0 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -7333,6 +7333,12 @@ breakText Glyphs Glify @msg No bridge of this width fits across the selected art Żaden mostek o tej szerokości nie mieści się w zaznaczonej grafice @msg Some islands could not be joined to the area around the art Niektórych wysp nie udało się połączyć z obszarem wokół grafiki @msg `width` must be from {lo} to {hi} pt `width` musi mieścić się w zakresie od {lo} do {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` musi mieścić się w zakresie od -180 do 180 stopni +@msg `roundness` must be from 0 to 100% `roundness` musi mieścić się w zakresie od 0 do 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` musi mieścić się w zakresie od 0.01 do 100 pt +@msg style must be "pencil" or "brush" style musi mieć wartość "pencil" lub "brush" +@msg extend end must be "start" or "end" koniec extend musi mieć wartość "start" lub "end" +@msg connect end must be "start" or "end" koniec connect musi mieć wartość "start" lub "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` musi być liczbą całkowitą od 1 do {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Ramka i linie do wybierania… Weed Box and Lines Ramka i linie do wybierania diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index c2349359ed..63ea51a16e 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -7549,6 +7549,12 @@ swatch Yellow Green Verde-amarelado @msg No bridge of this width fits across the selected art Nenhuma ponte desta largura cabe na arte selecionada @msg Some islands could not be joined to the area around the art Algumas ilhas não puderam ser unidas à área ao redor da arte @msg `width` must be from {lo} to {hi} pt `width` deve estar entre {lo} e {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` deve estar entre -180 e 180 graus +@msg `roundness` must be from 0 to 100% `roundness` deve estar entre 0 e 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` deve estar entre 0.01 e 100 pt +@msg style must be "pencil" or "brush" style deve ser "pencil" ou "brush" +@msg extend end must be "start" or "end" a extremidade de extend deve ser "start" ou "end" +@msg connect end must be "start" or "end" a extremidade de connect deve ser "start" ou "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` deve ser um número inteiro de 1 a {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Caixa e Linhas de Descasque… Weed Box and Lines Caixa e Linhas de Descasque diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index f878461da5..7ae5d6619f 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -7565,6 +7565,12 @@ shape Open Открытый @msg No bridge of this width fits across the selected art Мостик такой ширины не помещается поперёк выделенной графики @msg Some islands could not be joined to the area around the art Некоторые островки не удалось соединить с областью вокруг графики @msg `width` must be from {lo} to {hi} pt `width` должно быть от {lo} до {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` должно быть от -180 до 180 градусов +@msg `roundness` must be from 0 to 100% `roundness` должно быть от 0 до 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` должно быть от 0.01 до 100 pt +@msg style must be "pencil" or "brush" style должен быть "pencil" или "brush" +@msg extend end must be "start" or "end" конец extend должен быть "start" или "end" +@msg connect end must be "start" or "end" конец connect должен быть "start" или "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` должно быть целым числом от 1 до {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Рамка и линии выборки… Weed Box and Lines Рамка и линии выборки diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 70efcf795f..b4cbebf383 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -7766,7 +7766,6 @@ digits Hindi Hindi @msg anchor `{key}` must be [x, y] ankarpunktens `{key}` måste vara [x, y] @msg anchor `{key}` must be a number ankarpunktens `{key}` måste vara ett tal @msg anchor `smooth` must be true or false ankarpunktens `smooth` måste vara true eller false -@msg angle and roundness must be finite vinkel och rundhet måste vara ändliga @msg angles must be a list as long as pins (degrees or null) angles måste vara en lista lika lång som pins (grader eller null) @msg appearance must be flat|center|edge appearance måste vara flat|center|edge @msg apply is "fill" or "stroke", not `{other}` apply är "fill" eller "stroke", inte `{other}` @@ -8915,6 +8914,11 @@ digits Hindi Hindi @msg No bridge of this width fits across the selected art Ingen brygga med den här bredden får plats över den markerade teckningen @msg Some islands could not be joined to the area around the art Vissa öar kunde inte förbindas med området runt teckningen @msg `width` must be from {lo} to {hi} pt `width` måste vara från {lo} till {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` måste vara från -180 till 180 grader +@msg `roundness` must be from 0 to 100% `roundness` måste vara från 0 till 100 % +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` måste vara från 0.01 till 100 pt +@msg style must be "pencil" or "brush" style måste vara "pencil" eller "brush" +@msg extend end must be "start" or "end" extend end måste vara "start" eller "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` måste vara ett heltal från 1 till {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Rensningsram och rensningslinjer… Weed Box and Lines Rensningsram och rensningslinjer diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 6c9deb97d0..634c7fa84e 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -2335,6 +2335,63 @@ fn three_d_refusals_translate_with_their_values() { assert_eq!(message(de(), &errors[1].0), "ungültige Parameter für `effect.apply`: Licht: intensity muss eine Zahl von 0 bis 100 sein"); } +/// The Blob Brush's range refusals (`path.blob` `angle`, `roundness` and `fidelity`) show in every +/// complete-message language with the key and the range numbers as given; the error the command +/// returns stays English. +#[test] +fn blob_brush_range_refusals_translate_with_their_values() { + use serde_json::json; + let mut s = vectorcraft_engine::Session::new(); + s.execute("file.new", &json!({"width": 100, "height": 100})).unwrap(); + let refusals = [ + (json!({"angle": 200}), "`angle`", ["-180", "180"]), + (json!({"roundness": 101}), "`roundness`", ["0", "100"]), + (json!({"fidelity": 0}), "`fidelity`", ["0.01", "100"]), + ]; + for (extra, key, numbers) in &refusals { + let mut p = json!({"points": [[10, 10], [60, 10]]}); + p.as_object_mut().unwrap().extend(extra.as_object().unwrap().clone()); + let e = s.execute("path.blob", &p).unwrap_err().to_string(); + assert!(e.starts_with("invalid parameters for `path.blob`: ") && e.contains(key) && e.contains(" must be from "), "{e}"); + assert_eq!(message(Lang::EN, &e), e); + for code in COMPLETE_MESSAGES { + let shown = message(Lang::from_code(code).expect("registered"), &e); + assert!(!shown.contains(" must be from ") && shown.contains("`path.blob`") && shown.contains(key), "{code}: {e} -> {shown}"); + assert!(numbers.iter().all(|n| shown.contains(n)), "{code}: {e} -> {shown}"); + } + } + assert_eq!( + message(de(), &s.execute("path.blob", &json!({"points": [[10, 10], [60, 10]], "angle": -181})).unwrap_err().to_string()), + "ungültige Parameter für `path.blob`: `angle` muss zwischen -180 und 180 Grad liegen" + ); +} + +/// `path.freehand`'s refusals of an unknown `style`, `extend` end or `connect` end show in every +/// complete-message language with the key and the accepted values as given. +#[test] +fn freehand_choice_refusals_translate_with_their_values() { + use serde_json::json; + let mut s = vectorcraft_engine::Session::new(); + s.execute("file.new", &json!({"width": 100, "height": 100})).unwrap(); + let a = s.execute("path.create", &json!({"d": "M10 10 L20 10"})).unwrap()["id"].clone(); + let b = s.execute("path.create", &json!({"d": "M10 50 L20 50"})).unwrap()["id"].clone(); + let points = json!([[20, 10], [30, 30], [20, 50]]); + let refusals = [ + (json!({"points": points, "style": "ink"}), ["style", "\"pencil\"", "\"brush\""]), + (json!({"points": points, "extend": {"id": a, "end": "middle"}}), ["extend", "\"start\"", "\"end\""]), + (json!({"points": points, "extend": {"id": a}, "connect": {"id": b, "end": "middle"}}), ["connect", "\"start\"", "\"end\""]), + ]; + for (p, words) in &refusals { + let e = s.execute("path.freehand", p).unwrap_err().to_string(); + assert!(e.starts_with("invalid parameters for `path.freehand`: ") && e.contains(" must be "), "{e}"); + for code in COMPLETE_MESSAGES { + let shown = message(Lang::from_code(code).expect("registered"), &e); + assert!(!shown.contains(" must be ") && shown.contains("`path.freehand`"), "{code}: {e} -> {shown}"); + assert!(words.iter().all(|w| shown.contains(w)), "{code}: {e} -> {shown}"); + } + } +} + /// A value a message quotes is a name and is shown as written, even when a catalog row translates /// the same text: a symbol called Rotate stays Rotate while the effect's name is translated. #[test] diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index ff88601736..20d27c1c3a 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -7432,6 +7432,12 @@ breakText Glyphs Glifler @msg No bridge of this width fits across the selected art Bu genişlikte bir köprü seçili çizime sığmıyor @msg Some islands could not be joined to the area around the art Bazı adalar çizimin çevresindeki alana bağlanamadı @msg `width` must be from {lo} to {hi} pt `width` {lo} ile {hi} pt arasında olmalıdır +@msg `angle` must be from -180 to 180 degrees `angle` -180 ile 180 derece arasında olmalıdır +@msg `roundness` must be from 0 to 100% `roundness` %0 ile %100 arasında olmalıdır +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` 0.01 ile 100 pt arasında olmalıdır +@msg style must be "pencil" or "brush" style "pencil" veya "brush" olmalıdır +@msg extend end must be "start" or "end" extend ucu "start" veya "end" olmalıdır +@msg connect end must be "start" or "end" connect ucu "start" veya "end" olmalıdır @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` 1 ile {MAX_BRIDGES_PER_ISLAND} arasında bir tam sayı olmalıdır Weed Box and Lines… Ayıklama Kutusu ve Çizgileri… Weed Box and Lines Ayıklama Kutusu ve Çizgileri diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index a7b3ea2c2e..aa6e956bdb 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -7086,6 +7086,12 @@ breakText Glyphs Гліфи @msg No bridge of this width fits across the selected art Місток такої ширини не вміщується впоперек виділеної графіки @msg Some islands could not be joined to the area around the art Деякі острівці не вдалося з’єднати з областю навколо графіки @msg `width` must be from {lo} to {hi} pt `width` має бути від {lo} до {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` має бути від -180 до 180 градусів +@msg `roundness` must be from 0 to 100% `roundness` має бути від 0 до 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` має бути від 0.01 до 100 pt +@msg style must be "pencil" or "brush" style має бути "pencil" або "brush" +@msg extend end must be "start" or "end" кінець extend має бути "start" або "end" +@msg connect end must be "start" or "end" кінець connect має бути "start" або "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` має бути цілим числом від 1 до {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Рамка й лінії вибірки… Weed Box and Lines Рамка й лінії вибірки diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 518d89e4b6..f7962427f5 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -7087,6 +7087,12 @@ breakText Glyphs Glyph @msg No bridge of this width fits across the selected art Không có cầu nối nào rộng như vậy vừa với hình vẽ đã chọn @msg Some islands could not be joined to the area around the art Không thể nối một số đảo với vùng xung quanh hình vẽ @msg `width` must be from {lo} to {hi} pt `width` phải từ {lo} đến {hi} pt +@msg `angle` must be from -180 to 180 degrees `angle` phải từ -180 đến 180 độ +@msg `roundness` must be from 0 to 100% `roundness` phải từ 0 đến 100% +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` phải từ 0.01 đến 100 pt +@msg style must be "pencil" or "brush" style phải là "pencil" hoặc "brush" +@msg extend end must be "start" or "end" đầu extend phải là "start" hoặc "end" +@msg connect end must be "start" or "end" đầu connect phải là "start" hoặc "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` phải là số nguyên từ 1 đến {MAX_BRIDGES_PER_ISLAND} Weed Box and Lines… Khung và đường bóc phần thừa… Weed Box and Lines Khung và đường bóc phần thừa diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 26fb9e0c1b..45f2ffaede 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -7315,6 +7315,12 @@ breakText Glyphs 字形 @msg No bridge of this width fits across the selected art 此宽度的连接桥无法放入所选图稿 @msg Some islands could not be joined to the area around the art 部分孤岛无法连接到图稿周围的区域 @msg `width` must be from {lo} to {hi} pt `width` 必须介于 {lo} 到 {hi} pt 之间 +@msg `angle` must be from -180 to 180 degrees `angle` 必须介于 -180 到 180 度之间 +@msg `roundness` must be from 0 to 100% `roundness` 必须介于 0 到 100% 之间 +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` 必须介于 0.01 到 100 pt 之间 +@msg style must be "pencil" or "brush" style 必须为 "pencil" 或 "brush" +@msg extend end must be "start" or "end" extend 的端点必须为 "start" 或 "end" +@msg connect end must be "start" or "end" connect 的端点必须为 "start" 或 "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` 必须是 1 到 {MAX_BRIDGES_PER_ISLAND} 之间的整数 Weed Box and Lines… 除废框和除废线… Weed Box and Lines 除废框和除废线 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 5685430cc8..2639252539 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -7122,6 +7122,12 @@ breakText Glyphs 字符 @msg No bridge of this width fits across the selected art 此寬度的連接橋無法放入所選圖稿 @msg Some islands could not be joined to the area around the art 部分孤島無法連接到圖稿周圍的區域 @msg `width` must be from {lo} to {hi} pt `width` 必須介於 {lo} 到 {hi} pt 之間 +@msg `angle` must be from -180 to 180 degrees `angle` 必須介於 -180 到 180 度之間 +@msg `roundness` must be from 0 to 100% `roundness` 必須介於 0 到 100% 之間 +@msg `fidelity` must be from 0.01 to 100 pt `fidelity` 必須介於 0.01 到 100 pt 之間 +@msg style must be "pencil" or "brush" style 必須為 "pencil" 或 "brush" +@msg extend end must be "start" or "end" extend 的端點必須為 "start" 或 "end" +@msg connect end must be "start" or "end" connect 的端點必須為 "start" 或 "end" @msg `count` must be a whole number from 1 to {MAX_BRIDGES_PER_ISLAND} `count` 必須是介於 1 到 {MAX_BRIDGES_PER_ISLAND} 的整數 Weed Box and Lines… 除廢框與除廢線… Weed Box and Lines 除廢框與除廢線 diff --git a/docs/mcp.md b/docs/mcp.md index 912ac32562..cc6524bf53 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -3111,7 +3111,10 @@ already walks Image Trace. Short agent entry points: divided by the zoom (0.0313 to 640) and kept within that range, so a stroke is fitted at the same tolerance on screen at every zoom. A stroke that continues a path (`extend`) closes it when it ends within four times the Fidelity of the path's other end, at - least 6 pt and at most 400 pt. The Blob Brush's `path.blob` Fidelity stays in points, 0.01 to 100 pt. + least 6 pt and at most 400 pt. The Blob Brush's `path.blob` Fidelity stays in points, 0.01 to 100 pt, and is + not used when left out or null. `path.blob` rejects a `fidelity` outside 0.01 to 100 pt, an `angle` outside -180° to + 180° and a `roundness` outside 0% to 100% with an error such as `` `angle` must be from -180 to 180 degrees ``; the + document does not change and no undo step is recorded. These ranges are VectorCraft's own values. - Variables: `variable.list`, `variable.define {name, kind: text|visibility|image|graph}`, `variable.bind {variable, ids?}`, `variable.makeTextDynamic`, `variable.makeVisibilityDynamic`, `variable.makeImageDynamic`, `variable.makeGraphDynamic` (`variable.bind` and `variable.makeTextDynamic` refuse type that already has another text variable and name it), @@ -5167,6 +5170,11 @@ These commands refuse a string, a number or another value that is not true or fa in `path.curvatureEdit`; `perpendicular` in `path.reshapeSegment`; and `keepSelected`, `mergeOnlySelection` and `merge` in `path.blob`. A null is read as a key left out. +`path.freehand` (and `brush.freehand`, which runs it) refuses a `style` other than "pencil" or "brush" with +`style must be "pencil" or "brush"`, and an `end` of `extend` other than "start" or "end" with +`extend end must be "start" or "end"`; the document does not change and no undo step is recorded. Left out or null, +`style` is "pencil" and the `end` of `extend` is "end". + A `pointer_gesture` with `mods: {cmd: true}` held at the press, with any tool but the selection tools (Command on macOS, Ctrl elsewhere), drags with the selection tool chosen last (`select_tool`), or Direct Selection with the Pen, Curvature and anchor tools until one is chosen; the release gives the tool back as it was, so the Pen goes on drawing diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 26681e5b7f..ece6f7356b 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1148,6 +1148,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur The Blob Brush Tool Options also have Angle and Roundness, as the reference app's [Blob Brush options](https://web.archive.org/web/20261012042029/https://helpx.adobe.com/illustrator/desktop/paint-and-fill/learn-painting-basics/blob-brush-options-and-best-practices.html) list them: Angle from −180° to 180° (0° by default) and Roundness from 0% to 100% (100%, a round tip, by default). The elliptical tip keeps its angle on the page along a stroke, a 0% tip is drawn 0.1% as wide as it is long, and the dialog shows the tip and three dabs of it. The values are kept with the tool's options (`path.blob` `angle` and `roundness`). Not done: the Random and pen-driven variations of Angle and Roundness. The Blob Brush Tool Options' tip preview is the Angle slider for screen readers, with the Angle in degrees as its value: a click or a drag in it points the Angle at the pointer and gives it the keyboard focus, Tab reaches it after the Roundness field, and the arrow keys step the Angle by 1° (10° with Shift, Home and End to −180° and 180°). The Blob Brush Tool Options also have Fidelity, which the reference app's [Blob Brush options](https://web.archive.org/web/20261012042029/https://helpx.adobe.com/illustrator/desktop/paint-and-fill/learn-painting-basics/blob-brush-options-and-best-practices.html) list as setting how far the pointer moves before the path gets a new anchor point. The range and default are VectorCraft's own values: the Pencil's logarithmic slider from Accurate (0.01 pt) to Smooth (20 pt) and its field (up to 100 pt), 1.5 pt by default and kept with the tool's options. The brush follows the stroke fitted at the Fidelity, as a Pencil stroke is fitted: a low value follows the drag closely, jitter included, and a higher one gives smoother curves (`path.blob` `fidelity`). + `path.blob` rejects an Angle outside −180° to 180°, a Roundness outside 0% to 100% and a Fidelity outside 0.01 to 100 pt with an error and leaves the document unchanged; a key left out or null takes its default (0°, 100% and no fitting). A Blob Brush stroke merges with the topmost path of its fill color and no stroke that it touches, and with the other such paths it touches in the same group or layer that are next to that path in stacking order with no other kind of object between them; matching paths in other groups or layers are left alone, as the Blob Brush tool guidelines in [Paint with fills and strokes](https://web.archive.org/web/20241219085603/https://helpx.adobe.com/illustrator/using/painting-fills-strokes.html) describe (`path.blob`). - **Ruler guides as layer objects:** a guide goes on the current layer, shows, hides, locks and is deleted with it, is listed in the Layers panel (its row selects it) and moves to another layer (`guide.setLayer`, or its row dragged onto that layer's rows); guides on a hidden or locked layer can't be selected, moved or deleted, Duplicate copies a layer's guides and Merge Selected and Flatten Artwork keep them on the merged layer; guides from files saved before guides had layers go on the top visible, unlocked layer when the document opens. A guide's row has its own eye and lock, which hide or lock that guide alone in one undo step and take part in a drag down either column ([help page](https://helpx.adobe.com/in_hi/tutorial-builder/user-guide/illustrator-tutorial-builder/-ai--examples-of-common-coach-marks.html) lists a Guide among the Layers panel's items); a hidden guide is not drawn and does not snap, a locked one is drawn and snaps but can't be selected, moved or deleted, and its own state is kept through save and reopen and while its layer is hidden or locked (`layer.setProps` on its `guide.list` id). Object › Lock › Selection and Object › Hide › Selection lock or hide a selected guide with the selected art, and Unlock All and Show All unlock or show such guides and select them ([help page](https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf) for Lock and Hide Selection). A guide row dropped on the panel's trash deletes its guide, the trash deletes a guide its row selected, and after a click on a guide row Delete deletes the guide rather than the rows highlighted before ([help page](https://helpx.adobe.com/illustrator/desktop/measure-and-align/grids-and-guides/align-graphic-objects-with-guides.html) for deleting a selected guide). Not done: guides stacked among the art of their layer (they are listed above it). Lock Guides also locks the objects made into guides: they can't be selected, moved or deleted (#1543); they are drawn in the guide colour and style of Preferences, and a dragged selection snaps to ruler guides with Smart Guides on (#1583, fixes #1534). Preferences › Guides & Grid › Lock Guides by Default locks guides when the app starts; it is off by default, and new guides can still be dragged out of a ruler while guides are locked. The Transform panel shows a selected ruler guide's X or Y, and typing a value moves it (#1659, part of #1597). This is not established by the documentation we could find: the public help pages on guides, rulers and the Transform, Control and Properties panels (read again on 2026-10-14) describe selecting and dragging unlocked guides and the panels' X and Y for a selection, not a guide's position in a panel, and the one public statement of it is a user's [community answer](https://community.adobe.com/questions-652/adding-a-new-custom-guide-785586), which is not documentation. It is kept as a convenience pending the owner's decision, with no parity claim and nothing counted towards a score. - **Releasing ruler guides:** View › Guides › Release Guides turns the selected ruler guides into paths with no fill or stroke. An artboard guide becomes a line across its artboard, and a canvas guide becomes a line across the artboards (`view.guides.release {index?, ids?}`). A Cmd/Ctrl+Shift double-click with the Selection, Direct Selection or Group Selection tool releases the ruler guide or guide path under the pointer. From 7402ca4fd8cdcab03027dbb308262cd9879a54cc Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 13 Nov 2026 17:09:49 -0800 Subject: [PATCH 004/273] .ai editing data: Scatter and Art brushes keep their art's opacity masks A Scatter or Art brush whose art holds an opacity mask was left out of the Brushes panel in the editing data with the brushes warning. The writer now writes such a brush when each mask's art passes the same check as the brush's art, in the form define_brush_art in crates/eps/src/import/ai/read/directives.rs reads: the mask's art between X= and X+ in the object's art dictionary, with its Clip, Invert Mask, disabled and linked options. Masks may sit up to seven deep in one another's art. Masks on a compound path's members, gradient masks and mask art past the reader's limits still leave the brush out with the warning. - The reader turns an Art brush's art over with the art of masks that don't move with their objects, so such a mask stays over the part of the object it was over. - A brush's mask art is written as the brush holds it, not as an object of the layers' mask art that has the same id and keeps an art style. --- crates/eps/src/ai_editing/tests.rs | 169 +++++++++++++++++++- crates/eps/src/ai_editing/writer/brushes.rs | 46 +++++- crates/eps/src/import.rs | 2 +- crates/eps/src/import/ai.rs | 4 +- crates/eps/src/import/ai/brush.rs | 27 +++- crates/eps/src/import/ai/tests.rs | 24 +++ docs/file-format-parity.md | 4 +- docs/target-app-parity.md | 1 + 8 files changed, 263 insertions(+), 14 deletions(-) diff --git a/crates/eps/src/ai_editing/tests.rs b/crates/eps/src/ai_editing/tests.rs index 3af515181c..1d006dbadc 100644 --- a/crates/eps/src/ai_editing/tests.rs +++ b/crates/eps/src/ai_editing/tests.rs @@ -8085,7 +8085,8 @@ fn brushes_document() -> Document { } /// Brush art `n` as a tree to compare with [`same_tree`]: each object's kind, its anchors and handles, -/// the fills and strokes that paint (a stroke with its width), and its members in order. +/// the fills and strokes that paint (a stroke with its width), its members in order, and its opacity +/// mask's art and options when it has one. fn art_tree(n: &Node) -> serde_json::Value { let kind = match &n.kind { NodeKind::Path { .. } => "path", @@ -8110,7 +8111,11 @@ fn art_tree(n: &Node) -> serde_json::Value { }) .collect(); let members: Vec = n.children().map(|c| c.iter().map(|m| art_tree(m)).collect()).unwrap_or_default(); - serde_json::json!({"kind": kind, "anchors": anchors, "paints": paints, "members": members}) + let mut tree = serde_json::json!({"kind": kind, "anchors": anchors, "paints": paints, "members": members}); + if let Some(m) = &n.extras().mask { + tree["mask"] = serde_json::json!({"art": art_tree(&m.art), "options": [m.clip, m.invert, m.disabled, m.linked]}); + } + tree } /// Are trees `a` and `b` ([`art_tree`]) the same but for numbers within the written numbers' @@ -8253,6 +8258,166 @@ fn an_art_brush_whose_art_doesnt_bend_keeps_its_paths_look() { assert!(same_tree(&art_tree(&got.art), &art_tree(&want.art)), "{:#?}", got.art); } +/// An opacity mask whose art is rectangle `r` filled in `paint`, with the options given. +fn rect_mask(id: u64, r: Rect, paint: Paint, clip: bool, invert: bool, linked: bool) -> OpacityMask { + let art = Node::path(vectorcraft_doc::NodeId(id), shapes::rectangle(r), Appearance::basic(paint, Paint::None, 0.0)); + OpacityMask { art: Arc::new(art), clip, invert, disabled: false, linked } +} + +/// `levels` white rectangle masks that clip, each but the last holding the next in its art. +fn mask_chain(levels: u32) -> Option> { + (0..levels).fold(None, |inner, i| { + let mut m = rect_mask(100 + u64::from(i), Rect::new(0.0, 0.0, 30.0 - f64::from(i), 8.0), solid(Color::WHITE), true, false, true); + Arc::make_mut(&mut m.art).extras_mut().mask = inner; + Some(Box::new(m)) + }) +} + +/// [`brush_art_node`] with opacity masks: on the group, a mid-gray rectangle that clips; on the wide +/// block, a white rectangle inverted without clipping. Both masks are `linked` or not. +fn masked_brush_art(linked: bool) -> Node { + let mut art = brush_art_node(); + if let Some(c) = art.children_mut() { + let wide = rect_mask(10, Rect::new(0.0, 0.0, 20.0, 4.0), solid(Color::WHITE), false, true, linked); + Arc::make_mut(&mut c[0]).extras_mut().mask = Some(Box::new(wide)); + } + art.extras_mut().mask = Some(Box::new(rect_mask(11, Rect::new(0.0, 0.0, 30.0, 8.0), solid(Color::rgb(0.5, 0.5, 0.5)), true, false, linked))); + art +} + +/// Scatter and Art brushes whose art holds opacity masks come back in the Brushes panel with their +/// settings, the masks' art in place with its paint, and the masks' options: masks on the art and on +/// a member, masks that don't move with their objects, and masks seven deep in one another's art. A +/// path with the masked Art brush comes back as its drawn look, with the stroke warning. +#[test] +fn scatter_and_art_brush_mask_art_round_trips() { + use vectorcraft_brush::{ArtBrush, Brush, BrushKind, Scatter}; + let mut deep = brush_art_node(); + deep.extras_mut().mask = mask_chain(7); + let lib = vec![ + Brush { name: "Masked spray".into(), kind: BrushKind::Scatter(Scatter { art: masked_brush_art(true), ..Scatter::default() }) }, + Brush { name: "Masked ribbon".into(), kind: BrushKind::Art(ArtBrush { art: masked_brush_art(true), ..ArtBrush::default() }) }, + Brush { name: "Unlinked spray".into(), kind: BrushKind::Scatter(Scatter { art: masked_brush_art(false), ..Scatter::default() }) }, + Brush { name: "Unlinked ribbon".into(), kind: BrushKind::Art(ArtBrush { art: masked_brush_art(false), ..ArtBrush::default() }) }, + Brush { name: "Deep spray".into(), kind: BrushKind::Scatter(Scatter { art: deep.clone(), ..Scatter::default() }) }, + Brush { name: "Deep ribbon".into(), kind: BrushKind::Art(ArtBrush { art: deep, ..ArtBrush::default() }) }, + ]; + let mut doc = Document::new(300.0, 200.0); + vectorcraft_brush::store(&mut doc, &lib); + brushed(&mut doc, "Masked ribbon", (20.0, 120.0), (280.0, 150.0), 1.0); + let out = export_ai_editing(&doc, &opts()).unwrap(); + assert!(!out.warnings.iter().any(|w| w == writer::BRUSHES || w == writer::DEEP_MASKS), "{:?}", out.warnings); + assert!(out.warnings.iter().any(|w| w == writer::STROKES), "{:?}", out.warnings); + assert_eq!(program(&doc).matches("%AI8_BeginBrushPattern").count(), lib.len()); + let back = read_back(&doc); + assert!(matches!(back.layers[0].children().unwrap()[0].kind, NodeKind::Group { .. }), "the path's drawn look"); + let got = vectorcraft_brush::library(&back); + assert_eq!(got.iter().map(|b| b.name.as_str()).collect::>(), lib.iter().map(|b| b.name.as_str()).collect::>()); + let none = || Node::group(vectorcraft_doc::NodeId(0), vec![]); + for (g, w) in got.iter().zip(&lib) { + let name = &w.name; + let (ga, wa) = match (&g.kind, &w.kind) { + (BrushKind::Scatter(gs), BrushKind::Scatter(ws)) => { + let settings = |s: &Scatter| Scatter { art: none(), modes: Some(s.modes()), ..s.clone() }; + assert_eq!(settings(gs), settings(ws), "{name}"); + (&gs.art, &ws.art) + } + (BrushKind::Art(ga), BrushKind::Art(wa)) => { + assert_eq!(ArtBrushOptions::of(ga), ArtBrushOptions::of(wa), "{name}"); + (&ga.art, &wa.art) + } + _ => panic!("{name}: {g:?}"), + }; + let (gt, wt) = (art_tree(ga), art_tree(wa)); + assert!(same_tree(>, &wt), "{name}: {gt:#} for {wt:#}"); + } +} + +/// Brushes whose mask art the reader wouldn't read back as it is are left out with a warning, beside +/// a brush that comes back: a Scatter brush whose art's mask is a gradient, one whose art holds +/// masks eight deep in one another's art (deeper than the editing data writes masks), one whose +/// mask's art is a compound path of 26,500 members of two squares each, which the reader reads as +/// 53,000 paths, more art than it copies into one file's brushes, and one whose art is a compound +/// path with a mask on a member (a compound path is written as one path, without its members' masks). +#[test] +fn brushes_whose_mask_art_isnt_read_back_are_left_out() { + use vectorcraft_brush::{Brush, BrushKind, Scatter}; + let keep = Brush { name: "Masked spray".into(), kind: BrushKind::Scatter(Scatter { art: masked_brush_art(true), ..Scatter::default() }) }; + let mut gradient = brush_art_node(); + let ramp = gradient_paint(sunset(), None, None); + gradient.extras_mut().mask = Some(Box::new(rect_mask(11, Rect::new(0.0, 0.0, 30.0, 8.0), ramp, true, false, true))); + let mut deep = brush_art_node(); + deep.extras_mut().mask = mask_chain(8); + let square = |i: u32| { + let (x, y) = (f64::from(i % 400) * 2.0, f64::from(i / 400) * 2.0); + shapes::rectangle(Rect::new(x, y, x + 1.0, y + 1.0)).subpaths + }; + let members = (0..26_500) + .map(|m| { + let path = PathData::new((0..2).flat_map(|k| square(m * 2 + k)).collect()); + Arc::new(Node::path(vectorcraft_doc::NodeId(21), path, Appearance::basic(solid(Color::WHITE), Paint::None, 0.0))) + }) + .collect(); + let mut squares = Node::path(vectorcraft_doc::NodeId(20), PathData::default(), Appearance::basic(solid(Color::WHITE), Paint::None, 0.0)); + squares.kind = NodeKind::Compound { children: members, rule: FillRule::NonZero }; + let mut heavy = brush_art_node(); + heavy.extras_mut().mask = Some(Box::new(OpacityMask { art: Arc::new(squares), clip: true, invert: false, disabled: false, linked: true })); + let mut member = brush_art_node(); + member.kind = match member.kind { + NodeKind::Group { mut children, .. } => { + let mask = rect_mask(10, Rect::new(0.0, 0.0, 20.0, 4.0), solid(Color::WHITE), true, false, true); + Arc::make_mut(&mut children[0]).extras_mut().mask = Some(Box::new(mask)); + NodeKind::Compound { children, rule: FillRule::NonZero } + } + kind => kind, + }; + member.appearance = Appearance::basic(black_fill(), Paint::None, 0.0).into(); + let cases = [ + ("gradient mask", gradient), + ("masks eight deep", deep), + ("mask art past the reader's limit", heavy), + ("mask on a compound path's member", member), + ]; + for (why, art) in cases { + let mut doc = Document::new(300.0, 200.0); + let lib = vec![keep.clone(), Brush { name: why.into(), kind: BrushKind::Scatter(Scatter { art, ..Scatter::default() }) }]; + vectorcraft_brush::store(&mut doc, &lib); + let out = export_ai_editing(&doc, &opts()).unwrap(); + assert!(out.warnings.iter().any(|w| w == writer::BRUSHES), "{why}: {:?}", out.warnings); + assert!(!out.warnings.iter().any(|w| w == writer::DEEP_MASKS), "{why}: {:?}", out.warnings); + let names: Vec = vectorcraft_brush::library(&read_back(&doc)).into_iter().map(|b| b.name).collect(); + assert_eq!(names, ["Masked spray"], "{why}"); + assert_eq!(program(&doc).matches("%AI8_BeginBrushPattern").count(), 1, "{why}"); + } +} + +/// A brush's mask art is written as the brush holds it when an object of the layers' mask art with +/// the same id keeps a live effect as an art style: the brush's mask comes back as its own plain +/// rectangle, without the layers' object's effect or geometry. +#[test] +fn a_brushs_mask_art_isnt_written_as_a_styled_object_with_its_id() { + use vectorcraft_brush::{Brush, BrushKind, Scatter}; + let offset = fx("path.offsetPath", serde_json::json!({"offset": 8.0, "joins": "miter", "miterLimit": 4.0})); + let mut id = None; + let mut doc = masked_image(|doc| { + let grown = styled_rect(doc, "Grown", Rect::new(60.0, 30.0, 110.0, 70.0), solid(Color::rgb(0.0, 0.0, 0.0)), Paint::None, vec![offset]); + id = Some(grown.id); + grown + }); + let id = id.expect("the mask's art"); + let mut art = brush_art_node(); + art.extras_mut().mask = Some(Box::new(rect_mask(id.0, Rect::new(0.0, 0.0, 30.0, 8.0), solid(Color::WHITE), true, false, true))); + let lib = vec![Brush { name: "Masked spray".into(), kind: BrushKind::Scatter(Scatter { art, ..Scatter::default() }) }]; + vectorcraft_brush::store(&mut doc, &lib); + let got = vectorcraft_brush::library(&read_back(&doc)); + let [Brush { kind: BrushKind::Scatter(s), .. }] = got.as_slice() else { panic!("{got:?}") }; + let BrushKind::Scatter(want) = &lib[0].kind else { panic!("a Scatter brush") }; + let m = s.art.extras().mask.as_deref().unwrap_or_else(|| panic!("the mask is read: {:#?}", s.art)); + assert!(m.art.appearance.effects.is_empty(), "{:?}", m.art.appearance.effects); + let (gt, wt) = (art_tree(&s.art), art_tree(&want.art)); + assert!(same_tree(>, &wt), "{gt:#} for {wt:#}"); +} + /// Settings the other tests don't use come back: a Calligraphic brush varying with tilt and bearing, /// a Scatter brush keeping its art's colors whose rotation doesn't follow the path, and brushes whose /// modes aren't given (the reader gives them, the same ones). diff --git a/crates/eps/src/ai_editing/writer/brushes.rs b/crates/eps/src/ai_editing/writer/brushes.rs index 2c281e702d..14836bdb5b 100644 --- a/crates/eps/src/ai_editing/writer/brushes.rs +++ b/crates/eps/src/ai_editing/writer/brushes.rs @@ -23,7 +23,7 @@ use super::{Writer, Xy}; use crate::ai_ops; use crate::ps; -pub(in crate::ai_editing) const BRUSHES: &str = "Pattern and Bristle brushes, Art brushes that don't stretch their art along the path from left to right at 100% unflipped without overlap, Scatter and Art brushes in Tints and Shades or Hue Shift, brushes whose art holds an empty path or group or more than paths, compound paths and groups with one solid fill and one plain stroke each, brushes whose names hold a slash or repeat an earlier brush's name, brushes that would open with other settings, brushes past the number or the amount of art one file's brushes can hold, and every brush on a large canvas are left out of the Brushes panel in the editing data for other apps"; +pub(in crate::ai_editing) const BRUSHES: &str = "Pattern and Bristle brushes, Art brushes that don't stretch their art along the path from left to right at 100% unflipped without overlap, Scatter and Art brushes in Tints and Shades or Hue Shift, brushes whose art or its opacity masks' art holds an empty path or group or more than paths, compound paths and groups with one solid fill and one plain stroke each, or opacity masks on a compound path's members or more than seven deep in one another's art, brushes whose names hold a slash or repeat an earlier brush's name, brushes that would open with other settings, brushes past the number or the amount of art one file's brushes can hold, and every brush on a large canvas are left out of the Brushes panel in the editing data for other apps"; /// Most brushes written (the reader's limit). const MAX_BRUSHES: usize = 4096; @@ -164,17 +164,38 @@ fn art_params(a: &ArtBrush, art: &str) -> Option { Some(format!("2 / {art}/ / / / / 0 0/ 5 0 0 0 / {}", nums6(&numbers))) } +/// Most opacity masks in one another's art in a brush's art: a brush's art section writes its art +/// one level inside, and masks at [`super::MAX_NEST`] levels are left out ([`super::DEEP_MASKS`]). +const MAX_MASK_NEST: u32 = super::MAX_NEST - 1; + /// Is `art` written as the reader reads it back, within a brush: paths and compound paths with /// points and groups with members (not clipping, without paint of their own), each opaque in the -/// normal blending mode, without effects or opacity masks, with at most one fill and one plain -/// stroke (no brush, width profile, arrowheads, alignment off the path or dashes fitted to corners) -/// over it, each in a color or none? A path without points isn't written ([`Writer::plain_object`]). +/// normal blending mode, without effects, with at most one fill and one plain stroke (no brush, +/// width profile, arrowheads, alignment off the path or dashes fitted to corners) over it, each in a +/// color or none, and opacity masks whose art is such art too, at most [`MAX_MASK_NEST`] deep and +/// none on a compound path's members? A path without points isn't written +/// ([`Writer::plain_object`]). fn plain_art(art: &Node) -> bool { + plain_within(art, MAX_MASK_NEST) +} + +/// Does no object of `art` have an opacity mask? +fn unmasked(art: &Node) -> bool { + let mut unmasked = true; + art.walk(&mut |n| unmasked &= n.extras().mask.is_none()); + unmasked +} + +/// [`plain_art`] with at most `masks` opacity masks in one another's art. +fn plain_within(art: &Node, masks: u32) -> bool { let mut plain = true; art.walk(&mut |n| { let kind = match &n.kind { NodeKind::Path { path, guide: false, clipping: false, .. } => path.subpaths.iter().any(|sp| !sp.anchors.is_empty()), - NodeKind::Compound { .. } => super::compound_path(n).subpaths.iter().any(|sp| !sp.anchors.is_empty()), + // A compound path is written as one path of its members' subpaths, without their masks. + NodeKind::Compound { children, .. } => { + children.iter().all(|c| unmasked(c)) && super::compound_path(n).subpaths.iter().any(|sp| !sp.anchors.is_empty()) + } NodeKind::Group { children, clip: false } => !children.is_empty(), _ => false, }; @@ -198,7 +219,7 @@ fn plain_art(art: &Node) -> bool { && order && quiet && n.appearance.effects.is_empty() - && n.extras().mask.is_none() + && n.extras().mask.as_deref().is_none_or(|m| masks > 0 && plain_within(&m.art, masks - 1)) && n.opacity >= 1.0 && n.blend == BlendMode::Normal; }); @@ -209,8 +230,13 @@ fn plain_art(art: &Node) -> bool { /// compound path with the subpaths of all its members as one path ([`super::compound_path`]), is /// written as one path when it has one subpath with points and as a compound path when it has more /// ([`Writer::plain_object`]); the reader reads that compound path as one path for each subpath, -/// each with the object's paint. +/// each with the object's paint. An opacity mask's art is written shown ([`Writer::mask`]). fn as_read(art: &mut Node) { + if let Some(m) = art.extras_if_any().and_then(|e| e.mask.as_mut()) { + let mask_art = Arc::make_mut(&mut m.art); + mask_art.visible = true; + as_read(mask_art); + } let (subpaths, rule) = match &art.kind { NodeKind::Path { path, rule, .. } => (path.subpaths.clone(), *rule), NodeKind::Compound { rule, .. } => (super::compound_path(art).subpaths, *rule), @@ -341,7 +367,7 @@ impl Writer<'_> { } let mut read = a.clone(); if *to_section == Affine::IDENTITY { - read.transform(Affine::FLIP_Y, false); + crate::import::turn_brush_art_over(&mut read); } as_read(&mut read); Some(read) @@ -378,6 +404,9 @@ impl Writer<'_> { // The art is the brush's own: not on `%_` lines, in a drawn look or in a symbol that // first uses the brush. (std::mem::take(&mut self.hidden), std::mem::take(&mut self.in_look), std::mem::take(&mut self.in_symbol)), + // The layers' objects written with art styles, by id: none of them is the brush's art, + // which may hold objects with the same ids. + std::mem::take(&mut self.styled), ); (self.to_art, self.grad_space, self.canvas, self.block_end) = (to_section, to_section, to_section, usize::MAX); self.state(false, false); @@ -413,6 +442,7 @@ impl Writer<'_> { self.clip, (self.block_start, self.block_end), (self.hidden, self.in_look, self.in_symbol), + self.styled, ) = saved; let text = std::mem::replace(&mut self.body, body); if !std::mem::replace(&mut self.warnings, warnings).is_empty() { diff --git a/crates/eps/src/import.rs b/crates/eps/src/import.rs index bdb3b9cf50..dbfdc15417 100644 --- a/crates/eps/src/import.rs +++ b/crates/eps/src/import.rs @@ -90,7 +90,7 @@ pub(crate) use ai::objects_read; pub(crate) use ai::{ BRUSH_MANAGER, BrushesRead, DEFORM_PLUGIN, EnvelopeGridPoint, MAX_CHECKED as ENVELOPE_CHECKS, MAX_EDITING_OBJECTS, MAX_GRADIENT_STOPS, MAX_LISTED, MAX_LISTED_NAME, MAX_SYMBOLS, brush_plugin_name, brushes_kept, envelope_outline, envelope_upright, read_art_style, read_brush_object, - read_style_list, style_moves_with, symbol_art_member, warp_number, + read_style_list, style_moves_with, symbol_art_member, turn_brush_art_over, warp_number, }; pub(crate) use ate::{MAX_BYTES as MAX_TEXT_DOCUMENT, MAX_FRAMES, MAX_SEGMENTS, MAX_STORY, MAX_VALUES as MAX_TEXT_VALUES, record_version}; pub use native::{AiLayers, ai_alone, ai_alone_on_page, ai_alone_with, ai_layers_alone, ai_opened_artboard, is_loss, layered_ai, layered_ai_from}; diff --git a/crates/eps/src/import/ai.rs b/crates/eps/src/import/ai.rs index 4595061151..2bf72588de 100644 --- a/crates/eps/src/import/ai.rs +++ b/crates/eps/src/import/ai.rs @@ -34,7 +34,9 @@ use std::io::Read as _; use super::lex::find; use crate::ps; -pub(crate) use brush::{BrushesRead, MANAGER_NAME as BRUSH_MANAGER, brushes_kept, plugin_name as brush_plugin_name, read_brush_object}; +pub(crate) use brush::{ + BrushesRead, MANAGER_NAME as BRUSH_MANAGER, brushes_kept, plugin_name as brush_plugin_name, read_brush_object, turn_over as turn_brush_art_over, +}; pub(crate) use envelope::DRAWN as ENVELOPE_DRAWN; pub(crate) use envelope::MAX_CHECKED; pub(crate) use envelope::TYPE_DRAWN as ENVELOPE_TYPE_DRAWN; diff --git a/crates/eps/src/import/ai/brush.rs b/crates/eps/src/import/ai/brush.rs index 5a5db47114..e768c154e7 100644 --- a/crates/eps/src/import/ai/brush.rs +++ b/crates/eps/src/import/ai/brush.rs @@ -50,6 +50,7 @@ //! at None so the art keeps its own colors. use std::collections::{HashMap, HashSet}; +use std::sync::Arc; use kurbo::Affine; use vectorcraft_brush::{ArtBrush, Bristle, Brush, BrushKind, Calligraphic, Colorization, Scatter, Variation}; @@ -377,6 +378,30 @@ pub(super) fn parse_tool_object(kind: Tool, name: &str, params: &str) -> Result< Ok(BrushDraft { name: name.to_string(), kind }) } +/// Turn `art` over (y for -y) with the art of all its opacity masks, those that don't move with +/// their objects too: the art changes the space it is in, and no object moves over its mask. +pub(crate) fn turn_over(art: &mut Node) { + art.transform(Affine::scale_non_uniform(1.0, -1.0), false); + turn_unlinked_masks(art); +} + +/// Turn over the art of the opacity masks in `n` that a transform of `n` leaves in place (the masks +/// that don't move with their objects), in members and in other masks' art too. +fn turn_unlinked_masks(n: &mut Node) { + if let Some(m) = n.extras_if_any().and_then(|e| e.mask.as_mut()) { + let linked = m.linked; + let art = Arc::make_mut(&mut m.art); + if linked { + turn_unlinked_masks(art); + } else { + turn_over(art); + } + } + for c in n.children_mut().into_iter().flatten() { + turn_unlinked_masks(Arc::make_mut(c)); + } +} + /// The brushes of `drafts`, their art from the sections `art` (by name), in the brush manager's /// `order` (brushes it doesn't list after those it does, in the order of their objects), each /// kept within its ranges → the brushes and how many were left out: those whose art isn't read, @@ -456,7 +481,7 @@ pub(super) fn finish_brushes_within( DraftKind::Art { brush, art: name, .. } => copy(&name).map(|mut a| { // The side of the section with y up draws on the right of the path, and a brush // draws art's y (down here) on the left of the path. - a.transform(Affine::scale_non_uniform(1.0, -1.0), false); + turn_over(&mut a); BrushKind::Art(ArtBrush { art: a, ..brush }) }), DraftKind::Pattern { .. } => None, diff --git a/crates/eps/src/import/ai/tests.rs b/crates/eps/src/import/ai/tests.rs index e2a1943de7..cbeb3ff7f3 100644 --- a/crates/eps/src/import/ai/tests.rs +++ b/crates/eps/src/import/ai/tests.rs @@ -6358,6 +6358,30 @@ fn a_brushs_opacity_mask_art_takes_ids_of_the_document() { assert_eq!(unique.len(), all.len(), "{all:?}"); } +/// An Art brush's art is turned over with the art of its opacity mask, whether the mask moves with +/// its object or not: the mask's art stays over the part of the object it is over in the section. +#[test] +fn an_art_brushs_opacity_mask_art_turns_over_with_its_object() { + let mut read = vec![]; + for linked in [true, false] { + let mask_art: String = format!("1 g\n{}f\n", rect_path(0.0, 0.0, 40.0, 3.0)).lines().map(|l| format!("%_{l}\n")).collect(); + let options = format!("%_1 /Bool (Clipping) ,\n%_{} /Bool (Linked) ,\n", u8::from(linked)); + let mask = format!("%_/ArtDictionary :\n%_/Mask :\n%_X=\n{mask_art}%_X+\n%_(Art) ,\n{options}%_; (AI9_Mask) ,\n%_;\n"); + let section = format!("%AI8_BeginBrushPattern\n(Ribbon art)\n0 A\n0 g\n{}f\n{mask}%AI8_EndBrushPattern\n", rect_path(0.0, 0.0, 40.0, 8.0)); + let shape = format!("{RED}{}f\n", rect_path(0.0, 0.0, 10.0, 10.0)); + let r = read_ok(&format!("{section}{}{}", plugin_object(ART_BRUSH, "Ribbon", RIBBON), layer(&shape))); + let lib = vectorcraft_brush::library(&r.doc); + let vectorcraft_brush::BrushKind::Art(brush) = brush_named(&lib, "Ribbon") else { panic!("art: {:?}", r.warnings) }; + let m = brush.art.extras().mask.as_deref().unwrap_or_else(|| panic!("the mask is read: {:#?}", brush.art)); + assert_eq!(m.linked, linked); + let (object, over) = (brush.art.geometric_bounds().unwrap(), m.art.geometric_bounds().unwrap()); + assert!((object.height() - 8.0).abs() < 1e-6 && (over.height() - 3.0).abs() < 1e-6, "linked {linked}: {over:?} over {object:?}"); + assert!(over.y0 > object.y0 - 1e-6 && over.y1 < object.y1 + 1e-6, "linked {linked}: {over:?} over {object:?}"); + read.push((object, over)); + } + assert_eq!(read[0], read[1], "a mask is in the same place whether it moves with its object or not"); +} + /// An art styles section inside a symbol's, a pattern's or a brush's art is skipped: the file's own /// art styles still style the layers' objects read after the definition. #[test] diff --git a/docs/file-format-parity.md b/docs/file-format-parity.md index 490b47464d..5852781d75 100644 --- a/docs/file-format-parity.md +++ b/docs/file-format-parity.md @@ -118,7 +118,9 @@ private editing data. VectorCraft: Scatter and Art brushes with their art, are written in its order: Scatter and Art brushes in Tints or keeping their art's colors, Art brushes that stretch their art along the path from left to right at 100% unflipped without overlap, and art of paths and compound paths with points and groups with members, with one solid fill and one - plain stroke each. Other brushes, + plain stroke each. Such art may hold opacity masks whose art is of the same kinds, up to seven deep in one + another's art; the masks are written with their options, and an Art brush whose art holds one is written with + its strokes as their drawn look. Other brushes, Pattern and Bristle brushes among them, and brushes past the number or the art VectorCraft's reader reads are left out with a warning; no brush is written on a large canvas. A path or compound path with a Calligraphic brush, or with an Art brush in Tints whose art bends along the path, keeps the brush on its stroke; other brushed strokes are diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index f3707717e6..46eb5ac83a 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1651,6 +1651,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur A `.ai` or EPS whose editing data has brushes opens with the file's Calligraphic, Scatter, Art and Bristle brushes in the Brushes panel in place of the default ones, in the file's order: the Calligraphic size, roundness and angle with their variation, the Scatter size, spacing, scatter and rotation, the Bristle settings, and the Scatter and Art brushes' art (Art brushes in the older and newer forms of their objects). A brush library `.ai` (brushes and no layers) opens from its PDF part with its brushes, so Other Library lists them. An Art brush in Tints keeps that colorization. Pattern brushes and brushes that can't be read are left out with a note. Paths with a Calligraphic brush, and paths with an Art brush in the newer form at 100% in Tints that stretches art of solid-filled paths unflipped, open as the path with the brush on its stroke. Paths with an Art brush in the older form, and other brushed paths, still come in as their drawn look (part of #372 and #637; `crates/eps/src/import/ai/tests.rs`, `crates/eps/src/import/tests_native.rs`). In a `.ai` opened from its editing data, a path or type object with Offset Path, Outline Object or Outline Stroke on the whole object opens as itself with those effects live, in their order and shown or hidden; on a fill or stroke of type they stay on that fill or stroke. Offset Path keeps its Offset, Joins and Miter Limit, and Outline Stroke takes its width from the stroke. An Offset Path with a setting missing, out of range or not read keeps the drawn art, as does a path with a Path effect on one fill or stroke (`crates/eps/src/import/ai/style/tests.rs`, `crates/eps/src/import/ai/tests.rs`, `crates/eps/src/import/tests_native.rs`). In a `.ai` or EPS opened from its editing data, a Scatter brush whose last 15 numbers start with 1 comes into the Brushes panel in Tints, and each brush art section is read without its frame, an unnamed, unpainted rectangle with no settings of its own at the art's bounds (within 1/1000 pt). A wider frame stays in the art, and an art group with a state or look of its own (hidden, locked, isolated, knockout, an opacity, a blend mode, a name, a mask, a note or an appearance) stays a group (`crates/eps/src/import/ai/tests.rs`). + A PDF-compatible `.ai` saved with Include Editing Data for Other Apps writes a Scatter or Art brush whose art holds opacity masks to the Brushes panel of its editing copy. This is VectorCraft's own rule for brushes a document already holds. Each mask's art is written in the brush's art section in the form VectorCraft's `.ai` reader reads (`define_brush_art` in `crates/eps/src/import/ai/read/directives.rs`), with the mask's Clip and Invert Mask options, whether it is disabled and whether it moves with its object, for masks up to seven deep in one another's art. A brush whose mask art holds more than paths, compound paths and groups with one solid fill and one plain stroke each is left out with a warning, and a path with an Art brush whose art holds a mask is written as its drawn look. When the reader turns an Art brush's art over, it turns the art of a mask that doesn't move with its object over too (`scatter_and_art_brush_mask_art_round_trips` and `brushes_whose_mask_art_isnt_read_back_are_left_out` in `crates/eps/src/ai_editing/tests.rs`, `an_art_brushs_opacity_mask_art_turns_over_with_its_object` in `crates/eps/src/import/ai/tests.rs`). In a `.ai` opened from its editing data, type with Warp on the object or on one of its fills or strokes opens as type with the effect live when the live warp draws as the art saved with it. When it draws differently, or when the file's limit of checks has no check left for it, it opens as that art, and one note says how many did. Type stays live without a comparison when the saved art paints nothing or draws type of its own, in frames of threaded type, when a text variable binds it, and when its text object doesn't come in as one text object (`crates/eps/src/import/ai/envelope.rs`, `crates/eps/src/import/tests_native.rs`). In a `.ai` opened from its editing data, an object with a Tweak that moves nothing or Pucker & Bloat at 0 opens as itself with the effect live. A path, compound path or group whose only effect is Transform without copies, or a Free Distort whose corners make a parallelogram, opens as itself with it live, and so does an object with nothing stroked whose only effect is Twist: a path or compound path with straight segments at up to 180° either way, and another path, compound path or group with no guide in it at up to 90° either way (limits VectorCraft sets); one twisted further keeps the drawn art. A gradient or pattern, an image, type, a clipping group, an opacity mask or effects inside the object, or a stroke with a Transform that scales, rotates or reflects, keep the drawn art (`crates/eps/src/import/ai/style/tests.rs`, `crates/eps/src/import/ai/tests.rs`, `crates/eps/src/import/ai/read/ops.rs`). A PDF page whose `UserUnit` (PDF 1.6) is above 1 opens at its size in points, its numbers times the `UserUnit` (one above 75,000 counts as 75,000), and `document.pdfInfo` gives its size and boxes in points too. A `.ai` whose editing data has its artboards in the units of such a page opens from that data at the page's size, with its layers, and when the layers can't be read its pages still take the artboard layout of the data, scaled the same way (part of #1482). From ca2dd52afc5c0643ead7d2c3827c490aab926a60 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 13 Nov 2026 18:25:51 -0800 Subject: [PATCH 005/273] i18n: SVG filter refusals are translated, and side-by-side menu items differ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The refusals of the SVG filter check (unreadable XML, a missing or too long id, elements, event attributes and images a filter does not take, and the limits on primitives, numOctaves, order, radius, stdDeviation, kernelUnitLength, image pixels, nesting and size) had no @msg rows and showed in English. Every complete-message catalog now has a row for each of the 16 templates and for the three attribute names {what} carries. The scan reads svg_filter.rs, map_err closures included, as the untranslated report does since #7336. Turkish showed Effect › 3D and Materials › Revolve… and Rotate… with the same label. Revolve is now "Eksen Etrafında Döndür" in every row that showed it as "Döndür", and the Classic pair follows it; Rotate keeps "Döndür", which Object › Transform › Rotate… shares. A new test walks every menu in every language and fails when two items side by side show the same label. It found 27 other pairs, all fixed: Effect › Warp and Distort (el, ko, fr, bg, sv, pt-br), Window › Attributes and Properties (ko, vi, zh-hans), Pathfinder Trim and Crop (vi, bg, tr, ca) and Add and Merge (ru, tr), Warp Bulge and Inflate (vi, bg), Arc and Arch and Tweak and Twist (pt-br), Shell and Arc Lower and Upper (zh-hans, zh-hant), Hair Space and Thin Space (bs, bg, pt-br), and Revolve and Rotate (bg). A second test fails when a menu item shows a command id: the @id rows for file.close and pathfinder.add in bg, da, nl and id held an id, so File › Close and Effect › Pathfinder › Add showed it. They now hold each catalog's Close and Unite translations. --- crates/ui-egui/src/i18n/bg.tsv | 14 +-- crates/ui-egui/src/i18n/bs.tsv | 2 +- crates/ui-egui/src/i18n/ca.tsv | 21 +++- crates/ui-egui/src/i18n/cs.tsv | 19 +++ crates/ui-egui/src/i18n/da.tsv | 4 +- crates/ui-egui/src/i18n/de.tsv | 18 +++ crates/ui-egui/src/i18n/el.tsv | 21 +++- crates/ui-egui/src/i18n/es.tsv | 19 +++ crates/ui-egui/src/i18n/fi.tsv | 19 +++ crates/ui-egui/src/i18n/fr.tsv | 21 +++- crates/ui-egui/src/i18n/hi.tsv | 19 +++ crates/ui-egui/src/i18n/hu.tsv | 19 +++ crates/ui-egui/src/i18n/id.tsv | 4 +- crates/ui-egui/src/i18n/it.tsv | 18 +++ crates/ui-egui/src/i18n/ja.tsv | 19 +++ crates/ui-egui/src/i18n/ka.tsv | 19 +++ crates/ui-egui/src/i18n/ko.tsv | 23 +++- crates/ui-egui/src/i18n/nl.tsv | 23 +++- crates/ui-egui/src/i18n/pl.tsv | 19 +++ crates/ui-egui/src/i18n/pt-br.tsv | 26 +++- crates/ui-egui/src/i18n/ru.tsv | 21 +++- crates/ui-egui/src/i18n/sv.tsv | 21 +++- crates/ui-egui/src/i18n/tests.rs | 178 ++++++++++++++++++++++++++++ crates/ui-egui/src/i18n/tr.tsv | 53 ++++++--- crates/ui-egui/src/i18n/uk.tsv | 19 +++ crates/ui-egui/src/i18n/vi.tsv | 25 +++- crates/ui-egui/src/i18n/zh-hans.tsv | 25 +++- crates/ui-egui/src/i18n/zh-hant.tsv | 23 +++- docs/target-app-parity.md | 1 + 29 files changed, 663 insertions(+), 50 deletions(-) diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 1f469c69c9..2089000a76 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -352,7 +352,7 @@ font-technology Variable Променливи Built-in presets are read-only: New… starts an editable copy. Вградените предварителни настройки са само за четене: „Ново…“ създава редактируемо копие. Built-in presets don't change: New makes a copy you can edit. Вградените предварителни настройки не се променят: „Ново“ създава копие за редактиране. Built-in presets don't change: New… starts an editable copy. Вградените предварителни настройки не се променят: „Ново…“ създава редактируемо копие. - Bulge… Издуване… + Bulge… Изпъкване… Bullet Булет Bullets Булети Bullets and Numbering Булети и номериране @@ -1419,7 +1419,7 @@ font-technology Variable Променливи Guides & Grid Водачи и мрежа H Spacing: Хоризонтално разстояние: H: Х: - Hair Space Тънък интервал + Hair Space Най-тънък интервал Hand Tool Инструмент „Ръка“ Hand-Drawn Ръчно рисувани Painted and Sketched Рисувани и скицирани @@ -2902,7 +2902,7 @@ digits Malayalam Малаялам Opening it left out what VectorCraft can't read yet ({what}), so replacing it loses that for good. Save under another name to keep it. Отварянето му пропусна това, което VectorCraft все още не може да прочете ({what}), така че замяната му го губи завинаги. Запазете под друго име, за да го запазите. “{name}” already exists. Replace it? „{name}“ вече съществува. Да бъде ли заменен? The name in the save panel was “{typed}”; VectorCraft added the file type's extension. Replacing the file overwrites its contents. Името в панела за запазване беше „{typed}“, а VectorCraft добави разширението на типа файл. Замяната на файла презаписва съдържанието му. - Revolve… Завъртане… + Revolve… Завъртане около ос… RGB Color RGB цвят Right Вдясно Right Grid: Дясна мрежа: @@ -3711,7 +3711,7 @@ digits Malayalam Малаялам Reverse Traps Обратни застъпвания Precision Точност Remove Redundant Points Премахване на излишните точки - Trim Изрязване + Trim Подрязване Trim mark weight: Дебелина на маркировките за изрязване: Trim marks Маркировки за изрязване Trim View Изглед на изрязване @@ -5033,7 +5033,7 @@ effect Soft Меко On Both Sides От двете страни Short Кратко Full Width Пълна ширина - Distort Изкривяване + Distort Деформиране Diffuse Glow… Дифузно светещ… Glass… Стъкло… Ocean Ripple… Океански вълнички… @@ -5632,8 +5632,8 @@ lighting Light Светлина x Height Височина на x ▾ Default Actions ▾ Действия по подразбиране ⚠ {chord} was already used by {names} — it has been removed there. Внимание: Комбинацията {chord} вече се използва от {names} — премахната е там. -@id file.close file.close -@id pathfinder.add pathfinder.add +@id file.close Затваряне +@id pathfinder.add Обединяване @msg give corners of the path: anchors between two straight sides дай ъглите на пътя: опорни точки между две прави страни @msg this kind of brush has no options dialog yet този вид четка засега няма диалогов прозорец с настройки @plural {n} PR|{n} PRs {n} PR|{n} PR-а diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index a23133933a..f91fe245d6 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -382,7 +382,7 @@ Insert Whitespace Character Umetni znak razmaka Em Space Široki razmak (em) En Space Polu-široki razmak (en) - Hair Space Tanki razmak + Hair Space Najtanji razmak Sixth Space Šestina razmaka Thin Space Tanki razmak Nonbreaking Space Neprelomivi razmak diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 373eb0b79d..e36b14eeb8 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -4839,7 +4839,7 @@ digits Malayalam Malaiàlam Triangle Triangle Triangle (open) Triangle (obert) Triangle to Bar Triangle a barra - Trim Retalla + Trim Poda Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Retalla la geometria coberta en expandir l’aparença. La previsualització en directe manté tota la superfície. Les pintures transparents i les superfícies que superen els límits de visibilitat conserven totes les cares. Trim mark weight: Gruix de les marques de retall: Trim marks Marques de retall @@ -6163,6 +6163,25 @@ digits Malayalam Malaiàlam @msg a 3D effect on a group's fill or stroke draws nothing un efecte 3D al farciment o al traç d’un grup no dibuixa res @msg a 3D effect on a group's fill or stroke draws nothing to export un efecte 3D al farciment o al traç d’un grup no dibuixa res per exportar @msg The 3D object is too complex to export L’objecte 3D és massa complex per exportar-lo +@msg give one element indica un element +@msg the element needs an id, the filter's name l’element necessita un id, el nom del filtre +@msg an SVG filter's id is at most {MAX_NAME} characters l’id d’un filtre SVG té com a màxim {MAX_NAME} caràcters +@msg <{_1}> isn't an element of an SVG filter <{_1}> no és un element d’un filtre SVG +@msg an SVG filter has no event attributes such as {_1} un filtre SVG no té atributs d’esdeveniment com ara {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs les imatges d’un filtre SVG són URL data: en PNG, JPEG, GIF o WebP +@msg the SVG filter isn't valid XML: {e} el filtre SVG no és un XML vàlid: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves de feTurbulence és com a màxim {MAX_OCTAVES} +@msg {what} is at most {max} {what} és com a màxim {max} +@msg feConvolveMatrix's order order de feConvolveMatrix +@msg feMorphology's radius radius de feMorphology +@msg a blur's stdDeviation stdDeviation d’un desenfocament +@msg the SVG filter has no primitives el filtre SVG no té primitives +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives un filtre SVG té com a màxim {MAX_PRIMITIVES} primitives +@msg the SVG filter is too large once its attributes are written out el filtre SVG és massa gran un cop escrits els seus atributs +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all les imatges d’un filtre SVG tenen com a màxim {MAX_IMAGE_PIXELS} píxels en total +@msg the SVG filter can't be drawn: check its primitives and their inputs no es pot dibuixar el filtre SVG: comprova’n les primitives i les seves entrades +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep els elements d’un filtre SVG s’imbriquen com a màxim {MAX_DEPTH} nivells +@msg an SVG filter is at most {_1} KB un filtre SVG ocupa com a màxim {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) l’objecte no té cap efecte 3D (Extrudeix i bisella, Revoluciona, Infla o Gira) @msg its 3D effect builds no solid el seu efecte 3D no construeix cap sòlid @msg bevel must be none or one of {_1} bevel ha de ser none o un de {_1} diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 7178be3143..56719d84ce 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -5987,6 +5987,25 @@ mark-style Japanese Japonské @msg a 3D effect on a group's fill or stroke draws nothing 3D efekt na výplni nebo tahu skupiny nic nekreslí @msg a 3D effect on a group's fill or stroke draws nothing to export 3D efekt na výplni nebo tahu skupiny nekreslí nic k exportu @msg The 3D object is too complex to export 3D objekt je pro export příliš složitý +@msg give one element zadejte jeden prvek +@msg the element needs an id, the filter's name prvek potřebuje id, název filtru +@msg an SVG filter's id is at most {MAX_NAME} characters id filtru SVG má nejvýše {MAX_NAME} znaků +@msg <{_1}> isn't an element of an SVG filter <{_1}> není prvkem filtru SVG +@msg an SVG filter has no event attributes such as {_1} filtr SVG nemá atributy událostí, jako je {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs obrázky filtru SVG jsou adresy data: ve formátu PNG, JPEG, GIF nebo WebP +@msg the SVG filter isn't valid XML: {e} filtr SVG není platné XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves prvku feTurbulence je nejvýše {MAX_OCTAVES} +@msg {what} is at most {max} {what} je nejvýše {max} +@msg feConvolveMatrix's order order prvku feConvolveMatrix +@msg feMorphology's radius radius prvku feMorphology +@msg a blur's stdDeviation stdDeviation rozostření +@msg the SVG filter has no primitives filtr SVG nemá žádná primitiva +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives filtr SVG má nejvýše {MAX_PRIMITIVES} primitiv +@msg the SVG filter is too large once its attributes are written out filtr SVG je po vypsání jeho atributů příliš velký +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all obrázky filtru SVG mají celkem nejvýše {MAX_IMAGE_PIXELS} pixelů +@msg the SVG filter can't be drawn: check its primitives and their inputs filtr SVG nelze vykreslit: zkontrolujte jeho primitiva a jejich vstupy +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep prvky filtru SVG jsou vnořeny nejvýše {MAX_DEPTH} úrovní hluboko +@msg an SVG filter is at most {_1} KB filtr SVG má nejvýše {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) objekt nemá žádný 3D efekt (Vysunutí a zkosení, Rotační těleso, Nafouknutí ani Otočit) @msg its 3D effect builds no solid jeho 3D efekt nevytváří žádné těleso @msg bevel must be none or one of {_1} bevel musí být none nebo jedno z {_1} diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 433c6af3d6..fb540e10be 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -34,7 +34,7 @@ Clear Recent Files Ryd seneste filer Show in Folder Vis i mappe Close Luk -@id file.close file.close +@id file.close Luk Close All Luk alle Save Gem Save As… Gem som… @@ -497,7 +497,7 @@ Zig Zag… Zigzag… Pathfinder Pathfinder Add Foren -@id pathfinder.add pathfinder.add +@id pathfinder.add Foren Intersect Skæring Exclude Udeluk Subtract Træk fra diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 951f6f9c37..1094872dfa 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -5561,6 +5561,24 @@ lighting Light Licht @msg a 3D effect on a group's fill or stroke draws nothing ein 3D-Effekt auf der Fläche oder Kontur einer Gruppe zeichnet nichts @msg a 3D effect on a group's fill or stroke draws nothing to export ein 3D-Effekt auf der Fläche oder Kontur einer Gruppe zeichnet nichts, das exportiert werden kann @msg The 3D object is too complex to export Das 3D-Objekt ist zu komplex für den Export +@msg the element needs an id, the filter's name das -Element braucht eine id, den Namen des Filters +@msg an SVG filter's id is at most {MAX_NAME} characters die id eines SVG-Filters hat höchstens {MAX_NAME} Zeichen +@msg <{_1}> isn't an element of an SVG filter <{_1}> ist kein Element eines SVG-Filters +@msg an SVG filter has no event attributes such as {_1} ein SVG-Filter hat keine Ereignisattribute wie {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs die Bilder eines SVG-Filters sind data:-URLs im Format PNG, JPEG, GIF oder WebP +@msg the SVG filter isn't valid XML: {e} der SVG-Filter ist kein gültiges XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves von feTurbulence ist höchstens {MAX_OCTAVES} +@msg {what} is at most {max} {what} ist höchstens {max} +@msg feConvolveMatrix's order order von feConvolveMatrix +@msg feMorphology's radius radius von feMorphology +@msg a blur's stdDeviation stdDeviation einer Weichzeichnung +@msg the SVG filter has no primitives der SVG-Filter hat keine Filterprimitive +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives ein SVG-Filter hat höchstens {MAX_PRIMITIVES} Filterprimitive +@msg the SVG filter is too large once its attributes are written out der SVG-Filter ist zu groß, sobald seine Attribute ausgeschrieben sind +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all die Bilder eines SVG-Filters haben insgesamt höchstens {MAX_IMAGE_PIXELS} Pixel +@msg the SVG filter can't be drawn: check its primitives and their inputs der SVG-Filter kann nicht gezeichnet werden: Prüfen Sie seine Filterprimitive und deren Eingaben +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep die Elemente eines SVG-Filters sind höchstens {MAX_DEPTH} Ebenen tief verschachtelt +@msg an SVG filter is at most {_1} KB ein SVG-Filter ist höchstens {_1} KB groß @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) das Objekt hat keinen 3D-Effekt (Extrudieren und abgeflachte Kante, Kreiseln, Aufblasen oder Drehen) @msg its 3D effect builds no solid sein 3D-Effekt erzeugt keinen Körper @msg bevel must be none or one of {_1} bevel muss none oder einer der folgenden Werte sein: {_1} diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 62e3adc491..2103a2f19d 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -2212,7 +2212,7 @@ font-technology Variable Μεταβλητές Vertical: Κατακόρυφα: View Προβολή W: Π: - Warp Παραμόρφωση + Warp Στρέβλωση Wave… Κύμα… Web Snap: Προσκόλληση στον ιστό: Weight Βάρος @@ -5346,6 +5346,25 @@ digits Malayalam Μαλαγιάλαμ @msg a 3D effect on a group's fill or stroke draws nothing ένα εφέ 3D στο γέμισμα ή στην πινελιά μιας ομάδας δεν σχεδιάζει τίποτα @msg a 3D effect on a group's fill or stroke draws nothing to export ένα εφέ 3D στο γέμισμα ή στην πινελιά μιας ομάδας δεν σχεδιάζει τίποτα για εξαγωγή @msg The 3D object is too complex to export Το αντικείμενο 3D είναι πολύ σύνθετο για εξαγωγή +@msg give one element δώστε ένα στοιχείο +@msg the element needs an id, the filter's name το στοιχείο χρειάζεται id, το όνομα του φίλτρου +@msg an SVG filter's id is at most {MAX_NAME} characters το id ενός φίλτρου SVG έχει το πολύ {MAX_NAME} χαρακτήρες +@msg <{_1}> isn't an element of an SVG filter το <{_1}> δεν είναι στοιχείο φίλτρου SVG +@msg an SVG filter has no event attributes such as {_1} ένα φίλτρο SVG δεν έχει χαρακτηριστικά συμβάντων όπως το {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs οι εικόνες ενός φίλτρου SVG είναι διευθύνσεις data: PNG, JPEG, GIF ή WebP +@msg the SVG filter isn't valid XML: {e} το φίλτρο SVG δεν είναι έγκυρη XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} το numOctaves του feTurbulence είναι το πολύ {MAX_OCTAVES} +@msg {what} is at most {max} {what}: το πολύ {max} +@msg feConvolveMatrix's order order του feConvolveMatrix +@msg feMorphology's radius radius του feMorphology +@msg a blur's stdDeviation stdDeviation ενός θολώματος +@msg the SVG filter has no primitives το φίλτρο SVG δεν έχει πρωτογενή στοιχεία +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives ένα φίλτρο SVG έχει το πολύ {MAX_PRIMITIVES} πρωτογενή στοιχεία +@msg the SVG filter is too large once its attributes are written out το φίλτρο SVG είναι πολύ μεγάλο όταν γραφτούν τα χαρακτηριστικά του +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all οι εικόνες ενός φίλτρου SVG έχουν συνολικά το πολύ {MAX_IMAGE_PIXELS} εικονοστοιχεία +@msg the SVG filter can't be drawn: check its primitives and their inputs το φίλτρο SVG δεν μπορεί να σχεδιαστεί: ελέγξτε τα πρωτογενή στοιχεία του και τις εισόδους τους +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep τα στοιχεία ενός φίλτρου SVG εμφωλεύονται σε βάθος το πολύ {MAX_DEPTH} επιπέδων +@msg an SVG filter is at most {_1} KB ένα φίλτρο SVG είναι το πολύ {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) το αντικείμενο δεν έχει εφέ 3D (Εξώθηση και λοξότμηση, Περιστροφή γύρω από άξονα, Φούσκωμα ή Περιστροφή) @msg its 3D effect builds no solid το εφέ 3D του δεν δημιουργεί στερεό @msg bevel must be none or one of {_1} το bevel πρέπει να είναι none ή ένα από τα {_1} diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index d1c6aa53af..ba9e74c35f 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -5928,6 +5928,25 @@ mark-style Japanese Japonesas @msg a 3D effect on a group's fill or stroke draws nothing un efecto 3D en el relleno o el trazo de un grupo no dibuja nada @msg a 3D effect on a group's fill or stroke draws nothing to export un efecto 3D en el relleno o el trazo de un grupo no dibuja nada que exportar @msg The 3D object is too complex to export El objeto 3D es demasiado complejo para exportarlo +@msg give one element indique un elemento +@msg the element needs an id, the filter's name el elemento necesita un id, el nombre del filtro +@msg an SVG filter's id is at most {MAX_NAME} characters el id de un filtro SVG tiene como máximo {MAX_NAME} caracteres +@msg <{_1}> isn't an element of an SVG filter <{_1}> no es un elemento de un filtro SVG +@msg an SVG filter has no event attributes such as {_1} un filtro SVG no tiene atributos de evento como {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs las imágenes de un filtro SVG son URL data: en PNG, JPEG, GIF o WebP +@msg the SVG filter isn't valid XML: {e} el filtro SVG no es XML válido: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves de feTurbulence es como máximo {MAX_OCTAVES} +@msg {what} is at most {max} {what} es como máximo {max} +@msg feConvolveMatrix's order order de feConvolveMatrix +@msg feMorphology's radius radius de feMorphology +@msg a blur's stdDeviation stdDeviation de un desenfoque +@msg the SVG filter has no primitives el filtro SVG no tiene primitivas +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives un filtro SVG tiene como máximo {MAX_PRIMITIVES} primitivas +@msg the SVG filter is too large once its attributes are written out el filtro SVG es demasiado grande una vez escritos sus atributos +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all las imágenes de un filtro SVG tienen como máximo {MAX_IMAGE_PIXELS} píxeles en total +@msg the SVG filter can't be drawn: check its primitives and their inputs el filtro SVG no se puede dibujar: compruebe sus primitivas y sus entradas +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep los elementos de un filtro SVG se anidan como máximo {MAX_DEPTH} niveles +@msg an SVG filter is at most {_1} KB un filtro SVG ocupa como máximo {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) el objeto no tiene ningún efecto 3D (Extrusión y biselado, Revolución, Inflar o Rotar) @msg its 3D effect builds no solid su efecto 3D no construye ningún sólido @msg bevel must be none or one of {_1} bevel debe ser none o uno de estos: {_1} diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 45e47fd355..5b3a784e5c 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -5868,6 +5868,25 @@ mark-style Japanese Japanilainen @msg a 3D effect on a group's fill or stroke draws nothing ryhmän täytön tai viivan 3D-tehoste ei piirrä mitään @msg a 3D effect on a group's fill or stroke draws nothing to export ryhmän täytön tai viivan 3D-tehoste ei piirrä mitään vietävää @msg The 3D object is too complex to export 3D-objekti on liian monimutkainen vietäväksi +@msg give one element anna yksi -elementti +@msg the element needs an id, the filter's name -elementti tarvitsee id:n, suotimen nimen +@msg an SVG filter's id is at most {MAX_NAME} characters SVG-suotimen id on enintään {MAX_NAME} merkkiä +@msg <{_1}> isn't an element of an SVG filter <{_1}> ei ole SVG-suotimen elementti +@msg an SVG filter has no event attributes such as {_1} SVG-suotimessa ei ole tapahtumamääritteitä, kuten {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs SVG-suotimen kuvat ovat PNG-, JPEG-, GIF- tai WebP-muotoisia data:-URL-osoitteita +@msg the SVG filter isn't valid XML: {e} SVG-suodin ei ole kelvollista XML:ää: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} feTurbulencen numOctaves on enintään {MAX_OCTAVES} +@msg {what} is at most {max} {what} on enintään {max} +@msg feConvolveMatrix's order feConvolveMatrixin order +@msg feMorphology's radius feMorphologyn radius +@msg a blur's stdDeviation sumennuksen stdDeviation +@msg the SVG filter has no primitives SVG-suotimessa ei ole primitiivejä +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives SVG-suotimessa on enintään {MAX_PRIMITIVES} primitiiviä +@msg the SVG filter is too large once its attributes are written out SVG-suodin on liian suuri, kun sen määritteet kirjoitetaan auki +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all SVG-suotimen kuvissa on yhteensä enintään {MAX_IMAGE_PIXELS} pikseliä +@msg the SVG filter can't be drawn: check its primitives and their inputs SVG-suodinta ei voi piirtää: tarkista sen primitiivit ja niiden syötteet +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep SVG-suotimen elementit ovat sisäkkäin enintään {MAX_DEPTH} tason syvyydellä +@msg an SVG filter is at most {_1} KB SVG-suodin on enintään {_1} kt @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) objektilla ei ole 3D-tehostetta (Pursota ja viistä, Pyöräytä, Täytä ilmalla tai Kierrä) @msg its 3D effect builds no solid sen 3D-tehoste ei muodosta kappaletta @msg bevel must be none or one of {_1} bevel-arvon on oltava none tai jokin seuraavista: {_1} diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 057dce6872..8282fb35e4 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -5337,7 +5337,7 @@ effect Soft Doux On Both Sides Des deux côtés Short Courte Full Width Toute la largeur - Distort Déformation + Distort Distorsion Diffuse Glow… Lueur diffuse… Glass… Verre… Ocean Ripple… Océan… @@ -5555,6 +5555,25 @@ lighting Light Lumière @msg a 3D effect on a group's fill or stroke draws nothing un effet 3D sur le fond ou le contour d'un groupe ne dessine rien @msg a 3D effect on a group's fill or stroke draws nothing to export un effet 3D sur le fond ou le contour d'un groupe ne dessine rien à exporter @msg The 3D object is too complex to export L'objet 3D est trop complexe pour être exporté +@msg give one element indiquez un seul élément +@msg the element needs an id, the filter's name l’élément doit avoir un id, le nom du filtre +@msg an SVG filter's id is at most {MAX_NAME} characters l’id d’un filtre SVG compte au plus {MAX_NAME} caractères +@msg <{_1}> isn't an element of an SVG filter <{_1}> n’est pas un élément de filtre SVG +@msg an SVG filter has no event attributes such as {_1} un filtre SVG n’a pas d’attributs d’événement tels que {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs les images d’un filtre SVG sont des URL data: PNG, JPEG, GIF ou WebP +@msg the SVG filter isn't valid XML: {e} le filtre SVG n’est pas du XML valide : {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves de feTurbulence vaut au plus {MAX_OCTAVES} +@msg {what} is at most {max} {what} vaut au plus {max} +@msg feConvolveMatrix's order order de feConvolveMatrix +@msg feMorphology's radius radius de feMorphology +@msg a blur's stdDeviation stdDeviation d’un flou +@msg the SVG filter has no primitives le filtre SVG n’a aucune primitive +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives un filtre SVG a au plus {MAX_PRIMITIVES} primitives +@msg the SVG filter is too large once its attributes are written out le filtre SVG est trop volumineux une fois ses attributs écrits +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all les images d’un filtre SVG comptent au plus {MAX_IMAGE_PIXELS} pixels au total +@msg the SVG filter can't be drawn: check its primitives and their inputs le filtre SVG ne peut pas être dessiné : vérifiez ses primitives et leurs entrées +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep les éléments d’un filtre SVG s’imbriquent sur au plus {MAX_DEPTH} niveaux +@msg an SVG filter is at most {_1} KB un filtre SVG fait au plus {_1} Ko @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) l'objet n'a aucun effet 3D (Extrusion et biseautage, Révolution, Gonfler ou Rotation) @msg its 3D effect builds no solid son effet 3D ne construit aucun volume @msg bevel must be none or one of {_1} bevel doit valoir none ou l’une de ces valeurs : {_1} diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index 9d056e085a..72e9dd86fa 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -7993,6 +7993,25 @@ antiAlias Sharp शार्प @msg a 3D effect on a group's fill or stroke draws nothing ग्रुप के फ़िल या स्ट्रोक पर 3D इफ़ेक्ट कुछ नहीं बनाता @msg a 3D effect on a group's fill or stroke draws nothing to export ग्रुप के फ़िल या स्ट्रोक पर 3D इफ़ेक्ट एक्सपोर्ट करने लायक कुछ नहीं बनाता @msg The 3D object is too complex to export 3D ऑब्जेक्ट एक्सपोर्ट करने के लिए बहुत जटिल है +@msg give one element एक एलिमेंट दें +@msg the element needs an id, the filter's name एलिमेंट को एक id चाहिए, जो फ़िल्टर का नाम है +@msg an SVG filter's id is at most {MAX_NAME} characters SVG फ़िल्टर की id अधिकतम {MAX_NAME} वर्णों की होती है +@msg <{_1}> isn't an element of an SVG filter <{_1}> SVG फ़िल्टर का एलिमेंट नहीं है +@msg an SVG filter has no event attributes such as {_1} SVG फ़िल्टर में {_1} जैसे इवेंट एट्रिब्यूट नहीं होते +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs SVG फ़िल्टर की इमेज PNG, JPEG, GIF या WebP data: URL होती हैं +@msg the SVG filter isn't valid XML: {e} SVG फ़िल्टर मान्य XML नहीं है: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} feTurbulence का numOctaves अधिकतम {MAX_OCTAVES} होता है +@msg {what} is at most {max} {what} अधिकतम {max} होता है +@msg feConvolveMatrix's order feConvolveMatrix का order +@msg feMorphology's radius feMorphology का radius +@msg a blur's stdDeviation ब्लर का stdDeviation +@msg the SVG filter has no primitives SVG फ़िल्टर में कोई प्रिमिटिव नहीं है +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives SVG फ़िल्टर में अधिकतम {MAX_PRIMITIVES} प्रिमिटिव होते हैं +@msg the SVG filter is too large once its attributes are written out एट्रिब्यूट लिखे जाने के बाद SVG फ़िल्टर बहुत बड़ा हो जाता है +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all SVG फ़िल्टर की इमेज में कुल मिलाकर अधिकतम {MAX_IMAGE_PIXELS} पिक्सेल होते हैं +@msg the SVG filter can't be drawn: check its primitives and their inputs SVG फ़िल्टर बनाया नहीं जा सकता: उसके प्रिमिटिव और उनके इनपुट जाँचें +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep SVG फ़िल्टर के एलिमेंट अधिकतम {MAX_DEPTH} स्तर तक नेस्ट होते हैं +@msg an SVG filter is at most {_1} KB SVG फ़िल्टर अधिकतम {_1} KB का होता है @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) ऑब्जेक्ट पर कोई 3D इफ़ेक्ट नहीं है (एक्सट्रूडेड और बेवेल, रिवॉल्व, फुलाएँ या घुमाव) @msg its 3D effect builds no solid इसका 3D इफ़ेक्ट कोई ठोस नहीं बनाता @msg bevel must be none or one of {_1} bevel को none या {_1} में से एक होना चाहिए diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index c2f1a52cd9..731e5fef88 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -5970,6 +5970,25 @@ imageTrace Outline Körvonal @msg a 3D effect on a group's fill or stroke draws nothing a csoport kitöltésén vagy körvonalán lévő 3D effektus nem rajzol semmit @msg a 3D effect on a group's fill or stroke draws nothing to export a csoport kitöltésén vagy körvonalán lévő 3D effektus nem rajzol semmi exportálhatót @msg The 3D object is too complex to export A 3D objektum túl összetett az exportáláshoz +@msg give one element adjon meg egy elemet +@msg the element needs an id, the filter's name a elemnek id kell, a szűrő neve +@msg an SVG filter's id is at most {MAX_NAME} characters egy SVG-szűrő id-je legfeljebb {MAX_NAME} karakter +@msg <{_1}> isn't an element of an SVG filter a(z) <{_1}> nem SVG-szűrő eleme +@msg an SVG filter has no event attributes such as {_1} egy SVG-szűrőnek nincsenek eseményattribútumai, például {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs egy SVG-szűrő képei PNG, JPEG, GIF vagy WebP formátumú data: URL-ek +@msg the SVG filter isn't valid XML: {e} az SVG-szűrő nem érvényes XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} a feTurbulence numOctaves értéke legfeljebb {MAX_OCTAVES} +@msg {what} is at most {max} {what} legfeljebb {max} +@msg feConvolveMatrix's order a feConvolveMatrix order értéke +@msg feMorphology's radius a feMorphology radius értéke +@msg a blur's stdDeviation egy elmosás stdDeviation értéke +@msg the SVG filter has no primitives az SVG-szűrőnek nincsenek primitívjei +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives egy SVG-szűrőnek legfeljebb {MAX_PRIMITIVES} primitívje van +@msg the SVG filter is too large once its attributes are written out az SVG-szűrő túl nagy, miután az attribútumai ki vannak írva +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all egy SVG-szűrő képei összesen legfeljebb {MAX_IMAGE_PIXELS} képpontosak +@msg the SVG filter can't be drawn: check its primitives and their inputs az SVG-szűrő nem rajzolható meg: ellenőrizze a primitívjeit és azok bemeneteit +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep egy SVG-szűrő elemei legfeljebb {MAX_DEPTH} szint mélyen ágyazhatók egymásba +@msg an SVG filter is at most {_1} KB egy SVG-szűrő legfeljebb {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) az objektumnak nincs 3D effektusa (Kihúzás és élletörés, Forgatás tengely körül, Felfújás vagy Elforgatás) @msg its 3D effect builds no solid a 3D effektusa nem hoz létre testet @msg bevel must be none or one of {_1} a bevel értéke none vagy ezek egyike lehet: {_1} diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index a36c629332..6c73d005e2 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -34,7 +34,7 @@ Clear Recent Files Kosongkan berkas terbaru Show in Folder Tampilkan di folder Close Tutup -@id file.close berkas.tutup +@id file.close Tutup Close All Tutup semua Save Simpan Save As… Simpan sebagai… @@ -497,7 +497,7 @@ Zig Zag… Zig Zag… Pathfinder Pathfinder Add Tambah -@id pathfinder.add pathfinder.tambah +@id pathfinder.add Satukan Intersect Iris Exclude Kecualikan Subtract Kurangi diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 0ac2816b07..c7c72c4782 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -5603,6 +5603,24 @@ lighting Light Luce @msg a 3D effect on a group's fill or stroke draws nothing un effetto 3D sul riempimento o sulla traccia di un gruppo non disegna nulla @msg a 3D effect on a group's fill or stroke draws nothing to export un effetto 3D sul riempimento o sulla traccia di un gruppo non disegna nulla da esportare @msg The 3D object is too complex to export L'oggetto 3D è troppo complesso per essere esportato +@msg the element needs an id, the filter's name l'elemento richiede un id, il nome del filtro +@msg an SVG filter's id is at most {MAX_NAME} characters l'id di un filtro SVG ha al massimo {MAX_NAME} caratteri +@msg <{_1}> isn't an element of an SVG filter <{_1}> non è un elemento di un filtro SVG +@msg an SVG filter has no event attributes such as {_1} un filtro SVG non ha attributi di evento come {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs le immagini di un filtro SVG sono URL data: PNG, JPEG, GIF o WebP +@msg the SVG filter isn't valid XML: {e} il filtro SVG non è XML valido: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves di feTurbulence è al massimo {MAX_OCTAVES} +@msg {what} is at most {max} {what} è al massimo {max} +@msg feConvolveMatrix's order order di feConvolveMatrix +@msg feMorphology's radius radius di feMorphology +@msg a blur's stdDeviation stdDeviation di una sfocatura +@msg the SVG filter has no primitives il filtro SVG non ha primitive +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives un filtro SVG ha al massimo {MAX_PRIMITIVES} primitive +@msg the SVG filter is too large once its attributes are written out il filtro SVG è troppo grande una volta scritti i suoi attributi +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all le immagini di un filtro SVG hanno al massimo {MAX_IMAGE_PIXELS} pixel in tutto +@msg the SVG filter can't be drawn: check its primitives and their inputs impossibile disegnare il filtro SVG: controlla le sue primitive e i relativi input +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep gli elementi di un filtro SVG si annidano al massimo per {MAX_DEPTH} livelli +@msg an SVG filter is at most {_1} KB un filtro SVG occupa al massimo {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) l'oggetto non ha alcun effetto 3D (Estrusione e smusso, Rivoluzione, Gonfia o Ruota) @msg its 3D effect builds no solid il suo effetto 3D non costruisce alcun solido @msg bevel must be none or one of {_1} bevel deve essere none o uno dei seguenti: {_1} diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 71de1ce91c..43e0f64d70 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -5645,6 +5645,25 @@ lighting Light ライト @msg a 3D effect on a group's fill or stroke draws nothing グループの塗りまたは線にある 3D 効果は何も描画しません @msg a 3D effect on a group's fill or stroke draws nothing to export グループの塗りまたは線にある 3D 効果には書き出せる描画がありません @msg The 3D object is too complex to export 3D オブジェクトが複雑すぎるため書き出せません +@msg give one element 要素を 1 つ指定してください +@msg the element needs an id, the filter's name 要素には id (フィルターの名前) が必要です +@msg an SVG filter's id is at most {MAX_NAME} characters SVG フィルターの id は {MAX_NAME} 文字までです +@msg <{_1}> isn't an element of an SVG filter <{_1}> は SVG フィルターの要素ではありません +@msg an SVG filter has no event attributes such as {_1} SVG フィルターには {_1} などのイベント属性は使えません +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs SVG フィルターの画像は PNG、JPEG、GIF、WebP の data: URL に限ります +@msg the SVG filter isn't valid XML: {e} SVG フィルターが有効な XML ではありません: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} feTurbulence の numOctaves は {MAX_OCTAVES} までです +@msg {what} is at most {max} {what} は {max} までです +@msg feConvolveMatrix's order feConvolveMatrix の order +@msg feMorphology's radius feMorphology の radius +@msg a blur's stdDeviation ぼかしの stdDeviation +@msg the SVG filter has no primitives SVG フィルターにプリミティブがありません +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives SVG フィルターのプリミティブは {MAX_PRIMITIVES} 個までです +@msg the SVG filter is too large once its attributes are written out 属性を書き出すと SVG フィルターが大きくなりすぎます +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all SVG フィルターの画像は合計 {MAX_IMAGE_PIXELS} ピクセルまでです +@msg the SVG filter can't be drawn: check its primitives and their inputs SVG フィルターを描画できません: プリミティブとその入力を確認してください +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep SVG フィルターの要素の入れ子は {MAX_DEPTH} 階層までです +@msg an SVG filter is at most {_1} KB SVG フィルターは {_1} KB までです @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) オブジェクトに 3D 効果 (押し出しとベベル、回転体、膨張、回転) がありません @msg its 3D effect builds no solid 3D 効果からソリッドが作成されません @msg bevel must be none or one of {_1} bevel には none または {_1} のいずれかを指定してください diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 2cff51d94b..766d94ae7b 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -5269,6 +5269,25 @@ font-technology Variable ცვლადი @msg a 3D effect on a group's fill or stroke draws nothing ჯგუფის შევსებაზე ან კონტურზე 3D ეფექტი არაფერს ხატავს @msg a 3D effect on a group's fill or stroke draws nothing to export ჯგუფის შევსებაზე ან კონტურზე 3D ეფექტი ექსპორტისთვის არაფერს ხატავს @msg The 3D object is too complex to export 3D ობიექტი ზედმეტად რთულია ექსპორტისთვის +@msg give one element მიუთითეთ ერთი ელემენტი +@msg the element needs an id, the filter's name ელემენტს სჭირდება id, ფილტრის სახელი +@msg an SVG filter's id is at most {MAX_NAME} characters SVG ფილტრის id მაქსიმუმ {MAX_NAME} სიმბოლოა +@msg <{_1}> isn't an element of an SVG filter <{_1}> არ არის SVG ფილტრის ელემენტი +@msg an SVG filter has no event attributes such as {_1} SVG ფილტრს არ აქვს მოვლენის ატრიბუტები, როგორიცაა {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs SVG ფილტრის გამოსახულებები PNG, JPEG, GIF ან WebP data: URL-ებია +@msg the SVG filter isn't valid XML: {e} SVG ფილტრი არ არის სწორი XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} feTurbulence-ის numOctaves მაქსიმუმ {MAX_OCTAVES}-ია +@msg {what} is at most {max} {what}: მაქსიმუმ {max} +@msg feConvolveMatrix's order feConvolveMatrix-ის order +@msg feMorphology's radius feMorphology-ის radius +@msg a blur's stdDeviation დაბინდვის stdDeviation +@msg the SVG filter has no primitives SVG ფილტრს არ აქვს პრიმიტივები +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives SVG ფილტრს აქვს მაქსიმუმ {MAX_PRIMITIVES} პრიმიტივი +@msg the SVG filter is too large once its attributes are written out SVG ფილტრი ზედმეტად დიდია მისი ატრიბუტების ჩაწერის შემდეგ +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all SVG ფილტრის გამოსახულებებს სულ მაქსიმუმ {MAX_IMAGE_PIXELS} პიქსელი აქვს +@msg the SVG filter can't be drawn: check its primitives and their inputs SVG ფილტრის დახატვა შეუძლებელია: შეამოწმეთ მისი პრიმიტივები და მათი შემავალი მონაცემები +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep SVG ფილტრის ელემენტები მაქსიმუმ {MAX_DEPTH} დონის სიღრმეზეა ჩადგმული +@msg an SVG filter is at most {_1} KB SVG ფილტრი მაქსიმუმ {_1} KB-ია @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) ობიექტს არ აქვს 3D ეფექტი (ამოწევა და წაკვეთა, ბრუნვა, გაბერვა ან შემობრუნება) @msg its 3D effect builds no solid მისი 3D ეფექტი სხეულს არ ქმნის @msg bevel must be none or one of {_1} bevel უნდა იყოს none ან ერთ-ერთი: {_1} diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index 4715a413f4..6ddaa278d9 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -596,7 +596,7 @@ digits Malayalam 말라얄람어 Feather… 페더… SVG Filters SVG 필터 Apply SVG Filter… SVG 필터 적용… - Warp 왜곡 + Warp 뒤틀기 Arc… 호… Arc Lower… 아래쪽 호… Arc Upper… 위쪽 호… @@ -743,7 +743,7 @@ digits Malayalam 말라얄람어 Keep Tools Beside the Canvas 캔버스 옆에 도구 배치 Actions 액션 Asset Export 에셋 내보내기 - Attributes 속성 + Attributes 특성 Brushes 브러시 Color 색상 Color Guide 색상 가이드 @@ -5564,6 +5564,25 @@ lighting Light 광원 @msg a 3D effect on a group's fill or stroke draws nothing 그룹의 칠이나 획에 있는 3D 효과는 아무것도 그리지 않습니다 @msg a 3D effect on a group's fill or stroke draws nothing to export 그룹의 칠이나 획에 있는 3D 효과는 내보낼 것을 그리지 않습니다 @msg The 3D object is too complex to export 3D 개체가 너무 복잡하여 내보낼 수 없습니다 +@msg give one element 요소를 하나 지정하세요 +@msg the element needs an id, the filter's name 요소에는 필터 이름인 id가 필요합니다 +@msg an SVG filter's id is at most {MAX_NAME} characters SVG 필터의 id는 최대 {MAX_NAME}자입니다 +@msg <{_1}> isn't an element of an SVG filter <{_1}>은(는) SVG 필터의 요소가 아닙니다 +@msg an SVG filter has no event attributes such as {_1} SVG 필터에는 {_1} 같은 이벤트 속성이 없습니다 +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs SVG 필터의 이미지는 PNG, JPEG, GIF 또는 WebP data: URL입니다 +@msg the SVG filter isn't valid XML: {e} SVG 필터가 올바른 XML이 아닙니다: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} feTurbulence의 numOctaves는 최대 {MAX_OCTAVES}입니다 +@msg {what} is at most {max} {what}은(는) 최대 {max}입니다 +@msg feConvolveMatrix's order feConvolveMatrix의 order +@msg feMorphology's radius feMorphology의 radius +@msg a blur's stdDeviation 흐림 효과의 stdDeviation +@msg the SVG filter has no primitives SVG 필터에 프리미티브가 없습니다 +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives SVG 필터의 프리미티브는 최대 {MAX_PRIMITIVES}개입니다 +@msg the SVG filter is too large once its attributes are written out 속성을 모두 쓰면 SVG 필터가 너무 커집니다 +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all SVG 필터의 이미지는 모두 합쳐 최대 {MAX_IMAGE_PIXELS}픽셀입니다 +@msg the SVG filter can't be drawn: check its primitives and their inputs SVG 필터를 그릴 수 없습니다: 프리미티브와 그 입력을 확인하세요 +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep SVG 필터의 요소는 최대 {MAX_DEPTH}단계까지 중첩됩니다 +@msg an SVG filter is at most {_1} KB SVG 필터는 최대 {_1}KB입니다 @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) 개체에 3D 효과(돌출 및 경사, 회전체, 부풀리기 또는 회전)가 없습니다 @msg its 3D effect builds no solid 3D 효과가 입체를 만들지 않습니다 @msg bevel must be none or one of {_1} bevel은 none 또는 {_1} 중 하나여야 합니다 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 94957fb782..c8360e57b2 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -537,7 +537,7 @@ Clear Recent Files Recente bestanden wissen Show in Folder Tonen in map Close Sluiten -@id file.close file.close +@id file.close Sluiten Close All Alles sluiten Save Opslaan Save As… Opslaan als… @@ -1014,7 +1014,7 @@ Zig Zag… Zigzag… Pathfinder Padvinder Add Toevoegen -@id pathfinder.add pathfinder.add +@id pathfinder.add Verenigen Intersect Doorsnede Exclude Uitsluiten Subtract Aftrekken @@ -5926,6 +5926,25 @@ mark-style Japanese Japans @msg a 3D effect on a group's fill or stroke draws nothing een 3D-effect op de vulling of contour van een groep tekent niets @msg a 3D effect on a group's fill or stroke draws nothing to export een 3D-effect op de vulling of contour van een groep tekent niets om te exporteren @msg The 3D object is too complex to export Het 3D-object is te complex om te exporteren +@msg give one element geef één -element op +@msg the element needs an id, the filter's name het -element heeft een id nodig, de naam van het filter +@msg an SVG filter's id is at most {MAX_NAME} characters de id van een SVG-filter is hoogstens {MAX_NAME} tekens lang +@msg <{_1}> isn't an element of an SVG filter <{_1}> is geen element van een SVG-filter +@msg an SVG filter has no event attributes such as {_1} een SVG-filter heeft geen gebeurtenisattributen zoals {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs de afbeeldingen van een SVG-filter zijn data:-URL's in PNG, JPEG, GIF of WebP +@msg the SVG filter isn't valid XML: {e} het SVG-filter is geen geldige XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves van feTurbulence is hoogstens {MAX_OCTAVES} +@msg {what} is at most {max} {what} is hoogstens {max} +@msg feConvolveMatrix's order order van feConvolveMatrix +@msg feMorphology's radius radius van feMorphology +@msg a blur's stdDeviation stdDeviation van een vervaging +@msg the SVG filter has no primitives het SVG-filter heeft geen primitieven +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives een SVG-filter heeft hoogstens {MAX_PRIMITIVES} primitieven +@msg the SVG filter is too large once its attributes are written out het SVG-filter is te groot zodra de attributen zijn uitgeschreven +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all de afbeeldingen van een SVG-filter hebben samen hoogstens {MAX_IMAGE_PIXELS} pixels +@msg the SVG filter can't be drawn: check its primitives and their inputs het SVG-filter kan niet worden getekend: controleer de primitieven en hun invoer +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep de elementen van een SVG-filter zijn hoogstens {MAX_DEPTH} niveaus diep genest +@msg an SVG filter is at most {_1} KB een SVG-filter is hoogstens {_1} kB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) het object heeft geen 3D-effect (Extruderen en afschuinen, Draaien, Opblazen of Roteren) @msg its 3D effect builds no solid het 3D-effect ervan maakt geen massief object @msg bevel must be none or one of {_1} bevel moet none of een van {_1} zijn diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 5184985726..f8e0f840de 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -5818,6 +5818,25 @@ mark-style Japanese Japońskie @msg a 3D effect on a group's fill or stroke draws nothing efekt 3D na wypełnieniu lub obrysie grupy niczego nie rysuje @msg a 3D effect on a group's fill or stroke draws nothing to export efekt 3D na wypełnieniu lub obrysie grupy nie rysuje niczego do eksportu @msg The 3D object is too complex to export Obiekt 3D jest zbyt złożony, aby go wyeksportować +@msg give one element podaj jeden element +@msg the element needs an id, the filter's name element wymaga id, czyli nazwy filtra +@msg an SVG filter's id is at most {MAX_NAME} characters id filtra SVG ma najwyżej {MAX_NAME} znaków +@msg <{_1}> isn't an element of an SVG filter <{_1}> nie jest elementem filtra SVG +@msg an SVG filter has no event attributes such as {_1} filtr SVG nie ma atrybutów zdarzeń, takich jak {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs obrazy filtra SVG to adresy data: PNG, JPEG, GIF lub WebP +@msg the SVG filter isn't valid XML: {e} filtr SVG nie jest poprawnym XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves elementu feTurbulence wynosi najwyżej {MAX_OCTAVES} +@msg {what} is at most {max} {what} wynosi najwyżej {max} +@msg feConvolveMatrix's order order elementu feConvolveMatrix +@msg feMorphology's radius radius elementu feMorphology +@msg a blur's stdDeviation stdDeviation rozmycia +@msg the SVG filter has no primitives filtr SVG nie ma prymitywów +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives filtr SVG ma najwyżej {MAX_PRIMITIVES} prymitywów +@msg the SVG filter is too large once its attributes are written out filtr SVG jest zbyt duży po zapisaniu jego atrybutów +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all obrazy filtra SVG mają łącznie najwyżej {MAX_IMAGE_PIXELS} pikseli +@msg the SVG filter can't be drawn: check its primitives and their inputs nie można narysować filtra SVG: sprawdź jego prymitywy i ich wejścia +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep elementy filtra SVG zagnieżdżają się najwyżej na {MAX_DEPTH} poziomów +@msg an SVG filter is at most {_1} KB filtr SVG ma najwyżej {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) obiekt nie ma efektu 3D (Wyciągnięcie i fazowanie, Obrót, Nadmuchanie ani Obróć) @msg its 3D effect builds no solid jego efekt 3D nie tworzy żadnej bryły @msg bevel must be none or one of {_1} bevel musi mieć wartość none lub jedną z: {_1} diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index f6e54552d4..6b07464204 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -226,7 +226,7 @@ antiAlias Sharp Nítido Arc Lower… Arco Inferior… Arc Tool Ferramenta Arco Arc Upper… Arco Superior… - Arch… Arco… + Arch… Abóbada… Arc… Arco… Area / Path Type Texto de Área / Caminho Area Graph Tool Ferramenta Gráfico de Área @@ -1298,7 +1298,7 @@ antiAlias Sharp Nítido Guides & Grid Guias e Grade H Spacing: Espaçamento H: H: H: - Hair Space Espaço Fino + Hair Space Espaço Ultrafino Hand Tool Ferramenta Mão Hand-Drawn Desenhado à Mão Painted and Sketched Pintado e Esboçado @@ -3142,7 +3142,7 @@ digits Malayalam Malaiala Trim mark weight: Peso da marca de corte: True colour needs version 2004 or later: the nearest of 256 colours is written. A cor verdadeira requer a versão 2004 ou posterior: a cor mais próxima das 256 cores é escrita. Turn off Data Recovery for complex documents Desligar Recuperação de Dados para documentos complexos - Tweak… Torcer… + Tweak… Ajustar… Twirl Rate: Taxa de Redemoinho: Twirl Tool Ferramenta Redemoinho Twist… Torcer… @@ -3290,7 +3290,7 @@ digits Malayalam Malaiala Viewing Distance: Distância de Visualização: W: W: Warnings Avisos - Warp Distorcer + Warp Deformar Warp Options Opções de Distorção Warp Tool Ferramenta Distorcer Wave… Onda… @@ -5936,6 +5936,24 @@ mark-style Japanese Japonesas @msg a 3D effect on a group's fill or stroke draws nothing um efeito 3D no preenchimento ou traçado de um grupo não desenha nada @msg a 3D effect on a group's fill or stroke draws nothing to export um efeito 3D no preenchimento ou traçado de um grupo não desenha nada para exportar @msg The 3D object is too complex to export O objeto 3D é complexo demais para ser exportado +@msg the element needs an id, the filter's name o elemento precisa de um id, o nome do filtro +@msg an SVG filter's id is at most {MAX_NAME} characters o id de um filtro SVG tem no máximo {MAX_NAME} caracteres +@msg <{_1}> isn't an element of an SVG filter <{_1}> não é um elemento de filtro SVG +@msg an SVG filter has no event attributes such as {_1} um filtro SVG não tem atributos de evento como {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs as imagens de um filtro SVG são URLs data: em PNG, JPEG, GIF ou WebP +@msg the SVG filter isn't valid XML: {e} o filtro SVG não é um XML válido: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves de feTurbulence é no máximo {MAX_OCTAVES} +@msg {what} is at most {max} {what} é no máximo {max} +@msg feConvolveMatrix's order order de feConvolveMatrix +@msg feMorphology's radius radius de feMorphology +@msg a blur's stdDeviation stdDeviation de um desfoque +@msg the SVG filter has no primitives o filtro SVG não tem primitivas +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives um filtro SVG tem no máximo {MAX_PRIMITIVES} primitivas +@msg the SVG filter is too large once its attributes are written out o filtro SVG fica grande demais depois que seus atributos são escritos +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all as imagens de um filtro SVG têm no máximo {MAX_IMAGE_PIXELS} pixels no total +@msg the SVG filter can't be drawn: check its primitives and their inputs não é possível desenhar o filtro SVG: verifique suas primitivas e as entradas delas +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep os elementos de um filtro SVG se aninham em no máximo {MAX_DEPTH} níveis +@msg an SVG filter is at most {_1} KB um filtro SVG tem no máximo {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) o objeto não tem efeito 3D (Extrusão e Bisel, Revolver, Inflar ou Girar) @msg its 3D effect builds no solid seu efeito 3D não constrói nenhum sólido @msg bevel must be none or one of {_1} bevel deve ser none ou um de {_1} diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 8dc8336089..7a4e5dea9e 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -2032,7 +2032,7 @@ file-filter Templates Шаблоны Medium Thumbnail View Средние миниатюры Medium Thumbnails Средние миниатюры Menu Dialog Диалоговое окно меню - Merge Объединить + Merge Слить Merge colors into one row Объединить цвета в одну строку Merge Graphic Styles Объединить графические стили Merge Graphic Styles… Объединить графические стили… @@ -5588,6 +5588,25 @@ lighting Light Свет @msg a 3D effect on a group's fill or stroke draws nothing 3D-эффект на заливке или обводке группы ничего не рисует @msg a 3D effect on a group's fill or stroke draws nothing to export 3D-эффект на заливке или обводке группы не рисует ничего для экспорта @msg The 3D object is too complex to export 3D-объект слишком сложен для экспорта +@msg give one element укажите один элемент +@msg the element needs an id, the filter's name элементу нужен id, имя фильтра +@msg an SVG filter's id is at most {MAX_NAME} characters id фильтра SVG содержит не более {MAX_NAME} символов +@msg <{_1}> isn't an element of an SVG filter <{_1}> не является элементом фильтра SVG +@msg an SVG filter has no event attributes such as {_1} у фильтра SVG нет атрибутов событий, таких как {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs изображения фильтра SVG задаются URL data: в формате PNG, JPEG, GIF или WebP +@msg the SVG filter isn't valid XML: {e} фильтр SVG не является допустимым XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves у feTurbulence не больше {MAX_OCTAVES} +@msg {what} is at most {max} {what}: не больше {max} +@msg feConvolveMatrix's order order у feConvolveMatrix +@msg feMorphology's radius radius у feMorphology +@msg a blur's stdDeviation stdDeviation размытия +@msg the SVG filter has no primitives у фильтра SVG нет примитивов +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives у фильтра SVG не более {MAX_PRIMITIVES} примитивов +@msg the SVG filter is too large once its attributes are written out фильтр SVG становится слишком большим после записи его атрибутов +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all изображения фильтра SVG содержат в сумме не более {MAX_IMAGE_PIXELS} пикселей +@msg the SVG filter can't be drawn: check its primitives and their inputs не удается нарисовать фильтр SVG: проверьте его примитивы и их входы +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep элементы фильтра SVG вкладываются не глубже {MAX_DEPTH} уровней +@msg an SVG filter is at most {_1} KB размер фильтра SVG не более {_1} КБ @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) у объекта нет 3D-эффекта (Выдавливание и фаска, Вращение, Надувание или Повернуть) @msg its 3D effect builds no solid его 3D-эффект не строит тела @msg bevel must be none or one of {_1} bevel должен быть none или одним из: {_1} diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index cfb9d9734b..781ff50185 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -5241,7 +5241,7 @@ effect Soft Mjuk On Both Sides På båda sidor Short Kort Full Width Full bredd - Distort Förvräng + Distort Förvrängning Diffuse Glow… Diffus glöd… Glass… Glas… Ocean Ripple… Havskrusning… @@ -5454,6 +5454,25 @@ lighting Light Ljus @msg a 3D effect on a group's fill or stroke draws nothing en 3D-effekt på en grupps fyllning eller linje ritar ingenting @msg a 3D effect on a group's fill or stroke draws nothing to export en 3D-effekt på en grupps fyllning eller linje ritar ingenting att exportera @msg The 3D object is too complex to export 3D-objektet är för komplext för att exporteras +@msg give one element ange ett -element +@msg the element needs an id, the filter's name -elementet behöver ett id, filtrets namn +@msg an SVG filter's id is at most {MAX_NAME} characters ett SVG-filters id har högst {MAX_NAME} tecken +@msg <{_1}> isn't an element of an SVG filter <{_1}> är inte ett element i ett SVG-filter +@msg an SVG filter has no event attributes such as {_1} ett SVG-filter har inga händelseattribut som {_1} +@msg an SVG filter's images are PNG, JPEG, GIF or WebP data: URLs ett SVG-filters bilder är data:-URL:er i PNG, JPEG, GIF eller WebP +@msg the SVG filter isn't valid XML: {e} SVG-filtret är inte giltig XML: {e} +@msg feTurbulence's numOctaves is at most {MAX_OCTAVES} numOctaves för feTurbulence är högst {MAX_OCTAVES} +@msg {what} is at most {max} {what} är högst {max} +@msg feConvolveMatrix's order order för feConvolveMatrix +@msg feMorphology's radius radius för feMorphology +@msg a blur's stdDeviation stdDeviation för en oskärpa +@msg the SVG filter has no primitives SVG-filtret har inga primitiver +@msg an SVG filter has at most {MAX_PRIMITIVES} primitives ett SVG-filter har högst {MAX_PRIMITIVES} primitiver +@msg the SVG filter is too large once its attributes are written out SVG-filtret blir för stort när dess attribut skrivs ut +@msg an SVG filter's images have at most {MAX_IMAGE_PIXELS} pixels in all ett SVG-filters bilder har högst {MAX_IMAGE_PIXELS} pixlar sammanlagt +@msg the SVG filter can't be drawn: check its primitives and their inputs SVG-filtret kan inte ritas: kontrollera dess primitiver och deras indata +@msg an SVG filter's elements nest at most {MAX_DEPTH} deep ett SVG-filters element kapslas högst {MAX_DEPTH} nivåer djupt +@msg an SVG filter is at most {_1} KB ett SVG-filter är högst {_1} KB @msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) objektet har ingen 3D-effekt (Extrudera och fasa, Rotera runt axel, Blås upp eller Rotera) @msg its 3D effect builds no solid dess 3D-effekt bygger ingen solid @msg bevel must be none or one of {_1} bevel måste vara none eller något av {_1} diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 705fc68db2..dc42924e46 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -1579,6 +1579,92 @@ fn menu_labels() -> Vec<(&'static str, &'static str, serde_json::Value)> { labels } +/// The effect an Effect menu item (`effect.apply` or `effect.dialog`) runs. +fn menu_item_effect<'a>(id: &str, p: &'a serde_json::Value) -> Option<&'a str> { + p.get("effect").and_then(serde_json::Value::as_str).filter(|_| matches!(id, "effect.apply" | "effect.dialog")) +} + +/// The label a menu item shows in `lang`, as the menus resolve it: an Effect menu item by its +/// effect's `@id` row when the catalog has one, any other command by its id's row or its English +/// label, and a submenu or an unbuilt item by its English label. +fn shown_menu_label(lang: Lang, item: &crate::menus::Item) -> Option<&'static str> { + use crate::menus::Item; + match item { + Item::Cmd(l, id, p) => { + let by_effect = menu_item_effect(id, p).map(|e| tr_id(lang, e, "")).filter(|s| !s.is_empty()); + Some(by_effect.unwrap_or_else(|| tr_id(lang, id, l))) + } + Item::Todo(l, _) | Item::Sub(l, _) => Some(tr(lang, l)), + Item::Header(_) | Item::Sep => None, + } +} + +/// Items side by side in a menu show different labels in every language, so each can be told +/// from the others. Items with the same English label (the slots of a recent-files list) are +/// alike in every language. +#[test] +fn menu_items_side_by_side_have_different_labels() { + use crate::menus::Item; + fn walk(lang: Lang, path: &str, items: &[Item], out: &mut Vec) { + let mut seen: std::collections::BTreeMap<&str, (&str, &str)> = std::collections::BTreeMap::new(); + for item in items { + let Some(shown) = shown_menu_label(lang, item) else { continue }; + let (english, what) = match item { + Item::Cmd(l, id, p) => (*l, menu_item_effect(id, p).unwrap_or(id)), + Item::Todo(l, _) | Item::Sub(l, _) => (*l, "submenu or unbuilt item"), + Item::Header(_) | Item::Sep => continue, + }; + match seen.get(shown) { + Some(&(other, other_what)) if other != english => { + out.push(format!("{}: {path}: {other:?} ({other_what}) and {english:?} ({what}) both show {shown:?}", lang.0.code)); + } + Some(_) => {} + None => { + seen.insert(shown, (english, what)); + } + } + if let Item::Sub(l, children) = item { + walk(lang, &format!("{path} › {l}"), children, out); + } + } + } + let tree = crate::menus::menu_tree(); + let mut same = vec![]; + for l in &LANGUAGES { + for (title, items) in &tree { + walk(Lang(l), title, items, &mut same); + } + } + assert!(same.is_empty(), "{} pairs of menu items look alike:\n{}", same.len(), same.join("\n")); +} + +/// Menu items show words, never the command or effect id their catalog row is keyed by. +#[test] +fn menu_items_never_show_an_id() { + fn walk(lang: Lang, items: &[crate::menus::Item], out: &mut Vec) { + for item in items { + if let crate::menus::Item::Cmd(l, id, p) = item { + let key = menu_item_effect(id, p).unwrap_or(id); + let shown = shown_menu_label(lang, item).unwrap_or_default(); + if !command_ids(shown).is_empty() && command_ids(l).is_empty() { + out.push(format!("{}: {l:?} ({key}) shows {shown:?}", lang.0.code)); + } + } + if let crate::menus::Item::Sub(_, children) = item { + walk(lang, children, out); + } + } + } + let tree = crate::menus::menu_tree(); + let mut ids = vec![]; + for l in &LANGUAGES { + for (_, items) in &tree { + walk(Lang(l), items, &mut ids); + } + } + assert!(ids.is_empty(), "{} menu items show an id:\n{}", ids.len(), ids.join("\n")); +} + /// The labels toggling items switch to ("Show Guides" once guides are hidden…), from a document /// with every toggle flipped. fn toggled_labels() -> Vec { @@ -2383,6 +2469,98 @@ fn three_d_refusals_translate_with_their_values() { assert_eq!(message(de(), &errors[1].0), "ungültige Parameter für `effect.apply`: Licht: intensity muss eine Zahl von 0 bis 100 sein"); } +/// The values SVG filter refusals put in `{what}` that are messages of their own: the attributes +/// over their limit, named with their element. `kernelUnitLength` is an attribute's name as written. +const SVG_FILTER_PARTS: &[&str] = &["feConvolveMatrix's order", "feMorphology's radius", "a blur's stdDeviation"]; + +/// The SVG filter check's refusals as catalog templates: the messages of `svg_filter.rs` that +/// [`source_messages`] finds, the XML errors its `map_err` closures make included. +fn svg_filter_refusals() -> std::collections::BTreeSet { + let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../effects/src/svg_filter.rs"); + let text = std::fs::read_to_string(path).expect("the SVG filter source"); + let code = without_test_module(&text); + let mut consts = std::collections::BTreeMap::new(); + for (name, value) in str_consts(code) { + consts.entry(name).or_insert_with(Vec::new).push(value); + } + source_messages(code, &[], &consts).into_iter().collect() +} + +/// The SVG filter check's refusals, and the attributes they name, have an `@msg` row in every +/// complete-message catalog. +#[test] +fn svg_filter_refusals_are_translated_in_every_complete_catalog() { + let refusals = svg_filter_refusals(); + assert!(refusals.len() >= 16, "scan found only {} SVG filter refusals: {refusals:?}", refusals.len()); + for m in [ + "the SVG filter isn't valid XML: {e}", + "an SVG filter's id is at most {MAX_NAME} characters", + "<{_1}> isn't an element of an SVG filter", + "{what} is at most {max}", + "an SVG filter is at most {_1} KB", + ] { + assert!(refusals.contains(m), "the scan reads map_err closures and format! arguments: {m}"); + } + let mut missing = vec![]; + for code in COMPLETE_MESSAGES { + let lang = Lang::from_code(code).expect("registered"); + let (entries, _) = parse_entries(lang.0.source); + let rows: std::collections::BTreeSet<&str> = entries.iter().filter(|(ctx, _, _)| ctx == "@msg").map(|(_, src, _)| src.as_str()).collect(); + let parts = SVG_FILTER_PARTS.iter().map(|p| p.to_string()); + missing.extend(refusals.iter().cloned().chain(parts).filter(|m| !rows.contains(m.as_str())).map(|m| format!("{code}: {m}"))); + } + assert!(missing.is_empty(), "{} SVG filter messages have no @msg row:\n{}", missing.len(), missing.join("\n")); +} + +/// An SVG filter's refusal shows in the interface language whole, with the limits, element and +/// attribute names and the XML parser's position as given; the error the command returns stays +/// English. +#[test] +fn svg_filter_refusals_translate_with_their_values() { + let refuse = |xml: &str| { + let e = vectorcraft_effects::svg_filter::check(xml).expect_err("refused"); + vectorcraft_engine::EngineError::BadParams { cmd: "svgFilter.define".into(), msg: e }.to_string() + }; + let fe = |inner: &str| refuse(&format!("{inner}")); + let deep = format!("{}{}", "".repeat(20), "".repeat(20)); + let errors = [ + (refuse(""), "isn't valid XML", vec![]), + (refuse(""), "needs an id", vec!["", "id"]), + (refuse(&format!("", "f".repeat(256))), "characters", vec!["id", "255"]), + (fe("