diff --git a/crates/engine/src/cmd/fileio.rs b/crates/engine/src/cmd/fileio.rs index cd6ec30f0d..93d9ef7038 100644 --- a/crates/engine/src/cmd/fileio.rs +++ b/crates/engine/src/cmd/fileio.rs @@ -98,7 +98,7 @@ pub use native::with_compression_pref; pub(crate) use pdfimport::opened_page_document; pub use pdfimport::{LoadOptions, page_document, pages_can_link}; pub(crate) use psdlayers::import_active as psd_layers; -pub use psdlayers::{PsdInfo, info as psd_info}; +pub use psdlayers::{LAYER_WARNINGS as PSD_LAYER_WARNINGS, MERGED_WARNING as PSD_MERGED_WARNING, PsdInfo, info as psd_info}; pub(crate) use psdslices::over as psd_slices; pub(crate) use save::job_for; pub(crate) use save::save as save_document; diff --git a/crates/engine/src/cmd/fileio/psdlayers.rs b/crates/engine/src/cmd/fileio/psdlayers.rs index ea5cf63aa2..3779b72745 100644 --- a/crates/engine/src/cmd/fileio/psdlayers.rs +++ b/crates/engine/src/cmd/fileio/psdlayers.rs @@ -24,20 +24,28 @@ //! Light, Pin Light, Hard Mix, Subtract, Divide, Darker Color, Lighter Color) is merged with the //! layers below it in its group. A Dissolve layer's partly transparent pixels are merged as opaque //! or transparent, opaque at the share of its pixels their transparency gives, in a fixed pattern -//! that differs from layer to layer. When a merge's canvases would need more memory than allowed, -//! the layer comes in alone: in the Normal mode, or unclipped. -//! Hidden layers are left out unless `hidden` asks for them. A hidden layer that would need a merge -//! (one in a mode VectorCraft lacks, one that layers are clipped to, one clipped to another, or -//! one below a merged layer) is always left out, with the layers clipped to it. Adjustment layers, -//! fill layers that store no pixels and whose fill isn't read or whose shape is a vector mask, -//! layer effects that are switched on, knockouts and vector masks aren't applied; the warnings -//! count them and the hidden layers left out. +//! that differs from layer to layer. A layer or group in a group whose Knockout setting is 1 (read +//! as a shallow knockout) is merged with the layers below it in its group too, as the import option +//! describes: where it has pixels, they are cleared to transparency and it is drawn there at its fill +//! opacity, and its opacity fades that back toward them. In a pass-through group this is done only +//! when it and the visible layers below it are in the Normal mode. When a merge's canvases would need more +//! memory than allowed, the layer comes in alone: in the Normal mode, unclipped, or without its +//! knockout. Hidden layers are left out unless `hidden` asks for them. A hidden layer that would need +//! a merge (one in a mode VectorCraft lacks, one with a knockout in a group that changes the layers +//! below it, one that layers are clipped to, one clipped to another, or one below a merged layer) is +//! always left out, with the layers clipped to it. Adjustment layers, fill layers that store no +//! pixels and whose fill isn't read or whose shape is a vector mask, layer effects that are switched +//! on, vector masks, and the knockouts of top-level layers, of clipped layers, of layers that others +//! are clipped to and of layers in a pass-through group with a layer in another mode, and other +//! Knockout values, aren't applied; the warnings count them and the hidden layers left out. //! //! The file is untrusted: every count, length and size is checked before anything is allocated, //! groups nest at most [`MAX_DEPTH`] deep (layers deeper than a document may nest merge into the //! group around them, with a warning), each layer's pixels, like the canvases one step of a //! merge holds together, must fit the memory allowed, and all the pixels decoded and the canvases -//! the merges make must fit [`TOTAL_DECODED`] times that. +//! the merges make must fit [`TOTAL_DECODED`] times that. A merge being tried may take that much +//! past what was read before it. What the merges that aren't made, or that a hidden layer would +//! need, decoded and made is counted apart, against the same limit. use std::cell::Cell; use std::sync::Arc; @@ -66,6 +74,13 @@ const MAX_CHANNELS: usize = 56; const MIN_RECORD: usize = 34; const DAMAGED: &str = "the PSD file's layer records are damaged"; +#[cfg(test)] +thread_local! { + /// The layer lists imports on this thread have walked, and the most a test lets them walk + /// before the import stops with an error. + pub(super) static WALKS: Cell<(usize, usize)> = const { Cell::new((0, usize::MAX)) }; +} + /// The keys of the tagged blocks that make a layer an adjustment layer. const ADJUSTMENTS: [&[u8; 4]; 18] = [ b"levl", b"curv", b"brit", b"blnc", b"hue ", b"hue2", b"selc", b"mixr", b"grdm", b"phfl", b"expA", b"vibA", b"thrs", b"nvrt", b"post", b"clrL", @@ -227,7 +242,9 @@ struct Record<'a> { content: Content, effects: bool, vector_mask: bool, - knockout: bool, + /// The Knockout setting's byte (`knko`): 0 none, 1 a shallow knockout. Any other value isn't + /// applied. + knockout: u8, } /// The layer records of `info` (the layer count, the records, then their channels' data). @@ -285,7 +302,7 @@ fn record<'a>(r: &mut Reader<'a>, psb: bool) -> Result<(Record<'a>, Vec<(i16, us content: Content::Pixels, effects: false, vector_mask: false, - knockout: false, + knockout: 0, }; rec.read_extra(extra, psb)?; Ok((rec, lengths)) @@ -345,8 +362,7 @@ impl Record<'_> { b"lfx2" | b"lmfx" => effects = Some(effects == Some(true) || effects_on(data)), b"lrFX" => old_effects = true, b"vmsk" | b"vsms" => self.vector_mask = true, - // Shallow or deep knockout. - b"knko" => self.knockout = data.first().is_some_and(|&k| k != 0), + b"knko" => self.knockout = data.first().copied().unwrap_or(0), k if ADJUSTMENTS.contains(&k) => self.content = Content::Adjustment, _ => {} } @@ -612,6 +628,8 @@ struct Unit<'i> { body: Body<'i>, /// While layers are clipped to it: how its merged canvas is shaped. clip: Option, + /// Layers are clipped to it, merged into it or not. + base: bool, } impl Unit<'_> { @@ -640,13 +658,36 @@ enum Clip { enum Body<'i> { /// A layer record's pixels. Layer(usize), - /// A group's layers. - Group(&'i [Item]), + /// A group's record and its layers. + Group(usize, &'i [Item]), /// Layers merged into one image. Merged(Canvas), } +/// Where a layer list is. +#[derive(Clone, Copy, PartialEq)] +enum Level { + /// The file's top level. + Top, + /// An isolated group, or a group drawn on its own. + Group, + /// A pass-through group whose layers blend with what is below it. + Pass, +} + +/// What a knockout's merge with the layers below it gives. +enum Knocked { + /// The merged canvas. + Merged(Canvas), + /// Nothing below it draws, it draws nothing, it is at 0 fill and cuts no painted pixel below + /// it, or what is below it and the merge are both transparent: it comes in as a layer of its own. + Nothing, + /// The canvases would need more memory than allowed. + TooLarge, +} + /// A unit's body drawn alone. +#[derive(Clone)] enum Drawn { /// It draws nothing. Nothing, @@ -663,6 +704,7 @@ struct Notes { fills: usize, effects: usize, vector_masks: usize, + /// Layers whose knockout wasn't applied. knockouts: usize, /// Hidden layers left out, and layers clipped to them. hidden: usize, @@ -677,69 +719,91 @@ struct Notes { /// The counts a merge that can't be made gives back. #[derive(Clone, Copy)] struct Counts { + /// The bytes spent so far (see [`Builder::spent`]). + spent: u64, skipped: usize, + /// The knockouts counted as not applied. + unknocked: usize, merged: usize, unmerged: usize, unclipped: usize, clipped_out: usize, + /// The groups found to read no pixels. + blank: usize, } -/// `n` things: "1 layer was", "2 layers were". -fn count(n: usize, one: &str, many: &str) -> String { - if n == 1 { format!("1 {one} was") } else { format!("{n} {many} were") } +/// Adds the warning for `n` things to `out`: `one` when `n` is 1, `many` with the count in place +/// of `{n}` when it is more, none when it is 0. Each form is a whole sentence, the key of its own +/// catalog row. +fn note(out: &mut Vec, n: usize, (one, many): (&str, &str)) { + match n { + 0 => {} + 1 => out.push(one.to_string()), + n => out.push(many.replace("{n}", &n.to_string())), + } } +/// The layer warnings in English, the form for one layer and the form for more, in the order a +/// file's warnings list them. +pub const LAYER_WARNINGS: [(&str, &str); 10] = [ + ("1 type layer came in as pixels: the text isn't editable", "{n} type layers came in as pixels: the text isn't editable"), + ("1 adjustment layer was not applied", "{n} adjustment layers were not applied"), + ( + "1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels)", + "{n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels)", + ), + ("the layer effects of 1 layer weren't drawn", "the layer effects of {n} layers weren't drawn"), + ("the vector masks of 1 layer weren't applied", "the vector masks of {n} layers weren't applied"), + ("the knockout of 1 layer wasn't applied", "the knockout of {n} layers wasn't applied"), + ( + "1 layer was left out (hidden layers and the layers clipped to them)", + "{n} layers were left out (hidden layers and the layers clipped to them)", + ), + ("1 layer clipped to a fill layer that wasn't drawn was left out", "{n} layers clipped to fill layers that weren't drawn were left out"), + ( + "1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed", + "{n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed", + ), + ( + "1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed", + "{n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed", + ), +]; + +/// The warning for layers merged with the layers below them, `{modes}` the blend modes' names. +pub const MERGED_WARNING: &str = "layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them"; + impl Notes { fn warnings(self) -> Vec { + let [types, adjustments, fills, effects, masks, knockouts, hidden, clipped_out, unmerged, unclipped] = LAYER_WARNINGS; let mut out = vec![]; - if self.types > 0 { - let n = if self.types == 1 { "1 type layer".to_string() } else { format!("{} type layers", self.types) }; - out.push(format!("{n} came in as pixels: the text isn't editable")); - } - if self.adjustments > 0 { - out.push(format!("{} not applied", count(self.adjustments, "adjustment layer", "adjustment layers"))); - } - if self.fills > 0 { - out.push(format!( - "{} not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels)", - count(self.fills, "fill layer", "fill layers") - )); - } - let layers = |n: usize| if n == 1 { "1 layer".to_string() } else { format!("{n} layers") }; - if self.effects > 0 { - out.push(format!("the layer effects of {} weren't drawn", layers(self.effects))); - } - if self.vector_masks > 0 { - out.push(format!("the vector masks of {} weren't applied", layers(self.vector_masks))); - } - if self.knockouts > 0 { - out.push(format!("the knockout of {} wasn't applied", layers(self.knockouts))); - } - if self.hidden > 0 { - out.push(format!("{} left out (hidden layers and the layers clipped to them)", count(self.hidden, "layer", "layers"))); - } - if self.clipped_out == 1 { - out.push("1 layer clipped to a fill layer that wasn't drawn was left out".into()); - } else if self.clipped_out > 1 { - out.push(format!("{} layers clipped to fill layers that weren't drawn were left out", self.clipped_out)); - } + note(&mut out, self.types, types); + note(&mut out, self.adjustments, adjustments); + note(&mut out, self.fills, fills); + note(&mut out, self.effects, effects); + note(&mut out, self.vector_masks, masks); + note(&mut out, self.knockouts, knockouts); + note(&mut out, self.hidden, hidden); + note(&mut out, self.clipped_out, clipped_out); if !self.merged.is_empty() { - out.push(format!("layers in blend modes VectorCraft doesn't have ({}) were merged with the layers below them", self.merged.join(", "))); - } - if self.unmerged > 0 { - out.push(format!( - "{} in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed", - layers(self.unmerged) - )); - } - if self.unclipped > 0 { - out.push(format!("{} clipped to the layer below came in unclipped: the merge needs more memory than allowed", layers(self.unclipped))); + out.push(MERGED_WARNING.replace("{modes}", &self.merged.join(", "))); } + note(&mut out, self.unmerged, unmerged); + note(&mut out, self.unclipped, unclipped); out } - fn counts(&self, skipped: usize) -> Counts { - Counts { skipped, merged: self.merged.len(), unmerged: self.unmerged, unclipped: self.unclipped, clipped_out: self.clipped_out } + fn counts(&self, spent: u64, skipped: usize, unknocked: usize, blank: usize) -> Counts { + Counts { + spent, + skipped, + unknocked, + merged: self.merged.len(), + unmerged: self.unmerged, + unclipped: self.unclipped, + clipped_out: self.clipped_out, + blank, + } } } @@ -760,12 +824,45 @@ struct Builder<'a, F> { notes: Notes, /// The records [`Notes`] counted. noted: Vec, + /// Those records, in the order they were counted. + noted_log: Vec, /// The records counted as hidden layers left out. skipped: Vec, /// Those records, in the order they were counted. skip_log: Vec, + /// The records counted as knockouts not applied. + unknocked: Vec, + /// Those records, in the order they were counted. + unknock_log: Vec, + /// The records counted as layers clipped to a fill that isn't drawn. + clipped_out: Vec, + /// Those records, in the order they were counted. + clipped_out_log: Vec, + /// The records counted as clipped layers left unclipped. + unclipped: Vec, + /// Those records, in the order they were counted. + unclip_log: Vec, + /// The records that came in as layers of the document (hidden ones too, with `hidden`): not left + /// out, though a drawing for a merge that wasn't made counted them. + kept: Vec, /// Bytes of layer and mask pixels decoded, and of canvases the merges made, so far. spent: Cell, + /// Those bytes that merges not made, and merges a hidden layer would need, took: given back to + /// `spent` and counted here instead, against the same limit. + wasted: Cell, + /// `spent` when the innermost merge being tried began: until it is made or given up, it may + /// spend the whole allowance past that (see [`Self::spend`]). + trial: Cell, + /// The layers whose pixels were read so far (each time they were). + painted: Cell, + /// What each group gave when drawn alone without reading any layer's pixels (nothing, or a + /// canvas without pixels, whatever the memory left): drawing it again gives that without + /// walking its layers. + blank: Vec>, + /// The pass-through groups that laid nothing onto nothing (see [`Self::laid_nothing`]). + laid_blank: Vec, + /// The groups of both, in the order they were found. + blank_log: Vec, } impl [f32; 3]> Builder<'_, F> { @@ -779,10 +876,38 @@ impl [f32; 3]> Builder<'_, F> { } /// Count `bytes` of decoded pixels, or of a canvas a merge makes, against the whole import's - /// allowance, [`TOTAL_DECODED`] times the memory allowed for one image. + /// allowance, [`TOTAL_DECODED`] times the memory allowed for one image. While a merge is tried + /// (see [`Self::try_from_here`]), only what it spent counts against the allowance. fn spend(&self, bytes: u64) -> Result<(), String> { let total = self.spent.get().saturating_add(bytes); self.spent.set(total); + if total.saturating_sub(self.trial.get()) > self.max_alloc.saturating_mul(TOTAL_DECODED) { + return Err("the PSD file's layers take more memory to read than allowed".into()); + } + Ok(()) + } + + /// Start trying a merge that may not be made: what it spends counts against the whole + /// allowance, however much was spent before it. Gives what [`Self::tried`] takes back. + fn try_from_here(&self) -> u64 { + self.trial.replace(self.spent.get()) + } + + /// End the merge tried since [`Self::try_from_here`] gave `outer`. A merge that is `made` keeps + /// what it spent, which must then fit the allowance with what was spent before it. + fn tried(&self, outer: u64, made: bool) -> Result<(), String> { + self.trial.set(outer); + if made { self.spend(0) } else { Ok(()) } + } + + /// Move the bytes spent since `spent` was the count to [`Self::wasted`], which has an allowance + /// of its own as large: what a merge that isn't made decoded doesn't take the room for reading + /// the layers apart. + fn refund(&self, spent: u64) -> Result<(), String> { + let since = self.spent.get().saturating_sub(spent); + self.spent.set(self.spent.get().min(spent)); + let total = self.wasted.get().saturating_add(since); + self.wasted.set(total); if total > self.max_alloc.saturating_mul(TOTAL_DECODED) { return Err("the PSD file's layers take more memory to read than allowed".into()); } @@ -807,6 +932,7 @@ impl [f32; 3]> Builder<'_, F> { Paint::Cmyk(ink) => (self.cmyk)(ink), }; let px = image::Rgba([byte(rgb[0]), byte(rgb[1]), byte(rgb[2]), 255]); + self.painted.set(self.painted.get() + 1); return Ok(Some((0, 0, RgbaImage::from_pixel(h.width, h.height, px)))); } Content::Pixels | Content::Type | Content::Solid(_) | Content::Fill => rec.bounds.size(), @@ -838,6 +964,7 @@ impl [f32; 3]> Builder<'_, F> { let rgb = to_rgb(h, |c| planes.get(c).map_or(0.0, |p| at(p, linear, 0.0)), &self.cmyk); image::Rgba([byte(rgb[0]), byte(rgb[1]), byte(rgb[2]), byte(at(&alpha, false, 1.0))]) }); + self.painted.set(self.painted.get() + 1); Ok(Some((i64::from(rec.bounds.left), i64::from(rec.bounds.top), img))) } @@ -890,7 +1017,7 @@ impl [f32; 3]> Builder<'_, F> { for item in items { let (i, body) = match item { Item::Layer(i) => (*i, Body::Layer(*i)), - Item::Group(i, children) => (*i, Body::Group(children)), + Item::Group(i, children) => (*i, Body::Group(*i, children)), }; let rec = self.record(i)?; let (name, hidden, clipped, blend) = (rec.name.clone(), rec.hidden, rec.clipped, rec.blend); @@ -913,14 +1040,26 @@ impl [f32; 3]> Builder<'_, F> { Some(b) => { // Counted even when it draws nothing (an adjustment layer). self.note(i)?; - if !unclipped && self.clip(&mut out, b, &body, i, &name, blend, opacity)? { + // A clipped layer's knockout isn't applied. + if self.record(i)?.knockout != 0 { + self.unknock(i); + } + if let Some(u) = out.get_mut(b) { + u.base = true; + } + let spent = self.spent.get(); + let outer = self.try_from_here(); + let made = !unclipped && self.clip(&mut out, b, &body, i, &name, blend, opacity)?; + self.tried(outer, made)?; + if made { continue; } + self.refund(spent)?; // The merge doesn't fit: this layer and the next ones clipped to the same // base come in as layers of their own. unclipped = true; - self.notes.unclipped += 1; - out.push(Unit { name, visible: true, opacity, blend, mask_of: Some(i), record: i, body, clip: None }); + self.unclip(i); + out.push(Unit { name, visible: true, opacity, blend, mask_of: Some(i), record: i, body, clip: None, base: false }); } } continue; @@ -932,7 +1071,7 @@ impl [f32; 3]> Builder<'_, F> { continue; } self.note(i)?; - out.push(Unit { name, visible: !hidden, opacity, blend, mask_of: Some(i), record: i, body, clip: None }); + out.push(Unit { name, visible: !hidden, opacity, blend, mask_of: Some(i), record: i, body, clip: None, base: false }); base = Some(Some(out.len() - 1)); } for u in &mut out { @@ -955,7 +1094,7 @@ impl [f32; 3]> Builder<'_, F> { }; // A fill whose shape is a vector mask isn't drawn, and nothing clipped to it is either. if undrawn && u.clip.is_none() { - self.notes.clipped_out += 1; + self.clip_out(i); return Ok(true); } let layer = match self.draw_body(body, Some(i))? { @@ -1038,12 +1177,15 @@ impl [f32; 3]> Builder<'_, F> { // Once, though a merge may draw it again. match self.noted.get_mut(i) { Some(true) => return Ok(()), - Some(n) => *n = true, + Some(n) => { + *n = true; + self.noted_log.push(i); + } None => {} } - let (content, empty, effects, vector_mask, knockout) = { + let (content, empty, effects, vector_mask) = { let rec = self.record(i)?; - (rec.content, rec.stores_nothing(), rec.effects, rec.vector_mask, rec.knockout) + (rec.content, rec.stores_nothing(), rec.effects, rec.vector_mask) }; match content { Content::Type => self.notes.types += 1, @@ -1055,10 +1197,59 @@ impl [f32; 3]> Builder<'_, F> { } self.notes.effects += usize::from(effects); self.notes.vector_masks += usize::from(vector_mask); - self.notes.knockouts += usize::from(knockout); Ok(()) } + /// What [`Self::note`] has counted so far: the length of its log, and the counts. + fn noted_so_far(&self) -> (usize, [usize; 5]) { + let n = &self.notes; + (self.noted_log.len(), [n.types, n.adjustments, n.fills, n.effects, n.vector_masks]) + } + + /// Forget what [`Self::note`] counted since `so_far`, for layers that are left out. + fn unnote(&mut self, (logged, counts): (usize, [usize; 5])) { + for i in self.noted_log.split_off(logged) { + if let Some(n) = self.noted.get_mut(i) { + *n = false; + } + } + let n = &mut self.notes; + [n.types, n.adjustments, n.fills, n.effects, n.vector_masks] = counts; + } + + /// Count record `i` as a layer whose knockout isn't applied (once). + fn unknock(&mut self, i: usize) { + if let Some(s) = self.unknocked.get_mut(i) + && !*s + { + *s = true; + self.notes.knockouts += 1; + self.unknock_log.push(i); + } + } + + /// Does unit `u`, at `level` above the units `below` it, take a shallow knockout this import + /// applies? Only a layer or group in a group, neither clipped nor a base of clipped layers, does; + /// in a pass-through group, only when it and the visible units below it are in the Normal mode, so + /// that none of them blends with what is below the group. Any other knockout is counted as not + /// applied. One at 0 opacity, or with no visible unit below it, changes nothing below it: it needs + /// no merge, and a hidden one isn't left out for it. + fn knocks(&mut self, u: &Unit<'_>, below: &[Unit<'_>], level: Level) -> Result { + let rec = self.record(u.record)?; + if rec.knockout == 0 { + return Ok(false); + } + let normal = |u: &Unit<'_>| u.blend == Blend::Mode(BlendMode::Normal); + let blends_out = level == Level::Pass && !(normal(u) && below.iter().filter(|b| b.visible).all(normal)); + let applies = rec.knockout == 1 && level != Level::Top && !blends_out && !rec.clipped && !u.base && !matches!(u.body, Body::Merged(_)); + // Its fill opacity isn't checked: at 0 fill it still clears what is below it. + let changes = rec.opacity > 0.0 && below.iter().any(|b| b.visible); + if !applies { + self.unknock(u.record); + } + Ok(applies && changes) + } + /// Count record `i` as a hidden layer left out (once). fn skip(&mut self, i: usize) { if let Some(s) = self.skipped.get_mut(i) @@ -1070,21 +1261,93 @@ impl [f32; 3]> Builder<'_, F> { } } - /// `items`' units with the layers in blend modes VectorCraft lacks merged with those below. - fn merged<'i>(&mut self, items: &'i [Item], keep_hidden: bool) -> Result>, String> { + /// Count record `i` as a layer clipped to a fill that isn't drawn (once). + fn clip_out(&mut self, i: usize) { + if let Some(s) = self.clipped_out.get_mut(i) + && !*s + { + *s = true; + self.notes.clipped_out += 1; + self.clipped_out_log.push(i); + } + } + + /// Count record `i` as a clipped layer left unclipped (once). + fn unclip(&mut self, i: usize) { + if let Some(s) = self.unclipped.get_mut(i) + && !*s + { + *s = true; + self.notes.unclipped += 1; + self.unclip_log.push(i); + } + } + + /// `items`' units, at `level`, with the layers in blend modes VectorCraft lacks, and in a group + /// the layers with a shallow knockout, merged with those below. + fn merged<'i>(&mut self, items: &'i [Item], keep_hidden: bool, level: Level) -> Result>, String> { + #[cfg(test)] + { + let (walked, most) = WALKS.get(); + if walked >= most { + return Err("the import walked more layer lists than the test allows".into()); + } + WALKS.set((walked + 1, most)); + } let mut out: Vec> = vec![]; for mut u in self.units(items, keep_hidden)? { + // A hidden layer in a mode VectorCraft lacks would need the merge for its mode: it is left + // out without being drawn. + if !u.visible && matches!(u.blend, Blend::Other(_)) { + self.skip(u.record); + continue; + } + if self.knocks(&u, &out, level)? { + let saved = self.saved(); + let noted = self.noted_so_far(); + let outer = self.try_from_here(); + let knocked = self.knock(&out, &u)?; + self.tried(outer, u.visible && matches!(knocked, Knocked::Merged(_)))?; + match knocked { + // A hidden layer that would need the merge is left out, and nothing its drawing + // counted is counted. + Knocked::Merged(_) | Knocked::TooLarge if !u.visible => { + self.restore(saved)?; + self.unnote(noted); + self.skip(u.record); + continue; + } + Knocked::Merged(canvas) => { + self.take_merge(&mut out, &u, canvas); + if let Blend::Other(other) = u.blend + && !self.notes.merged.contains(&other.label()) + { + self.notes.merged.push(other.label()); + } + continue; + } + // Nothing below it, or nothing of its own, to knock out: it comes in as a layer, + // with the hidden layers its drawing left out (see `kept`). What its drawing + // read is read again when it comes in. A hidden one may still be left out by a + // later merge: what its drawing counted is counted when it comes in instead. + Knocked::Nothing if !u.visible => { + self.restore(saved)?; + self.unnote(noted); + } + Knocked::Nothing => self.refund(saved.spent)?, + Knocked::TooLarge => { + self.restore(saved)?; + self.unknock(u.record); + } + } + } let Blend::Other(other) = u.blend else { out.push(u); continue; }; - // A hidden layer that would need the merge is left out. - if !u.visible { - self.skip(u.record); - continue; - } // A merge that can't be made counts nothing its groups would have counted. - let saved = self.notes.counts(self.skip_log.len()); + let saved = self.saved(); + let outer = self.try_from_here(); let made = match out.as_mut_slice() { // Onto the previous merge alone: composited onto its canvas, in place. [prev] if prev.is_merge() => { @@ -1106,45 +1369,19 @@ impl [f32; 3]> Builder<'_, F> { } _ => match self.merge(&out, &u)? { Some(canvas) => { - let mut name = String::new(); - for (k, b) in out.iter_mut().filter(|b| b.visible).enumerate() { - if k == 0 { - name = std::mem::take(&mut b.name); - } else { - name.push_str(" + "); - name.push_str(&b.name); - } - } - if out.iter().any(|b| b.visible) { - name.push_str(" + "); - } - name.push_str(&u.name); - // Hidden layers below are left out with the rest. - for b in out.iter().filter(|b| !b.visible).map(|b| b.record).collect::>() { - self.skip(b); - } - out.clear(); - out.push(Unit { - name, - visible: true, - opacity: 1.0, - blend: Blend::Mode(BlendMode::Normal), - mask_of: None, - record: u.record, - body: Body::Merged(canvas), - clip: None, - }); + self.take_merge(&mut out, &u, canvas); true } None => false, }, }; + self.tried(outer, made)?; if made { if !self.notes.merged.contains(&other.label()) { self.notes.merged.push(other.label()); } } else { - self.restore(saved); + self.restore(saved)?; self.notes.unmerged += 1; u.blend = Blend::Mode(BlendMode::Normal); out.push(u); @@ -1153,18 +1390,51 @@ impl [f32; 3]> Builder<'_, F> { Ok(out) } - /// The counts as they were before a merge that couldn't be made. - fn restore(&mut self, c: Counts) { + /// The counts as they are, for [`Self::restore`]. + fn saved(&self) -> Counts { + self.notes.counts(self.spent.get(), self.skip_log.len(), self.unknock_log.len(), self.blank_log.len()) + } + + /// The counts as they were before a merge that couldn't be made, the bytes it spent counted as + /// wasted (see [`Self::refund`]). + fn restore(&mut self, c: Counts) -> Result<(), String> { + self.refund(c.spent)?; for i in self.skip_log.split_off(c.skipped) { if let Some(s) = self.skipped.get_mut(i) { *s = false; self.notes.hidden = self.notes.hidden.saturating_sub(1); } } + for i in self.unknock_log.split_off(c.unknocked) { + if let Some(s) = self.unknocked.get_mut(i) { + *s = false; + self.notes.knockouts = self.notes.knockouts.saturating_sub(1); + } + } + // The groups found since: what their drawing counted is given back, so they are drawn again. + for g in self.blank_log.split_off(c.blank) { + if let Some(b) = self.blank.get_mut(g) { + *b = None; + } + if let Some(b) = self.laid_blank.get_mut(g) { + *b = false; + } + } + for i in self.unclip_log.split_off(c.unclipped) { + if let Some(s) = self.unclipped.get_mut(i) { + *s = false; + self.notes.unclipped = self.notes.unclipped.saturating_sub(1); + } + } + for i in self.clipped_out_log.split_off(c.clipped_out) { + if let Some(s) = self.clipped_out.get_mut(i) { + *s = false; + self.notes.clipped_out = self.notes.clipped_out.saturating_sub(1); + } + } self.notes.merged.truncate(c.merged); self.notes.unmerged = c.unmerged; - self.notes.unclipped = c.unclipped; - self.notes.clipped_out = c.clipped_out; + Ok(()) } /// The visible units `below` with `top` composited over them; `None` when the canvas would need @@ -1179,24 +1449,169 @@ impl [f32; 3]> Builder<'_, F> { Ok(Some(acc.unwrap_or_default())) } + /// `out` replaced by one layer: `canvas`, the merge of its visible units with `top`, named after + /// them, bottom first. Its hidden units are left out. + fn take_merge<'i>(&mut self, out: &mut Vec>, top: &Unit<'_>, canvas: Canvas) { + let mut name = String::new(); + for (k, b) in out.iter_mut().filter(|b| b.visible).enumerate() { + if k == 0 { + name = std::mem::take(&mut b.name); + } else { + name.push_str(" + "); + name.push_str(&b.name); + } + } + if out.iter().any(|b| b.visible) { + name.push_str(" + "); + } + name.push_str(&top.name); + // Hidden layers below are left out with the rest. + for b in out.iter().filter(|b| !b.visible).map(|b| b.record).collect::>() { + self.skip(b); + } + out.clear(); + out.push(Unit { + name, + visible: true, + opacity: 1.0, + blend: Blend::Mode(BlendMode::Normal), + mask_of: None, + record: top.record, + body: Body::Merged(canvas), + clip: None, + base: false, + }); + } + + /// The visible units `below` with `top`, a layer with a shallow knockout, knocking them out: where + /// `top` has pixels, what is below it in its group is cleared to transparency (the group's own + /// backdrop) and `top` is drawn there at its fill opacity; its opacity then fades all of that + /// back toward the units below as they were. Its layer mask shapes the cut. + fn knock(&mut self, below: &[Unit<'_>], top: &Unit<'_>) -> Result { + let (fill, opacity) = { + let rec = self.record(top.record)?; + (rec.fill, rec.opacity) + }; + let k = match self.draw_body(&top.body, top.mask_of)? { + Drawn::Nothing => return Ok(Knocked::Nothing), + Drawn::TooLarge => return Ok(Knocked::TooLarge), + Drawn::Canvas(c) if c.px.iter().all(|p| p[3] <= 0.0) => return Ok(Knocked::Nothing), + Drawn::Canvas(c) => c, + }; + // At 0 fill, beside every layer below it, it cuts nothing: no canvas for them is needed. + if fill <= 0.0 && self.beside(below, &k)? { + return Ok(Knocked::Nothing); + } + // The layer's canvas is held while the units below are drawn. + let bytes = 16 * k.px.len() as u64; + self.held = self.held.saturating_add(bytes); + let mut acc: Option = None; + let mut drawn = Ok(true); + for u in below.iter().filter(|u| u.visible) { + drawn = self.composite(&mut acc, u); + if !matches!(drawn, Ok(true)) { + break; + } + } + self.held = self.held.saturating_sub(bytes); + if !drawn? { + return Ok(Knocked::TooLarge); + } + // Nothing below draws. + let Some(below) = acc.as_ref() else { return Ok(Knocked::Nothing) }; + // At 0 fill it draws nothing of its own: where it cuts no painted pixel below, no canvas for + // the merge is needed. + if fill <= 0.0 && !cuts_paint(below, &k, top.blend, opacity, top.record) { + return Ok(Knocked::Nothing); + } + let clear = |c: &Canvas| c.px.iter().all(|p| p[3] <= 0.0); + let below_clear = clear(below); + if !knock_onto(&mut acc, &k, top.blend, fill, opacity, top.record, self.room(), &|n| self.spend(n))? { + return Ok(Knocked::TooLarge); + } + // Nothing below to cut, and nothing of its own drawn at its fill opacity. + if below_clear && acc.as_ref().is_none_or(clear) { + return Ok(Knocked::Nothing); + } + Ok(acc.map_or(Knocked::Nothing, Knocked::Merged)) + } + + /// Do the pixels `knock` paints lie outside the bounds of every visible unit `below`? Only the + /// bounds of layers and of merged canvases are known without drawing them: with a group below, + /// `false`. + fn beside(&self, below: &[Unit<'_>], knock: &Canvas) -> Result { + let width = knock.width.max(1); + let mut painted: Option<[i64; 4]> = None; + for (k, _) in knock.px.iter().enumerate().filter(|(_, p)| p[3] > 0.0) { + let (x, y) = (knock.left + (k % width) as i64, knock.top + (k / width) as i64); + painted = Some(painted.map_or([x, y, x + 1, y + 1], |[l, t, r, b]| [l.min(x), t.min(y), r.max(x + 1), b.max(y + 1)])); + } + let Some([left, top, right, bottom]) = painted else { return Ok(true) }; + for u in below.iter().filter(|u| u.visible) { + let [l, t, r, b] = match &u.body { + Body::Merged(c) => [c.left, c.top, c.left + c.width as i64, c.top + c.height as i64], + Body::Layer(i) => { + let rec = self.record(*i)?; + match rec.content { + Content::Adjustment => continue, + Content::Solid(Some(_)) if rec.color_over_canvas() => [0, 0, i64::from(self.h.width), i64::from(self.h.height)], + _ => { + let (w, h) = rec.bounds.size(); + let (l, t) = (i64::from(rec.bounds.left), i64::from(rec.bounds.top)); + [l, t, l + w as i64, t + h as i64] + } + } + } + Body::Group(..) => return Ok(false), + }; + if l < right && left < r && t < bottom && top < b { + return Ok(false); + } + } + Ok(true) + } + /// The bytes a merge step may still take: the memory allowed, less the copies of what is below /// the pass-through groups being merged. fn room(&self) -> u64 { self.max_alloc.saturating_sub(self.held) } + /// Note pass-through group `g` as laying nothing onto nothing when `acc`, nothing before, still + /// is and no layer's pixels were read since `painted`: laying its layers onto nothing again + /// gives nothing, with the same notes. + fn laid_nothing(&mut self, g: usize, acc: &Option, painted: usize) { + if acc.is_none() + && self.painted.get() == painted + && let Some(b) = self.laid_blank.get_mut(g) + && !*b + { + *b = true; + self.blank_log.push(g); + } + } + /// Unit `u` composited onto `acc`. A pass-through group lays its layers onto `acc` one by one, /// so that they blend with what is below it; at less than full opacity or with a layer mask, the /// result is then faded back toward `acc` as it was by the opacity and the mask. Anything else /// is drawn alone first. `false` when the canvas would need more memory than allowed. fn composite(&mut self, acc: &mut Option, u: &Unit<'_>) -> Result { - if let (Body::Group(items), Blend::Pass) = (&u.body, u.blend) { + if let (Body::Group(g, items), Blend::Pass) = (&u.body, u.blend) { let mask = match u.mask_of { Some(i) if self.has_mask(Some(i))? => self.mask(i, false)?, _ => None, }; + // Onto nothing, a group that laid nothing onto nothing before lays nothing again. + let (fresh, painted) = (acc.is_none(), self.painted.get()); + if fresh && self.laid_blank.get(*g) == Some(&true) { + return Ok(true); + } if u.opacity >= 1.0 && mask.is_none() { - return self.lay(acc, items); + let laid = self.lay(acc, items, Level::Pass)?; + if laid && fresh { + self.laid_nothing(*g, acc, painted); + } + return Ok(laid); } let bytes = acc.as_ref().map_or(0, |c| 16 * c.px.len() as u64); if bytes > self.room() { @@ -1205,11 +1620,14 @@ impl [f32; 3]> Builder<'_, F> { self.spend(bytes)?; let below = acc.clone(); self.held = self.held.saturating_add(bytes); - let laid = self.lay(acc, items); + let laid = self.lay(acc, items, Level::Pass); self.held = self.held.saturating_sub(bytes); if !laid? { return Ok(false); } + if fresh { + self.laid_nothing(*g, acc, painted); + } if let Some(after) = acc.as_mut() { fade(after, below.as_ref(), u.opacity, mask.as_ref()); } @@ -1223,10 +1641,10 @@ impl [f32; 3]> Builder<'_, F> { blend_onto(acc, &c, u.blend, u.opacity, u.record, self.room(), &|n| self.spend(n)) } - /// `items`' layers composited onto `acc` one by one; `false` when a canvas would need more - /// memory than allowed. - fn lay(&mut self, acc: &mut Option, items: &[Item]) -> Result { - for c in self.merged(items, false)? { + /// `items`' layers, the layers of a group at `level`, composited onto `acc` one by one; `false` + /// when a canvas would need more memory than allowed. + fn lay(&mut self, acc: &mut Option, items: &[Item], level: Level) -> Result { + for c in self.merged(items, false, level)? { if !self.composite(acc, &c)? { return Ok(false); } @@ -1264,13 +1682,29 @@ impl [f32; 3]> Builder<'_, F> { } None => return Ok(Drawn::Nothing), }, - Body::Group(items) => { - let mut acc: Option = None; - if !self.lay(&mut acc, items)? { - return Ok(Drawn::TooLarge); + Body::Group(g, items) => { + let drawn = match self.blank.get(*g).cloned().flatten() { + Some(d) => d, + None => { + let painted = self.painted.get(); + let mut acc: Option = None; + if !self.lay(&mut acc, items, Level::Group)? { + return Ok(Drawn::TooLarge); + } + let d = acc.map_or(Drawn::Nothing, Drawn::Canvas); + if self.painted.get() == painted + && let Some(b) = self.blank.get_mut(*g) + { + *b = Some(d.clone()); + self.blank_log.push(*g); + } + d + } + }; + match drawn { + Drawn::Canvas(c) => c, + other => return Ok(other), } - let Some(acc) = acc else { return Ok(Drawn::Nothing) }; - acc } }; if let Some(i) = mask_of { @@ -1299,10 +1733,10 @@ impl [f32; 3]> Builder<'_, F> { Ok(n) } - /// Layers of the document for `items`, bottom first. - fn list(&mut self, items: &[Item]) -> Result>, String> { + /// Layers of the document for `items`, the layers at `level`, bottom first. + fn list(&mut self, items: &[Item], level: Level) -> Result>, String> { let mut out = vec![]; - for u in self.merged(items, self.hidden)? { + for u in self.merged(items, self.hidden, level)? { if let Some(n) = self.node(u)? { out.push(Arc::new(n)); } @@ -1313,6 +1747,9 @@ impl [f32; 3]> Builder<'_, F> { /// The layer of the document unit `u` becomes; `None` for a layer that draws nothing (an /// adjustment layer, or one without pixels). fn node(&mut self, u: Unit<'_>) -> Result, String> { + if let Some(k) = self.kept.get_mut(u.record) { + *k = true; + } let children = match &u.body { Body::Layer(i) => match self.image(*i)? { Some((left, top, img)) => vec![Arc::new(self.image_node(&u.name, left, top, img)?)], @@ -1322,13 +1759,13 @@ impl [f32; 3]> Builder<'_, F> { Some((left, top, img)) => vec![Arc::new(self.image_node(&u.name, left, top, img)?)], None => return Ok(None), }, - Body::Group(items) => self.list(items)?, + Body::Group(_, items) => self.list(items, if u.blend == Blend::Pass { Level::Pass } else { Level::Group })?, }; let mut layer = self.layer(&u.name); layer.visible = u.visible; layer.opacity = u.opacity.clamp(0.0, 1.0); (layer.blend, layer.isolate) = match u.blend { - Blend::Mode(m) => (m, matches!(u.body, Body::Group(_))), + Blend::Mode(m) => (m, matches!(u.body, Body::Group(..))), Blend::Pass | Blend::Other(_) => (BlendMode::Normal, false), }; if let Some(c) = layer.children_mut() { @@ -1436,6 +1873,71 @@ fn blend_onto( max_alloc: u64, spend: &dyn Fn(u64) -> Result<(), String>, ) -> Result { + if !cover(acc, src, max_alloc, spend)? { + return Ok(false); + } + let Some(out) = acc.as_mut() else { return Ok(false) }; + // Only the source's rows and columns change. + let (sw, x0, y0) = (src.width.max(1), (src.left - out.left) as usize, (src.top - out.top) as usize); + for (k, s) in src.px.iter().enumerate() { + let Some(p) = out.px.get_mut((y0 + k / sw) * out.width + x0 + k % sw) else { continue }; + let a = coverage(blend, s[3] * opacity, src.left + (k % sw) as i64, src.top + (k / sw) as i64, record); + *p = over(blend, *p, [s[0], s[1], s[2], a]); + } + Ok(true) +} + +/// `knock` (of record `record`, in `blend`, with its `fill` and `opacity`), a layer with a shallow +/// knockout, knocking out `acc`, on a canvas covering both, as [`blend_onto`] makes it. Where +/// `knock` has pixels, its transparency is the share of `acc` cleared and replaced by its color at +/// `fill`; `opacity` then fades that back toward `acc` (in Dissolve, each pixel is cleared fully +/// or not at all, at the share its transparency times `opacity` gives). `false`, with `acc` as it +/// was, when the canvases would take more than `max_alloc` bytes. +#[allow(clippy::too_many_arguments)] +fn knock_onto( + acc: &mut Option, + knock: &Canvas, + blend: Blend, + fill: f32, + opacity: f32, + record: usize, + max_alloc: u64, + spend: &dyn Fn(u64) -> Result<(), String>, +) -> Result { + if !cover(acc, knock, max_alloc, spend)? { + return Ok(false); + } + let Some(out) = acc.as_mut() else { return Ok(false) }; + let (fill, opacity) = (fill.clamp(0.0, 1.0), opacity.clamp(0.0, 1.0)); + let (kw, x0, y0) = (knock.width.max(1), (knock.left - out.left) as usize, (knock.top - out.top) as usize); + for (k, s) in knock.px.iter().enumerate() { + let Some(p) = out.px.get_mut((y0 + k / kw) * out.width + x0 + k % kw) else { continue }; + let t = coverage(blend, s[3].clamp(0.0, 1.0) * opacity, knock.left + (k % kw) as i64, knock.top + (k / kw) as i64, record); + let below = p[3].clamp(0.0, 1.0); + let alpha = (1.0 - t) * below + t * fill; + if alpha <= 0.0 { + *p = [0.0; 4]; + continue; + } + let mix = |i: usize| ((1.0 - t) * below * p[i] + t * fill * s[i]) / alpha; + *p = [mix(0), mix(1), mix(2), alpha]; + } + Ok(true) +} + +/// Does `knock`, as [`knock_onto`] takes it, clear any of a pixel of `below` that has paint? +fn cuts_paint(below: &Canvas, knock: &Canvas, blend: Blend, opacity: f32, record: usize) -> bool { + let (kw, opacity) = (knock.width.max(1), opacity.clamp(0.0, 1.0)); + knock.px.iter().enumerate().any(|(k, s)| { + let (x, y) = (knock.left + (k % kw) as i64, knock.top + (k / kw) as i64); + below.get(x, y).is_some_and(|b| b[3] > 0.0) && coverage(blend, s[3].clamp(0.0, 1.0) * opacity, x, y, record) > 0.0 + }) +} + +/// `acc` grown, when it doesn't already, to a canvas covering itself and `src` (a new one counted +/// with `spend`). `false`, with `acc` as it was, when the canvases held, `acc` and `src` and a +/// larger canvas when one is needed, would take more than `max_alloc` bytes. +fn cover(acc: &mut Option, src: &Canvas, max_alloc: u64, spend: &dyn Fn(u64) -> Result<(), String>) -> Result { let (mut left, mut top, mut right, mut bottom) = (src.left, src.top, src.left + src.width as i64, src.top + src.height as i64); if let Some(a) = acc.as_ref() { left = left.min(a.left); @@ -1468,14 +1970,6 @@ fn blend_onto( } *acc = Some(out); } - let Some(out) = acc.as_mut() else { return Ok(false) }; - // Only the source's rows and columns change. - let (sw, x0, y0) = (src.width.max(1), (src.left - left) as usize, (src.top - top) as usize); - for (k, s) in src.px.iter().enumerate() { - let Some(p) = out.px.get_mut((y0 + k / sw) * width + x0 + k % sw) else { continue }; - let a = coverage(blend, s[3] * opacity, src.left + (k % sw) as i64, src.top + (k / sw) as i64, record); - *p = over(blend, *p, [s[0], s[1], s[2], a]); - } Ok(true) } @@ -1514,11 +2008,27 @@ pub(super) fn import( layers: 0, notes: Notes::default(), noted: vec![false; records.len()], + noted_log: vec![], skipped: vec![false; records.len()], skip_log: vec![], + unknocked: vec![false; records.len()], + unknock_log: vec![], + clipped_out: vec![false; records.len()], + clipped_out_log: vec![], + unclipped: vec![false; records.len()], + unclip_log: vec![], + kept: vec![false; records.len()], spent: Cell::new(0), + wasted: Cell::new(0), + trial: Cell::new(0), + painted: Cell::new(0), + blank: vec![None; records.len()], + laid_blank: vec![false; records.len()], + blank_log: vec![], }; - let layers = b.list(&items)?; + let layers = b.list(&items, Level::Top)?; + // A drawing for a knockout or a clip leaves hidden layers out; those that came in anyway aren't. + b.notes.hidden = b.skipped.iter().zip(&b.kept).filter(|&(s, k)| *s && !*k).count(); let Builder { mut doc, notes, .. } = b; if !layers.is_empty() { doc.layers = layers; diff --git a/crates/engine/src/cmd/fileio/psdslices.rs b/crates/engine/src/cmd/fileio/psdslices.rs index cf5506ff3b..974b48ec2c 100644 --- a/crates/engine/src/cmd/fileio/psdslices.rs +++ b/crates/engine/src/cmd/fileio/psdslices.rs @@ -175,8 +175,9 @@ fn skip_record(r: &mut Reader<'_>) -> Result<(), String> { /// Versions 7 and 8: the descriptor's `slices` list, each slice an object. fn from_descriptor(d: &[(String, Value)]) -> Result, String> { let Some(Value::List(list)) = field(d, "slices") else { return Err("the slices' descriptor has no list of slices".into()) }; - if list.len() > MAX_SLICES { - return Err(format!("the file has {} slices, more than the {MAX_SLICES} read", list.len())); + let count = list.len(); + if count > MAX_SLICES { + return Err(format!("the file has {count} slices, more than the {MAX_SLICES} read")); } let mut out = vec![]; for s in list { diff --git a/crates/engine/src/cmd/fileio/tests_psdlayers.rs b/crates/engine/src/cmd/fileio/tests_psdlayers.rs index 6c227c0e17..d197658c20 100644 --- a/crates/engine/src/cmd/fileio/tests_psdlayers.rs +++ b/crates/engine/src/cmd/fileio/tests_psdlayers.rs @@ -646,6 +646,431 @@ fn dissolve_layers_merge_as_opaque_or_transparent_pixels() { assert!((32..=96).contains(&red), "{red} of 256 pixels show the lower layer: {r}"); } +/// A layer with a Knockout value of `knko` and a fill opacity of `fill`. +fn knockout(l: L, knko: u8, fill: u8) -> L { + let mut l = l; + l.blocks.push((*b"knko", vec![knko, 0, 0, 0])); + l.blocks.push((*b"iOpa", vec![fill])); + l +} + +/// A green layer under a group of `group_blend` holding a red layer and `cut` above it. +fn knockout_stack(group_blend: &'static [u8; 4], cut: L) -> Vec { + vec![ + layer("Outside", [0, 0, 4, 4], [0, 255, 0, 255]), + group_end(), + layer("Lower", [0, 0, 4, 4], [255, 0, 0, 255]), + cut, + group("Group", group_blend), + ] +} + +/// The names of the document's layers, and of the layers in its second one. +fn knockout_names(s: &Session) -> (Vec, Vec) { + let d = &s.doc().unwrap().doc; + let names = |ls: &[std::sync::Arc]| ls.iter().map(|l| name(l).to_string()).collect::>(); + (names(&d.layers), d.layers.get(1).and_then(|g| g.children()).map_or(vec![], |c| names(c))) +} + +/// A layer with a shallow knockout in a group merges with the layers below it in the group: its +/// shape clears them to transparency, it draws there at its fill opacity, and its opacity fades +/// that. What is outside the group stays a layer of its own and shows through. +#[test] +fn knockout_layers_merge_with_the_layers_below_them_in_their_group() { + let cut = |fill: u8, opacity: u8| knockout(L { opacity, ..layer("Cut", [0, 0, 2, 2], [0, 0, 255, 255]) }, 1, fill); + for (fill, opacity, at_cut) in [(0, 255, [0, 0, 0, 0]), (128, 255, [0, 0, 255, 128]), (0, 128, [255, 0, 0, 127]), (255, 255, [0, 0, 255, 255])] { + for group_blend in [b"norm", b"pass"] { + let (s, r) = open(&file(4, 4, &knockout_stack(group_blend, cut(fill, opacity)), 8, false, false), json!({})); + assert_eq!(r["warnings"], json!([]), "{r}"); + let (top, inner) = knockout_names(&s); + assert_eq!((top, inner), (vec!["Outside".to_string(), "Group".into()], vec!["Lower + Cut".to_string()]), "{fill} {opacity}"); + let d = &s.doc().unwrap().doc; + assert_eq!(d.layers[1].isolate, group_blend == b"norm"); + let ((x, y), px) = image_of(&s, &d.layers[1].children().unwrap()[0]); + assert_eq!(((x, y), px.dimensions()), ((0.0, 0.0), (4, 4))); + assert_eq!((px.get_pixel(1, 1).0, px.get_pixel(3, 3).0), (at_cut, [255, 0, 0, 255]), "{fill} {opacity}"); + } + } + // A layer mask shapes the cut: where it hides the layer, nothing below is cleared. + let mut masked = cut(0, 255); + masked.mask = Some(([0, 0, 1, 1], 255, 0, vec![0])); + let (s, r) = open(&file(4, 4, &knockout_stack(b"norm", masked), 8, false, false), json!({})); + let px = image_of(&s, &s.doc().unwrap().doc.layers[1].children().unwrap()[0]).1; + assert_eq!((px.get_pixel(0, 0).0, px.get_pixel(1, 1).0), ([255, 0, 0, 255], [0, 0, 0, 0]), "{r}"); + // Without a knockout (0), the layers stay apart. + let (s, r) = + open(&file(4, 4, &knockout_stack(b"norm", knockout(layer("Cut", [0, 0, 2, 2], [0, 0, 255, 255]), 0, 0)), 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower".to_string(), "Cut".into()], &json!([])), "{r}"); +} + +/// The knockouts this import doesn't apply come in as layers, counted in a warning: at the top level, +/// on a clipped layer, and with a Knockout value other than 1. Hidden ones that would need the merge +/// are left out; one that draws nothing, or nothing below it, merges nothing. +#[test] +fn knockouts_that_arent_applied_are_said() { + const UNAPPLIED: &str = "the knockout of 1 layer wasn't applied"; + let cut = |l: L, knko: u8| knockout(l, knko, 0); + let blue = || layer("Cut", [0, 0, 2, 2], [0, 0, 255, 255]); + // At the top level. + let layers = [layer("Lower", [0, 0, 4, 4], [255, 0, 0, 255]), cut(blue(), 1)]; + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({})); + assert_eq!((knockout_names(&s).0, &r["warnings"]), (vec!["Lower".to_string(), "Cut".into()], &json!([UNAPPLIED])), "{r}"); + // Another Knockout value, and a clipped layer, in a group. + let (s, r) = open(&file(4, 4, &knockout_stack(b"norm", cut(blue(), 2)), 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower".to_string(), "Cut".into()], &json!([UNAPPLIED])), "{r}"); + let (s, r) = open(&file(4, 4, &knockout_stack(b"norm", cut(L { clipped: true, ..blue() }, 1)), 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower + Cut".to_string()], &json!([UNAPPLIED])), "{r}"); + // In a pass-through group, a layer below it, or the knockout itself, in another mode blends with + // what is outside the group: the layers stay apart, and the lower one still multiplies the green + // outside. In an isolated group they merge. + let mut multiply = knockout_stack(b"pass", cut(blue(), 1)); + multiply[2].blend = b"mul "; + let (s, r) = open(&file(4, 4, &multiply, 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower".to_string(), "Cut".into()], &json!([UNAPPLIED])), "{r}"); + assert_eq!(s.doc().unwrap().doc.layers[1].children().unwrap()[0].blend, BlendMode::Multiply); + let (s, r) = open(&file(4, 4, &knockout_stack(b"pass", cut(L { blend: b"mul ", ..blue() }, 1)), 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower".to_string(), "Cut".into()], &json!([UNAPPLIED])), "{r}"); + multiply[4] = group("Group", b"norm"); + let (s, r) = open(&file(4, 4, &multiply, 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower + Cut".to_string()], &json!([])), "{r}"); + // A hidden knockout would need the merge: left out, hidden layers asked for or not. + for hidden in [false, true] { + let (s, r) = + open(&file(4, 4, &knockout_stack(b"norm", cut(L { hidden: true, ..blue() }, 1)), 8, false, false), json!({"hiddenLayers": hidden})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (vec!["Lower".to_string()], &json!([HIDDEN_1])), "{hidden}: {r}"); + } + // One that stores no pixels or only transparent ones cuts nothing, and merges nothing. + for (l, inner) in [(L { bare: true, ..blue() }, vec!["Lower"]), (layer("Cut", [0, 0, 2, 2], [0, 0, 255, 0]), vec!["Lower", "Cut"])] { + let (s, r) = open(&file(4, 4, &knockout_stack(b"norm", cut(l, 1)), 8, false, false), json!({})); + assert_eq!((knockout_names(&s).1, &r["warnings"]), (inner.iter().map(|n| n.to_string()).collect(), &json!([])), "{r}"); + } + // Nothing below it in its group: it comes in as a layer. + let layers = [group_end(), cut(blue(), 1), group("Group", b"norm"), layer("Over", [0, 0, 1, 1], [9, 9, 9, 255])]; + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({})); + let d = &s.doc().unwrap().doc; + assert_eq!(d.layers[0].children().unwrap().iter().map(|c| name(c)).collect::>(), ["Cut"], "{r}"); + assert_eq!(r["warnings"], json!([]), "{r}"); +} + +/// A knockout that changes nothing below it leaves the layers apart, hidden ones included: one at 0 +/// opacity, one at 0 fill over layers that are transparent or beside their painted pixels, and one +/// whose layer mask hides all of it. At 0 fill over painted layers, and +/// at a fill over transparent ones, it still merges. A knockout at 0 fill over a transparent layer +/// stays apart without a warning when their merge would need more memory than allowed. +#[test] +fn knockouts_that_change_nothing_keep_the_layers_apart() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let layers = [ + group_end(), + layer("Lower", [0, 0, 2, 2], [255, 0, 0, 0]), + knockout(layer("Cut", [2, 2, 4, 4], [0, 0, 255, 255]), 1, 0), + group("Group", b"norm"), + ]; + // The two 2 × 2 layers drawn together fit 256 bytes, but not the 4 × 4 canvas covering both. + let (doc, warnings) = psdlayers::import(&file(4, 4, &layers, 8, false, false), false, 256, cms).unwrap().unwrap(); + assert_eq!(doc.layers[0].children().unwrap().iter().map(|c| name(c)).collect::>(), ["Lower", "Cut"]); + assert!(warnings.is_empty(), "{warnings:?}"); + let lower = |alpha: u8| layer("Lower", [0, 0, 4, 4], [255, 0, 0, alpha]); + let hidden = L { hidden: true, ..layer("Hidden", [0, 0, 4, 4], [0, 255, 0, 255]) }; + let cut = |fill: u8, opacity: u8| knockout(L { opacity, ..layer("Cut", [0, 0, 2, 2], [0, 0, 255, 255]) }, 1, fill); + let inner = |s: &Session| s.doc().unwrap().doc.layers[0].children().map_or(vec![], |c| c.iter().map(|l| name(l).to_string()).collect::>()); + for (alpha, fill, opacity, apart) in [(255, 0, 0, true), (0, 0, 255, true), (255, 0, 255, false), (0, 128, 255, false)] { + let layers = [group_end(), lower(alpha), hidden.clone(), cut(fill, opacity), group("Group", b"norm")]; + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({"hiddenLayers": true})); + let (names, warnings) = if apart { (vec!["Lower", "Hidden", "Cut"], json!([])) } else { (vec!["Lower + Cut"], json!([HIDDEN_1])) }; + assert_eq!((inner(&s), &r["warnings"]), (names.iter().map(|n| n.to_string()).collect(), &warnings), "{alpha} {fill} {opacity}: {r}"); + } + // A hidden knockout that needs no merge comes in with hidden layers: at 0 opacity, with nothing + // below it in its group, at 0 fill beside the painted pixels below it, and with a layer mask that + // hides all of it. + let hidden_cut = |opacity: u8| L { hidden: true, ..cut(0, opacity) }; + let beside = L { hidden: true, ..knockout(layer("Cut", [0, 0, 2, 2], [0, 0, 255, 255]), 1, 0) }; + let masked = L { hidden: true, mask: Some(([0, 0, 2, 2], 0, 0, vec![0; 4])), ..cut(255, 255) }; + for (layers, names) in [ + (vec![group_end(), lower(255), hidden_cut(0), group("Group", b"norm")], vec!["Lower", "Cut"]), + (vec![group_end(), hidden_cut(255), group("Group", b"norm")], vec!["Cut"]), + (vec![group_end(), layer("Lower", [2, 2, 4, 4], [255, 0, 0, 255]), beside, group("Group", b"norm")], vec!["Lower", "Cut"]), + (vec![group_end(), lower(255), masked.clone(), group("Group", b"norm")], vec!["Lower", "Cut"]), + ] { + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({"hiddenLayers": true})); + assert_eq!((inner(&s), &r["warnings"]), (names.iter().map(|n| n.to_string()).collect(), &json!([])), "{r}"); + } + // With the mask switched off it would need the merge, and is left out. + let unmasked = L { mask: Some(([0, 0, 2, 2], 0, 2, vec![0; 4])), ..masked }; + let (s, r) = open(&file(4, 4, &[group_end(), lower(255), unmasked, group("Group", b"norm")], 8, false, false), json!({"hiddenLayers": true})); + assert_eq!((inner(&s), &r["warnings"]), (vec!["Lower".to_string()], &json!([HIDDEN_1])), "{r}"); + // A hidden knockout group that would need the merge is counted once, as a hidden layer left out: + // its type layer and its own hidden layer aren't counted. + let mut words = layer("Words", [0, 0, 2, 2], [0, 0, 0, 255]); + words.blocks.push((*b"TySh", vec![0; 4])); + let layers = [ + group_end(), + lower(255), + group_end(), + words.clone(), + L { hidden: true, ..layer("Inner", [0, 0, 2, 2], [0, 0, 255, 255]) }, + L { hidden: true, ..knockout(group("Cut", b"norm"), 1, 255) }, + group("Group", b"norm"), + ]; + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({"hiddenLayers": true})); + assert_eq!((inner(&s), &r["warnings"]), (vec!["Lower".to_string()], &json!([HIDDEN_1])), "{r}"); + // One whose layer mask hides all of it needs no merge, but a knockout above it merges the layers + // and leaves it out: it is counted once, without its type layer. + let layers = [ + group_end(), + lower(255), + group_end(), + words, + L { hidden: true, mask: Some(([0, 0, 2, 2], 0, 0, vec![0; 4])), ..knockout(group("Masked", b"norm"), 1, 255) }, + cut(0, 255), + group("Group", b"norm"), + ]; + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({"hiddenLayers": true})); + assert_eq!((inner(&s), &r["warnings"]), (vec!["Lower + Cut".to_string()], &json!([HIDDEN_1])), "{r}"); +} + +/// With hidden layers asked for, the hidden layers of a group drawn for a knockout or a clip that +/// isn't made come in, and aren't counted as left out: a knockout group over a layer that stores no +/// pixels, and a clipped group whose merge needs more memory than allowed. +#[test] +fn hidden_layers_of_a_group_drawn_for_a_merge_not_made_come_in() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let children = |l: &Node| l.children().map_or(vec![], |c| c.iter().map(|l| (name(l).to_string(), l.visible)).collect::>()); + let shown_and_hidden = + || [group_end(), layer("Shown", [0, 0, 2, 2], [0, 0, 255, 255]), L { hidden: true, ..layer("Hidden", [2, 2, 4, 4], [0, 255, 0, 255]) }]; + let both = vec![("Shown".to_string(), true), ("Hidden".to_string(), false)]; + // A knockout group over a layer that stores no pixels. + let mut layers = vec![group_end(), L { bare: true, ..layer("Lower", [0, 0, 2, 2], [0; 4]) }]; + layers.extend(shown_and_hidden()); + layers.extend([knockout(group("Cut", b"norm"), 1, 255), group("Group", b"norm")]); + let (s, r) = open(&file(4, 4, &layers, 8, false, false), json!({"hiddenLayers": true})); + let d = &s.doc().unwrap().doc; + let cut = &d.layers[0].children().unwrap()[0]; + assert_eq!((name(cut), children(cut), &r["warnings"]), ("Cut", both.clone(), &json!([])), "{r}"); + // A clipped group whose merge with its base doesn't fit 320 bytes. + let mut layers = vec![layer("Base", [0, 0, 2, 2], [255, 0, 0, 255])]; + layers.extend(shown_and_hidden()); + layers[2].rect = [0, 0, 4, 4]; + layers.push(L { clipped: true, ..group("Clipped", b"norm") }); + let (doc, warnings) = psdlayers::import(&file(4, 4, &layers, 8, false, false), true, 320, cms).unwrap().unwrap(); + let clipped = &doc.layers[1]; + assert_eq!((name(clipped), children(clipped)), ("Clipped", both), "{warnings:?}"); + assert_eq!(warnings, ["1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed"]); +} + +/// A knockout's merge whose canvases would need more memory than allowed leaves the layers apart, +/// with a warning. One at 0 fill beside the painted pixels below it cuts nothing, and stays apart +/// whatever the memory. +#[test] +fn a_knockout_merge_past_the_memory_allowed_leaves_the_layers_apart() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let stack = |cut: [i32; 4]| { + let layers = [ + group_end(), + layer("Lower", [0, 0, 2, 2], [255, 0, 0, 255]), + knockout(layer("Cut", cut, [0, 0, 255, 255]), 1, 0), + group("Group", b"norm"), + ]; + file(4, 4, &layers, 8, false, false) + }; + let names = |doc: &vectorcraft_doc::Document| doc.layers[0].children().unwrap().iter().map(|c| name(c).to_string()).collect::>(); + let f = stack([1, 1, 3, 3]); + // Each 2 × 2 layer fits 128 bytes (16 a pixel), but not the canvas of the layer below with the + // knockout's canvas held beside it. + let (doc, warnings) = psdlayers::import(&f, false, 128, cms).unwrap().unwrap(); + assert_eq!(names(&doc), ["Lower", "Cut"]); + assert_eq!(warnings, ["the knockout of 1 layer wasn't applied"]); + let (doc, warnings) = psdlayers::import(&f, false, 1 << 20, cms).unwrap().unwrap(); + assert_eq!(names(&doc), ["Lower + Cut"]); + assert!(warnings.is_empty(), "{warnings:?}"); + for max_alloc in [128, 1 << 20] { + let (doc, warnings) = psdlayers::import(&stack([2, 2, 4, 4]), false, max_alloc, cms).unwrap().unwrap(); + assert_eq!(names(&doc), ["Lower", "Cut"], "{max_alloc}"); + assert!(warnings.is_empty(), "{max_alloc}: {warnings:?}"); + } +} + +/// A knockout merge that can't be made leaves the import the whole allowance for reading the layers +/// apart: here the merge decodes 22 layers over one another before the layer beside them makes its +/// canvas too large, which used up nearly all of eight times 64 KiB. The merge has that allowance +/// also after five layers below the group were read, and a knockout at 0 fill over 22 transparent +/// layers, which cuts no paint after they are drawn, leaves the same room. +#[test] +fn a_knockout_merge_not_made_leaves_room_to_read_the_layers() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let mut layers = vec![group_end()]; + layers.extend((0..22).map(|_| layer("Lower", [0, 0, 32, 32], [255, 0, 0, 255]))); + layers.push(layer("Beside", [0, 64, 32, 96], [0, 255, 0, 255])); + layers.extend([knockout(layer("Cut", [0, 0, 32, 32], [0, 0, 255, 255]), 1, 0), group("Group", b"norm")]); + let (doc, warnings) = psdlayers::import(&file(96, 32, &layers, 8, false, false), false, 64 << 10, cms).unwrap().unwrap(); + assert_eq!(doc.layers[0].children().unwrap().len(), 24, "{warnings:?}"); + assert_eq!(warnings, ["the knockout of 1 layer wasn't applied"]); + let mut after_five = vec![layer("Outside", [0, 0, 32, 32], [0, 0, 0, 255]); 5]; + after_five.extend(layers); + let (doc, warnings) = psdlayers::import(&file(96, 32, &after_five, 8, false, false), false, 64 << 10, cms).unwrap().unwrap(); + assert_eq!((doc.layers.len(), doc.layers[5].children().unwrap().len()), (6, 24), "{warnings:?}"); + assert_eq!(warnings, ["the knockout of 1 layer wasn't applied"]); + let mut layers = vec![group_end()]; + layers.extend((0..22).map(|_| layer("Lower", [0, 0, 32, 32], [255, 0, 0, 0]))); + layers.extend([knockout(layer("Cut", [0, 0, 32, 32], [0, 0, 255, 255]), 1, 0), group("Group", b"norm")]); + let (doc, warnings) = psdlayers::import(&file(32, 32, &layers, 8, false, false), false, 64 << 10, cms).unwrap().unwrap(); + assert_eq!(doc.layers[0].children().unwrap().len(), 23, "{warnings:?}"); + assert!(warnings.is_empty(), "{warnings:?}"); +} + +/// A hidden knockout in a mode VectorCraft lacks is left out without being drawn, hidden layers +/// asked for: here its pixels are larger than the memory allowed for one image. +#[test] +fn a_hidden_knockout_in_a_mode_vectorcraft_lacks_is_left_out_unread() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let layers = [ + group_end(), + layer("Lower", [0, 0, 2, 2], [255, 0, 0, 255]), + L { hidden: true, blend: b"diss", ..knockout(layer("Cut", [0, 0, 8, 8], [0, 0, 255, 255]), 1, 255) }, + group("Group", b"norm"), + ]; + let (doc, warnings) = psdlayers::import(&file(8, 8, &layers, 8, false, false), true, 128, cms).unwrap().unwrap(); + assert_eq!(doc.layers[0].children().unwrap().iter().map(|c| name(c)).collect::>(), ["Lower"]); + assert_eq!(warnings, [HIDDEN_1]); +} + +/// A Dissolve knockout at part opacity clears each pixel below it fully or not at all, at the share +/// its opacity gives, as a Dissolve layer merges. +#[test] +fn a_dissolve_knockout_at_part_opacity_clears_whole_pixels() { + let cut = knockout(L { blend: b"diss", opacity: 128, ..layer("Cut", [0, 0, 16, 16], [0, 0, 255, 255]) }, 1, 0); + let layers = [group_end(), layer("Lower", [0, 0, 16, 16], [255, 0, 0, 255]), cut, group("Group", b"norm")]; + let (s, r) = open(&file(16, 16, &layers, 8, false, false), json!({})); + let d = &s.doc().unwrap().doc; + let (_, px) = image_of(&s, &d.layers[0].children().unwrap()[0]); + assert!(px.pixels().all(|p| p.0 == [255, 0, 0, 255] || p.0[3] == 0), "{r}"); + let red = px.pixels().filter(|p| p.0 == [255, 0, 0, 255]).count(); + assert!((32..=224).contains(&red), "{red} of 256 pixels keep the lower layer: {r}"); +} + +/// The knockout of a layer that another is clipped to isn't applied, also when the clipped layer's +/// merge with it needs more memory than allowed and the two come in apart. +#[test] +fn a_clipping_base_knockout_isnt_applied_when_its_clip_doesnt_fit() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + // The 4 × 4 clipped layer and its 2 × 2 base don't fit 320 bytes together for the clip; the + // base's knockout merge with the 2 × 2 layer below would. + let layers = [ + group_end(), + layer("Lower", [0, 0, 2, 2], [255, 0, 0, 255]), + knockout(layer("Base", [0, 0, 2, 2], [0, 0, 255, 255]), 1, 0), + L { clipped: true, ..layer("Clipped", [0, 0, 4, 4], [0, 255, 0, 255]) }, + group("Group", b"norm"), + ]; + let (doc, warnings) = psdlayers::import(&file(4, 4, &layers, 8, false, false), false, 320, cms).unwrap().unwrap(); + assert_eq!(doc.layers[0].children().unwrap().iter().map(|c| name(c)).collect::>(), ["Lower", "Base", "Clipped"], "{warnings:?}"); + assert_eq!( + warnings, + ["the knockout of 1 layer wasn't applied", "1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed"] + ); +} + +/// A knockout group that comes in as a layer counts each layer clipped in it once in the warnings, +/// though its layers are also drawn for the knockout: one clipped to a fill that isn't drawn, and +/// one that a merge past the memory allowed leaves unclipped. +#[test] +fn a_knockout_group_that_comes_in_as_a_layer_counts_its_clipped_layers_once() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let empty = L { bare: true, ..layer("Empty", [0, 0, 2, 2], [0, 0, 0, 0]) }; + // A fill whose shape is a vector mask, with a layer clipped to it: neither is drawn. + let mut soco = vec![0; 8]; + for (key, v) in [(b"Rd doub", 255.0f64), (b"Grn doub", 0.0), (b"Bl doub", 51.0)] { + soco.extend(key); + soco.extend(v.to_be_bytes()); + } + let mut outline = layer("Outline", [0, 0, 0, 0], [0; 4]); + outline.blocks.push((*b"SoCo", soco)); + outline.blocks.push((*b"vsms", vec![0; 8])); + let on_outline = L { clipped: true, ..layer("On outline", [0, 0, 2, 2], [1, 1, 1, 255]) }; + // Each 2 × 2 layer fits 128 bytes, and so do the two drawn together, but not the merge of the + // clipped one with the one below. + let base = layer("Base", [0, 0, 2, 2], [255, 0, 0, 255]); + let clipped = L { clipped: true, ..layer("Clipped", [0, 0, 2, 2], [0, 0, 255, 255]) }; + for (inner, said) in [ + (vec![outline, on_outline], "1 layer clipped to a fill layer that wasn't drawn was left out"), + (vec![base, clipped], "1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed"), + ] { + let mut layers = vec![layer("Outside", [0, 0, 4, 4], [0, 255, 0, 255]), group_end(), empty.clone(), group_end()]; + layers.extend(inner); + layers.extend([knockout(group("Cut", b"norm"), 1, 255), group("Group", b"norm")]); + let (doc, warnings) = psdlayers::import(&file(4, 4, &layers, 8, false, false), false, 128, cms).unwrap().unwrap(); + assert_eq!(doc.layers.iter().map(|l| name(l)).collect::>(), ["Outside", "Group"]); + assert!(warnings.iter().any(|w| w == said), "{said}: {warnings:?}"); + } +} + +/// A pass-through group that draws nothing still counts what its layers count in it, also when it +/// is drawn again inside a group that merges: a knockout above a Multiply layer isn't applied in a +/// pass-through group, though drawn alone it would be. +#[test] +fn a_pass_through_group_that_draws_nothing_still_counts_its_unapplied_knockouts() { + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let empty = |name: &'static str, blend: &'static [u8; 4]| L { bare: true, blend, ..layer(name, [0, 0, 2, 2], [0, 0, 0, 0]) }; + let layers = [ + layer("Lower", [0, 0, 4, 4], [255, 0, 0, 255]), + group_end(), + empty("Empty", b"norm"), + group_end(), + empty("Multiplied", b"mul "), + knockout(empty("Cut", b"norm"), 1, 255), + knockout(group("Through", b"pass"), 1, 255), + group("Dissolved", b"diss"), + ]; + let (doc, warnings) = psdlayers::import(&file(4, 4, &layers, 8, false, false), false, 1 << 20, cms).unwrap().unwrap(); + assert_eq!(doc.layers.iter().map(|l| name(l)).collect::>(), ["Lower + Dissolved"], "{warnings:?}"); + assert_eq!(warnings, ["the knockout of 1 layer wasn't applied".to_string(), psdlayers::MERGED_WARNING.replace("{modes}", "Dissolve")]); +} + +/// A group that draws nothing is drawn once, however deep the groups like it nest: here each holds +/// a layer that stores no pixels and, above it, the next group, with a knockout. The import walks +/// at most as many layer lists as the file has records, with isolated groups, with groups that +/// alternate with pass-through ones, with pass-through groups inside the outermost one (whose +/// knockouts aren't applied), and with a layer in a mode VectorCraft lacks in each (a merge of +/// nothing, a canvas without pixels). +#[test] +fn groups_that_draw_nothing_are_drawn_once_however_deep_they_nest() { + const LEVELS: usize = 48; + let cms = |c: [f32; 4]| [c[0], c[1], c[2]]; + let empty = |name: &'static str, blend: &'static [u8; 4]| L { bare: true, blend, ..layer(name, [0, 0, 2, 2], [0, 0, 0, 0]) }; + // Which levels are pass-through groups. + let none: fn(usize) -> bool = |_| false; + let odd: fn(usize) -> bool = |k| k % 2 == 1; + let all: fn(usize) -> bool = |k| k > 0; + for (case, pass, dissolve, warned) in [ + ("isolated", none, false, vec![]), + ("alternating", odd, false, vec![]), + ("pass-through", all, false, vec![format!("the knockout of {} layers wasn't applied", LEVELS - 1)]), + ("dissolved", none, true, vec![psdlayers::MERGED_WARNING.replace("{modes}", "Dissolve")]), + ] { + let mut layers = vec![layer("Outside", [0, 0, 4, 4], [0, 255, 0, 255])]; + for _ in 0..=LEVELS { + layers.push(group_end()); + if dissolve { + layers.push(empty("Dissolved", b"diss")); + } + layers.push(empty("Empty", b"norm")); + } + for k in (0..=LEVELS).rev() { + let g = group("Group", if pass(k) { b"pass" } else { b"norm" }); + layers.push(if k == 0 { g } else { knockout(g, 1, 255) }); + } + psdlayers::WALKS.set((0, layers.len())); + let imported = psdlayers::import(&file(4, 4, &layers, 8, false, false), false, 1 << 20, cms); + let (walked, _) = psdlayers::WALKS.replace((0, usize::MAX)); + let (doc, warnings) = imported.unwrap().unwrap(); + assert!(walked <= layers.len(), "{case}: {walked} walks for {} records", layers.len()); + assert_eq!(doc.layers.iter().map(|l| name(l)).collect::>(), ["Outside", "Group"], "{case}"); + let mut expected = warned; + expected.push(vectorcraft_doc::depth::merged_note()); + assert_eq!(warnings, expected, "{case}"); + } +} + #[test] fn what_doesnt_come_in_is_said() { let mut text = layer("Words", [0, 0, 2, 2], [0, 0, 0, 255]); diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 6a7d8082d7..9c9bd0f996 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -996,6 +996,12 @@ font-technology Variable Променливи Duplicate Symbol Дублиране на символ Duplicate {kind} Style Дублиране на стил ({kind}) Dutch Нідерландски + PSD Import Options Опции за импортиране на PSD + Place PSD Вмъкване на PSD + Convert Layers to Objects Преобразуване на слоевете в обекти + Import Hidden Layers Импортиране на скритите слоеве + Flatten Layers to a Single Image Сплескване на слоевете в едно изображение + Import Slices Импортиране на отрязаните части DXF Import Options Опции за импортиране на DXF DXF Info Информация за DXF DXF Options Опции за DXF diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index cefad46897..05e87e6706 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -2532,6 +2532,12 @@ digits Malayalam Malajalam Units: Jedinice: Use Typographer's Quotes Koristi tipografske navodnike Center Artwork Centriraj crtež + PSD Import Options Opcije uvoza PSD + Place PSD Postavi PSD + Convert Layers to Objects Pretvori slojeve u objekte + Import Hidden Layers Uvezi skrivene slojeve + Flatten Layers to a Single Image Spljošti slojeve u jednu sliku + Import Slices Uvezi isječke DXF Import Options Opcije uvoza DXF Layout: Raspored: Merge Layers Spoji slojeve diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 301c5c5cff..b728d60273 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -1456,6 +1456,12 @@ antiAlias Sharp Nítid Duplication Duplicació Dutch Neerlandès DWG (use DXF) DWG (feu servir DXF) + PSD Import Options Opcions d’importació de PSD + Place PSD Col·loca un PSD + Convert Layers to Objects Converteix les capes en objectes + Import Hidden Layers Importa les capes amagades + Flatten Layers to a Single Image Aplana les capes en una sola imatge + Import Slices Importa els talls DXF Import Options Opcions d’importació de DXF DXF Info Informació del DXF DXF Options Opcions del DXF @@ -7045,6 +7051,49 @@ variable-list-end {0}, {1} {0} i {1} @msg the PSD file's layer groups are nested too deeply els grups de capes del fitxer PSD estan imbricats massa profundament @msg a layer of the PSD file is too large to read una capa del fitxer PSD és massa gran per llegir-la @msg the PSD file's layers take more memory to read than allowed les capes del fitxer PSD necessiten més memòria de la permesa per llegir-les +@msg the file is no longer loaded el fitxer ja no està carregat +@msg the layers can't be read ({e}): the file was placed as its merged image no es poden llegir les capes ({e}): el fitxer s’ha col·locat com a imatge combinada +@msg 1 type layer came in as pixels: the text isn't editable 1 capa de text s’ha importat com a píxels: el text no és editable +@msg {n} type layers came in as pixels: the text isn't editable {n} capes de text s’han importat com a píxels: el text no és editable +@msg 1 adjustment layer was not applied no s’ha aplicat 1 capa d’ajust +@msg {n} adjustment layers were not applied no s’han aplicat {n} capes d’ajust +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) no s’ha dibuixat 1 capa d’emplenament (un emplenament de degradat o de motiu, un color que no es pot llegir o una forma que no desa píxels) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) no s’han dibuixat {n} capes d’emplenament (un emplenament de degradat o de motiu, un color que no es pot llegir o una forma que no desa píxels) +@msg the layer effects of 1 layer weren't drawn no s’han dibuixat els efectes de capa d’1 capa +@msg the layer effects of {n} layers weren't drawn no s’han dibuixat els efectes de capa de {n} capes +@msg the vector masks of 1 layer weren't applied no s’han aplicat les màscares vectorials d’1 capa +@msg the vector masks of {n} layers weren't applied no s’han aplicat les màscares vectorials de {n} capes +@msg the knockout of 1 layer wasn't applied no s’ha aplicat el buidatge d’1 capa +@msg the knockout of {n} layers wasn't applied no s’ha aplicat el buidatge de {n} capes +@msg 1 layer was left out (hidden layers and the layers clipped to them) s’ha omès 1 capa (capes amagades i les capes retallades a elles) +@msg {n} layers were left out (hidden layers and the layers clipped to them) s’han omès {n} capes (capes amagades i les capes retallades a elles) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out s’ha omès 1 capa retallada a una capa d’emplenament que no s’ha dibuixat +@msg {n} layers clipped to fill layers that weren't drawn were left out s’han omès {n} capes retallades a capes d’emplenament que no s’han dibuixat +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them les capes en modes de fusió que VectorCraft no té ({modes}) s’han combinat amb les capes de sota +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 capa en un mode de fusió que VectorCraft no té s’ha importat com a Normal: la combinació necessita més memòria de la permesa +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} capes en modes de fusió que VectorCraft no té s’han importat com a Normal: la combinació necessita més memòria de la permesa +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 capa retallada a la capa de sota s’ha importat sense retallar: la combinació necessita més memòria de la permesa +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} capes retallades a la capa de sota s’han importat sense retallar: la combinació necessita més memòria de la permesa +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers s’aplica a un fitxer PSD col·locat amb layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: un fitxer PSD enllaçat es col·loca com a imatge aplanada; indiqueu link: false per incrustar-lo amb els seus talls +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: un fitxer PSD enllaçat es col·loca com a imatge aplanada; ometeu link o indiqueu link: false +@msg the slices can't be read ({e}) and were left out no es poden llegir els talls ({e}) i s’han omès +@msg 1 slice lies outside the canvas or has no size and was left out 1 tall és fora del llenç o no té mida i s’ha omès +@msg {n} slices lie outside the canvas or have no size and were left out {n} talls són fora del llenç o no tenen mida i s’han omès +@msg 1 slice would lie outside the canvas and was left out 1 tall quedaria fora del llenç i s’ha omès +@msg {n} slices would lie outside the canvas and were left out {n} talls quedarien fora del llenç i s’han omès +@msg the slices' descriptor holds too many values el descriptor dels talls conté massa valors +@msg the slices' descriptor has a version other than 16 el descriptor dels talls té una versió diferent de 16 +@msg the slices are stored in version {v}, which isn't read els talls estan desats a la versió {v}, que no es llegeix +@msg the file has {count} slices, more than the {MAX_SLICES} read el fitxer té {count} talls, més dels {MAX_SLICES} que es llegeixen +@msg the slices' descriptor has no list of slices el descriptor dels talls no té cap llista de talls +@msg the slices' descriptor lists something other than a slice el descriptor dels talls enumera una cosa que no és un tall +@msg a slice in the slices' descriptor has no bounds un tall del descriptor dels talls no té límits +@msg a slice's bounds in the slices' descriptor aren't numbers els límits d’un tall del descriptor dels talls no són nombres +@msg a text in the slices has more than the {MAX_TEXT} characters read un text dels talls té més dels {MAX_TEXT} caràcters que es llegeixen +@msg the slices' descriptor nests too deep el descriptor dels talls està imbricat massa a fons +@msg the slices' descriptor has a reference of an unknown kind ({_1}) el descriptor dels talls té una referència d’un tipus desconegut ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) el descriptor dels talls té un valor d’un tipus desconegut ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image no es poden llegir les capes ({e}): el fitxer s’ha obert com a imatge combinada @msg zone must be a string zone ha de ser una cadena @msg zone must be tab, center, left, right, top or bottom zone ha de ser tab, center, left, right, top o bottom diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 1830f6d11e..dd0ff9056e 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -2605,6 +2605,12 @@ digits Malayalam Malajálamské Units: Jednotky: Use Typographer's Quotes Používat typografické uvozovky Center Artwork Vystředit kresbu + PSD Import Options Možnosti importu PSD + Place PSD Umístit PSD + Convert Layers to Objects Převést vrstvy na objekty + Import Hidden Layers Importovat skryté vrstvy + Flatten Layers to a Single Image Sloučit vrstvy do jednoho obrazu + Import Slices Importovat řezy DXF Import Options Možnosti importu DXF Layout: Rozvržení: Merge Layers Sloučit vrstvy @@ -6067,6 +6073,49 @@ variable-list-end {0}, {1} {0} a {1} @msg the PSD file's layer groups are nested too deeply skupiny vrstev souboru PSD jsou vnořené příliš hluboko @msg a layer of the PSD file is too large to read vrstva souboru PSD je příliš velká na přečtení @msg the PSD file's layers take more memory to read than allowed vrstvy souboru PSD potřebují ke čtení víc paměti, než je povoleno +@msg the file is no longer loaded soubor už není načtený +@msg the layers can't be read ({e}): the file was placed as its merged image vrstvy nelze přečíst ({e}): soubor byl umístěn jako sloučený obraz +@msg 1 type layer came in as pixels: the text isn't editable 1 textová vrstva byla načtena jako pixely: text nelze upravovat +@msg {n} type layers came in as pixels: the text isn't editable textové vrstvy načtené jako pixely: {n}; text nelze upravovat +@msg 1 adjustment layer was not applied 1 vrstva úprav nebyla použita +@msg {n} adjustment layers were not applied nepoužité vrstvy úprav: {n} +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 vrstva výplně nebyla vykreslena (přechodová nebo vzorková výplň, barva, kterou nelze přečíst, nebo tvar bez uložených pixelů) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) nevykreslené vrstvy výplně: {n} (přechodová nebo vzorková výplň, barva, kterou nelze přečíst, nebo tvar bez uložených pixelů) +@msg the layer effects of 1 layer weren't drawn efekty vrstvy u 1 vrstvy nebyly vykresleny +@msg the layer effects of {n} layers weren't drawn efekty vrstev nebyly vykresleny; počet vrstev: {n} +@msg the vector masks of 1 layer weren't applied vektorové masky 1 vrstvy nebyly použity +@msg the vector masks of {n} layers weren't applied vektorové masky vrstev nebyly použity; počet vrstev: {n} +@msg the knockout of 1 layer wasn't applied vykrojení 1 vrstvy nebylo použito +@msg the knockout of {n} layers wasn't applied vykrojení vrstev nebylo použito; počet vrstev: {n} +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 vrstva byla vynechána (skryté vrstvy a vrstvy k nim oříznuté) +@msg {n} layers were left out (hidden layers and the layers clipped to them) vynechané vrstvy: {n} (skryté vrstvy a vrstvy k nim oříznuté) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 vrstva oříznutá k nevykreslené vrstvě výplně byla vynechána +@msg {n} layers clipped to fill layers that weren't drawn were left out vynechané vrstvy oříznuté k nevykresleným vrstvám výplně: {n} +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them vrstvy v režimech prolnutí, které VectorCraft nemá ({modes}), byly sloučeny s vrstvami pod nimi +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 vrstva v režimu prolnutí, který VectorCraft nemá, byla načtena jako Normální: sloučení potřebuje víc paměti, než je povoleno +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed vrstvy v režimech prolnutí, které VectorCraft nemá, načtené jako Normální: {n}; sloučení potřebuje víc paměti, než je povoleno +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 vrstva oříznutá k vrstvě pod ní byla načtena bez oříznutí: sloučení potřebuje víc paměti, než je povoleno +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed vrstvy oříznuté k vrstvě pod nimi načtené bez oříznutí: {n}; sloučení potřebuje víc paměti, než je povoleno +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers platí pro soubor PSD umístěný s layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: propojený soubor PSD se umístí jako plochý obraz; zadejte link: false, aby se vložil i s řezy +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: propojený soubor PSD se umístí jako plochý obraz; vynechte link nebo zadejte link: false +@msg the slices can't be read ({e}) and were left out řezy nelze přečíst ({e}) a byly vynechány +@msg 1 slice lies outside the canvas or has no size and was left out 1 řez leží mimo plátno nebo nemá velikost a byl vynechán +@msg {n} slices lie outside the canvas or have no size and were left out vynechané řezy, které leží mimo plátno nebo nemají velikost: {n} +@msg 1 slice would lie outside the canvas and was left out 1 řez by ležel mimo plátno a byl vynechán +@msg {n} slices would lie outside the canvas and were left out vynechané řezy, které by ležely mimo plátno: {n} +@msg the slices' descriptor holds too many values deskriptor řezů obsahuje příliš mnoho hodnot +@msg the slices' descriptor has a version other than 16 deskriptor řezů má jinou verzi než 16 +@msg the slices are stored in version {v}, which isn't read řezy jsou uložené ve verzi {v}, která se nečte +@msg the file has {count} slices, more than the {MAX_SLICES} read počet řezů v souboru je {count}, víc než čtených {MAX_SLICES} +@msg the slices' descriptor has no list of slices deskriptor řezů nemá seznam řezů +@msg the slices' descriptor lists something other than a slice deskriptor řezů uvádí něco jiného než řez +@msg a slice in the slices' descriptor has no bounds řez v deskriptoru řezů nemá hranice +@msg a slice's bounds in the slices' descriptor aren't numbers hranice řezu v deskriptoru řezů nejsou čísla +@msg a text in the slices has more than the {MAX_TEXT} characters read text v řezech má víc než čtených {MAX_TEXT} znaků +@msg the slices' descriptor nests too deep deskriptor řezů je vnořený příliš hluboko +@msg the slices' descriptor has a reference of an unknown kind ({_1}) deskriptor řezů má odkaz neznámého druhu ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) deskriptor řezů má hodnotu neznámého typu ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image vrstvy nelze přečíst ({e}): soubor se otevřel jako sloučený obraz @msg {depth}-bit PSD files in this colour mode can't be read {depth}bitové soubory PSD v tomto barevném režimu nelze přečíst @msg the PSD file is cut short soubor PSD je useknutý diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 965bdefe46..2fd7df66de 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -5125,6 +5125,12 @@ digits Malayalam Malayalam Units: Enheder: Use Typographer's Quotes Brug typografiske anførselstegn Center Artwork Centrér grafik + PSD Import Options PSD-importindstillinger + Place PSD Placér PSD + Convert Layers to Objects Konvertér lag til objekter + Import Hidden Layers Importér skjulte lag + Flatten Layers to a Single Image Fladgør lag til ét billede + Import Slices Importér udsnit DXF Import Options DXF-importindstillinger Layout: Layout: Merge Layers Flet lag @@ -8155,6 +8161,49 @@ imageTrace Outline Kontur @msg the PSD file's layer groups are nested too deeply PSD-filens laggrupper er indlejret for dybt @msg a layer of the PSD file is too large to read et lag i PSD-filen er for stort til at læse @msg the PSD file's layers take more memory to read than allowed PSD-filens lag kræver mere hukommelse at læse end tilladt +@msg the file is no longer loaded filen er ikke længere indlæst +@msg the layers can't be read ({e}): the file was placed as its merged image lagene kan ikke læses ({e}): filen blev placeret som sit samlede billede +@msg 1 type layer came in as pixels: the text isn't editable 1 tekstlag kom ind som pixels: teksten kan ikke redigeres +@msg {n} type layers came in as pixels: the text isn't editable {n} tekstlag kom ind som pixels: teksten kan ikke redigeres +@msg 1 adjustment layer was not applied 1 justeringslag blev ikke anvendt +@msg {n} adjustment layers were not applied {n} justeringslag blev ikke anvendt +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 fyldlag blev ikke tegnet (et forløbs- eller mønsterfyld, en farve, der ikke kan læses, eller en figur, der ikke gemmer pixels) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} fyldlag blev ikke tegnet (et forløbs- eller mønsterfyld, en farve, der ikke kan læses, eller en figur, der ikke gemmer pixels) +@msg the layer effects of 1 layer weren't drawn lageffekterne for 1 lag blev ikke tegnet +@msg the layer effects of {n} layers weren't drawn lageffekterne for {n} lag blev ikke tegnet +@msg the vector masks of 1 layer weren't applied vektormaskerne for 1 lag blev ikke anvendt +@msg the vector masks of {n} layers weren't applied vektormaskerne for {n} lag blev ikke anvendt +@msg the knockout of 1 layer wasn't applied udsparingen for 1 lag blev ikke anvendt +@msg the knockout of {n} layers wasn't applied udsparingen for {n} lag blev ikke anvendt +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 lag blev udeladt (skjulte lag og de lag, der er beskåret til dem) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} lag blev udeladt (skjulte lag og de lag, der er beskåret til dem) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 lag beskåret til et fyldlag, der ikke blev tegnet, blev udeladt +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} lag beskåret til fyldlag, der ikke blev tegnet, blev udeladt +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them lag i blandingstilstande, som VectorCraft ikke har ({modes}), blev flettet med lagene under dem +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 lag i en blandingstilstand, som VectorCraft ikke har, kom ind som Normal: fletningen kræver mere hukommelse end tilladt +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} lag i blandingstilstande, som VectorCraft ikke har, kom ind som Normal: fletningen kræver mere hukommelse end tilladt +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 lag beskåret til laget nedenunder kom ind ubeskåret: fletningen kræver mere hukommelse end tilladt +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} lag beskåret til laget nedenunder kom ind ubeskåret: fletningen kræver mere hukommelse end tilladt +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers gælder for en PSD-fil, der placeres med layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: en sammenkædet PSD-fil placeres som sit flade billede; angiv link: false for at integrere den med dens udsnit +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: en sammenkædet PSD-fil placeres som sit flade billede; udelad link eller angiv link: false +@msg the slices can't be read ({e}) and were left out udsnittene kan ikke læses ({e}) og blev udeladt +@msg 1 slice lies outside the canvas or has no size and was left out 1 udsnit ligger uden for lærredet eller har ingen størrelse og blev udeladt +@msg {n} slices lie outside the canvas or have no size and were left out {n} udsnit ligger uden for lærredet eller har ingen størrelse og blev udeladt +@msg 1 slice would lie outside the canvas and was left out 1 udsnit ville ligge uden for lærredet og blev udeladt +@msg {n} slices would lie outside the canvas and were left out {n} udsnit ville ligge uden for lærredet og blev udeladt +@msg the slices' descriptor holds too many values udsnittenes deskriptor indeholder for mange værdier +@msg the slices' descriptor has a version other than 16 udsnittenes deskriptor har en anden version end 16 +@msg the slices are stored in version {v}, which isn't read udsnittene er gemt i version {v}, som ikke læses +@msg the file has {count} slices, more than the {MAX_SLICES} read filen har {count} udsnit, flere end de {MAX_SLICES}, der læses +@msg the slices' descriptor has no list of slices udsnittenes deskriptor har ingen liste over udsnit +@msg the slices' descriptor lists something other than a slice udsnittenes deskriptor angiver noget andet end et udsnit +@msg a slice in the slices' descriptor has no bounds et udsnit i udsnittenes deskriptor har ingen grænser +@msg a slice's bounds in the slices' descriptor aren't numbers et udsnits grænser i udsnittenes deskriptor er ikke tal +@msg a text in the slices has more than the {MAX_TEXT} characters read en tekst i udsnittene har flere end de {MAX_TEXT} tegn, der læses +@msg the slices' descriptor nests too deep udsnittenes deskriptor er indlejret for dybt +@msg the slices' descriptor has a reference of an unknown kind ({_1}) udsnittenes deskriptor har en reference af en ukendt art ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) udsnittenes deskriptor har en værdi af en ukendt type ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image lagene kan ikke læses ({e}): filen blev åbnet som sit samlede billede @msg {depth}-bit PSD files in this colour mode can't be read {depth}-bit PSD-filer i denne farvetilstand kan ikke læses @msg the PSD file is cut short PSD-filen er afkortet diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index eb1b58bc29..e8003d05ac 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -1011,6 +1011,12 @@ font-technology Variable Variabel Duplicate Symbol Symbol duplizieren Duplicate {kind} Style {kind}format duplizieren Dutch Niederländisch + PSD Import Options PSD-Importoptionen + Place PSD PSD platzieren + Convert Layers to Objects Ebenen in Objekte umwandeln + Import Hidden Layers Ausgeblendete Ebenen importieren + Flatten Layers to a Single Image Ebenen auf ein einzelnes Bild reduzieren + Import Slices Slices importieren DXF Import Options DXF-Importoptionen DXF Info DXF-Informationen DXF Options DXF-Optionen @@ -5809,6 +5815,49 @@ variable-list-end {0}, {1} {0} und {1} @msg the PSD file's layer groups are nested too deeply die Ebenengruppen der PSD-Datei sind zu tief verschachtelt @msg a layer of the PSD file is too large to read eine Ebene der PSD-Datei ist zu groß zum Lesen @msg the PSD file's layers take more memory to read than allowed die Ebenen der PSD-Datei brauchen zum Lesen mehr Speicher als erlaubt +@msg the file is no longer loaded die Datei ist nicht mehr geladen +@msg the layers can't be read ({e}): the file was placed as its merged image die Ebenen können nicht gelesen werden ({e}): die Datei wurde als ihr zusammengefügtes Bild platziert +@msg 1 type layer came in as pixels: the text isn't editable 1 Textebene wurde als Pixel übernommen: der Text ist nicht bearbeitbar +@msg {n} type layers came in as pixels: the text isn't editable {n} Textebenen wurden als Pixel übernommen: der Text ist nicht bearbeitbar +@msg 1 adjustment layer was not applied 1 Einstellungsebene wurde nicht angewendet +@msg {n} adjustment layers were not applied {n} Einstellungsebenen wurden nicht angewendet +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 Füllebene wurde nicht gezeichnet (eine Verlaufs- oder Musterfüllung, eine Farbe, die nicht gelesen werden kann, oder eine Form ohne gespeicherte Pixel) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} Füllebenen wurden nicht gezeichnet (eine Verlaufs- oder Musterfüllung, eine Farbe, die nicht gelesen werden kann, oder eine Form ohne gespeicherte Pixel) +@msg the layer effects of 1 layer weren't drawn die Ebeneneffekte von 1 Ebene wurden nicht gezeichnet +@msg the layer effects of {n} layers weren't drawn die Ebeneneffekte von {n} Ebenen wurden nicht gezeichnet +@msg the vector masks of 1 layer weren't applied die Vektormasken von 1 Ebene wurden nicht angewendet +@msg the vector masks of {n} layers weren't applied die Vektormasken von {n} Ebenen wurden nicht angewendet +@msg the knockout of 1 layer wasn't applied die Aussparung von 1 Ebene wurde nicht angewendet +@msg the knockout of {n} layers wasn't applied die Aussparung von {n} Ebenen wurde nicht angewendet +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 Ebene wurde weggelassen (ausgeblendete Ebenen und die auf sie beschnittenen Ebenen) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} Ebenen wurden weggelassen (ausgeblendete Ebenen und die auf sie beschnittenen Ebenen) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 Ebene, die auf eine nicht gezeichnete Füllebene beschnitten ist, wurde weggelassen +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} Ebenen, die auf nicht gezeichnete Füllebenen beschnitten sind, wurden weggelassen +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them Ebenen in Füllmethoden, die VectorCraft nicht hat ({modes}), wurden mit den Ebenen darunter zusammengefügt +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 Ebene in einer Füllmethode, die VectorCraft nicht hat, wurde als Normal übernommen: das Zusammenfügen braucht mehr Speicher als erlaubt +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} Ebenen in Füllmethoden, die VectorCraft nicht hat, wurden als Normal übernommen: das Zusammenfügen braucht mehr Speicher als erlaubt +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 Ebene, die auf die Ebene darunter beschnitten ist, wurde unbeschnitten übernommen: das Zusammenfügen braucht mehr Speicher als erlaubt +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} Ebenen, die auf die Ebene darunter beschnitten sind, wurden unbeschnitten übernommen: das Zusammenfügen braucht mehr Speicher als erlaubt +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers gilt für eine PSD-Datei, die mit layers: true platziert wird +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: eine verknüpfte PSD-Datei wird als ihr flaches Bild platziert; geben Sie link: false an, um sie mit ihren Slices einzubetten +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: eine verknüpfte PSD-Datei wird als ihr flaches Bild platziert; lassen Sie link weg oder geben Sie link: false an +@msg the slices can't be read ({e}) and were left out die Slices können nicht gelesen werden ({e}) und wurden weggelassen +@msg 1 slice lies outside the canvas or has no size and was left out 1 Slice liegt außerhalb der Arbeitsfläche oder hat keine Größe und wurde weggelassen +@msg {n} slices lie outside the canvas or have no size and were left out {n} Slices liegen außerhalb der Arbeitsfläche oder haben keine Größe und wurden weggelassen +@msg 1 slice would lie outside the canvas and was left out 1 Slice würde außerhalb der Arbeitsfläche liegen und wurde weggelassen +@msg {n} slices would lie outside the canvas and were left out {n} Slices würden außerhalb der Arbeitsfläche liegen und wurden weggelassen +@msg the slices' descriptor holds too many values der Deskriptor der Slices enthält zu viele Werte +@msg the slices' descriptor has a version other than 16 der Deskriptor der Slices hat eine andere Version als 16 +@msg the slices are stored in version {v}, which isn't read die Slices sind in Version {v} gespeichert, die nicht gelesen wird +@msg the file has {count} slices, more than the {MAX_SLICES} read die Datei hat {count} Slices, mehr als die {MAX_SLICES}, die gelesen werden +@msg the slices' descriptor has no list of slices der Deskriptor der Slices hat keine Liste der Slices +@msg the slices' descriptor lists something other than a slice der Deskriptor der Slices führt etwas anderes als ein Slice auf +@msg a slice in the slices' descriptor has no bounds ein Slice im Deskriptor der Slices hat keine Begrenzung +@msg a slice's bounds in the slices' descriptor aren't numbers die Begrenzung eines Slices im Deskriptor der Slices besteht nicht aus Zahlen +@msg a text in the slices has more than the {MAX_TEXT} characters read ein Text in den Slices hat mehr als die {MAX_TEXT} Zeichen, die gelesen werden +@msg the slices' descriptor nests too deep der Deskriptor der Slices ist zu tief verschachtelt +@msg the slices' descriptor has a reference of an unknown kind ({_1}) der Deskriptor der Slices hat einen Verweis unbekannter Art ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) der Deskriptor der Slices hat einen Wert unbekannten Typs ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image die Ebenen können nicht gelesen werden ({e}): die Datei wurde als ihr zusammengefügtes Bild geöffnet @msg {depth}-bit PSD files in this colour mode can't be read {depth}-Bit-PSD-Dateien in diesem Farbmodus können nicht gelesen werden @msg the JPEG XL file is cut short die JPEG-XL-Datei ist unvollständig diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 8694fdfaf2..4cc694dfee 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -978,6 +978,12 @@ font-technology Variable Μεταβλητές Duplicate Swatch Δημιουργία αντιγράφου δείγματος χρώματος Duplicate Symbol Δημιουργία αντιγράφου συμβόλου Duplicate {kind} Style Δημιουργία αντιγράφου στυλ {kind} + PSD Import Options Επιλογές εισαγωγής PSD + Place PSD Τοποθέτηση PSD + Convert Layers to Objects Μετατροπή επιπέδων σε αντικείμενα + Import Hidden Layers Εισαγωγή κρυφών επιπέδων + Flatten Layers to a Single Image Ισοπέδωση επιπέδων σε μία εικόνα + Import Slices Εισαγωγή τομών DXF Import Options Επιλογές εισαγωγής DXF DXF Info Πληροφορίες DXF DXF Options Επιλογές DXF @@ -5766,6 +5772,49 @@ variable-list-end {0}, {1} {0} και {1} @msg the PSD file's layer groups are nested too deeply οι ομάδες επιπέδων του αρχείου PSD είναι ένθετες σε υπερβολικό βάθος @msg a layer of the PSD file is too large to read ένα επίπεδο του αρχείου PSD είναι πολύ μεγάλο για ανάγνωση @msg the PSD file's layers take more memory to read than allowed τα επίπεδα του αρχείου PSD χρειάζονται περισσότερη μνήμη για ανάγνωση από όση επιτρέπεται +@msg the file is no longer loaded το αρχείο δεν είναι πλέον φορτωμένο +@msg the layers can't be read ({e}): the file was placed as its merged image τα επίπεδα δεν μπορούν να διαβαστούν ({e}): το αρχείο τοποθετήθηκε ως η συγχωνευμένη εικόνα του +@msg 1 type layer came in as pixels: the text isn't editable 1 επίπεδο κειμένου εισήχθη ως pixel: το κείμενο δεν είναι επεξεργάσιμο +@msg {n} type layers came in as pixels: the text isn't editable {n} επίπεδα κειμένου εισήχθησαν ως pixel: το κείμενο δεν είναι επεξεργάσιμο +@msg 1 adjustment layer was not applied 1 επίπεδο προσαρμογής δεν εφαρμόστηκε +@msg {n} adjustment layers were not applied {n} επίπεδα προσαρμογής δεν εφαρμόστηκαν +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 επίπεδο γεμίσματος δεν σχεδιάστηκε (γέμισμα διαβάθμισης ή μοτίβου, χρώμα που δεν μπορεί να διαβαστεί ή σχήμα που δεν αποθηκεύει pixel) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} επίπεδα γεμίσματος δεν σχεδιάστηκαν (γέμισμα διαβάθμισης ή μοτίβου, χρώμα που δεν μπορεί να διαβαστεί ή σχήμα που δεν αποθηκεύει pixel) +@msg the layer effects of 1 layer weren't drawn τα εφέ επιπέδου 1 επιπέδου δεν σχεδιάστηκαν +@msg the layer effects of {n} layers weren't drawn τα εφέ επιπέδου {n} επιπέδων δεν σχεδιάστηκαν +@msg the vector masks of 1 layer weren't applied οι διανυσματικές μάσκες 1 επιπέδου δεν εφαρμόστηκαν +@msg the vector masks of {n} layers weren't applied οι διανυσματικές μάσκες {n} επιπέδων δεν εφαρμόστηκαν +@msg the knockout of 1 layer wasn't applied η διάτρηση 1 επιπέδου δεν εφαρμόστηκε +@msg the knockout of {n} layers wasn't applied η διάτρηση {n} επιπέδων δεν εφαρμόστηκε +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 επίπεδο παραλείφθηκε (κρυφά επίπεδα και τα επίπεδα που αποκόπτονται σε αυτά) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} επίπεδα παραλείφθηκαν (κρυφά επίπεδα και τα επίπεδα που αποκόπτονται σε αυτά) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 επίπεδο που αποκόπτεται σε επίπεδο γεμίσματος που δεν σχεδιάστηκε παραλείφθηκε +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} επίπεδα που αποκόπτονται σε επίπεδα γεμίσματος που δεν σχεδιάστηκαν παραλείφθηκαν +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them τα επίπεδα σε λειτουργίες ανάμειξης που δεν έχει το VectorCraft ({modes}) συγχωνεύτηκαν με τα επίπεδα από κάτω τους +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 επίπεδο σε λειτουργία ανάμειξης που δεν έχει το VectorCraft εισήχθη ως Κανονική: η συγχώνευση χρειάζεται περισσότερη μνήμη από όση επιτρέπεται +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} επίπεδα σε λειτουργίες ανάμειξης που δεν έχει το VectorCraft εισήχθησαν ως Κανονική: η συγχώνευση χρειάζεται περισσότερη μνήμη από όση επιτρέπεται +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 επίπεδο που αποκόπτεται στο επίπεδο από κάτω εισήχθη χωρίς αποκοπή: η συγχώνευση χρειάζεται περισσότερη μνήμη από όση επιτρέπεται +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} επίπεδα που αποκόπτονται στο επίπεδο από κάτω εισήχθησαν χωρίς αποκοπή: η συγχώνευση χρειάζεται περισσότερη μνήμη από όση επιτρέπεται +@msg hiddenLayers applies to a PSD file placed with layers: true το hiddenLayers ισχύει για αρχείο PSD που τοποθετείται με layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: ένα συνδεδεμένο αρχείο PSD τοποθετείται ως η επίπεδη εικόνα του· δώστε link: false για να ενσωματωθεί με τις τομές του +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: ένα συνδεδεμένο αρχείο PSD τοποθετείται ως η επίπεδη εικόνα του· παραλείψτε το link ή δώστε link: false +@msg the slices can't be read ({e}) and were left out οι τομές δεν μπορούν να διαβαστούν ({e}) και παραλείφθηκαν +@msg 1 slice lies outside the canvas or has no size and was left out 1 τομή βρίσκεται έξω από τον καμβά ή δεν έχει μέγεθος και παραλείφθηκε +@msg {n} slices lie outside the canvas or have no size and were left out {n} τομές βρίσκονται έξω από τον καμβά ή δεν έχουν μέγεθος και παραλείφθηκαν +@msg 1 slice would lie outside the canvas and was left out 1 τομή θα βρισκόταν έξω από τον καμβά και παραλείφθηκε +@msg {n} slices would lie outside the canvas and were left out {n} τομές θα βρίσκονταν έξω από τον καμβά και παραλείφθηκαν +@msg the slices' descriptor holds too many values ο περιγραφέας των τομών περιέχει πάρα πολλές τιμές +@msg the slices' descriptor has a version other than 16 ο περιγραφέας των τομών έχει έκδοση διαφορετική από 16 +@msg the slices are stored in version {v}, which isn't read οι τομές είναι αποθηκευμένες στην έκδοση {v}, η οποία δεν διαβάζεται +@msg the file has {count} slices, more than the {MAX_SLICES} read το αρχείο έχει {count} τομές, περισσότερες από τις {MAX_SLICES} που διαβάζονται +@msg the slices' descriptor has no list of slices ο περιγραφέας των τομών δεν έχει λίστα τομών +@msg the slices' descriptor lists something other than a slice ο περιγραφέας των τομών απαριθμεί κάτι άλλο από τομή +@msg a slice in the slices' descriptor has no bounds μια τομή στον περιγραφέα των τομών δεν έχει όρια +@msg a slice's bounds in the slices' descriptor aren't numbers τα όρια μιας τομής στον περιγραφέα των τομών δεν είναι αριθμοί +@msg a text in the slices has more than the {MAX_TEXT} characters read ένα κείμενο στις τομές έχει περισσότερους από τους {MAX_TEXT} χαρακτήρες που διαβάζονται +@msg the slices' descriptor nests too deep ο περιγραφέας των τομών είναι εμφωλευμένος πολύ βαθιά +@msg the slices' descriptor has a reference of an unknown kind ({_1}) ο περιγραφέας των τομών έχει αναφορά άγνωστου είδους ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) ο περιγραφέας των τομών έχει τιμή άγνωστου τύπου ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image τα επίπεδα δεν μπορούν να διαβαστούν ({e}): το αρχείο άνοιξε ως η συγχωνευμένη εικόνα του @msg {depth}-bit PSD files in this colour mode can't be read τα αρχεία PSD {depth} bit δεν διαβάζονται σε αυτήν τη λειτουργία χρώματος @msg the PSD file is cut short το αρχείο PSD είναι περικομμένο diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 43db8845cc..f5d5bc5909 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -1022,6 +1022,12 @@ font-technology Variable Variables Duplicate Symbol Duplicar símbolo Duplicate {kind} Style Duplicar estilo de {kind} Dutch Neerlandés + PSD Import Options Opciones de importación PSD + Place PSD Colocar PSD + Convert Layers to Objects Convertir capas en objetos + Import Hidden Layers Importar capas ocultas + Flatten Layers to a Single Image Acoplar capas en una sola imagen + Import Slices Importar sectores DXF Import Options Opciones de importación DXF DXF Info Información DXF DXF Options Opciones DXF @@ -5805,6 +5811,49 @@ variable-list-end {0}, {1} {0} y {1} @msg the PSD file's layer groups are nested too deeply los grupos de capas del archivo PSD están anidados a demasiada profundidad @msg a layer of the PSD file is too large to read una capa del archivo PSD es demasiado grande para leerla @msg the PSD file's layers take more memory to read than allowed las capas del archivo PSD necesitan más memoria de la permitida para leerlas +@msg the file is no longer loaded el archivo ya no está cargado +@msg the layers can't be read ({e}): the file was placed as its merged image no se pueden leer las capas ({e}): el archivo se colocó como su imagen combinada +@msg 1 type layer came in as pixels: the text isn't editable 1 capa de texto se importó como píxeles: el texto no es editable +@msg {n} type layers came in as pixels: the text isn't editable {n} capas de texto se importaron como píxeles: el texto no es editable +@msg 1 adjustment layer was not applied 1 capa de ajuste no se aplicó +@msg {n} adjustment layers were not applied {n} capas de ajuste no se aplicaron +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 capa de relleno no se dibujó (un relleno de degradado o de motivo, un color que no se puede leer o una forma que no guarda píxeles) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} capas de relleno no se dibujaron (un relleno de degradado o de motivo, un color que no se puede leer o una forma que no guarda píxeles) +@msg the layer effects of 1 layer weren't drawn los efectos de capa de 1 capa no se dibujaron +@msg the layer effects of {n} layers weren't drawn los efectos de capa de {n} capas no se dibujaron +@msg the vector masks of 1 layer weren't applied las máscaras vectoriales de 1 capa no se aplicaron +@msg the vector masks of {n} layers weren't applied las máscaras vectoriales de {n} capas no se aplicaron +@msg the knockout of 1 layer wasn't applied el vaciado de 1 capa no se aplicó +@msg the knockout of {n} layers wasn't applied el vaciado de {n} capas no se aplicó +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 capa se omitió (capas ocultas y las capas recortadas a ellas) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} capas se omitieron (capas ocultas y las capas recortadas a ellas) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 capa recortada a una capa de relleno que no se dibujó se omitió +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} capas recortadas a capas de relleno que no se dibujaron se omitieron +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them las capas en modos de fusión que VectorCraft no tiene ({modes}) se combinaron con las capas de debajo +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 capa en un modo de fusión que VectorCraft no tiene se importó como Normal: la combinación necesita más memoria de la permitida +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} capas en modos de fusión que VectorCraft no tiene se importaron como Normal: la combinación necesita más memoria de la permitida +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 capa recortada a la capa de debajo se importó sin recortar: la combinación necesita más memoria de la permitida +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} capas recortadas a la capa de debajo se importaron sin recortar: la combinación necesita más memoria de la permitida +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers se aplica a un archivo PSD colocado con layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: un archivo PSD vinculado se coloca como su imagen acoplada; indique link: false para incrustarlo con sus sectores +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: un archivo PSD vinculado se coloca como su imagen acoplada; omita link o indique link: false +@msg the slices can't be read ({e}) and were left out no se pueden leer los sectores ({e}) y se omitieron +@msg 1 slice lies outside the canvas or has no size and was left out 1 sector está fuera del lienzo o no tiene tamaño y se omitió +@msg {n} slices lie outside the canvas or have no size and were left out {n} sectores están fuera del lienzo o no tienen tamaño y se omitieron +@msg 1 slice would lie outside the canvas and was left out 1 sector quedaría fuera del lienzo y se omitió +@msg {n} slices would lie outside the canvas and were left out {n} sectores quedarían fuera del lienzo y se omitieron +@msg the slices' descriptor holds too many values el descriptor de los sectores contiene demasiados valores +@msg the slices' descriptor has a version other than 16 el descriptor de los sectores tiene una versión distinta de 16 +@msg the slices are stored in version {v}, which isn't read los sectores están guardados en la versión {v}, que no se lee +@msg the file has {count} slices, more than the {MAX_SLICES} read el archivo tiene {count} sectores, más que los {MAX_SLICES} que se leen +@msg the slices' descriptor has no list of slices el descriptor de los sectores no tiene una lista de sectores +@msg the slices' descriptor lists something other than a slice el descriptor de los sectores enumera algo que no es un sector +@msg a slice in the slices' descriptor has no bounds un sector del descriptor de los sectores no tiene límites +@msg a slice's bounds in the slices' descriptor aren't numbers los límites de un sector del descriptor de los sectores no son números +@msg a text in the slices has more than the {MAX_TEXT} characters read un texto de los sectores tiene más de los {MAX_TEXT} caracteres que se leen +@msg the slices' descriptor nests too deep el descriptor de los sectores está anidado a demasiada profundidad +@msg the slices' descriptor has a reference of an unknown kind ({_1}) el descriptor de los sectores tiene una referencia de un tipo desconocido ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) el descriptor de los sectores tiene un valor de un tipo desconocido ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image no se pueden leer las capas ({e}): el archivo se abrió como su imagen combinada @msg {depth}-bit PSD files in this colour mode can't be read los archivos PSD de {depth} bits en este modo de color no se pueden leer @msg the PSD file is cut short el archivo PSD está incompleto diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 2cb08b3b48..353eb09465 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -2567,6 +2567,12 @@ digits Malayalam Malajalam Units: Yksiköt: Use Typographer's Quotes Käytä typografisia lainausmerkkejä Center Artwork Keskitä kuvitus + PSD Import Options PSD-tuonnin asetukset + Place PSD Sijoita PSD + Convert Layers to Objects Muunna tasot objekteiksi + Import Hidden Layers Tuo piilotetut tasot + Flatten Layers to a Single Image Litistä tasot yhdeksi kuvaksi + Import Slices Tuo siivut DXF Import Options DXF-tuonnin asetukset Layout: Asettelu: Merge Layers Yhdistä tasot @@ -5989,6 +5995,49 @@ variable-list-end {0}, {1} {0} ja {1} @msg the PSD file's layer groups are nested too deeply tämän PSD-tiedoston tasoryhmät ovat sisäkkäin liian syvällä @msg a layer of the PSD file is too large to read tämän PSD-tiedoston taso on liian suuri luettavaksi @msg the PSD file's layers take more memory to read than allowed tämän PSD-tiedoston tasojen lukeminen vaatii enemmän muistia kuin sallitaan +@msg the file is no longer loaded tiedosto ei ole enää ladattuna +@msg the layers can't be read ({e}): the file was placed as its merged image tasoja ei voi lukea ({e}): tiedosto sijoitettiin yhdistettynä kuvanaan +@msg 1 type layer came in as pixels: the text isn't editable 1 tekstitaso tuotiin pikseleinä: tekstiä ei voi muokata +@msg {n} type layers came in as pixels: the text isn't editable {n} tekstitasoa tuotiin pikseleinä: tekstiä ei voi muokata +@msg 1 adjustment layer was not applied 1 säätötasoa ei käytetty +@msg {n} adjustment layers were not applied {n} säätötasoa ei käytetty +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 täyttötasoa ei piirretty (liukuväri- tai kuviotäyttö, väri, jota ei voi lukea, tai muoto, joka ei tallenna pikseleitä) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} täyttötasoa ei piirretty (liukuväri- tai kuviotäyttö, väri, jota ei voi lukea, tai muoto, joka ei tallenna pikseleitä) +@msg the layer effects of 1 layer weren't drawn 1 tason tasotehosteita ei piirretty +@msg the layer effects of {n} layers weren't drawn {n} tason tasotehosteita ei piirretty +@msg the vector masks of 1 layer weren't applied 1 tason vektorimaskeja ei käytetty +@msg the vector masks of {n} layers weren't applied {n} tason vektorimaskeja ei käytetty +@msg the knockout of 1 layer wasn't applied 1 tason poistoa ei käytetty +@msg the knockout of {n} layers wasn't applied {n} tason poistoa ei käytetty +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 taso jätettiin pois (piilotetut tasot ja niihin leikatut tasot) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} tasoa jätettiin pois (piilotetut tasot ja niihin leikatut tasot) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 taso, joka on leikattu piirtämättä jääneeseen täyttötasoon, jätettiin pois +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} tasoa, jotka on leikattu piirtämättä jääneisiin täyttötasoihin, jätettiin pois +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them tasot sekoitustiloissa, joita VectorCraftissa ei ole ({modes}), yhdistettiin alla oleviin tasoihin +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 taso sekoitustilassa, jota VectorCraftissa ei ole, tuotiin Normaali-tilassa: yhdistäminen vaatii sallittua enemmän muistia +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} tasoa sekoitustiloissa, joita VectorCraftissa ei ole, tuotiin Normaali-tilassa: yhdistäminen vaatii sallittua enemmän muistia +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 alla olevaan tasoon leikattu taso tuotiin leikkaamattomana: yhdistäminen vaatii sallittua enemmän muistia +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} alla olevaan tasoon leikattua tasoa tuotiin leikkaamattomina: yhdistäminen vaatii sallittua enemmän muistia +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers koskee PSD-tiedostoa, joka sijoitetaan asetuksella layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: linkitetty PSD-tiedosto sijoitetaan litteänä kuvanaan; anna link: false, jotta se upotetaan siivuineen +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: linkitetty PSD-tiedosto sijoitetaan litteänä kuvanaan; jätä link pois tai anna link: false +@msg the slices can't be read ({e}) and were left out siivuja ei voi lukea ({e}), ja ne jätettiin pois +@msg 1 slice lies outside the canvas or has no size and was left out 1 siivu on kankaan ulkopuolella tai sillä ei ole kokoa, ja se jätettiin pois +@msg {n} slices lie outside the canvas or have no size and were left out {n} siivua on kankaan ulkopuolella tai niillä ei ole kokoa, ja ne jätettiin pois +@msg 1 slice would lie outside the canvas and was left out 1 siivu olisi kankaan ulkopuolella, ja se jätettiin pois +@msg {n} slices would lie outside the canvas and were left out {n} siivua olisi kankaan ulkopuolella, ja ne jätettiin pois +@msg the slices' descriptor holds too many values siivujen kuvaajassa on liian monta arvoa +@msg the slices' descriptor has a version other than 16 siivujen kuvaajan versio on muu kuin 16 +@msg the slices are stored in version {v}, which isn't read siivut on tallennettu versiossa {v}, jota ei lueta +@msg the file has {count} slices, more than the {MAX_SLICES} read tiedostossa on {count} siivua, enemmän kuin luettavat {MAX_SLICES} +@msg the slices' descriptor has no list of slices siivujen kuvaajassa ei ole siivuluetteloa +@msg the slices' descriptor lists something other than a slice siivujen kuvaaja luettelee jotain muuta kuin siivun +@msg a slice in the slices' descriptor has no bounds siivujen kuvaajan siivulla ei ole rajoja +@msg a slice's bounds in the slices' descriptor aren't numbers siivujen kuvaajan siivun rajat eivät ole lukuja +@msg a text in the slices has more than the {MAX_TEXT} characters read siivujen tekstissä on enemmän kuin luettavat {MAX_TEXT} merkkiä +@msg the slices' descriptor nests too deep siivujen kuvaaja on sisäkkäin liian syvälle +@msg the slices' descriptor has a reference of an unknown kind ({_1}) siivujen kuvaajassa on tuntematonta lajia oleva viittaus ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) siivujen kuvaajassa on tuntematonta tyyppiä oleva arvo ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image tasoja ei voi lukea ({e}): tiedosto avattiin yhdistettynä kuvanaan @msg {depth}-bit PSD files in this colour mode can't be read tässä väritilassa olevia {depth}-bittisiä PSD-tiedostoja ei voi lukea @msg the PSD file is cut short tämä PSD-tiedosto on katkennut diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index c95e3a44f2..35ff7b88b8 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -1025,6 +1025,12 @@ font-technology Variable Variables Duplicate Symbol Dupliquer le symbole Duplicate {kind} Style Dupliquer le style de {kind} Dutch Néerlandais + PSD Import Options Options d’importation PSD + Place PSD Importer un fichier PSD + Convert Layers to Objects Convertir les calques en objets + Import Hidden Layers Importer les calques masqués + Flatten Layers to a Single Image Aplatir les calques en une seule image + Import Slices Importer les tranches DXF Import Options Options d’importation DXF DXF Info Informations DXF DXF Options Options DXF @@ -5782,6 +5788,49 @@ variable-list-end {0}, {1} {0} et {1} @msg the PSD file's layer groups are nested too deeply les groupes de calques du fichier PSD sont imbriqués trop profondément @msg a layer of the PSD file is too large to read un calque du fichier PSD est trop grand pour être lu @msg the PSD file's layers take more memory to read than allowed les calques du fichier PSD demandent plus de mémoire que permis pour être lus +@msg the file is no longer loaded le fichier n’est plus chargé +@msg the layers can't be read ({e}): the file was placed as its merged image les calques ne peuvent pas être lus ({e}) : le fichier a été importé comme son image fusionnée +@msg 1 type layer came in as pixels: the text isn't editable 1 calque de texte a été importé en pixels : le texte n’est pas modifiable +@msg {n} type layers came in as pixels: the text isn't editable {n} calques de texte ont été importés en pixels : le texte n’est pas modifiable +@msg 1 adjustment layer was not applied 1 calque de réglage n’a pas été appliqué +@msg {n} adjustment layers were not applied {n} calques de réglage n’ont pas été appliqués +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 calque de remplissage n’a pas été dessiné (un remplissage de dégradé ou de motif, une couleur illisible ou une forme qui ne stocke aucun pixel) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} calques de remplissage n’ont pas été dessinés (un remplissage de dégradé ou de motif, une couleur illisible ou une forme qui ne stocke aucun pixel) +@msg the layer effects of 1 layer weren't drawn les effets de calque de 1 calque n’ont pas été dessinés +@msg the layer effects of {n} layers weren't drawn les effets de calque de {n} calques n’ont pas été dessinés +@msg the vector masks of 1 layer weren't applied les masques vectoriels de 1 calque n’ont pas été appliqués +@msg the vector masks of {n} layers weren't applied les masques vectoriels de {n} calques n’ont pas été appliqués +@msg the knockout of 1 layer wasn't applied la défonce de 1 calque n’a pas été appliquée +@msg the knockout of {n} layers wasn't applied la défonce de {n} calques n’a pas été appliquée +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 calque a été omis (calques masqués et calques écrêtés sur eux) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} calques ont été omis (calques masqués et calques écrêtés sur eux) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 calque écrêté sur un calque de remplissage non dessiné a été omis +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} calques écrêtés sur des calques de remplissage non dessinés ont été omis +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them les calques dans des modes de fusion que VectorCraft n’a pas ({modes}) ont été fusionnés avec les calques situés en dessous +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 calque dans un mode de fusion que VectorCraft n’a pas a été importé en Normal : la fusion demande plus de mémoire que permis +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} calques dans des modes de fusion que VectorCraft n’a pas ont été importés en Normal : la fusion demande plus de mémoire que permis +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 calque écrêté sur le calque inférieur a été importé sans écrêtage : la fusion demande plus de mémoire que permis +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} calques écrêtés sur le calque inférieur ont été importés sans écrêtage : la fusion demande plus de mémoire que permis +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers s’applique à un fichier PSD importé avec layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices : un fichier PSD lié est importé comme son image aplatie ; indiquez link: false pour l’incorporer avec ses tranches +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers : un fichier PSD lié est importé comme son image aplatie ; omettez link ou indiquez link: false +@msg the slices can't be read ({e}) and were left out les tranches ne peuvent pas être lues ({e}) et ont été omises +@msg 1 slice lies outside the canvas or has no size and was left out 1 tranche se trouve hors de la zone de travail ou n’a pas de taille et a été omise +@msg {n} slices lie outside the canvas or have no size and were left out {n} tranches se trouvent hors de la zone de travail ou n’ont pas de taille et ont été omises +@msg 1 slice would lie outside the canvas and was left out 1 tranche se trouverait hors de la zone de travail et a été omise +@msg {n} slices would lie outside the canvas and were left out {n} tranches se trouveraient hors de la zone de travail et ont été omises +@msg the slices' descriptor holds too many values le descripteur des tranches contient trop de valeurs +@msg the slices' descriptor has a version other than 16 le descripteur des tranches a une version autre que 16 +@msg the slices are stored in version {v}, which isn't read les tranches sont enregistrées en version {v}, qui n’est pas lue +@msg the file has {count} slices, more than the {MAX_SLICES} read le fichier a {count} tranches, plus que les {MAX_SLICES} lues +@msg the slices' descriptor has no list of slices le descripteur des tranches n’a pas de liste de tranches +@msg the slices' descriptor lists something other than a slice le descripteur des tranches liste autre chose qu’une tranche +@msg a slice in the slices' descriptor has no bounds une tranche du descripteur des tranches n’a pas de limites +@msg a slice's bounds in the slices' descriptor aren't numbers les limites d’une tranche du descripteur des tranches ne sont pas des nombres +@msg a text in the slices has more than the {MAX_TEXT} characters read un texte des tranches a plus que les {MAX_TEXT} caractères lus +@msg the slices' descriptor nests too deep le descripteur des tranches est imbriqué trop profondément +@msg the slices' descriptor has a reference of an unknown kind ({_1}) le descripteur des tranches a une référence d’un genre inconnu ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) le descripteur des tranches a une valeur d’un type inconnu ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image les calques ne peuvent pas être lus ({e}) : le fichier a été ouvert comme son image fusionnée @msg {depth}-bit PSD files in this colour mode can't be read les fichiers PSD {depth} bits dans ce mode colorimétrique ne peuvent pas être lus @msg the PSD file is cut short le fichier PSD est tronqué diff --git a/crates/ui-egui/src/i18n/gu.tsv b/crates/ui-egui/src/i18n/gu.tsv index 136a55591f..a8d0b805dc 100644 --- a/crates/ui-egui/src/i18n/gu.tsv +++ b/crates/ui-egui/src/i18n/gu.tsv @@ -881,6 +881,12 @@ Cut Path at Selected Anchor Points પસંદ કરેલા એન્કર પોઇન્ટ પર પાથ કાપો Cutout… કટઆઉટ… Czech ચેક + PSD Import Options PSD આયાત વિકલ્પો + Place PSD PSD મૂકો + Convert Layers to Objects લેયર્સને ઑબ્જેક્ટમાં ફેરવો + Import Hidden Layers છુપાયેલા લેયર્સ આયાત કરો + Flatten Layers to a Single Image લેયર્સને એક જ ઇમેજમાં ફ્લેટન કરો + Import Slices સ્લાઇસ આયાત કરો DXF Import Options DXF આયાત વિકલ્પો DXF Info DXF માહિતી DXF Options DXF વિકલ્પો diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index 8463e21a2d..d2519c2691 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -1625,6 +1625,12 @@ antiAlias Sharp शार्प Duplication डुप्लीकेशन Dutch डच DWG (use DXF) DWG (DXF का उपयोग करें) + PSD Import Options PSD आयात ऑप्शन्स + Place PSD PSD प्लेस करें + Convert Layers to Objects लेयर्स को ऑब्जेक्ट में बदलें + Import Hidden Layers छिपी लेयर्स आयात करें + Flatten Layers to a Single Image लेयर्स को एक इमेज में फ़्लैट करें + Import Slices स्लाइस आयात करें DXF Import Options DXF आयात ऑप्शन्स DXF Info DXF जानकारी DXF Options DXF ऑप्शन्स @@ -9226,6 +9232,49 @@ variable-list-end {0}, {1} {0} और {1} @msg the PSD file's layer groups are nested too deeply PSD फ़ाइल के लेयर समूह बहुत गहराई तक नेस्ट किए गए हैं @msg a layer of the PSD file is too large to read PSD फ़ाइल की एक लेयर पढ़ने के लिए बहुत बड़ी है @msg the PSD file's layers take more memory to read than allowed PSD फ़ाइल की लेयर पढ़ने के लिए अनुमति से अधिक मेमोरी चाहिए +@msg the file is no longer loaded फ़ाइल अब लोड नहीं है +@msg the layers can't be read ({e}): the file was placed as its merged image लेयर पढ़ी नहीं जा सकतीं ({e}): फ़ाइल अपनी मर्ज की गई इमेज के रूप में प्लेस की गई +@msg 1 type layer came in as pixels: the text isn't editable 1 टाइप लेयर पिक्सेल के रूप में आई: टेक्स्ट एडिट नहीं किया जा सकता +@msg {n} type layers came in as pixels: the text isn't editable {n} टाइप लेयर पिक्सेल के रूप में आईं: टेक्स्ट एडिट नहीं किया जा सकता +@msg 1 adjustment layer was not applied 1 एडजस्टमेंट लेयर लागू नहीं हुई +@msg {n} adjustment layers were not applied {n} एडजस्टमेंट लेयर लागू नहीं हुईं +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 फ़िल लेयर ड्रॉ नहीं हुई (ग्रेडिएंट या पैटर्न फ़िल, ऐसा रंग जो पढ़ा नहीं जा सकता, या ऐसी आकृति जो कोई पिक्सेल नहीं रखती) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} फ़िल लेयर ड्रॉ नहीं हुईं (ग्रेडिएंट या पैटर्न फ़िल, ऐसा रंग जो पढ़ा नहीं जा सकता, या ऐसी आकृति जो कोई पिक्सेल नहीं रखती) +@msg the layer effects of 1 layer weren't drawn 1 लेयर के लेयर इफ़ेक्ट ड्रॉ नहीं हुए +@msg the layer effects of {n} layers weren't drawn {n} लेयर के लेयर इफ़ेक्ट ड्रॉ नहीं हुए +@msg the vector masks of 1 layer weren't applied 1 लेयर के वेक्टर मास्क लागू नहीं हुए +@msg the vector masks of {n} layers weren't applied {n} लेयर के वेक्टर मास्क लागू नहीं हुए +@msg the knockout of 1 layer wasn't applied 1 लेयर का नॉकआउट लागू नहीं हुआ +@msg the knockout of {n} layers wasn't applied {n} लेयर का नॉकआउट लागू नहीं हुआ +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 लेयर छोड़ दी गई (छिपी लेयर और उन पर क्लिप की गई लेयर) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} लेयर छोड़ दी गईं (छिपी लेयर और उन पर क्लिप की गई लेयर) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out ड्रॉ न हुई फ़िल लेयर पर क्लिप की गई 1 लेयर छोड़ दी गई +@msg {n} layers clipped to fill layers that weren't drawn were left out ड्रॉ न हुई फ़िल लेयर पर क्लिप की गई {n} लेयर छोड़ दी गईं +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them उन ब्लेंड मोड की लेयर जो VectorCraft में नहीं हैं ({modes}), अपने नीचे की लेयर के साथ मर्ज कर दी गईं +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed ऐसे ब्लेंड मोड की 1 लेयर जो VectorCraft में नहीं है, सामान्य के रूप में आई: मर्ज करने के लिए अनुमति से अधिक मेमोरी चाहिए +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed ऐसे ब्लेंड मोड की {n} लेयर जो VectorCraft में नहीं हैं, सामान्य के रूप में आईं: मर्ज करने के लिए अनुमति से अधिक मेमोरी चाहिए +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed नीचे की लेयर पर क्लिप की गई 1 लेयर बिना क्लिप के आई: मर्ज करने के लिए अनुमति से अधिक मेमोरी चाहिए +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed नीचे की लेयर पर क्लिप की गई {n} लेयर बिना क्लिप के आईं: मर्ज करने के लिए अनुमति से अधिक मेमोरी चाहिए +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers उस PSD फ़ाइल पर लागू होता है जो layers: true के साथ प्लेस की जाती है +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: लिंक की गई PSD फ़ाइल अपनी फ़्लैट इमेज के रूप में प्लेस होती है; उसे उसकी स्लाइस के साथ एम्बेड करने के लिए link: false दें +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: लिंक की गई PSD फ़ाइल अपनी फ़्लैट इमेज के रूप में प्लेस होती है; link छोड़ दें या link: false दें +@msg the slices can't be read ({e}) and were left out स्लाइस पढ़ी नहीं जा सकतीं ({e}) और छोड़ दी गईं +@msg 1 slice lies outside the canvas or has no size and was left out 1 स्लाइस कैनवस के बाहर है या उसका कोई आकार नहीं है और छोड़ दी गई +@msg {n} slices lie outside the canvas or have no size and were left out {n} स्लाइस कैनवस के बाहर हैं या उनका कोई आकार नहीं है और छोड़ दी गईं +@msg 1 slice would lie outside the canvas and was left out 1 स्लाइस कैनवस के बाहर पड़ती और छोड़ दी गई +@msg {n} slices would lie outside the canvas and were left out {n} स्लाइस कैनवस के बाहर पड़तीं और छोड़ दी गईं +@msg the slices' descriptor holds too many values स्लाइस के डिस्क्रिप्टर में बहुत अधिक मान हैं +@msg the slices' descriptor has a version other than 16 स्लाइस के डिस्क्रिप्टर का संस्करण 16 नहीं है +@msg the slices are stored in version {v}, which isn't read स्लाइस संस्करण {v} में सहेजी गई हैं, जो पढ़ा नहीं जाता +@msg the file has {count} slices, more than the {MAX_SLICES} read फ़ाइल में {count} स्लाइस हैं, पढ़ी जाने वाली {MAX_SLICES} से अधिक +@msg the slices' descriptor has no list of slices स्लाइस के डिस्क्रिप्टर में स्लाइस की कोई सूची नहीं है +@msg the slices' descriptor lists something other than a slice स्लाइस का डिस्क्रिप्टर स्लाइस के अलावा कुछ और सूचीबद्ध करता है +@msg a slice in the slices' descriptor has no bounds स्लाइस के डिस्क्रिप्टर में एक स्लाइस की कोई सीमा नहीं है +@msg a slice's bounds in the slices' descriptor aren't numbers स्लाइस के डिस्क्रिप्टर में एक स्लाइस की सीमाएँ संख्याएँ नहीं हैं +@msg a text in the slices has more than the {MAX_TEXT} characters read स्लाइस के एक टेक्स्ट में पढ़े जाने वाले {MAX_TEXT} अक्षरों से अधिक हैं +@msg the slices' descriptor nests too deep स्लाइस का डिस्क्रिप्टर बहुत गहराई तक नेस्ट है +@msg the slices' descriptor has a reference of an unknown kind ({_1}) स्लाइस के डिस्क्रिप्टर में अज्ञात प्रकार का संदर्भ है ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) स्लाइस के डिस्क्रिप्टर में अज्ञात टाइप का मान है ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image लेयर पढ़ी नहीं जा सकतीं ({e}): फ़ाइल अपनी मर्ज की गई इमेज के रूप में खुली @msg zone must be a string zone एक स्ट्रिंग होनी चाहिए @msg zone must be tab, center, left, right, top or bottom zone को tab, center, left, right, top या bottom होना चाहिए diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index d6325d2dfd..7932b182f7 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -1310,6 +1310,12 @@ font-technology Variable Változó Duplication Kettőzés Dutch Holland DWG (use DXF) DWG (használd a DXF-et) + PSD Import Options PSD-importálás beállításai + Place PSD PSD elhelyezése + Convert Layers to Objects Rétegek átalakítása objektumokká + Import Hidden Layers Rejtett rétegek importálása + Flatten Layers to a Single Image Rétegek egyetlen képpé simítása + Import Slices Szeletek importálása DXF Import Options DXF-importálás beállításai DXF Info DXF-adatok DXF Options DXF-beállítások @@ -6392,6 +6398,49 @@ variable-list-end {0}, {1} {0} és {1} @msg the PSD file's layer groups are nested too deeply a PSD-fájl rétegcsoportjai túl mélyen vannak egymásba ágyazva @msg a layer of the PSD file is too large to read a PSD-fájl egyik rétege túl nagy a beolvasáshoz @msg the PSD file's layers take more memory to read than allowed a PSD-fájl rétegeinek beolvasása több memóriát igényel a megengedettnél +@msg the file is no longer loaded a fájl már nincs betöltve +@msg the layers can't be read ({e}): the file was placed as its merged image a rétegek nem olvashatók ({e}): a fájl az egyesített képeként lett elhelyezve +@msg 1 type layer came in as pixels: the text isn't editable 1 szövegréteg képpontokként érkezett: a szöveg nem szerkeszthető +@msg {n} type layers came in as pixels: the text isn't editable {n} szövegréteg képpontokként érkezett: a szöveg nem szerkeszthető +@msg 1 adjustment layer was not applied 1 korrekciós réteg nem lett alkalmazva +@msg {n} adjustment layers were not applied {n} korrekciós réteg nem lett alkalmazva +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 kitöltőréteg nem lett megrajzolva (színátmenetes vagy mintás kitöltés, nem olvasható szín, vagy képpontokat nem tároló alakzat) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} kitöltőréteg nem lett megrajzolva (színátmenetes vagy mintás kitöltés, nem olvasható szín, vagy képpontokat nem tároló alakzat) +@msg the layer effects of 1 layer weren't drawn 1 réteg rétegeffektusai nem lettek megrajzolva +@msg the layer effects of {n} layers weren't drawn {n} réteg rétegeffektusai nem lettek megrajzolva +@msg the vector masks of 1 layer weren't applied 1 réteg vektoros maszkjai nem lettek alkalmazva +@msg the vector masks of {n} layers weren't applied {n} réteg vektoros maszkjai nem lettek alkalmazva +@msg the knockout of 1 layer wasn't applied 1 réteg kiütése nem lett alkalmazva +@msg the knockout of {n} layers wasn't applied {n} réteg kiütése nem lett alkalmazva +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 réteg kimaradt (rejtett rétegek és a hozzájuk vágott rétegek) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} réteg kimaradt (rejtett rétegek és a hozzájuk vágott rétegek) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out kimaradt 1 réteg, amely egy meg nem rajzolt kitöltőréteghez van vágva +@msg {n} layers clipped to fill layers that weren't drawn were left out kimaradt {n} réteg, amely meg nem rajzolt kitöltőrétegekhez van vágva +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them a VectorCraftban nem létező keverési módú rétegek ({modes}) egyesítve lettek az alattuk lévő rétegekkel +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 réteg a VectorCraftban nem létező keverési módban Normál módban érkezett: az egyesítéshez több memória kell a megengedettnél +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} réteg a VectorCraftban nem létező keverési módokban Normál módban érkezett: az egyesítéshez több memória kell a megengedettnél +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 alatta lévő réteghez vágott réteg vágás nélkül érkezett: az egyesítéshez több memória kell a megengedettnél +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} alatta lévő réteghez vágott réteg vágás nélkül érkezett: az egyesítéshez több memória kell a megengedettnél +@msg hiddenLayers applies to a PSD file placed with layers: true a hiddenLayers a layers: true beállítással elhelyezett PSD-fájlra vonatkozik +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: a csatolt PSD-fájl a lapos képeként kerül elhelyezésre; adja meg a link: false beállítást, hogy a szeleteivel együtt legyen beágyazva +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: a csatolt PSD-fájl a lapos képeként kerül elhelyezésre; hagyja el a link beállítást, vagy adja meg: link: false +@msg the slices can't be read ({e}) and were left out a szeletek nem olvashatók ({e}), ezért kimaradtak +@msg 1 slice lies outside the canvas or has no size and was left out 1 szelet a vásznon kívül esik vagy nincs mérete, ezért kimaradt +@msg {n} slices lie outside the canvas or have no size and were left out {n} szelet a vásznon kívül esik vagy nincs mérete, ezért kimaradt +@msg 1 slice would lie outside the canvas and was left out 1 szelet a vásznon kívül esne, ezért kimaradt +@msg {n} slices would lie outside the canvas and were left out {n} szelet a vásznon kívül esne, ezért kimaradt +@msg the slices' descriptor holds too many values a szeletek leírója túl sok értéket tartalmaz +@msg the slices' descriptor has a version other than 16 a szeletek leírójának verziója nem 16 +@msg the slices are stored in version {v}, which isn't read a szeletek {v} verzióban vannak tárolva, amely nem olvasható +@msg the file has {count} slices, more than the {MAX_SLICES} read a fájlban {count} szelet van, több a beolvasott {MAX_SLICES} darabnál +@msg the slices' descriptor has no list of slices a szeletek leírójában nincs szeletlista +@msg the slices' descriptor lists something other than a slice a szeletek leírója szeleten kívül mást is felsorol +@msg a slice in the slices' descriptor has no bounds a szeletek leírójában egy szeletnek nincsenek határai +@msg a slice's bounds in the slices' descriptor aren't numbers a szeletek leírójában egy szelet határai nem számok +@msg a text in the slices has more than the {MAX_TEXT} characters read a szeletek egyik szövege hosszabb a beolvasott {MAX_TEXT} karakternél +@msg the slices' descriptor nests too deep a szeletek leírója túl mélyen van egymásba ágyazva +@msg the slices' descriptor has a reference of an unknown kind ({_1}) a szeletek leírójában ismeretlen fajtájú hivatkozás van ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) a szeletek leírójában ismeretlen típusú érték van ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image a rétegek nem olvashatók ({e}): a fájl az egyesített képeként nyílt meg @msg zone must be a string a zone értéke szöveg lehet @msg zone must be tab, center, left, right, top or bottom a zone értéke tab, center, left, right, top vagy bottom lehet diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 66f9f47f4c..f55a0a0b44 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -2354,6 +2354,12 @@ digits Malayalam Malayalam Units: Satuan: Use Typographer's Quotes Gunakan tanda kutip tipografis Center Artwork Pusatkan karya seni + PSD Import Options Opsi impor PSD + Place PSD Tempatkan PSD + Convert Layers to Objects Ubah lapisan menjadi objek + Import Hidden Layers Impor lapisan tersembunyi + Flatten Layers to a Single Image Ratakan lapisan menjadi satu gambar + Import Slices Impor slice DXF Import Options Opsi impor DXF Layout: Tata letak: Merge Layers Gabungkan lapisan diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 090ae6ba3c..62cb0dfec8 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -1032,6 +1032,12 @@ font-technology Variable Variabili Duplicate Symbol Duplica simbolo Duplicate {kind} Style Duplica stile {kind} Dutch Olandese + PSD Import Options Opzioni di importazione PSD + Place PSD Inserisci PSD + Convert Layers to Objects Converti livelli in oggetti + Import Hidden Layers Importa livelli nascosti + Flatten Layers to a Single Image Appiattisci livelli in un’unica immagine + Import Slices Importa sezioni DXF Import Options Opzioni di importazione DXF DXF Info Informazioni DXF DXF Options Opzioni DXF @@ -5827,6 +5833,49 @@ variable-list-end {0}, {1} {0} e {1} @msg the PSD file's layer groups are nested too deeply i gruppi di livelli del file PSD sono annidati troppo in profondità @msg a layer of the PSD file is too large to read un livello del file PSD è troppo grande per essere letto @msg the PSD file's layers take more memory to read than allowed i livelli del file PSD richiedono più memoria del consentito per essere letti +@msg the file is no longer loaded il file non è più caricato +@msg the layers can't be read ({e}): the file was placed as its merged image i livelli non possono essere letti ({e}): il file è stato inserito come immagine unita +@msg 1 type layer came in as pixels: the text isn't editable 1 livello di testo è stato importato come pixel: il testo non è modificabile +@msg {n} type layers came in as pixels: the text isn't editable {n} livelli di testo sono stati importati come pixel: il testo non è modificabile +@msg 1 adjustment layer was not applied 1 livello di regolazione non è stato applicato +@msg {n} adjustment layers were not applied {n} livelli di regolazione non sono stati applicati +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 livello di riempimento non è stato disegnato (un riempimento con sfumatura o pattern, un colore che non può essere letto o una forma che non contiene pixel) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} livelli di riempimento non sono stati disegnati (un riempimento con sfumatura o pattern, un colore che non può essere letto o una forma che non contiene pixel) +@msg the layer effects of 1 layer weren't drawn gli effetti di livello di 1 livello non sono stati disegnati +@msg the layer effects of {n} layers weren't drawn gli effetti di livello di {n} livelli non sono stati disegnati +@msg the vector masks of 1 layer weren't applied le maschere vettoriali di 1 livello non sono state applicate +@msg the vector masks of {n} layers weren't applied le maschere vettoriali di {n} livelli non sono state applicate +@msg the knockout of 1 layer wasn't applied la foratura di 1 livello non è stata applicata +@msg the knockout of {n} layers wasn't applied la foratura di {n} livelli non è stata applicata +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 livello è stato escluso (livelli nascosti e i livelli ritagliati su di essi) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} livelli sono stati esclusi (livelli nascosti e i livelli ritagliati su di essi) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 livello ritagliato su un livello di riempimento non disegnato è stato escluso +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} livelli ritagliati su livelli di riempimento non disegnati sono stati esclusi +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them i livelli in metodi di fusione che VectorCraft non ha ({modes}) sono stati uniti ai livelli sottostanti +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 livello in un metodo di fusione che VectorCraft non ha è stato importato come Normale: l’unione richiede più memoria di quella consentita +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} livelli in metodi di fusione che VectorCraft non ha sono stati importati come Normale: l’unione richiede più memoria di quella consentita +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 livello ritagliato sul livello sottostante è stato importato senza ritaglio: l’unione richiede più memoria di quella consentita +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} livelli ritagliati sul livello sottostante sono stati importati senza ritaglio: l’unione richiede più memoria di quella consentita +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers vale per un file PSD inserito con layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: un file PSD collegato viene inserito come immagine appiattita; indica link: false per incorporarlo con le sue sezioni +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: un file PSD collegato viene inserito come immagine appiattita; ometti link o indica link: false +@msg the slices can't be read ({e}) and were left out le sezioni non possono essere lette ({e}) e sono state escluse +@msg 1 slice lies outside the canvas or has no size and was left out 1 sezione si trova fuori dall’area di lavoro o non ha dimensioni ed è stata esclusa +@msg {n} slices lie outside the canvas or have no size and were left out {n} sezioni si trovano fuori dall’area di lavoro o non hanno dimensioni e sono state escluse +@msg 1 slice would lie outside the canvas and was left out 1 sezione si troverebbe fuori dall’area di lavoro ed è stata esclusa +@msg {n} slices would lie outside the canvas and were left out {n} sezioni si troverebbero fuori dall’area di lavoro e sono state escluse +@msg the slices' descriptor holds too many values il descrittore delle sezioni contiene troppi valori +@msg the slices' descriptor has a version other than 16 il descrittore delle sezioni ha una versione diversa da 16 +@msg the slices are stored in version {v}, which isn't read le sezioni sono salvate nella versione {v}, che non viene letta +@msg the file has {count} slices, more than the {MAX_SLICES} read il file ha {count} sezioni, più delle {MAX_SLICES} lette +@msg the slices' descriptor has no list of slices il descrittore delle sezioni non ha un elenco di sezioni +@msg the slices' descriptor lists something other than a slice il descrittore delle sezioni elenca qualcosa che non è una sezione +@msg a slice in the slices' descriptor has no bounds una sezione nel descrittore delle sezioni non ha limiti +@msg a slice's bounds in the slices' descriptor aren't numbers i limiti di una sezione nel descrittore delle sezioni non sono numeri +@msg a text in the slices has more than the {MAX_TEXT} characters read un testo nelle sezioni ha più dei {MAX_TEXT} caratteri letti +@msg the slices' descriptor nests too deep il descrittore delle sezioni è annidato troppo in profondità +@msg the slices' descriptor has a reference of an unknown kind ({_1}) il descrittore delle sezioni ha un riferimento di un genere sconosciuto ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) il descrittore delle sezioni ha un valore di un tipo sconosciuto ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image i livelli non possono essere letti ({e}): il file è stato aperto come immagine unita @msg {depth}-bit PSD files in this colour mode can't be read i file PSD a {depth} bit in questo metodo colore non possono essere letti @msg the PSD file is cut short il file PSD è troncato diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index e8abccf81f..0bb4c9c311 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -1508,6 +1508,12 @@ antiAlias Sharp シャープ Cut Path at Selected Anchor Points 選択したアンカーポイントでパスをカット Dim Images to: 画像の濃さ: Duplicate Selection 選択項目を複製 + PSD Import Options PSD 読み込みオプション + Place PSD PSD を配置 + Convert Layers to Objects レイヤーをオブジェクトに変換 + Import Hidden Layers 非表示レイヤーを読み込む + Flatten Layers to a Single Image レイヤーを 1 つの画像に統合 + Import Slices スライスを読み込む DXF Import Options DXF 読み込みオプション DXF Info DXF 情報 DXF Options DXF オプション @@ -5875,6 +5881,49 @@ liquify-list-end {0}, {1} {0}、{1} @msg the PSD file's layer groups are nested too deeply PSD ファイルのレイヤーグループの入れ子が深すぎます @msg a layer of the PSD file is too large to read PSD ファイルのレイヤーが大きすぎて読み込めません @msg the PSD file's layers take more memory to read than allowed PSD ファイルのレイヤーの読み込みに許容量を超えるメモリーが必要です +@msg the file is no longer loaded ファイルはもう読み込まれていません +@msg the layers can't be read ({e}): the file was placed as its merged image レイヤーを読み込めません({e}):ファイルは統合画像として配置されました +@msg 1 type layer came in as pixels: the text isn't editable テキストレイヤー 1 個がピクセルとして読み込まれました:テキストは編集できません +@msg {n} type layers came in as pixels: the text isn't editable テキストレイヤー {n} 個がピクセルとして読み込まれました:テキストは編集できません +@msg 1 adjustment layer was not applied 調整レイヤー 1 個は適用されませんでした +@msg {n} adjustment layers were not applied 調整レイヤー {n} 個は適用されませんでした +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 塗りつぶしレイヤー 1 個は描画されませんでした(グラデーションまたはパターンの塗り、読み込めないカラー、またはピクセルを持たないシェイプ) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 塗りつぶしレイヤー {n} 個は描画されませんでした(グラデーションまたはパターンの塗り、読み込めないカラー、またはピクセルを持たないシェイプ) +@msg the layer effects of 1 layer weren't drawn レイヤー 1 個のレイヤー効果は描画されませんでした +@msg the layer effects of {n} layers weren't drawn レイヤー {n} 個のレイヤー効果は描画されませんでした +@msg the vector masks of 1 layer weren't applied レイヤー 1 個のベクトルマスクは適用されませんでした +@msg the vector masks of {n} layers weren't applied レイヤー {n} 個のベクトルマスクは適用されませんでした +@msg the knockout of 1 layer wasn't applied レイヤー 1 個のノックアウトは適用されませんでした +@msg the knockout of {n} layers wasn't applied レイヤー {n} 個のノックアウトは適用されませんでした +@msg 1 layer was left out (hidden layers and the layers clipped to them) レイヤー 1 個を除外しました(非表示のレイヤーと、それにクリップされたレイヤー) +@msg {n} layers were left out (hidden layers and the layers clipped to them) レイヤー {n} 個を除外しました(非表示のレイヤーと、それにクリップされたレイヤー) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 描画されなかった塗りつぶしレイヤーにクリップされたレイヤー 1 個を除外しました +@msg {n} layers clipped to fill layers that weren't drawn were left out 描画されなかった塗りつぶしレイヤーにクリップされたレイヤー {n} 個を除外しました +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them VectorCraft にない描画モード({modes})のレイヤーは下のレイヤーと統合されました +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed VectorCraft にない描画モードのレイヤー 1 個は通常として読み込まれました:統合には許容量を超えるメモリが必要です +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed VectorCraft にない描画モードのレイヤー {n} 個は通常として読み込まれました:統合には許容量を超えるメモリが必要です +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 下のレイヤーにクリップされたレイヤー 1 個はクリップなしで読み込まれました:統合には許容量を超えるメモリが必要です +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed 下のレイヤーにクリップされたレイヤー {n} 個はクリップなしで読み込まれました:統合には許容量を超えるメモリが必要です +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers は layers: true で配置する PSD ファイルに適用されます +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices:リンクした PSD ファイルはフラットな画像として配置されます。スライスと一緒に埋め込むには link: false を指定してください +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers:リンクした PSD ファイルはフラットな画像として配置されます。link を省略するか link: false を指定してください +@msg the slices can't be read ({e}) and were left out スライスを読み込めないため({e})、除外しました +@msg 1 slice lies outside the canvas or has no size and was left out スライス 1 個がカンバスの外にあるかサイズがないため、除外しました +@msg {n} slices lie outside the canvas or have no size and were left out スライス {n} 個がカンバスの外にあるかサイズがないため、除外しました +@msg 1 slice would lie outside the canvas and was left out スライス 1 個がカンバスの外に出るため、除外しました +@msg {n} slices would lie outside the canvas and were left out スライス {n} 個がカンバスの外に出るため、除外しました +@msg the slices' descriptor holds too many values スライスの記述子に含まれる値が多すぎます +@msg the slices' descriptor has a version other than 16 スライスの記述子のバージョンが 16 ではありません +@msg the slices are stored in version {v}, which isn't read スライスは読み込まないバージョン {v} で保存されています +@msg the file has {count} slices, more than the {MAX_SLICES} read ファイルのスライスは {count} 個で、読み込む {MAX_SLICES} 個を超えています +@msg the slices' descriptor has no list of slices スライスの記述子にスライスのリストがありません +@msg the slices' descriptor lists something other than a slice スライスの記述子にスライス以外のものがあります +@msg a slice in the slices' descriptor has no bounds スライスの記述子のスライスに境界がありません +@msg a slice's bounds in the slices' descriptor aren't numbers スライスの記述子のスライスの境界が数値ではありません +@msg a text in the slices has more than the {MAX_TEXT} characters read スライスのテキストが読み込む {MAX_TEXT} 文字を超えています +@msg the slices' descriptor nests too deep スライスの記述子の入れ子が深すぎます +@msg the slices' descriptor has a reference of an unknown kind ({_1}) スライスの記述子に不明な種類の参照があります({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) スライスの記述子に不明な型の値があります({_1}) @msg the layers can't be read ({e}): the file opened as its merged image レイヤーを読み込めません({e}):ファイルは統合画像として開かれました @msg {depth}-bit PSD files in this colour mode can't be read このカラーモードの {depth} bit PSD ファイルは読み込めません @msg the PSD file is cut short PSD ファイルが途中で切れています diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 3f4f60cc1d..191ee5d6f8 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -7477,6 +7477,33 @@ font-technology Variable ცვლადი @msg the PSD file's layer groups are nested too deeply PSD ფაილის შრეების ჯგუფები ზედმეტად ღრმადაა ჩადგმული @msg a layer of the PSD file is too large to read PSD ფაილის შრე ზედმეტად დიდია წასაკითხად @msg the PSD file's layers take more memory to read than allowed PSD ფაილის შრეების წასაკითხად დაშვებულზე მეტი მეხსიერებაა საჭირო +@msg the layers can't be read ({e}): the file was placed as its merged image შრეების წაკითხვა ვერ ხერხდება ({e}): ფაილი განთავსდა როგორც მისი გაერთიანებული გამოსახულება +@msg 1 type layer came in as pixels: the text isn't editable 1 ტექსტის შრე შემოვიდა პიქსელებად: ტექსტი არ რედაქტირდება +@msg {n} type layers came in as pixels: the text isn't editable {n} ტექსტის შრე შემოვიდა პიქსელებად: ტექსტი არ რედაქტირდება +@msg 1 adjustment layer was not applied 1 კორექციის შრე არ იქნა გამოყენებული +@msg {n} adjustment layers were not applied {n} კორექციის შრე არ იქნა გამოყენებული +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 შევსების შრე არ დაიხატა (გრადიენტული ან ნიმუშის შევსება, ფერი, რომლის წაკითხვაც ვერ ხერხდება, ან ფიგურა, რომელიც პიქსელებს არ ინახავს) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} შევსების შრე არ დაიხატა (გრადიენტული ან ნიმუშის შევსება, ფერი, რომლის წაკითხვაც ვერ ხერხდება, ან ფიგურა, რომელიც პიქსელებს არ ინახავს) +@msg the layer effects of 1 layer weren't drawn 1 შრის შრის ეფექტები არ დაიხატა +@msg the layer effects of {n} layers weren't drawn {n} შრის შრის ეფექტები არ დაიხატა +@msg the vector masks of 1 layer weren't applied 1 შრის ვექტორული ნიღბები არ იქნა გამოყენებული +@msg the vector masks of {n} layers weren't applied {n} შრის ვექტორული ნიღბები არ იქნა გამოყენებული +@msg the knockout of 1 layer wasn't applied 1 შრის ამოჭრა არ იქნა გამოყენებული +@msg the knockout of {n} layers wasn't applied {n} შრის ამოჭრა არ იქნა გამოყენებული +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 შრე გამოტოვებულია (დამალული შრეები და მათზე მოჭრილი შრეები) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} შრე გამოტოვებულია (დამალული შრეები და მათზე მოჭრილი შრეები) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out დაუხატავ შევსების შრეზე მოჭრილი 1 შრე გამოტოვებულია +@msg {n} layers clipped to fill layers that weren't drawn were left out დაუხატავ შევსების შრეებზე მოჭრილი {n} შრე გამოტოვებულია +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them შრეები შერევის რეჟიმებში, რომლებიც VectorCraft-ს არ აქვს ({modes}), გაერთიანდა მათ ქვემოთ მყოფ შრეებთან +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 შრე შერევის რეჟიმში, რომელიც VectorCraft-ს არ აქვს, შემოვიდა როგორც ჩვეულებრივი: გაერთიანებას დასაშვებზე მეტი მეხსიერება სჭირდება +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} შრე შერევის რეჟიმებში, რომლებიც VectorCraft-ს არ აქვს, შემოვიდა როგორც ჩვეულებრივი: გაერთიანებას დასაშვებზე მეტი მეხსიერება სჭირდება +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed ქვედა შრეზე მოჭრილი 1 შრე შემოვიდა მოუჭრელად: გაერთიანებას დასაშვებზე მეტი მეხსიერება სჭირდება +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed ქვედა შრეზე მოჭრილი {n} შრე შემოვიდა მოუჭრელად: გაერთიანებას დასაშვებზე მეტი მეხსიერება სჭირდება +@msg the slices can't be read ({e}) and were left out ნაჭრების წაკითხვა ვერ ხერხდება ({e}) და ისინი გამოტოვებულია +@msg 1 slice lies outside the canvas or has no size and was left out 1 ნაჭერი ტილოს გარეთაა ან ზომა არ აქვს და გამოტოვებულია +@msg {n} slices lie outside the canvas or have no size and were left out {n} ნაჭერი ტილოს გარეთაა ან ზომა არ აქვს და გამოტოვებულია +@msg 1 slice would lie outside the canvas and was left out 1 ნაჭერი ტილოს გარეთ აღმოჩნდებოდა და გამოტოვებულია +@msg {n} slices would lie outside the canvas and were left out {n} ნაჭერი ტილოს გარეთ აღმოჩნდებოდა და გამოტოვებულია @msg the layers can't be read ({e}): the file opened as its merged image შრეების წაკითხვა ვერ ხერხდება ({e}): ფაილი გაიხსნა როგორც მისი გაერთიანებული გამოსახულება @msg {depth}-bit PSD files in this colour mode can't be read ამ ფერის რეჟიმში {depth}-ბიტიანი PSD ფაილების წაკითხვა ვერ ხერხდება @msg the PSD file is cut short PSD ფაილი შეკვეცილია diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index bebe2e666c..6277601819 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -1498,6 +1498,12 @@ antiAlias Sharp 날카롭게 Cut Path at Selected Anchor Points 선택한 앵커 포인트에서 패스 자르기 Dim Images to: 이미지 흐리게: Duplicate Selection 선택 항목 복제 + PSD Import Options PSD 가져오기 옵션 + Place PSD PSD 가져오기 + Convert Layers to Objects 레이어를 오브젝트로 변환 + Import Hidden Layers 숨겨진 레이어 가져오기 + Flatten Layers to a Single Image 레이어를 단일 이미지로 병합 + Import Slices 분할 영역 가져오기 DXF Import Options DXF 가져오기 옵션 DXF Info DXF 정보 DXF Options DXF 옵션 @@ -5804,6 +5810,49 @@ liquify-list-end {0}, {1} {0} 및 {1} @msg the PSD file's layer groups are nested too deeply PSD 파일의 레이어 그룹이 너무 깊이 중첩되어 있습니다 @msg a layer of the PSD file is too large to read PSD 파일의 레이어가 너무 커서 읽을 수 없습니다 @msg the PSD file's layers take more memory to read than allowed PSD 파일의 레이어를 읽는 데 허용된 것보다 많은 메모리가 필요합니다 +@msg the file is no longer loaded 파일이 더 이상 로드되어 있지 않습니다 +@msg the layers can't be read ({e}): the file was placed as its merged image 레이어를 읽을 수 없습니다({e}): 파일이 병합된 이미지로 가져와졌습니다 +@msg 1 type layer came in as pixels: the text isn't editable 문자 레이어 1개가 픽셀로 들어왔습니다: 텍스트를 편집할 수 없습니다 +@msg {n} type layers came in as pixels: the text isn't editable 문자 레이어 {n}개가 픽셀로 들어왔습니다: 텍스트를 편집할 수 없습니다 +@msg 1 adjustment layer was not applied 조정 레이어 1개가 적용되지 않았습니다 +@msg {n} adjustment layers were not applied 조정 레이어 {n}개가 적용되지 않았습니다 +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 칠 레이어 1개가 그려지지 않았습니다(그레이디언트 또는 패턴 칠, 읽을 수 없는 색상, 또는 픽셀을 저장하지 않는 모양) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 칠 레이어 {n}개가 그려지지 않았습니다(그레이디언트 또는 패턴 칠, 읽을 수 없는 색상, 또는 픽셀을 저장하지 않는 모양) +@msg the layer effects of 1 layer weren't drawn 레이어 1개의 레이어 효과가 그려지지 않았습니다 +@msg the layer effects of {n} layers weren't drawn 레이어 {n}개의 레이어 효과가 그려지지 않았습니다 +@msg the vector masks of 1 layer weren't applied 레이어 1개의 벡터 마스크가 적용되지 않았습니다 +@msg the vector masks of {n} layers weren't applied 레이어 {n}개의 벡터 마스크가 적용되지 않았습니다 +@msg the knockout of 1 layer wasn't applied 레이어 1개의 녹아웃이 적용되지 않았습니다 +@msg the knockout of {n} layers wasn't applied 레이어 {n}개의 녹아웃이 적용되지 않았습니다 +@msg 1 layer was left out (hidden layers and the layers clipped to them) 레이어 1개를 제외했습니다(숨겨진 레이어와 그에 클리핑된 레이어) +@msg {n} layers were left out (hidden layers and the layers clipped to them) 레이어 {n}개를 제외했습니다(숨겨진 레이어와 그에 클리핑된 레이어) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 그려지지 않은 칠 레이어에 클리핑된 레이어 1개를 제외했습니다 +@msg {n} layers clipped to fill layers that weren't drawn were left out 그려지지 않은 칠 레이어에 클리핑된 레이어 {n}개를 제외했습니다 +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them VectorCraft에 없는 혼합 모드({modes})의 레이어를 아래 레이어와 병합했습니다 +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed VectorCraft에 없는 혼합 모드의 레이어 1개가 표준으로 들어왔습니다: 병합에 허용된 것보다 많은 메모리가 필요합니다 +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed VectorCraft에 없는 혼합 모드의 레이어 {n}개가 표준으로 들어왔습니다: 병합에 허용된 것보다 많은 메모리가 필요합니다 +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 아래 레이어에 클리핑된 레이어 1개가 클리핑 없이 들어왔습니다: 병합에 허용된 것보다 많은 메모리가 필요합니다 +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed 아래 레이어에 클리핑된 레이어 {n}개가 클리핑 없이 들어왔습니다: 병합에 허용된 것보다 많은 메모리가 필요합니다 +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers는 layers: true로 가져오는 PSD 파일에 적용됩니다 +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: 연결된 PSD 파일은 평면 이미지로 가져옵니다. 분할 영역과 함께 포함하려면 link: false를 지정하세요 +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: 연결된 PSD 파일은 평면 이미지로 가져옵니다. link를 생략하거나 link: false를 지정하세요 +@msg the slices can't be read ({e}) and were left out 분할 영역을 읽을 수 없어({e}) 제외했습니다 +@msg 1 slice lies outside the canvas or has no size and was left out 분할 영역 1개가 캔버스 밖에 있거나 크기가 없어 제외했습니다 +@msg {n} slices lie outside the canvas or have no size and were left out 분할 영역 {n}개가 캔버스 밖에 있거나 크기가 없어 제외했습니다 +@msg 1 slice would lie outside the canvas and was left out 분할 영역 1개가 캔버스 밖에 놓이게 되어 제외했습니다 +@msg {n} slices would lie outside the canvas and were left out 분할 영역 {n}개가 캔버스 밖에 놓이게 되어 제외했습니다 +@msg the slices' descriptor holds too many values 분할 영역 설명자에 값이 너무 많습니다 +@msg the slices' descriptor has a version other than 16 분할 영역 설명자의 버전이 16이 아닙니다 +@msg the slices are stored in version {v}, which isn't read 분할 영역이 읽지 않는 버전 {v}(으)로 저장되어 있습니다 +@msg the file has {count} slices, more than the {MAX_SLICES} read 파일의 분할 영역이 {count}개로, 읽는 {MAX_SLICES}개보다 많습니다 +@msg the slices' descriptor has no list of slices 분할 영역 설명자에 분할 영역 목록이 없습니다 +@msg the slices' descriptor lists something other than a slice 분할 영역 설명자에 분할 영역이 아닌 항목이 있습니다 +@msg a slice in the slices' descriptor has no bounds 분할 영역 설명자의 분할 영역에 경계가 없습니다 +@msg a slice's bounds in the slices' descriptor aren't numbers 분할 영역 설명자의 분할 영역 경계가 숫자가 아닙니다 +@msg a text in the slices has more than the {MAX_TEXT} characters read 분할 영역의 텍스트가 읽는 {MAX_TEXT}자를 넘습니다 +@msg the slices' descriptor nests too deep 분할 영역 설명자가 너무 깊게 중첩되어 있습니다 +@msg the slices' descriptor has a reference of an unknown kind ({_1}) 분할 영역 설명자에 알 수 없는 종류의 참조가 있습니다({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) 분할 영역 설명자에 알 수 없는 유형의 값이 있습니다({_1}) @msg the layers can't be read ({e}): the file opened as its merged image 레이어를 읽을 수 없습니다({e}): 파일이 병합된 이미지로 열렸습니다 @msg {depth}-bit PSD files in this colour mode can't be read 이 색상 모드의 {depth}비트 PSD 파일은 읽을 수 없습니다 @msg the PSD file is cut short PSD 파일이 잘려 있습니다 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index b8c2d6308b..511959e2b8 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -2998,6 +2998,12 @@ digits Malayalam Malayalam Units: Eenheden: Use Typographer's Quotes Typografische aanhalingstekens gebruiken Center Artwork Artwork centreren + PSD Import Options PSD-importopties + Place PSD PSD plaatsen + Convert Layers to Objects Lagen omzetten in objecten + Import Hidden Layers Verborgen lagen importeren + Flatten Layers to a Single Image Lagen afvlakken tot één afbeelding + Import Slices Slices importeren DXF Import Options DXF-importopties Layout: Indeling: Merge Layers Lagen samenvoegen @@ -6035,6 +6041,49 @@ imageTrace Outline Contour @msg the PSD file's layer groups are nested too deeply de laaggroepen van het PSD-bestand zijn te diep genest @msg a layer of the PSD file is too large to read een laag van het PSD-bestand is te groot om te lezen @msg the PSD file's layers take more memory to read than allowed de lagen van het PSD-bestand hebben meer geheugen nodig om te lezen dan toegestaan +@msg the file is no longer loaded het bestand is niet meer geladen +@msg the layers can't be read ({e}): the file was placed as its merged image de lagen kunnen niet worden gelezen ({e}): het bestand is geplaatst als zijn samengevoegde afbeelding +@msg 1 type layer came in as pixels: the text isn't editable 1 tekstlaag is als pixels binnengekomen: de tekst is niet bewerkbaar +@msg {n} type layers came in as pixels: the text isn't editable {n} tekstlagen zijn als pixels binnengekomen: de tekst is niet bewerkbaar +@msg 1 adjustment layer was not applied 1 aanpassingslaag is niet toegepast +@msg {n} adjustment layers were not applied {n} aanpassingslagen zijn niet toegepast +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 vullaag is niet getekend (een verloop- of patroonvulling, een kleur die niet kan worden gelezen, of een vorm die geen pixels opslaat) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} vullagen zijn niet getekend (een verloop- of patroonvulling, een kleur die niet kan worden gelezen, of een vorm die geen pixels opslaat) +@msg the layer effects of 1 layer weren't drawn de laageffecten van 1 laag zijn niet getekend +@msg the layer effects of {n} layers weren't drawn de laageffecten van {n} lagen zijn niet getekend +@msg the vector masks of 1 layer weren't applied de vectormaskers van 1 laag zijn niet toegepast +@msg the vector masks of {n} layers weren't applied de vectormaskers van {n} lagen zijn niet toegepast +@msg the knockout of 1 layer wasn't applied de uitsparing van 1 laag is niet toegepast +@msg the knockout of {n} layers wasn't applied de uitsparing van {n} lagen is niet toegepast +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 laag is weggelaten (verborgen lagen en de lagen die erop zijn uitgeknipt) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} lagen zijn weggelaten (verborgen lagen en de lagen die erop zijn uitgeknipt) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 laag die is uitgeknipt op een vullaag die niet is getekend, is weggelaten +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} lagen die zijn uitgeknipt op vullagen die niet zijn getekend, zijn weggelaten +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them lagen in overvloeimodi die VectorCraft niet heeft ({modes}) zijn samengevoegd met de lagen eronder +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 laag in een overvloeimodus die VectorCraft niet heeft, is als Normaal binnengekomen: het samenvoegen vraagt meer geheugen dan toegestaan +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} lagen in overvloeimodi die VectorCraft niet heeft, zijn als Normaal binnengekomen: het samenvoegen vraagt meer geheugen dan toegestaan +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 laag die is uitgeknipt op de laag eronder, is niet uitgeknipt binnengekomen: het samenvoegen vraagt meer geheugen dan toegestaan +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} lagen die zijn uitgeknipt op de laag eronder, zijn niet uitgeknipt binnengekomen: het samenvoegen vraagt meer geheugen dan toegestaan +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers geldt voor een PSD-bestand dat met layers: true wordt geplaatst +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: een gekoppeld PSD-bestand wordt als zijn platte afbeelding geplaatst; geef link: false om het met zijn slices in te sluiten +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: een gekoppeld PSD-bestand wordt als zijn platte afbeelding geplaatst; laat link weg of geef link: false +@msg the slices can't be read ({e}) and were left out de slices kunnen niet worden gelezen ({e}) en zijn weggelaten +@msg 1 slice lies outside the canvas or has no size and was left out 1 slice ligt buiten het canvas of heeft geen grootte en is weggelaten +@msg {n} slices lie outside the canvas or have no size and were left out {n} slices liggen buiten het canvas of hebben geen grootte en zijn weggelaten +@msg 1 slice would lie outside the canvas and was left out 1 slice zou buiten het canvas liggen en is weggelaten +@msg {n} slices would lie outside the canvas and were left out {n} slices zouden buiten het canvas liggen en zijn weggelaten +@msg the slices' descriptor holds too many values de descriptor van de slices bevat te veel waarden +@msg the slices' descriptor has a version other than 16 de descriptor van de slices heeft een andere versie dan 16 +@msg the slices are stored in version {v}, which isn't read de slices zijn opgeslagen in versie {v}, die niet wordt gelezen +@msg the file has {count} slices, more than the {MAX_SLICES} read het bestand heeft {count} slices, meer dan de {MAX_SLICES} die worden gelezen +@msg the slices' descriptor has no list of slices de descriptor van de slices heeft geen lijst met slices +@msg the slices' descriptor lists something other than a slice de descriptor van de slices vermeldt iets anders dan een slice +@msg a slice in the slices' descriptor has no bounds een slice in de descriptor van de slices heeft geen grenzen +@msg a slice's bounds in the slices' descriptor aren't numbers de grenzen van een slice in de descriptor van de slices zijn geen getallen +@msg a text in the slices has more than the {MAX_TEXT} characters read een tekst in de slices heeft meer dan de {MAX_TEXT} tekens die worden gelezen +@msg the slices' descriptor nests too deep de descriptor van de slices is te diep genest +@msg the slices' descriptor has a reference of an unknown kind ({_1}) de descriptor van de slices heeft een verwijzing van een onbekende soort ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) de descriptor van de slices heeft een waarde van een onbekend type ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image de lagen kunnen niet worden gelezen ({e}): het bestand is geopend als zijn samengevoegde afbeelding @msg {depth}-bit PSD files in this colour mode can't be read {depth}-bits PSD-bestanden in deze kleurmodus kunnen niet worden gelezen @msg the PSD file is cut short het PSD-bestand is afgekapt diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 31b7987515..d0c56c9119 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -2520,6 +2520,12 @@ digits Malayalam Malajalam Units: Jednostki: Use Typographer's Quotes Używaj cudzysłowów drukarskich Center Artwork Wyśrodkuj kompozycję + PSD Import Options Opcje importu PSD + Place PSD Umieść PSD + Convert Layers to Objects Konwertuj warstwy na obiekty + Import Hidden Layers Importuj ukryte warstwy + Flatten Layers to a Single Image Spłaszcz warstwy do jednego obrazu + Import Slices Importuj plasterki DXF Import Options Opcje importu DXF Layout: Układ: Merge Layers Scal warstwy @@ -5887,6 +5893,49 @@ variable-list-end {0}, {1} {0} i {1} @msg the PSD file's layer groups are nested too deeply grupy warstw pliku PSD są zagnieżdżone zbyt głęboko @msg a layer of the PSD file is too large to read warstwa pliku PSD jest zbyt duża, aby ją odczytać @msg the PSD file's layers take more memory to read than allowed odczytanie warstw pliku PSD wymaga więcej pamięci, niż jest dozwolone +@msg the file is no longer loaded plik nie jest już wczytany +@msg the layers can't be read ({e}): the file was placed as its merged image nie można odczytać warstw ({e}): plik umieszczono jako jego scalony obraz +@msg 1 type layer came in as pixels: the text isn't editable 1 warstwa tekstowa została wczytana jako piksele: tekstu nie można edytować +@msg {n} type layers came in as pixels: the text isn't editable warstwy tekstowe wczytane jako piksele: {n}; tekstu nie można edytować +@msg 1 adjustment layer was not applied 1 warstwa dopasowania nie została zastosowana +@msg {n} adjustment layers were not applied niezastosowane warstwy dopasowania: {n} +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 warstwa wypełnienia nie została narysowana (wypełnienie gradientem lub wzorkiem, kolor, którego nie można odczytać, albo kształt bez zapisanych pikseli) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) nienarysowane warstwy wypełnienia: {n} (wypełnienie gradientem lub wzorkiem, kolor, którego nie można odczytać, albo kształt bez zapisanych pikseli) +@msg the layer effects of 1 layer weren't drawn efekty warstwy 1 warstwy nie zostały narysowane +@msg the layer effects of {n} layers weren't drawn efekty warstw nie zostały narysowane; liczba warstw: {n} +@msg the vector masks of 1 layer weren't applied maski wektorowe 1 warstwy nie zostały zastosowane +@msg the vector masks of {n} layers weren't applied maski wektorowe warstw nie zostały zastosowane; liczba warstw: {n} +@msg the knockout of 1 layer wasn't applied wycięcie 1 warstwy nie zostało zastosowane +@msg the knockout of {n} layers wasn't applied wycięcie warstw nie zostało zastosowane; liczba warstw: {n} +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 warstwa została pominięta (ukryte warstwy i warstwy do nich przycięte) +@msg {n} layers were left out (hidden layers and the layers clipped to them) pominięte warstwy: {n} (ukryte warstwy i warstwy do nich przycięte) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 warstwa przycięta do nienarysowanej warstwy wypełnienia została pominięta +@msg {n} layers clipped to fill layers that weren't drawn were left out pominięte warstwy przycięte do nienarysowanych warstw wypełnienia: {n} +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them warstwy w trybach mieszania, których VectorCraft nie ma ({modes}), zostały scalone z warstwami pod nimi +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 warstwa w trybie mieszania, którego VectorCraft nie ma, została wczytana jako Normalny: scalenie wymaga więcej pamięci, niż dozwolono +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed warstwy w trybach mieszania, których VectorCraft nie ma, wczytane jako Normalny: {n}; scalenie wymaga więcej pamięci, niż dozwolono +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 warstwa przycięta do warstwy poniżej została wczytana bez przycięcia: scalenie wymaga więcej pamięci, niż dozwolono +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed warstwy przycięte do warstwy poniżej wczytane bez przycięcia: {n}; scalenie wymaga więcej pamięci, niż dozwolono +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers dotyczy pliku PSD umieszczanego z layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: połączony plik PSD jest umieszczany jako jego spłaszczony obraz; podaj link: false, aby osadzić go z plasterkami +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: połączony plik PSD jest umieszczany jako jego spłaszczony obraz; pomiń link lub podaj link: false +@msg the slices can't be read ({e}) and were left out nie można odczytać plasterków ({e}), więc je pominięto +@msg 1 slice lies outside the canvas or has no size and was left out 1 plasterek leży poza obszarem roboczym lub nie ma rozmiaru i został pominięty +@msg {n} slices lie outside the canvas or have no size and were left out pominięte plasterki leżące poza obszarem roboczym lub bez rozmiaru: {n} +@msg 1 slice would lie outside the canvas and was left out 1 plasterek leżałby poza obszarem roboczym i został pominięty +@msg {n} slices would lie outside the canvas and were left out pominięte plasterki, które leżałyby poza obszarem roboczym: {n} +@msg the slices' descriptor holds too many values deskryptor plasterków zawiera zbyt wiele wartości +@msg the slices' descriptor has a version other than 16 deskryptor plasterków ma wersję inną niż 16 +@msg the slices are stored in version {v}, which isn't read plasterki są zapisane w wersji {v}, która nie jest odczytywana +@msg the file has {count} slices, more than the {MAX_SLICES} read liczba plasterków w pliku wynosi {count}, więcej niż odczytywane {MAX_SLICES} +@msg the slices' descriptor has no list of slices deskryptor plasterków nie ma listy plasterków +@msg the slices' descriptor lists something other than a slice deskryptor plasterków wymienia coś innego niż plasterek +@msg a slice in the slices' descriptor has no bounds plasterek w deskryptorze plasterków nie ma granic +@msg a slice's bounds in the slices' descriptor aren't numbers granice plasterka w deskryptorze plasterków nie są liczbami +@msg a text in the slices has more than the {MAX_TEXT} characters read tekst w plasterkach ma więcej niż odczytywane {MAX_TEXT} znaków +@msg the slices' descriptor nests too deep deskryptor plasterków jest zagnieżdżony zbyt głęboko +@msg the slices' descriptor has a reference of an unknown kind ({_1}) deskryptor plasterków ma odwołanie nieznanego rodzaju ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) deskryptor plasterków ma wartość nieznanego typu ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image nie można odczytać warstw ({e}): plik otwarto jako jego scalony obraz @msg {depth}-bit PSD files in this colour mode can't be read nie można odczytać {depth}-bitowych plików PSD w tym trybie koloru @msg the PSD file is cut short plik PSD jest ucięty diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 46f21d38c8..245737c339 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -715,6 +715,12 @@ antiAlias Sharp Nítido Customize… Personalizar… Cut Recortar Cut Path at Selected Anchor Points Cortar Caminho nos Pontos de Ancoragem Selecionados + PSD Import Options Opções de Importação PSD + Place PSD Colocar PSD + Convert Layers to Objects Converter Camadas em Objetos + Import Hidden Layers Importar Camadas Ocultas + Flatten Layers to a Single Image Achatar Camadas em uma Única Imagem + Import Slices Importar Fatias DXF Import Options Opções de Importação DXF DXF Info Informações DXF DXF Options Opções DXF @@ -5017,6 +5023,49 @@ variable-list-end {0}, {1} {0} e {1} @msg the PSD file's layer groups are nested too deeply os grupos de camadas do arquivo PSD estão aninhados profundamente demais @msg a layer of the PSD file is too large to read uma camada do arquivo PSD é grande demais para ser lida @msg the PSD file's layers take more memory to read than allowed as camadas do arquivo PSD precisam de mais memória do que o permitido para serem lidas +@msg the file is no longer loaded o arquivo não está mais carregado +@msg the layers can't be read ({e}): the file was placed as its merged image as camadas não podem ser lidas ({e}): o arquivo foi colocado como sua imagem mesclada +@msg 1 type layer came in as pixels: the text isn't editable 1 camada de texto entrou como pixels: o texto não é editável +@msg {n} type layers came in as pixels: the text isn't editable {n} camadas de texto entraram como pixels: o texto não é editável +@msg 1 adjustment layer was not applied 1 camada de ajuste não foi aplicada +@msg {n} adjustment layers were not applied {n} camadas de ajuste não foram aplicadas +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 camada de preenchimento não foi desenhada (um preenchimento de gradiente ou de padrão, uma cor que não pode ser lida ou uma forma que não guarda pixels) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} camadas de preenchimento não foram desenhadas (um preenchimento de gradiente ou de padrão, uma cor que não pode ser lida ou uma forma que não guarda pixels) +@msg the layer effects of 1 layer weren't drawn os efeitos de camada de 1 camada não foram desenhados +@msg the layer effects of {n} layers weren't drawn os efeitos de camada de {n} camadas não foram desenhados +@msg the vector masks of 1 layer weren't applied as máscaras vetoriais de 1 camada não foram aplicadas +@msg the vector masks of {n} layers weren't applied as máscaras vetoriais de {n} camadas não foram aplicadas +@msg the knockout of 1 layer wasn't applied o vazamento de 1 camada não foi aplicado +@msg the knockout of {n} layers wasn't applied o vazamento de {n} camadas não foi aplicado +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 camada foi omitida (camadas ocultas e as camadas recortadas nelas) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} camadas foram omitidas (camadas ocultas e as camadas recortadas nelas) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 camada recortada em uma camada de preenchimento não desenhada foi omitida +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} camadas recortadas em camadas de preenchimento não desenhadas foram omitidas +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them camadas em modos de mesclagem que o VectorCraft não tem ({modes}) foram mescladas com as camadas abaixo delas +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 camada em um modo de mesclagem que o VectorCraft não tem entrou como Normal: a mesclagem precisa de mais memória do que o permitido +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} camadas em modos de mesclagem que o VectorCraft não tem entraram como Normal: a mesclagem precisa de mais memória do que o permitido +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 camada recortada na camada abaixo entrou sem recorte: a mesclagem precisa de mais memória do que o permitido +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} camadas recortadas na camada abaixo entraram sem recorte: a mesclagem precisa de mais memória do que o permitido +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers se aplica a um arquivo PSD colocado com layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: um arquivo PSD vinculado é colocado como sua imagem achatada; informe link: false para incorporá-lo com suas fatias +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: um arquivo PSD vinculado é colocado como sua imagem achatada; omita link ou informe link: false +@msg the slices can't be read ({e}) and were left out as fatias não podem ser lidas ({e}) e foram omitidas +@msg 1 slice lies outside the canvas or has no size and was left out 1 fatia fica fora da tela de pintura ou não tem tamanho e foi omitida +@msg {n} slices lie outside the canvas or have no size and were left out {n} fatias ficam fora da tela de pintura ou não têm tamanho e foram omitidas +@msg 1 slice would lie outside the canvas and was left out 1 fatia ficaria fora da tela de pintura e foi omitida +@msg {n} slices would lie outside the canvas and were left out {n} fatias ficariam fora da tela de pintura e foram omitidas +@msg the slices' descriptor holds too many values o descritor das fatias contém valores demais +@msg the slices' descriptor has a version other than 16 o descritor das fatias tem uma versão diferente de 16 +@msg the slices are stored in version {v}, which isn't read as fatias estão salvas na versão {v}, que não é lida +@msg the file has {count} slices, more than the {MAX_SLICES} read o arquivo tem {count} fatias, mais do que as {MAX_SLICES} lidas +@msg the slices' descriptor has no list of slices o descritor das fatias não tem uma lista de fatias +@msg the slices' descriptor lists something other than a slice o descritor das fatias lista algo que não é uma fatia +@msg a slice in the slices' descriptor has no bounds uma fatia no descritor das fatias não tem limites +@msg a slice's bounds in the slices' descriptor aren't numbers os limites de uma fatia no descritor das fatias não são números +@msg a text in the slices has more than the {MAX_TEXT} characters read um texto nas fatias tem mais do que os {MAX_TEXT} caracteres lidos +@msg the slices' descriptor nests too deep o descritor das fatias está aninhado fundo demais +@msg the slices' descriptor has a reference of an unknown kind ({_1}) o descritor das fatias tem uma referência de um tipo desconhecido ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) o descritor das fatias tem um valor de um tipo desconhecido ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image as camadas não podem ser lidas ({e}): o arquivo foi aberto como sua imagem mesclada @msg {depth}-bit PSD files in this colour mode can't be read arquivos PSD de {depth} bits neste modo de cor não podem ser lidos @msg the PSD file is cut short o arquivo PSD está incompleto diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 17e34d3c35..9ff8228f18 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -1020,6 +1020,12 @@ font-technology Variable Вариативные Duplicate Symbol Дублировать символ Duplicate {kind} Style Дублировать стиль {kind} Dutch Нидерландский + PSD Import Options Параметры импорта PSD + Place PSD Поместить PSD + Convert Layers to Objects Преобразовать слои в объекты + Import Hidden Layers Импортировать скрытые слои + Flatten Layers to a Single Image Свести слои в одно изображение + Import Slices Импортировать фрагменты DXF Import Options Параметры импорта DXF DXF Info Сведения о DXF DXF Options Параметры DXF @@ -5826,6 +5832,49 @@ variable-list-end {0}, {1} {0} и {1} @msg the PSD file's layer groups are nested too deeply группы слоёв файла PSD вложены слишком глубоко @msg a layer of the PSD file is too large to read слой файла PSD слишком велик для чтения @msg the PSD file's layers take more memory to read than allowed для чтения слоёв файла PSD нужно больше памяти, чем разрешено +@msg the file is no longer loaded файл больше не загружен +@msg the layers can't be read ({e}): the file was placed as its merged image не удаётся прочитать слои ({e}): файл помещён как сведённое изображение +@msg 1 type layer came in as pixels: the text isn't editable 1 текстовый слой импортирован как пиксели: текст нельзя редактировать +@msg {n} type layers came in as pixels: the text isn't editable текстовых слоёв, импортированных как пиксели: {n}; текст нельзя редактировать +@msg 1 adjustment layer was not applied 1 корректирующий слой не применён +@msg {n} adjustment layers were not applied не применено корректирующих слоёв: {n} +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 слой-заливка не отрисован (градиентная или узорная заливка, цвет, который не удаётся прочитать, или фигура без сохранённых пикселей) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) не отрисовано слоёв-заливок: {n} (градиентная или узорная заливка, цвет, который не удаётся прочитать, или фигура без сохранённых пикселей) +@msg the layer effects of 1 layer weren't drawn эффекты слоя для 1 слоя не отрисованы +@msg the layer effects of {n} layers weren't drawn эффекты слоёв не отрисованы; число слоёв: {n} +@msg the vector masks of 1 layer weren't applied векторные маски 1 слоя не применены +@msg the vector masks of {n} layers weren't applied векторные маски слоёв не применены; число слоёв: {n} +@msg the knockout of 1 layer wasn't applied выбивка 1 слоя не применена +@msg the knockout of {n} layers wasn't applied выбивка слоёв не применена; число слоёв: {n} +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 слой пропущен (скрытые слои и обрезанные по ним слои) +@msg {n} layers were left out (hidden layers and the layers clipped to them) пропущено слоёв: {n} (скрытые слои и обрезанные по ним слои) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 слой, обрезанный по неотрисованному слою-заливке, пропущен +@msg {n} layers clipped to fill layers that weren't drawn were left out пропущено слоёв, обрезанных по неотрисованным слоям-заливкам: {n} +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them слои в режимах наложения, которых нет в VectorCraft ({modes}), сведены со слоями под ними +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 слой в режиме наложения, которого нет в VectorCraft, импортирован как Обычный: для сведения нужно больше памяти, чем разрешено +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed слоёв в режимах наложения, которых нет в VectorCraft, импортировано как Обычный: {n}; для сведения нужно больше памяти, чем разрешено +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 слой, обрезанный по нижнему слою, импортирован без обрезки: для сведения нужно больше памяти, чем разрешено +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed слоёв, обрезанных по нижнему слою и импортированных без обрезки: {n}; для сведения нужно больше памяти, чем разрешено +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers относится к PSD-файлу, помещаемому с layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: связанный PSD-файл помещается как плоское изображение; укажите link: false, чтобы внедрить его с фрагментами +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: связанный PSD-файл помещается как плоское изображение; не указывайте link или укажите link: false +@msg the slices can't be read ({e}) and were left out не удаётся прочитать фрагменты ({e}), они пропущены +@msg 1 slice lies outside the canvas or has no size and was left out 1 фрагмент лежит вне холста или не имеет размера и пропущен +@msg {n} slices lie outside the canvas or have no size and were left out пропущено фрагментов вне холста или без размера: {n} +@msg 1 slice would lie outside the canvas and was left out 1 фрагмент оказался бы вне холста и пропущен +@msg {n} slices would lie outside the canvas and were left out пропущено фрагментов, которые оказались бы вне холста: {n} +@msg the slices' descriptor holds too many values дескриптор фрагментов содержит слишком много значений +@msg the slices' descriptor has a version other than 16 версия дескриптора фрагментов отличается от 16 +@msg the slices are stored in version {v}, which isn't read фрагменты сохранены в версии {v}, которая не читается +@msg the file has {count} slices, more than the {MAX_SLICES} read фрагментов в файле: {count}, больше читаемых {MAX_SLICES} +@msg the slices' descriptor has no list of slices в дескрипторе фрагментов нет списка фрагментов +@msg the slices' descriptor lists something other than a slice дескриптор фрагментов перечисляет что-то, кроме фрагмента +@msg a slice in the slices' descriptor has no bounds у фрагмента в дескрипторе фрагментов нет границ +@msg a slice's bounds in the slices' descriptor aren't numbers границы фрагмента в дескрипторе фрагментов не являются числами +@msg a text in the slices has more than the {MAX_TEXT} characters read текст во фрагментах длиннее читаемых {MAX_TEXT} символов +@msg the slices' descriptor nests too deep дескриптор фрагментов вложен слишком глубоко +@msg the slices' descriptor has a reference of an unknown kind ({_1}) в дескрипторе фрагментов есть ссылка неизвестного вида ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) в дескрипторе фрагментов есть значение неизвестного типа ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image не удаётся прочитать слои ({e}): файл открыт как сведённое изображение @msg {depth}-bit PSD files in this colour mode can't be read {depth}-битные файлы PSD в этом цветовом режиме не читаются @msg the PSD file is cut short файл PSD обрезан diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 8a45d599ea..42560b0efa 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -1010,6 +1010,12 @@ font-technology Variable Variabla Duplicate Symbol Duplicera symbol Duplicate {kind} Style Duplicera {kind}-stil Dutch Nederländska + PSD Import Options Importalternativ för PSD + Place PSD Placera PSD + Convert Layers to Objects Konvertera lager till objekt + Import Hidden Layers Importera dolda lager + Flatten Layers to a Single Image Platta till lager till en enda bild + Import Slices Importera skivor DXF Import Options Importalternativ för DXF DXF Info DXF-info DXF Options DXF-alternativ @@ -5704,6 +5710,49 @@ variable-list-end {0}, {1} {0} och {1} @msg the PSD file's layer groups are nested too deeply PSD-filens lagergrupper är kapslade för djupt @msg a layer of the PSD file is too large to read ett lager i PSD-filen är för stort för att läsas @msg the PSD file's layers take more memory to read than allowed PSD-filens lager kräver mer minne för att läsas än vad som tillåts +@msg the file is no longer loaded filen är inte längre inläst +@msg the layers can't be read ({e}): the file was placed as its merged image lagren kan inte läsas ({e}): filen placerades som sin sammanslagna bild +@msg 1 type layer came in as pixels: the text isn't editable 1 textlager kom in som pixlar: texten går inte att redigera +@msg {n} type layers came in as pixels: the text isn't editable {n} textlager kom in som pixlar: texten går inte att redigera +@msg 1 adjustment layer was not applied 1 justeringslager tillämpades inte +@msg {n} adjustment layers were not applied {n} justeringslager tillämpades inte +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 fyllningslager ritades inte (en övertonings- eller mönsterfyllning, en färg som inte kan läsas eller en form som inte lagrar några pixlar) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} fyllningslager ritades inte (en övertonings- eller mönsterfyllning, en färg som inte kan läsas eller en form som inte lagrar några pixlar) +@msg the layer effects of 1 layer weren't drawn lagereffekterna för 1 lager ritades inte +@msg the layer effects of {n} layers weren't drawn lagereffekterna för {n} lager ritades inte +@msg the vector masks of 1 layer weren't applied vektormaskerna för 1 lager tillämpades inte +@msg the vector masks of {n} layers weren't applied vektormaskerna för {n} lager tillämpades inte +@msg the knockout of 1 layer wasn't applied utsparningen för 1 lager tillämpades inte +@msg the knockout of {n} layers wasn't applied utsparningen för {n} lager tillämpades inte +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 lager utelämnades (dolda lager och de lager som är urklippta mot dem) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} lager utelämnades (dolda lager och de lager som är urklippta mot dem) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 lager urklippt mot ett fyllningslager som inte ritades utelämnades +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} lager urklippta mot fyllningslager som inte ritades utelämnades +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them lager i blandningslägen som VectorCraft inte har ({modes}) slogs samman med lagren under dem +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 lager i ett blandningsläge som VectorCraft inte har kom in som Normal: sammanslagningen kräver mer minne än tillåtet +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} lager i blandningslägen som VectorCraft inte har kom in som Normal: sammanslagningen kräver mer minne än tillåtet +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 lager urklippt mot lagret under kom in utan urklipp: sammanslagningen kräver mer minne än tillåtet +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} lager urklippta mot lagret under kom in utan urklipp: sammanslagningen kräver mer minne än tillåtet +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers gäller en PSD-fil som placeras med layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: en länkad PSD-fil placeras som sin platta bild; ange link: false för att bädda in den med dess skivor +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: en länkad PSD-fil placeras som sin platta bild; utelämna link eller ange link: false +@msg the slices can't be read ({e}) and were left out skivorna kan inte läsas ({e}) och utelämnades +@msg 1 slice lies outside the canvas or has no size and was left out 1 skiva ligger utanför arbetsytan eller saknar storlek och utelämnades +@msg {n} slices lie outside the canvas or have no size and were left out {n} skivor ligger utanför arbetsytan eller saknar storlek och utelämnades +@msg 1 slice would lie outside the canvas and was left out 1 skiva skulle ligga utanför arbetsytan och utelämnades +@msg {n} slices would lie outside the canvas and were left out {n} skivor skulle ligga utanför arbetsytan och utelämnades +@msg the slices' descriptor holds too many values skivornas deskriptor innehåller för många värden +@msg the slices' descriptor has a version other than 16 skivornas deskriptor har en annan version än 16 +@msg the slices are stored in version {v}, which isn't read skivorna är sparade i version {v}, som inte läses +@msg the file has {count} slices, more than the {MAX_SLICES} read filen har {count} skivor, fler än de {MAX_SLICES} som läses +@msg the slices' descriptor has no list of slices skivornas deskriptor har ingen lista över skivor +@msg the slices' descriptor lists something other than a slice skivornas deskriptor listar något annat än en skiva +@msg a slice in the slices' descriptor has no bounds en skiva i skivornas deskriptor saknar gränser +@msg a slice's bounds in the slices' descriptor aren't numbers gränserna för en skiva i skivornas deskriptor är inte tal +@msg a text in the slices has more than the {MAX_TEXT} characters read en text i skivorna har fler än de {MAX_TEXT} tecken som läses +@msg the slices' descriptor nests too deep skivornas deskriptor är kapslad för djupt +@msg the slices' descriptor has a reference of an unknown kind ({_1}) skivornas deskriptor har en referens av okänt slag ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) skivornas deskriptor har ett värde av okänd typ ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image lagren kan inte läsas ({e}): filen öppnades som sin sammanslagna bild @msg {depth}-bit PSD files in this colour mode can't be read {depth}-bitars PSD-filer i det här färgläget kan inte läsas @msg the PSD file is cut short PSD-filen är avkortad diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 79ba20d44b..e9899ae8f7 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -554,6 +554,79 @@ fn objects_on_path_detach_strings_are_in_complete_catalogs() { } } +/// The PSD Import Options dialog's labels, and the warnings and errors of opening and placing a +/// PSD or PSB file with its layers and slices: each complete catalog translates every one, keeping +/// its numbers, and translates a reason given inside one. +#[test] +fn psd_import_strings_are_in_complete_catalogs() { + use crate::io::opened_with_notes; + use vectorcraft_engine::cmd::fileio::{PSD_LAYER_WARNINGS, PSD_MERGED_WARNING}; + let labels = + ["Place PSD", "PSD Import Options", "Convert Layers to Objects", "Import Hidden Layers", "Flatten Layers to a Single Image", "Import Slices"]; + for lang in LANGUAGES.iter().filter(|lang| lang.complete_menus) { + for label in labels { + assert!(lang.catalog().plain(label).is_some(), "{} is missing {label}", lang.code); + } + } + let (nested, damaged) = ("the slices' descriptor nests too deep", "the PSD file's layer records are damaged"); + let unread_slices = "the slices can't be read (the slices' descriptor nests too deep) and were left out"; + let unread_layers = "the layers can't be read (the PSD file's layer records are damaged): the file was placed as its merged image"; + let merged = PSD_MERGED_WARNING.replace("{modes}", "Hue, Luminosity"); + let (one, many) = PSD_LAYER_WARNINGS[1]; + let (one, many) = (one.to_string(), many.replace("{n}", "3")); + let mut shown: Vec = PSD_LAYER_WARNINGS.iter().flat_map(|(one, many)| [one.to_string(), many.replace("{n}", "3")]).collect(); + shown.push(merged.clone()); + shown.extend( + [ + "the file is no longer loaded", + unread_layers, + "hiddenLayers applies to a PSD file placed with layers: true", + "importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices", + "layers: a linked PSD file is placed as its flat image; leave link out or give link: false", + unread_slices, + "1 slice lies outside the canvas or has no size and was left out", + "3 slices lie outside the canvas or have no size and were left out", + "1 slice would lie outside the canvas and was left out", + "3 slices would lie outside the canvas and were left out", + "the slices' descriptor holds too many values", + "the slices' descriptor has a version other than 16", + "the slices are stored in version 9, which isn't read", + "the file has 10001 slices, more than the 10000 read", + "the slices' descriptor has no list of slices", + "the slices' descriptor lists something other than a slice", + "a slice in the slices' descriptor has no bounds", + "a slice's bounds in the slices' descriptor aren't numbers", + "a text in the slices has more than the 65536 characters read", + nested, + "the slices' descriptor has a reference of an unknown kind (abcd)", + "the slices' descriptor has a value of an unknown type (abcd)", + ] + .map(String::from), + ); + let numbers = |s: &str| s.split(|c: char| !c.is_ascii_digit()).filter(|n| !n.is_empty()).map(String::from).collect::>(); + for code in COMPLETE_MESSAGES { + let lang = Lang::from_code(code).expect("registered"); + for s in &shown { + let tr = message(lang, s); + assert_ne!(&tr, s, "{code}"); + for n in numbers(s) { + assert!(tr.contains(&n), "{code}: {tr} lost {n}"); + } + } + for (s, inner) in [(unread_slices, nested), (unread_layers, damaged)] { + assert!(!message(lang, s).contains(inner), "{code}: {s}"); + } + assert!(message(lang, &merged).contains("Hue, Luminosity"), "{code}"); + assert!(message(lang, &opened_with_notes(1, &one)).ends_with(&message(lang, &one)), "{code}"); + } + assert_eq!(message(de(), &many), "3 Einstellungsebenen wurden nicht angewendet"); + assert_eq!(message(de(), &opened_with_notes(1, &one)), "Mit 1 Hinweis geöffnet: 1 Einstellungsebene wurde nicht angewendet"); + assert_eq!( + message(de(), unread_slices), + "die Slices können nicht gelesen werden (der Deskriptor der Slices ist zu tief verschachtelt) und wurden weggelassen" + ); +} + /// The status messages the Shape Builder tool gives when a gesture builds nothing come from the /// tools crate, which [`message_literals`] does not scan, so every complete catalog is checked for /// them here. diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 5e8ecd6dee..4c4c61738a 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -1001,6 +1001,12 @@ font-technology Variable Değişken Duplicate Symbol Yinelenen Sembol Duplicate {kind} Style Çoğaltılmış {kind} Stili Dutch Hollandaca + PSD Import Options PSD İçe Aktarma Seçenekleri + Place PSD PSD Yerleştir + Convert Layers to Objects Katmanları Nesnelere Dönüştür + Import Hidden Layers Gizli Katmanları İçe Aktar + Flatten Layers to a Single Image Katmanları Tek Görüntüde Düzleştir + Import Slices Dilimleri İçe Aktar DXF Import Options DXF İçe Aktarma Seçenekleri DXF Info DXF Bilgisi DXF Options DXF Seçenekleri @@ -5529,6 +5535,49 @@ liquify-list-end {0}, {1} {0} ve {1} @msg the PSD file's layer groups are nested too deeply PSD dosyasının katman grupları çok derin iç içe geçmiş @msg a layer of the PSD file is too large to read PSD dosyasının bir katmanı okunamayacak kadar büyük @msg the PSD file's layers take more memory to read than allowed PSD dosyasının katmanlarını okumak izin verilenden fazla bellek gerektiriyor +@msg the file is no longer loaded dosya artık yüklü değil +@msg the layers can't be read ({e}): the file was placed as its merged image katmanlar okunamıyor ({e}): dosya birleştirilmiş görüntüsü olarak yerleştirildi +@msg 1 type layer came in as pixels: the text isn't editable 1 metin katmanı piksel olarak geldi: metin düzenlenemez +@msg {n} type layers came in as pixels: the text isn't editable {n} metin katmanı piksel olarak geldi: metin düzenlenemez +@msg 1 adjustment layer was not applied 1 ayarlama katmanı uygulanmadı +@msg {n} adjustment layers were not applied {n} ayarlama katmanı uygulanmadı +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 dolgu katmanı çizilmedi (degrade veya desen dolgusu, okunamayan bir renk ya da piksel saklamayan bir şekil) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} dolgu katmanı çizilmedi (degrade veya desen dolgusu, okunamayan bir renk ya da piksel saklamayan bir şekil) +@msg the layer effects of 1 layer weren't drawn 1 katmanın katman efektleri çizilmedi +@msg the layer effects of {n} layers weren't drawn {n} katmanın katman efektleri çizilmedi +@msg the vector masks of 1 layer weren't applied 1 katmanın vektör maskeleri uygulanmadı +@msg the vector masks of {n} layers weren't applied {n} katmanın vektör maskeleri uygulanmadı +@msg the knockout of 1 layer wasn't applied 1 katmanın boşaltması uygulanmadı +@msg the knockout of {n} layers wasn't applied {n} katmanın boşaltması uygulanmadı +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 katman dışarıda bırakıldı (gizli katmanlar ve onlara kırpılmış katmanlar) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} katman dışarıda bırakıldı (gizli katmanlar ve onlara kırpılmış katmanlar) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out çizilmeyen bir dolgu katmanına kırpılmış 1 katman dışarıda bırakıldı +@msg {n} layers clipped to fill layers that weren't drawn were left out çizilmeyen dolgu katmanlarına kırpılmış {n} katman dışarıda bırakıldı +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them VectorCraft’ta olmayan karışım modlarındaki katmanlar ({modes}) altlarındaki katmanlarla birleştirildi +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed VectorCraft’ta olmayan bir karışım modundaki 1 katman Normal olarak geldi: birleştirme izin verilenden fazla bellek gerektiriyor +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed VectorCraft’ta olmayan karışım modlarındaki {n} katman Normal olarak geldi: birleştirme izin verilenden fazla bellek gerektiriyor +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed alttaki katmana kırpılmış 1 katman kırpılmadan geldi: birleştirme izin verilenden fazla bellek gerektiriyor +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed alttaki katmana kırpılmış {n} katman kırpılmadan geldi: birleştirme izin verilenden fazla bellek gerektiriyor +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers, layers: true ile yerleştirilen bir PSD dosyası için geçerlidir +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: bağlı bir PSD dosyası düz görüntüsü olarak yerleştirilir; dilimleriyle birlikte gömmek için link: false verin +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: bağlı bir PSD dosyası düz görüntüsü olarak yerleştirilir; link’i belirtmeyin ya da link: false verin +@msg the slices can't be read ({e}) and were left out dilimler okunamıyor ({e}) ve dışarıda bırakıldı +@msg 1 slice lies outside the canvas or has no size and was left out 1 dilim tuvalin dışında kalıyor ya da boyutu yok ve dışarıda bırakıldı +@msg {n} slices lie outside the canvas or have no size and were left out {n} dilim tuvalin dışında kalıyor ya da boyutu yok ve dışarıda bırakıldı +@msg 1 slice would lie outside the canvas and was left out 1 dilim tuvalin dışında kalacaktı ve dışarıda bırakıldı +@msg {n} slices would lie outside the canvas and were left out {n} dilim tuvalin dışında kalacaktı ve dışarıda bırakıldı +@msg the slices' descriptor holds too many values dilimlerin tanımlayıcısı çok fazla değer içeriyor +@msg the slices' descriptor has a version other than 16 dilimlerin tanımlayıcısının sürümü 16 değil +@msg the slices are stored in version {v}, which isn't read dilimler okunmayan {v} sürümünde saklanmış +@msg the file has {count} slices, more than the {MAX_SLICES} read dosyada {count} dilim var, okunan {MAX_SLICES} dilimden fazla +@msg the slices' descriptor has no list of slices dilimlerin tanımlayıcısında dilim listesi yok +@msg the slices' descriptor lists something other than a slice dilimlerin tanımlayıcısı dilim dışında bir şey listeliyor +@msg a slice in the slices' descriptor has no bounds dilimlerin tanımlayıcısındaki bir dilimin sınırları yok +@msg a slice's bounds in the slices' descriptor aren't numbers dilimlerin tanımlayıcısındaki bir dilimin sınırları sayı değil +@msg a text in the slices has more than the {MAX_TEXT} characters read dilimlerdeki bir metin okunan {MAX_TEXT} karakterden uzun +@msg the slices' descriptor nests too deep dilimlerin tanımlayıcısı çok derin iç içe geçmiş +@msg the slices' descriptor has a reference of an unknown kind ({_1}) dilimlerin tanımlayıcısında bilinmeyen türde bir başvuru var ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) dilimlerin tanımlayıcısında bilinmeyen tipte bir değer var ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image katmanlar okunamıyor ({e}): dosya birleştirilmiş görüntüsü olarak açıldı @msg {depth}-bit PSD files in this colour mode can't be read Bu renk modunda {depth}-bit PSD dosyaları okunamaz @msg the PSD file is cut short PSD dosyası kısa kesildi diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 8201d4379b..0bb6f933de 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -1026,6 +1026,12 @@ font-technology Variable Варіативні Duplicate Symbol Дублювати символ Duplicate {kind} Style Дублювати стиль {kind} Dutch Нідерландська + PSD Import Options Параметри імпорту PSD + Place PSD Помістити PSD + Convert Layers to Objects Перетворити шари на об’єкти + Import Hidden Layers Імпортувати приховані шари + Flatten Layers to a Single Image Звести шари в одне зображення + Import Slices Імпортувати фрагменти DXF Import Options Параметри імпорту DXF DXF Info Відомості про DXF DXF Options Параметри DXF @@ -5811,6 +5817,49 @@ variable-list-end {0}, {1} {0} і {1} @msg the PSD file's layer groups are nested too deeply групи шарів файлу PSD вкладено надто глибоко @msg a layer of the PSD file is too large to read шар файлу PSD завеликий для читання @msg the PSD file's layers take more memory to read than allowed для читання шарів файлу PSD потрібно більше пам’яті, ніж дозволено +@msg the file is no longer loaded файл більше не завантажено +@msg the layers can't be read ({e}): the file was placed as its merged image не вдається прочитати шари ({e}): файл поміщено як зведене зображення +@msg 1 type layer came in as pixels: the text isn't editable 1 текстовий шар імпортовано як пікселі: текст не можна редагувати +@msg {n} type layers came in as pixels: the text isn't editable текстових шарів, імпортованих як пікселі: {n}; текст не можна редагувати +@msg 1 adjustment layer was not applied 1 коригувальний шар не застосовано +@msg {n} adjustment layers were not applied не застосовано коригувальних шарів: {n} +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 шар заливки не намальовано (градієнтна чи візерункова заливка, колір, який не вдається прочитати, або фігура без збережених пікселів) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) не намальовано шарів заливки: {n} (градієнтна чи візерункова заливка, колір, який не вдається прочитати, або фігура без збережених пікселів) +@msg the layer effects of 1 layer weren't drawn ефекти шару для 1 шару не намальовано +@msg the layer effects of {n} layers weren't drawn ефекти шарів не намальовано; кількість шарів: {n} +@msg the vector masks of 1 layer weren't applied векторні маски 1 шару не застосовано +@msg the vector masks of {n} layers weren't applied векторні маски шарів не застосовано; кількість шарів: {n} +@msg the knockout of 1 layer wasn't applied вибивання 1 шару не застосовано +@msg the knockout of {n} layers wasn't applied вибивання шарів не застосовано; кількість шарів: {n} +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 шар пропущено (приховані шари й обрізані за ними шари) +@msg {n} layers were left out (hidden layers and the layers clipped to them) пропущено шарів: {n} (приховані шари й обрізані за ними шари) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 шар, обрізаний за ненамальованим шаром заливки, пропущено +@msg {n} layers clipped to fill layers that weren't drawn were left out пропущено шарів, обрізаних за ненамальованими шарами заливки: {n} +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them шари в режимах накладання, яких немає у VectorCraft ({modes}), зведено з шарами під ними +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 шар у режимі накладання, якого немає у VectorCraft, імпортовано як Звичайний: для зведення потрібно більше пам’яті, ніж дозволено +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed шарів у режимах накладання, яких немає у VectorCraft, імпортовано як Звичайний: {n}; для зведення потрібно більше пам’яті, ніж дозволено +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 шар, обрізаний за нижнім шаром, імпортовано без обрізання: для зведення потрібно більше пам’яті, ніж дозволено +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed шарів, обрізаних за нижнім шаром та імпортованих без обрізання: {n}; для зведення потрібно більше пам’яті, ніж дозволено +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers стосується PSD-файлу, який поміщається з layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: зв’язаний PSD-файл поміщається як пласке зображення; вкажіть link: false, щоб вбудувати його з фрагментами +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: зв’язаний PSD-файл поміщається як пласке зображення; не вказуйте link або вкажіть link: false +@msg the slices can't be read ({e}) and were left out не вдається прочитати фрагменти ({e}), їх пропущено +@msg 1 slice lies outside the canvas or has no size and was left out 1 фрагмент лежить поза полотном або не має розміру й пропущений +@msg {n} slices lie outside the canvas or have no size and were left out пропущено фрагментів поза полотном або без розміру: {n} +@msg 1 slice would lie outside the canvas and was left out 1 фрагмент опинився б поза полотном і пропущений +@msg {n} slices would lie outside the canvas and were left out пропущено фрагментів, які опинилися б поза полотном: {n} +@msg the slices' descriptor holds too many values дескриптор фрагментів містить забагато значень +@msg the slices' descriptor has a version other than 16 версія дескриптора фрагментів відрізняється від 16 +@msg the slices are stored in version {v}, which isn't read фрагменти збережено у версії {v}, яка не читається +@msg the file has {count} slices, more than the {MAX_SLICES} read фрагментів у файлі: {count}, більше за {MAX_SLICES}, що читаються +@msg the slices' descriptor has no list of slices у дескрипторі фрагментів немає списку фрагментів +@msg the slices' descriptor lists something other than a slice дескриптор фрагментів перелічує щось, крім фрагмента +@msg a slice in the slices' descriptor has no bounds фрагмент у дескрипторі фрагментів не має меж +@msg a slice's bounds in the slices' descriptor aren't numbers межі фрагмента в дескрипторі фрагментів не є числами +@msg a text in the slices has more than the {MAX_TEXT} characters read текст у фрагментах довший за {MAX_TEXT} символів, що читаються +@msg the slices' descriptor nests too deep дескриптор фрагментів вкладено надто глибоко +@msg the slices' descriptor has a reference of an unknown kind ({_1}) у дескрипторі фрагментів є посилання невідомого виду ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) у дескрипторі фрагментів є значення невідомого типу ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image не вдається прочитати шари ({e}): файл відкрито як зведене зображення @msg {depth}-bit PSD files in this colour mode can't be read {depth}-бітні файли PSD у цьому колірному режимі не читаються @msg the PSD file is cut short файл PSD обрізаний diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 87f1937733..9bdb43c54c 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -1202,6 +1202,12 @@ font-technology Variable Biến thiên Duplicate {kind} Style Nhân bản kiểu {kind} Duplication Nhân bản Dutch Tiếng Hà Lan + PSD Import Options Tùy chọn nhập PSD + Place PSD Đặt PSD + Convert Layers to Objects Chuyển các lớp thành đối tượng + Import Hidden Layers Nhập các lớp ẩn + Flatten Layers to a Single Image Làm phẳng các lớp thành một ảnh + Import Slices Nhập lát cắt DXF Import Options Tùy chọn nhập DXF DXF Info Thông tin DXF DXF Options Tùy chọn DXF @@ -6202,6 +6208,49 @@ variable-list-end {0}, {1} {0} và {1} @msg the PSD file's layer groups are nested too deeply các nhóm lớp của tệp PSD lồng nhau quá sâu @msg a layer of the PSD file is too large to read một lớp của tệp PSD quá lớn để đọc @msg the PSD file's layers take more memory to read than allowed các lớp của tệp PSD cần nhiều bộ nhớ để đọc hơn mức cho phép +@msg the file is no longer loaded tệp không còn được tải +@msg the layers can't be read ({e}): the file was placed as its merged image không thể đọc các lớp ({e}): tệp được đặt dưới dạng ảnh đã gộp +@msg 1 type layer came in as pixels: the text isn't editable 1 lớp văn bản được nhập dưới dạng điểm ảnh: không thể sửa văn bản +@msg {n} type layers came in as pixels: the text isn't editable {n} lớp văn bản được nhập dưới dạng điểm ảnh: không thể sửa văn bản +@msg 1 adjustment layer was not applied 1 lớp điều chỉnh không được áp dụng +@msg {n} adjustment layers were not applied {n} lớp điều chỉnh không được áp dụng +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 1 lớp tô không được vẽ (tô chuyển sắc hoặc mẫu, màu không đọc được, hoặc hình không lưu điểm ảnh nào) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) {n} lớp tô không được vẽ (tô chuyển sắc hoặc mẫu, màu không đọc được, hoặc hình không lưu điểm ảnh nào) +@msg the layer effects of 1 layer weren't drawn hiệu ứng lớp của 1 lớp không được vẽ +@msg the layer effects of {n} layers weren't drawn hiệu ứng lớp của {n} lớp không được vẽ +@msg the vector masks of 1 layer weren't applied mặt nạ vectơ của 1 lớp không được áp dụng +@msg the vector masks of {n} layers weren't applied mặt nạ vectơ của {n} lớp không được áp dụng +@msg the knockout of 1 layer wasn't applied phần đục lỗ của 1 lớp không được áp dụng +@msg the knockout of {n} layers wasn't applied phần đục lỗ của {n} lớp không được áp dụng +@msg 1 layer was left out (hidden layers and the layers clipped to them) 1 lớp bị bỏ qua (các lớp ẩn và các lớp được cắt theo chúng) +@msg {n} layers were left out (hidden layers and the layers clipped to them) {n} lớp bị bỏ qua (các lớp ẩn và các lớp được cắt theo chúng) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 1 lớp được cắt theo một lớp tô không được vẽ đã bị bỏ qua +@msg {n} layers clipped to fill layers that weren't drawn were left out {n} lớp được cắt theo các lớp tô không được vẽ đã bị bỏ qua +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them các lớp ở chế độ hòa trộn mà VectorCraft không có ({modes}) đã được gộp với các lớp bên dưới +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 lớp ở chế độ hòa trộn mà VectorCraft không có được nhập dưới dạng Thường: việc gộp cần nhiều bộ nhớ hơn mức cho phép +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} lớp ở các chế độ hòa trộn mà VectorCraft không có được nhập dưới dạng Thường: việc gộp cần nhiều bộ nhớ hơn mức cho phép +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 lớp được cắt theo lớp bên dưới được nhập mà không cắt: việc gộp cần nhiều bộ nhớ hơn mức cho phép +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} lớp được cắt theo lớp bên dưới được nhập mà không cắt: việc gộp cần nhiều bộ nhớ hơn mức cho phép +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers áp dụng cho tệp PSD được đặt với layers: true +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices: tệp PSD được liên kết được đặt dưới dạng ảnh phẳng; hãy đặt link: false để nhúng tệp cùng các lát cắt +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers: tệp PSD được liên kết được đặt dưới dạng ảnh phẳng; hãy bỏ link hoặc đặt link: false +@msg the slices can't be read ({e}) and were left out không thể đọc các lát cắt ({e}) và chúng đã bị bỏ qua +@msg 1 slice lies outside the canvas or has no size and was left out 1 lát cắt nằm ngoài khung vẽ hoặc không có kích thước và đã bị bỏ qua +@msg {n} slices lie outside the canvas or have no size and were left out {n} lát cắt nằm ngoài khung vẽ hoặc không có kích thước và đã bị bỏ qua +@msg 1 slice would lie outside the canvas and was left out 1 lát cắt sẽ nằm ngoài khung vẽ và đã bị bỏ qua +@msg {n} slices would lie outside the canvas and were left out {n} lát cắt sẽ nằm ngoài khung vẽ và đã bị bỏ qua +@msg the slices' descriptor holds too many values bộ mô tả của các lát cắt chứa quá nhiều giá trị +@msg the slices' descriptor has a version other than 16 bộ mô tả của các lát cắt có phiên bản khác 16 +@msg the slices are stored in version {v}, which isn't read các lát cắt được lưu ở phiên bản {v}, phiên bản này không được đọc +@msg the file has {count} slices, more than the {MAX_SLICES} read tệp có {count} lát cắt, nhiều hơn {MAX_SLICES} lát cắt được đọc +@msg the slices' descriptor has no list of slices bộ mô tả của các lát cắt không có danh sách lát cắt +@msg the slices' descriptor lists something other than a slice bộ mô tả của các lát cắt liệt kê thứ khác ngoài lát cắt +@msg a slice in the slices' descriptor has no bounds một lát cắt trong bộ mô tả của các lát cắt không có giới hạn +@msg a slice's bounds in the slices' descriptor aren't numbers giới hạn của một lát cắt trong bộ mô tả của các lát cắt không phải là số +@msg a text in the slices has more than the {MAX_TEXT} characters read một văn bản trong các lát cắt dài hơn {MAX_TEXT} ký tự được đọc +@msg the slices' descriptor nests too deep bộ mô tả của các lát cắt lồng nhau quá sâu +@msg the slices' descriptor has a reference of an unknown kind ({_1}) bộ mô tả của các lát cắt có tham chiếu thuộc loại không xác định ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) bộ mô tả của các lát cắt có giá trị thuộc kiểu không xác định ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image không thể đọc các lớp ({e}): tệp được mở dưới dạng ảnh đã gộp @msg zone must be a string zone phải là chuỗi @msg zone must be tab, center, left, right, top or bottom zone phải là tab, center, left, right, top hoặc bottom diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 5d6b98ecd2..52e22456e1 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -964,6 +964,12 @@ antiAlias Sharp 锐利 Duplicate Symbol 复制符号 Duplicate {kind} Style 制作{kind}样式的副本 Dutch 荷兰语 + PSD Import Options PSD 导入选项 + Place PSD 置入 PSD + Convert Layers to Objects 将图层转换为对象 + Import Hidden Layers 导入隐藏图层 + Flatten Layers to a Single Image 将图层拼合为单个图像 + Import Slices 导入切片 DXF Import Options DXF 导入选项 DXF Info DXF 信息 DXF Options DXF 选项 @@ -5538,6 +5544,49 @@ liquify-list-end {0}, {1} {0}和{1} @msg the PSD file's layer groups are nested too deeply PSD 文件的图层组嵌套过深 @msg a layer of the PSD file is too large to read PSD 文件的某个图层过大,无法读取 @msg the PSD file's layers take more memory to read than allowed 读取 PSD 文件的图层所需内存超过允许值 +@msg the file is no longer loaded 文件已不再载入 +@msg the layers can't be read ({e}): the file was placed as its merged image 无法读取图层 ({e}):文件已作为合并图像置入 +@msg 1 type layer came in as pixels: the text isn't editable 1 个文字图层以像素形式导入:文字不可编辑 +@msg {n} type layers came in as pixels: the text isn't editable {n} 个文字图层以像素形式导入:文字不可编辑 +@msg 1 adjustment layer was not applied 未应用 1 个调整图层 +@msg {n} adjustment layers were not applied 未应用 {n} 个调整图层 +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 未绘制 1 个填充图层(渐变或图案填充、无法读取的颜色,或不存储像素的形状) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 未绘制 {n} 个填充图层(渐变或图案填充、无法读取的颜色,或不存储像素的形状) +@msg the layer effects of 1 layer weren't drawn 未绘制 1 个图层的图层效果 +@msg the layer effects of {n} layers weren't drawn 未绘制 {n} 个图层的图层效果 +@msg the vector masks of 1 layer weren't applied 未应用 1 个图层的矢量蒙版 +@msg the vector masks of {n} layers weren't applied 未应用 {n} 个图层的矢量蒙版 +@msg the knockout of 1 layer wasn't applied 未应用 1 个图层的挖空 +@msg the knockout of {n} layers wasn't applied 未应用 {n} 个图层的挖空 +@msg 1 layer was left out (hidden layers and the layers clipped to them) 已略去 1 个图层(隐藏的图层以及剪切到这些图层的图层) +@msg {n} layers were left out (hidden layers and the layers clipped to them) 已略去 {n} 个图层(隐藏的图层以及剪切到这些图层的图层) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 已略去 1 个剪切到未绘制填充图层的图层 +@msg {n} layers clipped to fill layers that weren't drawn were left out 已略去 {n} 个剪切到未绘制填充图层的图层 +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them 使用 VectorCraft 没有的混合模式 ({modes}) 的图层已与其下方的图层合并 +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 个使用 VectorCraft 没有的混合模式的图层以正常模式导入:合并需要的内存超出允许范围 +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} 个使用 VectorCraft 没有的混合模式的图层以正常模式导入:合并需要的内存超出允许范围 +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 个剪切到下方图层的图层未经剪切导入:合并需要的内存超出允许范围 +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} 个剪切到下方图层的图层未经剪切导入:合并需要的内存超出允许范围 +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers 适用于以 layers: true 置入的 PSD 文件 +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices:链接的 PSD 文件以拼合图像置入;指定 link: false 可将其连同切片一起嵌入 +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers:链接的 PSD 文件以拼合图像置入;请省略 link 或指定 link: false +@msg the slices can't be read ({e}) and were left out 无法读取切片 ({e}),已略去 +@msg 1 slice lies outside the canvas or has no size and was left out 1 个切片位于画布之外或没有尺寸,已略去 +@msg {n} slices lie outside the canvas or have no size and were left out {n} 个切片位于画布之外或没有尺寸,已略去 +@msg 1 slice would lie outside the canvas and was left out 1 个切片会位于画布之外,已略去 +@msg {n} slices would lie outside the canvas and were left out {n} 个切片会位于画布之外,已略去 +@msg the slices' descriptor holds too many values 切片的描述符包含的值过多 +@msg the slices' descriptor has a version other than 16 切片的描述符版本不是 16 +@msg the slices are stored in version {v}, which isn't read 切片以不读取的版本 {v} 存储 +@msg the file has {count} slices, more than the {MAX_SLICES} read 文件有 {count} 个切片,超过读取的 {MAX_SLICES} 个 +@msg the slices' descriptor has no list of slices 切片的描述符没有切片列表 +@msg the slices' descriptor lists something other than a slice 切片的描述符列出了切片以外的内容 +@msg a slice in the slices' descriptor has no bounds 切片描述符中的一个切片没有边界 +@msg a slice's bounds in the slices' descriptor aren't numbers 切片描述符中一个切片的边界不是数字 +@msg a text in the slices has more than the {MAX_TEXT} characters read 切片中的一段文字超过读取的 {MAX_TEXT} 个字符 +@msg the slices' descriptor nests too deep 切片的描述符嵌套过深 +@msg the slices' descriptor has a reference of an unknown kind ({_1}) 切片的描述符含有未知种类的引用 ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) 切片的描述符含有未知类型的值 ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image 无法读取图层 ({e}):文件已作为合并图像打开 @msg {depth}-bit PSD files in this colour mode can't be read 无法读取此颜色模式下的 {depth} 位 PSD 文件 @msg the PSD file is cut short PSD 文件不完整 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 11cf503a83..47d4298086 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -994,6 +994,12 @@ font-technology Variable 可變 Duplicate Symbol 製作符號複本 Duplicate {kind} Style 製作{kind}樣式的複本 Dutch 荷蘭文 + PSD Import Options PSD 匯入選項 + Place PSD 置入 PSD + Convert Layers to Objects 將圖層轉換為物件 + Import Hidden Layers 匯入隱藏圖層 + Flatten Layers to a Single Image 將圖層平面化為單一影像 + Import Slices 匯入切片 DXF Import Options DXF 匯入選項 DXF Info DXF 資訊 DXF Options DXF 選項 @@ -3003,6 +3009,49 @@ liquify-list-end {0}, {1} {0}和{1} @msg the PSD file's layer groups are nested too deeply PSD 檔案的圖層群組巢狀過深 @msg a layer of the PSD file is too large to read PSD 檔案的某個圖層過大,無法讀取 @msg the PSD file's layers take more memory to read than allowed 讀取 PSD 檔案的圖層所需記憶體超過允許值 +@msg the file is no longer loaded 檔案已不再載入 +@msg the layers can't be read ({e}): the file was placed as its merged image 無法讀取圖層 ({e}):檔案已以合併影像置入 +@msg 1 type layer came in as pixels: the text isn't editable 1 個文字圖層以像素形式匯入:文字無法編輯 +@msg {n} type layers came in as pixels: the text isn't editable {n} 個文字圖層以像素形式匯入:文字無法編輯 +@msg 1 adjustment layer was not applied 未套用 1 個調整圖層 +@msg {n} adjustment layers were not applied 未套用 {n} 個調整圖層 +@msg 1 fill layer was not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 未繪製 1 個填色圖層(漸層或圖樣填色、無法讀取的顏色,或不儲存像素的形狀) +@msg {n} fill layers were not drawn (a gradient or pattern fill, a color that can't be read, or a shape that stores no pixels) 未繪製 {n} 個填色圖層(漸層或圖樣填色、無法讀取的顏色,或不儲存像素的形狀) +@msg the layer effects of 1 layer weren't drawn 未繪製 1 個圖層的圖層效果 +@msg the layer effects of {n} layers weren't drawn 未繪製 {n} 個圖層的圖層效果 +@msg the vector masks of 1 layer weren't applied 未套用 1 個圖層的向量遮色片 +@msg the vector masks of {n} layers weren't applied 未套用 {n} 個圖層的向量遮色片 +@msg the knockout of 1 layer wasn't applied 未套用 1 個圖層的去底色 +@msg the knockout of {n} layers wasn't applied 未套用 {n} 個圖層的去底色 +@msg 1 layer was left out (hidden layers and the layers clipped to them) 已略過 1 個圖層(隱藏的圖層以及剪裁至這些圖層的圖層) +@msg {n} layers were left out (hidden layers and the layers clipped to them) 已略過 {n} 個圖層(隱藏的圖層以及剪裁至這些圖層的圖層) +@msg 1 layer clipped to a fill layer that wasn't drawn was left out 已略過 1 個剪裁至未繪製填色圖層的圖層 +@msg {n} layers clipped to fill layers that weren't drawn were left out 已略過 {n} 個剪裁至未繪製填色圖層的圖層 +@msg layers in blend modes VectorCraft doesn't have ({modes}) were merged with the layers below them 使用 VectorCraft 沒有的混合模式 ({modes}) 的圖層已與其下方的圖層合併 +@msg 1 layer in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed 1 個使用 VectorCraft 沒有的混合模式的圖層以正常模式匯入:合併所需的記憶體超出允許範圍 +@msg {n} layers in blend modes VectorCraft doesn't have came in as Normal: the merge needs more memory than allowed {n} 個使用 VectorCraft 沒有的混合模式的圖層以正常模式匯入:合併所需的記憶體超出允許範圍 +@msg 1 layer clipped to the layer below came in unclipped: the merge needs more memory than allowed 1 個剪裁至下方圖層的圖層未經剪裁匯入:合併所需的記憶體超出允許範圍 +@msg {n} layers clipped to the layer below came in unclipped: the merge needs more memory than allowed {n} 個剪裁至下方圖層的圖層未經剪裁匯入:合併所需的記憶體超出允許範圍 +@msg hiddenLayers applies to a PSD file placed with layers: true hiddenLayers 適用於以 layers: true 置入的 PSD 檔案 +@msg importSlices: a linked PSD file is placed as its flat image; give link: false to embed it with its slices importSlices:連結的 PSD 檔案會以平面影像置入;指定 link: false 即可連同切片一起嵌入 +@msg layers: a linked PSD file is placed as its flat image; leave link out or give link: false layers:連結的 PSD 檔案會以平面影像置入;請不要指定 link,或指定 link: false +@msg the slices can't be read ({e}) and were left out 無法讀取切片 ({e}),已略過 +@msg 1 slice lies outside the canvas or has no size and was left out 1 個切片位於畫布之外或沒有尺寸,已略過 +@msg {n} slices lie outside the canvas or have no size and were left out {n} 個切片位於畫布之外或沒有尺寸,已略過 +@msg 1 slice would lie outside the canvas and was left out 1 個切片會位於畫布之外,已略過 +@msg {n} slices would lie outside the canvas and were left out {n} 個切片會位於畫布之外,已略過 +@msg the slices' descriptor holds too many values 切片的描述元包含的值過多 +@msg the slices' descriptor has a version other than 16 切片的描述元版本不是 16 +@msg the slices are stored in version {v}, which isn't read 切片以不讀取的版本 {v} 儲存 +@msg the file has {count} slices, more than the {MAX_SLICES} read 檔案有 {count} 個切片,超過讀取的 {MAX_SLICES} 個 +@msg the slices' descriptor has no list of slices 切片的描述元沒有切片清單 +@msg the slices' descriptor lists something other than a slice 切片的描述元列出了切片以外的內容 +@msg a slice in the slices' descriptor has no bounds 切片描述元中的一個切片沒有邊界 +@msg a slice's bounds in the slices' descriptor aren't numbers 切片描述元中一個切片的邊界不是數字 +@msg a text in the slices has more than the {MAX_TEXT} characters read 切片中的一段文字超過讀取的 {MAX_TEXT} 個字元 +@msg the slices' descriptor nests too deep 切片的描述元巢狀過深 +@msg the slices' descriptor has a reference of an unknown kind ({_1}) 切片的描述元含有未知種類的參照 ({_1}) +@msg the slices' descriptor has a value of an unknown type ({_1}) 切片的描述元含有未知類型的值 ({_1}) @msg the layers can't be read ({e}): the file opened as its merged image 無法讀取圖層 ({e}):檔案已以合併影像開啟 @msg {depth}-bit PSD files in this colour mode can't be read 無法讀取此色彩模式的 {depth} 位元 PSD 檔案 @msg the PSD file is cut short PSD 檔案不完整 diff --git a/docs/mcp.md b/docs/mcp.md index 7033fa4794..7dae1fe42d 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -9963,8 +9963,8 @@ clipping mask into one layer and discards hidden layers that require merging; th imports one image, and Import Hidden Layers brings hidden layers in. `document.open` does the same, with `layers: false` for the single image and `hiddenLayers: true` for the hidden layers. The page also merges adjustment layers, layers with a knockout option, and layers that hold transparent pixels in some blend modes with -the layers below them. `document.open` applies neither adjustments nor knockouts, and it merges a layer by its blend -mode alone, as the rules below say. +the layers below them. `document.open` does not apply adjustments, applies only shallow knockouts inside groups, and +otherwise merges a layer by its blend mode alone, as the rules below say. The rest are VectorCraft's own rules: @@ -9984,6 +9984,12 @@ The rest are VectorCraft's own rules: mask. - A Dissolve layer's partly transparent pixels are merged as opaque or transparent, opaque at the share of its pixels their transparency gives, in a fixed pattern that differs from layer to layer. +- A layer or group inside a group with a Knockout value of 1 (shallow) is merged with the visible layers below it + in that group: where it has pixels, shaped by its layer mask, they are cleared to transparency, it is drawn there + at its fill opacity, and its opacity fades the result back toward them. In a Pass Through group this applies only + when it and the visible layers below it are in Normal mode. A knockout at 0 opacity, one that draws nothing, one + with nothing visible below it, and one at 0 fill that covers none of their painted pixels are not merged for the + knockout; one in a mode VectorCraft lacks is still merged by its mode. - A merged layer is named after the layers it holds, joined with ` + `. - A layer name the file stores only as a one-byte Pascal string, without its Unicode name, is read as Mac Roman. - A layer's opacity is multiplied by its fill opacity, in every blend mode. A layer that others are clipped to keeps @@ -9995,16 +10001,21 @@ The rest are VectorCraft's own rules: (RGB, CMYK, Grayscale, Lab or HSB) over the canvas. One whose shape is a vector mask isn't drawn, and the layers clipped to it are left out. - Adjustment layers, fill layers that store no pixels and whose fill isn't read, layer effects that are switched on, - knockouts and vector masks are not applied; the `warnings` count them. + the other knockouts (top-level layers, clipped layers, layers that others are clipped to, Pass Through groups with + layers in other modes, other Knockout values, and merges that need more memory than allowed) and vector masks are + not applied; the `warnings` count them. - Layer channels may be raw, PackBits or zipped (with or without prediction) at 8, 16 and 32 bits. - A file without layers opens as its merged image. A file whose layers can't be read opens as its merged image with a warning, and when the merged image can't be read either, the file is refused with an error. Each layer's pixels must fit the memory allowed for one image, and the pixels of all the layers and masks, with the canvases the merges make, must together fit eight times that; a file past either limit opens as its merged image, -with a warning. The canvases one step of a merge holds at once must also fit the memory allowed for one image; when -they don't, the layer that needed the merge comes in alone, with a warning: in the Normal mode, or as a layer of its -own instead of clipped. +with a warning. A merge being tried may use the whole of that limit beyond what was read before it. The pixels and +canvases of merges that aren't made, including knockouts that turn out to cut nothing, then count against a second +limit of the same size instead. The +canvases one step of a merge holds at once must also fit the memory allowed for one image; when they don't, the +layer that needed the merge comes in alone, with a warning: in the Normal mode, as a layer of its own instead of +clipped, or without its knockout. ```json {"name":"run_command","arguments":{"command":"document.open","params":{"path":"/tmp/poster.psd","hiddenLayers":true}}} diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 7ad01f1809..bd96413447 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -2160,12 +2160,13 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur EPS export and EPS Save make each file's PNG thumbnail from its TIFF preview, averaging the preview's pixels down to the thumbnail's size on white, instead of drawing the document a second time; a file without a preview still draws its thumbnail (`crates/engine/src/cmd/fileio/tests_eps.rs`). - Targa files (`.tga`, `.vda`, `.icb`, `.vst`) open, place linked or embedded, relink and update at their pixel size: color-mapped, true-color and black-and-white, raw or run-length encoded, in any of the four row orders. The image descriptor's attribute bits and the extension area's Attributes Type decide the transparency: a file with no attribute bits, or with attribute data the Attributes Type calls undefined, opens opaque; with one bit, a 16-bit true-color pixel takes that bit as its alpha, and a color-mapped pixel takes the bit of the 16-bit color map entry it indexes; premultiplied colors are divided by their alpha. Open and Place recognize a Targa file by its extension, and `clipboard.importImage` and Glass's Load Texture… by its header; a Targa file copied in a file manager pastes as a bitmap (`crates/engine/src/cmd/fileio/tests_tiffbmp.rs`, `crates/engine/src/tests/links.rs`). - BMP files named `.dib` or `.rle` (run-length encoded bitmaps included), Photoshop files named `.pdd` and PNG files named `.pns` open and place, linked or embedded, as BMP, PSD and PNG files, in any letter case: the Open and Place dialogs list them with their format, the Links panel names their format, and Edit Original opens them. Exports write only `.bmp`, `.psd` and `.png` (`crates/engine/src/cmd/fileio/tests_tiffbmp.rs`, `crates/engine/src/cmd/fileio/tests_psdread.rs`, `crates/engine/src/tests/links.rs`). - - File › Open converts a PSD or PSB file's layers to objects, keeping the layer structure, merging clipped layers into one layer and leaving out hidden layers that would need a merge, as [PSD import options](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-from-other-apps/photoshop-import-options.html) describes for the option that converts layers to objects; hidden layers come in with `hiddenLayers`, as Import Hidden Layers brings them in, and `layers: false` opens the merged image. VectorCraft's own rules: each layer becomes a layer holding its pixels with its name, visibility, opacity and blend mode, groups become layers of sublayers, layers in Dissolve, Linear Burn, Linear Dodge, Vivid Light, Linear Light, Pin Light, Hard Mix, Subtract, Divide, Darker Color and Lighter Color are merged with the layers below, layer masks become opacity masks, fill opacity multiplies the opacity (in a layer that others are clipped to, it fades only that layer's own pixels), and adjustment layers, layer effects, knockouts and vector masks aren't applied and are counted in the warnings. 8-, 16- and 32-bit files, PSB, raw, PackBits and zipped channels (`crates/engine/src/cmd/fileio/tests_psdlayers.rs`). + - File › Open converts a PSD or PSB file's layers to objects, keeping the layer structure, merging clipped layers into one layer, merging a layer that uses a Knockout option with the layers below it, and leaving out hidden layers that would need a merge, as [PSD import options](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-from-other-apps/photoshop-import-options.html) describes for the option that converts layers to objects; hidden layers come in with `hiddenLayers`, as Import Hidden Layers brings them in, and `layers: false` opens the merged image. VectorCraft's own rules: each layer becomes a layer holding its pixels with its name, visibility, opacity and blend mode, groups become layers of sublayers, layers in Dissolve, Linear Burn, Linear Dodge, Vivid Light, Linear Light, Pin Light, Hard Mix, Subtract, Divide, Darker Color and Lighter Color are merged with the layers below, layer masks become opacity masks, fill opacity multiplies the opacity (in a layer that others are clipped to, it fades only that layer's own pixels), a Knockout value of 1 is read as a shallow knockout and applied to a layer or group inside a group, which is merged with the visible layers below it in that group (its pixels clear them to transparency, it is drawn there at its fill opacity, and its opacity fades the result; in a pass-through group only when it and the visible layers below it are in the Normal mode; a knockout at 0 opacity, or at 0 fill where it covers none of their painted pixels, isn't merged for the knockout), and adjustment layers, layer effects, vector masks and the other knockouts (top-level layers, clipped layers, layers that others are clipped to, pass-through groups with layers in other modes, other Knockout values, and merges that need more memory than allowed) aren't applied and are counted in the warnings. 8-, 16- and 32-bit files, PSB, raw, PackBits and zipped channels (`crates/engine/src/cmd/fileio/tests_psdlayers.rs`). - File › Open of a PSD or PSB file with two or more layers, and File › Place of one without Link, show PSD Import Options: Convert Layers to Objects with Import Hidden Layers, or Flatten Layers to a Single Image, the options [PSD import options](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-from-other-apps/photoshop-import-options.html) describes for a file that is opened or embedded. A file placed with Link shows its flat image and isn't asked about. `file.place` takes `layers` and `hiddenLayers`, and `document.psdInfo` counts a file's layers without opening it. VectorCraft's own rules: placed layers come in as one group named after the file, a layer as an image and a layer group as a group, at the place the merged image would take and clipped to the canvas when layers reach past it; the dialog asks from two layers up and starts from the choices made last. Layer comps aren't read (`crates/engine/src/cmd/fileio/tests_psdlayers.rs`, `crates/ui-egui/src/dialogs/psd_import.rs`). - A PSD or PSB file's clipping path, the saved path that image resource 2999 names in the [PSD file format specification](https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/), clips its merged image on File › Place and on File › Open of the merged image, as [PSD import options](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-from-other-apps/photoshop-import-options.html) describes for a file imported as one flattened image. The image comes in a clip group whose clipping path has no paint and uses the even-odd rule, and the path can be edited or released. `links.update` and `links.relink` give the clip group the clipping path the new file names, or leave a plain group when it names none, and files that name no clipping path come in as before (`crates/engine/src/cmd/fileio/tests_psdread.rs`). - Import Slices: File › Open of a PSD or PSB file with slices, and File › Place of one without Link, bring its slices in as user slices, as [PSD import options](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-from-other-apps/photoshop-import-options.html) describes for a file that is opened or embedded; PSD Import Options offers Import Slices for such a file. `document.open` and `file.place` take `importSlices`, and `document.psdInfo` counts the slices. The slices are read from image resource 1050 in version 6 and in the descriptor of versions 7 and 8, as the [Photoshop File Formats Specification](https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/) describes it. VectorCraft's own rules: Import Slices applies to Convert Layers to Objects and to Flatten Layers to a Single Image alike, and makes the dialog ask for a file with fewer than two layers; placed slices move and scale with the art in the same undo step; each slice keeps its name, type, link, target, message, alternative text, cell text and background color; slices the file generated automatically, and slices wholly outside the canvas, are left out; slices that can't be read are left out with a warning while the art comes in; with Show Import Options off, a PSD file is placed with the PSD Import Options chosen last, and on, each PSD file of the place cursor asks for them (`crates/engine/src/cmd/fileio/tests_psdslices.rs`, `crates/ui-egui/src/dialogs/psd_import.rs`). The import fuzz tests open, count and place PSD files whose resource 1050 is in version 6 (with a version 16 descriptor after a record) and in the descriptors of versions 7 and 8, with their data mutated, cut short with the resource's length saying so, and cut short in the file; a slice count past 10,000 or past the slices stored, and data one byte short, bring the art in without its slices and with a warning. `tests_psdslices::damaged_slices_never_panic` now fails when a command reports an internal error (`import_fuzz::the_sliced_psd_samples_bring_in_their_user_slices`, `import_fuzz::sliced_psd_samples_with_huge_counts_or_cut_short_come_in_without_their_slices`, `import_fuzz::mutated_psd_slices_never_panic`). Scores and estimates unchanged. - PSD export writes slices: the user and object slices that reach into the exported artboard go into image resource 1050 in version 6, as the [Photoshop File Formats Specification](https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/) describes it and as Import Slices reads it, so an opened PSD file's slices survive its export. VectorCraft's own rules: slices are written with Write Layers and as a flat image alike, clipped to the artboard in its pixels; an object slice is written as a user slice over its object's bounds, and an HTML Text slice as No Image with its type's text; auto slices are left out and laid out again on open; text alignment is written as the default (`crates/render/src/encode/tests_psd.rs`, `crates/engine/src/cmd/fileio/tests_psdslices.rs`). + - PSD Import Options' title and choices are shown in the interface language in every catalog with complete menus, and the warnings and errors of opening and placing a PSD or PSB file with its layers and slices are shown in it in every catalog with complete messages, with their counts, names and reasons (`psd_import_strings_are_in_complete_catalogs` in `crates/ui-egui/src/i18n/tests.rs`). Scores and estimates are unchanged. - PCX files (`.pcx`) open and place, from the ZSoft PCX Technical Reference Manual: 1 bit in the header palette's first two colors (black and white when the version has no palette or both colors are the same), 1 bit in two to four planes and 4 bits with up to 16 colors from the header's palette (the EGA colors for versions 0 and 3), 2 bits in the CGA colors that the header's CGA palette settings pick (background, color burst, palette and intensity), 8 bits with the 256-color palette after the image data (gray levels without one) and 24-bit color in three planes, run-length encoded. The header's HDpi and VDpi size the image. A file of another depth or plane count, one cut short, and one whose pixels as RGBA pass the pixel allowance are refused with a message before its pixels are decoded. Open and Place recognize a PCX file by its extension, and `clipboard.importImage` and Glass's Load Texture… by its header; a PCX file copied in a file manager pastes as a bitmap (`crates/engine/src/cmd/fileio/tests_pcxread.rs`). - Pixar picture files (`.pxr`) open, place and paste, from "The Format of Stored Pictures" in the Pixar Image Computer manuals: any set of the R, G, B and A channels in 8 or 12 bits, dumped or run-length encoded with all four packet kinds and block ends, in tiles of any size (pixels of border tiles past the picture are dropped). R alone is gray, a missing color channel is 0 and a missing A opaque; 12-bit samples are clamped to 0.0 to 1.0; color matted to black becomes straight color; a null tile is transparent when the picture has A and black otherwise. The offsets aren't read, and the image takes the default resolution. Version 2 headers read like version 0. A file cut short, one with a tile whose writing wasn't finished, one with header values or packets the format doesn't define, and one whose pixels as RGBA pass the pixel allowance are refused with a message. Every reader recognizes a Pixar file by its magic number. Tested on synthetic files only (`crates/engine/src/cmd/fileio/tests_pxrread.rs`). - JPEG 2000 JP2 and raw codestream images open and place from `.jpf`, `.jpx`, `.jp2`, `.j2k`, `.j2c` and `.jpc`. Each axis uses the valid display resolution (`resd`), else the valid capture resolution (`resc`), whichever box comes first ([ITU-T T.800](https://www.itu.int/rec/T-REC-T.800/en), I.5.3.7.2); an axis with none uses 72 ppi. Multiple codestreams, JPX composition or layers, and unsupported color spaces are refused with a message. The decoder checks image size before allocating (`crates/engine/src/cmd/fileio/tests_jp2read.rs`).