Merge remote-tracking branch 'upstream/main' into fix/twist-smooth-7069

# Conflicts:
#	docs/target-app-parity.md
This commit is contained in:
Don Omondi
2026-11-13 02:53:00 -05:00
66 changed files with 1782 additions and 68 deletions
Generated
+1
View File
@@ -6855,6 +6855,7 @@ dependencies = [
"serde",
"serde_json",
"toml",
"vectorcraft-apischema",
"vectorcraft-brush",
"vectorcraft-cad",
"vectorcraft-color",
+2 -2
View File
@@ -265,8 +265,8 @@ pub struct Document {
/// File → Document Setup (bleed, transparency grid, paper, type options).
#[serde(default, skip_serializing_if = "skip::is_default")]
pub setup: DocSetup,
/// Layers panel → Paste Remembers Layers: pasted objects go back into the layers (by name)
/// they were copied from instead of the current layer.
/// Layers panel → Paste Remembers Layers: pasted objects go back into the layers and
/// sublayers they were copied from instead of the current layer.
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
pub paste_remembers_layers: bool,
/// File → File Info (its title is [`Document::info_title`]).
+29 -5
View File
@@ -88,8 +88,9 @@ pub struct Clipboard {
/// The artboard the objects were copied from (none when they lie on no artboard; the first of
/// [`Self::artboards`] when there are any): Paste on All Artboards keeps their offset to it.
pub source_artboard: Option<Rect>,
/// Per object: the name of the layer it was copied from (Paste Remembers Layers).
pub source_layers: Vec<Option<String>>,
/// Per object: the layer or sublayer it was copied from and the layers around it (Paste
/// Remembers Layers); none when that layer has no name.
pub source_layers: Vec<Option<SourceLayer>>,
/// The open document the objects came from ([`DocState::uid`]): pasting back into it uses its
/// own resources as they are now.
pub source_doc: Option<u64>,
@@ -101,6 +102,29 @@ pub struct Clipboard {
pub guides: Vec<vectorcraft_doc::Guide>,
}
/// The layer an object was copied from, as Paste Remembers Layers finds it again: the top-level
/// layer first, down to the layer or sublayer that holds the object.
#[derive(Clone, Debug, Default, PartialEq, Eq, Hash)]
pub struct SourceLayer {
/// The layers' ids in the source document ([`Clipboard::source_doc`]).
pub ids: Vec<NodeId>,
/// The layers' names (an unnamed layer above the one that holds the object is "").
pub names: Vec<String>,
}
impl SourceLayer {
/// The layers around the object `anc` ends with ([`Document::ancestry`]); none when the layer
/// that holds it has no name.
fn of(d: &Document, anc: &[NodeId]) -> Option<Self> {
let layers: Vec<&Node> = anc.iter().rev().skip(1).filter_map(|a| d.node(*a).filter(|l| l.is_layer())).collect();
layers.first()?.name.as_ref()?;
Some(Self {
ids: layers.iter().rev().map(|l| l.id).collect(),
names: layers.iter().rev().map(|l| l.name.clone().unwrap_or_default()).collect(),
})
}
}
/// Indices of segments selected on `sp` (either explicitly or via incident anchors).
pub(crate) fn subpath_selected_segments(
sp: &vectorcraft_geom::SubPath,
@@ -256,7 +280,7 @@ impl Clipboard {
let mut compound_bounds: std::collections::HashMap<NodeId, Option<vectorcraft_geom::Rect>> = std::collections::HashMap::new();
for id in roots {
let (Some(n), Some(anc)) = (d.node(*id), d.ancestry(*id)) else { continue };
let layer_name = anc.iter().rev().skip(1).find_map(|a| d.node(*a).filter(|l| l.is_layer())).and_then(|l| l.name.clone());
let source_layer = SourceLayer::of(d, &anc);
let compound_parent = anc.iter().rev().skip(1).find_map(|a| d.node(*a).filter(|p| matches!(p.kind, NodeKind::Compound { .. })));
// Gradients fitted to the compound's bounds are pinned there, as a split pins them.
let gradient_box = compound_parent
@@ -299,11 +323,11 @@ impl Clipboard {
if direct && let Some(pieces) = extract_direct_selection(n, &st.selection) {
for piece in pieces {
nodes.push(inherit_appearance(piece));
source_layers.push(layer_name.clone());
source_layers.push(source_layer.clone());
}
} else {
nodes.push(inherit_appearance(n.clone()));
source_layers.push(layer_name);
source_layers.push(source_layer);
}
}
// Symbol instances are measured by their art.
+114 -15
View File
@@ -1,6 +1,6 @@
//! File (document-level) and Edit commands, plus document queries.
use std::collections::{BTreeMap, BTreeSet};
use std::collections::{BTreeMap, BTreeSet, HashMap};
use std::sync::Arc;
use serde_json::{Value, json};
@@ -13,7 +13,7 @@ use super::{
f64_req, finite_numbers, has_clipboard, has_doc, has_selection, has_selection_guides_or_artboard_tool, has_selection_or_guides, index, number_or,
object_param, ok, point_param, str_param, switch_or,
};
use crate::{Clipboard, EngineError, inspect};
use crate::{Clipboard, EngineError, SourceLayer, inspect};
/// Register editing commands, including document-to-document artwork drops and their parameter contracts.
pub fn specs() -> Vec<CommandSpec> {
@@ -179,7 +179,7 @@ pub fn specs() -> Vec<CommandSpec> {
"Paste",
["Edit"],
Some("Cmd+V"),
"{center?: [x, y], artboardsAt?: [x, y], dx?, dy?, swatchConflict?} paste centred on `center` (the app passes the view centre), else offset by dx/dy (default: the Paste Offset preference). Pasting brings the image blobs, symbols, patterns, global and spot swatches (with the tint swatches of the tints used), gradient swatches, graphic styles, character and paragraph styles and brushes the objects use; one of the same name that differs comes in renamed. swatchConflict, for a swatch whose name the document gives another colour (clipboard.conflicts): \"merge\" (default: the objects take the document's swatch) | \"add\" (the pasted swatch comes in renamed) | {name: \"merge\"|\"add\"}. With Paste Remembers Layers on (layer.pasteRemembersLayers), objects go back into the layers they came from (by name; made when missing). Artboards copied with artboard.copy come with their art, together right of the last artboard as they lay, or centered on `artboardsAt` (the Artboard tool's canvas menu passes the right-click point; a value that is not [x, y] is an error) (the other paste commands but Paste on All Artboards: where they were), their art back in the layers it came from, and the Artboard tool, when chosen, selects them. In Draw Inside (view.drawMode) the objects go inside the object drawn into, as new art does, and Paste Remembers Layers doesn't apply; edit.pasteInPlace and edit.pasteOnAllArtboards do the same, and in Draw Behind they go behind the selection as edit.pasteInBack puts them; edit.pasteInFront and edit.pasteInBack ignore the drawing mode → {ids, artboard: the first new artboard's index or null, artboards: the new artboards' indices, added: resources added, merged: conflicts merged, renamed: [{kind, from, to}]}",
"{center?: [x, y], artboardsAt?: [x, y], dx?, dy?, swatchConflict?} paste centred on `center` (the app passes the view centre), else offset by dx/dy (default: the Paste Offset preference). Pasting brings the image blobs, symbols, patterns, global and spot swatches (with the tint swatches of the tints used), gradient swatches, graphic styles, character and paragraph styles and brushes the objects use; one of the same name that differs comes in renamed. swatchConflict, for a swatch whose name the document gives another colour (clipboard.conflicts): \"merge\" (default: the objects take the document's swatch) | \"add\" (the pasted swatch comes in renamed) | {name: \"merge\"|\"add\"}. With Paste Remembers Layers on (layer.pasteRemembersLayers), objects go back into the layers and sublayers they came from (by the names of the layer and the layers around it in another document; a missing sublayer is made inside its layer; a hidden or locked one is an error and nothing is pasted). Artboards copied with artboard.copy come with their art, together right of the last artboard as they lay, or centered on `artboardsAt` (the Artboard tool's canvas menu passes the right-click point; a value that is not [x, y] is an error) (the other paste commands but Paste on All Artboards: where they were), their art back in the layers it came from, and the Artboard tool, when chosen, selects them. In Draw Inside (view.drawMode) the objects go inside the object drawn into, as new art does, and Paste Remembers Layers doesn't apply; edit.pasteInPlace and edit.pasteOnAllArtboards do the same, and in Draw Behind they go behind the selection as edit.pasteInBack puts them; edit.pasteInFront and edit.pasteInBack ignore the drawing mode → {ids, artboard: the first new artboard's index or null, artboards: the new artboards' indices, added: resources added, merged: conflicts merged, renamed: [{kind, from, to}]}",
has_clipboard,
|s, p| paste(s, p, PasteMode::Offset)
),
@@ -1380,6 +1380,9 @@ fn paste_clip(s: &mut Session, p: &Value, mode: PasteMode, clip: &Clipboard, cho
&& inside.is_none()
&& (st.doc.paste_remembers_layers || boards.is_some())
&& parent.is_some_and(|p| st.doc.node(p).is_some_and(Node::is_layer));
// Each object's remembered layer, found before anything is pasted: a hidden or locked one
// refuses the whole paste.
let remembered = if remember { remembered_layers(&st.doc, &clip.source_layers, same_doc)? } else { vec![] };
// Front/back: relative to the selection (top-most / bottom-most selected object); with
// nothing selected, the top / bottom of the current layer. Art other than paths goes beside
// the compound path that holds the selected object, not into it.
@@ -1423,7 +1426,8 @@ fn paste_clip(s: &mut Session, p: &Value, mode: PasteMode, clip: &Clipboard, cho
.flat_map(|(all, dv)| all.iter().map(move |a| (a, dv)))
.map(|(a, dv)| super::panelcmds::push_artboard_copy(d, a, a.rect + dv))
.collect();
let mut layers: BTreeMap<&str, NodeId> = BTreeMap::new();
// The layers made for remembered layers the document lacks, by parent and name.
let mut made = HashMap::new();
// Objects pasted into each parent so far (keeps their order in front and back pastes).
let mut placed: BTreeMap<Option<NodeId>, usize> = BTreeMap::new();
let mut new_ids = vec![];
@@ -1437,8 +1441,9 @@ fn paste_clip(s: &mut Session, p: &Value, mode: PasteMode, clip: &Clipboard, cho
// including the pattern phase, independently of transform-tool settings.
c.transform(xf, sc);
}
let layer = match clip.source_layers.get(k) {
Some(Some(name)) if remember => Some(*layers.entry(name).or_insert_with(|| layer_named(d, name))),
let layer = match remembered.get(k) {
Some(Some(Remembered::Layer(l))) => Some(*l),
Some(Some(Remembered::Make { parent, names })) => make_layers(d, &mut made, *parent, names)?,
_ => None,
};
// In a clip group or a clipping layer the bottom child is the clipping path: art pasted
@@ -1557,17 +1562,111 @@ fn paste_anchor(doc: &Document, id: NodeId, can_enter_compound: bool) -> NodeId
}
}
/// The first unlocked layer or sublayer called `name` (topmost first), or a new top layer.
fn layer_named(d: &mut Document, name: &str) -> NodeId {
let mut found = None;
for l in d.layers.iter().rev() {
l.walk(&mut |n| {
if found.is_none() && n.is_layer() && !n.locked && n.name.as_deref() == Some(name) {
found = Some(n.id);
/// Where Paste Remembers Layers puts an object: a layer or sublayer of the document, or new
/// layers `names`, each inside the one before, the first under `parent` (none: on top).
#[derive(Clone, Debug, PartialEq)]
enum Remembered {
Layer(NodeId),
Make { parent: Option<NodeId>, names: Vec<String> },
}
/// [`remembered_layer`] for each object's source layer, worked out once for each layer.
fn remembered_layers(d: &Document, sources: &[Option<SourceLayer>], same_doc: bool) -> Result<Vec<Option<Remembered>>> {
let mut found: HashMap<&SourceLayer, Remembered> = HashMap::new();
sources
.iter()
.map(|src| {
let Some(src) = src else { return Ok(None) };
if let Some(r) = found.get(src) {
return Ok(Some(r.clone()));
}
});
let r = remembered_layer(d, src, same_doc)?;
found.insert(src, r.clone());
Ok(Some(r))
})
.collect()
}
/// The layer `src` names in `d`. In the document it was copied from, the layer that held the
/// object is kept while it is there with its name, wherever it was moved; else the layers around
/// it still where they were (by id) are kept. Below them, and in another document from the top,
/// each name is matched among the layers inside the one above (the topmost of the same name whose
/// layers match the most names, a shown and unlocked one first). The names left unmatched are
/// made. A matched layer that is hidden or locked, or inside one that is, is an error.
fn remembered_layer(d: &Document, src: &SourceLayer, same_doc: bool) -> Result<Remembered> {
let held = |id: &NodeId| d.node(*id).is_some_and(|n| n.is_layer() && n.name.as_ref() == src.names.last());
let kept = if same_doc && src.ids.last().is_some_and(held) {
src.ids.len()
} else if same_doc {
(1..=src.ids.len())
.rev()
.find(|&j| d.node(src.ids[j - 1]).is_some_and(Node::is_layer) && d.ancestry(src.ids[j - 1]).is_some_and(|a| a == src.ids[..j]))
.unwrap_or(0)
} else {
0
};
let rest = &src.names[kept..];
let (end, matched, _) = named_chain(d, kept.checked_sub(1).map(|j| src.ids[j]), rest);
if let Some(l) = end
&& !d.ancestry(l).is_some_and(|a| a.iter().all(|i| d.node(*i).is_some_and(|n| n.visible && !n.locked)))
{
return Err(EngineError::Other("the target layer is locked or hidden".into()));
}
found.unwrap_or_else(|| d.add_layer(Some(name)))
Ok(match end {
Some(l) if matched == rest.len() => Remembered::Layer(l),
parent => Remembered::Make { parent, names: rest[matched..].to_vec() },
})
}
/// The deepest chain of layers inside `parent` (none: the top level) named `names` one inside the
/// other: its last layer (`parent` when none matches), how many names it matched and whether all
/// its layers are shown and unlocked. Of chains as deep, the topmost shown and unlocked one wins.
fn named_chain(d: &Document, parent: Option<NodeId>, names: &[String]) -> (Option<NodeId>, usize, bool) {
let mut best = (parent, 0, true);
let Some((name, rest)) = names.split_first() else { return best };
let siblings = match parent {
None => Some(&d.layers),
Some(p) => d.node(p).and_then(Node::children),
};
for l in siblings.into_iter().flatten().rev().filter(|l| l.is_layer() && l.name.as_deref() == Some(name.as_str())) {
let (end, n, open) = named_chain(d, Some(l.id), rest);
let chain = (end, n + 1, open && l.visible && !l.locked);
if (chain.1, chain.2) > (best.1, best.2) {
best = chain;
}
}
best
}
/// Layers `names`, each inside the one before, the first under `parent` (none: on top); `made`
/// keeps the ones a paste has made, by parent and name, so they are made once. The last one, or
/// none when `names` is empty.
fn make_layers(
d: &mut Document,
made: &mut HashMap<(Option<NodeId>, String), NodeId>,
parent: Option<NodeId>,
names: &[String],
) -> Result<Option<NodeId>> {
let mut at = parent;
for name in names {
let key = (at, name.clone());
let id = match made.get(&key) {
Some(id) => *id,
None => {
let id = match at {
None => d.add_layer(Some(name)),
Some(p) => {
let layer = super::layer::make_layer(d, Some(name));
d.insert(Some(p), usize::MAX, layer)?
}
};
made.insert(key, id);
id
}
};
at = Some(id);
}
Ok(at.filter(|_| !names.is_empty()))
}
fn duplicate(s: &mut Session, p: &Value) -> Result<Value> {
+1 -1
View File
@@ -200,7 +200,7 @@ pub fn specs() -> Vec<CommandSpec> {
"Paste Remembers Layers",
["Window", "Layers"],
None,
"{on?} (default: toggle) the document option: on, the Paste commands put objects back into the layers they were copied from (by name; a missing one is made on top), off into the current layer; one undo step when it changes (document.inspect → pasteRemembersLayers) → {on}",
"{on?} (default: toggle) the document option: on, the Paste commands put objects back into the layers or sublayers they were copied from (in that document while they are still there, else by the names of the layer and the layers around it, the topmost match first; a missing sublayer is made inside its layer, a missing top-level layer on top; a hidden or locked one is an error and nothing is pasted), off into the current layer; one undo step when it changes (document.inspect → pasteRemembersLayers) → {on}",
has_doc,
paste_remembers_layers
),
+23
View File
@@ -387,6 +387,26 @@ fn keep_eps_preview(low_res_proxy_eps: bool, g: &Group, d: &Document) -> bool {
low_res_proxy_eps && g.document.is_none() && linked_eps(&g.link) && previewing(d, &g.key)
}
/// Is the linked file `f` found a DCS file? Only the start of the file is read, unless a binary EPS
/// header puts its PostScript further on; a DCS file read in full stays in `f`. A file that can't
/// be read is not one.
fn is_dcs_file(f: &mut Found) -> bool {
use super::place::dcs;
if let Some(b) = &f.bytes {
return dcs::is_dcs(b);
}
let Ok(head) = fileio::read_file_head(&f.path, dcs::HEAD_BYTES) else { return false };
if let Some(is) = dcs::head_is_dcs(&head, f.size) {
return is;
}
let Ok(b) = f.read() else { return false };
let is = dcs::is_dcs(&b);
if is {
f.bytes = Some(b);
}
is
}
/// Does group `g` of `d` show something other than its file: an image its preview, a placed
/// document nothing (its file's bytes are gone)?
fn stale(d: &Document, g: &Group) -> bool {
@@ -1159,6 +1179,9 @@ pub fn resolve(d: &mut Document, base: LinkBase, update: bool, low_res_proxy_eps
}
(Status::Ok, Some(mut f)) => {
let preview = previewing(d, &g.key);
// A DCS file is read in full even with the proxy: its plates print and separate on
// their own inks.
let eps_preview = eps_preview && !is_dcs_file(&mut f);
if let Some((blob, hash)) = read_images.get(&f.path).filter(|_| preview && !eps_preview).cloned() {
store_image(d, &g.key, blob, true);
let link = f.link_hashed(hash, &g.link);
+49
View File
@@ -39,6 +39,55 @@ pub(crate) fn is_dcs(bytes: &[u8]) -> bool {
vectorcraft_eps::dcs::read(bytes).is_some()
}
/// The most bytes read from the start of a file to look at its DCS header.
pub(crate) const HEAD_BYTES: usize = 1 << 20;
/// Does the header of the PostScript in file `head` (the first bytes of a file `size` bytes long,
/// at most [`HEAD_BYTES`]) name DCS plates? `None` when `head` can't tell: that PostScript doesn't
/// start within it (a binary EPS header that puts it further on), or its header goes on past it. A
/// `head` that holds the whole file is read as [`is_dcs`] reads it, and a binary EPS header whose
/// PostScript or TIFF preview ends past `size` names none, as [`is_dcs`] finds for the whole file.
pub(crate) fn head_is_dcs(head: &[u8], size: u64) -> Option<bool> {
const DOS_MAGIC: [u8; 4] = [0xC5, 0xD0, 0xD3, 0xC6];
if head.len() < HEAD_BYTES || head.len() as u64 >= size {
return Some(is_dcs(head));
}
let (ps, whole) = if head.starts_with(&DOS_MAGIC) {
let word = |at: usize| head.get(at..at + 4).and_then(|b| <[u8; 4]>::try_from(b).ok()).map(|b| u32::from_le_bytes(b) as usize);
let fits = |at: usize| Some((word(at)? as u64).checked_add(word(at + 4)? as u64).is_some_and(|end| end <= size));
if !fits(4)? || (word(24)? != 0 && !fits(20)?) {
return Some(false);
}
let (start, len) = (word(4)?, word(8)?);
let ps = head.get(start..).filter(|ps| !ps.is_empty())?;
(ps.get(..len).unwrap_or(ps), start.checked_add(len).is_some_and(|end| end <= head.len()))
} else {
(head, false)
};
if is_dcs(ps) {
return Some(true);
}
(whole || header_ended(ps)).then_some(false)
}
/// Does `ps`, the start of some PostScript, hold all of the header [`vectorcraft_eps::dcs::read`]
/// looks at (up to `%%EndComments`, a line that isn't a comment, or its 10,000th line)? Its last
/// line may be cut off, so it doesn't count.
fn header_ended(ps: &[u8]) -> bool {
let mut lines = ps.split(|b| matches!(b, b'\n' | b'\r')).filter(|l| !l.is_empty()).peekable();
let mut n = 0;
while let Some(line) = lines.next() {
if lines.peek().is_none() {
return false;
}
n += 1;
if line.starts_with(b"%%EndComments") || !line.starts_with(b"%") || n >= 10_000 {
return true;
}
}
false
}
/// DCS file `bytes`, read from `path` (when there is one: plate files of their own are found in its
/// folder), with every plate.
pub(crate) fn read(bytes: &[u8], path: Option<&str>) -> Result<DcsArt> {
+1 -1
View File
@@ -26,7 +26,7 @@ use vectorcraft_doc::{Document, NodeId, NodeKind, Selection};
use vectorcraft_geom::Affine;
use vectorcraft_tools::{PaintDefaults, Tool};
pub use cmd::clipboard::Clipboard;
pub use cmd::clipboard::{Clipboard, SourceLayer};
pub use cmd::create::constrain_click;
pub use cmd::distortcmds::perspective_click;
pub use cmd::params::{check_keys, check_params};
+153 -1
View File
@@ -1094,7 +1094,8 @@ fn paste_remembers_layers_restores_the_source_layers() {
let art = id_of(&s.execute("layer.new", &json!({"name": "Art"})).unwrap());
let b = rect(&mut s, 20.0, 0.0, 10.0, 10.0);
copy(&mut s, &[a, b]);
assert_eq!(s.clipboard.source_layers, [Some("Layer 1".to_string()), Some("Art".to_string())]);
let names: Vec<_> = s.clipboard.source_layers.iter().map(|l| l.as_ref().map(|l| l.names.clone())).collect();
assert_eq!(names, [Some(vec!["Layer 1".to_string()]), Some(vec!["Art".to_string()])]);
let other = id_of(&s.execute("layer.new", &json!({"name": "Other"})).unwrap());
assert_eq!(s.execute("layer.pasteRemembersLayers", &json!({})).unwrap()["on"], true);
assert!(doc(&s).paste_remembers_layers);
@@ -1121,6 +1122,157 @@ fn paste_remembers_layers_restores_the_source_layers() {
assert!(ids.iter().all(|id| doc(&s).parent_of(*id) == Some(other)));
}
/// A sublayer `name` made inside `parent`; it becomes the current layer.
fn sublayer(s: &mut Session, parent: NodeId, name: &str) -> NodeId {
id_of(&s.execute("layer.newSublayer", &json!({"parent": parent.0, "name": name})).unwrap())
}
/// The names of the layers around `id`, the top-level layer first.
fn layer_path(s: &Session, id: NodeId) -> Vec<String> {
let d = doc(s);
d.ancestry(id).unwrap().iter().filter_map(|a| d.node(*a).filter(|n| n.is_layer())).map(|l| l.name.clone().unwrap()).collect()
}
/// Art from two sublayers of the same name in different layers pastes back into each one; in
/// another document a missing sublayer is made inside its layer, and a missing layer on top with
/// the sublayer inside, in the paste's one undo step.
#[test]
fn paste_remembers_layers_keeps_same_named_sublayers_apart() {
let mut s = session();
let first = doc(&s).layers[0].id;
let sub1 = sublayer(&mut s, first, "Sub");
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
let second = id_of(&s.execute("layer.new", &json!({"name": "Layer 2", "top": true})).unwrap());
let sub2 = sublayer(&mut s, second, "Sub");
let b = rect(&mut s, 20.0, 0.0, 10.0, 10.0);
copy(&mut s, &[a, b]);
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
s.execute("layer.setCurrent", &json!({"id": first.0})).unwrap();
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
let parents: Vec<_> = ids.iter().map(|id| doc(&s).parent_of(*id)).collect();
assert_eq!(parents, [Some(sub1), Some(sub2)]);
new_doc(&mut s);
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
let before = doc(&s).clone();
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
let paths: Vec<_> = ids.iter().map(|id| layer_path(&s, *id)).collect();
assert_eq!(paths, [["Layer 1", "Sub"], ["Layer 2", "Sub"]]);
assert_eq!(doc(&s).layers.len(), 2, "Layer 1 is kept; Layer 2 is new");
assert_eq!(doc(&s).layers[0].children().unwrap().len(), 1, "Sub is made inside Layer 1");
let after = doc(&s).clone();
// Pasting again finds the layers made.
let again = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
let parents: Vec<_> = again.iter().map(|id| doc(&s).parent_of(*id)).collect();
assert_eq!(parents, ids.iter().map(|id| doc(&s).parent_of(*id)).collect::<Vec<_>>());
s.execute("edit.undo", &json!({})).unwrap();
assert_eq!(*doc(&s), after);
s.execute("edit.undo", &json!({})).unwrap();
assert_eq!(*doc(&s), before, "one undo step takes the art and the layers made for it");
}
/// Art whose sublayer was deleted after the copy pastes into a new sublayer of that name inside
/// the same layer, not into a sublayer of that name in another layer.
#[test]
fn paste_remembers_layers_makes_a_deleted_sublayer_again_inside_its_layer() {
let mut s = session();
let first = doc(&s).layers[0].id;
let sub = sublayer(&mut s, first, "Sub");
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
let second = id_of(&s.execute("layer.new", &json!({"name": "Layer 2", "top": true})).unwrap());
let elsewhere = sublayer(&mut s, second, "Sub");
copy(&mut s, &[a]);
s.execute("layer.delete", &json!({"id": sub.0})).unwrap();
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
let made = doc(&s).parent_of(ids[0]).unwrap();
assert_ne!(made, elsewhere);
assert_eq!(doc(&s).parent_of(made), Some(first));
assert_eq!(layer_path(&s, ids[0]), ["Layer 1", "Sub"]);
}
/// Art whose sublayer was moved into another layer after the copy pastes into that sublayer where
/// it is now; no sublayer is made where it was.
#[test]
fn paste_remembers_layers_follows_a_moved_sublayer() {
let mut s = session();
let first = doc(&s).layers[0].id;
let sub = sublayer(&mut s, first, "Sub");
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
let second = id_of(&s.execute("layer.new", &json!({"name": "Layer 2", "top": true})).unwrap());
copy(&mut s, &[a]);
s.execute("layer.move", &json!({"id": sub.0, "target": second.0})).unwrap();
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
assert_eq!(doc(&s).parent_of(ids[0]), Some(sub));
assert_eq!(layer_path(&s, ids[0]), ["Layer 2", "Sub"]);
assert!(node(&s, first).children().unwrap().is_empty(), "no Sub is made in Layer 1");
}
/// In another document with layers of the same names, art goes into the topmost chain of layers
/// that matches the most names, a shown and unlocked one before a hidden or locked one.
#[test]
fn paste_remembers_layers_takes_the_topmost_open_match_of_repeated_names() {
let mut s = session();
let first = doc(&s).layers[0].id;
sublayer(&mut s, first, "Sub");
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
copy(&mut s, &[a]);
new_doc(&mut s);
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
let lower = doc(&s).layers[0].id;
let lower_sub = sublayer(&mut s, lower, "Sub");
s.execute("layer.new", &json!({"name": "Sub", "top": true})).unwrap();
let upper = id_of(&s.execute("layer.new", &json!({"name": "Layer 1", "top": true})).unwrap());
// The upper Layer 1 has no Sub, and a top-level Sub is not inside a Layer 1: the lower chain
// matches both names.
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
assert_eq!(doc(&s).parent_of(ids[0]), Some(lower_sub));
let upper_sub = sublayer(&mut s, upper, "Sub");
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
assert_eq!(doc(&s).parent_of(ids[0]), Some(upper_sub), "the topmost of two full matches");
s.execute("layer.setProps", &json!({"id": upper_sub.0, "locked": true})).unwrap();
let ids = ids_of(&s.execute("edit.paste", &json!({})).unwrap());
assert_eq!(doc(&s).parent_of(ids[0]), Some(lower_sub), "an unlocked match before a locked one");
}
/// A remembered layer or sublayer that is hidden or locked, or inside a layer that is, refuses the
/// whole paste: the document, the selection and the undo history stay as they were.
#[test]
fn paste_remembers_layers_refuses_a_hidden_or_locked_layer() {
let (locked, hidden) = (json!({"locked": true}), json!({"visible": false}));
for (on_sub, props) in [(true, &locked), (true, &hidden), (false, &locked), (false, &hidden)] {
let mut s = session();
let first = doc(&s).layers[0].id;
let sub = sublayer(&mut s, first, "Sub");
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
let other = id_of(&s.execute("layer.new", &json!({"name": "Other", "top": true})).unwrap());
let b = rect(&mut s, 20.0, 0.0, 10.0, 10.0);
copy(&mut s, &[b, a]);
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
let mut p = props.clone();
p["id"] = json!(if on_sub { sub.0 } else { first.0 });
s.execute("layer.setProps", &p).unwrap();
s.execute("layer.setCurrent", &json!({"id": other.0})).unwrap();
let before = s.doc().unwrap().clone();
assert!(s.execute("edit.paste", &json!({})).is_err(), "{p}");
assert_eq!(s.doc().unwrap().doc, before.doc, "{p}");
assert_eq!(s.doc().unwrap().selection, before.selection, "{p}");
assert_eq!(s.doc().unwrap().history.undo.len(), before.history.undo.len(), "{p}");
}
// In another document, a locked layer of the copied layer's name is refused too.
let mut s = session();
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
copy(&mut s, &[a]);
new_doc(&mut s);
s.execute("layer.pasteRemembersLayers", &json!({"on": true})).unwrap();
let locked = doc(&s).layers[0].id;
id_of(&s.execute("layer.new", &json!({"name": "Flyer"})).unwrap());
s.execute("layer.setProps", &json!({"id": locked.0, "locked": true})).unwrap();
let before = doc(&s).clone();
assert!(s.execute("edit.paste", &json!({})).is_err());
assert_eq!(*doc(&s), before, "no second Layer 1 is made");
}
#[test]
fn paste_remembers_layers_survives_save_and_old_files_load_without_it() {
let mut s = session();
+80
View File
@@ -632,6 +632,86 @@ fn a_saved_document_reads_the_plates_again_and_prints_the_spot_ink() {
assert_eq!(inks, ["Cyan", "Magenta", "Yellow", "Black", "PANTONE 185 C"]);
}
#[test]
fn a_saved_document_reads_the_plates_again_with_the_low_resolution_eps_proxy() {
let dir = temp_dir("saved-proxy");
// Plates wider than a preview, so the saved document keeps a preview of the image.
let wide = |gray: u8| {
let hex = format!("{gray:02x}").repeat(300);
format!(
"%!PS-Adobe-3.0 EPSF-3.0\n%%BoundingBox: 0 0 20 10\n%%EndComments\n20 10 scale\n300 1 8 [300 0 0 -1 0 1] <{hex}> image\nshowpage\n%%Trailer\n%%EOF\n"
)
};
let file = single_file(&[("Cyan", wide(0)), ("PANTONE 185 C", wide(128))], "%%CMYKCustomColor: 0 .91 .76 0 (PANTONE 185 C)\n");
let path = write(&dir, "pic.eps", &file);
let saved = dir.join("doc.vectorcraft").to_string_lossy().into_owned();
let mut s = session();
s.execute("file.place", &json!({ "path": path })).unwrap();
s.execute("document.save", &json!({ "path": saved })).unwrap();
let mut s = Session::new();
s.execute("prefs.set", &json!({"key": "lowResProxyEps", "value": true})).unwrap();
s.execute("document.open", &json!({ "path": saved })).unwrap();
let list = s.execute("links.list", &json!({})).unwrap();
assert_eq!(list["links"][0]["format"], "DCS", "{list}");
let id = NodeId(list["links"][0]["id"].as_u64().unwrap());
let NodeKind::Image(im) = &s.doc().unwrap().doc.node(id).unwrap().kind else { not_an_image() };
assert!(s.doc().unwrap().doc.images[&im.key].separated().is_some(), "the plates, read from the file again");
}
#[test]
fn a_dcs_header_is_found_at_the_start_of_a_file_or_behind_a_binary_eps_header() {
use crate::cmd::place::dcs::{HEAD_BYTES, head_is_dcs, is_dcs};
// A whole file, as `is_dcs` reads it.
let whole = |b: &[u8]| {
let is = head_is_dcs(b, b.len() as u64);
assert_eq!(is, Some(is_dcs(b)));
is
};
let ps = two_plates();
assert_eq!(whole(&ps), Some(true));
assert_eq!(whole(b"%!PS-Adobe-3.0 EPSF-3.0\n%%BoundingBox: 0 0 20 10\n%%EndComments\n"), Some(false));
let binary = |start: u32| {
let mut b = vec![0xC5, 0xD0, 0xD3, 0xC6];
b.extend(start.to_le_bytes());
b.extend((ps.len() as u32).to_le_bytes());
b.resize(start as usize, 0);
b.extend(&ps);
b
};
assert_eq!(whole(&binary(30)), Some(true));
// A binary header whose PostScript or TIFF preview ends past the end of the file names none.
let mut cut = binary(30);
cut[8..12].copy_from_slice(&(64u32 << 20).to_le_bytes());
assert_eq!(whole(&cut), Some(false));
let mut tiff = binary(30);
tiff[20..24].copy_from_slice(&30u32.to_le_bytes());
tiff[24..28].copy_from_slice(&(64u32 << 20).to_le_bytes());
assert_eq!(whole(&tiff), Some(false));
// A file longer than the bytes read, its PostScript running past them: its header is read from
// the part there is, unless the header puts the PostScript or the preview past the file's end.
let mut big = binary(30);
big.resize(HEAD_BYTES, b' ');
big[8..12].copy_from_slice(&(64u32 << 20).to_le_bytes());
assert_eq!(head_is_dcs(&big, 30 + (64 << 20)), Some(true));
assert_eq!(head_is_dcs(&big, 30 + (64 << 20) - 1), Some(false));
big[20..24].copy_from_slice(&30u32.to_le_bytes());
big[24..28].copy_from_slice(&(65u32 << 20).to_le_bytes());
assert_eq!(head_is_dcs(&big, 30 + (64 << 20)), Some(false));
// PostScript that starts past the bytes read: the whole file is needed.
let far = binary(HEAD_BYTES as u32 + 10);
assert_eq!(head_is_dcs(&far[..HEAD_BYTES], far.len() as u64), None);
// A header that goes on past the bytes read may name its plates further on.
let mut long = b"%!PS-Adobe-3.0 EPSF-3.0\n".to_vec();
while long.len() < HEAD_BYTES {
long.extend(format!("%%Title: {}\n", "x".repeat(190)).as_bytes());
}
long.truncate(HEAD_BYTES);
assert_eq!(head_is_dcs(&long, HEAD_BYTES as u64 + 1), None);
// One that ended within them names none.
long[30..45].copy_from_slice(b"\n%%EndComments\n");
assert_eq!(head_is_dcs(&long, HEAD_BYTES as u64 + 1), Some(false));
}
#[test]
fn dcs_transparency_marks_transparent_and_overlapped_dcs_images() {
let dir = temp_dir("transparency");
+6
View File
@@ -731,6 +731,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{key, value} | {values: {key: value…}}, tool?: id (default: the active tool) → the tool's options (`{}` reads them). The options a tool keeps (Liquify brush and tool options, Mirror & Cut, Puppet Warp, drawing tools…) last across tool switches and are saved with the preferences; another tool's are stored for when it is chosen",
),
(
"tool.toggleTouchMode",
"Switch Selection and Drawing Modes",
"",
"{} from the Selection, Direct Selection, Group Selection, Magic Wand, Lasso or Perspective Selection tool, choose the drawing tool chosen last in this window (none yet: the Pencil tool); from any other tool, choose the Selection tool, remembering the tool left as the drawing tool unless it is the Hand, Rotate View, Zoom or Print Tiling tool → {tool}. A two-finger tap on the canvas runs it in the Touch workspace (Enable Touch Gestures on)",
),
(
"effect.dialog",
"Effect…",
+13 -1
View File
@@ -11,6 +11,9 @@ pub(super) struct ActualText {
depth: usize,
owner: Option<usize>,
pending: Option<String>,
/// The owner's replacement is empty: its content has no text, so its glyphs stay art
/// ([`Self::textless`], #6971).
empty: bool,
}
impl ActualText {
@@ -22,6 +25,7 @@ impl ActualText {
if self.owner == Some(self.depth) {
self.owner = None;
self.pending = None;
self.empty = false;
}
self.depth = self.depth.saturating_sub(1);
}
@@ -30,6 +34,12 @@ impl ActualText {
self.owner.is_some()
}
/// Inside a span whose replacement text is empty: the glyphs there are no text, but they
/// still draw, so they come in as outlines rather than as type with no characters (#6971).
pub(super) fn textless(&self) -> bool {
self.owner.is_some() && self.empty
}
pub(super) fn set(&mut self, bytes: &[u8]) -> bool {
if self.active() {
return true;
@@ -39,8 +49,10 @@ impl ActualText {
if self.depth == 0 || self.depth > 128 || bytes.len() > 64 * 1024 {
return false;
}
let text = crate::import_scan::text_string(bytes);
self.owner = Some(self.depth);
self.pending = Some(crate::import_scan::text_string(bytes));
self.empty = text.is_empty();
self.pending = Some(text);
true
}
}
+3 -2
View File
@@ -800,7 +800,8 @@ impl<'p> Builder<'p> {
}
/// Glyph `o` as type: added to the line being gathered (or starting one). `false`: it keeps
/// its outline (no Unicode text, mirrored, or not type mode). No `paint`: invisible text,
/// its outline (no Unicode text, mirrored, not type mode, or in a span whose ActualText is
/// empty). No `paint`: invisible text,
/// type with neither fill nor stroke.
pub(super) fn type_glyph(
&mut self,
@@ -811,7 +812,7 @@ impl<'p> Builder<'p> {
stroke: Option<&StrokeProps>,
overprint: bool,
) -> bool {
if self.text_as != TextAs::Text || self.nested > 0 {
if self.text_as != TextAs::Text || self.nested > 0 || self.actual.textless() {
return false;
}
let authored = self.actual.active();
+25
View File
@@ -121,6 +121,31 @@ fn actual_text_empty_and_nested_owners() {
}
}
/// Glyphs in a span whose ActualText is empty have no text, but they still draw: they stay on the
/// page as outlines in their paint, filled and stroked as the text rendering mode says (#6971).
#[test]
fn empty_actual_text_keeps_the_glyphs_art() {
let outlines = |report: &ImportReport| {
let mut found = vec![];
report.document.walk(|node| {
if matches!(node.kind, NodeKind::Path { .. }) {
found.push((node.appearance.fill().is_some(), node.appearance.stroke().is_some(), node.geometric_bounds()));
}
});
found
};
for (mode, fill, stroke) in [("0", true, false), ("1", false, true), ("2", true, true)] {
let content = format!("/Span << /ActualText () >> BDC 1 0 0 rg 0 0 1 RG 3 w {mode} Tr (Halo) Tj 0 Tr EMC 0 0 0 rg (C) Tj");
let report = open(&content);
assert_eq!(plain(&report), "C", "mode {mode}: the span adds no text");
let found = outlines(&report);
assert!(found.iter().any(|(f, _, _)| *f == fill) && found.iter().any(|(_, s, _)| *s == stroke), "mode {mode}: the glyphs' art: {found:?}");
let ink = found.iter().filter_map(|(_, _, b)| *b).fold(None, |acc: Option<kurbo::Rect>, b| Some(acc.map_or(b, |a| a.union(b))));
let ink = ink.unwrap_or_else(|| panic!("mode {mode}: no outlines"));
assert!(ink.x0 >= 15.0 && ink.x1 > 40.0 && ink.y0 > 50.0 && ink.y1 < 140.0, "mode {mode}: where the word is set: {ink:?}");
}
}
#[test]
fn actual_text_decodes_pdf_strings_and_preserves_authored_order() {
for (encoded, expected) in [
+1
View File
@@ -68,6 +68,7 @@ rustix = { workspace = true, features = ["std", "process"] }
[dev-dependencies]
egui_kittest = { workspace = true, features = ["wgpu", "snapshot"] }
vectorcraft-apischema = { workspace = true }
vectorcraft-testkit = { workspace = true }
# A variable font built in code (no font file is committed).
vectorcraft-text = { workspace = true, features = ["test-fonts"] }
+4
View File
@@ -416,6 +416,10 @@ impl VectorcraftApp {
self.pen_end.forget_tool();
self.held_tool.clear();
self.activate_tool(id, true);
let now = self.session.tool_id();
if crate::touch::is_drawing_tool(now) {
self.ui.touch_drawing_tool = Some(now.to_string());
}
}
/// Go back to tool `id` after a tool that stood in for it (the pen's eraser end, [`stylus`]):
+82
View File
@@ -966,6 +966,88 @@ fn two_finger_tap_undoes_and_three_finger_tap_redoes() {
assert_eq!(count(&app), 2, "off: the first finger draws as the pointer, and nothing is undone");
}
/// In the Touch workspace a two-finger tap switches between the Selection tool and the drawing tool
/// chosen last, and undoes nothing; three fingers still redo. Outside it, two fingers undo again.
#[test]
fn two_finger_tap_in_touch_switches_selection_and_drawing_modes() {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
app.session.execute("shape.rectangle", &json!({"x": 50, "y": 50, "width": 40, "height": 40})).unwrap();
crate::workspaces::switch(&mut app.ui, crate::workspaces::TOUCH).unwrap();
app.select_tool("rectangle");
let ctx = egui::Context::default();
frame(&mut app, &ctx, vec![]);
let count = |app: &VectorcraftApp| app.session.active().unwrap().doc.layers[0].children().unwrap().len();
let c = app.canvas_rect.unwrap().center();
let touch = |n: u64, phase, pos| egui::Event::Touch { device_id: egui::TouchDeviceId(1), id: egui::TouchId(n), phase, pos, force: None };
let button = |pos, pressed| egui::Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() };
let tap = |app: &mut VectorcraftApp, fingers: u64| {
let at = |n: u64| c + vec2(n as f32 * 50.0, 0.0);
frame(app, &ctx, vec![touch(0, egui::TouchPhase::Start, at(0)), egui::Event::PointerMoved(at(0)), button(at(0), true)]);
frame(app, &ctx, vec![touch(0, egui::TouchPhase::Move, at(0) + vec2(6.0, 6.0)), egui::Event::PointerMoved(at(0) + vec2(6.0, 6.0))]);
frame(app, &ctx, (1..fingers).map(|n| touch(n, egui::TouchPhase::Start, at(n))).collect());
frame(app, &ctx, vec![touch(0, egui::TouchPhase::End, at(0)), button(at(0) + vec2(6.0, 6.0), false), egui::Event::PointerGone]);
frame(app, &ctx, (1..fingers).map(|n| touch(n, egui::TouchPhase::End, at(n))).collect());
frame(app, &ctx, vec![]);
};
tap(&mut app, 2);
assert_eq!((app.session.tool_id(), count(&app)), ("selection", 1), "selection mode, nothing undone or drawn");
tap(&mut app, 2);
assert_eq!((app.session.tool_id(), count(&app)), ("rectangle", 1), "back to the drawing tool");
// A tool chosen by hand becomes the drawing tool a switch returns to.
app.select_tool("ellipse");
tap(&mut app, 2);
tap(&mut app, 2);
assert_eq!((app.session.tool_id(), count(&app)), ("ellipse", 1));
// The switches added no undo step: undo still takes the rectangle away, and three fingers redo it.
app.run("edit.undo", json!({})).unwrap();
assert_eq!(count(&app), 0);
tap(&mut app, 3);
assert_eq!(count(&app), 1, "three fingers redo in Touch too");
// Presentation Mode runs neither.
app.ui.screen_mode = 3;
frame(&mut app, &ctx, vec![]);
tap(&mut app, 2);
assert_eq!(app.session.tool_id(), "ellipse", "Presentation Mode: no switch");
app.ui.screen_mode = 0;
// Enable Touch Gestures off: no switch.
app.session.prefs.touch_gestures = false;
app.select_tool("selection");
frame(&mut app, &ctx, vec![]);
tap(&mut app, 2);
assert_eq!(app.session.tool_id(), "selection", "off: no switch");
app.session.prefs.touch_gestures = true;
// Another workspace: two fingers undo again and switch no tool.
crate::workspaces::switch(&mut app.ui, crate::workspaces::ESSENTIALS).unwrap();
app.select_tool("rectangle");
frame(&mut app, &ctx, vec![]);
let before = count(&app);
tap(&mut app, 2);
assert_eq!(app.session.tool_id(), "rectangle");
assert_eq!(count(&app), before - 1, "Essentials: undone");
}
/// Switch Selection and Drawing Modes from the command: Pencil when no drawing tool was chosen yet,
/// a view tool is left for Selection without becoming the drawing tool, and every selection tool
/// switches to drawing mode.
#[test]
fn switch_selection_and_drawing_modes_command() {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
assert!(app.ui.touch_drawing_tool.is_none());
app.select_tool("selection");
let r = app.run(crate::touch::TOGGLE_MODE, json!({})).unwrap();
assert_eq!((r, app.session.tool_id()), (json!({"tool": "pencil"}), "pencil"), "no drawing tool chosen yet: Pencil");
app.select_tool("hand");
assert_eq!(app.run(crate::touch::TOGGLE_MODE, json!({})).unwrap(), json!({"tool": "selection"}));
assert_eq!(app.run(crate::touch::TOGGLE_MODE, json!({})).unwrap(), json!({"tool": "pencil"}), "the Hand tool is no drawing tool");
app.select_tool("pen");
for id in ["directSelection", "groupSelection", "magicWand", "lasso"] {
app.select_tool(id);
assert_eq!(app.run(crate::touch::TOGGLE_MODE, json!({})).unwrap(), json!({"tool": "pen"}), "{id}");
}
}
/// The Artboard tool's label holds the artboard's name (never translated); the tools' own
/// labels are interface text.
#[test]
+4 -3
View File
@@ -532,7 +532,8 @@ pub(super) fn wheel(
/// Enable Touch Gestures: this frame's finger contacts on the canvas ([`crate::touch`]). A second
/// finger drops the press the first one began (its tool interaction rolled back; the rest of the
/// gesture presses nothing), and a tap of two fingers undoes, one of three redoes.
/// gesture presses nothing), and a tap of two fingers undoes, one of three redoes. In the Touch
/// workspace a tap of two fingers switches between selection and drawing modes instead.
pub(super) fn touch_gestures(app: &mut VectorcraftApp, ui: &Ui, rect: egui::Rect, view: vectorcraft_engine::ViewInfo) {
if !app.session.prefs.touch_gestures {
return;
@@ -564,12 +565,12 @@ pub(super) fn touch_gestures(app: &mut VectorcraftApp, ui: &Ui, rect: egui::Rect
drop_press(app, ui, view);
ui.data_mut(|d| d.insert_temp(drag_id(), Drag::Gesture));
}
Some(crate::touch::Touch::Tap(n)) => tap = crate::touch::tap_command(n),
Some(crate::touch::Touch::Tap(n)) => tap = crate::touch::tap_command(n, app.ui.workspace == crate::workspaces::TOUCH),
None => {}
}
}
ui.data_mut(|d| d.insert_temp(key, taps));
// In Presentation Mode a tap of two or three fingers undoes or redoes nothing.
// In Presentation Mode a tap of two or three fingers runs nothing.
if let Some(cmd) = tap
&& app.ui.screen_mode < 3
{
+7 -6
View File
@@ -59,12 +59,13 @@ fn label_w(ui: &egui::Ui) -> f32 {
CONTENT_W - FIELD_W - ui.spacing().item_spacing.x
}
/// The top of the Fidelity slider (points); it starts at the lowest Fidelity the tool takes, and
/// the field takes up to 100.
/// The top of the Fidelity slider, in the tool's unit (screen pixels for the Pencil and
/// Paintbrush, points for Smooth and Blob Brush); it starts at the lowest Fidelity the tool takes,
/// and the field takes up to 100.
const FIDELITY_MAX: f64 = 20.0;
/// Fidelity `v` stepped `n` steps by the slider's and the field's keys: an arrow steps hundredths up to 0.1 pt,
/// tenths up to 1 pt and whole points above (a step down from 0.1 or 1 takes the finer step below
/// Fidelity `v` stepped `n` steps by the slider's and the field's keys: an arrow steps hundredths up to 0.1,
/// tenths up to 1 and whole units above, in the tool's unit (a step down from 0.1 or 1 takes the finer step below
/// it); ten steps at once (Shift with an arrow, Page Up/Down) multiply or divide by ten, so they go
/// 0.01 → 0.1 → 1 → 10.
fn fidelity_step(v: f64, n: f64) -> f64 {
@@ -96,7 +97,7 @@ fn fidelity_step(v: f64, n: f64) -> f64 {
/// Where Fidelity `v` sits on a slider over `(min, max)`, from 0 to 1. The rail is logarithmic, so
/// the low values, where the stroke is followed closely, get as much of it as the high ones
/// (0.01–1 pt takes most of a 0.01–20 rail).
/// (0.01–1 takes most of a 0.01–20 rail, in the tool's unit).
fn fidelity_at(v: f64, (min, max): (f64, f64)) -> f32 {
if !(v.is_finite() && min > 0.0 && max > min) {
return 0.0;
@@ -104,7 +105,7 @@ fn fidelity_at(v: f64, (min, max): (f64, f64)) -> f32 {
((v.clamp(min, max) / min).ln() / (max / min).ln()) as f32
}
/// The Fidelity at `x` (0 to 1) on a slider over `(min, max)`: hundredths below 1 pt, tenths above.
/// The Fidelity at `x` (0 to 1) on a slider over `(min, max)`: hundredths below 1, tenths above, in the tool's unit.
fn fidelity_from(x: f32, (min, max): (f64, f64)) -> f64 {
let v = min * (max / min).powf(f64::from(x.clamp(0.0, 1.0)));
let step = if v < 1.0 { 100.0 } else { 10.0 };
+3 -2
View File
@@ -151,13 +151,14 @@ fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> Result<Value, String> {
let start =
move |app: &mut VectorcraftApp| background::run(app, enabled, label, None, work, move |app, r| packaged(app, r, web, in_background.get()));
// Both in the background: the package, collected from the document as it is now, starts once
// the save is written.
// the save is written, with the automation roots in force at OK.
if let Some(id) = saving.filter(|_| enabled) {
later.set(true);
app.ui.dialog = None;
let scope = vectorcraft_engine::file_access::ScopeHandle::capture();
background::after(app, id, move |app, r| {
if saved(r)
&& let Err(e) = start(app)
&& let Err(e) = scope.run(|| start(app))
{
app.status(e);
}
@@ -979,7 +979,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
ui.separator();
let section = d.str("section");
let content_w = ui.available_width();
egui::ScrollArea::both()
let shown = egui::ScrollArea::both()
.id_salt(("para-style-sections", section))
.max_height(room)
.min_scrolled_height(room)
@@ -987,15 +987,17 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
.auto_shrink([false, true])
.show(ui, |ui| {
ui.vertical(|ui| section_body(ui, d));
})
.inner_rect
.height()
});
// `inner_rect` is the height offered before a short section shrinks the area to its content.
shown.inner_rect.height().min(shown.content_size.y)
});
let content_h = drawn.inner;
let was = ui.ctx().data(|m| m.get_temp::<f32>(content_id(ui)));
ui.ctx().data_mut(|m| m.insert_temp(content_id(ui), content_h));
// A new height lays the frame out again before it is shown, so the window is placed at its new
// size and OK and Cancel stay on the screen in the frame of a section switch.
if was.is_none_or(|was| (was - content_h).abs() > 0.5) {
ui.ctx().request_repaint();
ui.ctx().request_discard("paragraph style content height changed");
}
reset_button(ui, d);
match edited_attrs(d) {
@@ -578,3 +578,62 @@ fn every_section_draws_its_fields() {
}
}
}
/// The texts of one headless frame at a screen `w` by `h`, with their screen rects.
fn texts_at(ctx: &egui::Context, app: &mut VectorcraftApp, w: f32, h: f32) -> Vec<(String, egui::Rect)> {
fn collect(s: &egui::Shape, out: &mut Vec<(String, egui::Rect)>) {
match s {
egui::Shape::Text(t) => out.push((t.galley.text().to_string(), t.visual_bounding_rect())),
egui::Shape::Vec(v) => v.iter().for_each(|s| collect(s, out)),
_ => {}
}
}
let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(w, h));
let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(screen), ..Default::default() }, |ui| super::super::show(app, ui.ctx()));
out.textures_delta.clear();
let mut texts = vec![];
for c in &out.shapes {
collect(&c.shape, &mut texts);
}
texts
}
/// Going from a shorter section to a longer one keeps OK and Cancel on a small screen in the first
/// frame after the switch, not only once the window has measured itself again.
#[test]
fn switching_to_a_long_section_keeps_the_buttons_on_a_small_screen() {
let mut app = app();
let mut attrs: Value = serde_json::from_str(KEPT).unwrap();
for (key, value) in [
("right_indent", json!(4.0)),
("first_line_indent", json!(12.0)),
("space_after", json!(6.0)),
("composer", json!("singleLine")),
("roman_hanging", json!(true)),
("hyphenate", json!(true)),
("justification", json!({"auto_leading": 150.0})),
("korean_line_break_anywhere", json!(true)),
] {
attrs[key] = value;
}
app.run("paraStyle.new", json!({"name": "Body", "attrs": attrs})).unwrap();
app.run("ui.paraStyleOptions", json!({"name": "Body"})).unwrap();
for h in [500.0, 560.0, 640.0, 720.0] {
for to in SECTIONS {
for from in SECTIONS.into_iter().filter(|s| *s != to) {
let ctx = egui::Context::default();
crate::theme::install_fonts(&ctx);
set(&mut app, "section", json!(from));
for _ in 0..5 {
let _ = texts_at(&ctx, &mut app, 900.0, h);
}
set(&mut app, "section", json!(to));
let texts = texts_at(&ctx, &mut app, 900.0, h);
for label in ["OK", "Cancel"] {
let r = texts.iter().find(|(text, _)| text == label).unwrap_or_else(|| panic!("{label} is drawn")).1;
assert!(r.bottom() <= h + 1.0, "{label} stays on a {h}-point screen going from {from} to {to}: {r:?}");
}
}
}
}
}
@@ -248,6 +248,35 @@ fn a_failed_save_before_packaging_writes_no_package() {
}
}
/// A package that an automation request confined to its roots asks for, started once the
/// document's background save is written, is still confined to those roots, though the save's
/// result arrives outside the request.
#[test]
fn a_package_started_after_its_save_keeps_the_automation_roots() {
let (dir, elsewhere) = (Folder::new("scope"), Folder::new("scope-elsewhere"));
let (doc, out) = (dir.path("card.vectorcraft"), elsewhere.path("out"));
let root = std::path::Path::new(&out).join("card Folder");
let mut app = saved(&dir);
let files = Files::default();
let recorded = files.clone();
app.services.write_shared = Some(Arc::new(move |p: &str, b: &[u8]| {
vectorcraft_engine::file_access::check_write(p)?;
recorded.lock().unwrap().push((p.to_string(), b.to_vec()));
Ok(())
}));
let roots = AutomationRoots::new(&[dir.0.as_path()], &[dir.0.as_path()]).unwrap();
app.run("shape.rectangle", json!({"x": 0, "y": 0, "width": 10, "height": 10})).unwrap();
package_dialog(&mut app, &out);
let r = vectorcraft_engine::file_access::confine(roots.as_ref(), || confirm(&mut app)).unwrap();
assert_eq!(r["background"], true, "{r}");
// The save's result is applied outside the request, as the next frame does.
background::wait_all(&mut app);
assert_eq!(written(&files), [doc], "only the save, inside the roots");
assert!(!root.exists(), "no package folder outside the roots");
assert!(!app.session.active().unwrap().is_dirty(), "the save was written");
assert!(app.ui.status.contains("failed"), "the package was refused: {}", app.ui.status);
}
#[test]
fn a_package_made_at_once_waits_for_one_in_the_background() {
let dir = Folder::new("twice");
+37 -3
View File
@@ -300,8 +300,9 @@ struct MenuState {
/// The highlighted row and the query and filters it belongs to.
highlight: Option<usize>,
query: String,
/// The filters (kept from one opening to the next): script (0..[`SCRIPTS`]), kind, font
/// technology (variable fonts only) and favourites only.
/// The filters (kept from one opening to the next, and the same in every font menu:
/// [`Filters`]): script (0..[`SCRIPTS`]), kind, font technology (variable fonts only) and
/// favorites only.
script: usize,
class: Option<FontClass>,
variable_only: bool,
@@ -324,6 +325,35 @@ struct MenuState {
wheel_target: Option<WheelTarget>,
}
/// The filters of [`MenuState`], one set for every font menu (the Character panel's, the Control
/// bar's, the Properties panel's…): a filter chosen in one menu is on in all of them. They last
/// for the session.
#[derive(Clone, Copy, Debug, Default, PartialEq)]
struct Filters {
script: usize,
class: Option<FontClass>,
variable_only: bool,
favorites_only: bool,
}
impl Filters {
fn of(st: &MenuState) -> Self {
Self { script: st.script, class: st.class, variable_only: st.variable_only, favorites_only: st.favorites_only }
}
fn apply(self, st: &mut MenuState) {
st.script = self.script;
st.class = self.class;
st.variable_only = self.variable_only;
st.favorites_only = self.favorites_only;
}
}
/// Where the filters every font menu shares are kept ([`Filters`]).
fn filters_id() -> egui::Id {
egui::Id::unique("font-menu-filters")
}
/// The font family menu showing `current`, `width` points wide, rows sampling `sample` (the
/// selected text; `None`: a generic sample).
pub fn font_menu(
@@ -336,6 +366,7 @@ pub fn font_menu(
) -> Option<FontPick> {
let state_id = ui.scope_id().with(&id).with("font-menu");
let mut st: MenuState = ui.data(|d| d.get_temp(state_id)).unwrap_or_default();
ui.data(|d| d.get_temp::<Filters>(filters_id())).unwrap_or_default().apply(&mut st);
let target = ui.data(|d| d.get_temp(wheel_fields_id(ui.ctx().viewport_id()).with("target")));
let target_changed = st.wheel_target != target;
if target_changed {
@@ -416,7 +447,10 @@ pub fn font_menu(
if matches!(out, Some(FontPick::Chosen(..))) {
st.previewed = None;
}
ui.data_mut(|d| d.insert_temp(state_id, st));
ui.data_mut(|d| {
d.insert_temp(filters_id(), Filters::of(&st));
d.insert_temp(state_id, st);
});
out
}
+102
View File
@@ -790,6 +790,108 @@ fn a_modified_turn_that_starts_a_stream_keeps_it_off_the_field() {
assert_eq!((left, notches), (1, 0), "the stream began as a modified turn");
}
/// The font menus of two panels (other ids, other scopes) share their filters: a filter chosen in
/// one menu is on when the other opens, and it lists its rows by it.
#[test]
fn a_filter_chosen_in_one_panels_menu_is_on_in_the_others() {
use vectorcraft_text::FontClass;
let ctx = egui::Context::default();
crate::theme::install_fonts(&ctx);
let fields = [("character", "character-font", 10.0), ("control-bar", "control-font", 60.0)];
let field = |top: f32| egui::Rect::from_min_size(egui::pos2(10.0, top), egui::vec2(200.0, 30.0));
// Draws both fields (and the open menu), and returns the texts drawn with their centers and
// each menu's state.
let frame = |events: Vec<egui::Event>| {
let input =
egui::RawInput { events, screen_rect: Some(egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(800.0, 900.0))), ..Default::default() };
let mut ids = [egui::Id::NULL; 2];
let mut out = ctx.run_ui(input, |ui| {
for (i, (scope, id, top)) in fields.into_iter().enumerate() {
ui.push_id(scope, |ui| {
ui.scope_builder(egui::UiBuilder::new().max_rect(field(top)), |ui| {
ids[i] = ui.scope_id().with(id).with("font-menu");
super::font_menu(ui, id, "Inter", 200.0, None, super::MenuLook { samples: false, ..Default::default() });
});
});
}
});
out.textures_delta.clear();
let texts: Vec<(String, egui::Pos2)> = out
.shapes
.iter()
.filter_map(|c| match &c.shape {
egui::Shape::Text(t) => Some((t.galley.text().to_string(), t.visual_bounding_rect().center())),
_ => None,
})
.collect();
let states = ids.map(|id| ctx.data(|d| d.get_temp::<super::MenuState>(id)).unwrap_or_default());
(texts, states)
};
let press = |at: egui::Pos2| {
let button = |pressed| egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() };
frame(vec![egui::Event::PointerMoved(at), button(true)]);
frame(vec![button(false)]);
for _ in 0..3 {
frame(vec![]);
}
};
let open = |i: usize| press(field(fields[i].2).min + egui::vec2(10.0, 10.0));
let close = || {
let escape = [true, false].map(|pressed| egui::Event::Key {
key: egui::Key::Escape,
physical_key: None,
pressed,
repeat: false,
modifiers: Default::default(),
});
frame(escape.to_vec());
for _ in 0..3 {
frame(vec![]);
}
};
// The topmost text `label`: a filter chip, above the rows.
let chip = |label: &str| {
let (texts, _) = frame(vec![]);
texts
.into_iter()
.filter(|(t, _)| t == label)
.map(|(_, at)| at)
.min_by(|a, b| a.y.total_cmp(&b.y))
.unwrap_or_else(|| panic!("{label} is drawn"))
};
let families = |st: &super::MenuState| st.rows.iter().filter(|r| matches!(r, Row::Family(_))).count();
let filters = |st: &super::MenuState| (st.script, st.class, st.variable_only, st.favorites_only);
frame(vec![]);
// Favorites only, chosen in the first panel's menu, with no favorites: the second lists nothing.
open(0);
press(chip("★"));
close();
let (_, [first, second]) = frame(vec![]);
assert!(first.favorites_only && second.favorites_only, "the second menu has the filter before it opens");
open(1);
let (_, [_, second]) = frame(vec![]);
assert!(second.favorites_only);
assert_eq!(families(&second), 0, "no favorites, so the second menu lists no family");
// A script, a kind and Variable chosen in the second panel's menu are on in the first.
press(chip(super::script_label(3)));
press(chip(super::class_label(FontClass::Monospaced)));
press(chip(super::variable_label()));
close();
open(0);
let (_, [first, _]) = frame(vec![]);
assert_eq!(filters(&first), (3, Some(FontClass::Monospaced), true, true));
// Every filter, turned off in the first menu, is off in the second, which lists families again.
press(chip("★"));
press(chip(super::script_label(0)));
press(chip(super::class_label(FontClass::Monospaced)));
press(chip(super::variable_label()));
close();
open(1);
let (_, [_, second]) = frame(vec![]);
assert_eq!(filters(&second), (0, None, false, false));
assert!(families(&second) > 0, "every family is listed again");
}
/// The Font Technology filter's Variable is the font adjective, not the Variables panel's noun.
#[test]
fn the_variable_filter_is_named_as_fonts_are() {
+12 -4
View File
@@ -660,7 +660,8 @@ const MESSAGE_DEPTH: usize = 5;
/// Translate a status or error message for display (see the module docs). Unknown messages, and
/// parts of them (file names, numbers, a reason with no entry, a JSON object or array such as
/// `{"objects": [...]}`, a value the message quotes in `"…"`, `“…”` or backticks, such as a
/// symbol's name), stay as they are.
/// symbol's name), stay as they are. A part that starts with `{` or `[` is translated only
/// when it is a whole message with an exact entry, such as `[x, y] (two numbers)`.
pub fn message(lang: Lang, s: &str) -> String {
message_at(lang, s, MESSAGE_DEPTH)
}
@@ -671,9 +672,16 @@ fn message_at(lang: Lang, s: &str, depth: usize) -> String {
let form = count.map_or(forms.len().saturating_sub(1), |n| (lang.0.plural)(n).min(forms.len().saturating_sub(1)));
let Some(template) = forms.get(form) else { return s.to_string() };
let quoted = |v: &str| [('"', '"'), ('“', '”'), ('`', '`')].iter().any(|(a, b)| s.contains(&format!("{a}{v}{b}")));
let nested = |v: &str| depth > 1 && !v.starts_with(['{', '[']) && !quoted(v);
let values: Vec<(&str, String)> =
caps.into_iter().map(|(k, v)| (k, if nested(v) { message_at(lang, v, depth - 1) } else { v.to_string() })).collect();
let nested = |v: &str| {
if depth <= 1 || quoted(v) {
v.to_string()
} else if v.starts_with(['{', '[']) {
lang.catalog().exact_message(v).unwrap_or(v).to_string()
} else {
message_at(lang, v, depth - 1)
}
};
let values: Vec<(&str, String)> = caps.into_iter().map(|(k, v)| (k, nested(v))).collect();
let args: Vec<(&str, &str)> = values.iter().map(|(k, v)| (*k, v.as_str())).collect();
fill_once(template, &args)
}
+2
View File
@@ -1018,6 +1018,7 @@ font-technology Variable Променливи
Enable Rubber Band for Разрешаване на ластик за
Enable text access for screen readers Разрешаване на достъп до текст за екранни четци
Enable Touch Gestures Разрешаване на докосващи жестове
Switch Selection and Drawing Modes Превключване между режим на селекция и рисуване
Enable Touch Workspace Разрешаване на работно пространство за докосване
Encoding Кодиране
Encoding: Кодиране:
@@ -4192,6 +4193,7 @@ axis Both И двете
@msg `{key}` must be a whole number between {min} and {max} (got {x}) `{key}` трябва да бъде цяло число между {min} и {max} (получено е {x})
@msg `{key}` must be between {min} and {max} (got {x}) `{key}` трябва да бъде между {min} и {max} (получено е {x})
@msg `{key}` must be one of {_1} `{key}` трябва да бъде едно от {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` трябва да бъде едно от {_1}, а не {got}
@msg `{key}` must be true or false `{key}` трябва да бъде true или false
@msg `{k}` must be [x, y] `{k}` трябва да бъде [x, y]
@msg `{name}` has no options `{name}` няма опции
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -3739,6 +3739,7 @@ theme Appearance Izgled
Enable Missing Glyph Protection Omogući zaštitu od nedostajućih glifova
Enable Rubber Band for Omogući gumenu traku za
Enable Touch Gestures Omogući pokrete dodirom
Switch Selection and Drawing Modes Prebaci između načina odabira i crtanja
Enable Touch Workspace Omogući radni prostor za dodir
English: UK Engleski: UK
Every (minutes) Svakih (minuta)
@@ -4562,6 +4563,7 @@ imageTrace Outline Obris
@msg `{key}` must be a whole number between {min} and {max} (got {x}) `{key}` mora biti cijeli broj između {min} i {max} (dobiveno {x})
@msg `{key}` must be between {min} and {max} (got {x}) `{key}` mora biti između {min} i {max} (dobiveno {x})
@msg `{key}` must be one of {_1} `{key}` mora biti jedno od {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` mora biti jedno od {_1}, a ne {got}
@msg `{key}` must be true or false `{key}` mora biti true ili false
@msg `top` and `below` can't both be true `top` i `below` ne mogu oba biti true
@msg `select` must be true or false `select` mora biti true ili false
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -1481,6 +1481,7 @@ antiAlias Sharp Nítid
Enable Rubber Band for Activa la goma elàstica per a
Enable text access for screen readers Activa l’accés al text per als lectors de pantalla
Enable Touch Gestures Activa els gestos tàctils
Switch Selection and Drawing Modes Canvia entre els modes de selecció i de dibuix
Enable Touch Workspace Activa l’espai de treball tàctil
Encoding Codificació
Encoding and writing the file… S’està codificant i escrivint el fitxer…
@@ -6478,6 +6479,35 @@ digits Malayalam Malaiàlam
@msg the path has no anchor points el traçat no té punts d’ancoratge
@msg too many anchor points (limit {MAX_ANCHORS}) massa punts d’ancoratge (límit {MAX_ANCHORS})
@msg true or false true o false
@msg a number >= {_1} un nombre >= {_1}
@msg a number > {_1} un nombre > {_1}
@msg a number <= {_1} un nombre <= {_1}
@msg a number < {_1} un nombre < {_1}
@msg a number {_1} to {_2} un nombre de {_1} a {_2}
@msg a number >= {_1} and < {_2} un nombre >= {_1} i < {_2}
@msg a number > {_1} and <= {_2} un nombre > {_1} i <= {_2}
@msg a number > {_1} and < {_2} un nombre > {_1} i < {_2}
@msg a number ({_1}) un nombre ({_1})
@msg a number >= {_1} ({_2}) un nombre >= {_1} ({_2})
@msg a number > {_1} ({_2}) un nombre > {_1} ({_2})
@msg a number <= {_1} ({_2}) un nombre <= {_1} ({_2})
@msg a number < {_1} ({_2}) un nombre < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) un nombre de {_1} a {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) un nombre >= {_1} i < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) un nombre > {_1} i <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) un nombre > {_1} i < {_2} ({_3})
@msg an integer un enter
@msg an integer >= {_1} un enter >= {_1}
@msg an integer <= {_1} un enter <= {_1}
@msg an integer {_1} to {_2} un enter de {_1} a {_2}
@msg one of {_1} un de {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` ha de ser un de {_1}, no {got}
@msg an object id (a non-negative integer) un identificador d’objecte (un enter no negatiu)
@msg a list of object ids una llista d’identificadors d’objecte
@msg a color (a string, [r, g, b] or an object) un color (una cadena, [r, g, b] o un objecte)
@msg [x, y] (two numbers) [x, y] (dos nombres)
@msg an object un objecte
@msg a list una llista
@msg unknown key `{k}`; the keys here are {_1} clau desconeguda `{k}`; les claus aquí són {_1}
@msg {_1} is listed twice {_1} apareix dues vegades
@msg {_1} is not the id of an input object {_1} no és l’id d’un objecte d’entrada
Can't render this file because it contains an unexpected character in line 2 and column 73.
+6
View File
@@ -249,6 +249,12 @@ impl Catalog {
self.templates.iter().find_map(|t| t.captures(s).map(|caps| (t.forms.as_slice(), caps)))
}
/// The translation of a status or error message that has an exact `@msg` entry; templates are
/// not tried.
pub fn exact_message(&self, s: &str) -> Option<&str> {
self.messages.get(s).map(String::as_str)
}
/// The plural form `index` of the message whose English forms are `one|other`.
pub fn plural(&self, one: &str, other: &str, index: usize) -> Option<&str> {
let forms = self.plurals.get(&format!("{one}|{other}"))?;
+30
View File
@@ -3793,6 +3793,7 @@ theme Appearance Motiv
Enable Missing Glyph Protection Povolit ochranu chybějících glyfů
Enable Rubber Band for Povolit gumovou čáru pro
Enable Touch Gestures Povolit dotyková gesta
Switch Selection and Drawing Modes Přepnout mezi režimem výběru a kreslení
Enable Touch Workspace Povolit dotykový pracovní prostor
English: UK Angličtina: Spojené království
Every (minutes) Každých (minut)
@@ -6393,6 +6394,35 @@ axis Y Axis osa Y
@msg the path has no anchor points cesta nemá žádné kotevní body
@msg too many anchor points (limit {MAX_ANCHORS}) příliš mnoho kotevních bodů (limit {MAX_ANCHORS})
@msg true or false true nebo false
@msg a number >= {_1} číslo >= {_1}
@msg a number > {_1} číslo > {_1}
@msg a number <= {_1} číslo <= {_1}
@msg a number < {_1} číslo < {_1}
@msg a number {_1} to {_2} číslo od {_1} do {_2}
@msg a number >= {_1} and < {_2} číslo >= {_1} a < {_2}
@msg a number > {_1} and <= {_2} číslo > {_1} a <= {_2}
@msg a number > {_1} and < {_2} číslo > {_1} a < {_2}
@msg a number ({_1}) číslo ({_1})
@msg a number >= {_1} ({_2}) číslo >= {_1} ({_2})
@msg a number > {_1} ({_2}) číslo > {_1} ({_2})
@msg a number <= {_1} ({_2}) číslo <= {_1} ({_2})
@msg a number < {_1} ({_2}) číslo < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) číslo od {_1} do {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) číslo >= {_1} a < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) číslo > {_1} a <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) číslo > {_1} a < {_2} ({_3})
@msg an integer celé číslo
@msg an integer >= {_1} celé číslo >= {_1}
@msg an integer <= {_1} celé číslo <= {_1}
@msg an integer {_1} to {_2} celé číslo od {_1} do {_2}
@msg one of {_1} jedna z hodnot {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` musí být jedna z hodnot {_1}, nikoli {got}
@msg an object id (a non-negative integer) ID objektu (nezáporné celé číslo)
@msg a list of object ids seznam ID objektů
@msg a color (a string, [r, g, b] or an object) barva (řetězec, [r, g, b] nebo objekt)
@msg [x, y] (two numbers) [x, y] (dvě čísla)
@msg an object objekt
@msg a list seznam
@msg unknown key `{k}`; the keys here are {_1} neznámý klíč `{k}`; zde platné klíče jsou {_1}
@msg {_1} is listed twice {_1} je uveden dvakrát
@msg {_1} is not the id of an input object {_1} není ID vstupního objektu
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -3526,6 +3526,7 @@ theme Appearance Udseende
Enable Missing Glyph Protection Aktivér beskyttelse mod manglende glyffer
Enable Rubber Band for Aktivér gummibånd for
Enable Touch Gestures Aktivér berøringsbevægelser
Switch Selection and Drawing Modes Skift mellem markerings- og tegnetilstand
Enable Touch Workspace Aktivér touch-arbejdsområde
English: UK Engelsk: UK
Every (minutes) Hvert (minut)
@@ -4308,6 +4309,7 @@ imageTrace Outline Kontur
@msg `{key}` must be a whole number between {min} and {max} (got {x}) `{key}` skal være et heltal mellem {min} og {max} (fik {x})
@msg `{key}` must be between {min} and {max} (got {x}) `{key}` skal være mellem {min} og {max} (fik {x})
@msg `{key}` must be one of {_1} `{key}` skal være en af {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` skal være en af {_1}, ikke {got}
@msg `{key}` must be true or false `{key}` skal være true eller false
@msg `{k}` must be [x, y] `{k}` skal være [x, y]
@msg `{name}` has no options `{name}` har ingen indstillinger
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -1020,6 +1020,7 @@ font-technology Variable Variabel
Enable Rubber Band for Gummiband aktivieren für
Enable text access for screen readers Textzugriff für Bildschirmlesegeräte zulassen
Enable Touch Gestures Touch-Gesten aktivieren
Switch Selection and Drawing Modes Zwischen Auswahl- und Zeichenmodus wechseln
Enable Touch Workspace Touch-Arbeitsbereich aktivieren
Encoding Kodierung
Encoding: Kodierung:
@@ -5984,6 +5985,35 @@ axis Y Axis Y-Achse
@msg the path has no anchor points der Pfad hat keine Ankerpunkte
@msg too many anchor points (limit {MAX_ANCHORS}) zu viele Ankerpunkte (Grenze {MAX_ANCHORS})
@msg true or false true oder false
@msg a number >= {_1} eine Zahl >= {_1}
@msg a number > {_1} eine Zahl > {_1}
@msg a number <= {_1} eine Zahl <= {_1}
@msg a number < {_1} eine Zahl < {_1}
@msg a number {_1} to {_2} eine Zahl von {_1} bis {_2}
@msg a number >= {_1} and < {_2} eine Zahl >= {_1} und < {_2}
@msg a number > {_1} and <= {_2} eine Zahl > {_1} und <= {_2}
@msg a number > {_1} and < {_2} eine Zahl > {_1} und < {_2}
@msg a number ({_1}) eine Zahl ({_1})
@msg a number >= {_1} ({_2}) eine Zahl >= {_1} ({_2})
@msg a number > {_1} ({_2}) eine Zahl > {_1} ({_2})
@msg a number <= {_1} ({_2}) eine Zahl <= {_1} ({_2})
@msg a number < {_1} ({_2}) eine Zahl < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) eine Zahl von {_1} bis {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) eine Zahl >= {_1} und < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) eine Zahl > {_1} und <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) eine Zahl > {_1} und < {_2} ({_3})
@msg an integer eine ganze Zahl
@msg an integer >= {_1} eine ganze Zahl >= {_1}
@msg an integer <= {_1} eine ganze Zahl <= {_1}
@msg an integer {_1} to {_2} eine ganze Zahl von {_1} bis {_2}
@msg one of {_1} einer der Werte {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` muss einer der Werte {_1} sein, nicht {got}
@msg an object id (a non-negative integer) eine Objekt-ID (eine nicht negative ganze Zahl)
@msg a list of object ids eine Liste von Objekt-IDs
@msg a color (a string, [r, g, b] or an object) eine Farbe (eine Zeichenkette, [r, g, b] oder ein Objekt)
@msg [x, y] (two numbers) [x, y] (zwei Zahlen)
@msg an object ein Objekt
@msg a list eine Liste
@msg unknown key `{k}`; the keys here are {_1} unbekannter Schlüssel `{k}`; die Schlüssel hier sind {_1}
@msg {_1} is listed twice {_1} ist doppelt aufgeführt
@msg {_1} is not the id of an input object {_1} ist nicht die ID eines Eingabeobjekts
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -988,6 +988,7 @@ font-technology Variable Μεταβλητές
Enable Rubber Band for Ενεργοποίηση δυναμικής προεπισκόπησης γραμμής για
Enable text access for screen readers Ενεργοποίηση πρόσβασης κειμένου για αναγνώστες οθόνης
Enable Touch Gestures Ενεργοποίηση χειρονομιών αφής
Switch Selection and Drawing Modes Εναλλαγή λειτουργιών επιλογής και σχεδίασης
Enable Touch Workspace Ενεργοποίηση χώρου εργασίας αφής
Encoding Κωδικοποίηση
Encoding: Κωδικοποίηση:
@@ -6344,6 +6345,35 @@ axis Y Axis Άξονας Y
@msg the path has no anchor points η διαδρομή δεν έχει σημεία αγκύρωσης
@msg too many anchor points (limit {MAX_ANCHORS}) πάρα πολλά σημεία αγκύρωσης (όριο {MAX_ANCHORS})
@msg true or false true ή false
@msg a number >= {_1} αριθμός >= {_1}
@msg a number > {_1} αριθμός > {_1}
@msg a number <= {_1} αριθμός <= {_1}
@msg a number < {_1} αριθμός < {_1}
@msg a number {_1} to {_2} αριθμός από {_1} έως {_2}
@msg a number >= {_1} and < {_2} αριθμός >= {_1} και < {_2}
@msg a number > {_1} and <= {_2} αριθμός > {_1} και <= {_2}
@msg a number > {_1} and < {_2} αριθμός > {_1} και < {_2}
@msg a number ({_1}) αριθμός ({_1})
@msg a number >= {_1} ({_2}) αριθμός >= {_1} ({_2})
@msg a number > {_1} ({_2}) αριθμός > {_1} ({_2})
@msg a number <= {_1} ({_2}) αριθμός <= {_1} ({_2})
@msg a number < {_1} ({_2}) αριθμός < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) αριθμός από {_1} έως {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) αριθμός >= {_1} και < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) αριθμός > {_1} και <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) αριθμός > {_1} και < {_2} ({_3})
@msg an integer ακέραιος
@msg an integer >= {_1} ακέραιος >= {_1}
@msg an integer <= {_1} ακέραιος <= {_1}
@msg an integer {_1} to {_2} ακέραιος από {_1} έως {_2}
@msg one of {_1} μία από τις τιμές {_1}
@msg `{path}` must be one of {_1}, not {got} Το `{path}` πρέπει να είναι μία από τις τιμές {_1}, όχι {got}
@msg an object id (a non-negative integer) αναγνωριστικό αντικειμένου (μη αρνητικός ακέραιος)
@msg a list of object ids λίστα αναγνωριστικών αντικειμένων
@msg a color (a string, [r, g, b] or an object) χρώμα (συμβολοσειρά, [r, g, b] ή αντικείμενο)
@msg [x, y] (two numbers) [x, y] (δύο αριθμοί)
@msg an object αντικείμενο
@msg a list λίστα
@msg unknown key `{k}`; the keys here are {_1} άγνωστο κλειδί `{k}`· τα κλειδιά εδώ είναι {_1}
@msg {_1} is listed twice το {_1} αναφέρεται δύο φορές
@msg {_1} is not the id of an input object το {_1} δεν είναι αναγνωριστικό αντικειμένου εισόδου
Can't render this file because it is too large.
+30
View File
@@ -1041,6 +1041,7 @@ font-technology Variable Variables
Enable Rubber Band for Activar banda elástica para
Enable text access for screen readers Permitir el acceso al texto para lectores de pantalla
Enable Touch Gestures Activar gestos táctiles
Switch Selection and Drawing Modes Cambiar entre modos de selección y dibujo
Enable Touch Workspace Activar espacio de trabajo táctil
Encoding Codificación
Encoding: Codificación:
@@ -6335,6 +6336,35 @@ axis Y Axis Eje Y
@msg the path has no anchor points el trazado no tiene puntos de ancla
@msg too many anchor points (limit {MAX_ANCHORS}) demasiados puntos de ancla (límite {MAX_ANCHORS})
@msg true or false true o false
@msg a number >= {_1} un número >= {_1}
@msg a number > {_1} un número > {_1}
@msg a number <= {_1} un número <= {_1}
@msg a number < {_1} un número < {_1}
@msg a number {_1} to {_2} un número de {_1} a {_2}
@msg a number >= {_1} and < {_2} un número >= {_1} y < {_2}
@msg a number > {_1} and <= {_2} un número > {_1} y <= {_2}
@msg a number > {_1} and < {_2} un número > {_1} y < {_2}
@msg a number ({_1}) un número ({_1})
@msg a number >= {_1} ({_2}) un número >= {_1} ({_2})
@msg a number > {_1} ({_2}) un número > {_1} ({_2})
@msg a number <= {_1} ({_2}) un número <= {_1} ({_2})
@msg a number < {_1} ({_2}) un número < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) un número de {_1} a {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) un número >= {_1} y < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) un número > {_1} y <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) un número > {_1} y < {_2} ({_3})
@msg an integer un entero
@msg an integer >= {_1} un entero >= {_1}
@msg an integer <= {_1} un entero <= {_1}
@msg an integer {_1} to {_2} un entero de {_1} a {_2}
@msg one of {_1} uno de {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` debe ser uno de {_1}, no {got}
@msg an object id (a non-negative integer) un id. de objeto (un entero no negativo)
@msg a list of object ids una lista de id. de objeto
@msg a color (a string, [r, g, b] or an object) un color (una cadena, [r, g, b] o un objeto)
@msg [x, y] (two numbers) [x, y] (dos números)
@msg an object un objeto
@msg a list una lista
@msg unknown key `{k}`; the keys here are {_1} clave desconocida `{k}`; las claves aquí son {_1}
@msg {_1} is listed twice {_1} aparece dos veces
@msg {_1} is not the id of an input object {_1} no es el id de un objeto de entrada
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -3731,6 +3731,7 @@ theme Appearance Ulkoasu
Enable Missing Glyph Protection Ota puuttuvien merkkien suojaus käyttöön
Enable Rubber Band for Ota kumilankavalinta käyttöön kohteelle
Enable Touch Gestures Ota kosketuseleet käyttöön
Switch Selection and Drawing Modes Vaihda valinta- ja piirtotilan välillä
Enable Touch Workspace Ota kosketustyötila käyttöön
English: UK Englanti: UK
Every (minutes) Välein (minuuttia)
@@ -6423,6 +6424,35 @@ axis Y Axis Y-akseli
@msg the path has no anchor points polulla ei ole ankkuripisteitä
@msg too many anchor points (limit {MAX_ANCHORS}) liian monta ankkuripistettä (raja {MAX_ANCHORS})
@msg true or false true tai false
@msg a number >= {_1} luku >= {_1}
@msg a number > {_1} luku > {_1}
@msg a number <= {_1} luku <= {_1}
@msg a number < {_1} luku < {_1}
@msg a number {_1} to {_2} luku, joka on vähintään {_1} ja enintään {_2}
@msg a number >= {_1} and < {_2} luku >= {_1} ja < {_2}
@msg a number > {_1} and <= {_2} luku > {_1} ja <= {_2}
@msg a number > {_1} and < {_2} luku > {_1} ja < {_2}
@msg a number ({_1}) luku ({_1})
@msg a number >= {_1} ({_2}) luku >= {_1} ({_2})
@msg a number > {_1} ({_2}) luku > {_1} ({_2})
@msg a number <= {_1} ({_2}) luku <= {_1} ({_2})
@msg a number < {_1} ({_2}) luku < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) luku, joka on vähintään {_1} ja enintään {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) luku >= {_1} ja < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) luku > {_1} ja <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) luku > {_1} ja < {_2} ({_3})
@msg an integer kokonaisluku
@msg an integer >= {_1} kokonaisluku >= {_1}
@msg an integer <= {_1} kokonaisluku <= {_1}
@msg an integer {_1} to {_2} kokonaisluku, joka on vähintään {_1} ja enintään {_2}
@msg one of {_1} jokin arvoista {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` on oltava jokin arvoista {_1}, ei {got}
@msg an object id (a non-negative integer) objektitunnus (ei-negatiivinen kokonaisluku)
@msg a list of object ids objektitunnusten luettelo
@msg a color (a string, [r, g, b] or an object) väri (merkkijono, [r, g, b] tai objekti)
@msg [x, y] (two numbers) [x, y] (kaksi lukua)
@msg an object objekti
@msg a list luettelo
@msg unknown key `{k}`; the keys here are {_1} tuntematon avain `{k}`; tässä käytettävät avaimet ovat {_1}
@msg {_1} is listed twice {_1} on luettelossa kahdesti
@msg {_1} is not the id of an input object {_1} ei ole syöteobjektin tunnus
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -1036,6 +1036,7 @@ font-technology Variable Variables
Enable Rubber Band for Activer l’élastique pour
Enable text access for screen readers Autoriser l’accès au texte pour les lecteurs d’écran
Enable Touch Gestures Activer les gestes tactiles
Switch Selection and Drawing Modes Basculer entre les modes sélection et dessin
Enable Touch Workspace Activer l’espace de travail tactile
Encoding Codage
Encoding: Codage :
@@ -6388,6 +6389,35 @@ axis Y Axis Axe Y
@msg the path has no anchor points le tracé n’a aucun point d’ancrage
@msg too many anchor points (limit {MAX_ANCHORS}) trop de points d’ancrage (limite {MAX_ANCHORS})
@msg true or false true ou false
@msg a number >= {_1} un nombre >= {_1}
@msg a number > {_1} un nombre > {_1}
@msg a number <= {_1} un nombre <= {_1}
@msg a number < {_1} un nombre < {_1}
@msg a number {_1} to {_2} un nombre de {_1} à {_2}
@msg a number >= {_1} and < {_2} un nombre >= {_1} et < {_2}
@msg a number > {_1} and <= {_2} un nombre > {_1} et <= {_2}
@msg a number > {_1} and < {_2} un nombre > {_1} et < {_2}
@msg a number ({_1}) un nombre ({_1})
@msg a number >= {_1} ({_2}) un nombre >= {_1} ({_2})
@msg a number > {_1} ({_2}) un nombre > {_1} ({_2})
@msg a number <= {_1} ({_2}) un nombre <= {_1} ({_2})
@msg a number < {_1} ({_2}) un nombre < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) un nombre de {_1} à {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) un nombre >= {_1} et < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) un nombre > {_1} et <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) un nombre > {_1} et < {_2} ({_3})
@msg an integer un entier
@msg an integer >= {_1} un entier >= {_1}
@msg an integer <= {_1} un entier <= {_1}
@msg an integer {_1} to {_2} un entier de {_1} à {_2}
@msg one of {_1} l’une des valeurs {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` doit être l’une des valeurs {_1}, pas {got}
@msg an object id (a non-negative integer) un identifiant d’objet (un entier positif ou nul)
@msg a list of object ids une liste d’identifiants d’objet
@msg a color (a string, [r, g, b] or an object) une couleur (une chaîne, [r, g, b] ou un objet)
@msg [x, y] (two numbers) [x, y] (deux nombres)
@msg an object un objet
@msg a list une liste
@msg unknown key `{k}`; the keys here are {_1} clé inconnue `{k}` ; les clés ici sont {_1}
@msg {_1} is listed twice {_1} figure deux fois
@msg {_1} is not the id of an input object {_1} n’est pas l’identifiant d’un objet d’entrée
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -1632,6 +1632,7 @@ antiAlias Sharp शार्प
Enable Rubber Band for के लिए रबर बैंड सक्षम करें
Enable text access for screen readers स्क्रीन रीडर के लिए टेक्स्ट एक्सेस सक्षम करें
Enable Touch Gestures टच जेस्चर ऑन करें
Switch Selection and Drawing Modes चयन और ड्रॉइंग मोड के बीच बदलें
Enable Touch Workspace टच वर्कस्पेस सक्षम करें
Enclosing Lasso लासो संलग्न करना
Enclosing Lasso Tool लासो टूल संलग्न करना
@@ -5546,6 +5547,35 @@ antiAlias Sharp शार्प
@msg the path has no anchor points पाथ में कोई एंकर पॉइंट नहीं है
@msg too many anchor points (limit {MAX_ANCHORS}) बहुत अधिक एंकर पॉइंट (सीमा {MAX_ANCHORS})
@msg true or false true या false
@msg a number >= {_1} एक संख्या >= {_1}
@msg a number > {_1} एक संख्या > {_1}
@msg a number <= {_1} एक संख्या <= {_1}
@msg a number < {_1} एक संख्या < {_1}
@msg a number {_1} to {_2} {_1} से {_2} तक की एक संख्या
@msg a number >= {_1} and < {_2} एक संख्या >= {_1} और < {_2}
@msg a number > {_1} and <= {_2} एक संख्या > {_1} और <= {_2}
@msg a number > {_1} and < {_2} एक संख्या > {_1} और < {_2}
@msg a number ({_1}) एक संख्या ({_1})
@msg a number >= {_1} ({_2}) एक संख्या >= {_1} ({_2})
@msg a number > {_1} ({_2}) एक संख्या > {_1} ({_2})
@msg a number <= {_1} ({_2}) एक संख्या <= {_1} ({_2})
@msg a number < {_1} ({_2}) एक संख्या < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) {_1} से {_2} तक की एक संख्या ({_3})
@msg a number >= {_1} and < {_2} ({_3}) एक संख्या >= {_1} और < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) एक संख्या > {_1} और <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) एक संख्या > {_1} और < {_2} ({_3})
@msg an integer एक पूर्णांक
@msg an integer >= {_1} एक पूर्णांक >= {_1}
@msg an integer <= {_1} एक पूर्णांक <= {_1}
@msg an integer {_1} to {_2} {_1} से {_2} तक का एक पूर्णांक
@msg one of {_1} {_1} में से एक
@msg `{path}` must be one of {_1}, not {got} `{path}` {_1} में से एक होना चाहिए, {got} नहीं
@msg an object id (a non-negative integer) एक ऑब्जेक्ट id (एक गैर-नकारात्मक पूर्णांक)
@msg a list of object ids ऑब्जेक्ट ids की एक सूची
@msg a color (a string, [r, g, b] or an object) एक रंग (एक स्ट्रिंग, [r, g, b] या एक ऑब्जेक्ट)
@msg [x, y] (two numbers) [x, y] (दो संख्याएँ)
@msg an object एक ऑब्जेक्ट
@msg a list एक सूची
@msg unknown key `{k}`; the keys here are {_1} अज्ञात कुंजी `{k}`; यहाँ की कुंजियाँ {_1} हैं
@msg {_1} is listed twice {_1} दो बार सूचीबद्ध है
@msg {_1} is not the id of an input object {_1} किसी इनपुट ऑब्जेक्ट का id नहीं है
Can't render this file because it is too large.
+30
View File
@@ -1317,6 +1317,7 @@ font-technology Variable Változó
Enable Rubber Band for Gumiszalag-előnézet ehhez:
Enable text access for screen readers Szöveghozzáférés engedélyezése képernyőolvasóknak
Enable Touch Gestures Érintési kézmozdulatok
Switch Selection and Drawing Modes Váltás a kijelölési és a rajzolási mód között
Enable Touch Workspace Érintőképernyős munkaterület
Encoding Kódolás
Encoding: Kódolás:
@@ -6376,6 +6377,35 @@ axis Y Axis Y tengely
@msg the path has no anchor points az útvonalnak nincsenek horgonypontjai
@msg too many anchor points (limit {MAX_ANCHORS}) túl sok horgonypont (korlát: {MAX_ANCHORS})
@msg true or false true vagy false
@msg a number >= {_1} szám >= {_1}
@msg a number > {_1} szám > {_1}
@msg a number <= {_1} szám <= {_1}
@msg a number < {_1} szám < {_1}
@msg a number {_1} to {_2} {_1} és {_2} közötti szám
@msg a number >= {_1} and < {_2} szám >= {_1} és < {_2}
@msg a number > {_1} and <= {_2} szám > {_1} és <= {_2}
@msg a number > {_1} and < {_2} szám > {_1} és < {_2}
@msg a number ({_1}) szám ({_1})
@msg a number >= {_1} ({_2}) szám >= {_1} ({_2})
@msg a number > {_1} ({_2}) szám > {_1} ({_2})
@msg a number <= {_1} ({_2}) szám <= {_1} ({_2})
@msg a number < {_1} ({_2}) szám < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) {_1} és {_2} közötti szám ({_3})
@msg a number >= {_1} and < {_2} ({_3}) szám >= {_1} és < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) szám > {_1} és <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) szám > {_1} és < {_2} ({_3})
@msg an integer egész szám
@msg an integer >= {_1} egész szám >= {_1}
@msg an integer <= {_1} egész szám <= {_1}
@msg an integer {_1} to {_2} {_1} és {_2} közötti egész szám
@msg one of {_1} {_1} közül az egyik
@msg `{path}` must be one of {_1}, not {got} `{path}`: {_1} közül az egyik kell, nem ez: {got}
@msg an object id (a non-negative integer) objektumazonosító (nemnegatív egész szám)
@msg a list of object ids objektumazonosítók listája
@msg a color (a string, [r, g, b] or an object) szín (karakterlánc, [r, g, b] vagy objektum)
@msg [x, y] (two numbers) [x, y] (két szám)
@msg an object objektum
@msg a list lista
@msg unknown key `{k}`; the keys here are {_1} ismeretlen kulcs: `{k}`; az itt használható kulcsok: {_1}
@msg {_1} is listed twice {_1} kétszer szerepel
@msg {_1} is not the id of an input object {_1} nem egy bemeneti objektum azonosítója
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -3526,6 +3526,7 @@ theme Appearance Tampilan
Enable Missing Glyph Protection Aktifkan perlindungan glyph yang hilang
Enable Rubber Band for Aktifkan rubber band untuk
Enable Touch Gestures Aktifkan gestur sentuh
Switch Selection and Drawing Modes Beralih antara mode seleksi dan menggambar
Enable Touch Workspace Aktifkan ruang kerja sentuh
English: UK Inggris: UK
Every (minutes) Setiap (menit)
@@ -4308,6 +4309,7 @@ imageTrace Outline Kontur
@msg `{key}` must be a whole number between {min} and {max} (got {x}) `{key}` harus berupa bilangan bulat antara {min} dan {max} (diperoleh {x})
@msg `{key}` must be between {min} and {max} (got {x}) `{key}` harus di antara {min} dan {max} (diperoleh {x})
@msg `{key}` must be one of {_1} `{key}` harus salah satu dari {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` harus salah satu dari {_1}, bukan {got}
@msg `{key}` must be true or false `{key}` harus true atau false
@msg `{k}` must be [x, y] `{k}` harus [x, y]
@msg `{name}` has no options `{name}` tidak memiliki opsi
Can't render this file because it contains an unexpected character in line 2418 and column 5.
+30
View File
@@ -1050,6 +1050,7 @@ font-technology Variable Variabili
Enable Rubber Band for Attiva elastico per
Enable text access for screen readers Consenti l'accesso al testo per le utilità di lettura dello schermo
Enable Touch Gestures Attiva gesti touch
Switch Selection and Drawing Modes Passa tra modalità selezione e disegno
Enable Touch Workspace Attiva area di lavoro touch
Encoding Codifica
Encoding: Codifica:
@@ -6018,6 +6019,35 @@ axis Y Axis Asse Y
@msg the path has no anchor points il tracciato non ha punti di ancoraggio
@msg too many anchor points (limit {MAX_ANCHORS}) troppi punti di ancoraggio (limite {MAX_ANCHORS})
@msg true or false true o false
@msg a number >= {_1} un numero >= {_1}
@msg a number > {_1} un numero > {_1}
@msg a number <= {_1} un numero <= {_1}
@msg a number < {_1} un numero < {_1}
@msg a number {_1} to {_2} un numero da {_1} a {_2}
@msg a number >= {_1} and < {_2} un numero >= {_1} e < {_2}
@msg a number > {_1} and <= {_2} un numero > {_1} e <= {_2}
@msg a number > {_1} and < {_2} un numero > {_1} e < {_2}
@msg a number ({_1}) un numero ({_1})
@msg a number >= {_1} ({_2}) un numero >= {_1} ({_2})
@msg a number > {_1} ({_2}) un numero > {_1} ({_2})
@msg a number <= {_1} ({_2}) un numero <= {_1} ({_2})
@msg a number < {_1} ({_2}) un numero < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) un numero da {_1} a {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) un numero >= {_1} e < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) un numero > {_1} e <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) un numero > {_1} e < {_2} ({_3})
@msg an integer un intero
@msg an integer >= {_1} un intero >= {_1}
@msg an integer <= {_1} un intero <= {_1}
@msg an integer {_1} to {_2} un intero da {_1} a {_2}
@msg one of {_1} uno tra {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` deve essere uno tra {_1}, non {got}
@msg an object id (a non-negative integer) un ID di oggetto (un intero non negativo)
@msg a list of object ids un elenco di ID di oggetti
@msg a color (a string, [r, g, b] or an object) un colore (una stringa, [r, g, b] o un oggetto)
@msg [x, y] (two numbers) [x, y] (due numeri)
@msg an object un oggetto
@msg a list un elenco
@msg unknown key `{k}`; the keys here are {_1} chiave sconosciuta `{k}`; le chiavi qui sono {_1}
@msg {_1} is listed twice {_1} è elencato due volte
@msg {_1} is not the id of an input object {_1} non è l’id di un oggetto di input
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -1641,6 +1641,7 @@ antiAlias Sharp シャープ
Enable Opacity Mask 不透明マスクを有効にする
Enable Rubber Band for ラバーバンドを有効にする対象
Enable Touch Gestures タッチジェスチャーを有効にする
Switch Selection and Drawing Modes 選択モードと描画モードを切り替え
Enable Touch Workspace タッチワークスペースを有効にする
Enable copying of text, images and other content テキスト、イメージ、その他のコンテンツのコピーを許可
Enable in-menu font previews メニュー内でフォントプレビューを有効にする
@@ -6083,6 +6084,35 @@ axis Y Axis Y 軸
@msg the path has no anchor points パスにアンカーポイントがありません
@msg too many anchor points (limit {MAX_ANCHORS}) アンカーポイントが多すぎます (上限 {MAX_ANCHORS})
@msg true or false true または false
@msg a number >= {_1} {_1} 以上の数値
@msg a number > {_1} {_1} より大きい数値
@msg a number <= {_1} {_1} 以下の数値
@msg a number < {_1} {_1} 未満の数値
@msg a number {_1} to {_2} {_1} から {_2} までの数値
@msg a number >= {_1} and < {_2} {_1} 以上 {_2} 未満の数値
@msg a number > {_1} and <= {_2} {_1} より大きく {_2} 以下の数値
@msg a number > {_1} and < {_2} {_1} より大きく {_2} 未満の数値
@msg a number ({_1}) 数値 ({_1})
@msg a number >= {_1} ({_2}) {_1} 以上の数値 ({_2})
@msg a number > {_1} ({_2}) {_1} より大きい数値 ({_2})
@msg a number <= {_1} ({_2}) {_1} 以下の数値 ({_2})
@msg a number < {_1} ({_2}) {_1} 未満の数値 ({_2})
@msg a number {_1} to {_2} ({_3}) {_1} から {_2} までの数値 ({_3})
@msg a number >= {_1} and < {_2} ({_3}) {_1} 以上 {_2} 未満の数値 ({_3})
@msg a number > {_1} and <= {_2} ({_3}) {_1} より大きく {_2} 以下の数値 ({_3})
@msg a number > {_1} and < {_2} ({_3}) {_1} より大きく {_2} 未満の数値 ({_3})
@msg an integer 整数
@msg an integer >= {_1} {_1} 以上の整数
@msg an integer <= {_1} {_1} 以下の整数
@msg an integer {_1} to {_2} {_1} から {_2} までの整数
@msg one of {_1} {_1} のいずれか
@msg `{path}` must be one of {_1}, not {got} `{path}` は {_1} のいずれかにしてください ({got} は使えません)
@msg an object id (a non-negative integer) オブジェクト ID (0 以上の整数)
@msg a list of object ids オブジェクト ID のリスト
@msg a color (a string, [r, g, b] or an object) カラー (文字列、[r, g, b] またはオブジェクト)
@msg [x, y] (two numbers) [x, y] (2 つの数値)
@msg an object オブジェクト
@msg a list リスト
@msg unknown key `{k}`; the keys here are {_1} `{k}` は不明なキーです。ここで使えるキー: {_1}
@msg {_1} is listed twice {_1} が 2 回指定されています
@msg {_1} is not the id of an input object {_1} は入力オブジェクトの ID ではありません
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -3370,6 +3370,7 @@ theme Appearance იერსახე
Enable Missing Glyph Protection გამოტოვებული გლიფებისგან დაცვის ჩართვა
Enable Rubber Band for რეზინის ზოლის ჩართვა:
Enable Touch Gestures შეხების ჟესტების ჩართვა
Switch Selection and Drawing Modes მონიშვნისა და ხატვის რეჟიმების გადართვა
Enable Touch Workspace სენსორული სამუშაო სივრცის ჩართვა
English: UK ინგლისური: ბრიტანეთი
Every (minutes) ყოველ (წუთში)
@@ -6344,6 +6345,35 @@ axis Y Axis Y ღერძი
@msg the path has no anchor points ტრაექტორიას საყრდენი წერტილები არ აქვს
@msg too many anchor points (limit {MAX_ANCHORS}) ძალიან ბევრი საყრდენი წერტილი (ლიმიტი {MAX_ANCHORS})
@msg true or false true ან false
@msg a number >= {_1} რიცხვი >= {_1}
@msg a number > {_1} რიცხვი > {_1}
@msg a number <= {_1} რიცხვი <= {_1}
@msg a number < {_1} რიცხვი < {_1}
@msg a number {_1} to {_2} რიცხვი {_1}-დან {_2}-მდე
@msg a number >= {_1} and < {_2} რიცხვი >= {_1} და < {_2}
@msg a number > {_1} and <= {_2} რიცხვი > {_1} და <= {_2}
@msg a number > {_1} and < {_2} რიცხვი > {_1} და < {_2}
@msg a number ({_1}) რიცხვი ({_1})
@msg a number >= {_1} ({_2}) რიცხვი >= {_1} ({_2})
@msg a number > {_1} ({_2}) რიცხვი > {_1} ({_2})
@msg a number <= {_1} ({_2}) რიცხვი <= {_1} ({_2})
@msg a number < {_1} ({_2}) რიცხვი < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) რიცხვი {_1}-დან {_2}-მდე ({_3})
@msg a number >= {_1} and < {_2} ({_3}) რიცხვი >= {_1} და < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) რიცხვი > {_1} და <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) რიცხვი > {_1} და < {_2} ({_3})
@msg an integer მთელი რიცხვი
@msg an integer >= {_1} მთელი რიცხვი >= {_1}
@msg an integer <= {_1} მთელი რიცხვი <= {_1}
@msg an integer {_1} to {_2} მთელი რიცხვი {_1}-დან {_2}-მდე
@msg one of {_1} ერთ-ერთი მნიშვნელობა {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` უნდა იყოს ერთ-ერთი მნიშვნელობა {_1} და არა {got}
@msg an object id (a non-negative integer) ობიექტის იდენტიფიკატორი (არაუარყოფითი მთელი რიცხვი)
@msg a list of object ids ობიექტების იდენტიფიკატორების სია
@msg a color (a string, [r, g, b] or an object) ფერი (სტრიქონი, [r, g, b] ან ობიექტი)
@msg [x, y] (two numbers) [x, y] (ორი რიცხვი)
@msg an object ობიექტი
@msg a list სია
@msg unknown key `{k}`; the keys here are {_1} უცნობი გასაღები `{k}`; აქ გასაღებებია: {_1}
@msg {_1} is listed twice {_1} ორჯერაა მითითებული
@msg {_1} is not the id of an input object {_1} შემავალი ობიექტის ID არ არის
Can't render this file because it is too large.
+30
View File
@@ -1631,6 +1631,7 @@ antiAlias Sharp 날카롭게
Enable Opacity Mask 불투명 마스크 사용
Enable Rubber Band for 러버 밴드 사용 대상
Enable Touch Gestures 터치 제스처 사용
Switch Selection and Drawing Modes 선택 모드와 그리기 모드 전환
Enable Touch Workspace 터치 작업 영역 사용
Enable copying of text, images and other content 텍스트, 이미지 및 기타 콘텐츠 복사 허용
Enable in-menu font previews 메뉴에서 글꼴 미리 보기 사용
@@ -5979,6 +5980,35 @@ axis Y Axis Y축
@msg the path has no anchor points 패스에 앵커 포인트가 없습니다
@msg too many anchor points (limit {MAX_ANCHORS}) 앵커 포인트가 너무 많습니다(한도 {MAX_ANCHORS})
@msg true or false true 또는 false
@msg a number >= {_1} {_1} 이상인 숫자
@msg a number > {_1} {_1} 초과인 숫자
@msg a number <= {_1} {_1} 이하인 숫자
@msg a number < {_1} {_1} 미만인 숫자
@msg a number {_1} to {_2} {_1} 이상 {_2} 이하인 숫자
@msg a number >= {_1} and < {_2} {_1} 이상 {_2} 미만인 숫자
@msg a number > {_1} and <= {_2} {_1} 초과 {_2} 이하인 숫자
@msg a number > {_1} and < {_2} {_1} 초과 {_2} 미만인 숫자
@msg a number ({_1}) 숫자({_1})
@msg a number >= {_1} ({_2}) {_1} 이상인 숫자({_2})
@msg a number > {_1} ({_2}) {_1} 초과인 숫자({_2})
@msg a number <= {_1} ({_2}) {_1} 이하인 숫자({_2})
@msg a number < {_1} ({_2}) {_1} 미만인 숫자({_2})
@msg a number {_1} to {_2} ({_3}) {_1} 이상 {_2} 이하인 숫자({_3})
@msg a number >= {_1} and < {_2} ({_3}) {_1} 이상 {_2} 미만인 숫자({_3})
@msg a number > {_1} and <= {_2} ({_3}) {_1} 초과 {_2} 이하인 숫자({_3})
@msg a number > {_1} and < {_2} ({_3}) {_1} 초과 {_2} 미만인 숫자({_3})
@msg an integer 정수
@msg an integer >= {_1} {_1} 이상인 정수
@msg an integer <= {_1} {_1} 이하인 정수
@msg an integer {_1} to {_2} {_1} 이상 {_2} 이하인 정수
@msg one of {_1} {_1} 중 하나
@msg `{path}` must be one of {_1}, not {got} `{path}`은(는) {_1} 중 하나여야 합니다({got} 사용 불가)
@msg an object id (a non-negative integer) 개체 ID(음수가 아닌 정수)
@msg a list of object ids 개체 ID 목록
@msg a color (a string, [r, g, b] or an object) 색상(문자열, [r, g, b] 또는 개체)
@msg [x, y] (two numbers) [x, y](숫자 두 개)
@msg an object 개체
@msg a list 목록
@msg unknown key `{k}`; the keys here are {_1} 알 수 없는 키 `{k}`: 여기서 사용할 수 있는 키: {_1}
@msg {_1} is listed twice {_1}이(가) 두 번 나열되었습니다
@msg {_1} is not the id of an input object {_1}은(는) 입력 개체의 ID가 아닙니다
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -3540,6 +3540,7 @@ theme Appearance Vormgeving
Enable Missing Glyph Protection Beveiliging tegen ontbrekende glyphs inschakelen
Enable Rubber Band for Rubberband inschakelen voor
Enable Touch Gestures Touchgebaren inschakelen
Switch Selection and Drawing Modes Wisselen tussen selectie- en tekenmodus
Enable Touch Workspace Touch-werkruimte inschakelen
English: UK Engels: VK
Every (minutes) Elke (minuten)
@@ -4322,6 +4323,7 @@ imageTrace Outline Contour
@msg `{key}` must be a whole number between {min} and {max} (got {x}) `{key}` moet een geheel getal tussen {min} en {max} zijn (kreeg {x})
@msg `{key}` must be between {min} and {max} (got {x}) `{key}` moet tussen {min} en {max} liggen (kreeg {x})
@msg `{key}` must be one of {_1} `{key}` moet een van {_1} zijn
@msg `{path}` must be one of {_1}, not {got} `{path}` moet een van {_1} zijn, niet {got}
@msg `{key}` must be true or false `{key}` moet true of false zijn
@msg `{k}` must be [x, y] `{k}` moet [x, y] zijn
@msg `{name}` has no options `{name}` heeft geen opties
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -3670,6 +3670,7 @@ theme Appearance Wygląd
Enable Missing Glyph Protection Włącz ochronę przed brakującymi glifami
Enable Rubber Band for Włącz gumkę podglądu dla
Enable Touch Gestures Włącz gesty dotykowe
Switch Selection and Drawing Modes Przełącz tryby zaznaczania i rysowania
Enable Touch Workspace Włącz dotykowy obszar roboczy
English: UK Angielski: Wielka Brytania
Every (minutes) Co (minuty)
@@ -6247,6 +6248,35 @@ axis Y Axis Oś Y
@msg the path has no anchor points ścieżka nie ma punktów kontrolnych
@msg too many anchor points (limit {MAX_ANCHORS}) za dużo punktów kontrolnych (limit {MAX_ANCHORS})
@msg true or false true lub false
@msg a number >= {_1} liczbą >= {_1}
@msg a number > {_1} liczbą > {_1}
@msg a number <= {_1} liczbą <= {_1}
@msg a number < {_1} liczbą < {_1}
@msg a number {_1} to {_2} liczbą od {_1} do {_2}
@msg a number >= {_1} and < {_2} liczbą >= {_1} i < {_2}
@msg a number > {_1} and <= {_2} liczbą > {_1} i <= {_2}
@msg a number > {_1} and < {_2} liczbą > {_1} i < {_2}
@msg a number ({_1}) liczbą ({_1})
@msg a number >= {_1} ({_2}) liczbą >= {_1} ({_2})
@msg a number > {_1} ({_2}) liczbą > {_1} ({_2})
@msg a number <= {_1} ({_2}) liczbą <= {_1} ({_2})
@msg a number < {_1} ({_2}) liczbą < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) liczbą od {_1} do {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) liczbą >= {_1} i < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) liczbą > {_1} i <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) liczbą > {_1} i < {_2} ({_3})
@msg an integer liczbą całkowitą
@msg an integer >= {_1} liczbą całkowitą >= {_1}
@msg an integer <= {_1} liczbą całkowitą <= {_1}
@msg an integer {_1} to {_2} liczbą całkowitą od {_1} do {_2}
@msg one of {_1} jedną z wartości {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` musi być jedną z wartości {_1}, a nie {got}
@msg an object id (a non-negative integer) identyfikatorem obiektu (nieujemną liczbą całkowitą)
@msg a list of object ids listą identyfikatorów obiektów
@msg a color (a string, [r, g, b] or an object) kolorem (ciągiem znaków, [r, g, b] lub obiektem)
@msg [x, y] (two numbers) [x, y] (dwiema liczbami)
@msg an object obiektem
@msg a list listą
@msg unknown key `{k}`; the keys here are {_1} nieznany klucz `{k}`; klucze w tym miejscu to {_1}
@msg {_1} is listed twice {_1} występuje dwa razy
@msg {_1} is not the id of an input object {_1} nie jest identyfikatorem obiektu wejściowego
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -931,6 +931,7 @@ antiAlias Sharp Nítido
Enable Opacity Mask Habilitar Máscara de Opacidade
Enable Rubber Band for Habilitar Elástico para
Enable Touch Gestures Habilitar Gestos de Toque
Switch Selection and Drawing Modes Alternar Modos de Seleção e Desenho
Enable Touch Workspace Habilitar Espaço de Trabalho de Toque
Enable copying of text, images and other content Habilitar cópia de texto, imagens e outro conteúdo
Enable in-menu font previews Habilitar visualizações de fonte no menu
@@ -6308,6 +6309,35 @@ axis Y Axis Eixo Y
@msg the path has no anchor points o caminho não tem pontos de ancoragem
@msg too many anchor points (limit {MAX_ANCHORS}) pontos de ancoragem demais (limite {MAX_ANCHORS})
@msg true or false true ou false
@msg a number >= {_1} um número >= {_1}
@msg a number > {_1} um número > {_1}
@msg a number <= {_1} um número <= {_1}
@msg a number < {_1} um número < {_1}
@msg a number {_1} to {_2} um número de {_1} a {_2}
@msg a number >= {_1} and < {_2} um número >= {_1} e < {_2}
@msg a number > {_1} and <= {_2} um número > {_1} e <= {_2}
@msg a number > {_1} and < {_2} um número > {_1} e < {_2}
@msg a number ({_1}) um número ({_1})
@msg a number >= {_1} ({_2}) um número >= {_1} ({_2})
@msg a number > {_1} ({_2}) um número > {_1} ({_2})
@msg a number <= {_1} ({_2}) um número <= {_1} ({_2})
@msg a number < {_1} ({_2}) um número < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) um número de {_1} a {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) um número >= {_1} e < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) um número > {_1} e <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) um número > {_1} e < {_2} ({_3})
@msg an integer um inteiro
@msg an integer >= {_1} um inteiro >= {_1}
@msg an integer <= {_1} um inteiro <= {_1}
@msg an integer {_1} to {_2} um inteiro de {_1} a {_2}
@msg one of {_1} um de {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` deve ser um de {_1}, não {got}
@msg an object id (a non-negative integer) um ID de objeto (um inteiro não negativo)
@msg a list of object ids uma lista de IDs de objeto
@msg a color (a string, [r, g, b] or an object) uma cor (uma string, [r, g, b] ou um objeto)
@msg [x, y] (two numbers) [x, y] (dois números)
@msg an object um objeto
@msg a list uma lista
@msg unknown key `{k}`; the keys here are {_1} chave desconhecida `{k}`; as chaves aqui são {_1}
@msg {_1} is listed twice {_1} aparece duas vezes
@msg {_1} is not the id of an input object {_1} não é o id de um objeto de entrada
Can't render this file because it contains an unexpected character in line 6 and column 47.
+30
View File
@@ -1039,6 +1039,7 @@ font-technology Variable Вариативные
Enable Rubber Band for Включить «резиновую полосу» для
Enable text access for screen readers Разрешить доступ к тексту для программ чтения с экрана
Enable Touch Gestures Включить сенсорные жесты
Switch Selection and Drawing Modes Переключить режимы выделения и рисования
Enable Touch Workspace Включить сенсорную рабочую среду
Encoding Кодировка
Encoding: Кодировка:
@@ -6004,6 +6005,35 @@ axis Y Axis Ось Y
@msg the path has no anchor points у контура нет опорных точек
@msg too many anchor points (limit {MAX_ANCHORS}) слишком много опорных точек (предел {MAX_ANCHORS})
@msg true or false true или false
@msg a number >= {_1} число >= {_1}
@msg a number > {_1} число > {_1}
@msg a number <= {_1} число <= {_1}
@msg a number < {_1} число < {_1}
@msg a number {_1} to {_2} число от {_1} до {_2}
@msg a number >= {_1} and < {_2} число >= {_1} и < {_2}
@msg a number > {_1} and <= {_2} число > {_1} и <= {_2}
@msg a number > {_1} and < {_2} число > {_1} и < {_2}
@msg a number ({_1}) число ({_1})
@msg a number >= {_1} ({_2}) число >= {_1} ({_2})
@msg a number > {_1} ({_2}) число > {_1} ({_2})
@msg a number <= {_1} ({_2}) число <= {_1} ({_2})
@msg a number < {_1} ({_2}) число < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) число от {_1} до {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) число >= {_1} и < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) число > {_1} и <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) число > {_1} и < {_2} ({_3})
@msg an integer целое число
@msg an integer >= {_1} целое число >= {_1}
@msg an integer <= {_1} целое число <= {_1}
@msg an integer {_1} to {_2} целое число от {_1} до {_2}
@msg one of {_1} одно из значений {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` должно быть одним из значений {_1}, а не {got}
@msg an object id (a non-negative integer) идентификатор объекта (неотрицательное целое число)
@msg a list of object ids список идентификаторов объектов
@msg a color (a string, [r, g, b] or an object) цвет (строка, [r, g, b] или объект)
@msg [x, y] (two numbers) [x, y] (два числа)
@msg an object объект
@msg a list список
@msg unknown key `{k}`; the keys here are {_1} неизвестный ключ `{k}`; здесь допустимы ключи {_1}
@msg {_1} is listed twice {_1} указан дважды
@msg {_1} is not the id of an input object {_1} не является идентификатором входного объекта
Can't render this file because it is too large.
+30
View File
@@ -1020,6 +1020,7 @@ font-technology Variable Variabla
Enable Rubber Band for Aktivera gummiband för
Enable text access for screen readers Ge skärmläsare åtkomst till text
Enable Touch Gestures Aktivera pekgester
Switch Selection and Drawing Modes Växla mellan markerings- och ritläge
Enable Touch Workspace Aktivera arbetslayout för pekskärm
Encoding Kodning
Encoding: Kodning:
@@ -6379,6 +6380,35 @@ axis Y Axis Y-axel
@msg the path has no anchor points banan har inga ankarpunkter
@msg too many anchor points (limit {MAX_ANCHORS}) för många ankarpunkter (gräns {MAX_ANCHORS})
@msg true or false true eller false
@msg a number >= {_1} ett tal >= {_1}
@msg a number > {_1} ett tal > {_1}
@msg a number <= {_1} ett tal <= {_1}
@msg a number < {_1} ett tal < {_1}
@msg a number {_1} to {_2} ett tal från {_1} till {_2}
@msg a number >= {_1} and < {_2} ett tal >= {_1} och < {_2}
@msg a number > {_1} and <= {_2} ett tal > {_1} och <= {_2}
@msg a number > {_1} and < {_2} ett tal > {_1} och < {_2}
@msg a number ({_1}) ett tal ({_1})
@msg a number >= {_1} ({_2}) ett tal >= {_1} ({_2})
@msg a number > {_1} ({_2}) ett tal > {_1} ({_2})
@msg a number <= {_1} ({_2}) ett tal <= {_1} ({_2})
@msg a number < {_1} ({_2}) ett tal < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) ett tal från {_1} till {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) ett tal >= {_1} och < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) ett tal > {_1} och <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) ett tal > {_1} och < {_2} ({_3})
@msg an integer ett heltal
@msg an integer >= {_1} ett heltal >= {_1}
@msg an integer <= {_1} ett heltal <= {_1}
@msg an integer {_1} to {_2} ett heltal från {_1} till {_2}
@msg one of {_1} ett av {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` måste vara ett av {_1}, inte {got}
@msg an object id (a non-negative integer) ett objekt-id (ett icke-negativt heltal)
@msg a list of object ids en lista med objekt-id:n
@msg a color (a string, [r, g, b] or an object) en färg (en sträng, [r, g, b] eller ett objekt)
@msg [x, y] (two numbers) [x, y] (två tal)
@msg an object ett objekt
@msg a list en lista
@msg unknown key `{k}`; the keys here are {_1} okänd nyckel `{k}`; nycklarna här är {_1}
@msg {_1} is listed twice {_1} finns två gånger
@msg {_1} is not the id of an input object {_1} är inte id:t för ett indataobjekt
Can't render this file because it is too large.
+154
View File
@@ -2915,6 +2915,14 @@ fn parameter_schema_errors_are_translated() {
s.execute("file.new", &json!({})).unwrap();
let errors = [
(s.execute("view.saved.new", &json!({"center": [0, 0], "zoom": -1})).unwrap_err().to_string(), "`zoom`", "must be", "-1"),
(s.execute("view.saved.new", &json!({"center": [0, 0], "zoom": -1})).unwrap_err().to_string(), "`zoom`", "a number > 0", "-1"),
(s.execute("view.saved.new", &json!({"center": 5, "zoom": 1})).unwrap_err().to_string(), "`center`", "two numbers", "5"),
(
s.execute("view.saved.new", &json!({"center": [0, 0], "zoom": 1, "rotation": "x"})).unwrap_err().to_string(),
"`rotation`",
"a number (deg)",
"\"x\"",
),
(s.execute("view.saved.new", &json!({"center": [0, 0]})).unwrap_err().to_string(), "`zoom`", "missing", ""),
(s.execute("view.saved.list", &json!(5)).unwrap_err().to_string(), "5", "must be", ""),
];
@@ -2936,6 +2944,152 @@ fn parameter_schema_errors_are_translated() {
}
}
/// The phrases a parameter schema's error uses for what a value must be, as `@msg` sources: one
/// for each type, and for a number each range and unit form.
const SCHEMA_PHRASES: &[&str] = &[
"a number",
"a number >= {_1}",
"a number > {_1}",
"a number <= {_1}",
"a number < {_1}",
"a number {_1} to {_2}",
"a number >= {_1} and < {_2}",
"a number > {_1} and <= {_2}",
"a number > {_1} and < {_2}",
"a number ({_1})",
"a number >= {_1} ({_2})",
"a number > {_1} ({_2})",
"a number <= {_1} ({_2})",
"a number < {_1} ({_2})",
"a number {_1} to {_2} ({_3})",
"a number >= {_1} and < {_2} ({_3})",
"a number > {_1} and <= {_2} ({_3})",
"a number > {_1} and < {_2} ({_3})",
"an integer",
"an integer >= {_1}",
"an integer <= {_1}",
"an integer {_1} to {_2}",
"true or false",
"a string",
"one of {_1}",
"an object id (a non-negative integer)",
"a list of object ids",
"a color (a string, [r, g, b] or an object)",
"[x, y] (two numbers)",
"an object",
"a list",
];
/// What a value of each parameter type must be is translated in every language that translates
/// every message, for every range and unit of a number: the matched row's placeholders take the
/// bounds, the unit and the names exactly as the English gives them, and the whole error keeps
/// the parameter's path and the refused value.
#[test]
fn parameter_schema_expected_phrases_are_translated() {
use serde_json::{Value, json};
use vectorcraft_apischema::{Bound, Param, ParamSchema, Problem, Type};
let number = |min, max, unit| Type::Number { min, max, unit };
let (incl, excl) = (|x| Some(Bound::Inclusive(x)), |x| Some(Bound::Exclusive(x)));
// (type, a value it refuses, the placeholder values of the phrase's row)
let cases: Vec<(Type, Value, Vec<&str>)> = vec![
(Type::NUMBER, json!("x"), vec![]),
(number(incl(-2.5), None, None), json!(-3), vec!["-2.5"]),
(number(excl(0.0), None, None), json!(0), vec!["0"]),
(number(None, incl(1.5), None), json!(2), vec!["1.5"]),
(number(None, excl(100.0), None), json!(100), vec!["100"]),
(number(incl(-1.0), incl(1.0), None), json!(2), vec!["-1", "1"]),
(number(incl(0.0), excl(360.0), None), json!(360), vec!["0", "360"]),
(number(excl(0.0), incl(1.0), None), json!(0), vec!["0", "1"]),
(number(excl(-0.5), excl(0.5), None), json!(1), vec!["-0.5", "0.5"]),
(number(None, None, Some("deg")), json!("x"), vec!["deg"]),
(number(incl(0.25), None, Some("pt")), json!(0), vec!["0.25", "pt"]),
(number(excl(0.0), None, Some("pt")), json!(0), vec!["0", "pt"]),
(number(None, incl(-1.0), Some("mm")), json!(0), vec!["-1", "mm"]),
(number(None, excl(10.0), Some("px")), json!(10), vec!["10", "px"]),
(number(incl(0.0), incl(100.0), Some("%")), json!(101), vec!["0", "100", "%"]),
(number(incl(-180.0), excl(180.0), Some("deg")), json!(180), vec!["-180", "180", "deg"]),
(number(excl(0.0), incl(1000.0), Some("pt")), json!(0), vec!["0", "1000", "pt"]),
(number(excl(-1.0), excl(1.0), Some("in")), json!(1), vec!["-1", "1", "in"]),
(Type::Integer { min: None, max: None }, json!(1.5), vec![]),
(Type::Integer { min: Some(1), max: None }, json!(0), vec!["1"]),
(Type::Integer { min: None, max: Some(-1) }, json!(0), vec!["-1"]),
(Type::Integer { min: Some(1), max: Some(25) }, json!(26), vec!["1", "25"]),
(Type::Boolean, json!(1), vec![]),
(Type::String, json!(1), vec![]),
(Type::Enum(&["left", "center", "right"]), json!("top"), vec![r#""left", "center", "right""#]),
(Type::Enum(&["only"]), json!("other"), vec![r#""only""#]),
(Type::Id, json!(-1), vec![]),
(Type::Ids, json!(5), vec![]),
(Type::Color, json!(5), vec![]),
(Type::Point, json!(5), vec![]),
(Type::Object(&[]), json!(5), vec![]),
(Type::Array(&Type::NUMBER), json!(5), vec![]),
];
let one = |name: &'static str, ty: Type| ParamSchema::new(Box::leak(Box::new([Param::new(name, ty)])), "");
let inner: &'static [Param] = Box::leak(Box::new([Param::new("zoom", number(excl(0.0), None, None))]));
let nested = one("edits", Type::Array(Box::leak(Box::new(Type::Object(inner)))));
let mut errors: Vec<_> = cases.iter().map(|(ty, bad, caps)| (one("x", *ty).validate(&json!({ "x": bad })), caps.clone())).collect();
errors.push((nested.validate(&json!({"edits": [{"zoom": 1}, {"zoom": -1}]})), vec!["0"]));
let mut seen = std::collections::BTreeSet::new();
for code in COMPLETE_MESSAGES {
let lang = Lang::from_code(code).expect("registered");
let (entries, _) = parse_entries(lang.0.source);
for phrase in SCHEMA_PHRASES {
assert!(entries.iter().any(|(ctx, src, _)| ctx == "@msg" && src == phrase), "{code}: no row for {phrase:?}");
}
for (result, caps) in &errors {
let Err(e) = result else { panic!("accepted: {result:?}") };
let Problem::WrongType { expected, got } = &e.problem else { panic!("{e}") };
seen.insert(expected.clone());
let (_, matched) = lang.catalog().message(expected).unwrap_or_else(|| panic!("{code}: no row matches {expected:?}"));
let values: Vec<&str> = matched.iter().map(|(_, v)| *v).collect();
assert_eq!(&values, caps, "{code}: {expected:?}");
let phrase = message(lang, expected);
assert_ne!(&phrase, expected, "{code}");
let mut from = 0;
for value in caps {
let at = phrase[from..].find(value).unwrap_or_else(|| panic!("{code}: {value:?} in {expected:?} -> {phrase:?}"));
from += at + value.len();
}
let shown = message(lang, &e.to_string());
let path = format!("`{}`", e.path);
let kept = caps.iter().all(|value| shown.contains(value));
assert!(kept && shown.contains(&path) && shown.contains(got.as_str()), "{code}: {shown}");
assert!(!holds_word(&shown, expected) && !shown.contains("must be") && !shown.contains(", not "), "{code}: {shown}");
}
}
// A catalog's `{key}` must be one of {_1}` row would take `"a", "b", not "c"` as its list.
let enum_error = one("x", Type::Enum(&["a", "b"])).validate(&json!({"x": "c"})).map_or_else(|e| e.to_string(), |_| String::new());
assert_eq!(enum_error, r#"`x` must be one of "a", "b", not "c""#);
for lang in Lang::all().filter(|l| l.code() != Lang::EN.code() && !l.0.source.is_empty()) {
let shown = message(lang, &enum_error);
assert!(!shown.contains(", not ") && shown.contains(r#""a", "b""#) && shown.contains(r#""c""#), "{}: {shown}", lang.code());
}
for phrase in
["a number > -0.5 and < 0.5", "a number 0 to 100 (%)", "an integer 1 to 25", r#"one of "left", "center", "right""#, "[x, y] (two numbers)"]
{
assert!(seen.contains(phrase), "{phrase:?} not in {seen:?}");
}
}
/// A JSON object or array inside a translated message stays as it is, and an exact message that
/// starts with a bracket is still translated.
#[test]
fn bracketed_message_parts_translate_only_as_exact_messages() {
for code in COMPLETE_MESSAGES {
let lang = Lang::from_code(code).expect("registered");
let point = message(lang, "[x, y] (two numbers)");
assert_ne!(point, "[x, y] (two numbers)", "{code}");
assert!(point.contains("[x, y]"), "{code}: {point}");
for got in ["[1]", "[1, 2, 3]", r#"{"objects": [1]}"#, r#"[{"a": 1}, "b: c", …"#] {
let shown = message(lang, &format!("`center` must be [x, y] (two numbers), not {got}"));
assert!(shown.contains(&point) && shown.contains(got), "{code}: {shown}");
let shown = message(lang, &format!("`p` must be an object, not {got}"));
assert!(shown.contains(got) && !shown.contains("an object"), "{code}: {shown}");
}
}
}
/// The warning for a PDF/X file that leaves out the document's bleed is translated in every catalog,
/// alone and in the status bar's note.
#[test]
+30
View File
@@ -1012,6 +1012,7 @@ font-technology Variable Değişken
Enable Rubber Band for Lastik Bandı Etkinleştir
Enable text access for screen readers Ekran okuyucular için metin erişimini etkinleştirin
Enable Touch Gestures Dokunma Hareketlerini Etkinleştir
Switch Selection and Drawing Modes Seçim ve Çizim Modları Arasında Geçiş Yap
Enable Touch Workspace Dokunmatik Çalışma Alanını Etkinleştir
Encoding Kodlama
Encoding: Kodlama:
@@ -6349,6 +6350,35 @@ axis Y Axis Y ekseni
@msg the path has no anchor points yolun bağlantı noktası yok
@msg too many anchor points (limit {MAX_ANCHORS}) çok fazla bağlantı noktası (sınır {MAX_ANCHORS})
@msg true or false true veya false
@msg a number >= {_1} bir sayı >= {_1}
@msg a number > {_1} bir sayı > {_1}
@msg a number <= {_1} bir sayı <= {_1}
@msg a number < {_1} bir sayı < {_1}
@msg a number {_1} to {_2} {_1} ile {_2} arasında bir sayı
@msg a number >= {_1} and < {_2} bir sayı >= {_1} ve < {_2}
@msg a number > {_1} and <= {_2} bir sayı > {_1} ve <= {_2}
@msg a number > {_1} and < {_2} bir sayı > {_1} ve < {_2}
@msg a number ({_1}) bir sayı ({_1})
@msg a number >= {_1} ({_2}) bir sayı >= {_1} ({_2})
@msg a number > {_1} ({_2}) bir sayı > {_1} ({_2})
@msg a number <= {_1} ({_2}) bir sayı <= {_1} ({_2})
@msg a number < {_1} ({_2}) bir sayı < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) {_1} ile {_2} arasında bir sayı ({_3})
@msg a number >= {_1} and < {_2} ({_3}) bir sayı >= {_1} ve < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) bir sayı > {_1} ve <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) bir sayı > {_1} ve < {_2} ({_3})
@msg an integer bir tam sayı
@msg an integer >= {_1} bir tam sayı >= {_1}
@msg an integer <= {_1} bir tam sayı <= {_1}
@msg an integer {_1} to {_2} {_1} ile {_2} arasında bir tam sayı
@msg one of {_1} {_1} değerlerinden biri
@msg `{path}` must be one of {_1}, not {got} `{path}` {_1} değerlerinden biri olmalıdır, {got} değil
@msg an object id (a non-negative integer) bir nesne kimliği (negatif olmayan bir tam sayı)
@msg a list of object ids bir nesne kimlikleri listesi
@msg a color (a string, [r, g, b] or an object) bir renk (bir dize, [r, g, b] veya bir nesne)
@msg [x, y] (two numbers) [x, y] (iki sayı)
@msg an object bir nesne
@msg a list bir liste
@msg unknown key `{k}`; the keys here are {_1} bilinmeyen anahtar `{k}`; buradaki anahtarlar: {_1}
@msg {_1} is listed twice {_1} iki kez listelenmiş
@msg {_1} is not the id of an input object {_1} bir girdi nesnesinin kimliği değil
Can't render this file because it contains an unexpected character in line 5 and column 25.
+30
View File
@@ -1044,6 +1044,7 @@ font-technology Variable Варіативні
Enable Rubber Band for Включити «гумову смугу» для
Enable text access for screen readers Дозволити доступ до тексту для програм читання з екрану
Enable Touch Gestures Увімкнути сенсорні жести
Switch Selection and Drawing Modes Перемкнути режими виділення та малювання
Enable Touch Workspace Включити сенсорне робоче середовище
Encoding Кодування
Encoding: Кодування:
@@ -5998,6 +5999,35 @@ axis Y Axis Вісь Y
@msg the path has no anchor points контур не має опорних точок
@msg too many anchor points (limit {MAX_ANCHORS}) забагато опорних точок (межа {MAX_ANCHORS})
@msg true or false true або false
@msg a number >= {_1} число >= {_1}
@msg a number > {_1} число > {_1}
@msg a number <= {_1} число <= {_1}
@msg a number < {_1} число < {_1}
@msg a number {_1} to {_2} число від {_1} до {_2}
@msg a number >= {_1} and < {_2} число >= {_1} і < {_2}
@msg a number > {_1} and <= {_2} число > {_1} і <= {_2}
@msg a number > {_1} and < {_2} число > {_1} і < {_2}
@msg a number ({_1}) число ({_1})
@msg a number >= {_1} ({_2}) число >= {_1} ({_2})
@msg a number > {_1} ({_2}) число > {_1} ({_2})
@msg a number <= {_1} ({_2}) число <= {_1} ({_2})
@msg a number < {_1} ({_2}) число < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) число від {_1} до {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) число >= {_1} і < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) число > {_1} і <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) число > {_1} і < {_2} ({_3})
@msg an integer ціле число
@msg an integer >= {_1} ціле число >= {_1}
@msg an integer <= {_1} ціле число <= {_1}
@msg an integer {_1} to {_2} ціле число від {_1} до {_2}
@msg one of {_1} одне зі значень {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` має бути одним зі значень {_1}, а не {got}
@msg an object id (a non-negative integer) ідентифікатор об’єкта (невід’ємне ціле число)
@msg a list of object ids список ідентифікаторів об’єктів
@msg a color (a string, [r, g, b] or an object) колір (рядок, [r, g, b] або об’єкт)
@msg [x, y] (two numbers) [x, y] (два числа)
@msg an object об’єкт
@msg a list список
@msg unknown key `{k}`; the keys here are {_1} невідомий ключ `{k}`; тут допустимі ключі {_1}
@msg {_1} is listed twice {_1} вказано двічі
@msg {_1} is not the id of an input object {_1} не є ідентифікатором вхідного об’єкта
Can't render this file because it is too large.
+30
View File
@@ -1207,6 +1207,7 @@ font-technology Variable Biến thiên
Enable Rubber Band for Bật vùng chọn kéo cho
Enable text access for screen readers Bật truy cập văn bản cho trình đọc màn hình
Enable Touch Gestures Bật cử chỉ cảm ứng
Switch Selection and Drawing Modes Chuyển giữa chế độ chọn và vẽ
Enable Touch Workspace Bật không gian làm việc cảm ứng
Encoding Mã hóa
Encoding: Mã hóa:
@@ -5999,6 +6000,35 @@ axis Y Axis Trục Y
@msg the path has no anchor points đường dẫn không có điểm neo
@msg too many anchor points (limit {MAX_ANCHORS}) quá nhiều điểm neo (giới hạn {MAX_ANCHORS})
@msg true or false true hoặc false
@msg a number >= {_1} một số >= {_1}
@msg a number > {_1} một số > {_1}
@msg a number <= {_1} một số <= {_1}
@msg a number < {_1} một số < {_1}
@msg a number {_1} to {_2} một số từ {_1} đến {_2}
@msg a number >= {_1} and < {_2} một số >= {_1} và < {_2}
@msg a number > {_1} and <= {_2} một số > {_1} và <= {_2}
@msg a number > {_1} and < {_2} một số > {_1} và < {_2}
@msg a number ({_1}) một số ({_1})
@msg a number >= {_1} ({_2}) một số >= {_1} ({_2})
@msg a number > {_1} ({_2}) một số > {_1} ({_2})
@msg a number <= {_1} ({_2}) một số <= {_1} ({_2})
@msg a number < {_1} ({_2}) một số < {_1} ({_2})
@msg a number {_1} to {_2} ({_3}) một số từ {_1} đến {_2} ({_3})
@msg a number >= {_1} and < {_2} ({_3}) một số >= {_1} và < {_2} ({_3})
@msg a number > {_1} and <= {_2} ({_3}) một số > {_1} và <= {_2} ({_3})
@msg a number > {_1} and < {_2} ({_3}) một số > {_1} và < {_2} ({_3})
@msg an integer một số nguyên
@msg an integer >= {_1} một số nguyên >= {_1}
@msg an integer <= {_1} một số nguyên <= {_1}
@msg an integer {_1} to {_2} một số nguyên từ {_1} đến {_2}
@msg one of {_1} một trong các giá trị {_1}
@msg `{path}` must be one of {_1}, not {got} `{path}` phải là một trong các giá trị {_1}, không phải {got}
@msg an object id (a non-negative integer) một ID đối tượng (một số nguyên không âm)
@msg a list of object ids một danh sách ID đối tượng
@msg a color (a string, [r, g, b] or an object) một màu (một chuỗi, [r, g, b] hoặc một đối tượng)
@msg [x, y] (two numbers) [x, y] (hai số)
@msg an object một đối tượng
@msg a list một danh sách
@msg unknown key `{k}`; the keys here are {_1} khóa không xác định `{k}`; các khóa ở đây là {_1}
@msg {_1} is listed twice {_1} được liệt kê hai lần
@msg {_1} is not the id of an input object {_1} không phải là id của một đối tượng đầu vào
Can't render this file because it contains an unexpected character in line 204 and column 5.
+30
View File
@@ -982,6 +982,7 @@ antiAlias Sharp 锐利
Enable Rubber Band for 为这些工具启用橡皮筋预览
Enable text access for screen readers 启用屏幕阅读器的文字访问
Enable Touch Gestures 启用触控手势
Switch Selection and Drawing Modes 切换选择与绘图模式
Enable Touch Workspace 启用触控工作区
Encoding 编码
Encoding: 编码:
@@ -6231,6 +6232,35 @@ axis Y Axis Y 轴
@msg the path has no anchor points 路径没有锚点
@msg too many anchor points (limit {MAX_ANCHORS}) 锚点过多(上限 {MAX_ANCHORS})
@msg true or false true 或 false
@msg a number >= {_1} 大于或等于 {_1} 的数字
@msg a number > {_1} 大于 {_1} 的数字
@msg a number <= {_1} 小于或等于 {_1} 的数字
@msg a number < {_1} 小于 {_1} 的数字
@msg a number {_1} to {_2} {_1} 到 {_2} 之间的数字
@msg a number >= {_1} and < {_2} 大于或等于 {_1} 且小于 {_2} 的数字
@msg a number > {_1} and <= {_2} 大于 {_1} 且小于或等于 {_2} 的数字
@msg a number > {_1} and < {_2} 大于 {_1} 且小于 {_2} 的数字
@msg a number ({_1}) 数字({_1})
@msg a number >= {_1} ({_2}) 大于或等于 {_1} 的数字({_2})
@msg a number > {_1} ({_2}) 大于 {_1} 的数字({_2})
@msg a number <= {_1} ({_2}) 小于或等于 {_1} 的数字({_2})
@msg a number < {_1} ({_2}) 小于 {_1} 的数字({_2})
@msg a number {_1} to {_2} ({_3}) {_1} 到 {_2} 之间的数字({_3})
@msg a number >= {_1} and < {_2} ({_3}) 大于或等于 {_1} 且小于 {_2} 的数字({_3})
@msg a number > {_1} and <= {_2} ({_3}) 大于 {_1} 且小于或等于 {_2} 的数字({_3})
@msg a number > {_1} and < {_2} ({_3}) 大于 {_1} 且小于 {_2} 的数字({_3})
@msg an integer 整数
@msg an integer >= {_1} 大于或等于 {_1} 的整数
@msg an integer <= {_1} 小于或等于 {_1} 的整数
@msg an integer {_1} to {_2} {_1} 到 {_2} 之间的整数
@msg one of {_1} {_1} 之一
@msg `{path}` must be one of {_1}, not {got} `{path}` 必须是 {_1} 之一,而不是 {got}
@msg an object id (a non-negative integer) 对象 ID(非负整数)
@msg a list of object ids 对象 ID 列表
@msg a color (a string, [r, g, b] or an object) 颜色(字符串、[r, g, b] 或对象)
@msg [x, y] (two numbers) [x, y](两个数字)
@msg an object 对象
@msg a list 列表
@msg unknown key `{k}`; the keys here are {_1} 未知键 `{k}`;此处可用的键:{_1}
@msg {_1} is listed twice {_1} 列出了两次
@msg {_1} is not the id of an input object {_1} 不是输入对象的 ID
Can't render this file because it contains an unexpected character in line 2 and column 73.
+30
View File
@@ -1012,6 +1012,7 @@ font-technology Variable 可變
Enable Rubber Band for 啟用橡皮筋預覽,適用於
Enable text access for screen readers 啟用螢幕閱讀器的文字存取
Enable Touch Gestures 啟用觸控手勢
Switch Selection and Drawing Modes 切換選取與繪圖模式
Enable Touch Workspace 啟用觸控工作區
Encoding 編碼
Encoding: 編碼:
@@ -6036,6 +6037,35 @@ axis Y Axis Y 軸
@msg the path has no anchor points 路徑沒有錨點
@msg too many anchor points (limit {MAX_ANCHORS}) 錨點過多(上限 {MAX_ANCHORS})
@msg true or false true 或 false
@msg a number >= {_1} 大於或等於 {_1} 的數字
@msg a number > {_1} 大於 {_1} 的數字
@msg a number <= {_1} 小於或等於 {_1} 的數字
@msg a number < {_1} 小於 {_1} 的數字
@msg a number {_1} to {_2} 介於 {_1} 到 {_2} 之間的數字
@msg a number >= {_1} and < {_2} 大於或等於 {_1} 且小於 {_2} 的數字
@msg a number > {_1} and <= {_2} 大於 {_1} 且小於或等於 {_2} 的數字
@msg a number > {_1} and < {_2} 大於 {_1} 且小於 {_2} 的數字
@msg a number ({_1}) 數字({_1})
@msg a number >= {_1} ({_2}) 大於或等於 {_1} 的數字({_2})
@msg a number > {_1} ({_2}) 大於 {_1} 的數字({_2})
@msg a number <= {_1} ({_2}) 小於或等於 {_1} 的數字({_2})
@msg a number < {_1} ({_2}) 小於 {_1} 的數字({_2})
@msg a number {_1} to {_2} ({_3}) 介於 {_1} 到 {_2} 之間的數字({_3})
@msg a number >= {_1} and < {_2} ({_3}) 大於或等於 {_1} 且小於 {_2} 的數字({_3})
@msg a number > {_1} and <= {_2} ({_3}) 大於 {_1} 且小於或等於 {_2} 的數字({_3})
@msg a number > {_1} and < {_2} ({_3}) 大於 {_1} 且小於 {_2} 的數字({_3})
@msg an integer 整數
@msg an integer >= {_1} 大於或等於 {_1} 的整數
@msg an integer <= {_1} 小於或等於 {_1} 的整數
@msg an integer {_1} to {_2} 介於 {_1} 到 {_2} 之間的整數
@msg one of {_1} {_1} 其中之一
@msg `{path}` must be one of {_1}, not {got} `{path}` 必須是 {_1} 其中之一,而不是 {got}
@msg an object id (a non-negative integer) 物件 ID(非負整數)
@msg a list of object ids 物件 ID 清單
@msg a color (a string, [r, g, b] or an object) 顏色(字串、[r, g, b] 或物件)
@msg [x, y] (two numbers) [x, y](兩個數字)
@msg an object 物件
@msg a list 清單
@msg unknown key `{k}`; the keys here are {_1} 未知的鍵 `{k}`;此處可用的鍵:{_1}
@msg {_1} is listed twice {_1} 列出了兩次
@msg {_1} is not the id of an input object {_1} 不是輸入物件的 ID
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -684,6 +684,7 @@ fn run_ui_part6(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<Result<
Some(t) => Err(format!("unknown tool `{t}`")),
None => Err("missing `tool`".into()),
},
crate::touch::TOGGLE_MODE => Ok(crate::touch::toggle_mode(app)),
crate::addons::pathtools::corner::COMMAND => crate::addons::pathtools::corner::open(app),
crate::addons::pathtools::shared_edge::COMMAND => crate::addons::pathtools::shared_edge::open(app),
crate::addons::arrange::ZOOM => crate::addons::arrange::zoom(app),
+6
View File
@@ -732,6 +732,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{key, value} | {values: {key: value…}}, tool?: id (default: the active tool) → the tool's options (`{}` reads them). The options a tool keeps (Liquify brush and tool options, Mirror & Cut, Puppet Warp, drawing tools…) last across tool switches and are saved with the preferences; another tool's are stored for when it is chosen",
),
(
crate::touch::TOGGLE_MODE,
"Switch Selection and Drawing Modes",
"",
"{} from the Selection, Direct Selection, Group Selection, Magic Wand, Lasso or Perspective Selection tool, choose the drawing tool chosen last in this window (none yet: the Pencil tool); from any other tool, choose the Selection tool, remembering the tool left as the drawing tool unless it is the Hand, Rotate View, Zoom or Print Tiling tool → {tool}. A two-finger tap on the canvas runs it in the Touch workspace (Enable Touch Gestures on)",
),
(
"effect.dialog",
"Effect…",
+5
View File
@@ -565,6 +565,10 @@ pub struct UiState {
pub flyout: Option<usize>,
/// Last tool shown for each toolbar group (flyout selection sticks).
pub group_tool: Vec<String>,
/// The drawing tool last chosen in this window, which a two-finger tap in the Touch workspace
/// returns to from the Selection tool ([`crate::touch::toggle_mode`]). Not saved.
#[serde(skip)]
pub touch_drawing_tool: Option<String>,
pub status: String,
/// The Replace Font request behind the status bar's warning ([`ReplaceFontWarning`]). Not saved.
#[serde(skip)]
@@ -1129,6 +1133,7 @@ impl Default for UiState {
answering_control: false,
flyout: None,
group_tool: vectorcraft_tools::TOOL_GROUPS.iter().map(|g| g[0].id.to_string()).collect(),
touch_drawing_tool: None,
status: String::new(),
replace_font_warning: None,
status_notes: None,
+55 -4
View File
@@ -1,5 +1,6 @@
//! Touch gestures on the canvas (Preferences › Devices › Enable Touch Gestures, #585): a tap with
//! two fingers undoes, one with three redoes.
//! two fingers undoes, one with three redoes. In the Touch workspace a tap with two fingers
//! switches between selection and drawing modes instead ([`TOGGLE_MODE`]).
//!
//! egui hands every finger's contact over as [`egui::Event::Touch`] (winit reads them from the
//! system: `WM_POINTER` on Windows), and makes the first finger the mouse pointer too. So the first
@@ -121,15 +122,52 @@ impl Taps {
}
}
/// The command a tap of `fingers` runs: two undo, three redo.
pub(crate) fn tap_command(fingers: usize) -> Option<&'static str> {
/// The command a tap of `fingers` runs: two undo, three redo. In the Touch workspace (`touch_workspace`)
/// two switch between the Selection tool and the last drawing tool ([`TOGGLE_MODE`]).
pub(crate) fn tap_command(fingers: usize, touch_workspace: bool) -> Option<&'static str> {
match fingers {
2 if touch_workspace => Some(TOGGLE_MODE),
2 => Some("edit.undo"),
3 => Some("edit.redo"),
_ => None,
}
}
/// Switch between selection and drawing modes: the Selection tool, and back to the drawing tool
/// chosen last.
pub const TOGGLE_MODE: &str = "tool.toggleTouchMode";
/// The drawing tool a switch out of selection mode chooses when none has been chosen in this window.
pub const FIRST_DRAWING_TOOL: &str = "pencil";
/// A tool of selection mode: one that selects objects or parts of them.
fn selects(id: &str) -> bool {
vectorcraft_tools::catalog::is_selection_tool(id) || matches!(id, "magicWand" | "lasso" | "perspectiveSelection")
}
/// A tool of drawing mode: any tool but those of selection mode and those that only move, turn or
/// zoom the view.
pub(crate) fn is_drawing_tool(id: &str) -> bool {
!selects(id) && !matches!(id, "hand" | "rotateView" | "zoom" | "printTiling")
}
/// [`TOGGLE_MODE`]: from a tool of selection mode, choose the drawing tool chosen last (none yet:
/// [`FIRST_DRAWING_TOOL`]); from any other tool, keep it as the drawing tool and choose the
/// Selection tool. → `{tool}`, the tool now active.
pub(crate) fn toggle_mode(app: &mut crate::VectorcraftApp) -> serde_json::Value {
let now = app.session.tool_id().to_string();
let next = if selects(&now) {
app.ui.touch_drawing_tool.clone().unwrap_or_else(|| FIRST_DRAWING_TOOL.to_string())
} else {
if is_drawing_tool(&now) {
app.ui.touch_drawing_tool = Some(now);
}
"selection".to_string()
};
app.select_tool(&next);
serde_json::json!({"tool": app.session.tool_id()})
}
#[cfg(test)]
mod tests {
use super::*;
@@ -155,7 +193,20 @@ mod tests {
}
let ends: Vec<_> = [4, 5, 6].into_iter().map(|n| t.feed(id(n), TouchPhase::End, p, 1.2)).collect();
assert_eq!(ends, [None, None, Some(Touch::Tap(3))]);
assert_eq!((tap_command(2), tap_command(3), tap_command(1)), (Some("edit.undo"), Some("edit.redo"), None));
assert_eq!((tap_command(2, false), tap_command(3, false), tap_command(1, false)), (Some("edit.undo"), Some("edit.redo"), None));
assert_eq!((tap_command(2, true), tap_command(3, true), tap_command(1, true)), (Some(TOGGLE_MODE), Some("edit.redo"), None));
}
#[test]
fn drawing_tools_are_neither_selection_nor_view_tools() {
for id in ["pencil", "pen", "rectangle", "paintbrush", "type", "eraser", "shapeBuilder"] {
assert!(is_drawing_tool(id), "{id}");
}
let selecting = ["selection", "directSelection", "groupSelection", "magicWand", "lasso", "perspectiveSelection"];
for id in selecting.into_iter().chain(["hand", "rotateView", "zoom", "printTiling"]) {
assert!(!is_drawing_tool(id), "{id}");
}
assert!(vectorcraft_tools::tool_info(FIRST_DRAWING_TOOL).is_some_and(|t| is_drawing_tool(t.id)));
}
#[test]
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -24,7 +24,7 @@ It reads the pen's tilt and barrel rotation on macOS and on Linux under X11 and
| Pen pressure | yes (Wacom, Windows Ink, macOS tablet events) | yes, read from AppKit's tablet events before the window gets them (winit reports none), each move of a stroke with its own pressure, mouse event coalescing off (#852; not yet tried on a Mac) | yes (pointer force via `WM_POINTER`) | under X11 and XWayland (Preferences › Performance › Linux Display Server, #1151, #2028; Automatic uses XWayland when a pen is attached on a Wayland session, #4967), read from XInput2 raw events (#764); **no** on native Wayland, where winit reports none and the pen may not reach the window (#491) | browser pointer events, with coalesced events; Apple Pencil on iPad (hover, palm rejection: fingers navigate after a pen contact until reload) | partial: 2–4 h for Wayland (winit 0.31), plus a check on a Mac |
| Pen tilt, bearing, barrel rotation (6D Art Pen) | yes, drives brushes | read from AppKit's tablet events (tilt, and the barrel rotation of a pen that reports one); Calligraphic and Scatter brushes vary with them (#764; not yet tried on a Mac) | with Windows Ink, read from the pen's `POINTER_PEN_INFO` (tilt and barrel rotation where its pen mask says the pen reports them); Calligraphic and Scatter brushes vary with them (#372; not yet tried with a pen) | under X11 and XWayland, read from XInput2 raw events; Calligraphic and Scatter brushes vary with them (#764); **no** on native Wayland | no | partial: native Wayland and the web read none, and Pattern and Bristle brushes do not use them (an Art brush's Width follows them); 3–6 h (#372) |
| Pen eraser end | yes | the eraser end (AppKit's tablet proximity events) selects the Eraser tool and the tip brings back the tool used before, as on Linux (#852; not yet tried on a Mac) | with Windows Ink, an inverted pen or its eraser button (`PEN_FLAG_INVERTED`, `PEN_FLAG_ERASER` in the pen's pointer messages) selects the Eraser tool and the tip brings back the tool used before, as on Linux (not yet tried with a pen) | under X11 and XWayland, the eraser end selects the Eraser tool and the tip brings back the tool used before (#764); **no** on native Wayland | a press of the eraser end (Pointer Events eraser button, `button` 5) selects the Eraser tool, and that press erases; a press of the tip brings back the tool used before; Pointer Events report no end while the pen hovers | partial |
| Touch gestures (pinch zoom, two-finger pan, rotate view, Touch workspace) | yes (Windows touch, Surface) | trackpad pinch, scroll and rotate | pinch, pan (a second finger cancels the first finger's tool press, #4198); two-finger tap undo, three-finger redo (#585) | same where winit reports touch | eframe until the first pen contact, then Pointer Events (pen and fingers told apart); long press opens the context menu | partial: touch workspace and touch-screen rotation missing, 3–5 h |
| Touch gestures (pinch zoom, two-finger pan, rotate view, Touch workspace) | yes (Windows touch, Surface) | trackpad pinch, scroll and rotate | pinch, pan (a second finger cancels the first finger's tool press, #4198); two-finger tap undo, three-finger redo (#585); in the Touch workspace a two-finger tap switches between the Selection tool and the last drawing tool | same where winit reports touch | eframe until the first pen contact, then Pointer Events (pen and fingers told apart); long press opens the context menu | partial: touch workspace and touch-screen rotation missing, 3–5 h |
| Trackpad (smooth scroll, pinch) | yes | yes | precision touchpads | yes | yes | done |
| HiDPI / Retina, per-monitor scale | yes | yes | yes | yes | yes | done; a window dragged between monitors of different scale can still grow on Windows (#1459, open); the custom title bar's window on Windows stays truly borderless so the pointer lines up with what is drawn (#1791, #1758; awaiting the reporter's confirmation) ; macOS cursors use aligned 1×/2× native image representations (#2292), covered by headless construction tests; mixed-display transitions and physical cursor sizing remain unverified, no additional hardware validated |
| Multiple monitors: panels and document windows on another screen | yes | no (one OS window) | no | no | — | missing: 6–10 h (with multiple windows, gap G7) |
+21 -2
View File
@@ -1823,6 +1823,11 @@ parameter error, ``invalid parameters for `<id>`: `<path>` is nested too deeply`
value. A schema that is wrong in itself, such as one that nests past 16 levels or puts a list of ids or a point
inside 16 lists, is an internal error in the command, and the command does not run.
The command API returns these errors in English. The desktop app's status bar shows them in the interface language,
the requirement after "must be" included (a number and its range and unit, an integer, a list of names, an object id,
a color, a point, an object or a list); the parameter's path, the refused value, the bounds, the unit and the names stay
as the English gives them.
An omitted value with a `default` takes it (`rotation` 0 in `view.saved.new`); the journal keeps the params as they
were given. Saved steps played from a journal or an action keep a key the schema does not name, unless its value nests
more than 16 levels deep, and the values of the parameters it names are checked as in a new call. The schemas of built-in commands belong to API level 3
@@ -5544,6 +5549,15 @@ point deltas from an unnamed source in the desktop app, or line deltas that are
trackpad gesture holds Alt, it zooms until it ends, also after Alt is let go. The control channel's
`ui.wheel` with `cmd: true` turns the wheel with Cmd/Ctrl held.
With Preferences › Devices › Enable Touch Gestures on, a two-finger tap on the canvas undoes and a three-finger tap
redoes. In the Touch workspace a two-finger tap runs `tool.toggleTouchMode` (Switch Selection and Drawing Modes, `{}`,
desktop app) instead and undoes nothing ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/touch-workspace-in-illustrator.html)).
From the Selection, Direct Selection, Group Selection, Magic Wand, Lasso or Perspective Selection tool it chooses the
drawing tool chosen last in the window, or the Pencil tool when none has been chosen yet; from any other tool it
chooses the Selection tool, and the tool left becomes the drawing tool unless it is the Hand, Rotate View, Zoom or Print
Tiling tool. It returns `{tool}` and adds no undo step. Pencil as the first drawing tool and the list of selection tools
are VectorCraft's own rules. A tap in Presentation Mode runs nothing.
`gridlineEvery` (72 pt by default) and `gridSubdivisions` (8 by default) set the document grid that View › Show Grid
draws, and View › Snap to Grid snaps to its subdivisions. Changing either sets the grid of every open document.
`file.new` gives a new document that grid, and `document.open`, `file.newFromTemplate` and `file.revert` give it to
@@ -6064,7 +6078,8 @@ stays as a plain group of the image, with its id, name, visibility and transpare
even-odd fill rule stays as it is). The link shows as modified when a plate file of its own changes
or is gone, as it does when the DCS file changes, and the app's link watch acts on a changed plate file as on a
changed DCS file. `links.relink {copy: true}` fails for a DCS file that reads plate files of its own, and copies
nothing. These rules are VectorCraft's own: the screen, composite print and exports show the image as its plates
nothing. Opening a document reads a DCS file and its plates again even with the `lowResProxyEps` preference, which
keeps the saved preview of other linked EPS files. These rules are VectorCraft's own: the screen, composite print and exports show the image as its plates
mixed into CMYK (each ink amount times the ink's CMYK values, plates combined as `1 − (1 − a)(1 − b)`); Separations
Preview and `file.print` separations show each plate on its own ink, and a spot plate prints as the document's swatch
of its ink (else its CMYK values) with `spotsToProcess`. Separations Preview shows a reduced image's plates as the
@@ -6123,7 +6138,11 @@ recorded action leaves both out. Art copied from no artboard keeps its place on
offset to that one on the others. An index the document does not have, a repeated index, a value that is not an index
or an empty list fails, and nothing is pasted. Copied artboards come back once, where they were, whichever artboards
are named. `layer.pasteRemembersLayers {on?}` (a document option, `document.inspect` → `pasteRemembersLayers`)
pastes objects back into the layers they came from, by name, making missing ones. Drawing modes (`view.drawMode`) apply
pastes objects back into the layers and sublayers they came from: in the same document while those are still there,
else by the names of the layer and the layers around it (the topmost chain that matches the most names, a shown and
unlocked one first). A missing sublayer is made inside its layer, and a missing top-level layer on top, in the paste's
undo step. When a matched layer, or a layer around it, is hidden or locked, the paste fails and nothing is pasted.
Drawing modes (`view.drawMode`) apply
too: in Draw Inside, `edit.paste`, `edit.pasteInPlace` and `edit.pasteOnAllArtboards` put the objects inside the
object drawn into (its clip group, made on the first paste), whatever Paste Remembers Layers says; in Draw Behind,
`edit.pasteInPlace` and `edit.pasteOnAllArtboards` put them just below the selection. `edit.pasteInFront` and
+3 -2
View File
@@ -1,6 +1,6 @@
# Roadmap: milestones and what's next
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-13 · **Change:** minor (library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol library; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview are in; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; M4/M7: `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; M4/M7: `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; Hindi catalog and contributor loanword preferences; full wording review in progress; Effect dialogs: a colour swatch beside a hex colour opens the Color Picker, #5365; shape tools move the selection from its centre point and turn it from the zone outside a box corner, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-13 · **Change:** minor (PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol library; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview are in; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; M4/M7: `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; M4/M7: `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; Hindi catalog and contributor loanword preferences; full wording review in progress; Effect dialogs: a colour swatch beside a hex colour opens the Color Picker, #5365; shape tools move the selection from its centre point and turn it from the zone outside a box corner, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)
>
> Oversized artboard import update (2026-11-12): Explicit editing-data import retains a single artboard beyond a capped 14,400 pt PDF page (#6865).
>
@@ -52,6 +52,7 @@ M7 type: Touch Type moves a right-to-left character along its line and up from i
| Date | Change | Summary |
|---|---|---|
| 2026-11-13 | minor | PDF import: glyphs inside a marked-content span with an empty `ActualText` come in as outlines in their fill and stroke instead of being left out, adding no text (#6971; `empty_actual_text_keeps_the_glyphs_art` in `crates/pdf/src/tests/actual_text.rs`). Scores and estimates unchanged. |
| 2026-11-13 | minor | Library panels (swatch, Color Book, brush, symbol and graphic style libraries): in a panel made taller the list fills the space above the footer instead of scrolling inside 220 or 280 pt (#2992; `the_list_fills_a_tall_panel_above_its_footer` in `crates/ui-egui/src/panels/library_panel/tests.rs`). Scores and estimates unchanged. |
| 2026-11-13 | minor | Swatches: in a panel made taller the swatch list fills the space above the footer instead of scrolling inside 150 or 200 pt (#1638; `the_list_fills_a_tall_panel_above_its_footer` in `crates/ui-egui/src/panels/swatches/tests.rs`). Scores and estimates unchanged. |
| 2026-11-10 | minor | M13 / G6: MCP catalogue (#6460): headless lists UI commands, eight prompts, 33 tools, effect vs command ids; scores and estimates unchanged. |
@@ -150,7 +151,7 @@ native wording review, layout checks and a web Devanagari font remain. [Notes](l
| M1 | Selection, transform, layers, MCP (common command tools, strict keys, session resources and version-aware result hints) | ✅ mostly done (document-tab artwork drag with lossless resource transfer and one target Undo; malformed MCP app replies discard the connection without replay, #1761; bounded control socket waits and connection-slot recovery, #1726; bounded synthetic control input, #1709; no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); transform reference point snaps to anchors/centres; rotated objects keep a rotated bounding box and their angle; Free Transform, Scale and Reflect along a rotated box pending; the Transform fields take one Tab each, the W/H link after them) | 4–6 |
| M2 | Drawing tools + smart guides | ✅ mostly done (#3380 deletion creates independent selected path pieces and keeps bounds-fitted gradients in place; endpoint highlighting remains open; Polygon/Star exact-size count persistence, with repeated-drag, tool-switch and Cancel regression coverage; Curvature point markers without direction handles (#1236, in part); Direct Selection segment click/Delete preserves neighboring edges, #1278; Flare, Reshape, Live Corners widget dragging and per-corner radii and kinds landed, on any path's corners; Shaper rough-shape recognition and orientation steps, the remaining Pen modifier nuances; Shaper Groups with editable sources and separate fill/stroke edits landed; custom ruler origin with drag preview, active-artboard reset, relative X/Y fields and native round-trip (#1212); construction widget/refinements pending); a shape just drawn moves by its centre point and turns from the zone outside a corner with its tool still active (#5477); Tangent and straight-segment perpendicular snapping use saved Smart Guides Geometric Guides preferences and Control bar quick access (#2537), including the existing Snap to Glyph and Alignment Guides toggles (#6164); no View submenu; Copy and Cut with the Pen or Curvature tool take the anchors a Cmd/Ctrl-lent Direct Selection picked (#6123) | 12–18 |
| M3 | Paint & appearance (swatches, color, gradient, stroke, appearance, transparency, styles) | ✅ done (M3.7–M3.98): swatches, groups, libraries, tints, Lab spots and Registration; Eyedropper copies transformed character dimensions (#6404) and styles highlighted text only (atomic transparency rejection); Eyedropper reads visible locked and outside-isolation sources (#1251); Color Picker, Color panel, Color Guide, Color Themes, Edit Colors and Recolor Artwork (screen-bounded Edit chip list, #3416); gradients that follow every transform, the annotator, linked stops, freeform gradients, focal points, gradients on strokes and Expand; visible strokes when paint is added to inherited None/zero-width art (#1253); stroke geometry, arrowheads, dashes fitted to corners, stroke on type, width profiles and the Width tool (Shift-double-click enables adjoining adjustment in Width Point Edit; finite-arithmetic follow-up regressions and full CI passed ([Validation evidence](target-app-parity.md#evidence-what-ships-today-by-area))), Scale Strokes and preview bounds; Appearance targeting, container appearance, target circles, Expand Appearance; knockout, isolation, blend accuracy, CMYK blending, overprint, Attributes, masks and clipping, Flatten Transparency; graphic styles, links and libraries; CSS library export preserves fractional linear and radial gradient stop positions. Left: freeform gradients in SVG/PDF, mixed spot/process gradients in SVG and PDF gradients mixing a spot color with RGB or Lab stops export as stops or process colors; PDF export writes dithered gradient fills with spot stops, and Perceptual spot gradients with RGB or Lab stops other than white or more than 4,096 stops on their curve, as images in process colors; confirm the Scale Strokes & Effects default; Recolor model selection is available through the engine and MCP only (#2520); the dialog retains its existing controls; Library panels' lists (swatch, Color Book, brush, symbol and graphic style libraries) fill a taller panel above its footer (#2992; scores and estimates unchanged); | Swatches list fills a taller panel above its footer (#1638; `the_list_fills_a_tall_panel_above_its_footer`; scores and estimates unchanged); 4–8 |
| M4 | Files (native, SVG, PDF, raster, Export for Screens, clipboard interop) | Explicit editing-data import keeps oversized capped-page artboards (#6865; estimates unchanged); Save refusal continuation (#6146): ordinary Save offers Save As; unchanged format keeps options, changed format opens its Save options; cancellation/automation isolation; focused UI regressions passed, native acceptance pending; PDF authored ActualText preserved once in editable import (#6165; first-glyph line/style, bounded input; estimates unchanged); PDF export keeps harakat and zero-advance Noto Arabic dot glyphs in one compatible batch per layout line, with per-glyph vertical offsets (#6309). `crates/pdf/src/tests/realtext.rs` (`mark_text_*`) checks decoded cluster mappings, mixed Arabic/Latin/digits, contour placement against outline export, vertical columns, differing path rotations and PDF/X-1a/3/4. Editable-text import preserves authored ActualText separately (#6165), with cross-line/style layout limits; separately styled or differently rotated clusters and external viewer search/copy remain outside this export-only evidence. `.ai`/EPS type from the text document keeps its paragraphs' tab stops (#6147); `.ai`/EPS type from the text document keeps auto leading per line, its hyphenation options, and may show more of the last lines the file sets in an area frame of its own, when growing the frame by its lines' deepest descent plus 0.05 pt shows them (#6137); ✅ done (M4.14–M4.98 on 2026-10-05): Save As/Save a Copy/Revert/templates, Data Recovery and background save, SVG import and export fidelity (units, text, symbols, filters, SVGZ, Preserve Editing, SVG Options), shared guarded PDF writer and windowed reader ([pdf-backend.md](pdf-backend.md)), PDF import (colours, layers, masks, editable text, security) and export (presets, marks, bleed, ICC and output intent, raster effects, subset fonts, PDF/X-1a, X-3 and X-4, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3), Place and Links, Package, EPS and DXF in and out (EPS legacy mesh corners, vector opacity masks and raster page comparison verified; closed SPLINE flags round-trip and circular paths export as native CIRCLE/ARC, #1299), EMF/WMF, TIFF/BMP/Targa/PSD/GIF/PNG-8 export, Print and print presets, slices, Save for Web, TIFF in Export for Screens and Asset Export, clipboard flavours, File Info; AF.1–AF.4 add Affinity import (native layers, artboards, vectors, text and images from Affinity 1–3 files; the embedded preview only as a warned fallback; AF.4 expands current `.af` fixtures and every-board round-trip validation); EPS Save and Save As keep an opened EPS as EPS with its page frame and complete editable VectorCraft document (2026-10-26; G9 import fidelity unchanged). Left: DWG (use DXF), PSD placement as layers, overprint read back from PDF, Affinity export, polish; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts | 3–6 (existing scope; Affinity export unestimated) |
| M4 | Files (native, SVG, PDF, raster, Export for Screens, clipboard interop) | Explicit editing-data import keeps oversized capped-page artboards (#6865; estimates unchanged); Save refusal continuation (#6146): ordinary Save offers Save As; unchanged format keeps options, changed format opens its Save options; cancellation/automation isolation; focused UI regressions passed, native acceptance pending; PDF authored ActualText preserved once in editable import (#6165; first-glyph line/style, bounded input; estimates unchanged); PDF export keeps harakat and zero-advance Noto Arabic dot glyphs in one compatible batch per layout line, with per-glyph vertical offsets (#6309). `crates/pdf/src/tests/realtext.rs` (`mark_text_*`) checks decoded cluster mappings, mixed Arabic/Latin/digits, contour placement against outline export, vertical columns, differing path rotations and PDF/X-1a/3/4. Editable-text import preserves authored ActualText separately (#6165), with cross-line/style layout limits; separately styled or differently rotated clusters and external viewer search/copy remain outside this export-only evidence. `.ai`/EPS type from the text document keeps its paragraphs' tab stops (#6147); `.ai`/EPS type from the text document keeps auto leading per line, its hyphenation options, and may show more of the last lines the file sets in an area frame of its own, when growing the frame by its lines' deepest descent plus 0.05 pt shows them (#6137); ✅ done (M4.14–M4.98 on 2026-10-05): Save As/Save a Copy/Revert/templates, Data Recovery and background save, SVG import and export fidelity (units, text, symbols, filters, SVGZ, Preserve Editing, SVG Options), shared guarded PDF writer and windowed reader ([pdf-backend.md](pdf-backend.md)), PDF import (colours, layers, masks, editable text, security) and export (presets, marks, bleed, ICC and output intent, raster effects, subset fonts, PDF/X-1a, X-3 and X-4, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3), Place and Links, Package, EPS and DXF in and out (EPS legacy mesh corners, vector opacity masks and raster page comparison verified; closed SPLINE flags round-trip and circular paths export as native CIRCLE/ARC, #1299), EMF/WMF, TIFF/BMP/Targa/PSD/GIF/PNG-8 export, Print and print presets, slices, Save for Web, TIFF in Export for Screens and Asset Export, clipboard flavours, File Info; AF.1–AF.4 add Affinity import (native layers, artboards, vectors, text and images from Affinity 1–3 files; the embedded preview only as a warned fallback; AF.4 expands current `.af` fixtures and every-board round-trip validation); EPS Save and Save As keep an opened EPS as EPS with its page frame and complete editable VectorCraft document (2026-10-26; G9 import fidelity unchanged). Left: DWG (use DXF), PSD placement as layers, overprint read back from PDF, Affinity export, polish; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; PDF import: glyphs inside a marked-content span with an empty `ActualText` come in as outlines in their fill and stroke, adding no text (#6971; scores and estimates unchanged); | 3–6 (existing scope; Affinity export unestimated) |
| M5 | Performance | 🟡 background render + caches + MT done; `vectorcraft-cli bench` and `vectorcraft-cli perf` (budget suite); opaque solid-fill knockout paths draw once in hard-edge/supersampled raster export, with analytical-AA compositing unchanged; file format v2 opens 3× faster (50k paths: 722 → 244 ms); raster effects (glows, shadows, blur, feather) no longer force the whole frame single-threaded (filtered offscreen per effect, verified equal to the single-threaded reference); Craquelure/Mosaic Tiles/Stained Glass distance searches optimized with pixel-invariance checks and the `texture_drag_perf` probe (#1257); effect-heavy demos need a clean-machine benchmark; dirty-region rendering, GPU backend spike pending | 15–25 |
| M6 | Path operations (Pathfinder, Shape Builder, offset…) | ✅ mostly done (live compound shapes: Make, Alt-click a Shape Mode, member modes, Release, Expand (#4522); single-result Pathfinder names and SVG IDs retained (#1293); Divide open-cutting-path geometry, appearance and history verified (#1307; existing segment cap remains); Simplify preview/counts and rewritten-path component selection verified (#1272; the slider opens at the Auto-Simplify level; a Direct Selection part of a path simplifies on its own); Compound appearance and member fill-rule edits verified (#1197); Boolean precision on almost-horizontal edges fixed and the property tests made deterministic; Shape Builder gap detection, large-offset bug open); Shape Builder Gap Detection shares Live Paint’s spatial gap finder and temporary merge bridges (#2526); Custom is capped at 72 pt in the existing options dialog | 3–6 |
| M7 | Type (point/area/path, editing, styles, OpenType, threading, glyphs) | Spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof and the custom dictionary and Ignore All commands and Auto Spell Check with its right-click suggestions, Ignore All and Add to Dictionary, and Spelling › Auto Spell Check in the context menu of type, and the Edit Custom Dictionary dialog (#4936; the Check Spelling dialog remains); Right-aligned area type sets the text after a line's last tab against the right edge, the text before it at its stops (#6147); A line a soft return ends is justified as a wrapped line is (#6137); Indian-language pattern hyphenation preserves syllables in both composers (#4947); 🟡 Hanging punctuation keeps its published amounts under Glyph Scaling, and Standard burasagari counts a hung line start as room; Fullwidth `!` / `?` keep an upright fallback in vertical type; Hyphenation… and Justification… per paragraph (#2310, #2755), Auto Leading also driving the Character panel's Leading, the Alt+↑/↓ leading nudge and Fill with Placeholder Text; Document-point character controls after object/group scaling (#1034; optional font-size preservation remains separate), Character/Paragraph Styles (explicit Auto-leading resets and local leading overrides), per-paragraph paragraph attributes, mixed paragraph alignment indication (headless regressions, full integration CI and visual review pass), Area Type Options (with Width/Height, Auto Size and Shrink Text to Fit; overflow reported to agents and vertical Align), type areas resized by their handles and reshaped with Direct Selection, threaded text, Fit Headline, Glyphs (feature-valued alternates and unencoded glyphs applied in one Undo step while keeping Arabic joining, #5514), OpenType panel (including font-defined Stylistic Sets), Find Font (Document, Recent and System replacement sources, #5217), installed system fonts in every font menu (fonts registered with Windows outside its font folders, the XDG and Flatpak host font folders on Linux, and fonts installed while the app runs, listed when it comes back to the front; searchable; the Character and Properties menus show each family's sample of the selected text, preview it live under the pointer or ↑/↓, show recently applied families first (#3515), filter by script and kind, list a family's styles, and star favourites; the Glyphs panel and Find Font's Replace With use the same menu without the live preview) and found by name on open/import (full-name aliases and Missing Fonts searches verified, #1258; Windows font-service QA pending), variable fonts' named instances as styles, CJK names in the UI, input methods (marked text in place, candidate window at the caret; Japanese IME), Text Wrap (offset, invert, both sides of an object; follows edits), Type on a Path effects and Options with draggable start/centre/end brackets (slide, flip), tab stops + Tabs panel (Above Text floats it over the selected text, its ruler at the canvas zoom so stops line up with the columns, #729), inline symbols in text (beyond parity), Hebrew/Arabic bidirectional text, Paragraph Direction, Every-line/Single-line Composer per object (ragged text too) done; paint-only Arabic harakat keep joining with GDEF-mark ownership and Insert Kashidas tatweels on the base letter's paint (`tests::harakat`); tab leaders, spell check, vertical type pending | 45–60 |
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -34,7 +34,7 @@ against Illustrator's public documentation; **estimated** unless noted.
| Preserve font sizes while scaling a group | missing | Separate enhancement; scaling still scales text with the other artwork. |
| OpenType panel, Glyphs panel, alternates | done | Highlight Alternate Glyphs preference (#394, off by default) paints pink behind OpenType substitutions on screen when on (required shaping such as Arabic joining forms and the lam-alef ligature, including a lam-alef older fonts file under `liga`, is not highlighted; an optional feature that changes the ligature is); stylistic sets ss01–ss20, stylistic and titling alternates, proportional and lining figures, superscript and subscript are character-style features (`text.setStyle {features}`, #1607); the OpenType panel's Position menu sets superscript, subscript, numerator or denominator glyphs (`sups`, `subs`, `numr`, `dnom`). The OpenType panel's Stylistic Sets menu lists the selected font's `ss01`–`ss20` features, using a font-supplied name where available and `Set N` otherwise; several sets can be active, and selecting an active one removes it. For a mixed-font selection it uses the first selected character's font, a VectorCraft design choice ([public help](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/add-stylistic-sets-to-selected-text.html), [OpenType feature specification](https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt)). The Glyphs panel highlights the character selected with the Type tool (a range's first character, else the one before the caret) and scrolls it into view as the selection moves (#4908; `panels::glyphs` tests); its Show menu lists Unicode ranges and Alternates for Current Selection, the selected character's alternate glyphs from the font's `GSUB` table. A double-click applies the OpenType feature that draws a variant to that character alone, or uses a glyph choice when no supported feature draws it; see the Glyphs panel row below for Entire Font and the joining limits. The glyph-cell pop-up of alternates is not there yet |
| Glyphs panel: alternates as OpenType feature values, unencoded glyphs | done | #5514, as [Replace characters with alternate glyphs](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/replace-characters-with-alternate-glyphs.html) describes (Show › Alternates For Current Selection; replace the selected character by double-clicking the glyph). A character-style feature takes a value (`"salt=2"`, the font's alternate number; `ss01`–`ss20`, `swsh`, `titl` and `aalt` too) in `features` and `featureChanges`, in SVG `font-feature-settings` (`"salt" 2`) and in native files as the plain string. Show › Entire Font applies an unencoded glyph the same way when it is an alternate of the selected character in its word, applies one no feature reaches (`A.salt` in a font with no `salt`) to the selected character as a glyph choice (it may not join), and dims the others with the reason in the tooltip (e.g. `yehfarsi.fina.alt2 belongs to ی (U+06CC) at the end of a word; your selection is ي (U+064A)`); an Arabic presentation form picked there inserts its letter so the word joins. Runs that differ only in their features shape as one piece of text, each run's features over its own characters, so a variant on one letter of an Arabic word keeps its neighbours' initial, medial and final forms and the letters still touch. The panel lists the alternates of the glyph the shaper makes for the selected character in its word (a medial letter shows medial variants), and a double-click applies the OpenType feature that draws the variant (`salt=N` or `ssNN`) to that character alone, in one undo step (`text.setRangeStyle`); a variant no feature reaches falls back to a replacement glyph (`text.setGlyphAlternate`), which its tooltip says may not join. Show › Entire Font also lists the glyphs no character maps, with their name or `gid N` and the feature that gives them. The text crate reads each face's `GSUB` once (alternate sets, single substitutions, the feature that reaches a glyph). Not done: alternates reached through contextual or ligature lookups, and features of the font that the style has no tag for (`cv01`–`cv99`, `hist`). Evidence: `tests::glyph_alternates` in the text crate (a fixture font with a medial teh at `salt=1` to `3`, the neighbours' forms, no gap; Kufi Murabba PIIIX when it is installed), `features::tests::feature_values_are_parsed_validated_and_shaped`, `tests::textedit::feature_values_are_set_replaced_and_saved`, the `panels::glyphs` tests. |
| Font menu: samples, live preview, filters, favourites, recent families; font matching by any name; Find Font | done | #3515: recently applied families appear first, once each; missing families are omitted and the existing Number of Recent Fonts setting applies; #339; script filter: Japanese, Latin, Thai; the font scan on Linux also reads the folders fontconfig's configuration lists, such as TeX fonts under `/usr/share/texmf/fonts` (#1548, fixes #1529; not verified on Linux); Select Text by Font takes a scope: the document, chosen artboards or chosen layers; Find Font's Find In offers Document, Artboard (the active one) and Layers (the selected ones, else the current one) (#5529, a VectorCraft addition); Replace With Font lists family and style rows, one click setting both, with a search over them; its list scrolls on its own, apart from the document's font list (#4972); wherever the font menu opens, its filters keep the same four rows, and it opens at least wide enough for them and for a family name up to 220 points wide with its sample (up to 60% of the window), each sample filling its row's height (a VectorCraft layout). |
| Font menu: samples, live preview, filters, favourites, recent families; font matching by any name; Find Font | done | #3515: recently applied families appear first, once each; missing families are omitted and the existing Number of Recent Fonts setting applies; #339; script filter: Japanese, Latin, Thai; the font scan on Linux also reads the folders fontconfig's configuration lists, such as TeX fonts under `/usr/share/texmf/fonts` (#1548, fixes #1529; not verified on Linux); Select Text by Font takes a scope: the document, chosen artboards or chosen layers; Find Font's Find In offers Document, Artboard (the active one) and Layers (the selected ones, else the current one) (#5529, a VectorCraft addition); Replace With Font lists family and style rows, one click setting both, with a search over them; its list scrolls on its own, apart from the document's font list (#4972); wherever the font menu opens, its filters keep the same four rows, and it opens at least wide enough for them and for a family name up to 220 points wide with its sample (up to 60% of the window), each sample filling its row's height (a VectorCraft layout); a filter chosen in the font menu of the Character panel, the Control bar or the Properties panel is on in the others, and the filters are cleared when the app quits ([Font browser overview](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/font-options-overview.html)); the font menus of the Glyphs panel and of the dialogs that pick a font share the same filters (a VectorCraft choice). |
| Missing glyphs set in an installed font made for their script (Thai, Lao, Khmer, Myanmar first; then any font that has them) | done | Thai: Leelawadee UI, Tahoma, Thonburi, Sukhumvit Set, Noto Sans Thai, TLWG |
| Full font-name matching (OpenType name ID 4) | done | #1258: loaded/cataloged faces and Missing Fonts searches; localized names and variable default faces; Windows font-service QA pending |
| Variable fonts | done | named instances as styles; Character panel › Variable Font sets each axis (`fontAxes`); the font menu's Font Technology › Variable lists only variable font families, with the script, kind and ★ filters ([Find, apply, and adjust variable fonts](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/find-apply-and-adjust-variable-fonts.html)); a family with a variable file beside static ones counts as variable. Evidence: `font_menu::tests::the_variable_filter_lists_only_variable_families`, `tests_axes::a_family_with_variation_axes_is_variable`, `tests_sysfonts::a_family_with_a_variable_file_beside_static_ones_is_variable` |
+1 -2
View File
@@ -174,8 +174,7 @@ tools, never checked side by side) isn't captured row by row.
| Blend spine Anchor Point conversion and handle editing (#2544) | implemented | symmetric handles, independent drag/retraction, visible-handle policy and selection/stacking covered by tool and engine regressions; Windows native canvas checks and screenshots reviewed in PR #2643 |
| Several blend spine points picked and dragged together (#5285) | done | with Direct Selection, Shift-click picks more points of a selected blend's spine or takes one away, as on a path; dragging any picked point moves them all, and the key objects on them, in one undo step (`object.blend.spine.moveAnchor {with}`); a marquee doesn't pick spine points yet |
| Add/Delete/Anchor Point tools; Anchor Point tool drags segments to reshape | done | #2267: a click on a handle end retracts that handle and leaves the anchor a corner with the other one; Shift held at the press on an anchor moves it, handles and all (Shift kept down: at 45° steps) instead of pulling out handles |
| Pencil: Fidelity, Keep selected, Alt to Smooth, edit selected paths, close by proximity | done | Fidelity goes down to 0.01 pt in the dialog, the tool and `path.freehand` (the Smooth tool keeps 0.05); its slider runs across the Tool Options row on a logarithmic rail from 0.01 to 20 pt, the field shows hundredths, and the slider's and the field's arrow keys step hundredths up to 0.1 pt, tenths up to 1 pt and whole points above (Shift ×10) (#3328); Alt key toggles to Smooth Tool (#2001); Shift held at the press draws a straight line at 45° steps from the Constrain Angle, and Alt held at the press (with Alt key toggles to Smooth Tool off) a straight line at any angle (#3799), with a straight-line cursor while Shift or Alt is held before the press, and a path-continuation cursor over an end of a selected open path, where the line continues the path; Edit Selected Paths continues a selected path from an end and, from a stroke that starts and ends on a selected path, redraws the section between (the shorter way round a closed path, #2850); with Keep selected (Pencil and Paintbrush, on by default) on, a stroke selects the path it draws or continues and replaces the earlier selection, and off a new stroke leaves nothing selected, the earlier selection included, while a continued or redrawn path is deselected and the rest of the selection stays; a filled Pencil path keeps a stroke of None (#1804, part of #1679); while a freehand stroke is drawn back to within Close Paths When Ends Are Within of its start, the Pencil and the Paintbrush show the closing cursor, and a release there closes the path |
| Pencil: Fidelity, Keep selected, Alt to Smooth, edit selected paths, close by proximity | done | Alt key toggles to Smooth Tool (#2001); Shift held at the press draws a straight line at 45° steps from the Constrain Angle, and Alt held at the press (with Alt key toggles to Smooth Tool off) a straight line at any angle (#3799), with a straight-line cursor while Shift or Alt is held before the press, and a path-continuation cursor over an end of a selected open path, where the line continues the path; Edit Selected Paths continues a selected path from an end and, from a stroke that starts and ends on a selected path, redraws the section between (the shorter way round a closed path, #2850); with Keep selected (Pencil and Paintbrush, on by default) on, a stroke selects the path it draws or continues and replaces the earlier selection, and off a new stroke leaves nothing selected, the earlier selection included, while a continued or redrawn path is deselected and the rest of the selection stays; a filled Pencil path keeps a stroke of None (#1804, part of #1679); while a freehand stroke is drawn back to within Close Paths When Ends Are Within of its start, the Pencil and the Paintbrush show the closing cursor, and a release there closes the path; a Pencil stroke from an end of one selected open path to an end of another connects the two into one path |
| Pencil: Fidelity, Keep selected, Alt to Smooth, edit selected paths, close by proximity | done | Fidelity is in screen pixels, the same at any zoom, and goes down to 0.01 px in the dialog and the tool, which sends `path.freehand` the value in points at the current zoom (#5729; the Smooth tool keeps 0.05 pt); its slider runs across the Tool Options row on a logarithmic rail from 0.01 to 20 px, the field shows hundredths, and the slider's and the field's arrow keys step hundredths up to 0.1 px, tenths up to 1 px and whole pixels above (Shift ×10) (#3328); Alt key toggles to Smooth Tool (#2001); Shift held at the press draws a straight line at 45° steps from the Constrain Angle, and Alt held at the press (with Alt key toggles to Smooth Tool off) a straight line at any angle (#3799), with a straight-line cursor while Shift or Alt is held before the press, and a path-continuation cursor over an end of a selected open path, where the line continues the path; Edit Selected Paths continues a selected path from an end and, from a stroke that starts and ends on a selected path, redraws the section between (the shorter way round a closed path, #2850); with Keep selected (Pencil and Paintbrush, on by default) on, a stroke selects the path it draws or continues and replaces the earlier selection, and off a new stroke leaves nothing selected, the earlier selection included, while a continued or redrawn path is deselected and the rest of the selection stays; a filled Pencil path keeps a stroke of None (#1804, part of #1679); while a freehand stroke is drawn back to within Close Paths When Ends Are Within of its start, the Pencil and the Paintbrush show the closing cursor, and a release there closes the path; a Pencil stroke from an end of one selected open path to an end of another connects the two into one path |
| Drop Shadow, Outer Glow and Inner Glow: Opacity, the offsets, Blur and Darkness have spinner arrows that step by one (a unit for distances), repeat when held and stop at the fields' ends (#5367, #5368) | done | dialogs::effect test drop_shadow_and_outer_glow_fields_have_spinner_arrows; other effect dialogs' number fields still have none |
| Effect dialogs' colour fields: a swatch beside the hex follows typed values, and a double-click opens the Color Picker over the dialog, whose OK fills it and Cancel comes back unchanged (#5365) | done | dialogs::effect tests outer_glow_colour_swatch_opens_the_color_picker and drop_shadow_colour_swatch_opens_the_color_picker (Drop Shadow's Color, #5364); the picker previews nothing itself, the effect dialog previews the returned colour |
| Join tool scrubbing, Average, Join | done | Join merges the direct-selected anchors lying on one another along a path, as after Average, into one (#1533); the Join tool trims two crossing open paths whose overhanging ends it scrubs over and joins them at the crossing, instead of drawing a segment between their ends (#5844) |