Merge main into feat/width-profile-reorder

This commit is contained in:
dotCooCoo committed 2026-12-05 13:04:00 -08:00
commit a7a5bfff70
16 files changed
+5447 -62

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ gate: all six core workflows (path drawing and editing, paint and style, type, l
production, file exchange) work end to end on macOS with save and reopen, and only the last is partial, without
blocking it ([Alpha gate](docs/roadmap.md#alpha-gate)).
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status/error messages remain partial, and the pinned CI/release fonts and web startup list contain no Gujarati face; web selection stays unavailable until a Gujarati interface face is bundled. Scores and estimates unchanged.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status and error messages: 4,946 `@msg` and 56 `@msgplural` rows (2026-12-02); with 155 menu, label and undo rows added the same day the catalog has 10,890 rows; all machine-assisted, native review pending; `gu` is in `COMPLETE_MESSAGES`. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so a web build made with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans Gujarati offers Gujarati; a web build without it does not. Scores and estimates unchanged.
## Headline numbers
@@ -98,7 +98,7 @@ Weights, evidence and the missing items per area: [target-app-parity.md](docs/ta
| Simplified Chinese | `zh-hans` | partial (most messages translated, #2578; some remain untranslated) | 85% |
| Spanish | `es` | full | 100% |
| Hindi | `hi` | catalog complete; machine-assisted draft, native review pending | complete under the scanner |
| Gujarati | `gu` | 4,673 contributor-reviewed catalog rows; 11 corrections applied to the 387 additions | menus and dialogs; status/error messages partial |
| Gujarati | `gu` | 4,673 contributor-reviewed catalog rows; 11 corrections applied to the 387 additions | menus, dialogs, status and error messages (messages machine-assisted, review pending) |
| Arabic | `ar` | none (no right-to-left interface) | 0% |
| French | `fr` | full | 100% |
| Portuguese (Brazil) | `pt-br` | full | 100% |
+117 -9
View File
@@ -1019,7 +1019,8 @@ mod portable {
/// What our last write put on the clipboard, for a read answered late ([`Unanswered::paste`]): a
/// paste does not take what this app copied. Whether the clipboard still holds a copy is
/// [`Clipboard::owns`](ClipboardBackend::owns).
/// [`Clipboard::owns`](ClipboardBackend::owns). A bitmap is known by its size alone, so another
/// app's bitmap of the same size counts as the Copy made here.
#[derive(Clone)]
enum Ours {
Text(String),
@@ -1204,7 +1205,10 @@ mod portable {
/// paste's bitmap read waits. Once it comes,
/// the same read is made again, since the clipboard may have changed hands meanwhile.
/// `None`, so the paste takes the internal clipboard, when that answer doesn't come or the
/// new one is what `ours` put on the clipboard. Otherwise the clipboard is read as
/// clipboard, read as `ours` was written (its text or its bitmap), holds what `ours` put
/// there; when that takes a read of its own, copied files are read before it, and before a
/// bitmap read the text as well. Otherwise
/// the clipboard is read as
/// [`Clipboard::read_now_or_later`] and the paste read it, the new answer standing in for
/// the read it answers: copied files, else
/// text, else the bitmap, and the bitmap when it is asked for and the text is blank or only
@@ -1220,21 +1224,49 @@ mod portable {
.unwrap_or_else(|why| Answer::failed(request, why))
};
// The late answer may come from an app that lost the clipboard while it was awaited.
let answer = fresh(self.request);
let held = match (&answer, ours) {
(Answer::Text(Ok(now)), Some(Ours::Text(t))) => now == t,
(Answer::Image(Ok(now)), Some(Ours::Image(w, h))) => (now.width, now.height) == (*w, *h),
let mut answer = Some(fresh(self.request));
// The Copy made here is read as it was written, whatever the late read was: a Copy's
// text read that answers late leaves a bitmap Copy with no text to compare.
let written = match ours {
Some(Ours::Text(_)) => Some(Request::Text),
Some(Ours::Image(..)) => Some(Request::Image),
None => None,
};
let mut check = None;
let mut text_first = None;
let mut files_read = false;
if let Some(written) = written.filter(|w| answer.as_ref().is_some_and(|a| a.request() != *w)) {
// Copied files are read first: a Copy made here writes none, and a read of the
// Copy's format that gets no answer leaves the worker busy for the files' read.
let files = answer.take_if(|a| a.request() == Request::Files).unwrap_or_else(|| fresh(Request::Files));
if let Some(f) = copied_file(files.files(), mimes) {
return Some(f);
}
files_read = true;
// The text is read before a bitmap check for the same reason: a bitmap read that
// gets no answer leaves the worker busy for the text's read.
if written == Request::Image && mimes.contains(&TEXT) && !answer.as_ref().is_some_and(|a| a.request() == Request::Text) {
text_first = Some(fresh(Request::Text));
}
check = Some(fresh(written));
}
let held = match (check.as_ref().or(answer.as_ref()), ours) {
(Some(Answer::Text(Ok(now))), Some(Ours::Text(t))) => now == t,
(Some(Answer::Image(Ok(now))), Some(Ours::Image(w, h))) => (now.width, now.height) == (*w, *h),
_ => false,
};
if held {
return None;
}
let mut answer = Some(answer);
let mut read = |request: Request| match answer.take_if(|a| a.request() == request) {
let mut read = |request: Request| match answer
.take_if(|a| a.request() == request)
.or_else(|| check.take_if(|a| a.request() == request))
.or_else(|| text_first.take_if(|a| a.request() == request))
{
Some(answer) => answer,
None => fresh(request),
};
if let Some(f) = copied_file(read(Request::Files).files(), mimes) {
if !files_read && let Some(f) = copied_file(read(Request::Files).files(), mimes) {
return Some(f);
}
let text = if mimes.contains(&TEXT) { read(Request::Text).text().ok().filter(|t| !t.is_empty()) } else { None };
@@ -2080,6 +2112,82 @@ mod portable {
assert!(paste_after_check(2).is_none());
}
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))]
#[test]
fn a_paste_after_an_unanswered_text_read_finds_a_bitmap_copied_here() {
// A Copy reads the clipboard's text first; when that read gets no answer in its wait, the
// Copy's art goes out as a `width`×1 bitmap with no text (a placed photo too large for
// the SVG markup to go out as text). The paste then waits for the text read's answer.
let paste_after_copy = |width: usize, fill: u8| {
let (mut cb, release) = slow_owner(move |request| match request {
Request::Image => Answer::Image(Ok(arboard::ImageData { width, height: 1, bytes: Cow::Owned(vec![fill; width * 4]) })),
_ => Answer::failed(request, "none".into()),
});
assert!(cb.read_waiting(Request::Text, Duration::ZERO).text().is_err());
let unanswered = cb.unanswered(&vectorcraft_engine::cmd::clipboard::PASTE_ORDER).expect("the text read is kept for the paste");
let paste = std::thread::spawn(move || unanswered.paste(Some(&Ours::Image(2, 1)), &vectorcraft_engine::cmd::clipboard::PASTE_ORDER));
drop(release);
paste.join().ok().flatten()
};
// The bitmap copied here: the paste takes the internal clipboard, not a picture of it.
assert!(paste_after_copy(2, 0).is_none());
// A bitmap is known by its size: another app's bitmap of the same size counts as the Copy.
assert!(paste_after_copy(2, 0xff).is_none());
// Another app's bitmap of another size is pasted.
let pasted = paste_after_copy(3, 0).expect("the other app's bitmap is pasted");
assert_eq!((pasted.mime, decode_png(&pasted.data).map(|i| i.dimensions())), (PNG, Some((3, 1))));
}
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))]
#[test]
fn a_paste_after_an_unanswered_text_read_takes_copied_files_before_reading_the_bitmap() {
let d = tempfile::Builder::new().prefix("vectorcraft-late-files-").tempdir().unwrap();
let art = d.path().join("art.png");
let mut png = vec![];
image::RgbaImage::new(2, 2).write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png).unwrap();
std::fs::write(&art, &png).unwrap();
let asked = std::sync::Arc::new(std::sync::Mutex::new(Vec::new()));
let seen = asked.clone();
// The owner offers files and no text; a bitmap read would get no answer in its wait.
let (mut cb, release) = slow_owner(move |request| {
seen.lock().unwrap().push(request);
match request {
Request::Files => Answer::Files(vec![art.clone()]),
_ => Answer::failed(request, "none".into()),
}
});
assert!(cb.read_waiting(Request::Text, Duration::ZERO).text().is_err());
let unanswered = cb.unanswered(&vectorcraft_engine::cmd::clipboard::PASTE_ORDER).expect("the text read is kept for the paste");
let paste = std::thread::spawn(move || unanswered.paste(Some(&Ours::Image(2, 1)), &vectorcraft_engine::cmd::clipboard::PASTE_ORDER));
drop(release);
assert_eq!(paste.join().ok().flatten().map(|f| (f.mime, f.data)), Some((PNG, png)));
// The files were read before any bitmap read that could leave the worker busy.
assert_eq!(*asked.lock().unwrap(), [Request::Text, Request::Text, Request::Files]);
}
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))]
#[test]
fn a_paste_after_an_unanswered_files_read_reads_the_text_before_the_bitmap() {
let asked = std::sync::Arc::new(std::sync::Mutex::new(Vec::new()));
let seen = asked.clone();
// The owner offers text and no files; a bitmap read would get no answer in its wait.
let (mut cb, release) = slow_owner(move |request| {
seen.lock().unwrap().push(request);
match request {
Request::Files => Answer::Files(vec![]),
Request::Text => Answer::Text(Ok("copied elsewhere".into())),
Request::Image => Answer::failed(request, "none".into()),
}
});
assert!(cb.read_waiting(Request::Files, Duration::ZERO).files().is_empty());
let unanswered = cb.unanswered(&vectorcraft_engine::cmd::clipboard::PASTE_ORDER).expect("the files read is kept for the paste");
let paste = std::thread::spawn(move || unanswered.paste(Some(&Ours::Image(2, 1)), &vectorcraft_engine::cmd::clipboard::PASTE_ORDER));
drop(release);
assert_eq!(paste.join().ok().flatten().map(|f| (f.mime, f.data)), Some((TEXT, b"copied elsewhere".to_vec())));
// The text was read before the bitmap read that could leave the worker busy.
assert_eq!(*asked.lock().unwrap(), [Request::Files, Request::Files, Request::Text, Request::Image]);
}
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))]
#[test]
fn a_late_answer_to_an_ownership_check_is_pasted_only_while_it_is_awaited() {
+28 -12
View File
@@ -6,10 +6,11 @@ use craft::ui::display::{Divider, Elide, Shade, Text};
use craft::ui::form::Field;
use craft::ui::layout_components::Row;
use craft::ui::menu::{Menu, MenuItem};
use craft::ui::popover::Popover;
use craft::ui::shell::{BarGrip, OptionsBarPlace};
use craft::ui::style::SurfaceKind;
use craft::ui::text::NumberField;
use egui::Ui;
use egui::{Ui, vec2};
use serde_json::{Value, json};
use vectorcraft_doc::NodeKind;
@@ -281,14 +282,17 @@ fn fill_and_stroke(app: &mut VectorcraftApp, ui: &mut Ui) {
ranked(ui, rank::DETAIL, |ui| stroke_panel::profile_select(app, ui));
}
/// The Control bar's Opacity group: its link, which opens the Transparency panel and scrubs the field, and the
/// field, showing `opacity`. Only a selection takes the edit.
const PANEL_POPOVER_W: f32 = 260.0;
const PANEL_POPOVER_MIN_TALL: f32 = 200.0;
/// The Control bar's Opacity group: its link, which opens the Transparency panel in a popover anchored to it
/// and scrubs the field, and the field, showing `opacity`. Only a selection takes the edit.
fn opacity_field(app: &mut VectorcraftApp, ui: &mut Ui, opacity: f32, selected: bool) {
let label = tl!("Opacity:");
let (mut link, mut typed) = (false, None);
let target = crate::panels::transparency_target(app);
group(ui, rank::OPACITY, |ui| {
Field::new(label).side(SideLabel::new().link().scrub(true)).show(ui, |ui, _| {
let field = Field::new(label).side(SideLabel::new().link().scrub(true)).show(ui, |ui, _| {
let number = NumberField::new(label, Bind::given(Some(crate::panels::shown_percent(opacity))))
.range(0.0..=100.0)
.unit("%")
@@ -298,10 +302,19 @@ fn opacity_field(app: &mut VectorcraftApp, ui: &mut Ui, opacity: f32, selected:
link |= number.link;
typed = number.edit.events.committed().copied().flatten().or(typed);
});
let open_id = field.output.id.with("transparency_popover_open");
let mut open = ui.data(|d| d.get_temp::<bool>(open_id).unwrap_or(false));
if link {
open = !open;
}
Popover::new(tl!("Transparency"), Bind::bound(&mut open)).opened_by(&field.output).show(ui, |ui, _| {
ui.scope(|ui| {
ui.set_max_width(PANEL_POPOVER_W);
crate::panels::transparency::show(app, ui);
});
});
ui.data_mut(|d| d.insert_temp(open_id, open));
});
if link {
app.ui.open_panel = Some("transparency".into());
}
if let Some(o) = typed.filter(|_| selected) {
app.run("transparency.set", json!({"opacity": o.clamp(0.0, 100.0)})).ok();
}
@@ -311,14 +324,17 @@ fn opacity_field(app: &mut VectorcraftApp, ui: &mut Ui, opacity: f32, selected:
/// Global Edit Options. A narrow bar leaves out Global Edit Options first, then Recolor Artwork, then the Style
/// link with its picker.
fn style_group(app: &mut VectorcraftApp, ui: &mut Ui) {
let mut open = false;
ranked(ui, rank::GROUP, |ui| {
open |= crate::panels::option_link(tl!("Style:")).show(ui).clicked();
let link = crate::panels::option_link(tl!("Style:")).show(ui);
let tall = (ui.ctx().content_rect().height() * 0.6).max(PANEL_POPOVER_MIN_TALL);
Popover::new(tl!("Graphic Styles"), Bind::kept()).collection_body().overlay(|overlay| overlay.opened_by(&link, Trigger::Click)).show(
ui,
|ui, _| {
ui.allocate_ui(vec2(PANEL_POPOVER_W, tall), |ui| crate::panels::graphic_styles::show(app, ui));
},
);
crate::panels::graphic_styles::style_picker(app, ui);
});
if open {
app.ui.open_panel = Some("graphicStyles".into());
}
// Recolor Artwork, when the selection has colours to recolour.
let colored = app.session.active().is_some_and(|st| crate::canvas::has_colors(&st.doc, &st.selection.objects));
if colored {
+57
View File
@@ -3629,3 +3629,60 @@ fn the_control_bar_selects_similar_objects() {
bar.app().run("window.control.options", json!({"group": "objectOptions"})).unwrap();
assert!(bar.settle().find("Select Similar Objects").is_some(), "Object Options on again");
}
/// Clicking Stroke:, Opacity: or Style: on the Control bar opens its panel in a popover anchored to that link rather
/// than at the window's left edge or in the dock flyout; Stroke: in the Control bar stays independent of Properties'
/// Stroke row.
#[test]
fn control_bar_panel_links_open_anchored_popovers() {
crate::i18n::set_current(crate::i18n::Lang::EN);
let mut app = crate::VectorcraftApp::new(Session::new(), Default::default());
app.run("file.new", json!({"width": 400, "height": 200})).unwrap();
let id = app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 30, "height": 20})).unwrap()["id"].clone();
app.run("select.set", json!({ "ids": [id] })).unwrap();
let mut bar = Shown::new(app, egui::vec2(2400.0, 700.0), |app, ui| {
super::control_bar(app, ui);
crate::panels::properties::show(app, ui);
});
bar.room(egui::vec2(2400.0, 700.0)).settle();
let assert_anchored = |bar: &Shown, link: &Target, content: &Target, label: &str| {
assert!(link.rect.left() > 80.0, "{label}: link {:?} sits past the left edge", link.rect);
assert!(content.rect.top() >= link.rect.bottom() - 2.0, "{label}: popover {:?} opens below {:?}", content.rect, link.rect);
assert!(
(content.rect.center().x - link.rect.center().x).abs() < 220.0 && content.rect.left() > 40.0,
"{label}: popover {:?} anchors horizontally near {:?}, not on the left side",
content.rect,
link.rect
);
assert!(bar.app().ui.open_panel.is_none(), "{label}: opens as a popover rather than a dock flyout");
};
// Stroke: opens its popover under the Control bar's link and leaves Properties' Stroke row closed.
let stroke_link = caption(&bar, "Stroke:").expect("Stroke: link");
assert!(bar.find("Dashed line").is_none(), "Stroke popover starts closed");
bar.click_on(&stroke_link).settle();
let dashed: Vec<_> = bar.fixture.by_role(Role::CHECK_BOX).into_iter().filter(|t| bar.tree().name_of(t.node) == Some("Dashed line")).collect();
assert_eq!(dashed.len(), 1, "Control bar and Properties keep separate Stroke popovers: {dashed:?}, names: {:?}", bar.names());
assert_anchored(&bar, &stroke_link, &dashed[0], "Stroke:");
bar.click_on(&stroke_link).settle();
assert!(bar.find("Dashed line").is_none(), "a second click closes the Stroke popover");
// Opacity: opens Transparency in an anchored popover.
let opacity_link = caption(&bar, "Opacity:").expect("Opacity: link");
assert!(bar.find("Isolate Blending").is_none(), "Transparency popover starts closed");
bar.click_on(&opacity_link).settle();
let isolate = bar.find("Isolate Blending").unwrap_or_else(|| panic!("Transparency popover opens: {:?}", bar.names()));
assert_anchored(&bar, &opacity_link, &isolate, "Opacity:");
bar.click_on(&opacity_link).settle();
assert!(bar.find("Isolate Blending").is_none(), "a second click closes Transparency");
// Style: opens Graphic Styles in an anchored popover.
let style_link = caption(&bar, "Style:").expect("Style: link");
assert!(bar.find("Break Link to Graphic Style").is_none(), "Graphic Styles popover starts closed");
bar.click_on(&style_link).settle();
let break_link = bar.find("Break Link to Graphic Style").unwrap_or_else(|| panic!("Graphic Styles popover opens: {:?}", bar.names()));
assert_anchored(&bar, &style_link, &break_link, "Style:");
bar.click_on(&style_link).settle();
assert!(bar.find("Break Link to Graphic Style").is_none(), "a second click closes Graphic Styles");
}
+43 -12
View File
@@ -34,7 +34,7 @@ use vectorcraft_engine::cmd::swatchlib;
use vectorcraft_engine::script::DialogAnswer;
use super::preview::LivePreview;
use crate::panels::color::{WorkingRgb, color_of_values, gamut, model_values};
use crate::panels::color::{WorkingRgb, color_of_values, gamut, gamut_of, model_values};
use crate::panels::swatches::{DOCUMENT_SWATCHES, colour_libraries};
use crate::panels::{color_json, srgba};
use crate::{VectorcraftApp, screen_color};
@@ -236,10 +236,10 @@ fn library_index(app: &VectorcraftApp, limit: &str) -> Option<usize> {
colour_libraries(app).iter().position(|lib| lib.id == limit).map(|i| i + 1)
}
/// The working CMYK profile as the picker's CMYK converter, so its CMYK fields follow the document's
/// The CMYK profile of `inks` as the picker's CMYK converter, so its CMYK fields follow the document's
/// inks; `None` (the picker's built-in coated CMYK) when the profile can't link to sRGB.
fn working_cmyk() -> Option<CmykConverter> {
let bytes = cms::icc_bytes(&cms::active().settings().cmyk).ok()?;
fn working_cmyk(inks: &cms::Cms) -> Option<CmykConverter> {
let bytes = cms::icc_bytes(&inks.settings().cmyk).ok()?;
CmykConverter::new(Arc::new(Profile::parse(&bytes).ok()?)).ok()
}
@@ -295,7 +295,7 @@ pub fn open(app: &mut VectorcraftApp, p: &Value) -> Result<Value, String> {
(None, false) => "fill",
};
let cmyk = app.session.active().is_some_and(|s| s.doc.color_mode == ColorMode::Cmyk);
let mut dialog = picker(app, key, &color, cmyk);
let mut dialog = picker(app, key, &color, cmyk, None);
// The host replaces a picker only for the same document and artboard.
if let Some((document, _, index, _)) = artboard {
dialog = dialog.instance((document, index));
@@ -327,15 +327,19 @@ pub fn open(app: &mut VectorcraftApp, p: &Value) -> Result<Value, String> {
}
/// The Color Picker with `key` on `color`, with the eyedropper, the gamut warning, the document's
/// swatches and libraries, and with `cmyk` (a CMYK document) the working CMYK inks.
fn picker(app: &VectorcraftApp, key: &str, color: &Color, cmyk: bool) -> ColorPickerDialog {
let mut dialog = ColorPickerDialog::new(key, tl!("Color Picker"), srgba(color))
/// swatches and libraries, and with `cmyk` (a CMYK document) the CMYK inks. `inks`: the profiles of the
/// document the picker edits when that is not the front document; it shows a CMYK color, tests the
/// gamut and fills the CMYK fields through them. `None`: the active profiles.
fn picker(app: &VectorcraftApp, key: &str, color: &Color, cmyk: bool, inks: Option<&Arc<cms::Cms>>) -> ColorPickerDialog {
let mut dialog = ColorPickerDialog::new(key, tl!("Color Picker"), srgba_in(color, inks))
.eyedropper(true)
.add_to_swatches(false)
.gamut(gamut(app))
.gamut(inks.map_or_else(|| gamut(app), |i| gamut_of(i.clone())))
.working_rgb(WorkingRgb)
.swatch_view(swatch_view(app));
if cmyk && let Some(converter) = working_cmyk() {
if let Some(cms) = picker_cmyk(cmyk, inks)
&& let Some(converter) = working_cmyk(&cms)
{
dialog = dialog.cmyk(&converter);
}
if matches!(color, Color::Cmyk { .. } | Color::Lab { .. }) {
@@ -344,6 +348,13 @@ fn picker(app: &VectorcraftApp, key: &str, color: &Color, cmyk: bool) -> ColorPi
dialog
}
/// The color-management context whose CMYK profile the picker's CMYK fields convert through: `inks`
/// whenever given, in an RGB document too, else the active profiles in a CMYK document (`cmyk`).
/// `None`: the picker's built-in coated CMYK.
fn picker_cmyk(cmyk: bool, inks: Option<&Arc<cms::Cms>>) -> Option<Arc<cms::Cms>> {
inks.cloned().or_else(|| cmyk.then(cms::active))
}
/// Opens the Color Picker a running script's `app.showColorPicker` waits at, on `color`; `cmyk`:
/// the run's own active document is in CMYK, which the session does not show between slices;
/// `profiles`: the RGB and CMYK profiles that document is assigned, which OK converts the pick through. It
@@ -352,14 +363,15 @@ pub(crate) fn open_for_script(app: &mut VectorcraftApp, color: Color, cmyk: bool
let Some(dialogs) = app.dialogs() else { return };
// The given colour's own values, so that OK can tell an untouched pick from another model's.
// The Only Web Colors setting of earlier pickers is not recalled, so the colour opens as given.
let dialog = picker(app, SCRIPT_KEY, &color, cmyk).kept(model_values(&color)).web_colors_remembered(false);
let inks = script_inks(&profiles);
let dialog = picker(app, SCRIPT_KEY, &color, cmyk, Some(&inks)).kept(model_values(&color)).web_colors_remembered(false);
let id = dialogs.with(|h| h.open(dialog));
app.color_dialogs.pickers.retain(|o| o.id != id);
let target = Target::Script { color, cmyk, profiles };
app.color_dialogs.pickers.push(Open {
id,
target,
start: srgba(&color),
start: srgba_in(&color, Some(&inks)),
keep: false,
preview: LivePreview::default(),
view: Vec::new(),
@@ -367,6 +379,25 @@ pub(crate) fn open_for_script(app: &mut VectorcraftApp, color: Color, cmyk: bool
});
}
/// The color-management context whose CMYK profile a script's picker shows its CMYK fields in: the
/// script's document assigned `profiles`, which may not be the window's front document.
fn script_inks(profiles: &(Option<String>, Option<String>)) -> Arc<cms::Cms> {
cms::for_document(profiles.0.as_deref(), profiles.1.as_deref())
}
/// `color` as display sRGB: a CMYK color through the CMYK profile of `inks`, anything else as
/// [`srgba`] shows it. An RGB color keeps the active RGB profile, which the picker's RGB fields
/// ([`WorkingRgb`]) read its channel values in.
fn srgba_in(color: &Color, inks: Option<&Arc<cms::Cms>>) -> Srgba {
match (inks, color) {
(Some(inks), Color::Cmyk { .. }) => {
let [r, g, b] = inks.display_rgb(color);
Srgba::rgb(r, g, b)
}
_ => srgba(color),
}
}
/// The key of the Color Picker a script opens.
pub(crate) const SCRIPT_KEY: &str = "script";
@@ -494,3 +494,37 @@ fn the_canvas_stays_open_under_the_picker() {
step(&mut app, &ctx, vec![]);
assert_eq!(app.session.doc().unwrap().selection, selected, "the click under the picker leaves the selection");
}
#[test]
fn a_script_picker_shows_cmyk_in_the_scripts_document_profile() {
// The front document keeps the working CMYK profile; the script's document is assigned another.
let (mut app, _ctx) = app();
assert_ne!(cms::active().settings().cmyk, cms::FOGRA52_CMYK, "the front document uses another CMYK profile");
let color = Color::Cmyk { c: 1.0, m: 0.0, y: 0.0, k: 0.0 };
open_for_script(&mut app, color, true, (None, Some(cms::FOGRA52_CMYK.to_string())));
let open = app.color_dialogs.pickers.last().unwrap();
let [r, g, b] = cms::for_document(None, Some(cms::FOGRA52_CMYK)).display_rgb(&color);
assert_eq!(open.start, Srgba::rgb(r, g, b), "the picker shows the color through the script document's profile");
assert_ne!(open.start, srgba(&color), "the front document's profile shows the color differently");
let inks = script_inks(&(None, Some(cms::FOGRA52_CMYK.to_string())));
assert_eq!(inks.settings().cmyk, cms::FOGRA52_CMYK, "the CMYK fields and gamut use the script document's profile");
}
#[test]
fn a_script_picker_in_an_rgb_document_fills_cmyk_fields_in_the_scripts_profile() {
// An RGB document can carry its own CMYK profile; the picker's CMYK fields convert through it.
let inks = script_inks(&(None, Some(cms::FOGRA52_CMYK.to_string())));
let fields = picker_cmyk(false, Some(&inks)).map(|c| c.settings().cmyk.clone());
assert_eq!(fields.as_deref(), Some(cms::FOGRA52_CMYK), "the script document's CMYK profile, in an RGB document too");
assert!(picker_cmyk(false, None).is_none(), "the front RGB document keeps the built-in CMYK fields");
}
#[test]
fn a_script_picker_opens_an_rgb_color_as_its_rgb_fields_read_it() {
// The RGB fields read channel values in the working RGB profile, so the opening swatch matches them.
let inks = script_inks(&(Some(cms::WIDE_GAMUT_RGB.to_string()), None));
let color = Color::rgb(0.5, 0.3, 0.2);
let [r, g, b] = inks.display_rgb(&color);
assert_ne!(Srgba::rgb(r, g, b), srgba(&color), "the two RGB profiles show the color differently");
assert_eq!(srgba_in(&color, Some(&inks)), srgba(&color), "the opening color and the RGB fields use one profile");
}
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -2125,7 +2125,7 @@ fn command_ids(s: &str) -> Vec<&str> {
/// the messages each one lacks.
const COMPLETE_MESSAGES: &[&str] = &[
"cs", "de", "el", "es", "fr", "hi", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "zh-hans", "zh-hant", "fi", "tr", "ca",
"nl", "da", "id", "bg",
"nl", "da", "id", "bg", "gu",
];
/// Crates whose error and status messages reach the status bar, the crates whose errors the
+14
View File
@@ -180,6 +180,20 @@ pub(crate) fn gamut(_app: &VectorcraftApp) -> Gamut<'static> {
})
}
/// The printable test of [`gamut`] in the CMYK space of `inks` instead of the active one, for a
/// picker that edits a document other than the front one.
pub(crate) fn gamut_of(inks: std::sync::Arc<cms::Cms>) -> Gamut<'static> {
Gamut::new(move |c: Srgba| {
// The picker samples display sRGB: the same color in the document's RGB space.
let color = crate::screen_color::sampled(&inks, [c.r, c.g, c.b]);
if !inks.out_of_gamut(&color) {
return c;
}
let [r, g, b] = inks.display_rgb(&inks.convert(&color, cms::Model::Cmyk, inks.settings().intent));
Srgba::new(r, g, b, c.a)
})
}
/// Serde reader for [`crate::UiState::color_panel`]: junk gives the default, so an unknown value
/// doesn't lose the rest of the preferences.
pub fn deserialize_panel_state<'de, D: serde::Deserializer<'de>>(d: D) -> Result<ColorPanelState, D::Error> {
+17 -15
View File
@@ -13,7 +13,9 @@ use craft::draw::ui::stroke::{self as draw, StrokeEditor, StrokeField, StrokeSec
use craft::keymap::CommandRef;
use craft::ui::buttons::IconButton;
use craft::ui::choice::Segmented;
use craft::ui::contract::{Bind, EditResponse, Entry, FieldLabelRole, Props as _, Show as _, ShowContainer as _, SideLabel, Sizing, TooltipSpec};
use craft::ui::contract::{
Bind, EditResponse, Entry, FieldLabelRole, Inner, Props as _, Show as _, ShowContainer as _, SideLabel, Sizing, TooltipSpec,
};
use craft::ui::display::Divider;
use craft::ui::form::{Field, FieldGroup};
use craft::ui::layout_components::{Grid, Row};
@@ -27,7 +29,7 @@ use craft::ui::runtime::env::{LengthUnits, UnitKind};
use craft::ui::style::DataColor;
use craft::ui::text::{LinkMode, LinkedFields};
use craft::ui::text::{NumberField, NumberOutput, NumberPick, StepArrows};
use egui::{Rect, Ui, pos2};
use egui::{Rect, Response, Ui, pos2};
use serde_json::{Value, json};
use vectorcraft_color::{Color, Paint};
use vectorcraft_doc::{Appearance, ArrowAlign, Arrowhead, Dash, Document, LineCap, LineJoin, Node, StrokeAlign, StrokeLayer, Unit, WidthProfile};
@@ -59,8 +61,6 @@ pub(crate) struct StrokePanel {
pub scale_linked: bool,
/// The cache of [`brush_keeps_size`], keyed by (document uid, revision, active Appearance row).
pub brushed: Option<(BrushedKey, Option<bool>)>,
/// The Stroke popover of the weight's link label is open.
pub link_open: bool,
/// The running gesture of a Stroke panel select.
pub select_gesture: Option<SelectGesture>,
}
@@ -450,24 +450,26 @@ pub(crate) fn apply_weight(app: &mut VectorcraftApp, out: &NumberOutput, target:
});
}
/// The weight field in a row labelled `label` with the side label `side`: the output of the number field, none when
/// the row's body did not run.
fn weight_row(app: &VectorcraftApp, ui: &mut Ui, label: &'static str, side: SideLabel, weight: Option<f64>) -> Option<NumberOutput> {
Field::new(label).side(side).id_salt("weight").sizing(Sizing::Content).show(ui, |ui, _| weight_number(app, weight).show(ui)).inner
/// The weight field in a row labelled `label` with the side label `side`: the field response and the output of
/// the number field when the row's body ran.
fn weight_row(app: &VectorcraftApp, ui: &mut Ui, label: &'static str, side: SideLabel, weight: Option<f64>) -> Inner<Response, NumberOutput> {
Field::new(label).side(side).id_salt("weight").sizing(Sizing::Content).show(ui, |ui, _| weight_number(app, weight).show(ui))
}
/// The weight field whose link side label (`label`: the Control bar's "Stroke:", the Properties panel's "Stroke")
/// opens the Stroke panel in a popover under it, and whose drag scrubs the weight. The field keeps its name, Weight:
/// the label beside the Stroke chip says which paint it is the weight of.
/// opens the Stroke panel in a popover anchored to it, and whose drag scrubs the weight. The field keeps its name,
/// Weight: the label beside the Stroke chip says which paint it is the weight of.
pub(crate) fn link_field(app: &mut VectorcraftApp, ui: &mut Ui, label: &'static str, weight: Option<f64>) {
let side = SideLabel::new().scrub(true).link().role(FieldLabelRole::Describes).tooltip(TooltipSpec::new(tl!("Stroke options")));
let mut open = app.ui.stroke_panel.link_open;
if let Some(out) = weight_row(app, ui, label, side, weight) {
let field = weight_row(app, ui, label, side, weight);
let open_id = field.output.id.with("stroke_popover_open");
let mut open = ui.data(|d| d.get_temp::<bool>(open_id).unwrap_or(false));
if let Some(out) = field.inner {
apply_weight(app, &out, WeightTarget::Shown);
open ^= out.link;
}
Popover::new(tl!("Stroke"), Bind::bound(&mut open)).show(ui, |ui, _| show(app, ui));
app.ui.stroke_panel.link_open = open;
Popover::new(tl!("Stroke"), Bind::bound(&mut open)).opened_by(&field.output).show(ui, |ui, _| show(app, ui));
ui.data_mut(|d| d.insert_temp(open_id, open));
}
/// The Stroke panel: the weight, the stroke editor (cap, corner, align, dashes), arrowheads, scale, align and the
@@ -495,7 +497,7 @@ fn rows(app: &mut VectorcraftApp, ui: &mut Ui) {
let st = current_stroke(app);
let mixed = stroke_mixed(app, ui.ctx());
let weight = shown_weight(app, st.as_ref(), &mixed);
if let Some(out) = weight_row(app, ui, tl!("Weight"), SideLabel::new().scrub(true), weight) {
if let Some(out) = weight_row(app, ui, tl!("Weight"), SideLabel::new().scrub(true), weight).inner {
apply_weight(app, &out, WeightTarget::Shown);
}
if app.ui.stroke_panel.hide_options {
+28
View File
@@ -2245,3 +2245,31 @@ fn the_bar_is_outlined_in_the_accent_on_its_surface() {
let surface = outlines.iter().find(|o| o.1 != accent).unwrap_or_else(|| panic!("the surface paints its own border: {outlines:?}"));
assert_eq!(edged.0, surface.0, "the accent outline lies on the surface's own border");
}
/// The Contextual Task Bar's Shape Properties popover anchors to its Shape Properties button rather than opening
/// on the left side of the window.
#[test]
fn the_task_bar_shape_properties_popover_anchors_to_its_button() {
let mut app = app();
app.run("tool.select", json!({"tool": "selection"})).unwrap();
let rect = id(app.run("shape.rectangle", json!({"x": 240, "y": 120, "width": 120, "height": 80, "radius": 10})).unwrap());
select(&mut app, &[rect]);
on_canvas(&mut app, |rig| {
let button = rig.target("Shape Properties").expect("Shape Properties button");
assert!(button.rect.left() > 100.0, "taskbar button {:?} sits past the left edge", button.rect);
rig.click("Shape Properties");
let headings = rig.painted("Rectangle Properties:");
assert_eq!(headings.len(), 1, "Rectangle Properties heading appears once: {headings:?}");
let heading = headings[0];
assert!(
heading.bottom() <= button.rect.top() + 2.0 || heading.top() >= button.rect.bottom() - 2.0,
"popover {heading:?} opens above or below {:?}",
button.rect
);
assert!(
(heading.center().x - button.rect.center().x).abs() < 200.0 && heading.left() > 40.0,
"popover {heading:?} anchors horizontally near {:?}, not on the left side",
button.rect
);
});
}
+7 -3
View File
@@ -296,8 +296,12 @@ other `sv-*` locale resolve to it), Georgian (`ka`, complete; `ka-GE` and `ka_GE
once the menus and `tl!` literals are translated; the untranslated report then lists what the catalog lacks
(`VECTORCRAFT_I18N_DUMP=strings.txt cargo test -p vectorcraft-ui-egui dump_source_strings -- --ignored` lists every
English string).
- A missing translation never fails a test or a build: the interface shows the English text until a translator
adds the row. `cargo xtask i18n-report` prints, per language, the strings its catalog lacks (menu strings,
- A missing translation shows the English text until a translator adds the row, and fails no build. A few tests
do fail on a missing row: every catalog with `complete_menus` needs the `UI_STRINGS` rows
(`strings_the_ui_shows_are_in_every_complete_catalog`) and the save panel's file types
(`save_panel_file_types_are_in_complete_catalogs`), and every language in `COMPLETE_MESSAGES` needs the
cutting-banner and recovery messages (`banner_and_recovery_messages_are_translated_in_every_complete_catalog`)
and the script warning question (`script_warning_off_question_is_translated`). `cargo xtask i18n-report` prints, per language, the strings its catalog lacks (menu strings,
`tl!` literals, undo step names, menu labels, render-site labels, status and error messages, PostScript
error meanings, default swatch names), and `cargo xtask ci` prints the same list in its `i18n-report` step.
The report is the test `i18n::tests::untranslated_report`, run with `--nocapture`; it fails only when a
@@ -319,7 +323,7 @@ other `sv-*` locale resolve to it), Georgian (`ka`, complete; `ka-GE` and `ka_GE
``[{j}] `{_1}`: {why}``, so its reason is translated while a JSON array stays as it is. A literal brace in a
row is written `{{` or `}}`, in the English and in the translation: a message made with `format!` keeps the
doubled braces of its format string, and a plain string literal has each of its braces doubled, so the row for
`"expected {\"objects\": [...]}"` is `expected {{"objects": [...]}}`. Czech, German, Greek, Spanish, French, Georgian, Hindi, Hungarian, Italian, Japanese, Korean, Polish, Brazilian Portuguese, Russian, Simplified Chinese, Traditional Chinese, Swedish, Ukrainian, Vietnamese, Finnish, Turkish, Catalan, Dutch, Danish, Indonesian and Bulgarian
`"expected {\"objects\": [...]}"` is `expected {{"objects": [...]}}`. Czech, German, Greek, Spanish, French, Georgian, Hindi, Hungarian, Italian, Japanese, Korean, Polish, Brazilian Portuguese, Russian, Simplified Chinese, Traditional Chinese, Swedish, Ukrainian, Vietnamese, Finnish, Turkish, Catalan, Dutch, Danish, Indonesian, Bulgarian and Gujarati
translate status and error messages (`COMPLETE_MESSAGES` in `i18n::tests`); the untranslated report lists the
message literals the scan finds, and the phrases a parameter schema's error builds at run time
(`SCHEMA_PHRASES`), that one of them has no row for. The scan covers the crates in `MESSAGE_CRATES`, the
+3 -2
View File
@@ -24,7 +24,7 @@ English) in-app help, and the docs are English.
(`bflatastic`), with community contributors adding or correcting (German by `dwetscher`, Japanese and Traditional
Chinese by `imachus`). Georgian and the original Gujarati catalog are recorded as reviewed by native speakers; the contributor approved all 387 later Gujarati additions on 2026-11-14.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status/error messages remain partial. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so Gujarati can be selected on the web. Scores and estimates unchanged.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status and error messages: 4,946 `@msg` and 56 `@msgplural` rows (2026-12-02); with 155 menu, label and undo rows added the same day the catalog has 10,890 rows; all machine-assisted, native review pending; `gu` is in `COMPLETE_MESSAGES`. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so a web build made with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans Gujarati offers Gujarati; a web build without it does not. Scores and estimates unchanged.
## The thirteen key languages
@@ -34,7 +34,7 @@ Chinese by `imachus`). Georgian and the original Gujarati catalog are recorded a
| Simplified Chinese (Mandarin) | `zh-hans` | 9,625 rows, 3,735 of them `@msg` and 51 `@msgplural` (counted 2026-11-17 on `main` at `ee60c51fd9`) | all (the untranslated report lists 237 messages without a row for it) | CJK UI font from craft-fonts (BIZ UDPGothic) when embedded, else a system font; IME with marked text at the caret; vertical type partial ([type-parity.md](type-parity.md)) | no | full | — (review) |
| Spanish | `es` | 4,009 / 4,020 (99.7%) | all (3,770 `@msg` and 55 `@msgplural` rows, counted 2026-11-18: the untranslated report lists 269 messages without a Spanish row, 236 in its own section and 33 that all 24 checked languages lack) | Latin | no | full | — (review) |
| Hindi | `hi` | 8,782 rows (2026-11-13): 3,014 `@msg`, 47 `@msgplural`, 41 `@plural`; the untranslated report on main `f793044f83` (2026-11-14) lists 676 missing rows for it: 608 in its own section and 68 that every checked language lacks | menus, dialogs, tooltips and scanned messages; contributor-approved loanword terminology; agent wording pass | UI and document text shape with HarfRust; installed desktop Devanagari fallback, or a `Deva` craft-fonts face; the web fetches Noto Sans Devanagari when the interface needs it | contributor terminology review; 2026-11-13 wording pass on messages and longer labels, and a word-sense pass on short labels, with a glossary-term test; wider proofread welcome | complete catalog, machine-assisted draft | reported missing rows, native review and layout |
| Gujarati | `gu` | 4,673 rows (2026-11-14): original 4,286 unchanged; all 387 additions contributor-reviewed and approved | menus and dialogs; status/error messages partial | installed Gujarati fonts on desktop; optional `Gujr` craft-fonts fallback (Noto Sans Gujarati, in the pinned CI/release fonts); the web fetches Noto Sans Gujarati when the interface needs it | original catalog reviewed by a native speaker; all 387 later additions approved by the contributor, with 11 wording corrections | contributor-reviewed catalog | remaining messages |
| Gujarati | `gu` | 4,673 rows (2026-11-14): original 4,286 unchanged; all 387 additions contributor-reviewed and approved | menus, dialogs, status and error messages (messages machine-assisted, review pending) | installed Gujarati fonts on desktop; optional `Gujr` craft-fonts fallback (Noto Sans Gujarati, in the pinned CI/release fonts); the web fetches Noto Sans Gujarati when the interface needs it | original catalog reviewed by a native speaker; all 387 later additions approved by the contributor, with 11 wording corrections | original rows and the 387 additions contributor-reviewed; the 2026-12-02 messages and labels machine-assisted, native review pending | native review of the messages |
| Arabic | `ar` | preparatory registration (native name العربية) and 6-form CLDR plural probe only; translations maintained upstream in `storytold/craft-i18n` (`locales/ar/vectorcraft.tsv`) and not yet consumed | none (UI not exposed pending shared catalog) | document text: existing bidirectional layout and paragraph direction; interface UI: not exposed pending shared catalog, with full shell mirroring pending STD-I18N-001 | — (preparatory) | preparatory (not exposed) | 15–20 |
| French | `fr` | 9,166 rows, 3,436 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 178 missing messages for it | all | Latin | no | full | — (review) |
| Portuguese | `pt-br` | 9,378 rows, 3,563 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 55 missing messages for it, which open #7116, #7211, #7330, #7378 and #7405 translate; one/other plurals | all | Latin | contributor is a Brazilian Portuguese speaker; further native review welcome | full | — (review) |
@@ -101,6 +101,7 @@ font for the web build.
| Date | Change | Summary |
|---|---|---|
| 2026-12-02 | minor | Gujarati: status and error messages translated (4,926 new `@msg`/`@msgplural` rows, machine-assisted draft, native review pending); `gu` joins `COMPLETE_MESSAGES`. Scores and estimates unchanged. |
| 2026-12-02 | minor | Gujarati (`gu`): Web: Gujarati can be selected as the interface language; the web fetches Noto Sans Gujarati when the interface needs it (`crates/text/web-fonts.txt`, `demand`), as it does Noto Sans Devanagari for Hindi. Status/error messages remain partial. Scores and estimates unchanged. |
| 2026-11-25 | patch | Arabic (`ar`): preparatory registration and 6-form CLDR plural routing; kept unavailable to users pending upstream `storytold/craft-i18n` catalog |
| 2026-11-14 | minor | Gujarati (#6613): contributor proofreading completed for all 387 additions, with 11 wording corrections; 4,673 reviewed catalog rows. Status/error messages remain partial; web selection requires a bundled Gujarati face. Scores and estimates unchanged. |
+3 -1
View File
@@ -4705,7 +4705,9 @@ the color's `typename` can differ from the picker's model and from the color giv
picker convert from the RGB profile of the document the window shows (the working RGB profile when it shows none) to the RGB profile of the run's active
document, and in a CMYK document they then separate through that document's CMYK profile. Hex, screen-sample and HSB
picks, and typed values that Only Web Colors snaps, start in display sRGB and convert only through the active
document's profiles. An answer taken from `answers`
document's profiles. The picker's CMYK fields, its gamut warning and the swatch of a CMYK color it opens on use the
CMYK profile of the run's active document, in an RGB document too; an RGB color opens as the document the window
shows draws it, the profile its RGB fields read. An answer taken from `answers`
keeps the color model it was given. The picker opens on the color as
given, whatever Only Web Colors was left at in another picker. OK with both the color and its model unchanged, and Cancel, return a new object of the color the
script gave. The picker shows no preview on the selection and has no Stop button: the status bar's Stop and quitting
+4 -3
View File
@@ -28,7 +28,7 @@
> Blend redraw update (#5179): renderer bounds include spine-placed keys and steps; both focused CPU regressions pass. Scores and estimates unchanged.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status/error messages remain partial. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so Gujarati can be selected on the web. Scores and estimates unchanged.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status and error messages: 4,946 `@msg` and 56 `@msgplural` rows (2026-12-02); with 155 menu, label and undo rows added the same day the catalog has 10,890 rows; all machine-assisted, native review pending; `gu` is in `COMPLETE_MESSAGES`. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so a web build made with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans Gujarati offers Gujarati; a web build without it does not. Scores and estimates unchanged.
## Feature submission evidence
@@ -84,6 +84,7 @@ M7 type: Touch Type moves a right-to-left character along its line and up from i
| Date | Change | Summary |
|---|---|---|
| 2026-12-02 | minor | Gujarati: status and error messages translated (4,926 new `@msg`/`@msgplural` rows, machine-assisted draft, native review pending); `gu` joins `COMPLETE_MESSAGES`. Scores and estimates unchanged. |
| 2026-11-26 | minor | Show Missing Links in View and the Links panel marks missing linked images and placed documents on the canvas; the link watcher scans them in the background, so turning it on never waits on a file; transient overlays stay out of artwork, export and undo history; command API controls and lists markers (#5547). Scores and estimates unchanged. |
| 2026-11-24 | minor | G12: History row context menus use shared Craft List and Menu controls after rebasing onto the panel migration. App-specific actions retain the chosen snapshot across pending edits and dismiss on document switches; keyboard context requests and focus restoration use the shared runtime. Regression cases retained (#8845); scores and estimates unchanged. |
| 2026-11-21 | minor | G12/M14: History row context menus retain the chosen snapshot while the menu is open and pending edits settle; jumps settle typing before counting undo/redo, and discarded states report that they are unavailable. Shift+F10 opens the focused row menu, Escape restores row focus, and switching documents dismisses the popup. History checklist, area and milestone evidence updated (#8845); scores and estimates unchanged. |
@@ -170,7 +171,7 @@ Checked 2026-10-10 from the code, tests and open issues; no workflow fails, so V
Hindi interface follow-up (2026-11-06): the catalog and zero/one plural rule are implemented;
native wording review, layout checks and a web Devanagari font remain. [Notes](localization-hi.md).
Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule are implemented. The original 4,286 rows remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status/error messages remain partial. Since 2026-12-02 the web fetches Noto Sans Gujarati when the interface needs it, so Gujarati can be selected on the web.
Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule are implemented. The original 4,286 rows remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status and error messages are translated (2026-12-02, machine-assisted, native review pending). Since 2026-12-02 the web fetches Noto Sans Gujarati when the interface needs it, so a web build made with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans Gujarati offers Gujarati; a web build without it does not.
## Current focus
@@ -215,7 +216,7 @@ Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule
| — | Interaction fidelity pass (every tool's modifiers, Properties panel per context, isolation, nuance; width-point creation and adjoining adjustment regression-tested; dialog layout reviewed) | ⬜ (new ruler-guide Alt orientation implemented; existing-guide Escape cancellation regression-tested; broader pass remains) | 60–90 |
| — | Hardening at scale (big-file corpus, fuzzing, cross-platform + browser QA) | 🟡 PngSuite integrity and bounded fetching verified (#1729); real-world corpus/manual QA remain | 50–80 |
| M14 follow-up | Color Picker layout (#2008) | ✅ Compact controls, centered header, stacked actions, aligned fields and screen sampling; narrow windows scroll vertically | Included above |
| M14 follow-up | Gujarati interface (#6613) | 🟡 Zero/one singular plurals and desktop font fallback; 4,673 contributor-reviewed rows, including 387 approved additions with 11 wording corrections; status/error messages remain partial; the web fetches Noto Sans Gujarati on demand | Included above |
| M14 follow-up | Gujarati interface (#6613) | 🟡 Zero/one singular plurals and desktop font fallback; 4,673 contributor-reviewed rows, including 387 approved additions with 11 wording corrections; status/error messages translated (machine-assisted, review pending); the web fetches Noto Sans Gujarati on demand | Included above |
| | **Total to full parity** (one agent; from [target-app-parity.md](target-app-parity.md)) | | **~360–590** |
Milestone estimates predate the 2026-10-10 re-measure for M1–M14; the area table in
+3 -2
View File
@@ -37,7 +37,7 @@ Native saves on Unix flush the destination directory after writing or replacing
> Blend redraw update (#5179): renderer bounds include spine-placed keys and steps; both focused CPU regressions pass. Scores and estimates unchanged.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status/error messages remain partial. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so Gujarati can be selected on the web. Scores and estimates unchanged.
> **Gujarati status (2026-11-14, #6613):** 4,673 catalog rows: the original 4,286 remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status and error messages: 4,946 `@msg` and 56 `@msgplural` rows (2026-12-02); with 155 menu, label and undo rows added the same day the catalog has 10,890 rows; all machine-assisted, native review pending; `gu` is in `COMPLETE_MESSAGES`. The pinned CI/release fonts include Noto Sans Gujarati as an optional `Gujr` fallback, and since 2026-12-02 the web build fetches it when the interface needs it (`crates/text/web-fonts.txt`, `demand`), so a web build made with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans Gujarati offers Gujarati; a web build without it does not. Scores and estimates unchanged.
## Feature submission evidence
@@ -133,6 +133,7 @@ Artboard Options forwards the active Artboard tool's Scale Artwork with Artboard
| Date | Change | Summary |
|---|---|---|
| 2026-12-02 | minor | Gujarati: status and error messages translated (4,926 new `@msg`/`@msgplural` rows, machine-assisted draft, native review pending); `gu` joins `COMPLETE_MESSAGES`. Scores and estimates unchanged. |
| 2026-11-26 | minor | Show Missing Links in View and the Links panel marks missing linked images and placed documents on the canvas; the link watcher scans them in the background, so turning it on never waits on a file; transient overlays stay out of artwork, export and undo history; command API controls and lists markers (#5547). Scores and estimates unchanged. |
| 2026-11-25 | minor | Document Info › Objects: total enclosed area (`pathArea` in pt²) for closed and compound paths (holes subtracted per fill rule; guides and open paths left out) and formatted Path Area in document units (#6965). Worked out only when the request covers Objects (`pathArea` null otherwise or with `pathArea: false`); the panel asks for it only while Objects or All Categories is shown. Tests: `info_gives_the_paths_total_area`, `info_works_out_the_path_area_only_for_the_objects_category`, `the_path_area_is_worked_out_only_while_objects_is_shown`, `format_area_formats_and_trims_cleanly`. Scores and estimates unchanged. |
| 2026-11-24 | minor | G12: History row context menus use shared Craft List and Menu controls after rebasing onto the panel migration. App-specific actions retain the chosen snapshot across pending edits and dismiss on document switches; keyboard context requests and focus restoration use the shared runtime. Regression cases retained (#8845); scores and estimates unchanged. |
@@ -1290,7 +1291,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- Swedish messages (2026-11-13): the Swedish (`sv`) catalog has an `@msg` row for 464 of the 628 status and error messages the untranslated report listed for it; 162 messages that no complete-message catalog translates, 36 composite font errors among them, are not translated yet, and two unknown-parameter errors that start with the `{within}` placeholder stay in English, as does `{name} must be {lo}–{hi}{unit} (got {v})`, whose existing row can't match because two of its placeholders sit side by side; the rows keep their placeholders, backticked names, quoted values and command ids; native review remains; scores and estimates unchanged.
- Window › Toolbars › Keep Tools Beside the Canvas, a VectorCraft layout option that is off by default, docks the Tools panel between left-side panels and the canvas instead of at the window's left edge, and workspaces keep the setting. A floating Tools panel dropped on the canvas's left edge, right of panels docked on the left, docks there and turns the setting on, and one dropped on the window's left edge docks there and turns it off; with no panels docked on the left, a drop leaves the setting as it is (#7837). Scores are unchanged (`window.toolsBesideCanvas`; `docked_tools_keep_the_window_edge_unless_kept_beside_the_canvas`, `tools_dropped_on_a_left_edge_dock_there_and_the_setting_follows`, `tools_dropped_where_the_left_edges_overlap_keep_the_setting`, `tools_dropped_beside_a_collapsed_left_dock_follow_the_strip_dropped_on`).
- Hindi (2026-11-06): Hindi (`hi`): 7,877-row machine-assisted catalog, zero/one singular plurals, desktop font fallback and optional Devanagari craft-fonts fallback; all 55 translation tests pass; native review and a web font remain; scores and estimates unchanged. [Terminology and limitations](localization-hi.md).
- Gujarati (2026-11-14, #6613): `gu` has 4,673 catalog rows, zero/one singular plurals, installed desktop font fallback and support for optional `Gujr` craft-font faces. The original 4,286 rows remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status/error messages remain partial. Since 2026-12-02 the web fetches Noto Sans Gujarati when the interface needs it, so Gujarati can be selected on the web. Current-head validation is recorded in the PR; scores and estimates unchanged.
- Gujarati (2026-11-14, #6613): `gu` had 4,673 catalog rows on 2026-11-14 (10,890 on 2026-12-02), zero/one singular plurals, installed desktop font fallback and support for optional `Gujr` craft-font faces. The original 4,286 rows remain unchanged; all 387 additions are contributor-reviewed and approved, with 11 wording corrections. Status and error messages: 4,946 `@msg` and 56 `@msgplural` rows (2026-12-02); with 155 menu, label and undo rows added the same day the catalog has 10,890 rows; all machine-assisted, native review pending; `gu` is in `COMPLETE_MESSAGES`. Since 2026-12-02 the web fetches Noto Sans Gujarati when the interface needs it, so a web build made with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans Gujarati offers Gujarati; a web build without it does not. Current-head validation is recorded in the PR; scores and estimates unchanged.
- Hindi wording (2026-11-13): rows outside the plug-in messages keep their English's meaning, quantities and clauses, and use the catalog's save, swatch, crop, resolution, path and type terms; a test checks those terms and the point unit in every row; native review remains; scores and estimates unchanged.
- Hindi word senses (2026-11-13): 85 labels and messages use the interface sense of their English: Desired is वांछित and the range message keeps both comparisons, rulers are रूलर, text characters कैरेक्टर, vector points पॉइंट, fills फ़िल्स and High Contrast उच्च कंट्रास्ट; the glossary test rejects the unrelated senses in every row; native review remains; scores and estimates unchanged.
- Hindi terms (2026-11-13): every row that names a variable (data merge, variable fonts and widths, environment variables) says वेरिएबल, and joining paths, anchor points, point type and lines says जोड़ें instead of शामिल हों, which stays for joining the community; a test checks both terms in every row; scores and estimates unchanged.