mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 19:40:21 +00:00
Separations Preview: a second Alt-click on the only visible plate's eye shows every plate
An Alt-click (Option-click on macOS) on a plate's eye in the Separations Preview panel shows that plate alone. Alt-clicking the same eye again, while that plate is the only one of the document's plates shown, now shows every plate, spot plates included, as the help page describes: https://helpx.adobe.com/illustrator/using/printing-color-separations.html - view.separationsPreview takes soloToggle: plate for this click. A plate shown among others becomes the only plate shown, as the help page describes for the first Alt-click. A hidden plate, another plate while one shows alone, or any plate while none is shown also becomes the only plate shown (VectorCraft's own rules). only still shows just the named plate when repeated. Neither adds an undo step. - The eye's tooltip names the second Alt-click, in every catalog. Docs: docs/mcp.md, docs/target-app-parity.md.
This commit is contained in:
@@ -121,7 +121,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"Separations Preview",
|
||||
[],
|
||||
None,
|
||||
"{on?: bool, plates?: [names], toggle?: plate, only?: plate} Separations Preview: show the chosen plates (one plate = greyscale ink coverage) → {on, plates: [{name, spot, visible, rgb}]}",
|
||||
"{on?: bool, plates?: [names], toggle?: plate, only?: plate, soloToggle?: plate (only that plate, or every plate when it is the only one shown)} Separations Preview: show the chosen plates (one plate = grayscale ink coverage) → {on, plates: [{name, spot, visible, rgb}]}",
|
||||
always,
|
||||
separations
|
||||
),
|
||||
@@ -1036,6 +1036,13 @@ fn separations(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
if let Some(n) = text_param(p, "only", C)? {
|
||||
v.separations = Some(vec![check(n)?]);
|
||||
}
|
||||
// The panel's Alt-click on a plate's eye: that plate alone, or every plate when it already
|
||||
// shows alone among the active document's plates.
|
||||
if let Some(n) = text_param(p, "soloToggle", C)? {
|
||||
let n = check(n)?;
|
||||
let alone = v.separations.as_ref().is_some_and(|vis| all.iter().filter(|a| vis.contains(a)).eq([&n]));
|
||||
v.separations = Some(if alone { all.clone() } else { vec![n] });
|
||||
}
|
||||
if let Some(n) = text_param(p, "toggle", C)? {
|
||||
let n = check(n)?;
|
||||
let vis = v.separations.get_or_insert_with(|| all.clone());
|
||||
|
||||
@@ -594,6 +594,78 @@ fn separations_preview_compares_the_visible_plates_as_a_set() {
|
||||
assert!(r["plates"].as_array().unwrap().iter().all(|p| p["visible"] == false), "{r}");
|
||||
}
|
||||
|
||||
/// Each plate's visibility in a `view.separationsPreview` or `color.plates` reply, in plate order.
|
||||
fn visible_plates(r: &Value) -> Vec<bool> {
|
||||
r["plates"].as_array().unwrap().iter().map(|p| p["visible"].as_bool().unwrap()).collect()
|
||||
}
|
||||
|
||||
/// A session whose document has the process plates and the spot plate `Brand Orange`.
|
||||
fn session_with_spot_plate() -> Session {
|
||||
let mut s = session();
|
||||
s.execute("swatch.new", &json!({"name": "Brand Orange", "color": {"c": 0, "m": 60, "y": 100, "k": 0}, "global": true})).unwrap();
|
||||
s.execute("swatch.setSpot", &json!({"name": "Brand Orange"})).unwrap();
|
||||
let a = NodeId(s.execute("shape.rectangle", &json!({"x": 0, "y": 0, "width": 100, "height": 100})).unwrap()["id"].as_u64().unwrap());
|
||||
s.execute("paint.setFill", &json!({"ids": [a.0], "swatch": "Brand Orange"})).unwrap();
|
||||
s
|
||||
}
|
||||
|
||||
/// `soloToggle` (the panel's Alt-click on a plate's eye) shows that plate alone, and every plate
|
||||
/// when it already shows alone. A hidden plate, a plate among others, another solo plate and an
|
||||
/// empty set of plates all give the named plate alone. It leaves the document's undo list and
|
||||
/// modified state alone.
|
||||
#[test]
|
||||
fn separations_preview_solo_toggle_shows_every_plate_the_second_time() {
|
||||
let _g = GLOBAL.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _v = DefaultView::new();
|
||||
let mut s = session_with_spot_plate();
|
||||
let undo = s.doc().unwrap().history.undo.len();
|
||||
let dirty = s.doc().unwrap().is_dirty();
|
||||
let solo = |s: &mut Session, n: &str| visible_plates(&s.execute("view.separationsPreview", &json!({"soloToggle": n})).unwrap());
|
||||
// Off: the preview turns on with the plate alone.
|
||||
assert_eq!(solo(&mut s, "Cyan"), [true, false, false, false, false]);
|
||||
assert_eq!(vectorcraft_render::proof::view().separations, Some(vec!["Cyan".to_string()]));
|
||||
// The same plate again: every plate, the spot plate included, and the preview stays on.
|
||||
assert_eq!(solo(&mut s, "Cyan"), [true; 5]);
|
||||
assert!(vectorcraft_render::proof::view().separations.is_some(), "the preview stays on");
|
||||
// A plate shown among others, then another plate while one shows alone.
|
||||
assert_eq!(solo(&mut s, "Magenta"), [false, true, false, false, false]);
|
||||
assert_eq!(solo(&mut s, "Cyan"), [true, false, false, false, false]);
|
||||
// A hidden plate.
|
||||
s.execute("view.separationsPreview", &json!({"toggle": "Black"})).unwrap();
|
||||
assert_eq!(solo(&mut s, "Yellow"), [false, false, true, false, false]);
|
||||
// No plate shown.
|
||||
s.execute("view.separationsPreview", &json!({"plates": []})).unwrap();
|
||||
assert_eq!(solo(&mut s, "Black"), [false, false, false, true, false]);
|
||||
// The spot plate alone, then every plate.
|
||||
assert_eq!(solo(&mut s, "Brand Orange"), [false, false, false, false, true]);
|
||||
assert_eq!(solo(&mut s, "Brand Orange"), [true; 5]);
|
||||
// A plate the document doesn't have is an error and leaves the view as it is.
|
||||
let before = vectorcraft_render::proof::view();
|
||||
assert!(s.execute("view.separationsPreview", &json!({"soloToggle": "Mauve"})).is_err());
|
||||
assert_eq!(vectorcraft_render::proof::view(), before);
|
||||
assert_eq!(s.doc().unwrap().history.undo.len(), undo, "no undo step");
|
||||
assert_eq!(s.doc().unwrap().is_dirty(), dirty, "not marked modified");
|
||||
// `only` stays a setter: the same plate again keeps it alone.
|
||||
s.execute("view.separationsPreview", &json!({"only": "Cyan"})).unwrap();
|
||||
let r = s.execute("view.separationsPreview", &json!({"only": "Cyan"})).unwrap();
|
||||
assert_eq!(visible_plates(&r), [true, false, false, false, false]);
|
||||
}
|
||||
|
||||
/// A plate counts as shown alone when no other plate of the active document shows: names left in
|
||||
/// the visible set by another document's plates don't count.
|
||||
#[test]
|
||||
fn separations_preview_solo_toggle_counts_the_active_documents_plates() {
|
||||
let _g = GLOBAL.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _v = DefaultView::new();
|
||||
let mut s = session_with_spot_plate();
|
||||
s.execute("view.separationsPreview", &json!({"plates": ["Cyan", "Brand Orange"]})).unwrap();
|
||||
// A new document without the spot plate: Cyan is the only one of its plates shown.
|
||||
s.execute("file.new", &json!({"width": 100, "height": 100})).unwrap();
|
||||
assert_eq!(visible_plates(&s.execute("color.plates", &json!({})).unwrap()), [true, false, false, false]);
|
||||
let r = s.execute("view.separationsPreview", &json!({"soloToggle": "Cyan"})).unwrap();
|
||||
assert_eq!(visible_plates(&r), [true; 4]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn proof_setup_simulates_tritanopia() {
|
||||
let _g = GLOBAL.lock().unwrap_or_else(|e| e.into_inner());
|
||||
|
||||
@@ -3489,7 +3489,7 @@ digits Malayalam Малаялам
|
||||
Show Vivid/Muted Показване на ярки/заглушени
|
||||
Show Warm/Cool Показване на топли/студени
|
||||
Show {kind} Brushes Показване на четки от вида {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Показване/скриване на плака (Alt-клик: само тази плака)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Показване/скриване на плака (Alt-клик: само тази плака; Alt-клик отново: всички плаки)
|
||||
Show: Показване:
|
||||
Shown with the optimised preview. Показано с оптимизирания преглед.
|
||||
Side 1: Страна 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2197,7 +2197,7 @@ digits Malayalam Malajalam
|
||||
Overprint Preview (separations) Pregled pretiska (separacije)
|
||||
Show All Plates Prikaži sve ploče
|
||||
Show all plates Prikaži sve ploče
|
||||
Show/hide plate (Alt-click: only this plate) Prikaži/sakrij ploču (Alt-klik: samo ova ploča)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Prikaži/sakrij ploču (Alt-klik: samo ova ploča; ponovni Alt-klik: sve ploče)
|
||||
Simulate Paper Simuliraj papir
|
||||
Use Black Point Compensation Koristi kompenzaciju crne tačke
|
||||
Working CMYK (don't tag) Radni CMYK (bez oznake)
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4530,7 +4530,7 @@ digits Malayalam Malaiàlam
|
||||
Show Vivid/Muted Mostra els vius/apagats
|
||||
Show Warm/Cool Mostra els càlids/freds
|
||||
Show {kind} Brushes Mostra els pinzells {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Mostra o amaga la planxa (Alt+clic: només aquesta planxa)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Mostra o amaga la planxa (Alt+clic: només aquesta planxa; Alt+clic de nou: totes les planxes)
|
||||
Show: Mostra:
|
||||
Shown with the optimised preview. Es mostra amb la previsualització optimitzada.
|
||||
Shrink Text to Fit Redueix el text perquè hi càpiga
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -2270,7 +2270,7 @@ digits Malayalam Malajálamské
|
||||
Overprint Preview (separations) Náhled přetisků (separace)
|
||||
Show All Plates Zobrazit všechny desky
|
||||
Show all plates Zobrazit všechny desky
|
||||
Show/hide plate (Alt-click: only this plate) Zobrazit/skrýt desku (Alt+kliknutí: jen tato deska)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Zobrazit/skrýt desku (Alt+kliknutí: jen tato deska; další Alt+kliknutí: všechny desky)
|
||||
Simulate Paper Simulovat papír
|
||||
Use Black Point Compensation Použít kompenzaci černého bodu
|
||||
Working CMYK (don't tag) Pracovní CMYK (neoznačovat)
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4761,7 +4761,7 @@ digits Malayalam Malayalam
|
||||
Overprint Preview (separations) Forhåndsvisning af overtryk (separationer)
|
||||
Show All Plates Vis alle plader
|
||||
Show all plates Vis alle plader
|
||||
Show/hide plate (Alt-click: only this plate) Vis/skjul plade (Alt-klik: kun denne plade)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Vis/skjul plade (Alt-klik: kun denne plade; Alt-klik igen: alle plader)
|
||||
Simulate Paper Simulér papir
|
||||
Use Black Point Compensation Brug sortpunktskompensation
|
||||
Working CMYK (don't tag) Arbejds-CMYK (mærk ikke)
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3557,7 +3557,7 @@ digits Malayalam Malayalam
|
||||
Show Vivid/Muted Lebhaft/Gedeckt einblenden
|
||||
Show Warm/Cool Warm/Kalt einblenden
|
||||
Show {kind} Brushes {kind}pinsel einblenden
|
||||
Show/hide plate (Alt-click: only this plate) Platte ein-/ausblenden (Alt-Klick: nur diese Platte)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Platte ein-/ausblenden (Alt-Klick: nur diese Platte; erneuter Alt-Klick: alle Platten)
|
||||
Show: Anzeigen:
|
||||
Shown with the optimised preview. Wird mit der optimierten Vorschau angezeigt.
|
||||
Side 1: Seite 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4229,7 +4229,7 @@ digits Malayalam Μαλαγιάλαμ
|
||||
Show Vivid/Muted Εμφάνιση έντονων/απαλών
|
||||
Show Warm/Cool Εμφάνιση θερμών/ψυχρών
|
||||
Show {kind} Brushes Εμφάνιση πινέλων {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Εμφάνιση/απόκρυψη πλάκας (Alt-κλικ: μόνο αυτή η πλάκα)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Εμφάνιση/απόκρυψη πλάκας (Alt-κλικ: μόνο αυτή η πλάκα· ξανά Alt-κλικ: όλες οι πλάκες)
|
||||
Shown with the optimised preview. Εμφανίζεται με τη βελτιστοποιημένη προεπισκόπηση.
|
||||
Side 1: Πλευρά 1:
|
||||
Side 2: Πλευρά 2:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3593,7 +3593,7 @@ digits Malayalam Malayálam
|
||||
Show Vivid/Muted Mostrar vivos/apagados
|
||||
Show Warm/Cool Mostrar cálidos/fríos
|
||||
Show {kind} Brushes Mostrar pinceles de {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Mostrar/ocultar plancha (Alt+clic: solo esta plancha)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Mostrar/ocultar plancha (Alt+clic: solo esta plancha; Alt+clic otra vez: todas las planchas)
|
||||
Show: Mostrar:
|
||||
Shown with the optimised preview. Se muestra con la vista previa optimizada.
|
||||
Side 1: Lado 1:
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -2231,7 +2231,7 @@ digits Malayalam Malajalam
|
||||
Overprint Preview (separations) Päällepainatuksen esikatselu (erottelut)
|
||||
Show All Plates Näytä kaikki painolevyt
|
||||
Show all plates Näytä kaikki painolevyt
|
||||
Show/hide plate (Alt-click: only this plate) Näytä/piilota painolevy (Alt-napsautus: vain tämä painolevy)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Näytä/piilota painolevy (Alt-napsautus: vain tämä painolevy; uusi Alt-napsautus: kaikki painolevyt)
|
||||
Simulate Paper Simuloi paperia
|
||||
Use Black Point Compensation Käytä mustan pisteen kompensointia
|
||||
Working CMYK (don't tag) Työ-CMYK (ei tunnistetta)
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3581,7 +3581,7 @@ digits Malayalam Malayalam
|
||||
Show Vivid/Muted Afficher vives/atténuées
|
||||
Show Warm/Cool Afficher chaudes/froides
|
||||
Show {kind} Brushes Afficher les formes de type {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Afficher/masquer la plaque (Alt+clic : cette plaque uniquement)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Afficher/masquer la plaque (Alt+clic : cette plaque uniquement, puis à nouveau toutes les plaques)
|
||||
Show: Afficher :
|
||||
Shown with the optimised preview. Affiché avec l’aperçu optimisé.
|
||||
Side 1: Côté 1 :
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3731,7 +3731,7 @@
|
||||
Show its progress, see Cancel and write log lines તેની પ્રગતિ બતાવવી, રદ કરવાની વિનંતી જોવી અને લૉગ લાઇનો લખવી
|
||||
Show segmented color wheel સેગમેન્ટેડ રંગ ચક્ર બતાવો
|
||||
Show smooth color wheel સ્મૂધ રંગ ચક્ર બતાવો
|
||||
Show/hide plate (Alt-click: only this plate) પ્લેટ બતાવો/છુપાવો (Alt-ક્લિક: માત્ર આ પ્લેટ)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) પ્લેટ બતાવો/છુપાવો (Alt-ક્લિક: માત્ર આ પ્લેટ; ફરી Alt-ક્લિક: બધી પ્લેટ)
|
||||
Show: બતાવો:
|
||||
Shown with the optimised preview. ઑપ્ટિમાઇઝ્ડ પ્રીવ્યૂ સાથે બતાવેલ.
|
||||
Side 1: બાજુ 1:
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -4873,7 +4873,7 @@ antiAlias Sharp शार्प
|
||||
Show Vivid/Muted चमकीले/मंद दिखाएँ
|
||||
Show Warm/Cool शो वार्म / कूल
|
||||
Show: दिखाएँ:
|
||||
Show/hide plate (Alt-click: only this plate) प्लेट दिखाएँ/छिपाएँ (Alt-क्लिक: केवल यही प्लेट)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) प्लेट दिखाएँ/छिपाएँ (Alt-क्लिक: केवल यही प्लेट; फिर से Alt-क्लिक: सभी प्लेटें)
|
||||
Shown with the optimised preview. आशावादी प्रीव्यू के साथ दिखाया गया है।
|
||||
Shrink Text to Fit टेक्स्ट को फिट करने के लिए सिकोड़ें
|
||||
Side 1: साइड 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4246,7 +4246,7 @@ mark-style Japanese Japán
|
||||
Show Vivid/Muted Élénk/tompa változatok
|
||||
Show Warm/Cool Meleg/hideg változatok
|
||||
Show {kind} Brushes Ecsetek megjelenítése: {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Nyomólemez megjelenítése/elrejtése (Alt+kattintás: csak ez a lemez)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Nyomólemez megjelenítése/elrejtése (Alt+kattintás: csak ez a lemez; újabb Alt+kattintás: minden lemez)
|
||||
Show: Megjelenítés:
|
||||
Shown with the optimised preview. Az optimalizált előnézettel együtt látható.
|
||||
Shrink Text to Fit Szöveg zsugorítása a kerethez
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2020,7 +2020,7 @@ digits Malayalam Malayalam
|
||||
Overprint Preview (separations) Pratinjau overprint (separasi)
|
||||
Show All Plates Tampilkan semua pelat
|
||||
Show all plates Tampilkan semua pelat
|
||||
Show/hide plate (Alt-click: only this plate) Tampilkan/sembunyikan pelat (Alt-klik: hanya pelat ini)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Tampilkan/sembunyikan pelat (Alt-klik: hanya pelat ini; Alt-klik lagi: semua pelat)
|
||||
Simulate Paper Simulasikan kertas
|
||||
Use Black Point Compensation Gunakan kompensasi titik hitam
|
||||
Working CMYK (don't tag) CMYK kerja (tanpa tag)
|
||||
|
||||
|
@@ -3638,7 +3638,7 @@ digits Malayalam Malayalam
|
||||
Show Vivid/Muted Mostra vivaci/tenui
|
||||
Show Warm/Cool Mostra caldi/freddi
|
||||
Show {kind} Brushes Mostra pennelli di tipo {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Mostra/nascondi lastra (Alt+clic: solo questa lastra)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Mostra/nascondi lastra (Alt+clic: solo questa lastra; di nuovo Alt+clic: tutte le lastre)
|
||||
Show: Mostra:
|
||||
Shown with the optimised preview. Mostrato con l'anteprima ottimizzata.
|
||||
Side 1: Lato 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3428,7 +3428,7 @@ mark-style Japanese 日本式
|
||||
Show all plates すべての版を表示
|
||||
Show handles when multiple anchors are selected 複数のアンカーを選択したときにハンドルを表示
|
||||
Show {kind} Brushes {kind}ブラシを表示
|
||||
Show/hide plate (Alt-click: only this plate) 版の表示/非表示 (Alt+クリック: この版のみ)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) 版の表示/非表示 (Alt+クリック: この版のみ、もう一度 Alt+クリック: すべての版)
|
||||
Show: 表示:
|
||||
Shown with the optimised preview. 最適化プレビューで表示されます。
|
||||
Side 1: 辺 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4189,7 +4189,7 @@ digits Malayalam მალაიალამური
|
||||
Overprint Preview (separations) ზედდაბეჭდვის წინასწარი ნახვა (სეპარაციები)
|
||||
Show All Plates ყველა ფირფიტის ჩვენება
|
||||
Show all plates ყველა ფირფიტის ჩვენება
|
||||
Show/hide plate (Alt-click: only this plate) ფირფიტის ჩვენება/დამალვა (Alt-დაწკაპუნებით: მხოლოდ ეს ფირფიტა)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) ფირფიტის ჩვენება/დამალვა (Alt-დაწკაპუნებით: მხოლოდ ეს ფირფიტა; ხელახლა Alt-დაწკაპუნებით: ყველა ფირფიტა)
|
||||
Simulate Paper ქაღალდის იმიტაცია
|
||||
Use Black Point Compensation შავი წერტილის კომპენსაციის გამოყენება
|
||||
Working CMYK (don't tag) სამუშაო CMYK (ტეგის გარეშე)
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3417,7 +3417,7 @@ mark-style Japanese 일본식
|
||||
Show all plates 모든 분판 표시
|
||||
Show handles when multiple anchors are selected 여러 앵커 선택 시 핸들 표시
|
||||
Show {kind} Brushes {kind} 브러시 표시
|
||||
Show/hide plate (Alt-click: only this plate) 분판 표시/숨기기(Alt 클릭: 이 분판만)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) 분판 표시/숨기기(Alt 클릭: 이 분판만, 다시 Alt 클릭: 모든 분판)
|
||||
Show: 표시:
|
||||
Shown with the optimised preview. 최적화된 미리 보기와 함께 표시됩니다.
|
||||
Side 1: 면 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2635,7 +2635,7 @@ digits Malayalam Malayalam
|
||||
Overprint Preview (separations) Overprintvoorbeeld (separaties)
|
||||
Show All Plates Alle platen weergeven
|
||||
Show all plates Alle platen weergeven
|
||||
Show/hide plate (Alt-click: only this plate) Plaat weergeven/verbergen (Alt-klik: alleen deze plaat)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Plaat weergeven/verbergen (Alt-klik: alleen deze plaat; nogmaals Alt-klik: alle platen)
|
||||
Simulate Paper Papier simuleren
|
||||
Use Black Point Compensation Zwartpuntcompensatie gebruiken
|
||||
Working CMYK (don't tag) Werk-CMYK (niet taggen)
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2188,7 +2188,7 @@ digits Malayalam Malajalam
|
||||
Overprint Preview (separations) Podgląd nadruku (rozbarwienia)
|
||||
Show All Plates Pokaż wszystkie płyty
|
||||
Show all plates Pokaż wszystkie płyty
|
||||
Show/hide plate (Alt-click: only this plate) Pokaż/ukryj płytę (kliknięcie z Alt: tylko ta płyta)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Pokaż/ukryj płytę (kliknięcie z Alt: tylko ta płyta; ponowne kliknięcie z Alt: wszystkie płyty)
|
||||
Simulate Paper Symuluj papier
|
||||
Use Black Point Compensation Użyj kompensacji punktu czerni
|
||||
Working CMYK (don't tag) Roboczy CMYK (bez znacznika)
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3027,7 +3027,7 @@ digits Malayalam Malaiala
|
||||
Show handles when multiple anchors are selected Mostrar alças quando vários pontos de ancoragem estão selecionados
|
||||
Show in Folder Mostrar na Pasta
|
||||
Show {kind} Brushes Mostrar Pincéis de {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Mostrar/ocultar placa (Alt-clique: somente esta placa)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Mostrar/ocultar placa (Alt-clique: somente esta placa; Alt-clique de novo: todas as placas)
|
||||
Show: Mostrar:
|
||||
Shown with the optimised preview. Exibido com a visualização otimizada.
|
||||
Side 1: Lado 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3625,7 +3625,7 @@ digits Malayalam Малаялам
|
||||
Show Vivid/Muted Показать яркие/приглушённые
|
||||
Show Warm/Cool Показать тёплые/холодные
|
||||
Show {kind} Brushes Показать кисти {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Показать/скрыть пластину (Alt+щелчок: только эту пластину)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Показать/скрыть пластину (Alt+щелчок: только эту пластину; повторный Alt+щелчок: все пластины)
|
||||
Show: Показать:
|
||||
Shown with the optimised preview. Показано с оптимизированным просмотром.
|
||||
Side 1: Сторона 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3509,7 +3509,7 @@ digits Malayalam Malayalam
|
||||
Show Vivid/Muted Visa livfull/dämpad
|
||||
Show Warm/Cool Visa varm/kall
|
||||
Show {kind} Brushes Visa {kind}-penslar
|
||||
Show/hide plate (Alt-click: only this plate) Visa/dölj plåt (Alt-klick: endast den här plåten)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Visa/dölj plåt (Alt-klick: endast den här plåten; Alt-klick igen: alla plåtar)
|
||||
Show: Visa:
|
||||
Shown with the optimised preview. Visas med den optimerade förhandsgranskningen.
|
||||
Side 1: Sida 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3380,7 +3380,7 @@ digits Malayalam Malayalam
|
||||
Show Vivid/Muted Canlı/Sessiz Göster
|
||||
Show Warm/Cool Sıcak/Soğuk Göster
|
||||
Show {kind} Brushes {kind} Fırçalarını Göster
|
||||
Show/hide plate (Alt-click: only this plate) Plakayı göster/gizle (Alt tuşuyla tıklayın: yalnızca bu plaka)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Plakayı göster/gizle (Alt tuşuyla tıklayın: yalnızca bu plaka; yeniden Alt tuşuyla tıklayın: tüm plakalar)
|
||||
Show: Göster:
|
||||
Shown with the optimised preview. Optimize edilmiş önizlemeyle gösterilir.
|
||||
Side 1: 1. Taraf:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3630,7 +3630,7 @@ digits Malayalam Малаялам
|
||||
Show Vivid/Muted Показати яскраві/приглушені
|
||||
Show Warm/Cool Показати теплі/холодні
|
||||
Show {kind} Brushes Показати пензлі {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Показати/приховати пластину (Alt+клацання: тільки цю пластину)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Показати/приховати пластину (Alt+клацання: тільки цю пластину; повторне Alt+клацання: усі пластини)
|
||||
Show: Показати:
|
||||
Shown with the optimised preview. Показано оптимізованим переглядом.
|
||||
Side 1: Сторона 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3996,7 +3996,7 @@ mark-style Japanese Kiểu Nhật
|
||||
Show Vivid/Muted Hiện màu sống động/tối
|
||||
Show Warm/Cool Hiện màu nóng/lạnh
|
||||
Show {kind} Brushes Hiện cọ {kind}
|
||||
Show/hide plate (Alt-click: only this plate) Hiện/ẩn bản in (Alt-bấm: chỉ bản in này)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) Hiện/ẩn bản in (Alt-bấm: chỉ bản in này; Alt-bấm lần nữa: tất cả bản in)
|
||||
Show: Hiện:
|
||||
Shown with the optimised preview. Hiển thị với bản xem trước được tối ưu hóa.
|
||||
Side 1: Mặt 1:
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 205 and column 5.
|
@@ -3452,7 +3452,7 @@ digits Malayalam 马拉雅拉姆数字
|
||||
Show Vivid/Muted 显示鲜艳/柔和
|
||||
Show Warm/Cool 显示暖色/冷色
|
||||
Show {kind} Brushes 显示{kind}画笔
|
||||
Show/hide plate (Alt-click: only this plate) 显示/隐藏色版 (Alt-单击:仅此色版)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) 显示/隐藏色版 (Alt-单击:仅此色版;再次 Alt-单击:所有色版)
|
||||
Show: 显示:
|
||||
Shown with the optimised preview. 与优化预览一起显示。
|
||||
Side 1: 侧边 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4771,7 +4771,7 @@ digits Malayalam 馬來亞拉姆數字
|
||||
Show Vivid/Muted 顯示鮮豔/柔和
|
||||
Show Warm/Cool 顯示暖色/冷色
|
||||
Show {kind} Brushes 顯示{kind}筆刷
|
||||
Show/hide plate (Alt-click: only this plate) 顯示/隱藏色版 (Alt-按一下:僅此色版)
|
||||
Show/hide plate (Alt-click: only this plate; Alt-click again: all plates) 顯示/隱藏色版 (Alt-按一下:僅此色版;再次 Alt-按一下:所有色版)
|
||||
Show: 顯示:
|
||||
Shown with the optimised preview. 於最佳化預覽時顯示。
|
||||
Side 1: 側面 1:
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1,5 +1,6 @@
|
||||
//! Separations Preview panel: process plates C/M/Y/K plus spot plates with eye toggles (one visible
|
||||
//! plate renders as greyscale ink coverage; Alt-click an eye to show only that plate), and the
|
||||
//! plate renders as grayscale ink coverage; Alt-click an eye to show only that plate, and Alt-click
|
||||
//! the eye of the plate shown alone to show every plate), and the
|
||||
//! colour-management controls behind Edit → Color Settings… / Assign Profile… and View → Proof
|
||||
//! Setup (working spaces, color management policies, intent, black-point compensation, proof
|
||||
//! target, gamut check).
|
||||
@@ -59,11 +60,11 @@ fn plates_section(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
let vis = visible(&p.name);
|
||||
let mut clicked = false;
|
||||
ui.add_enabled_ui(on, |ui| {
|
||||
clicked = widgets::toggle_icon(ui, "eye", vis, 18.0, tl!("Show/hide plate (Alt-click: only this plate)"));
|
||||
clicked =
|
||||
widgets::toggle_icon(ui, "eye", vis, 18.0, tl!("Show/hide plate (Alt-click: only this plate; Alt-click again: all plates)"));
|
||||
});
|
||||
if clicked && on {
|
||||
let key = if alt { "only" } else { "toggle" };
|
||||
run(app, "view.separationsPreview", json!({ key: p.name }));
|
||||
run(app, "view.separationsPreview", eye_click(&p.name, alt));
|
||||
}
|
||||
let (r, _) = ui.allocate_exact_size(vec2(14.0, 14.0), Sense::hover());
|
||||
let q = |x: f32| (x.clamp(0.0, 1.0) * 255.0).round() as u8;
|
||||
@@ -75,6 +76,12 @@ fn plates_section(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
});
|
||||
}
|
||||
|
||||
/// The `view.separationsPreview` params for a click on plate `name`'s eye: with Alt, that plate
|
||||
/// alone, or every plate when it already shows alone; without, the plate shown or hidden.
|
||||
fn eye_click(name: &str, alt: bool) -> Value {
|
||||
if alt { json!({"soloToggle": name}) } else { json!({"toggle": name}) }
|
||||
}
|
||||
|
||||
/// A dropdown of the `kind` profiles after `extra` (a built-in entry, shown in the UI language);
|
||||
/// profile names are shown as they are. Returns the chosen name.
|
||||
pub(crate) fn profile_dropdown(ui: &mut Ui, id: &str, current: &str, kind: ProfileKind, extra: Option<&str>) -> Option<String> {
|
||||
@@ -345,6 +352,16 @@ mod tests {
|
||||
assert!(panel.iter().all(|(id, _)| cms::ProofTarget::parse(id).is_some_and(|t| t.id() == *id)));
|
||||
}
|
||||
|
||||
/// An Alt-click on a plate's eye sends `soloToggle`, which `view.separationsPreview` takes, and
|
||||
/// a plain click sends `toggle`.
|
||||
#[test]
|
||||
fn an_alt_click_on_a_plates_eye_sends_solo_toggle() {
|
||||
assert_eq!(eye_click("Cyan", true), json!({"soloToggle": "Cyan"}));
|
||||
assert_eq!(eye_click("Brand Orange", false), json!({"toggle": "Brand Orange"}));
|
||||
let spec = vectorcraft_engine::cmd::command_specs().iter().find(|c| c.id == "view.separationsPreview");
|
||||
assert!(spec.is_some_and(|c| c.params.contains("soloToggle?:")));
|
||||
}
|
||||
|
||||
/// Assign Profile's three choices: no profile, the working space assigned as the profile, or
|
||||
/// another profile; a choice the document already has runs nothing.
|
||||
#[test]
|
||||
|
||||
@@ -210,7 +210,7 @@ pub(crate) mod accessibility_tests {
|
||||
let tree = tree(|ui| {
|
||||
icon_button(ui, "link", "Constrain Proportions", true, 24.0);
|
||||
toggle_icon(ui, "eye", true, 18.0, "Show all plates");
|
||||
toggle_icon(ui, "eye", false, 18.0, "Show/hide plate (Alt-click: only this plate)");
|
||||
toggle_icon(ui, "eye", false, 18.0, "Show/hide plate (Alt-click: only this plate; Alt-click again: all plates)");
|
||||
orientation_button(ui, false, true, "Portrait");
|
||||
orientation_button(ui, true, false, "Landscape");
|
||||
layout_button(ui, &[(0, 0), (1, 0)], true, "Grid by Row");
|
||||
@@ -220,7 +220,7 @@ pub(crate) mod accessibility_tests {
|
||||
let off = |label| assert_eq!(role_and_state(&tree, label), (Role::Button, Some(Toggled::False)), "{label}");
|
||||
on("Constrain Proportions");
|
||||
on("Show all plates");
|
||||
off("Show/hide plate (Alt-click: only this plate)");
|
||||
off("Show/hide plate (Alt-click: only this plate; Alt-click again: all plates)");
|
||||
on("Portrait");
|
||||
off("Landscape");
|
||||
on("Grid by Row");
|
||||
|
||||
@@ -1169,6 +1169,13 @@ styles and brushes.
|
||||
`color.removeProfile`, `view.proofSetup`, `view.proofColors`, `view.overprintPreview`, `view.separationsPreview` and
|
||||
`swatch.setSpot` reject a param of the wrong type, such as `"bpc": "no"`, `"on": 1`, `"to": 5` or `"colors": "#fff"`,
|
||||
and change nothing. Omitting a param or giving null keeps its default.
|
||||
`view.separationsPreview {soloToggle: plate}` is the Separations panel's Alt-click on a plate's eye: it shows that
|
||||
plate alone, and when that plate is already the only one of the active document's plates shown, it shows every
|
||||
plate, spot plates included ([Print color separations](https://helpx.adobe.com/illustrator/using/printing-color-separations.html)
|
||||
describes the second Alt-click or Option-click on the eye bringing every separation back, and the first one showing
|
||||
that plate alone). A hidden plate, another plate while one shows alone, or any plate while none is shown becomes
|
||||
the only plate shown; these cases are VectorCraft's own rules. `only` always shows just the named plate, so
|
||||
repeating it changes nothing. Neither adds an undo step.
|
||||
The Separations panel's Assign rows (where Edit › Assign Profile… goes) act on the profile of the document's color
|
||||
mode: Don't Color Manage This Document runs `edit.assignProfile` with null for that model (no profile, so the colors
|
||||
show through the working space), Working RGB or Working CMYK with the working space's name (that profile stays
|
||||
|
||||
@@ -2064,6 +2064,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- The Place dialog has a Show Import Options checkbox after Link, Template and Replace ([Place multiple files in a document](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-other-file-types/place-multiple-files-in-a-document.html)). On (VectorCraft's default, saved with the preferences), each PDF, DXF or text file asks for its import options before it is placed, also in the place cursor; off (`file.place {showImportOptions: false}`), it is placed with the options last confirmed for its format, and only an encrypted PDF asks, for its password. Text Import Options now starts from the options confirmed last (`crates/ui-egui/src/tests/place.rs`).
|
||||
- A Shift-click with the loaded place cursor opens the current file's import options (text, DXF, PDF page or embedded PSD) and OK places it at the click, with Show Import Options on or off and for a cursor loaded by `file.place.queue` ([Place multiple files](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf)). VectorCraft's own rules: a file without such a dialog places as a click does, Cancel leaves the file unplaced, a Shift-drag places at the dragged size, and headless the Shift-click places as a click (`crates/tools/src/place.rs`, `crates/engine/src/tests/place.rs`, `crates/ui-egui/src/tests/place.rs`).
|
||||
- Separations Preview shows placed and embedded raster images on the visible plates, as it shows vector art (#4153): an RGB image's pixels are separated into process inks with the proof setup's intent, a CMYK image shows its own inks, a hidden plate's ink leaves the image, and with one plate visible the image shows that plate's ink as a grey. Raster images carry no spot ink, so a spot plate shown alone shows them as paper; a colorized image shows its color's plates. Emoji and other bitmap glyphs follow the same rule. The plate-filtered pixels and their reduced-size copies are kept apart from the image's own pixels, for each set of visible plates, proof setup and color settings, and with the preview off nothing changes. Evidence: `tests::colorize::separations_preview_shows_an_rgb_images_process_inks`, `separations_preview_shows_a_cmyk_images_own_inks`, `separations_preview_keeps_an_images_pixels_per_plate_set`. Print preview fidelity remains the open gap, so scores and hours are unchanged.
|
||||
- In the Separations Preview panel, an Alt-click (Option-click on macOS) on the eye of the plate shown alone shows every plate again, spot plates included, as [the help page](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) describes for a second modified click on the eye (`view.separationsPreview {soloToggle: plate}`); an Alt-click on a plate shown among others shows only that plate, as the help page describes for the first one. VectorCraft's own rules: an Alt-click on a hidden plate, on another plate while one shows alone or while no plate is shown shows only that plate, and `only` still shows just the named plate when repeated (`crates/engine/src/tests/colormgmt.rs`, `crates/ui-egui/src/panels/separations.rs`).
|
||||
- Desktop print transport uses `craft-print` for CUPS and modern Windows. Sheet composition, copies, separations and colour management remain in VectorCraft. The Print dialog's Media list also carries the Japanese papers — JIS B4 257 × 364 mm, JIS B5 182 × 257 mm and JIS B6 128 × 182 mm beside the ISO B4/B5 (250 × 353 and 176 × 250 mm, kept so settings and presets saved before them keep their paper), and はがき 100 × 148 mm, 往復はがき 148 × 200 mm, 封筒 長形3号 120 × 235 mm, 長形4号 90 × 225 mm, 角形2号 240 × 332 mm, 角形3号 216 × 277 mm and 四六判 127 × 188 mm; the JSON id or the dialog label names a paper, any case and spacing (`B5 (JIS)` or `b5jis`) (`crates/pdf/src/print/settings.rs`, `crates/pdf/src/tests/print.rs`). The print-preview and physical-device fidelity gaps remain, so print scores and hours are unchanged.
|
||||
- The Print dialog's Document Ink Options list shows an icon before each spot ink's name, and a click on it prints that one ink as process inks (on the Cyan, Magenta, Yellow and Black plates, with no plate of its own) or as a spot ink again, as [the help page](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) describes for single spot colors. Other spot inks keep their plates, and spot gradient stops and DCS images' spot plates follow each ink's choice (`print.setup {settings: {output: {inks: [{name, convertToProcess: true}]}}}`, kept with the document and in print presets; `print.preview` lists every ink as `documentInks`). These are VectorCraft's own rules: Convert All Spot Colors to Process converts every spot ink and dims the icons while keeping each ink's own choice, a converted ink's Print, Frequency and Angle are dimmed and kept, and process inks and Registration have no icon. Evidence: `print::one_spot_ink_converts_to_process_and_the_others_keep_their_plates`, `print::converting_every_spot_ink_overrides_and_keeps_each_inks_own_choice`, `print::a_spot_gradient_stop_prints_its_process_plates`, `cmykimages::a_dcs_image_converts_only_the_spot_ink_chosen`, `tests::print::a_spot_ink_converted_to_process_is_saved_and_listed_without_a_plate`, `dialogs::tests_print::a_spot_inks_icon_converts_it_to_process_and_back`. Print scores and hours are unchanged.
|
||||
- The Print dialog's Output section has Overprint Black under Convert All Spot Colors to Process, off by default and available with Separations ([Print color separations](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) lists it among the separation options): black art then leaves the inks under it on the other plates (`print.setup {settings: {output: {overprintBlack: true}}}`, kept with the document and in print presets). Solid 100% K or 100% gray fills, strokes and characters (to within half a percent, as Edit › Edit Colors › Overprint Black counts them), and gradients whose every stop (every color point of a freeform gradient) is, overprint; rich, RGB, Lab, spot-linked and lighter blacks are not marked, paints already set to overprint keep that setting, and only the printed copy is marked. These limits are VectorCraft's own rules. Characters set to overprint now also leave the inks below them on printed PDF plates, a type object's own fill in a PDF is drawn with its blending mode, and Edit › Edit Colors › Overprint Black counts a gradient with a stop linked to a spot swatch as a spot black, as it counts a solid one, and a freeform gradient by the color points it draws from. On a plate, an overprinting paint that puts none of that plate's ink down is drawn as nothing; on PostScript plates so is up to half a percent of another ink in a color that counts as black, and any other faint ink stays on the plate. Evidence: `print::overprint_black_keeps_the_inks_under_solid_black_on_separations`, `print::overprint_black_keeps_the_cyan_under_near_and_freeform_blacks_on_postscript_plates`, `print::overprinting_paints_keep_their_faint_ink_on_postscript_plates`, `print::overprinting_type_leaves_the_inks_below_on_separations`, `print::a_type_objects_own_black_fill_overprints_on_separations`, `tests::print::overprint_black_is_saved_with_the_setup_and_in_presets`, `overprint::tests::a_gradient_with_a_spot_linked_stop_is_black_only_with_spot`, `overprint::tests::a_freeform_gradient_is_black_when_every_point_is`. Print scores and hours are unchanged.
|
||||
|
||||
Reference in New Issue
Block a user