Plug-ins: importers at API level 4 open type, embedded images, layers and artboards

An importer whose manifest sets `api` 4 and lists `outputKinds` (any of
type, image, layer and artboard) may return point type (text, font
family and style, size, fill, transform), embedded RGBA images stored
as PNG, top-level layers with their names, visibility, lock and
objects, and named artboards that replace the one around the art.
Output of a kind the manifest doesn't list is refused naming the kind.

The host checks the whole output before it makes the document: limits
on layers (256), artboards (100), names (256 characters, no control or
text direction characters), text (1 MiB a type object, 16 MiB in all)
and pixels (16,384 a side, 32 MiB of RGBA in all, checked from the
sizes given before any base64 is decoded), and an image whose bytes
aren't 4 x width x height. One bad entry opens nothing and leaves the
open document as it was. Importers below level 4 read paths alone, as
before. The host's plug-in API level goes to 4.

Docs: docs/plugins.md, docs/gaps.md, docs/target-app-parity.md.
This commit is contained in:
dotCooCoo committed 2026-11-22 11:13:38 -08:00
1 parent bcaeb29737
commit cf06887782
37 files changed
+1614 -45

No files matched your search

+150 -16
View File
@@ -10,12 +10,16 @@
//! named by `path` that only an importer can read is read no further than that. Its objects become
//! a new document whose artboard is their bounds, and nothing opens when the importer fails,
//! declines, is cancelled or returns objects that don't pass the checks a filter's output does.
//! An importer at plug-in API level 4 may also return point type, embedded images, top-level
//! layers and artboards (its manifest's `outputKinds`): the artboards it returns replace the one
//! around the art.
use std::sync::Arc;
use serde_json::Value;
use vectorcraft_doc::{Document, MAX_COORD};
use vectorcraft_geom::Rect;
use vectorcraft_doc::{CharStyle, Document, ImageObject, LAYER_COLORS, LayerColor, MAX_COORD, Node, NodeId, NodeKind, TextObject};
use vectorcraft_geom::{Point, Rect};
use vectorcraft_plugins::import::ImportObject;
use vectorcraft_plugins::{Plugin, export, import, objects};
use super::super::{Result, bad, str_param};
@@ -135,22 +139,152 @@ pub(super) fn load(name: &str, bytes: &[u8], plugin: &Plugin, p: &Value) -> Resu
let mut doc = Document::new(1.0, 1.0);
let layer = doc.layers.first().map(|l| l.id);
let admit = |fx: &[vectorcraft_doc::Effect], n: &vectorcraft_doc::Node| crate::cmd::plugin::admit_effects_for(C, fx, n);
let ids =
objects::apply_output(&mut doc, &[], imported.objects, layer, &admit).map_err(|e| err(format!("can't open `{}`: {e}", file_name(name))))?;
if let (Some(bounds), Some(board)) = (doc.bounds_of(&ids, true), doc.artboards.first_mut()) {
board.rect = artboard_rect(bounds);
let open_err = |e: vectorcraft_plugins::Error| err(format!("can't open `{}`: {e}", file_name(name)));
let mut warnings = Vec::new();
let (ids, artboards) = if imported.paths_only() {
let paths = imported.objects.into_iter().filter_map(|o| if let ImportObject::Path(o) = o { Some(o) } else { None }).collect();
(objects::apply_output(&mut doc, &[], paths, layer, &admit).map_err(open_err)?, Vec::new())
} else {
let ids = build(&mut doc, imported.objects, imported.layers, &admit, &mut warnings)
.map_err(|e| err(format!("can't open `{}`: {e}", file_name(name))))?;
(ids, imported.artboards)
};
if artboards.is_empty() {
if let (Some(bounds), Some(board)) = (doc.bounds_of(&ids, true), doc.artboards.first_mut()) {
board.rect = artboard_rect(bounds);
}
} else {
set_artboards(&mut doc, artboards);
}
doc.title = file_name(name);
Ok(Loaded {
doc,
format,
warnings: imported.warnings,
restored: false,
converted: false,
preview_only: false,
editing_data: false,
native_pdf_compatible: None,
})
warnings.splice(0..0, imported.warnings);
Ok(Loaded { doc, format, warnings, restored: false, converted: false, preview_only: false, editing_data: false, native_pdf_compatible: None })
}
/// Puts `objects`, what an importer at plug-in API level 4 returned, into `doc`, a new document of
/// one layer: in `layers`, bottom first, each holding the objects it lists in their order, or all in
/// that one layer when there are none. Paths are made as a filter's new ones are (their effects let
/// in by `admit`), type is laid out, and each image is stored in the document as a PNG of its
/// pixels. A warning for type whose font isn't there, or doesn't have its style, goes to `warnings`.
/// Returns the objects' ids in order.
fn build(
doc: &mut Document,
objects: Vec<ImportObject>,
layers: Vec<import::OutLayer>,
admit: objects::AdmitEffects,
warnings: &mut Vec<String>,
) -> std::result::Result<Vec<NodeId>, String> {
let count = objects.len();
let first = doc.layers.first().map(|l| (**l).clone());
let first = first.unwrap_or_else(|| Node::layer(doc.alloc_id(), "Layer 1", LayerColor::Preset(0)));
let mut owner = vec![0usize; count];
for (li, l) in layers.iter().enumerate() {
for &k in &l.objects {
if let Some(o) = owner.get_mut(k) {
*o = li;
}
}
}
let mut members: Vec<Vec<Arc<Node>>> = vec![Vec::new(); layers.len().max(1)];
let mut ids = Vec::with_capacity(count);
let mut fonts = std::collections::BTreeSet::new();
for (i, o) in objects.into_iter().enumerate() {
let at = format!("objects[{i}]");
let node = match o {
ImportObject::Path(o) => objects::new_object(doc, o, &at, admit).map_err(|e| e.to_string())?,
ImportObject::Type(t) => {
let node = type_node(doc, t);
if let NodeKind::Text(t) = &node.kind {
fonts.extend(t.runs.iter().flat_map(crate::cmd::fonts::run_fonts));
}
node
}
ImportObject::Image(im) => image_node(doc, im).map_err(|e| e.to_string())?,
};
ids.push(node.id);
if let Some(list) = owner.get(i).and_then(|&li| members.get_mut(li)) {
list.push(Arc::new(node));
}
}
let built: Vec<Arc<Node>> = if layers.is_empty() {
let mut layer = first;
if let Some(children) = layer.children_mut() {
*children = members.into_iter().next().unwrap_or_default();
}
vec![Arc::new(layer)]
} else {
layers
.into_iter()
.zip(members)
.enumerate()
.map(|(li, (l, children))| {
let mut layer = Node::layer(doc.alloc_id(), &l.name, LayerColor::Preset((li % LAYER_COLORS.len()) as u8));
layer.visible = l.visible;
layer.locked = l.locked;
if let Some(c) = layer.children_mut() {
*c = children;
}
Arc::new(layer)
})
.collect()
};
doc.layers = built;
warnings.extend(crate::cmd::fonts::set_font_warning(fonts));
Ok(ids)
}
/// Point type `t` as a new node of `doc`, in [Normal Character Style] with the face, size and fill
/// `t` gives, laid out.
fn type_node(doc: &mut Document, t: import::OutType) -> Node {
let mut style = crate::cmd::textstyles::normal_char_style(doc);
style.font_version = None;
style.font_axes.clear();
style.font_family = t.font_family;
match t.font_style {
Some(s) => style.font_style = s,
None => {
style.font_style = CharStyle::default().font_style;
crate::cmd::textedit::fit_font_style(&mut style);
}
}
style.size = t.font_size;
if let Some(fill) = t.fill {
style.fill = fill;
}
let mut text = TextObject::point(Point::ZERO, &t.text, style);
text.xf = t.transform;
text.para = crate::cmd::create::new_type_para();
text.system_layout = doc.setup.system_layout;
crate::cmd::typecmd::refresh_bounds(&mut text);
let mut n = Node::new(doc.alloc_id(), NodeKind::Text(Box::new(text)));
n.name = t.name;
n
}
/// Image `im` as a new node of `doc`, its pixels stored in `doc` as a PNG.
fn image_node(doc: &mut Document, im: import::OutImage) -> Result<Node> {
let pixels = image::RgbaImage::from_raw(im.width, im.height, im.rgba).ok_or_else(|| err("the image's pixels don't match its size"))?;
let stored = super::load::as_png(pixels, None, None)?;
let image = ImageObject {
key: stored.key.clone(),
width: stored.width,
height: stored.height,
xf: im.transform,
link: None,
placement: Default::default(),
pixels: None,
};
doc.images.insert(stored.key, stored.blob);
let mut n = Node::new(doc.alloc_id(), NodeKind::Image(Box::new(image)));
n.name = im.name;
Ok(n)
}
/// Gives `doc` the artboards `boards` an importer returned, in order, in place of its one.
fn set_artboards(doc: &mut Document, boards: Vec<import::OutArtboard>) {
let Some(template) = doc.artboards.first().cloned() else { return };
doc.artboards =
boards.into_iter().zip(1u32..).map(|(b, id)| vectorcraft_doc::Artboard { id, name: b.name, rect: b.rect, ..template.clone() }).collect();
}
/// The artboard of art with bounds `r`: `r` within ±[`MAX_COORD`], at least 1 pt wide and high
+3
View File
@@ -101,6 +101,9 @@ pub fn describe(p: &Plugin) -> Value {
if !m.inputs.is_empty() {
v["inputs"] = json!(m.inputs);
}
if !m.output_kinds.is_empty() {
v["outputKinds"] = json!(m.output_kinds);
}
if m.paint_output {
v["paintOutput"] = json!(true);
}
+143
View File
@@ -441,3 +441,146 @@ fn a_built_in_file_past_the_input_limit_still_opens() {
assert_eq!(s.execute("document.open", &encoded).unwrap()["format"], "png");
let _ = std::fs::remove_dir_all(&dir);
}
/// An importer at plug-in API level 4 `id` reading `.trc` files, listing `kinds` (a JSON list) in
/// `outputKinds`, whose output is the file it is given.
fn rich_echo(s: &mut Session, id: &str, kinds: &str) -> Value {
let manifest =
format!(r#"{{"id":"{id}","name":"Test {id}","version":"1","kind":"importer","api":4,"extensions":["trc"],"outputKinds":{kinds}}}"#);
install(s, &tpl::module(&manifest, tpl::ECHO, "", 1))
}
/// The pixels of a 2 × 1 image: opaque red, then half-transparent blue.
const PIXELS: [u8; 8] = [255, 0, 0, 255, 0, 0, 255, 128];
/// Rich importer output: type, the image of [`PIXELS`] and the rectangle of [`RECT`], with two
/// layers (the image and the rectangle in "Art", the type in the hidden, locked "Words") and two
/// artboards.
fn rich_output() -> Value {
let rect: Value = serde_json::from_str(RECT).unwrap();
json!({
"objects": [
{"type": "type", "text": "Hello\nWorld", "fontFamily": "No Such Family Q9617", "fontSize": 24,
"fill": {"type": "solid", "color": {"model": "rgb", "r": 0, "g": 0, "b": 1}}, "transform": [1, 0, 0, 1, 10, 40], "name": "Title"},
{"type": "image", "pixelSize": [2, 1], "pixelsBase64": vectorcraft_format::base64_encode(&PIXELS), "transform": [10, 0, 0, 10, 0, 100]},
rect["objects"][0],
],
"layers": [{"name": "Art", "objects": [1, 2]}, {"name": "Words", "visible": false, "locked": true, "objects": [0]}],
"artboards": [{"name": "Front", "rect": [0, 0, 200, 100]}, {"name": "Back", "rect": [220, 0, 200, 100]}],
"warnings": ["from the importer"],
})
}
/// The active document's layers (name, shown, locked, kinds of its objects), its artboards (name
/// and rectangle), its type (text, family, size, fill) and the RGBA of its first image.
#[allow(clippy::type_complexity)]
fn structure(s: &Session) -> (Vec<(String, bool, bool, Vec<&'static str>)>, Vec<(String, [f64; 4])>, Vec<(String, String, f64, String)>, Vec<u8>) {
let d = &s.doc().unwrap().doc;
let kind = |n: &vectorcraft_doc::Node| match &n.kind {
vectorcraft_doc::NodeKind::Text(_) => "type",
vectorcraft_doc::NodeKind::Image(_) => "image",
vectorcraft_doc::NodeKind::Path { .. } => "path",
_ => "other",
};
let layers = d
.layers
.iter()
.map(|l| (l.name.clone().unwrap_or_default(), l.visible, l.locked, l.children().unwrap().iter().map(|c| kind(c)).collect()))
.collect();
let boards = d.artboards.iter().map(|a| (a.name.clone(), [a.rect.x0, a.rect.y0, a.rect.x1, a.rect.y1])).collect();
let (mut types, mut pixels) = (Vec::new(), Vec::new());
d.walk(|n| match &n.kind {
vectorcraft_doc::NodeKind::Text(t) => {
let st = &t.runs[0].style;
let text: String = t.runs.iter().map(|r| r.text.as_str()).collect();
types.push((text, st.font_family.clone(), st.size, serde_json::to_string(&st.fill).unwrap()));
}
vectorcraft_doc::NodeKind::Image(_) if pixels.is_empty() => {
// Read back through the filter input's own decoder, not the importer's.
let o = vectorcraft_plugins::objects::encode_read_only(d, n).unwrap();
pixels = vectorcraft_format::base64_decode(o["pixelsBase64"].as_str().unwrap()).unwrap();
}
_ => {}
});
(layers, boards, types, pixels)
}
/// An importer at API level 4 that lists every output kind opens editable type, an embedded image,
/// paths, layers and artboards as it returned them; the artboards replace the one around the art,
/// a missing font is reported with the importer's warnings, and the document saves and opens again
/// in the native format with all of it.
#[test]
fn an_api_4_importer_opens_type_images_layers_and_artboards() {
let mut s = Session::new();
let entry = rich_echo(&mut s, "test.rich", r#"["type","image","layer","artboard"]"#);
assert_eq!((&entry["api"], &entry["outputKinds"]), (&json!(4), &json!(["type", "image", "layer", "artboard"])));
assert_eq!(entry["permissions"], json!(["import.read"]));
let r = open(&mut s, "Rich.trc", rich_output().to_string().as_bytes(), json!({})).unwrap();
let warnings = r["warnings"].as_array().unwrap();
assert_eq!(warnings.first(), Some(&json!("from the importer")));
assert!(warnings.iter().any(|w| w.as_str().unwrap().contains("No Such Family Q9617")), "{warnings:?}");
let opened = structure(&s);
let blue = serde_json::to_string(&vectorcraft_color::Paint::solid(vectorcraft_color::Color::rgb(0.0, 0.0, 1.0))).unwrap();
assert_eq!(opened.0, [("Art".to_string(), true, false, vec!["image", "path"]), ("Words".to_string(), false, true, vec!["type"])]);
assert_eq!(opened.1, [("Front".to_string(), [0.0, 0.0, 200.0, 100.0]), ("Back".to_string(), [220.0, 0.0, 420.0, 100.0])]);
assert_eq!(opened.2, [("Hello\nWorld".to_string(), "No Such Family Q9617".to_string(), 24.0, blue)]);
assert_eq!(opened.3, PIXELS);
// The type is laid out at the place the transform gives: its first baseline starts at (10, 40).
let d = &s.doc().unwrap().doc;
let words = d.layers[1].children().unwrap()[0].clone();
let b = d.bounds_of(&[words.id], false).unwrap();
assert!(b.x0 >= 9.0 && b.x0 < 12.0 && b.y0 < 40.0 && b.y1 > 40.0, "{b:?}");
let native = fileio::encode(&s.doc().unwrap().doc, "vectorcraft", &json!({})).unwrap();
open(&mut s, "Again.vectorcraft", &native, json!({})).unwrap();
assert_eq!(structure(&s), opened, "saved and opened again");
}
/// An importer at API level 4 that lists only some kinds: output with another kind, a malformed
/// image or a bad layer opens nothing and leaves the open document as it was; a blank document of
/// artboards alone opens.
#[test]
fn rich_output_that_fails_its_checks_changes_nothing() {
let mut s = Session::new();
rich_echo(&mut s, "test.richsome", r#"["type","image","layer"]"#);
let before = open_edited(&mut s, "test.richsome.edited");
let mut short = rich_output();
short["objects"][1]["pixelsBase64"] = json!(vectorcraft_format::base64_encode(&PIXELS[..4]));
let mut twice = rich_output();
twice["layers"][1]["objects"] = json!([0, 2]);
let cases = [
(rich_output(), "`artboard`"),
(short, "= 8 bytes"),
(twice, "exactly one layer"),
(json!({"objects": [], "layers": [{"name": "A\u{202E}B"}]}), "text direction"),
];
for (mut output, says) in cases {
if says != "`artboard`" {
output.as_object_mut().unwrap().remove("artboards");
}
let e = open(&mut s, "x.trc", output.to_string().as_bytes(), json!({"importer": "plugin.test.richsome"})).unwrap_err();
assert!(e.to_string().contains(says) && e.to_string().contains("x.trc"), "{says}: {e}");
assert_eq!(state(&mut s), before, "{says}");
}
rich_echo(&mut s, "test.richboards", r#"["artboard"]"#);
let blank = json!({"objects": [], "artboards": [{"name": "Only", "rect": [0, 0, 50, 60]}]});
open(&mut s, "Blank.trc", blank.to_string().as_bytes(), json!({"importer": "plugin.test.richboards"})).unwrap();
let (layers, boards, types, _) = structure(&s);
assert_eq!((layers.len(), layers[0].3.len(), boards, types.len()), (1, 0, vec![("Only".to_string(), [0.0, 0.0, 50.0, 60.0])], 0));
}
/// An importer below API level 4 reads paths alone, as it always has: type is not a path, and it
/// can't return layers.
#[test]
fn an_older_importer_reads_paths_alone() {
let mut s = Session::new();
echo(&mut s, "test.older", r#"["tol"]"#);
let e = open(&mut s, "x.tol", rich_output().to_string().as_bytes(), json!({})).unwrap_err();
assert!(e.to_string().contains("an importer returns `objects` and `warnings`, not `"), "{e}");
let typed = json!({"objects": [rich_output()["objects"][0]]});
let e = open(&mut s, "x.tol", typed.to_string().as_bytes(), json!({})).unwrap_err();
assert!(e.to_string().contains("`type` must be \"path\" or \"compound\""), "{e}");
assert!(s.documents().is_empty());
open(&mut s, "Shapes.tol", RECT.as_bytes(), json!({})).unwrap();
assert_eq!((objects(&s), artboard(&s), s.doc().unwrap().doc.layers.len()), (1, (10.0, 20.0, 110.0, 70.0), 1));
}
+578 -12
View File
@@ -10,6 +10,8 @@
//! The host hands the importer the file's bytes as they are, at most [`MAX_INPUT_BYTES`] of them,
//! and reads back the objects of the new document in the same form filters return them
//! ([`crate::objects`]): `{"objects": [...], "warnings"?: ["…"]}`, or `{"error": "…"}` to decline.
//! An importer at plug-in API level 4 whose manifest lists `outputKinds` may also return point type
//! and embedded images in `objects`, and `layers` and `artboards` ([`decode_with`]).
//! An import is one run the user asked for, so it gets an export's budget ([`crate::export::FUEL`]
//! and [`crate::export::WALL_TIME_MS`]), and Cancel stops it between two slices of the budget
//! ([`Error::Cancelled`]).
@@ -17,9 +19,11 @@
use std::sync::Arc;
use serde_json::{Value, json};
use vectorcraft_color::Paint;
use vectorcraft_geom::{Affine, Rect};
use crate::objects::{OutObject, declined, printable};
use crate::{Error, Kind, Limits, Plugin, Result, registry};
use crate::objects::{MAX_COORD, MAX_OBJECTS, OutObject, declined, out_err, printable};
use crate::{Error, Kind, Limits, OutputKind, Plugin, Result, registry};
/// The largest file an importer is given, in bytes: 128 MiB, a quarter of a plug-in's memory
/// limit, so the file and the objects made from it fit beside each other.
@@ -64,13 +68,109 @@ pub fn for_extension(ext: &str) -> Vec<Arc<Plugin>> {
/// What an importer returned.
#[derive(Clone, Debug, PartialEq)]
pub struct Imported {
/// The objects of the new document, in paint order (bottom first), checked as a filter's are.
pub objects: Vec<OutObject>,
/// The objects of the new document, in paint order (bottom first): paths and compound paths
/// checked as a filter's are, and type and images when the importer lists them in `outputKinds`.
pub objects: Vec<ImportObject>,
/// The top-level layers, bottom first, each holding the objects it lists (`layers`, with
/// `outputKinds` `layer`); empty: every object goes in one layer.
pub layers: Vec<OutLayer>,
/// The artboards (`artboards`, with `outputKinds` `artboard`); empty: one artboard around the art.
pub artboards: Vec<OutArtboard>,
/// What the import left out or changed, for the user (at most
/// [`crate::export::MAX_WARNINGS`]).
pub warnings: Vec<String>,
}
impl Imported {
/// Whether it holds paths and compound paths alone, as an importer below API level 4 returns.
pub fn paths_only(&self) -> bool {
self.layers.is_empty() && self.artboards.is_empty() && self.objects.iter().all(|o| matches!(o, ImportObject::Path(_)))
}
}
/// One object of an import.
#[derive(Clone, Debug, PartialEq)]
pub enum ImportObject {
/// A path or a compound path (`"type": "path"` or `"compound"`, or no `type`).
Path(OutObject),
/// Point type (`"type": "type"`).
Type(OutType),
/// An embedded image (`"type": "image"`).
Image(OutImage),
}
/// Point type an importer returned: `{"type": "type", text, fontFamily, fontStyle?, fontSize,
/// fill?, transform?, name?}`.
#[derive(Clone, Debug, PartialEq)]
pub struct OutType {
/// Its text, a line break (`\n`) between two paragraphs.
pub text: String,
pub font_family: String,
/// `None`: the family's regular style.
pub font_style: Option<String>,
/// In points, from [`TYPE_SIZES`]`.0` to [`TYPE_SIZES`]`.1`.
pub font_size: f64,
/// `None`: the default fill (black).
pub fill: Option<Paint>,
/// Maps the type's own space (the first baseline starts at its origin) into the document.
pub transform: Affine,
pub name: Option<String>,
}
/// An embedded image an importer returned: `{"type": "image", pixelSize: [w, h], pixelsBase64,
/// transform?, name?}`.
#[derive(Clone, Debug, PartialEq)]
pub struct OutImage {
pub width: u32,
pub height: u32,
/// Straight RGBA, 8 bits a channel, row by row from the top: `4 × width × height` bytes.
pub rgba: Vec<u8>,
/// Maps pixel space (one unit a pixel, y down) into the document.
pub transform: Affine,
pub name: Option<String>,
}
/// A top-level layer an importer returned: `{name, visible?, locked?, objects: [index…]}`.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct OutLayer {
pub name: String,
pub visible: bool,
pub locked: bool,
/// Indexes into [`Imported::objects`], increasing: the layer's objects in paint order.
pub objects: Vec<usize>,
}
/// An artboard an importer returned: `{name, rect: [x, y, width, height]}`.
#[derive(Clone, Debug, PartialEq)]
pub struct OutArtboard {
pub name: String,
pub rect: Rect,
}
/// Most layers an import may return.
pub const MAX_LAYERS: usize = 256;
/// Most artboards an import may return.
pub const MAX_ARTBOARDS: usize = 100;
/// Longest layer, artboard, object or font name an import may return, in characters.
pub const MAX_NAME_CHARS: usize = 256;
/// Most bytes of UTF-8 text one type object may hold.
pub const MAX_TYPE_TEXT: usize = 1 << 20;
/// Most bytes of UTF-8 text all the type of one import may hold.
pub const MAX_TEXT_TOTAL: usize = 16 << 20;
/// Most pixels an image may have along either side.
pub const MAX_IMAGE_SIDE: u64 = 16_384;
/// Most bytes of RGBA all the images of one import may hold.
pub const MAX_PIXEL_BYTES: u64 = 32 << 20;
/// The type sizes an import may give, in points (those Character panel sizes take).
pub const TYPE_SIZES: (f64, f64) = (0.1, 1296.0);
/// The file an import reads, as the importer is told in `_context`.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Source<'a> {
@@ -103,23 +203,57 @@ pub fn run(plugin: &Plugin, file: &[u8], params: &Value, source: Source) -> Resu
let mut params = Value::Object(m.resolve_params(params)?);
params["_context"] = json!({"mode": "import", "extension": source.extension, "name": source.name});
let params = serde_json::to_vec(&params).map_err(|e| Error::Params(e.to_string()))?;
decode(&plugin.run_limited(file, &params, &limits(plugin))?)
decode_with(&plugin.run_limited(file, &params, &limits(plugin))?, &m.output_kinds())
}
/// An importer's output: `{"objects": [...], "warnings"?: ["…"]}`, or `{"error": "…"}` to decline
/// with a message for the user. The objects are new ones (no `id`), checked as a filter's are; an
/// output without any, or with keys of its own, is refused.
pub fn decode(bytes: &[u8]) -> Result<Imported> {
decode_with(bytes, &[])
}
/// [`decode`] for an importer whose manifest lists `kinds` (`outputKinds`): `objects` may also
/// hold type and images, and the output `layers` and `artboards`, of the kinds listed. Content of
/// a kind not listed is refused naming the kind. Everything is checked before anything is returned,
/// against the limits of this module, and one bad entry refuses the whole output. With `kinds`
/// listing layers or artboards, an output of no objects is an empty document when it has any.
pub fn decode_with(bytes: &[u8], kinds: &[OutputKind]) -> Result<Imported> {
let v: Value = serde_json::from_slice(bytes).map_err(|e| Error::Output(format!("not JSON: {e}")))?;
if let Some(e) = declined(&v) {
return Err(e);
}
if let Some(key) = v.as_object().and_then(|o| o.keys().find(|k| !OUTPUT_KEYS.contains(&k.as_str()))) {
let key = printable(&json!(key), 64);
return Err(Error::Output(format!("an importer returns `objects` and `warnings`, not `{key}`")));
for key in v.as_object().into_iter().flat_map(|o| o.keys()).filter(|k| !OUTPUT_KEYS.contains(&k.as_str())) {
let rich = match key.as_str() {
"layers" => Some(OutputKind::Layer),
"artboards" => Some(OutputKind::Artboard),
_ => None,
};
match rich {
Some(kind) if kinds.contains(&kind) => {}
Some(kind) if !kinds.is_empty() => return Err(undeclared(kind)),
_ => {
let key = printable(&json!(key), 64);
return Err(Error::Output(format!("an importer returns `objects` and `warnings`, not `{key}`")));
}
}
}
let objects = crate::objects::decode(bytes)?;
if objects.is_empty() {
let (objects, layers, artboards) = if kinds.is_empty() {
let objects = crate::objects::decode(bytes)?;
(objects.into_iter().map(ImportObject::Path).collect::<Vec<_>>(), Vec::new(), Vec::new())
} else {
let objects = rich_objects(&v, kinds)?;
let layers = match v.get("layers") {
None => Vec::new(),
Some(l) => decode_layers(l, objects.len())?,
};
let artboards = match v.get("artboards") {
None => Vec::new(),
Some(a) => decode_artboards(a)?,
};
(objects, layers, artboards)
};
if objects.is_empty() && layers.is_empty() && artboards.is_empty() {
return Err(Error::Output("the importer returned no objects".into()));
}
let warnings = match v.get("warnings") {
@@ -127,7 +261,298 @@ pub fn decode(bytes: &[u8]) -> Result<Imported> {
Some(Value::Array(w)) => w.iter().take(crate::export::MAX_WARNINGS).map(|w| printable(w, crate::export::MAX_WARNING_CHARS)).collect(),
Some(_) => return Err(Error::Output("`warnings` must be a list of strings".into())),
};
Ok(Imported { objects, warnings })
Ok(Imported { objects, layers, artboards, warnings })
}
/// The error of output holding content of `kind`, which the importer's `outputKinds` doesn't list.
fn undeclared(kind: OutputKind) -> Error {
let kind = kind.name();
Error::Output(format!("the output holds `{kind}`, which the importer's `outputKinds` doesn't list"))
}
/// The keys a type object may have.
const TYPE_KEYS: &[&str] = &["type", "text", "fontFamily", "fontStyle", "fontSize", "fill", "transform", "name"];
/// The keys an image object may have.
const IMAGE_KEYS: &[&str] = &["type", "pixelSize", "pixelsBase64", "transform", "name"];
/// The keys a layer may have.
const LAYER_KEYS: &[&str] = &["name", "visible", "locked", "objects"];
/// The keys an artboard may have.
const ARTBOARD_KEYS: &[&str] = &["name", "rect"];
/// The objects of output `v` of an importer listing `kinds`: paths and compound paths as a
/// filter's, type and images of the kinds listed.
fn rich_objects(v: &Value, kinds: &[OutputKind]) -> Result<Vec<ImportObject>> {
let objects = v.get("objects").and_then(Value::as_array).ok_or_else(|| Error::Output("expected {\"objects\": [...]}".into()))?;
if objects.len() > MAX_OBJECTS {
return Err(Error::Output(format!("{} objects (limit {MAX_OBJECTS})", objects.len())));
}
let kind_of = |o: &Value| match o.get("type").and_then(Value::as_str) {
Some("type") => Some(OutputKind::Type),
Some("image") => Some(OutputKind::Image),
_ => None,
};
if let Some(kind) = objects.iter().filter_map(kind_of).find(|k| !kinds.contains(k)) {
return Err(undeclared(kind));
}
check_totals(objects)?;
let mut anchors = 0;
objects
.iter()
.enumerate()
.map(|(i, o)| {
let at = format!("objects[{i}]");
match kind_of(o) {
Some(OutputKind::Type) => decode_type(o, &at).map(ImportObject::Type),
Some(_) => decode_image(o, &at).map(ImportObject::Image),
None => crate::objects::decode_object(o, &at, &mut anchors).map(ImportObject::Path),
}
})
.collect()
}
/// Refuses `objects` whose type, all together, holds more than [`MAX_TEXT_TOTAL`] bytes of text, or
/// whose images, by the sizes they give, more than [`MAX_PIXEL_BYTES`] bytes of pixels, before any
/// object is read further or any pixels are decoded.
fn check_totals(objects: &[Value]) -> Result<()> {
let (mut text, mut pixel_bytes) = (0usize, 0u64);
for (i, o) in objects.iter().enumerate() {
let at = format!("objects[{i}]");
match o.get("type").and_then(Value::as_str) {
Some("type") => {
text = text.saturating_add(o.get("text").and_then(Value::as_str).map_or(0, str::len));
if text > MAX_TEXT_TOTAL {
return Err(out_err(&at, format!("the type holds more than {MAX_TEXT_TOTAL} bytes of text")));
}
}
Some("image") => {
let side = |k: usize| o.get("pixelSize").and_then(|s| s.get(k)).and_then(Value::as_u64).unwrap_or(0);
let (w, h) = (side(0), side(1));
if w > MAX_IMAGE_SIDE || h > MAX_IMAGE_SIDE {
return Err(out_err(&at, format!("{w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side)")));
}
pixel_bytes = pixel_bytes.saturating_add(w.saturating_mul(h).saturating_mul(4));
if pixel_bytes > MAX_PIXEL_BYTES {
return Err(out_err(&at, format!("the images hold more than {MAX_PIXEL_BYTES} bytes of pixels")));
}
}
_ => {}
}
}
Ok(())
}
/// Refuses a key of JSON object `o` that isn't one of `keys`.
fn known_keys(o: &serde_json::Map<String, Value>, keys: &[&str], at: &str) -> Result<()> {
match o.keys().find(|k| !keys.contains(&k.as_str())) {
Some(key) => {
let key = printable(&json!(key), 64);
Err(out_err(at, format!("unknown field `{key}`")))
}
None => Ok(()),
}
}
/// Is `c` a character that changes the direction text is laid out in (an embedding, override,
/// isolate or mark)?
fn is_direction_mark(c: char) -> bool {
matches!(c, '\u{200E}' | '\u{200F}' | '\u{061C}' | '\u{202A}'..='\u{202E}' | '\u{2066}'..='\u{2069}')
}
/// The name `key` of `o` (`at` names it): 1 to [`MAX_NAME_CHARS`] characters, none of them a
/// control character or a direction mark, and not only spaces. `None` when it is left out and not
/// `required`.
fn name(o: &serde_json::Map<String, Value>, key: &str, required: bool, at: &str) -> Result<Option<String>> {
let v = match o.get(key) {
None | Some(Value::Null) if required => return Err(out_err(at, format!("missing field `{key}`"))),
None | Some(Value::Null) => return Ok(None),
Some(v) => v,
};
let s = v.as_str().ok_or_else(|| out_err(at, format!("`{key}` must be a string")))?;
let count = s.chars().count();
if count == 0 || count > MAX_NAME_CHARS || s.trim().is_empty() || s.chars().any(|c| c.is_control() || is_direction_mark(c)) {
return Err(out_err(at, format!("`{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters")));
}
Ok(Some(s.to_string()))
}
/// The affine `key` of `o` (`at` names it): six finite numbers within ±[`MAX_COORD`] that don't
/// flatten what it places. Left out, no change of place.
fn transform(o: &serde_json::Map<String, Value>, key: &str, at: &str) -> Result<Affine> {
let Some(v) = o.get(key).filter(|v| !v.is_null()) else { return Ok(Affine::IDENTITY) };
let wrong = || out_err(at, format!("`{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object"));
let list = v.as_array().filter(|a| a.len() == 6).ok_or_else(wrong)?;
let mut c = [0.0; 6];
for (slot, n) in c.iter_mut().zip(list) {
*slot = n.as_f64().filter(|x| x.is_finite() && x.abs() <= MAX_COORD).ok_or_else(wrong)?;
}
let det = c[0] * c[3] - c[1] * c[2];
if !det.is_normal() {
return Err(wrong());
}
Ok(Affine::new(c))
}
/// A type object of the output (`at` names it).
fn decode_type(v: &Value, at: &str) -> Result<OutType> {
let o = v.as_object().ok_or_else(|| out_err(at, "an object must be a JSON object"))?;
known_keys(o, TYPE_KEYS, at)?;
let text = match o.get("text") {
None | Some(Value::Null) => {
let key = "text";
return Err(out_err(at, format!("missing field `{key}`")));
}
Some(t) => t.as_str().ok_or_else(|| {
let key = "text";
out_err(at, format!("`{key}` must be a string"))
})?,
};
let len = text.len();
if len > MAX_TYPE_TEXT {
return Err(out_err(at, format!("`text` is {len} bytes (limit {MAX_TYPE_TEXT})")));
}
if text.chars().any(|c| c.is_control() && c != '\n' && c != '\t') {
return Err(out_err(at, "`text` must not hold control characters other than line breaks and tabs"));
}
let font_family = name(o, "fontFamily", true, at)?.unwrap_or_default();
let font_style = name(o, "fontStyle", false, at)?;
let key = "fontSize";
let font_size = match o.get(key) {
None | Some(Value::Null) => return Err(out_err(at, format!("missing field `{key}`"))),
Some(s) => s.as_f64().ok_or_else(|| out_err(at, format!("`{key}` must be a number")))?,
};
let (min, max) = TYPE_SIZES;
if !(min..=max).contains(&font_size) {
let x = font_size;
return Err(out_err(at, format!("`{key}` must be between {min} and {max} (got {x})")));
}
let fill = match o.get("fill") {
None => None,
Some(f) => {
let paint = crate::objects::decode_paint(f, &format!("{at}.fill"))?;
if matches!(paint, Paint::Pattern { .. }) {
return Err(out_err(at, "a type fill must be a color or a gradient"));
}
Some(crate::objects::unlinked(paint))
}
};
Ok(OutType {
text: text.to_string(),
font_family,
font_style,
font_size,
fill,
transform: transform(o, "transform", at)?,
name: name(o, "name", false, at)?,
})
}
/// An image object of the output (`at` names it). Its size has been checked against the limits
/// ([`check_totals`]), and its base64's length is checked against its size before anything is
/// decoded.
fn decode_image(v: &Value, at: &str) -> Result<OutImage> {
let o = v.as_object().ok_or_else(|| out_err(at, "an object must be a JSON object"))?;
known_keys(o, IMAGE_KEYS, at)?;
let size = o.get("pixelSize").and_then(Value::as_array).filter(|a| a.len() == 2).and_then(|a| {
let side = |v: &Value| v.as_u64().filter(|n| (1..=MAX_IMAGE_SIDE).contains(n));
Some((side(a.first()?)?, side(a.get(1)?)?))
});
let (w, h) = size.ok_or_else(|| out_err(at, format!("`pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE}")))?;
let want = w * h * 4;
let wrong = || out_err(at, format!("`pixelsBase64` must hold 4 × width × height = {want} bytes as base64"));
let b64 = o.get("pixelsBase64").and_then(Value::as_str).ok_or_else(wrong)?;
// The length is checked first, so nothing of the wrong size is decoded.
if b64.len() as u64 != want.div_ceil(3) * 4 || craft_vectorcraft_format::base64::decoded_len(b64) != want {
return Err(wrong());
}
let rgba = craft_vectorcraft_format::base64::decode(b64).filter(|p| p.len() as u64 == want).ok_or_else(wrong)?;
Ok(OutImage { width: w as u32, height: h as u32, rgba, transform: transform(o, "transform", at)?, name: name(o, "name", false, at)? })
}
/// The `layers` of the output, for `count` objects: 1 to [`MAX_LAYERS`] layers, bottom first,
/// each listing the indexes of its objects in increasing order, and every object in exactly one.
fn decode_layers(v: &Value, count: usize) -> Result<Vec<OutLayer>> {
let key = "layers";
let list = entries(v, key, MAX_LAYERS)?;
let mut owner: Vec<bool> = vec![false; count];
let mut layers = Vec::with_capacity(list.len());
for (i, l) in list.iter().enumerate() {
let at = format!("layers[{i}]");
let o = l.as_object().ok_or_else(|| out_err(&at, format!("`{key}` must be an object")))?;
known_keys(o, LAYER_KEYS, &at)?;
let flag = |key: &str, default: bool| -> Result<bool> {
match o.get(key) {
None | Some(Value::Null) => Ok(default),
Some(v) => v.as_bool().ok_or_else(|| out_err(&at, format!("`{key}` must be true or false"))),
}
};
let wrong = || out_err(&at, format!("`objects` must list object indexes in increasing order, each below {count}"));
let indexes = match o.get("objects") {
None | Some(Value::Null) => &[][..],
Some(v) => v.as_array().ok_or_else(wrong)?.as_slice(),
};
let mut objects = Vec::with_capacity(indexes.len().min(count));
for v in indexes {
let k = v.as_u64().and_then(|k| usize::try_from(k).ok()).filter(|k| *k < count).ok_or_else(wrong)?;
if objects.last().is_some_and(|last| *last >= k) {
return Err(wrong());
}
if std::mem::replace(&mut owner[k], true) {
return Err(out_err(&at, format!("object {k} must be in exactly one layer")));
}
objects.push(k);
}
layers.push(OutLayer {
name: name(o, "name", true, &at)?.unwrap_or_default(),
visible: flag("visible", true)?,
locked: flag("locked", false)?,
objects,
});
}
if let Some(k) = owner.iter().position(|owned| !owned) {
return Err(out_err("layers", format!("object {k} must be in exactly one layer")));
}
Ok(layers)
}
/// The `artboards` of the output: 1 to [`MAX_ARTBOARDS`], each named once, their rectangles
/// within ±[`MAX_COORD`].
fn decode_artboards(v: &Value) -> Result<Vec<OutArtboard>> {
let key = "artboards";
let list = entries(v, key, MAX_ARTBOARDS)?;
let mut boards: Vec<OutArtboard> = Vec::with_capacity(list.len());
for (i, a) in list.iter().enumerate() {
let at = format!("artboards[{i}]");
let o = a.as_object().ok_or_else(|| out_err(&at, format!("`{key}` must be an object")))?;
known_keys(o, ARTBOARD_KEYS, &at)?;
let name = name(o, "name", true, &at)?.unwrap_or_default();
if boards.iter().any(|b| b.name == name) {
let shown = printable(&json!(name), 64);
return Err(out_err(&at, format!("artboard name `{shown}` is used twice")));
}
let wrong = || out_err(&at, format!("`rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0"));
let r = o.get("rect").and_then(Value::as_array).filter(|r| r.len() == 4).ok_or_else(wrong)?;
let n: Vec<f64> = r.iter().map(Value::as_f64).collect::<Option<_>>().ok_or_else(wrong)?;
let (x, y, w, h) = (n[0], n[1], n[2], n[3]);
let inside = |v: f64| v.is_finite() && v.abs() <= MAX_COORD;
if !(w > 0.0 && h > 0.0 && inside(x) && inside(y) && inside(x + w) && inside(y + h)) {
return Err(wrong());
}
boards.push(OutArtboard { name, rect: Rect::new(x, y, x + w, y + h) });
}
Ok(boards)
}
/// The list `v`, the output's `key`, of 1 to `max` entries.
fn entries<'a>(v: &'a Value, key: &str, max: usize) -> Result<&'a Vec<Value>> {
let list = v.as_array().ok_or_else(|| Error::Output(format!("`{key}` must be an array")))?;
let n = list.len();
if !(1..=max).contains(&n) {
return Err(Error::Output(format!("`{key}` must hold 1 to {max} entries (it holds {n})")));
}
Ok(list)
}
#[cfg(test)]
@@ -139,8 +564,9 @@ mod tests {
#[test]
fn output_is_the_objects_and_the_warnings_or_a_decline() {
let out = decode(format!(r#"{{"objects":[{SQUARE}],"warnings":["a",2]}}"#).as_bytes()).unwrap();
assert!(out.paths_only());
assert!(out.objects.iter().all(|o| matches!(o, ImportObject::Path(o) if o.id.is_none() && o.path.is_some())));
assert_eq!((out.objects.len(), out.warnings), (1, vec!["a".to_string(), "2".to_string()]));
assert!(out.objects.iter().all(|o| o.id.is_none() && o.path.is_some()));
assert_eq!(decode(format!(r#"{{"objects":[{SQUARE}]}}"#).as_bytes()).unwrap().warnings, Vec::<String>::new());
assert_eq!(decode(br#"{"error": "Not a\nplot file."}"#), Err(Error::Failed("Not aplot file.".into())));
// A decline is reported as one, also with keys the host doesn't read beside it.
@@ -171,6 +597,146 @@ mod tests {
assert!(decode(warns.as_bytes()).unwrap_err().to_string().contains("`warnings`"));
}
const ALL: &[OutputKind] = &OutputKind::ALL;
/// A change made to [`rich`] output.
type Edit = Box<dyn FnOnce(&mut Value)>;
/// Type, an image of 2 × 1 pixels, the square, two layers and two artboards.
fn rich() -> Value {
let pixels = craft_vectorcraft_format::base64::encode(&[255, 0, 0, 255, 0, 0, 255, 128]);
json!({
"objects": [
{"type": "type", "text": "Hello\nWorld", "fontFamily": "Source Sans 3", "fontStyle": "Bold", "fontSize": 24,
"fill": {"type": "solid", "color": {"model": "rgb", "r": 0, "g": 0, "b": 1}}, "transform": [1, 0, 0, 1, 10, 40], "name": "Title"},
{"type": "image", "pixelSize": [2, 1], "pixelsBase64": pixels, "transform": [10, 0, 0, 10, 0, 100]},
serde_json::from_str::<Value>(SQUARE).unwrap(),
],
"layers": [{"name": "Art", "objects": [1, 2]}, {"name": "Words", "visible": false, "locked": true, "objects": [0]}],
"artboards": [{"name": "Front", "rect": [0, 0, 200, 100]}, {"name": "Back", "rect": [220, 0, 200, 100]}],
})
}
fn rich_with(edit: impl FnOnce(&mut Value)) -> Result<Imported> {
let mut v = rich();
edit(&mut v);
decode_with(v.to_string().as_bytes(), ALL)
}
/// An importer listing every output kind returns type, an embedded image, paths, layers and
/// artboards, each read as it was given.
#[test]
fn each_output_kind_is_read_as_given() {
let out = decode_with(rich().to_string().as_bytes(), ALL).unwrap();
assert!(!out.paths_only());
let [ImportObject::Type(t), ImportObject::Image(im), ImportObject::Path(p)] = out.objects.as_slice() else { panic!("{:?}", out.objects) };
assert_eq!(
(t.text.as_str(), t.font_family.as_str(), t.font_style.as_deref(), t.font_size),
("Hello\nWorld", "Source Sans 3", Some("Bold"), 24.0)
);
assert_eq!((t.transform, t.name.as_deref()), (Affine::translate((10.0, 40.0)), Some("Title")));
assert!(matches!(t.fill, Some(Paint::Solid { .. })));
assert_eq!((im.width, im.height, im.rgba.as_slice()), (2, 1, &[255, 0, 0, 255, 0, 0, 255, 128][..]));
assert!(p.path.is_some());
let layers: Vec<_> = out.layers.iter().map(|l| (l.name.as_str(), l.visible, l.locked, l.objects.clone())).collect();
assert_eq!(layers, [("Art", true, false, vec![1, 2]), ("Words", false, true, vec![0])]);
let boards: Vec<_> = out.artboards.iter().map(|a| (a.name.as_str(), a.rect)).collect();
assert_eq!(boards, [("Front", Rect::new(0.0, 0.0, 200.0, 100.0)), ("Back", Rect::new(220.0, 0.0, 420.0, 100.0))]);
// Artboards alone are a blank document.
let blank = decode_with(br#"{"objects":[],"artboards":[{"name":"A","rect":[0,0,10,10]}]}"#, &[OutputKind::Artboard]).unwrap();
assert_eq!((blank.objects.len(), blank.artboards.len()), (0, 1));
}
/// Output of a kind the manifest doesn't list is refused naming the kind; an importer listing
/// none reads paths alone, as before.
#[test]
fn a_kind_not_listed_is_refused_naming_it() {
let v = rich().to_string();
for (kinds, named) in [
(&[OutputKind::Image, OutputKind::Layer, OutputKind::Artboard][..], "`type`"),
(&[OutputKind::Type, OutputKind::Layer, OutputKind::Artboard][..], "`image`"),
(&[OutputKind::Type, OutputKind::Image, OutputKind::Artboard][..], "`layer`"),
(&[OutputKind::Type, OutputKind::Image, OutputKind::Layer][..], "`artboard`"),
] {
let e = decode_with(v.as_bytes(), kinds).unwrap_err().to_string();
assert!(e.contains(named) && e.contains("`outputKinds` doesn't list"), "{named}: {e}");
}
let typed = r#"{"objects":[{"type":"type","text":"a","fontFamily":"x","fontSize":12}]}"#;
assert!(decode(typed.as_bytes()).unwrap_err().to_string().contains("`type` must be \"path\" or \"compound\""));
let layered = format!(r#"{{"objects":[{SQUARE}],"layers":[{{"name":"A","objects":[0]}}]}}"#);
assert!(decode(layered.as_bytes()).unwrap_err().to_string().contains("not `layers`"));
assert!(decode(br#"{"objects":[],"artboards":[]}"#).unwrap_err().to_string().contains("not `artboards`"));
}
/// Each limit refuses the whole output and names the limit.
#[test]
fn each_limit_is_enforced_naming_it() {
let names = |n: usize| (0..n).map(|i| json!({"name": format!("L{i}")})).collect::<Vec<_>>();
let cases: Vec<(Edit, String)> = vec![
(Box::new(move |v: &mut Value| v["layers"] = json!(names(MAX_LAYERS + 1))), format!("1 to {MAX_LAYERS} entries")),
(Box::new(|v: &mut Value| v["layers"] = json!([])), "1 to".into()),
(
Box::new(|v: &mut Value| {
v["artboards"] = json!((0..=MAX_ARTBOARDS).map(|i| json!({"name": format!("A{i}"), "rect": [0, 0, 1, 1]})).collect::<Vec<_>>())
}),
format!("1 to {MAX_ARTBOARDS} entries"),
),
(Box::new(|v: &mut Value| v["objects"][0]["text"] = json!("x".repeat(MAX_TYPE_TEXT + 1))), format!("(limit {MAX_TYPE_TEXT})")),
(
Box::new(|v: &mut Value| v["objects"][1]["pixelSize"] = json!([MAX_IMAGE_SIDE + 1, 1])),
format!("(limit {MAX_IMAGE_SIDE} pixels a side)"),
),
(Box::new(|v: &mut Value| v["objects"][0]["fontSize"] = json!(TYPE_SIZES.1 * 2.0)), "`fontSize` must be between".into()),
(
Box::new(|v: &mut Value| v["objects"][0]["fontFamily"] = json!("f".repeat(MAX_NAME_CHARS + 1))),
format!("1-{MAX_NAME_CHARS} characters"),
),
];
for (edit, says) in cases {
let e = rich_with(edit).unwrap_err().to_string();
assert!(e.contains(&says), "{says}: {e}");
}
// Totals over all type and all images, found from the sizes they give before any pixels are
// decoded: these images carry no pixels at all.
let big = json!({"type": "image", "pixelSize": [MAX_IMAGE_SIDE, MAX_IMAGE_SIDE]});
let e = decode_with(json!({"objects": [big]}).to_string().as_bytes(), ALL).unwrap_err().to_string();
assert!(e.contains(&format!("more than {MAX_PIXEL_BYTES} bytes of pixels")), "{e}");
let text = "t".repeat(MAX_TYPE_TEXT);
let many: Vec<Value> = (0..=MAX_TEXT_TOTAL / MAX_TYPE_TEXT).map(|_| json!({"type": "type", "text": text, "fontSize": 12})).collect();
let e = decode_with(json!({"objects": many}).to_string().as_bytes(), ALL).unwrap_err().to_string();
assert!(e.contains(&format!("more than {MAX_TEXT_TOTAL} bytes of text")), "{e}");
}
/// An image whose bytes aren't 4 × width × height, or aren't base64, is refused; so are names
/// holding control or direction characters, text holding control characters, layers that don't
/// hold each object once in order, and bad artboards.
#[test]
fn malformed_content_is_refused() {
let cases: Vec<(Edit, &str)> = vec![
(Box::new(|v: &mut Value| v["objects"][1]["pixelsBase64"] = json!(craft_vectorcraft_format::base64::encode(&[1, 2, 3, 4]))), "= 8 bytes"),
(Box::new(|v: &mut Value| v["objects"][1]["pixelsBase64"] = json!("!!!!!!!!!!!!")), "= 8 bytes"),
(Box::new(|v: &mut Value| v["objects"][1]["pixelSize"] = json!([0, 1])), "`pixelSize`"),
(Box::new(|v: &mut Value| v["objects"][1]["linked"] = json!(true)), "unknown field `linked`"),
(Box::new(|v: &mut Value| v["objects"][0]["kind"] = json!("area")), "unknown field `kind`"),
(Box::new(|v: &mut Value| v["objects"][0]["text"] = json!("a\u{7}b")), "control characters"),
(Box::new(|v: &mut Value| v["objects"][0]["fill"] = json!({"type": "pattern", "pattern": "p"})), "objects[0]"),
(Box::new(|v: &mut Value| v["objects"][0]["transform"] = json!([0, 0, 0, 0, 0, 0])), "six finite numbers"),
(Box::new(|v: &mut Value| v["layers"][0]["name"] = json!("Art\u{202E}txt")), "text direction characters"),
(Box::new(|v: &mut Value| v["artboards"][0]["name"] = json!("A\u{0}")), "text direction characters"),
(Box::new(|v: &mut Value| v["layers"][0]["objects"] = json!([2, 1])), "increasing order"),
(Box::new(|v: &mut Value| v["layers"][0]["objects"] = json!([0, 1, 2])), "object 0 must be in exactly one layer"),
(Box::new(|v: &mut Value| v["layers"][0]["objects"] = json!([1])), "object 2 must be in exactly one layer"),
(Box::new(|v: &mut Value| v["layers"][0]["objects"] = json!([1, 2, 3])), "each below 3"),
(Box::new(|v: &mut Value| v["artboards"][1]["name"] = json!("Front")), "`Front` is used twice"),
(Box::new(|v: &mut Value| v["artboards"][0]["rect"] = json!([0, 0, 0, 10])), "width and height above 0"),
(Box::new(|v: &mut Value| v["artboards"][0]["rect"] = json!([3_999_999, 0, 10, 10])), "within ±4000000"),
];
for (edit, says) in cases {
let e = rich_with(edit).unwrap_err().to_string();
assert!(e.contains(says), "{says}: {e}");
}
}
#[test]
fn warnings_are_capped_in_number_and_length() {
let many: Vec<String> = (0..crate::export::MAX_WARNINGS + 5).map(|i| format!("w{i}")).collect();
+3 -2
View File
@@ -26,7 +26,8 @@
//! time it is drawn, from an appearance stack, and at `api` 2 may paint what it returns
//! ([`painted`]); an **exporter** ([`export`]) writes the whole
//! document in a file format of its own; an **importer** ([`import`]) reads a file in a format of
//! its own into a new document. The process-wide [`registry`] holds the installed
//! its own into a new document, and at `api` 4 may also return type, embedded images, layers and
//! artboards ([`OutputKind`]). The process-wide [`registry`] holds the installed
//! plug-ins; in [`safe_mode`] none of them loads or runs. A plug-in's parameters ([`manifest`]) come with what the host's dialogs need to show
//! them well: labels, units, groups, help and conditions ([`dialog`]). What a plug-in may do is
//! the set of [`permissions`] its manifest lists, which the user approves when it is installed. A
@@ -52,7 +53,7 @@ pub mod wat;
pub use dialog::ParamUi;
pub use host::{LogLevel, LogLine, Report};
pub use manifest::{Budget, Command, InputKind, Kind, Manifest, Param, ParamSpec};
pub use manifest::{Budget, Command, InputKind, Kind, Manifest, OutputKind, Param, ParamSpec};
pub use runtime::{ABI_VERSION, HEAVY_FUEL, HEAVY_WALL_TIME_MS, LARGE_FUEL, Limits, Plugin, heavy_terms};
#[doc(hidden)]
pub use runtime::{BYTES_COPIED_PER_FUEL, FUEL_SLICE};
+124 -2
View File
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use serde_json::{Map, Value, json};
use crate::dialog::ParamUi;
use crate::permissions::{self, API_LEVEL, INPUTS_API, PROGRESS_API, Permission};
use crate::permissions::{self, API_LEVEL, INPUTS_API, OUTPUT_KINDS_API, PROGRESS_API, Permission};
use crate::{Error, Result};
/// Longest manifest the host reads.
@@ -93,6 +93,41 @@ impl InputKind {
}
}
/// A kind of content an importer may return besides paths and compound paths (its manifest's
/// `outputKinds`, plug-in API level 4). Output holding a kind its manifest doesn't list is refused
/// ([`crate::import::decode_with`]).
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum OutputKind {
/// Point type: its text, font family and style, size and fill.
Type,
/// An embedded image: its size in pixels and its RGBA pixels.
Image,
/// Top-level layers: their names, whether they show and are locked, and the objects each holds.
Layer,
/// Artboards: their names and rectangles.
Artboard,
}
impl OutputKind {
/// Every kind, in the order the docs list them.
pub const ALL: [OutputKind; 4] = [OutputKind::Type, OutputKind::Image, OutputKind::Layer, OutputKind::Artboard];
/// Its name in `outputKinds`. A type or an image object's `type` in the output is this name too.
pub fn name(self) -> &'static str {
match self {
OutputKind::Type => "type",
OutputKind::Image => "image",
OutputKind::Layer => "layer",
OutputKind::Artboard => "artboard",
}
}
/// The kind named `name`.
pub fn parse(name: &str) -> Option<OutputKind> {
OutputKind::ALL.into_iter().find(|k| k.name() == name)
}
}
/// How much one run of a plug-in may compute.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
@@ -326,6 +361,11 @@ pub struct Manifest {
/// lists them. Left out or empty, it is given paths and compound paths alone.
#[serde(default, skip_serializing_if = "Vec::is_empty", deserialize_with = "input_names")]
pub inputs: Vec<String>,
/// The kinds of content an importer returns besides paths and compound paths, by
/// [`OutputKind::name`]: only an importer at `api` 4 or later lists them. Left out or empty, it
/// returns paths and compound paths alone.
#[serde(default, rename = "outputKinds", skip_serializing_if = "Vec::is_empty", deserialize_with = "output_kind_names")]
pub output_kinds: Vec<String>,
/// Parameters in declaration (dialog) order; a JSON object `{"name": spec, …}` in the manifest.
#[serde(default, deserialize_with = "ordered_params", serialize_with = "params_as_object")]
pub params: Vec<(String, Param)>,
@@ -377,6 +417,7 @@ impl Manifest {
api: 1,
permissions: None,
inputs: Vec::new(),
output_kinds: Vec::new(),
params: Vec::new(),
extensions: Vec::new(),
budget: Budget::Light,
@@ -422,6 +463,7 @@ impl Manifest {
return Err(Error::Manifest(format!("permission `{permission}` needs plug-in API level {PROGRESS_API}: give `api` {PROGRESS_API}")));
}
self.validate_inputs()?;
self.validate_output_kinds()?;
if self.paint_output && (self.kind != Kind::Effect || self.api < 2) {
return Err(Error::Manifest("`paintOutput` is only for a live effect (`kind` \"effect\") at `api` 2".into()));
}
@@ -518,6 +560,35 @@ impl Manifest {
Ok(())
}
/// `outputKinds` names each [`OutputKind`] at most once, and only an importer at `api`
/// [`OUTPUT_KINDS_API`] or later lists any.
fn validate_output_kinds(&self) -> Result<()> {
if self.output_kinds.is_empty() {
return Ok(());
}
if self.kind != Kind::Importer {
return Err(Error::Manifest("only an importer declares `outputKinds`".into()));
}
for (i, name) in self.output_kinds.iter().enumerate() {
let shown = permissions::display_text(name, permissions::MAX_SHOWN_FIELD);
if OutputKind::parse(name).is_none() {
return Err(Error::Manifest(format!("`outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard")));
}
if self.output_kinds.get(..i).is_some_and(|before| before.contains(name)) {
return Err(Error::Manifest(format!("`outputKinds` lists `{shown}` twice")));
}
}
if self.api < OUTPUT_KINDS_API {
return Err(Error::Manifest(format!("`outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API}")));
}
Ok(())
}
/// The kinds of content besides paths and compound paths an importer returns (`outputKinds`).
pub fn output_kinds(&self) -> Vec<OutputKind> {
self.output_kinds.iter().filter_map(|n| OutputKind::parse(n)).collect()
}
/// A filter or a live effect lists at most [`MAX_COMMANDS`] commands, each with a distinct
/// id, a printable label and parameters declared as the manifest's own are. A heavy filter
/// lists none. The error names the command: its id, or its place in the list.
@@ -733,6 +804,17 @@ fn input_names<'de, D: serde::Deserializer<'de>>(d: D) -> std::result::Result<Ve
}
}
/// Reads `outputKinds`: a list of names (`null`: none). Anything else is an error that names the
/// key, as [`Manifest::validate_output_kinds`] names a wrong entry.
fn output_kind_names<'de, D: serde::Deserializer<'de>>(d: D) -> std::result::Result<Vec<String>, D::Error> {
let wrong = || serde::de::Error::custom("`outputKinds` must be a list of kinds: type, image, layer or artboard");
match Value::deserialize(d)? {
Value::Null => Ok(Vec::new()),
Value::Array(names) => names.into_iter().map(|n| if let Value::String(s) = n { Ok(s) } else { Err(wrong()) }).collect(),
_ => Err(wrong()),
}
}
/// Reads the `commands` list one entry at a time from the manifest itself, so each command's
/// `params` keep their declaration order and a repeated parameter is refused. A malformed entry
/// is an error that names it (its id when the id comes before the fault, otherwise its place in
@@ -1119,7 +1201,7 @@ mod tests {
(r#"{"id":"a","name":"x","kind":"filter","api":1,"permissions":["progress"]}"#, "`progress` needs plug-in API level 2"),
(r#"{"id":"a","name":"x","kind":"filter","permissions":["settings"]}"#, "`settings` needs plug-in API level 2"),
(r#"{"id":"a","name":"x","kind":"filter","api":1,"permissions":["doc.read","cache"]}"#, "`cache` needs plug-in API level 2"),
(r#"{"id":"a","name":"x","kind":"filter","api":3}"#, "`api` is 3"),
(r#"{"id":"a","name":"x","kind":"filter","api":5}"#, "`api` is 5"),
(r#"{"id":"a","name":"x","kind":"filter","api":0}"#, "`api` is 0"),
(r#"{"id":"a","name":"x","kind":"filter","api":-1}"#, "manifest"),
] {
@@ -1128,6 +1210,46 @@ mod tests {
}
}
/// An importer at `api` 4 lists the kinds it returns besides paths (`outputKinds`), each once;
/// another kind of plug-in, an earlier level, an unknown kind or a repeat is refused naming
/// `outputKinds`. Left out or empty, it lists none and isn't written back.
#[test]
fn an_importer_at_api_4_lists_the_kinds_it_returns() {
let m = Manifest::parse(
br#"{"id":"a","name":"x","kind":"importer","api":4,"extensions":["tst"],"outputKinds":["type","image","layer","artboard"]}"#,
)
.unwrap();
assert_eq!(m.output_kinds(), OutputKind::ALL);
assert_eq!(serde_json::to_value(&m).unwrap()["outputKinds"], json!(["type", "image", "layer", "artboard"]));
assert_eq!(m.permissions(), [Permission::ImportRead]);
for none in [
r#"{"id":"a","name":"x","kind":"importer","extensions":["tst"]}"#,
r#"{"id":"a","name":"x","kind":"importer","api":4,"extensions":["tst"],"outputKinds":[]}"#,
r#"{"id":"a","name":"x","kind":"importer","extensions":["tst"],"outputKinds":null}"#,
] {
let m = Manifest::parse(none.as_bytes()).unwrap();
assert!(m.output_kinds().is_empty(), "{none}");
assert!(serde_json::to_value(&m).unwrap().get("outputKinds").is_none(), "{none}");
}
for (bad, says) in [
(r#"{"id":"a","name":"x","kind":"importer","extensions":["tst"],"outputKinds":["type"]}"#, "`outputKinds` needs plug-in API level 4"),
(r#"{"id":"a","name":"x","kind":"importer","api":2,"extensions":["tst"],"outputKinds":["layer"]}"#, "give `api` 4"),
(r#"{"id":"a","name":"x","kind":"importer","api":3,"extensions":["tst"],"outputKinds":["image"]}"#, "give `api` 4"),
(r#"{"id":"a","name":"x","kind":"filter","api":4,"outputKinds":["type"]}"#, "only an importer declares `outputKinds`"),
(
r#"{"id":"a","name":"x","kind":"exporter","api":4,"extensions":["tst"],"outputKinds":["image"]}"#,
"only an importer declares `outputKinds`",
),
(r#"{"id":"a","name":"x","kind":"importer","api":4,"extensions":["tst"],"outputKinds":["text"]}"#, "unknown kind `text`"),
(r#"{"id":"a","name":"x","kind":"importer","api":4,"extensions":["tst"],"outputKinds":["image","image"]}"#, "lists `image` twice"),
(r#"{"id":"a","name":"x","kind":"importer","api":4,"extensions":["tst"],"outputKinds":"type"}"#, "`outputKinds` must be a list"),
(r#"{"id":"a","name":"x","kind":"importer","api":4,"extensions":["tst"],"outputKinds":[1]}"#, "`outputKinds` must be a list"),
] {
let e = Manifest::parse(bad.as_bytes()).unwrap_err().to_string();
assert!(e.contains(says), "{bad}: {e}");
}
}
/// A filter at `api` 2 may ask for type, images and symbol instances (`inputs`), each kind once,
/// with a `permissions` list holding `doc.read`, so installing it asks for approval. Left out
/// or empty, it asks for none and isn't written back. Anything else is refused naming `inputs`.
+18 -3
View File
@@ -596,7 +596,7 @@ pub(crate) fn clamp_color(c: Color) -> Color {
/// A paint from plug-in output (`null`: none), with colors, process plates, opacities and
/// offsets clamped and gradient and pattern placements checked.
fn decode_paint(v: &Value, at: &str) -> Result<Paint> {
pub(crate) fn decode_paint(v: &Value, at: &str) -> Result<Paint> {
if v.is_null() {
return Ok(Paint::None);
}
@@ -677,7 +677,7 @@ fn opt<'a>(o: &'a serde_json::Map<String, Value>, key: &str) -> Option<&'a Value
/// Object `v` of a plug-in's output (`at` names it in errors), its anchors added to `anchors` and
/// held to [`MAX_ANCHORS`]: each key it has checked, numbers clamped into range, as [`decode`] reads
/// them.
fn decode_object(v: &Value, at: &str, anchors: &mut usize) -> Result<OutObject> {
pub(crate) fn decode_object(v: &Value, at: &str, anchors: &mut usize) -> Result<OutObject> {
let o = v.as_object().ok_or_else(|| out_err(at, "an object must be a JSON object"))?;
let mut out = OutObject::default();
if let Some(id) = opt(o, "id") {
@@ -953,7 +953,7 @@ fn paints(ap: &Appearance, fill: bool) -> Vec<&Paint> {
/// `p` without swatch links: a plug-in's colours are its own, so only paints it returned
/// unchanged keep theirs. A gradient stop also loses its process plates, which print only with
/// a spot swatch.
fn unlinked(mut p: Paint) -> Paint {
pub(crate) fn unlinked(mut p: Paint) -> Paint {
match &mut p {
Paint::Solid { swatch, tint, .. } => {
*swatch = None;
@@ -1225,6 +1225,21 @@ impl Plan {
}
}
/// New object `o` of a plug-in's output (`at` names it in errors) as a node of `doc`, not yet in it:
/// a path or a compound path made as [`apply_output`] makes one, its effects admitted by `admit`.
/// An object with an `id` or without a `path` is an error.
pub fn new_object(doc: &mut Document, o: OutObject, at: &str, admit: AdmitEffects) -> Result<Node> {
if let Some(id) = o.id {
return Err(out_err(at, format!("{} is not the id of an input object", id.0)));
}
if o.path.is_none() {
return Err(out_err(at, "a new object needs a `path`"));
}
let mut n = Node::path(doc.alloc_id(), PathData::default(), Appearance::default());
write(doc, &mut n, o, at, admit)?;
Ok(n)
}
/// Applies an object filter's output to `doc`.
///
/// `inputs` are the objects the plug-in was given, in paint order ([`filter_targets`]). Output
+6 -2
View File
@@ -15,8 +15,12 @@ use crate::{Error, Kind, Result};
/// The plug-in API level this host implements. A manifest's `api` (1 when left out) may be at most
/// this. Level 2 adds the host imports ([`PROGRESS_API`]) and a live effect's `paintOutput`
/// ([`crate::painted`]).
pub const API_LEVEL: u32 = 2;
/// ([`crate::painted`]). Level 4 adds an importer's `outputKinds` ([`OUTPUT_KINDS_API`]).
pub const API_LEVEL: u32 = 4;
/// The API level that adds an importer's `outputKinds` ([`crate::OutputKind`]): type, embedded
/// images, layers and artboards in what it returns ([`crate::import`]).
pub const OUTPUT_KINDS_API: u32 = 4;
/// The API level that adds the host imports ([`crate::host::IMPORTS`]) and the `progress`,
/// `settings`, `cache` and `commands` permissions they need.
+1
View File
@@ -714,6 +714,7 @@ impl PluginIntField {
api: 1,
permissions: None,
inputs: Vec::new(),
output_kinds: Vec::new(),
params: vec![("seed".into(), vectorcraft_plugins::ParamSpec::Int { min, max, default: 0 }.into())],
extensions: Vec::new(),
budget: Default::default(),
+21
View File
@@ -8663,6 +8663,27 @@ breakText Glyphs Glifs
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` és un efecte dinàmic: apliqueu-lo amb effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects l’importador no ha retornat cap objecte
@msg an importer returns `objects` and `warnings`, not `{key}` un importador retorna `objects` i `warnings`, no `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` ha d’indicar índexs d’objectes en ordre creixent, cadascun menor que {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` inclou `{shown}` dues vegades
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` indica un tipus desconegut `{shown}`: feu servir type, image, layer o artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` requereix el nivell d’API de complements {OUTPUT_KINDS_API}: indiqueu `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` ha de ser [width, height]: dos nombres enters de l’1 al {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` ha de contenir 4 × amplada × alçada = {want} bytes en base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` ha de ser [x, y, width, height]: nombres finits dins de ±{MAX_COORD}, amb amplada i alçada més grans que 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` fa {len} bytes (límit {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` no pot contenir caràcters de control llevat de salts de línia i tabulacions
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` ha de tenir 1-{MAX_NAME_CHARS} caràcters, sense caràcters de control ni de direcció del text
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` han de ser sis nombres finits dins de ±{MAX_COORD} que no aplanin l’objecte
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` ha de contenir d’1 a {max} entrades (en conté {n})
@msg a type fill must be a color or a gradient l’emplenament d’un text ha de ser un color o un degradat
@msg artboard name `{shown}` is used twice el nom de tauler `{shown}` s’utilitza dues vegades
@msg object {k} must be in exactly one layer l’objecte {k} ha de ser exactament en una capa
@msg only an importer declares `outputKinds` només un importador declara `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels les imatges contenen més de {MAX_PIXEL_BYTES} bytes de píxels
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list la sortida conté `{kind}`, que `outputKinds` de l’importador no inclou
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text el text conté més de {MAX_TEXT_TOTAL} bytes
@msg unknown field `{key}` camp desconegut `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} píxels (límit de {MAX_IMAGE_SIDE} píxels per costat)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads el fitxer supera els {MAX_INPUT_BYTES} bytes que llegeix un importador
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` un importador declara d’1 a {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` només un exportador o un importador declara `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8644,6 +8644,27 @@ breakText Glyphs Glyfy
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` je živý efekt: použijte ho pomocí effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects importní zásuvný modul nevrátil žádné objekty
@msg an importer returns `objects` and `warnings`, not `{key}` importní zásuvný modul vrací `objects` a `warnings`, ne `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` musí uvádět indexy objektů ve vzestupném pořadí, každý menší než {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` uvádí `{shown}` dvakrát
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` uvádí neznámý druh `{shown}`: použijte type, image, layer nebo artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` vyžaduje úroveň API zásuvných modulů {OUTPUT_KINDS_API}: zadejte `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` musí být [width, height]: dvě celá čísla od 1 do {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` musí obsahovat 4 × šířka × výška = {want} bajtů v kódování base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` musí být [x, y, width, height]: konečná čísla v rozsahu ±{MAX_COORD}, šířka a výška větší než 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` má {len} bajtů (limit {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` nesmí obsahovat jiné řídicí znaky než zalomení řádků a tabulátory
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` musí mít 1-{MAX_NAME_CHARS} znaků, bez řídicích znaků a znaků směru textu
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` musí být šest konečných čísel v rozsahu ±{MAX_COORD}, která objekt nezploští
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` musí obsahovat 1 až {max} položek (obsahuje {n})
@msg a type fill must be a color or a gradient výplň textu musí být barva nebo přechod
@msg artboard name `{shown}` is used twice název pracovní plochy `{shown}` je použit dvakrát
@msg object {k} must be in exactly one layer objekt {k} musí být právě v jedné vrstvě
@msg only an importer declares `outputKinds` `outputKinds` deklaruje pouze importní zásuvný modul
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels obrazy obsahují více než {MAX_PIXEL_BYTES} bajtů pixelů
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list výstup obsahuje `{kind}`, který `outputKinds` importního zásuvného modulu neuvádí
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text text obsahuje více než {MAX_TEXT_TOTAL} bajtů
@msg unknown field `{key}` neznámé pole `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixelů (limit {MAX_IMAGE_SIDE} pixelů na stranu)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads soubor je větší než {MAX_INPUT_BYTES} bajtů, které importní zásuvný modul čte
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` importní zásuvný modul deklaruje 1 až {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` `extensions` deklaruje jen exportní nebo importní zásuvný modul
Can't render this file because it is too large.
+21
View File
@@ -767,6 +767,27 @@ liquify-list-end {0}, {1} {0} og {1}
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` er en live-effekt: anvend den med effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects importøren returnerede ingen objekter
@msg an importer returns `objects` and `warnings`, not `{key}` en importør returnerer `objects` og `warnings`, ikke `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` skal angive objektindeks i stigende rækkefølge, hvert mindre end {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` angiver `{shown}` to gange
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` angiver en ukendt type `{shown}`: brug type, image, layer eller artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` kræver plug-in-API-niveau {OUTPUT_KINDS_API}: angiv `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` skal være [width, height]: to heltal fra 1 til {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` skal indeholde 4 × bredde × højde = {want} byte som base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` skal være [x, y, width, height]: endelige tal inden for ±{MAX_COORD}, bredde og højde over 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` er {len} byte (grænse {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` må ikke indeholde andre kontroltegn end linjeskift og tabulatorer
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` skal være 1-{MAX_NAME_CHARS} tegn uden kontroltegn eller tegn for tekstretning
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` skal være seks endelige tal inden for ±{MAX_COORD}, som ikke gør objektet fladt
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` skal indeholde 1 til {max} poster (indeholder {n})
@msg a type fill must be a color or a gradient en tekstudfyldning skal være en farve eller en gradient
@msg artboard name `{shown}` is used twice tegnefladenavnet `{shown}` bruges to gange
@msg object {k} must be in exactly one layer objekt {k} skal ligge i præcis ét lag
@msg only an importer declares `outputKinds` kun en importør angiver `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels billederne indeholder mere end {MAX_PIXEL_BYTES} byte pixels
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list outputtet indeholder `{kind}`, som importørens `outputKinds` ikke angiver
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text teksten indeholder mere end {MAX_TEXT_TOTAL} byte
@msg unknown field `{key}` ukendt felt `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixel (grænse {MAX_IMAGE_SIDE} pixel pr. side)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads filen er større end de {MAX_INPUT_BYTES} byte, en importør læser
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` en importør angiver 1 til {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` kun en eksportør eller en importør angiver `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8269,6 +8269,27 @@ breakText Glyphs Glyphen
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` ist ein Live-Effekt: Wenden Sie ihn mit effect.apply {{"effect": "{_2}"}} an
@msg the importer returned no objects das Import-Plug-in hat keine Objekte zurückgegeben
@msg an importer returns `objects` and `warnings`, not `{key}` ein Import-Plug-in gibt `objects` und `warnings` zurück, nicht `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` muss Objektindizes in aufsteigender Reihenfolge aufführen, jeder kleiner als {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` führt `{shown}` doppelt auf
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` nennt eine unbekannte Art `{shown}`: verwenden Sie type, image, layer oder artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` erfordert Plug-in-API-Stufe {OUTPUT_KINDS_API}: geben Sie `api` {OUTPUT_KINDS_API} an
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` muss [width, height] sein: zwei ganze Zahlen von 1 bis {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` muss 4 × Breite × Höhe = {want} Byte als Base64 enthalten
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` muss [x, y, width, height] sein: endliche Zahlen innerhalb von ±{MAX_COORD}, Breite und Höhe größer als 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` ist {len} Byte groß (Grenze {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` darf außer Zeilenumbrüchen und Tabulatoren keine Steuerzeichen enthalten
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` muss 1-{MAX_NAME_CHARS} Zeichen lang sein, ohne Steuerzeichen oder Textrichtungszeichen
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` müssen sechs endliche Zahlen innerhalb von ±{MAX_COORD} sein, die das Objekt nicht flach drücken
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` muss 1 bis {max} Einträge enthalten (enthält {n})
@msg a type fill must be a color or a gradient eine Textfläche muss eine Farbe oder ein Verlauf sein
@msg artboard name `{shown}` is used twice der Zeichenflächenname `{shown}` wird doppelt verwendet
@msg object {k} must be in exactly one layer Objekt {k} muss in genau einer Ebene liegen
@msg only an importer declares `outputKinds` nur ein Import-Plug-in deklariert `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels die Bilder enthalten mehr als {MAX_PIXEL_BYTES} Byte Pixel
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list die Ausgabe enthält `{kind}`, das `outputKinds` des Import-Plug-ins nicht aufführt
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text der Text enthält mehr als {MAX_TEXT_TOTAL} Byte
@msg unknown field `{key}` unbekanntes Feld `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} Pixel (Grenze {MAX_IMAGE_SIDE} Pixel je Seite)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads die Datei ist größer als die {MAX_INPUT_BYTES} Byte, die ein Import-Plug-in liest
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` ein Import-Plug-in gibt 1 bis {MAX_EXTENSIONS} `extensions` an
@msg only an exporter or an importer declares `extensions` nur ein Export- oder Import-Plug-in gibt `extensions` an
Can't render this file because it is too large.
+21
View File
@@ -8635,6 +8635,27 @@ breakText Glyphs Γλύφοι
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} το `{_1}` είναι δυναμικό εφέ: εφαρμόστε το με effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects το πρόσθετο εισαγωγής δεν επέστρεψε κανένα αντικείμενο
@msg an importer returns `objects` and `warnings`, not `{key}` ένα πρόσθετο εισαγωγής επιστρέφει `objects` και `warnings`, όχι `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} το `objects` πρέπει να αναφέρει δείκτες αντικειμένων σε αύξουσα σειρά, ο καθένας μικρότερος από {count}
@msg `outputKinds` lists `{shown}` twice το `outputKinds` αναφέρει το `{shown}` δύο φορές
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard το `outputKinds` ορίζει άγνωστο είδος `{shown}`: χρησιμοποιήστε type, image, layer ή artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} το `outputKinds` απαιτεί επίπεδο API προσθέτων {OUTPUT_KINDS_API}: δώστε `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} το `pixelSize` πρέπει να είναι [width, height]: δύο ακέραιοι από 1 έως {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 το `pixelsBase64` πρέπει να περιέχει 4 × πλάτος × ύψος = {want} byte σε base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 το `rect` πρέπει να είναι [x, y, width, height]: πεπερασμένοι αριθμοί εντός ±{MAX_COORD}, πλάτος και ύψος πάνω από 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) το `text` είναι {len} byte (όριο {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs το `text` δεν πρέπει να περιέχει χαρακτήρες ελέγχου εκτός από αλλαγές γραμμής και στηλοθέτες
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters το `{key}` πρέπει να έχει 1-{MAX_NAME_CHARS} χαρακτήρες, χωρίς χαρακτήρες ελέγχου ή κατεύθυνσης κειμένου
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object το `{key}` πρέπει να είναι έξι πεπερασμένοι αριθμοί εντός ±{MAX_COORD} που δεν ισοπεδώνουν το αντικείμενο
@msg `{key}` must hold 1 to {max} entries (it holds {n}) το `{key}` πρέπει να περιέχει 1 έως {max} καταχωρίσεις (περιέχει {n})
@msg a type fill must be a color or a gradient το γέμισμα κειμένου πρέπει να είναι χρώμα ή ντεγκραντέ
@msg artboard name `{shown}` is used twice το όνομα πίνακα σχεδίασης `{shown}` χρησιμοποιείται δύο φορές
@msg object {k} must be in exactly one layer το αντικείμενο {k} πρέπει να βρίσκεται σε ακριβώς ένα επίπεδο
@msg only an importer declares `outputKinds` μόνο ένα πρόσθετο εισαγωγής δηλώνει `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels οι εικόνες περιέχουν περισσότερα από {MAX_PIXEL_BYTES} byte εικονοστοιχείων
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list η έξοδος περιέχει `{kind}`, που δεν αναφέρεται στο `outputKinds` του προσθέτου εισαγωγής
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text το κείμενο περιέχει περισσότερα από {MAX_TEXT_TOTAL} byte
@msg unknown field `{key}` άγνωστο πεδίο `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} εικονοστοιχεία (όριο {MAX_IMAGE_SIDE} εικονοστοιχεία ανά πλευρά)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads το αρχείο είναι μεγαλύτερο από τα {MAX_INPUT_BYTES} byte που διαβάζει ένα πρόσθετο εισαγωγής
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` ένα πρόσθετο εισαγωγής δηλώνει 1 έως {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` μόνο ένα πρόσθετο εξαγωγής ή εισαγωγής δηλώνει `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8621,6 +8621,27 @@ breakText Glyphs Glifos
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` es un efecto interactivo: aplíquelo con effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects el plugin de importación no devolvió ningún objeto
@msg an importer returns `objects` and `warnings`, not `{key}` un plugin de importación devuelve `objects` y `warnings`, no `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` debe incluir índices de objetos en orden creciente, cada uno menor que {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` incluye `{shown}` dos veces
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` nombra un tipo desconocido `{shown}`: use type, image, layer o artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` requiere el nivel de API de plugins {OUTPUT_KINDS_API}: indique `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` debe ser [width, height]: dos números enteros de 1 a {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` debe contener 4 × ancho × alto = {want} bytes en base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` debe ser [x, y, width, height]: números finitos dentro de ±{MAX_COORD}, con ancho y alto mayores que 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` tiene {len} bytes (límite {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` no debe contener caracteres de control salvo saltos de línea y tabulaciones
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` debe tener 1-{MAX_NAME_CHARS} caracteres, sin caracteres de control ni de dirección del texto
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` debe ser seis números finitos dentro de ±{MAX_COORD} que no aplanen el objeto
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` debe contener de 1 a {max} entradas (contiene {n})
@msg a type fill must be a color or a gradient el relleno de un texto debe ser un color o un degradado
@msg artboard name `{shown}` is used twice el nombre de mesa de trabajo `{shown}` se usa dos veces
@msg object {k} must be in exactly one layer el objeto {k} debe estar en exactamente una capa
@msg only an importer declares `outputKinds` solo un plugin de importación declara `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels las imágenes contienen más de {MAX_PIXEL_BYTES} bytes de píxeles
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list la salida contiene `{kind}`, que `outputKinds` del plugin de importación no incluye
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text el texto contiene más de {MAX_TEXT_TOTAL} bytes
@msg unknown field `{key}` campo desconocido `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} píxeles (límite {MAX_IMAGE_SIDE} píxeles por lado)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads el archivo supera los {MAX_INPUT_BYTES} bytes que lee un plugin de importación
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` un plugin de importación declara de 1 a {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` solo un plugin de exportación o de importación declara `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8716,6 +8716,27 @@ breakText Glyphs Merkit
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` on live-tehoste: käytä sitä komennolla effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects tuontilaajennus ei palauttanut objekteja
@msg an importer returns `objects` and `warnings`, not `{key}` tuontilaajennus palauttaa `objects` ja `warnings`, ei `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects`-avaimessa on lueteltava objektien indeksit nousevassa järjestyksessä, jokainen pienempi kuin {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` luettelee kohteen `{shown}` kahdesti
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` nimeää tuntemattoman lajin `{shown}`: käytä arvoa type, image, layer tai artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` edellyttää laajennus-API:n tasoa {OUTPUT_KINDS_API}: anna `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` on oltava [width, height]: kaksi kokonaislukua väliltä 1-{MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` on sisällettävä 4 × leveys × korkeus = {want} tavua base64-muodossa
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` on oltava [x, y, width, height]: äärellisiä lukuja välillä ±{MAX_COORD}, leveys ja korkeus yli 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` on {len} tavua (raja {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` ei saa sisältää muita ohjausmerkkejä kuin rivinvaihtoja ja sarkaimia
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` on oltava 1-{MAX_NAME_CHARS} merkkiä ilman ohjausmerkkejä tai tekstin suunnan merkkejä
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` on oltava kuusi äärellistä lukua välillä ±{MAX_COORD}, jotka eivät litistä objektia
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` on sisällettävä 1-{max} merkintää (siinä on {n})
@msg a type fill must be a color or a gradient tekstin täytön on oltava väri tai liukuväri
@msg artboard name `{shown}` is used twice piirtoalustan nimeä `{shown}` käytetään kahdesti
@msg object {k} must be in exactly one layer objektin {k} on oltava täsmälleen yhdellä tasolla
@msg only an importer declares `outputKinds` vain tuontilaajennus voi määrittää `outputKinds`-avaimen
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels kuvissa on yli {MAX_PIXEL_BYTES} tavua pikseleitä
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list tuloste sisältää lajin `{kind}`, jota tuontilaajennuksen `outputKinds` ei luettele
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text tekstissä on yli {MAX_TEXT_TOTAL} tavua
@msg unknown field `{key}` tuntematon kenttä `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pikseliä (raja {MAX_IMAGE_SIDE} pikseliä sivua kohden)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads tiedosto on suurempi kuin tuontilaajennuksen lukemat {MAX_INPUT_BYTES} tavua
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` tuontilaajennus ilmoittaa 1–{MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` vain vienti- tai tuontilaajennus ilmoittaa `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8640,6 +8640,27 @@ breakText Glyphs Glyphes
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` est un effet dynamique : appliquez-le avec effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects le module externe d’importation n’a renvoyé aucun objet
@msg an importer returns `objects` and `warnings`, not `{key}` un module externe d’importation renvoie `objects` et `warnings`, pas `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` doit indiquer des indices d’objets dans l’ordre croissant, chacun inférieur à {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` mentionne `{shown}` deux fois
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` indique un type inconnu `{shown}`. Utilisez type, image, layer ou artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` nécessite le niveau d’API de module externe {OUTPUT_KINDS_API}. Indiquez `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` doit être [width, height], soit deux nombres entiers de 1 à {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` doit contenir 4 × largeur × hauteur = {want} octets en base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` doit être [x, y, width, height], soit des nombres finis compris dans ±{MAX_COORD}, largeur et hauteur supérieures à 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` fait {len} octets (limite {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` ne doit contenir aucun caractère de contrôle autre que des sauts de ligne et des tabulations
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` doit compter 1-{MAX_NAME_CHARS} caractères, sans caractère de contrôle ni de sens du texte
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` doit être six nombres finis compris dans ±{MAX_COORD} qui n’aplatissent pas l’objet
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` doit contenir de 1 à {max} entrées (il en contient {n})
@msg a type fill must be a color or a gradient le fond d’un texte doit être une couleur ou un dégradé
@msg artboard name `{shown}` is used twice le nom de plan de travail `{shown}` est utilisé deux fois
@msg object {k} must be in exactly one layer l’objet {k} doit se trouver dans un seul calque
@msg only an importer declares `outputKinds` seul un module externe d’importation déclare `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels les images contiennent plus de {MAX_PIXEL_BYTES} octets de pixels
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list la sortie contient `{kind}`, que `outputKinds` du module externe d’importation ne mentionne pas
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text le texte contient plus de {MAX_TEXT_TOTAL} octets
@msg unknown field `{key}` champ inconnu `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixels (limite {MAX_IMAGE_SIDE} pixels par côté)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads le fichier dépasse les {MAX_INPUT_BYTES} octets qu’un module externe d’importation lit
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` un module externe d’importation déclare de 1 à {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` seul un module externe d’exportation ou d’importation déclare `extensions`
Can't render this file because it is too large.
+21
View File
@@ -10101,6 +10101,27 @@ theme Appearance अपीयरेंस
@msg `{_1}` is an importer: open a file with document.open {{"importer": "{_2}"}} `{_1}` एक इंपोर्टर है: document.open {{"importer": "{_2}"}} से फ़ाइल खोलें
@msg the importer returned no objects इंपोर्टर ने कोई ऑब्जेक्ट नहीं लौटाया
@msg an importer returns `objects` and `warnings`, not `{key}` इंपोर्टर `objects` और `warnings` लौटाता है, `{key}` नहीं
@msg `objects` must list object indexes in increasing order, each below {count} `objects` में ऑब्जेक्ट इंडेक्स बढ़ते क्रम में होने चाहिए, हर एक {count} से कम
@msg `outputKinds` lists `{shown}` twice `outputKinds` में `{shown}` दो बार सूचीबद्ध है
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` में अज्ञात प्रकार `{shown}` है: type, image, layer या artboard का उपयोग करें
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` के लिए प्लग-इन API स्तर {OUTPUT_KINDS_API} आवश्यक है: `api` {OUTPUT_KINDS_API} दें
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` [width, height] होना चाहिए: 1 से {MAX_IMAGE_SIDE} तक की दो पूर्ण संख्याएँ
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` में base64 के रूप में 4 × चौड़ाई × ऊँचाई = {want} बाइट होने चाहिए
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` [x, y, width, height] होना चाहिए: ±{MAX_COORD} के भीतर सीमित संख्याएँ, चौड़ाई और ऊँचाई 0 से अधिक
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` {len} बाइट का है (सीमा {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` में लाइन ब्रेक और टैब के अलावा कोई नियंत्रण वर्ण नहीं होना चाहिए
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` में 1-{MAX_NAME_CHARS} वर्ण होने चाहिए, नियंत्रण या टेक्स्ट दिशा वर्णों के बिना
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` ±{MAX_COORD} के भीतर छह सीमित संख्याएँ होनी चाहिए जो ऑब्जेक्ट को चपटा न करें
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` में 1 से {max} प्रविष्टियाँ होनी चाहिए (इसमें {n} हैं)
@msg a type fill must be a color or a gradient टेक्स्ट का फ़िल रंग या ग्रेडिएंट होना चाहिए
@msg artboard name `{shown}` is used twice आर्टबोर्ड नाम `{shown}` दो बार उपयोग हुआ है
@msg object {k} must be in exactly one layer ऑब्जेक्ट {k} ठीक एक लेयर में होना चाहिए
@msg only an importer declares `outputKinds` केवल इंपोर्टर `outputKinds` घोषित करता है
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels इमेज में {MAX_PIXEL_BYTES} बाइट से अधिक पिक्सेल हैं
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list आउटपुट में `{kind}` है, जिसे इंपोर्टर का `outputKinds` सूचीबद्ध नहीं करता
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text टेक्स्ट में {MAX_TEXT_TOTAL} बाइट से अधिक है
@msg unknown field `{key}` अज्ञात फ़ील्ड `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} पिक्सेल (हर तरफ़ सीमा {MAX_IMAGE_SIDE} पिक्सेल)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads फ़ाइल उन {MAX_INPUT_BYTES} बाइट्स से बड़ी है जो इंपोर्टर पढ़ता है
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` इंपोर्टर 1 से {MAX_EXTENSIONS} `extensions` घोषित करता है
@msg an importer always gets an import's budget: leave `budget` out इंपोर्टर को हमेशा इंपोर्ट का बजट मिलता है: `budget` छोड़ दें
Can't render this file because it is too large.
+21
View File
@@ -8630,6 +8630,27 @@ breakText Glyphs Glifák
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` élő effektus: alkalmazza az effect.apply {{"effect": "{_2}"}} paranccsal
@msg the importer returned no objects az importáló bővítmény nem adott vissza objektumot
@msg an importer returns `objects` and `warnings`, not `{key}` az importáló bővítmény `objects` és `warnings` értéket ad vissza, nem `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} az `objects` kulcsnak objektumindexeket kell felsorolnia növekvő sorrendben, mindegyik kisebb, mint {count}
@msg `outputKinds` lists `{shown}` twice az `outputKinds` kétszer sorolja fel ezt: `{shown}`
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard az `outputKinds` ismeretlen fajtát ad meg: `{shown}`; használja ezeket: type, image, layer vagy artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} az `outputKinds` használatához {OUTPUT_KINDS_API}. szintű bővítmény-API szükséges: adja meg az `api` {OUTPUT_KINDS_API} értéket
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} a `pixelSize` értéke [width, height] kell legyen: két egész szám 1 és {MAX_IMAGE_SIDE} között
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 a `pixelsBase64` értéknek 4 × szélesség × magasság = {want} bájtot kell tartalmaznia base64 formában
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 a `rect` értéke [x, y, width, height] kell legyen: véges számok ±{MAX_COORD} tartományban, 0-nál nagyobb szélességgel és magassággal
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) a `text` {len} bájt (korlát: {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs a `text` nem tartalmazhat vezérlőkaraktert a sortöréseken és tabulátorokon kívül
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}`: 1-{MAX_NAME_CHARS} karakter kell, vezérlő- és szövegirány-karakterek nélkül
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}`: hat véges szám kell ±{MAX_COORD} tartományban, amely nem lapítja el az objektumot
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}`: 1 és {max} közötti számú bejegyzés kell (jelenleg {n})
@msg a type fill must be a color or a gradient a szöveg kitöltése szín vagy színátmenet lehet
@msg artboard name `{shown}` is used twice a(z) `{shown}` rajztáblanév kétszer szerepel
@msg object {k} must be in exactly one layer a(z) {k}. objektumnak pontosan egy rétegben kell lennie
@msg only an importer declares `outputKinds` `outputKinds` kulcsot csak importáló bővítmény adhat meg
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels a képek több mint {MAX_PIXEL_BYTES} bájtnyi képpontot tartalmaznak
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list a kimenet `{kind}` tartalmat hordoz, amelyet az importáló bővítmény `outputKinds` kulcsa nem sorol fel
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text a szöveg több mint {MAX_TEXT_TOTAL} bájt
@msg unknown field `{key}` ismeretlen mező: `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} képpont (oldalanként legfeljebb {MAX_IMAGE_SIDE} képpont)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads a fájl nagyobb annál a {MAX_INPUT_BYTES} bájtnál, amit egy importáló bővítmény beolvas
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` az importáló bővítmény 1–{MAX_EXTENSIONS} `extensions` értéket ad meg
@msg only an exporter or an importer declares `extensions` csak exportáló vagy importáló bővítmény adhat meg `extensions` értéket
Can't render this file because it is too large.
+21
View File
@@ -648,6 +648,27 @@
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` adalah efek langsung: terapkan dengan effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects pengimpor tidak mengembalikan objek apa pun
@msg an importer returns `objects` and `warnings`, not `{key}` pengimpor mengembalikan `objects` dan `warnings`, bukan `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` harus mencantumkan indeks objek dalam urutan naik, masing-masing kurang dari {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` mencantumkan `{shown}` dua kali
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` menyebut jenis yang tidak dikenal `{shown}`: gunakan type, image, layer, atau artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` memerlukan API plug-in tingkat {OUTPUT_KINDS_API}: berikan `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` harus berupa [width, height]: dua bilangan bulat dari 1 sampai {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` harus berisi 4 × lebar × tinggi = {want} byte dalam base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` harus berupa [x, y, width, height]: bilangan hingga dalam ±{MAX_COORD}, lebar dan tinggi di atas 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` berukuran {len} byte (batas {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` tidak boleh berisi karakter kontrol selain pemisah baris dan tab
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` harus terdiri dari 1-{MAX_NAME_CHARS} karakter, tanpa karakter kontrol atau karakter arah teks
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` harus berupa enam bilangan hingga dalam ±{MAX_COORD} yang tidak memipihkan objek
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` harus berisi 1 sampai {max} entri (berisi {n})
@msg a type fill must be a color or a gradient isian teks harus berupa warna atau gradien
@msg artboard name `{shown}` is used twice nama artboard `{shown}` digunakan dua kali
@msg object {k} must be in exactly one layer objek {k} harus berada di tepat satu lapisan
@msg only an importer declares `outputKinds` hanya pengimpor yang mendeklarasikan `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels gambar berisi lebih dari {MAX_PIXEL_BYTES} byte piksel
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list keluaran berisi `{kind}`, yang tidak dicantumkan oleh `outputKinds` pengimpor
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text teks berisi lebih dari {MAX_TEXT_TOTAL} byte
@msg unknown field `{key}` bidang tidak dikenal `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} piksel (batas {MAX_IMAGE_SIDE} piksel per sisi)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads berkas lebih besar dari {MAX_INPUT_BYTES} byte yang dibaca pengimpor
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` pengimpor mendeklarasikan 1 sampai {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` hanya pengekspor atau pengimpor yang mendeklarasikan `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8307,6 +8307,27 @@ breakText Glyphs Glifi
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` è un effetto dinamico: applicalo con effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects il plug-in di importazione non ha restituito alcun oggetto
@msg an importer returns `objects` and `warnings`, not `{key}` un plug-in di importazione restituisce `objects` e `warnings`, non `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` deve elencare indici di oggetti in ordine crescente, ciascuno minore di {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` elenca `{shown}` due volte
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` indica un tipo sconosciuto `{shown}`: usa type, image, layer o artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` richiede il livello API dei plug-in {OUTPUT_KINDS_API}: indica `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` deve essere [width, height]: due numeri interi da 1 a {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` deve contenere 4 × larghezza × altezza = {want} byte in base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` deve essere [x, y, width, height]: numeri finiti entro ±{MAX_COORD}, con larghezza e altezza maggiori di 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` è di {len} byte (limite {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` non deve contenere caratteri di controllo diversi da interruzioni di riga e tabulazioni
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` deve avere 1-{MAX_NAME_CHARS} caratteri, senza caratteri di controllo o di direzione del testo
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` deve essere sei numeri finiti entro ±{MAX_COORD} che non appiattiscano l’oggetto
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` deve contenere da 1 a {max} voci (ne contiene {n})
@msg a type fill must be a color or a gradient il riempimento di un testo deve essere un colore o una sfumatura
@msg artboard name `{shown}` is used twice il nome di tavola da disegno `{shown}` è usato due volte
@msg object {k} must be in exactly one layer l’oggetto {k} deve trovarsi in un solo livello
@msg only an importer declares `outputKinds` solo un plug-in di importazione dichiara `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels le immagini contengono più di {MAX_PIXEL_BYTES} byte di pixel
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list l’output contiene `{kind}`, che `outputKinds` del plug-in di importazione non elenca
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text il testo contiene più di {MAX_TEXT_TOTAL} byte
@msg unknown field `{key}` campo sconosciuto `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixel (limite {MAX_IMAGE_SIDE} pixel per lato)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads il file supera i {MAX_INPUT_BYTES} byte che un plug-in di importazione legge
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` un plug-in di importazione dichiara da 1 a {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` solo un plug-in di esportazione o di importazione dichiara `extensions`
Can't render this file because it is too large.
+21
View File
@@ -10196,6 +10196,27 @@ breakText Glyphs 字形
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` はライブ効果です: effect.apply {{"effect": "{_2}"}} で適用してください
@msg the importer returned no objects 読み込みプラグインがオブジェクトを返しませんでした
@msg an importer returns `objects` and `warnings`, not `{key}` 読み込みプラグインが返すのは `objects` と `warnings` で、`{key}` ではありません
@msg `objects` must list object indexes in increasing order, each below {count} `objects` にはオブジェクトのインデックスを昇順で指定してください (各値は {count} 未満)
@msg `outputKinds` lists `{shown}` twice `outputKinds` に `{shown}` が 2 回指定されています
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` に不明な種類 `{shown}` が指定されています: type、image、layer、artboard のいずれかを使用してください
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` にはプラグイン API レベル {OUTPUT_KINDS_API} が必要です: `api` {OUTPUT_KINDS_API} を指定してください
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` は [width, height] の形式で指定してください: 1 から {MAX_IMAGE_SIDE} までの整数 2 つ
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` には 4 × 幅 × 高さ = {want} バイトを base64 で指定してください
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` は [x, y, width, height] の形式で指定してください: ±{MAX_COORD} 以内の有限の数値で、幅と高さは 0 より大きくします
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` は {len} バイトです (上限 {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` には改行とタブ以外の制御文字を含めないでください
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` は 1-{MAX_NAME_CHARS} 文字にし、制御文字や文字方向を変える文字を含めないでください
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` は ±{MAX_COORD} 以内の有限の数値 6 つで、オブジェクトをつぶさないものにしてください
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` の項目数は 1 から {max} にしてください (現在 {n})
@msg a type fill must be a color or a gradient テキストの塗りはカラーまたはグラデーションにしてください
@msg artboard name `{shown}` is used twice アートボード名 `{shown}` が 2 回使われています
@msg object {k} must be in exactly one layer オブジェクト {k} はちょうど 1 つのレイヤーに入れてください
@msg only an importer declares `outputKinds` `outputKinds` を宣言できるのは読み込みプラグインだけです
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels 画像のピクセルが {MAX_PIXEL_BYTES} バイトを超えています
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list 出力に `{kind}` が含まれていますが、読み込みプラグインの `outputKinds` には指定されていません
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text テキストが {MAX_TEXT_TOTAL} バイトを超えています
@msg unknown field `{key}` 不明なフィールド `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} ピクセル (1 辺の上限 {MAX_IMAGE_SIDE} ピクセル)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads ファイルが読み込みプラグインの読み取る {MAX_INPUT_BYTES} バイトを超えています
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` 読み込みプラグインは `extensions` を 1~{MAX_EXTENSIONS} 個宣言します
@msg only an exporter or an importer declares `extensions` `extensions` を宣言できるのは書き出しプラグインと読み込みプラグインだけです
Can't render this file because it is too large.
+21
View File
@@ -10899,6 +10899,27 @@ font-script Japanese იაპონური
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` ცოცხალი ეფექტია: გამოიყენეთ ის effect.apply {{"effect": "{_2}"}}-ით
@msg the importer returned no objects იმპორტის პლაგინმა ობიექტები არ დააბრუნა
@msg an importer returns `objects` and `warnings`, not `{key}` იმპორტის პლაგინი აბრუნებს `objects`-ს და `warnings`-ს და არა `{key}`-ს
@msg `objects` must list object indexes in increasing order, each below {count} `objects`-ში ობიექტების ინდექსები ზრდადი რიგით უნდა იყოს, თითოეული {count}-ზე ნაკლები
@msg `outputKinds` lists `{shown}` twice `outputKinds`-ში `{shown}` ორჯერაა ჩამოთვლილი
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds`-ში უცნობი სახეა `{shown}`: გამოიყენეთ type, image, layer ან artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds`-ს სჭირდება პლაგინის API-ის დონე {OUTPUT_KINDS_API}: მიუთითეთ `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` უნდა იყოს [width, height]: ორი მთელი რიცხვი 1-დან {MAX_IMAGE_SIDE}-მდე
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` უნდა შეიცავდეს 4 × სიგანე × სიმაღლე = {want} ბაიტს base64-ში
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` უნდა იყოს [x, y, width, height]: სასრული რიცხვები ±{MAX_COORD}-ის ფარგლებში, სიგანე და სიმაღლე 0-ზე მეტი
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` არის {len} ბაიტი (ზღვარი {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` არ უნდა შეიცავდეს მართვის სიმბოლოებს, გარდა ხაზის გადატანისა და ტაბულაციისა
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` უნდა იყოს 1-{MAX_NAME_CHARS} სიმბოლო, მართვის და ტექსტის მიმართულების სიმბოლოების გარეშე
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` უნდა იყოს ექვსი სასრული რიცხვი ±{MAX_COORD}-ის ფარგლებში, რომლებიც ობიექტს არ აბრტყელებს
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` უნდა შეიცავდეს 1-დან {max}-მდე ჩანაწერს (შეიცავს {n}-ს)
@msg a type fill must be a color or a gradient ტექსტის შევსება უნდა იყოს ფერი ან გრადიენტი
@msg artboard name `{shown}` is used twice სამუშაო დაფის სახელი `{shown}` ორჯერაა გამოყენებული
@msg object {k} must be in exactly one layer ობიექტი {k} ზუსტად ერთ შრეში უნდა იყოს
@msg only an importer declares `outputKinds` `outputKinds`-ის გამოცხადება მხოლოდ იმპორტის პლაგინს შეუძლია
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels გამოსახულებები {MAX_PIXEL_BYTES} ბაიტზე მეტ პიქსელს შეიცავს
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list გამოტანა შეიცავს `{kind}`-ს, რომელიც იმპორტის პლაგინის `outputKinds`-ში არ არის ჩამოთვლილი
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text ტექსტი {MAX_TEXT_TOTAL} ბაიტზე მეტს შეიცავს
@msg unknown field `{key}` უცნობი ველი `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} პიქსელი (ზღვარი {MAX_IMAGE_SIDE} პიქსელი თითო მხარეს)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads ფაილი აღემატება {MAX_INPUT_BYTES} ბაიტს, რომელსაც იმპორტის პლაგინი კითხულობს
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` იმპორტის პლაგინი აცხადებს 1-დან {MAX_EXTENSIONS}-მდე `extensions`-ს
@msg only an exporter or an importer declares `extensions` `extensions`-ს მხოლოდ ექსპორტის ან იმპორტის პლაგინი აცხადებს
Can't render this file because it is too large.
+21
View File
@@ -8279,6 +8279,27 @@ breakText Glyphs 글리프
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}`은(는) 라이브 효과입니다: effect.apply {{"effect": "{_2}"}}로 적용하세요
@msg the importer returned no objects 가져오기 플러그인이 개체를 반환하지 않았습니다
@msg an importer returns `objects` and `warnings`, not `{key}` 가져오기 플러그인은 `{key}`가 아닌 `objects`와 `warnings`를 반환합니다
@msg `objects` must list object indexes in increasing order, each below {count} `objects`에는 개체 인덱스를 오름차순으로 나열해야 하며 각 값은 {count}보다 작아야 합니다
@msg `outputKinds` lists `{shown}` twice `outputKinds`에 `{shown}`이(가) 두 번 나열되어 있습니다
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds`에 알 수 없는 종류 `{shown}`이(가) 있습니다. type, image, layer 또는 artboard를 사용하세요
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds`에는 플러그인 API 수준 {OUTPUT_KINDS_API}이(가) 필요합니다. `api`를 {OUTPUT_KINDS_API}(으)로 지정하세요
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize`는 [width, height]여야 합니다. 1에서 {MAX_IMAGE_SIDE} 사이의 정수 두 개
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64`에는 4 × 너비 × 높이 = {want}바이트가 base64로 들어 있어야 합니다
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect`는 [x, y, width, height]여야 합니다. ±{MAX_COORD} 이내의 유한한 수이며 너비와 높이는 0보다 커야 합니다
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text`가 {len}바이트입니다(한도 {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text`에는 줄 바꿈과 탭 외의 제어 문자가 없어야 합니다
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}`은(는) 제어 문자나 텍스트 방향 문자 없이 1-{MAX_NAME_CHARS}자여야 합니다
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}`은(는) 개체를 납작하게 만들지 않는 ±{MAX_COORD} 이내의 유한한 수 여섯 개여야 합니다
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}`에는 1~{max}개의 항목이 있어야 합니다(현재 {n}개)
@msg a type fill must be a color or a gradient 텍스트 칠은 색상 또는 그레이디언트여야 합니다
@msg artboard name `{shown}` is used twice 아트보드 이름 `{shown}`이(가) 두 번 사용되었습니다
@msg object {k} must be in exactly one layer 개체 {k}은(는) 정확히 한 레이어에 있어야 합니다
@msg only an importer declares `outputKinds` 가져오기 플러그인만 `outputKinds`를 선언할 수 있습니다
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels 이미지의 픽셀이 {MAX_PIXEL_BYTES}바이트를 넘습니다
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list 출력에 가져오기 플러그인의 `outputKinds`에 없는 `{kind}`이(가) 있습니다
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text 텍스트가 {MAX_TEXT_TOTAL}바이트를 넘습니다
@msg unknown field `{key}` 알 수 없는 필드 `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h}픽셀(한 변 한도 {MAX_IMAGE_SIDE}픽셀)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads 파일이 가져오기 플러그인이 읽는 {MAX_INPUT_BYTES}바이트보다 큽니다
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` 가져오기 플러그인은 `extensions`를 1~{MAX_EXTENSIONS}개 선언합니다
@msg only an exporter or an importer declares `extensions` `extensions`는 내보내기 또는 가져오기 플러그인만 선언합니다
Can't render this file because it is too large.
+21
View File
@@ -613,6 +613,27 @@ liquify-list-end {0}, {1} {0} en {1}
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` is een live-effect: pas het toe met effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects de importplug-in heeft geen objecten teruggegeven
@msg an importer returns `objects` and `warnings`, not `{key}` een importplug-in geeft `objects` en `warnings` terug, niet `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` moet objectindexen in oplopende volgorde noemen, elk kleiner dan {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` noemt `{shown}` twee keer
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` noemt een onbekende soort `{shown}`: gebruik type, image, layer of artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` vereist plug-in-API-niveau {OUTPUT_KINDS_API}: geef `api` {OUTPUT_KINDS_API} op
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` moet [width, height] zijn: twee gehele getallen van 1 tot en met {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` moet 4 × breedte × hoogte = {want} bytes als base64 bevatten
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` moet [x, y, width, height] zijn: eindige getallen binnen ±{MAX_COORD}, breedte en hoogte groter dan 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` is {len} bytes (limiet {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` mag geen andere stuurtekens bevatten dan regeleinden en tabs
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` moet 1-{MAX_NAME_CHARS} tekens lang zijn, zonder stuurtekens of tekens voor de tekstrichting
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` moet uit zes eindige getallen binnen ±{MAX_COORD} bestaan die het object niet plat maken
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` moet 1 tot en met {max} items bevatten (bevat er {n})
@msg a type fill must be a color or a gradient een tekstvulling moet een kleur of een verloop zijn
@msg artboard name `{shown}` is used twice de tekengebiednaam `{shown}` wordt twee keer gebruikt
@msg object {k} must be in exactly one layer object {k} moet in precies één laag staan
@msg only an importer declares `outputKinds` alleen een importplug-in declareert `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels de afbeeldingen bevatten meer dan {MAX_PIXEL_BYTES} bytes aan pixels
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list de uitvoer bevat `{kind}`, dat `outputKinds` van de importplug-in niet noemt
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text de tekst bevat meer dan {MAX_TEXT_TOTAL} bytes
@msg unknown field `{key}` onbekend veld `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixels (limiet {MAX_IMAGE_SIDE} pixels per zijde)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads het bestand is groter dan de {MAX_INPUT_BYTES} bytes die een importplug-in leest
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` een importplug-in declareert 1 tot {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` alleen een exportplug-in of een importplug-in declareert `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8503,6 +8503,27 @@ breakText Glyphs Glify
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` to efekt na żywo: zastosuj go za pomocą effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects wtyczka importu nie zwróciła żadnych obiektów
@msg an importer returns `objects` and `warnings`, not `{key}` wtyczka importu zwraca `objects` i `warnings`, a nie `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` musi wymieniać indeksy obiektów w kolejności rosnącej, każdy mniejszy niż {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` wymienia `{shown}` dwa razy
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` podaje nieznany rodzaj `{shown}`: użyj type, image, layer lub artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` wymaga poziomu API wtyczek {OUTPUT_KINDS_API}: podaj `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` musi mieć postać [width, height]: dwie liczby całkowite od 1 do {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` musi zawierać 4 × szerokość × wysokość = {want} bajtów w base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` musi mieć postać [x, y, width, height]: liczby skończone w zakresie ±{MAX_COORD}, szerokość i wysokość większe od 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` ma {len} bajtów (limit {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` nie może zawierać znaków sterujących innych niż podziały wierszy i tabulatory
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` musi mieć 1-{MAX_NAME_CHARS} znaków, bez znaków sterujących i znaków kierunku tekstu
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` musi być sześcioma liczbami skończonymi w zakresie ±{MAX_COORD}, które nie spłaszczają obiektu
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` musi zawierać od 1 do {max} pozycji (zawiera {n})
@msg a type fill must be a color or a gradient wypełnienie tekstu musi być kolorem lub gradientem
@msg artboard name `{shown}` is used twice nazwa obszaru kompozycji `{shown}` jest użyta dwa razy
@msg object {k} must be in exactly one layer obiekt {k} musi być w dokładnie jednej warstwie
@msg only an importer declares `outputKinds` tylko wtyczka importu deklaruje `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels obrazy zawierają więcej niż {MAX_PIXEL_BYTES} bajtów pikseli
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list wynik zawiera `{kind}`, którego nie wymienia `outputKinds` wtyczki importu
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text tekst zawiera więcej niż {MAX_TEXT_TOTAL} bajtów
@msg unknown field `{key}` nieznane pole `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pikseli (limit {MAX_IMAGE_SIDE} pikseli na bok)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads plik jest większy niż {MAX_INPUT_BYTES} bajtów, które odczytuje wtyczka importu
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` wtyczka importu deklaruje od 1 do {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` `extensions` deklaruje tylko wtyczka eksportu lub importu
Can't render this file because it is too large.
+21
View File
@@ -8823,6 +8823,27 @@ swatch Yellow Green Verde-amarelado
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` é um efeito dinâmico: aplique-o com effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects o plug-in de importação não retornou nenhum objeto
@msg an importer returns `objects` and `warnings`, not `{key}` um plug-in de importação retorna `objects` e `warnings`, não `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` deve listar índices de objetos em ordem crescente, cada um menor que {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` lista `{shown}` duas vezes
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` indica um tipo desconhecido `{shown}`: use type, image, layer ou artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` exige o nível de API de plug-ins {OUTPUT_KINDS_API}: informe `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` deve ser [width, height]: dois números inteiros de 1 a {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` deve conter 4 × largura × altura = {want} bytes em base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` deve ser [x, y, width, height]: números finitos dentro de ±{MAX_COORD}, com largura e altura maiores que 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` tem {len} bytes (limite {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` não deve conter caracteres de controle além de quebras de linha e tabulações
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` deve ter 1-{MAX_NAME_CHARS} caracteres, sem caracteres de controle nem de direção do texto
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` deve ser seis números finitos dentro de ±{MAX_COORD} que não achatem o objeto
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` deve conter de 1 a {max} entradas (contém {n})
@msg a type fill must be a color or a gradient o preenchimento de um texto deve ser uma cor ou um gradiente
@msg artboard name `{shown}` is used twice o nome de mesa de trabalho `{shown}` é usado duas vezes
@msg object {k} must be in exactly one layer o objeto {k} deve estar em exatamente uma camada
@msg only an importer declares `outputKinds` somente um plug-in de importação declara `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels as imagens contêm mais de {MAX_PIXEL_BYTES} bytes de pixels
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list a saída contém `{kind}`, que `outputKinds` do plug-in de importação não lista
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text o texto contém mais de {MAX_TEXT_TOTAL} bytes
@msg unknown field `{key}` campo desconhecido `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixels (limite de {MAX_IMAGE_SIDE} pixels por lado)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads o arquivo é maior que os {MAX_INPUT_BYTES} bytes que um plug-in de importação lê
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` um plug-in de importação declara de 1 a {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` só um plug-in de exportação ou de importação declara `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8747,6 +8747,27 @@ shape Open Открытый
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` — динамический эффект: примените его с помощью effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects модуль импорта не вернул ни одного объекта
@msg an importer returns `objects` and `warnings`, not `{key}` модуль импорта возвращает `objects` и `warnings`, а не `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} в `objects` должны быть индексы объектов по возрастанию, каждый меньше {count}
@msg `outputKinds` lists `{shown}` twice в `outputKinds` `{shown}` указано дважды
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard в `outputKinds` указан неизвестный вид `{shown}`: используйте type, image, layer или artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} для `outputKinds` нужен уровень API плагинов {OUTPUT_KINDS_API}: укажите `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` должно быть [width, height]: два целых числа от 1 до {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` должно содержать 4 × ширина × высота = {want} байт в base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` должно быть [x, y, width, height]: конечные числа в пределах ±{MAX_COORD}, ширина и высота больше 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` занимает {len} байт (предел {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` не должно содержать управляющих символов, кроме разрывов строк и табуляций
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` должно содержать 1-{MAX_NAME_CHARS} символов, без управляющих символов и символов направления текста
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` должно быть шестью конечными числами в пределах ±{MAX_COORD}, которые не сплющивают объект
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` должно содержать от 1 до {max} записей (содержит {n})
@msg a type fill must be a color or a gradient заливка текста должна быть цветом или градиентом
@msg artboard name `{shown}` is used twice имя монтажной области `{shown}` использовано дважды
@msg object {k} must be in exactly one layer объект {k} должен быть ровно в одном слое
@msg only an importer declares `outputKinds` `outputKinds` может объявлять только модуль импорта
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels изображения содержат больше {MAX_PIXEL_BYTES} байт пикселей
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list вывод содержит `{kind}`, которого нет в `outputKinds` модуля импорта
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text текст занимает больше {MAX_TEXT_TOTAL} байт
@msg unknown field `{key}` неизвестное поле `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} пикселей (предел {MAX_IMAGE_SIDE} пикселей на сторону)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads файл больше {MAX_INPUT_BYTES} байт, которые читает модуль импорта
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` модуль импорта объявляет от 1 до {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` `extensions` объявляет только модуль экспорта или импорта
Can't render this file because it is too large.
+21
View File
@@ -10557,6 +10557,27 @@ digits Hindi Hindi
@msg `{_1}` is an importer: open a file with document.open {{"importer": "{_2}"}} `{_1}` är en importfunktion: öppna en fil med document.open {{"importer": "{_2}"}}
@msg the importer returned no objects importfunktionen returnerade inga objekt
@msg an importer returns `objects` and `warnings`, not `{key}` en importfunktion returnerar `objects` och `warnings`, inte `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` måste ange objektindex i stigande ordning, vart och ett mindre än {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` anger `{shown}` två gånger
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` anger en okänd typ `{shown}`: använd type, image, layer eller artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` kräver plugin-API-nivå {OUTPUT_KINDS_API}: ange `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` måste vara [width, height]: två heltal från 1 till {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` måste innehålla 4 × bredd × höjd = {want} byte som base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` måste vara [x, y, width, height]: ändliga tal inom ±{MAX_COORD}, bredd och höjd över 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` är {len} byte (gräns {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` får inte innehålla andra styrtecken än radbrytningar och tabbar
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` måste vara 1-{MAX_NAME_CHARS} tecken, utan styrtecken eller textriktningstecken
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` måste vara sex ändliga tal inom ±{MAX_COORD} som inte plattar till objektet
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` måste innehålla 1 till {max} poster (innehåller {n})
@msg a type fill must be a color or a gradient en textfyllning måste vara en färg eller en gradient
@msg artboard name `{shown}` is used twice ritytans namn `{shown}` används två gånger
@msg object {k} must be in exactly one layer objekt {k} måste ligga i exakt ett lager
@msg only an importer declares `outputKinds` bara en importfunktion anger `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels bilderna innehåller mer än {MAX_PIXEL_BYTES} byte pixlar
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list utdata innehåller `{kind}`, som importfunktionens `outputKinds` inte anger
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text texten innehåller mer än {MAX_TEXT_TOTAL} byte
@msg unknown field `{key}` okänt fält `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} pixlar (gräns {MAX_IMAGE_SIDE} pixlar per sida)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads filen är större än de {MAX_INPUT_BYTES} byte som en importfunktion läser
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` en importfunktion anger 1 till {MAX_EXTENSIONS} `extensions`
@msg an importer always gets an import's budget: leave `budget` out en importfunktion får alltid en imports budget: utelämna `budget`
Can't render this file because it is too large.
+21
View File
@@ -10534,6 +10534,27 @@ breakText Glyphs Glifler
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` canlı bir efekttir: effect.apply {{"effect": "{_2}"}} ile uygulayın
@msg the importer returned no objects içe aktarma eklentisi hiç nesne döndürmedi
@msg an importer returns `objects` and `warnings`, not `{key}` içe aktarma eklentisi `{key}` değil, `objects` ve `warnings` döndürür
@msg `objects` must list object indexes in increasing order, each below {count} `objects` nesne dizinlerini artan sırada listelemelidir; her biri {count} değerinden küçük olmalıdır
@msg `outputKinds` lists `{shown}` twice `outputKinds` `{shown}` değerini iki kez listeliyor
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` bilinmeyen bir tür belirtiyor: `{shown}`; type, image, layer veya artboard kullanın
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` için eklenti API düzeyi {OUTPUT_KINDS_API} gerekir: `api` {OUTPUT_KINDS_API} verin
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` [width, height] olmalıdır: 1 ile {MAX_IMAGE_SIDE} arasında iki tam sayı
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64`, base64 olarak 4 × genişlik × yükseklik = {want} bayt içermelidir
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` [x, y, width, height] olmalıdır: ±{MAX_COORD} içinde sonlu sayılar, genişlik ve yükseklik 0'dan büyük
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` {len} bayt (sınır {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` satır sonları ve sekmeler dışında denetim karakteri içermemelidir
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` denetim veya metin yönü karakterleri olmadan 1-{MAX_NAME_CHARS} karakter olmalıdır
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}`, nesneyi düzleştirmeyen ve ±{MAX_COORD} içinde kalan altı sonlu sayı olmalıdır
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` 1 ile {max} arasında öğe içermelidir ({n} öğe içeriyor)
@msg a type fill must be a color or a gradient metin dolgusu bir renk veya degrade olmalıdır
@msg artboard name `{shown}` is used twice çalışma yüzeyi adı `{shown}` iki kez kullanılmış
@msg object {k} must be in exactly one layer {k} nesnesi tam olarak bir katmanda olmalıdır
@msg only an importer declares `outputKinds` `outputKinds` yalnızca bir içe aktarma eklentisinde bildirilebilir
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels görüntüler {MAX_PIXEL_BYTES} bayttan fazla piksel içeriyor
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list çıktı, içe aktarma eklentisinin `outputKinds` listesinde olmayan `{kind}` içeriyor
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text metin {MAX_TEXT_TOTAL} bayttan fazla
@msg unknown field `{key}` bilinmeyen alan `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} piksel (kenar başına sınır {MAX_IMAGE_SIDE} piksel)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads dosya, içe aktarma eklentisinin okuduğu {MAX_INPUT_BYTES} bayttan büyük
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` içe aktarma eklentisi 1 ile {MAX_EXTENSIONS} arasında `extensions` bildirir
@msg only an exporter or an importer declares `extensions` `extensions` yalnızca dışa veya içe aktarma eklentisi bildirir
Can't render this file because it is too large.
+21
View File
@@ -8289,6 +8289,27 @@ breakText Glyphs Гліфи
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` - динамічний ефект: застосуйте його за допомогою effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects модуль імпорту не повернув жодного об’єкта
@msg an importer returns `objects` and `warnings`, not `{key}` модуль імпорту повертає `objects` і `warnings`, а не `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} в `objects` мають бути індекси об’єктів за зростанням, кожен менший за {count}
@msg `outputKinds` lists `{shown}` twice в `outputKinds` `{shown}` указано двічі
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard в `outputKinds` указано невідомий вид `{shown}`: використовуйте type, image, layer або artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} для `outputKinds` потрібен рівень API плагінів {OUTPUT_KINDS_API}: укажіть `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` має бути [width, height]: два цілі числа від 1 до {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` має містити 4 × ширина × висота = {want} байт у base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` має бути [x, y, width, height]: скінченні числа в межах ±{MAX_COORD}, ширина й висота більші за 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` займає {len} байт (межа {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` не має містити керівних символів, крім розривів рядків і табуляцій
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` має містити 1-{MAX_NAME_CHARS} символів, без керівних символів і символів напрямку тексту
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` має бути шістьма скінченними числами в межах ±{MAX_COORD}, які не сплющують об’єкт
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` має містити від 1 до {max} записів (містить {n})
@msg a type fill must be a color or a gradient заливка тексту має бути кольором або градієнтом
@msg artboard name `{shown}` is used twice назву монтажної області `{shown}` використано двічі
@msg object {k} must be in exactly one layer об’єкт {k} має бути рівно в одному шарі
@msg only an importer declares `outputKinds` `outputKinds` може оголошувати лише модуль імпорту
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels зображення містять понад {MAX_PIXEL_BYTES} байт пікселів
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list вивід містить `{kind}`, якого немає в `outputKinds` модуля імпорту
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text текст займає понад {MAX_TEXT_TOTAL} байт
@msg unknown field `{key}` невідоме поле `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} пікселів (межа {MAX_IMAGE_SIDE} пікселів на сторону)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads файл більший за {MAX_INPUT_BYTES} байтів, які читає модуль імпорту
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` модуль імпорту оголошує від 1 до {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` `extensions` оголошує лише модуль експорту або імпорту
Can't render this file because it is too large.
+21
View File
@@ -8335,6 +8335,27 @@ breakText Glyphs Glyph
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` là hiệu ứng trực tiếp: hãy áp dụng bằng effect.apply {{"effect": "{_2}"}}
@msg the importer returned no objects plug-in nhập không trả về đối tượng nào
@msg an importer returns `objects` and `warnings`, not `{key}` plug-in nhập trả về `objects` và `warnings`, không phải `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` phải liệt kê chỉ mục đối tượng theo thứ tự tăng dần, mỗi chỉ mục nhỏ hơn {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` liệt kê `{shown}` hai lần
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` ghi một loại không xác định `{shown}`: hãy dùng type, image, layer hoặc artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` cần API plug-in cấp {OUTPUT_KINDS_API}: hãy đặt `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` phải là [width, height]: hai số nguyên từ 1 đến {MAX_IMAGE_SIDE}
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` phải chứa 4 × rộng × cao = {want} byte dạng base64
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` phải là [x, y, width, height]: các số hữu hạn trong khoảng ±{MAX_COORD}, chiều rộng và chiều cao lớn hơn 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` dài {len} byte (giới hạn {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` không được chứa ký tự điều khiển nào ngoài ngắt dòng và tab
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` phải dài 1-{MAX_NAME_CHARS} ký tự, không có ký tự điều khiển hay ký tự hướng văn bản
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` phải là sáu số hữu hạn trong khoảng ±{MAX_COORD} không làm dẹt đối tượng
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` phải có từ 1 đến {max} mục (hiện có {n})
@msg a type fill must be a color or a gradient màu tô của văn bản phải là một màu hoặc một chuyển sắc
@msg artboard name `{shown}` is used twice tên bảng vẽ `{shown}` được dùng hai lần
@msg object {k} must be in exactly one layer đối tượng {k} phải nằm trong đúng một lớp
@msg only an importer declares `outputKinds` chỉ plug-in nhập mới khai báo `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels các hình ảnh chứa hơn {MAX_PIXEL_BYTES} byte điểm ảnh
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list đầu ra chứa `{kind}`, mà `outputKinds` của plug-in nhập không liệt kê
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text văn bản chứa hơn {MAX_TEXT_TOTAL} byte
@msg unknown field `{key}` trường không xác định `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} điểm ảnh (giới hạn {MAX_IMAGE_SIDE} điểm ảnh mỗi cạnh)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads tệp lớn hơn {MAX_INPUT_BYTES} byte mà plug-in nhập đọc
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` plug-in nhập khai báo từ 1 đến {MAX_EXTENSIONS} `extensions`
@msg only an exporter or an importer declares `extensions` chỉ plug-in xuất hoặc nhập mới khai báo `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8513,6 +8513,27 @@ breakText Glyphs 字形
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` 是实时效果:请用 effect.apply {{"effect": "{_2}"}} 应用
@msg the importer returned no objects 导入增效工具未返回任何对象
@msg an importer returns `objects` and `warnings`, not `{key}` 导入增效工具返回 `objects` 和 `warnings`,不是 `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` 必须按递增顺序列出对象索引,每个都小于 {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` 列出了两次 `{shown}`
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` 指定了未知类型 `{shown}`:请使用 type、image、layer 或 artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` 需要增效工具 API 级别 {OUTPUT_KINDS_API}:请指定 `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` 必须是 [width, height]:两个 1 到 {MAX_IMAGE_SIDE} 的整数
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` 必须以 base64 形式包含 4 × 宽 × 高 = {want} 字节
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` 必须是 [x, y, width, height]:±{MAX_COORD} 以内的有限数,宽和高大于 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` 有 {len} 字节 (上限 {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` 不能包含换行符和制表符以外的控制字符
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` 必须为 1-{MAX_NAME_CHARS} 个字符,且不含控制字符或文本方向字符
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` 必须是 ±{MAX_COORD} 以内、不会压扁对象的六个有限数
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` 必须包含 1 到 {max} 项 (现有 {n} 项)
@msg a type fill must be a color or a gradient 文字的填色必须是颜色或渐变
@msg artboard name `{shown}` is used twice 画板名称 `{shown}` 使用了两次
@msg object {k} must be in exactly one layer 对象 {k} 必须恰好位于一个图层中
@msg only an importer declares `outputKinds` 只有导入增效工具才能声明 `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels 图像的像素超过 {MAX_PIXEL_BYTES} 字节
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list 输出包含 `{kind}`,但导入增效工具的 `outputKinds` 没有列出它
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text 文字超过 {MAX_TEXT_TOTAL} 字节
@msg unknown field `{key}` 未知字段 `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} 像素 (每边上限 {MAX_IMAGE_SIDE} 像素)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads 文件超过导入增效工具读取的 {MAX_INPUT_BYTES} 字节
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` 导入增效工具声明 1 到 {MAX_EXTENSIONS} 个 `extensions`
@msg only an exporter or an importer declares `extensions` 只有导出或导入增效工具才声明 `extensions`
Can't render this file because it is too large.
+21
View File
@@ -8337,6 +8337,27 @@ breakText Glyphs 字符
@msg `{_1}` is a live effect: apply it with effect.apply {{"effect": "{_2}"}} `{_1}` 是即時效果:請用 effect.apply {{"effect": "{_2}"}} 套用
@msg the importer returned no objects 匯入增效模組未傳回任何物件
@msg an importer returns `objects` and `warnings`, not `{key}` 匯入增效模組傳回 `objects` 和 `warnings`,不是 `{key}`
@msg `objects` must list object indexes in increasing order, each below {count} `objects` 必須依遞增順序列出物件索引,每個都小於 {count}
@msg `outputKinds` lists `{shown}` twice `outputKinds` 列出了兩次 `{shown}`
@msg `outputKinds` names an unknown kind `{shown}`: use type, image, layer or artboard `outputKinds` 指定了不明的種類 `{shown}`:請使用 type、image、layer 或 artboard
@msg `outputKinds` needs plug-in API level {OUTPUT_KINDS_API}: give `api` {OUTPUT_KINDS_API} `outputKinds` 需要增效模組 API 層級 {OUTPUT_KINDS_API}:請指定 `api` {OUTPUT_KINDS_API}
@msg `pixelSize` must be [width, height]: two whole numbers from 1 to {MAX_IMAGE_SIDE} `pixelSize` 必須是 [width, height]:兩個 1 到 {MAX_IMAGE_SIDE} 的整數
@msg `pixelsBase64` must hold 4 × width × height = {want} bytes as base64 `pixelsBase64` 必須以 base64 形式包含 4 × 寬 × 高 = {want} 位元組
@msg `rect` must be [x, y, width, height]: finite numbers within ±{MAX_COORD}, width and height above 0 `rect` 必須是 [x, y, width, height]:±{MAX_COORD} 以內的有限數,寬和高大於 0
@msg `text` is {len} bytes (limit {MAX_TYPE_TEXT}) `text` 有 {len} 位元組 (上限 {MAX_TYPE_TEXT})
@msg `text` must not hold control characters other than line breaks and tabs `text` 不能包含換行和定位字元以外的控制字元
@msg `{key}` must be 1-{MAX_NAME_CHARS} characters, without control or text direction characters `{key}` 必須為 1-{MAX_NAME_CHARS} 個字元,且不含控制字元或文字方向字元
@msg `{key}` must be six finite numbers within ±{MAX_COORD} that don't flatten the object `{key}` 必須是 ±{MAX_COORD} 以內、不會壓扁物件的六個有限數
@msg `{key}` must hold 1 to {max} entries (it holds {n}) `{key}` 必須包含 1 到 {max} 項 (目前有 {n} 項)
@msg a type fill must be a color or a gradient 文字的填色必須是顏色或漸層
@msg artboard name `{shown}` is used twice 工作區域名稱 `{shown}` 使用了兩次
@msg object {k} must be in exactly one layer 物件 {k} 必須剛好位於一個圖層中
@msg only an importer declares `outputKinds` 只有匯入增效模組才能宣告 `outputKinds`
@msg the images hold more than {MAX_PIXEL_BYTES} bytes of pixels 影像的像素超過 {MAX_PIXEL_BYTES} 位元組
@msg the output holds `{kind}`, which the importer's `outputKinds` doesn't list 輸出包含 `{kind}`,但匯入增效模組的 `outputKinds` 沒有列出
@msg the type holds more than {MAX_TEXT_TOTAL} bytes of text 文字超過 {MAX_TEXT_TOTAL} 位元組
@msg unknown field `{key}` 不明的欄位 `{key}`
@msg {w} × {h} pixels (limit {MAX_IMAGE_SIDE} pixels a side) {w} × {h} 像素 (每邊上限 {MAX_IMAGE_SIDE} 像素)
@msg the file is larger than the {MAX_INPUT_BYTES} bytes an importer reads 檔案超過匯入增效模組讀取的 {MAX_INPUT_BYTES} 位元組
@msg an importer declares 1 to {MAX_EXTENSIONS} `extensions` 匯入增效模組宣告 1 到 {MAX_EXTENSIONS} 個 `extensions`
@msg only an exporter or an importer declares `extensions` 只有匯出或匯入增效模組才宣告 `extensions`
Can't render this file because it is too large.
+3
View File
@@ -905,6 +905,9 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
It is given at most 128 MiB of the file and returns paths and compound paths, checked as a filter's output is, which
become a new document; nothing opens when it fails, declines or is cancelled. Engine, unit and headless Open With
regressions.
- **Done:** importer output kinds. An importer at plug-in API level 4 whose manifest lists `outputKinds` may also
return point type, embedded RGBA images, top-level layers and artboards; content of a kind it doesn't list, and output
past the limits on layers, artboards, text and pixels, opens nothing. Engine and unit regressions.
- **Done:** exporter plug-ins (`"kind": "exporter"`). A plug-in adds a write-only file format that File › Export ›
Export As lists after the built-in ones and `document.export` writes (`plugin.<id>`, or a path ending in one of its
extensions). It is given the document as the native file's JSON and its parameters, with a larger budget than a
+59 -8
View File
@@ -17,8 +17,9 @@ There are four kinds of plug-in:
laser cutters and the like. File › Export › Export As lists them after the built-in formats, and the host writes the
bytes they return: a plug-in still never touches a file.
- **Importers** read files in a format of their own, such as a plotter's or a cutting machine's, into a new document of
paths and compound paths. File › Open lists their files, File › Open With lists the importers by name, and the host
hands them the file's bytes.
paths and compound paths, and at API level 4 also of point type, embedded images, layers and artboards ([importer
output kinds](#importer-output-kinds)). File › Open lists their files, File › Open With lists the importers by name,
and the host hands them the file's bytes.
This page is the contract for plug-in authors and the reference for the host (`crates/plugins`, the `plugin.*` commands
in `crates/engine/src/cmd/plugin.rs`).
@@ -27,7 +28,7 @@ in `crates/engine/src/cmd/plugin.rs`).
| Command | Params | What it does |
|---|---|---|
| `plugin.list` | `{}` | `{"plugins": [{id, name, version, kind, author, description, params, paramsSchema, effect?, format?, extensions?, budget?, commands?, commandAllowlist?, size, source, api, paintOutput?, permissions, hash, cacheBytes}], "folder": report}` (`api` is the manifest's [plug-in API level](#permissions); `budget: "heavy"` for a [heavy filter](#heavy-filters); `commands` lists its [commands](#commands); `commandAllowlist` lists the commands it may [call](#command-calls); `paintOutput: true` marks a [painted live effect](#painted-live-effects); `permissions` lists what it [may do](#permissions), `hash` is the module's SHA-256; `cacheBytes` is the size of its [cache](#settings-and-cache)) |
| `plugin.list` | `{}` | `{"plugins": [{id, name, version, kind, author, description, params, paramsSchema, effect?, format?, extensions?, budget?, commands?, commandAllowlist?, size, source, api, paintOutput?, outputKinds?, permissions, hash, cacheBytes}], "folder": report}` (`api` is the manifest's [plug-in API level](#permissions); `budget: "heavy"` for a [heavy filter](#heavy-filters); `commands` lists its [commands](#commands); `commandAllowlist` lists the commands it may [call](#command-calls); `paintOutput: true` marks a [painted live effect](#painted-live-effects); `outputKinds` lists what an importer returns besides paths ([importer output kinds](#importer-output-kinds)); `permissions` lists what it [may do](#permissions), `hash` is the module's SHA-256; `cacheBytes` is the size of its [cache](#settings-and-cache)) |
| `plugin.info` | `{"id"}` | One plug-in: the `plugin.list` entry plus `manifest`, `defaults` and `lastError` (a live effect's last failure). |
| `plugin.run` | `{"id", "params"?: {…}, "ids"?: [...]}` (plug-in params may also be top-level keys) | Runs an object filter on the selection (or `ids`; an `ids` that is not a list of object ids is an error). One undo step; the result is selected, except the objects it locked or made guides. |
| `plugin.install` | `{"path": "/x/y.wasm"}` (desktop) or `{"dataBase64": "…", "name"?}`, `"replace"?: bool`, `"allowHeavy": bool = false`, `"grant"?: [permission]`, `"hash"?: "sha256 hex"` | Validates and installs a module; returns its `plugin.list` entry. The desktop app and `vectorcraft-cli` keep it in the `Plug-ins` folder next to the preferences, so it is installed again after a restart (#2541). A module with other bytes than the plug-in installed with its id, or, with none installed, one whose id has [settings and a cache](#settings-and-cache) in the `Plug-ins` folder, installs only with `replace: true`, once the user agreed; it takes that plug-in's place and gets its settings and cache. The same module installs again without `replace`, and `replace: false` refuses a module whose id is installed. A [heavy filter](#heavy-filters) installs only with `allowHeavy: true`. A plug-in whose manifest lists [permissions](#permissions) installs only when `grant` lists every one of them, unless a grant is already recorded for a module with the same SHA-256. A request's `grant` and `allowHeavy` are refused except in a session started with `vectorcraft-cli --allow-plugin-grants`. With `hash`, a module whose SHA-256 differs is refused. A module whose `commandAllowlist` lists a command no plug-in may call is refused; ids no command has are listed as `unknownCommands` ([command calls](#command-calls)). |
@@ -324,10 +325,11 @@ capability model proposed for PhotoCraft plug-ins
- The host enforces the grant on a filter run and a command run: without `doc.read` the filter is given no objects;
without `state` its `documentData` is `null` and an output that sets it is refused; without `doc.write` an output that
changes the document is refused. A refused output leaves the document as it was.
- `api` is the plug-in API level the manifest is written for: `1` (the default) or `2`, which adds the [host
- `api` is the plug-in API level the manifest is written for, `1` (the default) to `4`. Level `2` adds the [host
imports](#host-imports-api-level-2), a filter's `inputs` ([reading type, images and
symbols](#reading-type-images-and-symbols)) and a live effect's [`paintOutput`](#painted-live-effects). A higher one
is refused. `plugin.list` and `plugin.info` give it as `api`. `inputs` is not a permission: the objects it asks for
symbols](#reading-type-images-and-symbols)) and a live effect's [`paintOutput`](#painted-live-effects). Level `3`
adds nothing to level 2 on this host. Level `4` adds an importer's [`outputKinds`](#importer-output-kinds). A higher
one is refused. `plugin.list` and `plugin.info` give it as `api`. `inputs` is not a permission: the objects it asks for
are read under `doc.read`, which a filter that lists `inputs` must list in `permissions`, so installing it asks the
user to grant them. A level 2 effect that declares `paintOutput` needs no other permission than `doc.read` and
`effect.render`.
@@ -561,6 +563,12 @@ the module's start function, in a run that isn't a filter's run on a document, o
`api` 1 is refused when the module is installed, and the error names `paintOutput`. Without the key the effect returns
geometry, at any level. Hosts at `api` 1 refuse the manifest for its `api`, so such an effect never draws unpainted
there.
- `outputKinds` (importers at `api` 4 only): the kinds of content besides paths and compound paths the importer
returns, any of `"type"`, `"image"`, `"layer"` and `"artboard"`, each at most once (`"outputKinds": ["type",
"layer"]`). Left out, `null` or `[]`, the importer returns paths and compound paths alone, as before. An unknown,
repeated or wrongly typed entry, `outputKinds` on another kind, or below `api` 4 is refused when the plug-in is
installed, and hosts from before level 4 refuse the manifest for its `api`. It needs no permission besides
`import.read`. See [importer output kinds](#importer-output-kinds).
- `extensions` (exporters and importers only, and required): 1–8 file extensions, lower-case letters and digits
without the dot (`["plt"]`); the first is the one Export As gives the file. A built-in format keeps an extension both
list (`svg`): `document.export` then writes the exporter's format only when asked for by its format id, and
@@ -856,6 +864,48 @@ filters' object form, checked as a filter's new objects are, with warnings cappe
the open's own. An output with no objects, with keys other than `objects`, `warnings` and `error`, or with an object
that fails the checks opens nothing, and neither does a decline (`{"error": …}`).
#### Importer output kinds
An importer at `api` 4 whose manifest lists [`outputKinds`](#manifest) may return more than paths. The host checks the
whole output before it makes the document, and one entry that fails a check opens nothing; the error names the entry
(`objects[2]`, `layers[0]`) and the limit or field. Content of a kind the manifest doesn't list is refused, and the
error names the kind. An importer that lists no kinds is read as before, and the keys below are errors for it.
```json
{
"objects": [
{"type": "type", "text": "Hello", "fontFamily": "Source Sans 3", "fontStyle": "Bold", "fontSize": 24,
"fill": {"type": "solid", "color": {"model": "rgb", "r": 0, "g": 0, "b": 1}}, "transform": [1, 0, 0, 1, 10, 40]},
{"type": "image", "pixelSize": [2, 1], "pixelsBase64": "/wAA/wAA/4A=", "transform": [10, 0, 0, 10, 0, 100]},
{"type": "path", "path": {"subpaths": [{"closed": true, "anchors": [{"p": [0, 0]}, {"p": [10, 0]}, {"p": [10, 10]}]}]}}
],
"layers": [{"name": "Art", "objects": [1, 2]}, {"name": "Words", "visible": false, "locked": true, "objects": [0]}],
"artboards": [{"name": "Front", "rect": [0, 0, 200, 100]}, {"name": "Back", "rect": [220, 0, 200, 100]}]
}
```
- `"type": "type"` (kind `type`) is point type in the document's Normal Character Style with the face, size and fill
it gives: `text` (at most 1,048,576 bytes of UTF-8, a `\n` between paragraphs, no control characters other than
line breaks and tabs), `fontFamily`, `fontStyle` (left out: the family's regular style), `fontSize` (0.1–1296 pt),
`fill` (a color or a gradient, in the filters' paint form; left out: black), `transform` and `name`. The first
baseline starts at the origin of the type's own space. A font that isn't installed keeps its name, and the open
reports it as missing. All the type of one output holds at most 16,777,216 bytes of text.
- `"type": "image"` (kind `image`) is an image embedded in the document, stored as a PNG of its pixels: `pixelSize`
(width and height, 1–16,384 each), `pixelsBase64` (straight RGBA, 8 bits a channel, rows from the top, exactly 4 ×
width × height bytes in padded base64), `transform` (from pixel space, one unit a pixel, into the document) and
`name`. All the images of one output hold at most 33,554,432 bytes of RGBA. The host checks both limits from the
sizes the images give, and the length of `pixelsBase64`, before it decodes any pixels.
- `transform` is six finite numbers `[a, b, c, d, e, f]` within ±4,000,000 that don't flatten the object; left out,
the identity.
- `layers` (kind `layer`): 1–256 top-level layers, bottom first. Each has a `name`, `visible` (default `true`),
`locked` (default `false`) and `objects`, the indexes of its objects in `objects` in increasing order. Every object
is in exactly one layer, and a layer may hold none. Without `layers`, every object goes in one layer.
- `artboards` (kind `artboard`): 1–100 artboards, each with a `name` used once and a `rect`, `[x, y, width, height]`
with a width and height above 0, within ±4,000,000. They replace the one artboard around the art.
- A `name` (of type, an image, a layer or an artboard) and a font's family and style are each 1–256 characters, not
only spaces, without control characters or characters that change the direction of text.
- An output whose `objects` is empty opens as a blank document when it has `layers` or `artboards`.
## Writing a plug-in in Rust
[`crates/plugins/example`](../crates/plugins/example) is a complete object filter, **Desaturate**: it moves every
@@ -886,8 +936,9 @@ per change of their input, parameters or paints (results are cached), not per fr
## Not in v1
- Tool plug-ins (pointer events on the canvas, a guide line or rectangle, geometry back), panel plug-ins, and
importers that place files (File › Place reads only the built-in formats) or make type, images, layers or
artboards.
importers that place files (File › Place reads only the built-in formats) or make area type, type on a path,
nested layers or linked images (an importer at `api` 4 makes point type, embedded images, top-level layers and
artboards, see [importer output kinds](#importer-output-kinds)).
- Live effects that change opacity, blending or effects (at `api` 2 one may [paint](#painted-live-effects) the pieces
it returns), and filters that change type, images or symbol instances (a filter at `api` 2 reads them, see
[`inputs`](#reading-type-images-and-symbols)).
+1
View File
@@ -2645,6 +2645,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- **Exporter plug-ins (G17):** a WebAssembly plug-in of kind `exporter` adds a write-only file format. File › Export › Export As lists it after the built-in formats, with Use Artboards greyed out (the plug-in writes the whole document) and its parameters in a generated dialog once the file is picked; `document.export` writes it by its format id, `plugin.<id>`, or by one of its extensions, and built-in formats keep theirs. The plug-in is given the native file's JSON (large images without their data) and `_context` (`mode`, `extension`, `name`), with 10 G instructions plus 4,000 per byte of input and 300 s, and Background Export's Cancel stops it between two slices of that budget. A decline or invalid output writes nothing; its warnings come back with the export's. Regressions: `crates/engine/tests/plugin_export.rs`, `crates/plugins/tests/abi.rs`, `crates/ui-egui/src/dialogs/tests_plugin_export.rs`. Scores and hours unchanged.
- **Importer plug-ins (G17):** a WebAssembly plug-in of kind `importer` adds a read-only file format, as [the help page](https://ai-sdk-2020.84.nz/html/struct_a_i_file_format_suite) describes for file format plug-ins that read: File › Open lists its files under "All readable files" and its own filter, and File › Open With lists each importer by name. `document.open` uses it for a file whose extension no built-in format reads, by content or extension (the importer whose id sorts first, when several list the extension), or the one `importer` names, also for an extension a built-in format reads; a damaged file of a built-in format reports that format's error. The plug-in is given at most 128 MiB of the file and `_context` (`mode: "import"`, `extension`, `name`), and returns paths and compound paths in the filters' object JSON, checked as a filter's output is; they become a new document whose artboard is their bounds, which Save asks a name for. A decline, invalid output, a trap or Cancel opens nothing. The routing rule, the limit and Open With are VectorCraft's own. Regressions: `crates/engine/tests/plugin_import.rs`, `crates/plugins/src/import.rs`, `crates/ui-egui/src/dialogs/tests_plugin_import.rs`. Scores and hours unchanged.
- **Importer output kinds (G17, VectorCraft's own contract):** an importer at plug-in API level 4 lists in its manifest's `outputKinds` which of `type`, `image`, `layer` and `artboard` it returns besides paths. Its output may then hold point type (text, font family and style, size, fill, transform), embedded RGBA images (stored as PNG in the document), top-level layers with their names, visibility, lock and objects, and named artboards that replace the one around the art; output of artboards or layers alone opens as a blank document. The host checks the whole output before it makes the document: a kind the manifest doesn't list, an image whose bytes aren't 4 × width × height, a name with control or text direction characters, or output past the limits on objects, layers, artboards, text and pixels opens nothing, and the error names the kind or the limit. Importers below level 4 read paths alone, as before. Regressions: `crates/engine/tests/plugin_import.rs`, `crates/plugins/src/import.rs`, `crates/plugins/src/manifest.rs`. Scores and hours unchanged.
- **Plug-in parameters as their manifest presents them (G17):** each parameter may have a `label`, a `unit` shown after its value, `help` on its label and a `helpUrl` page opened from a button, a `group` (sections that fold, after the parameters outside any group) and a `visibleWhen` that shows it only while the checkboxes and choices it names have one of the listed values (a hidden parameter still goes to the plug-in). `string` and `numberList` parameters join number, int, bool and choice, and a plug-in declares up to 256 parameters, at most 64 outside groups. The filter, live-effect and exporter dialogs use these keys, and the Appearance panel's effect editor the labels, units, help and conditions; hosts from before them ignore them. Regressions: `crates/plugins/src/dialog.rs`, `crates/plugins/src/manifest.rs`, `crates/ui-egui/src/dialogs/tests_plugin_fields.rs`, `crates/ui-egui/src/panels/appearance.rs`. Scores and hours unchanged.
- **Live-effect plug-ins read their object's paints (G17):** a live effect is given the object's `fills` and `strokes` as a filter gets them, read only, and `_context.item` (`"object"`, or the fill or stroke whose own effects hold it); the result is cached by paint too, so a change of paint runs it again. Regressions: `crates/engine/src/tests/plugins.rs`, `crates/plugins/src/effect.rs`. Scores and hours unchanged.