Merge pull request #7707 from dotCooCoo/feat/opentype-hv-style-roman-italics

OpenType panel: H or V Style and Roman Italics set kana and Latin forms
This commit is contained in:
BFlat
2026-11-15 09:46:29 +07:00
committed by GitHub
37 changed files with 396 additions and 40 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -140,7 +140,7 @@ pub fn specs() -> Vec<CommandSpec> {
"Character",
[],
None,
"{ids?|id?, font?, style? (font alone: the style is kept when the new family has it, else its closest), size?: pt 0.1..1296 (outside it: an error), leading?: pt|\"auto\", tracking?: 1/1000 em, justify?: \"auto\" (the start of each paragraph's direction)|\"left\"|\"center\"|\"right\"|\"justifyAll\", fill?: colour|\"none\", stroke?: colour|\"none\" (characters without a stroke weight get 1 pt; #rrggbbaa and #rgba are refused in both), keepModel?: bool (fill and stroke, as paint.setFill), strokeWidth?: pt (the character stroke's weight, in document points as stroke.set), features?: [\"dlig\", \"-liga\", \"salt=2\", …] OpenType (swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take the font's alternate number as `tag=N`, N 0–65535: \"salt=2\" draws the second alternate of each glyph that has one, \"salt\" is \"salt=1\", \"-salt\" and \"salt=0\" are off), featureChanges?: [\"tnum\", \"-onum\", \"salt=2\", …] (OpenType features turned on, or with - off, on top of each character's own, a value replacing the feature's last one; its other features are kept), start?: byte, end?: byte} (size/leading are document points after object scaling; with a range: the character attributes style that range and justify the paragraphs it touches; without: all the text; no undo step when no character, paragraph or graph label style changes) → {ids, overflow?: [id…] (area type and type on a path whose text no longer fits; left out when all fits), warning?: text (the font or style set isn't available: its type is drawn in the fallback font or the family's closest style)}",
"{ids?|id?, font?, style? (font alone: the style is kept when the new family has it, else its closest), size?: pt 0.1..1296 (outside it: an error), leading?: pt|\"auto\", tracking?: 1/1000 em, justify?: \"auto\" (the start of each paragraph's direction)|\"left\"|\"center\"|\"right\"|\"justifyAll\", fill?: colour|\"none\", stroke?: colour|\"none\" (characters without a stroke weight get 1 pt; #rrggbbaa and #rgba are refused in both), keepModel?: bool (fill and stroke, as paint.setFill), strokeWidth?: pt (the character stroke's weight, in document points as stroke.set), features?: [\"dlig\", \"-liga\", \"salt=2\", …] OpenType (swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take the font's alternate number as `tag=N`, N 0–65535: \"salt=2\" draws the second alternate of each glyph that has one, \"salt\" is \"salt=1\", \"-salt\" and \"salt=0\" are off; \"hkna\" is H or V Style, kana in the font's forms for the writing direction, shaped as `vkna` in vertical type, and \"ital\" is Roman Italics, half-width alphanumerics in the font's italic forms, both on or off only), featureChanges?: [\"tnum\", \"-onum\", \"salt=2\", …] (OpenType features turned on, or with - off, on top of each character's own, a value replacing the feature's last one; its other features are kept), start?: byte, end?: byte} (size/leading are document points after object scaling; with a range: the character attributes style that range and justify the paragraphs it touches; without: all the text; no undo step when no character, paragraph or graph label style changes) → {ids, overflow?: [id…] (area type and type on a path whose text no longer fits; left out when all fits), warning?: text (the font or style set isn't available: its type is drawn in the fallback font or the family's closest style)}",
has_doc,
set_style
),
@@ -1589,6 +1589,40 @@ fn proportional_metrics_is_a_character_attribute_saved_only_when_on() {
assert!(!serde_json::from_value::<vectorcraft_doc::CharStyle>(old).unwrap().proportional_metrics);
}
/// H or V Style (`hkna`) and Roman Italics (`ital`, OpenType panel menu, East Asian options) are
/// feature tags of the characters: set on a range and turned off again, kept by a character style
/// and in a saved document, on or off only (`hkna=2` is refused and changes nothing).
#[test]
fn kana_style_and_roman_italics_are_character_features() {
let mut s = Session::new();
s.execute("file.new", &json!({"width": 400, "height": 400})).unwrap();
let id = s.execute("text.create", &json!({"x": 10, "y": 50, "text": "かなAB"})).unwrap()["id"].as_u64().unwrap();
let runs = |s: &Session| match &s.doc().unwrap().doc.node(NodeId(id)).unwrap().kind {
NodeKind::Text(t) => t.runs.iter().map(|r| (r.text.clone(), r.style.features.clone())).collect::<Vec<_>>(),
_ => panic!("text"),
};
// か and な are 3 bytes each.
s.execute("text.setRangeStyle", &json!({"id": id, "start": 0, "end": 6, "features": ["hkna"]})).unwrap();
s.execute("text.setRangeStyle", &json!({"id": id, "start": 6, "end": 8, "featureChanges": ["ital"]})).unwrap();
assert_eq!(runs(&s), [("かな".to_string(), vec!["hkna".to_string()]), ("AB".to_string(), vec!["ital".to_string()])]);
let saved = vectorcraft_format::load(&vectorcraft_format::save(&s.doc().unwrap().doc, false)).unwrap();
let NodeKind::Text(t) = &saved.node(NodeId(id)).unwrap().kind else { panic!("text") };
assert_eq!(t.runs.iter().map(|r| r.style.features.clone()).collect::<Vec<_>>(), [vec!["hkna".to_string()], vec!["ital".to_string()]]);
let before = runs(&s);
for bad in [json!({"id": id, "features": ["hkna=2"]}), json!({"id": id, "featureChanges": ["ital=1"]})] {
let e = s.execute("text.setRangeStyle", &bad).unwrap_err().to_string();
assert!(e.contains("unknown OpenType feature"), "{e}");
}
assert_eq!(runs(&s), before);
s.execute("text.setRangeStyle", &json!({"id": id, "featureChanges": ["-hkna", "-ital"]})).unwrap();
assert!(runs(&s).iter().all(|(_, f)| f.is_empty()), "{:?}", runs(&s));
s.execute("charStyle.new", &json!({"name": "Kana", "attrs": {"features": ["hkna", "ital"]}})).unwrap();
s.execute("charStyle.apply", &json!({"name": "Kana", "id": id})).unwrap();
assert!(runs(&s).iter().all(|(_, f)| *f == ["hkna", "ital"]), "{:?}", runs(&s));
let e = s.execute("charStyle.new", &json!({"name": "Bad", "attrs": {"features": ["ital=2"]}})).unwrap_err().to_string();
assert!(e.contains("unknown OpenType feature `ital=2`"), "{e}");
}
/// Tate-chu-yoko (Character panel menu, East Asian options): a character attribute, saved only
/// when on. Documents written before it read as off.
#[test]
+42 -7
View File
@@ -43,7 +43,7 @@ pub struct OtFeatures {
pub swash: bool,
/// The features of [`EXTRA_FEATURES`] turned on, one bit each (off by default): stylistic
/// sets, alternates, titling, proportional and lining figures, superscript, subscript,
/// numerators and denominators, `aalt`.
/// numerators and denominators, `aalt`, H or V Style (`hkna`) and Roman Italics (`ital`).
pub extra: u32,
/// The value of each feature of [`EXTRA_FEATURES`] that is on, as a tag `salt=2` gives it: for
/// a feature with alternates, which of them the font draws (the HarfBuzz feature value, 1 for
@@ -64,13 +64,20 @@ pub const MAX_STYLE_FEATURES: usize = 256;
/// Features beyond the named fields, off unless asked for, each bit `i` of [`OtFeatures::extra`]:
/// stylistic sets `ss01`–`ss20`, stylistic alternates `salt`, titling `titl`, proportional `pnum`
/// and lining `lnum` figures, superscript `sups`, subscript `subs`, numerators `numr`,
/// denominators `dnom` and access all alternates `aalt`.
/// denominators `dnom`, access all alternates `aalt`, and the OpenType panel menu's H or V Style
/// `hkna` (shaped as `vkna` in vertical type) and Roman Italics `ital`.
/// <https://learn.microsoft.com/en-us/typography/opentype/spec/features_ae#tag-aalt>
pub const EXTRA_FEATURES: [&str; 29] = [
/// <https://learn.microsoft.com/en-us/typography/opentype/spec/features_fj#tag-hkna>
/// <https://learn.microsoft.com/en-us/typography/opentype/spec/features_fj#tag-ital>
pub const EXTRA_FEATURES: [&str; 31] = [
"ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08", "ss09", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18",
"ss19", "ss20", "salt", "titl", "pnum", "lnum", "sups", "subs", "numr", "dnom", "aalt",
"ss19", "ss20", "salt", "titl", "pnum", "lnum", "sups", "subs", "numr", "dnom", "aalt", "hkna", "ital",
];
/// The features of [`EXTRA_FEATURES`] that are only on or off: they substitute one form for each
/// glyph, so they take no alternate's number (`hkna=2` is refused).
const SWITCH_FEATURES: [&str; 2] = ["hkna", "ital"];
impl Default for OtFeatures {
fn default() -> Self {
Self {
@@ -107,10 +114,11 @@ struct ParsedTag<'a> {
value: u16,
}
/// Can feature `name` take a value (`salt=2`)? The features of [`EXTRA_FEATURES`] and `swsh` can:
/// each substitutes glyphs, and the value says which alternate.
/// Can feature `name` take a value (`salt=2`)? The features of [`EXTRA_FEATURES`] but
/// [`SWITCH_FEATURES`], and `swsh`, can: each substitutes glyphs, and the value says which
/// alternate.
fn takes_value(name: &str) -> bool {
name == "swsh" || EXTRA_FEATURES.contains(&name)
name == "swsh" || (EXTRA_FEATURES.contains(&name) && !SWITCH_FEATURES.contains(&name))
}
/// Read a feature tag: `tag`, `+tag`, `-tag` or, for a feature that takes a value, `tag=N` (`N`
@@ -316,6 +324,8 @@ impl OtFeatures {
}
for (i, tag) in EXTRA_FEATURES.iter().enumerate() {
if let (true, Ok(t)) = (s.extra & (1 << i) != 0, <[u8; 4]>::try_from(tag.as_bytes())) {
// H or V Style: the kana forms made for the writing direction, `vkna` in vertical type.
let t = if self.vertical && &t == b"hkna" { *b"vkna" } else { t };
v.push(f(&t, u32::from(s.extra_values.get(i).copied().unwrap_or(0).max(1))));
}
}
@@ -434,6 +444,31 @@ mod tests {
}
}
/// H or V Style (`hkna`) and Roman Italics (`ital`) are known, round-trip through the stored
/// tags and reach the shaper: `hkna` as itself in horizontal type and as `vkna` in vertical
/// type, `ital` in both. Neither takes an alternate's number.
#[test]
fn kana_style_and_roman_italics_are_kept_and_shaped() {
for t in ["hkna", "-hkna", "+ital", "ital"] {
assert!(OtFeatures::known_tag(t), "{t}");
}
for t in ["hkna=2", "ital=0", "vkna"] {
assert!(!OtFeatures::known_tag(t), "{t}");
}
assert_eq!(OtFeatures::from_tags(["ital", "hkna", "smcp"]).to_tags(), ["smcp", "hkna", "ital"]);
assert_eq!(OtFeatures::from_tags(["hkna", "ital", "-hkna"]).to_tags(), ["ital"]);
let st = CharStyle { features: vec!["hkna".into(), "ital".into()], ..CharStyle::default() };
let on = |vertical: bool| -> Vec<String> {
OtFeatures { vertical, ..OtFeatures::default() }.resolve(&st).iter().filter(|f| f.value == 1).map(|f| f.tag.to_string()).collect()
};
assert_eq!(on(false), ["hkna", "ital"]);
assert_eq!(on(true), ["vkna", "ital", "vert"]);
let plain = |vertical: bool| OtFeatures { vertical, ..OtFeatures::default() }.resolve(&CharStyle::default());
for vertical in [false, true] {
assert!(!plain(vertical).iter().any(|f| [b"hkna", b"vkna", b"ital"].iter().any(|t| f.tag == Tag::new(t))), "off by default");
}
}
/// `changes` lists the features a change turns on and off and leaves out the ones it keeps,
/// and applying them to any set makes the same change.
#[test]
@@ -48,6 +48,8 @@ const OT_SWITCHES: &[(&str, &str)] = &[
("ot_titl", "titl"),
("ot_ordn", "ordn"),
("ot_frac", "frac"),
("ot_hkna", "hkna"),
("ot_ital", "ital"),
];
/// The feature tags the Figure menu sets.
const FIGURE_TAGS: [&str; 4] = ["tnum", "onum", "pnum", "lnum"];
@@ -56,8 +58,21 @@ const FIGURE_VALUES: [&str; 5] = ["default", "tabularLining", "proportionalLinin
/// The values of the Position field, in the order of the OpenType panel's Position menu.
const POSITION_VALUES: [&str; 5] = ["default", "superscript", "subscript", "numerator", "denominator"];
/// The fields of OpenType Features.
const OT_FIELDS: &[&str] =
&["ot_figure", "ot_position", "ot_liga", "ot_calt", "ot_dlig", "ot_swsh", "ot_salt", "ot_titl", "ot_ordn", "ot_frac", "ot_sets"];
const OT_FIELDS: &[&str] = &[
"ot_figure",
"ot_position",
"ot_liga",
"ot_calt",
"ot_dlig",
"ot_swsh",
"ot_salt",
"ot_titl",
"ot_ordn",
"ot_frac",
"ot_hkna",
"ot_ital",
"ot_sets",
];
pub(super) const SPEC: DialogSpec = DialogSpec {
heading: |_| tl!("Character Style Options").into(),
@@ -106,6 +121,8 @@ pub(super) const SPEC: DialogSpec = DialogSpec {
"ot_titl",
"ot_ordn",
"ot_frac",
"ot_hkna",
"ot_ital",
"ot_sets",
"section",
]
@@ -926,6 +943,8 @@ pub(crate) fn opentype_body(ui: &mut egui::Ui, d: &mut Dialog) {
("ot_titl", tl!("Titling Alternates")),
("ot_ordn", tl!("Ordinals")),
("ot_frac", tl!("Fractions")),
("ot_hkna", tl!("H or V Style")),
("ot_ital", tl!("Roman Italics")),
] {
switch(ui, d, key, caption, true);
}
@@ -2042,6 +2061,23 @@ mod tests {
assert_eq!(edited_attrs(&d).unwrap()["features"], json!(["frac"]));
}
/// H or V Style and Roman Italics are on, off or unset switches of OpenType Features: they show
/// the style's `hkna` and `ital` tags, a changed switch replaces its tag and keeps the others, an
/// unset one removes it, and a style without them keeps none.
#[test]
fn kana_style_and_roman_italics_are_opentype_switches() {
let mut d = dialog_for(json!({"features": ["hkna", "-ital", "dlig"]}));
assert_eq!((&d.fields["ot_hkna"], &d.fields["ot_ital"]), (&json!(true), &json!(false)));
assert_eq!(edited_attrs(&d).unwrap()["features"], json!(["hkna", "-ital", "dlig"]), "untouched");
d.fields.insert("ot_ital".into(), json!(true));
d.fields.insert("ot_hkna".into(), Value::Null);
assert_eq!(edited_attrs(&d).unwrap()["features"], json!(["dlig", "ital"]));
let mut d = dialog_for(json!({}));
assert!(d.fields["ot_hkna"].is_null() && d.fields["ot_ital"].is_null());
d.fields.insert("ot_hkna".into(), json!(true));
assert_eq!(edited_attrs(&d).unwrap()["features"], json!(["hkna"]));
}
#[test]
fn color_and_opentype_sections_show_their_controls() {
let mut d = dialog_for(json!({}));
@@ -2066,6 +2102,8 @@ mod tests {
"Titling Alternates",
"Ordinals",
"Fractions",
"H or V Style",
"Roman Italics",
"Stylistic Sets",
"ss01",
"ss20",
+2
View File
@@ -2593,6 +2593,8 @@ font-technology Variable Променливи
Proof Setup Настройка на пробен печат
Properties Свойства
Proportional Metrics Пропорционални метрики
H or V Style Хоризонтален или вертикален стил
Roman Italics Римски курсив
Insert Aki Left Вмъкване на аки отляво
Insert Aki Right Вмъкване на аки отдясно
Tsume Цуме
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -1584,6 +1584,8 @@ lighting Light Svjetlo
Leading Prored
No Break Bez preloma
Proportional Metrics Proporcionalna metrika
H or V Style Horizontalni ili vertikalni stil
Roman Italics Latinični kurziv
Insert Aki Left Umetni aki lijevo
Insert Aki Right Umetni aki desno
Tsume Tsume
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -3362,6 +3362,8 @@ digits Malayalam Malaiàlam
Proof Setup Configuració de prova
Properties Propietats
Proportional Metrics Mètriques proporcionals
H or V Style Estil horitzontal o vertical
Roman Italics Cursiva romana
Insert Aki Left Insereix aki a l'esquerra
Insert Aki Right Insereix aki a la dreta
Tsume Tsume
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3 -1
View File
@@ -1612,6 +1612,8 @@ lighting Light Světlo
Leading Proklad
No Break Nezalamovat
Proportional Metrics Proporcionální metrika
H or V Style Vodorovný nebo svislý styl
Roman Italics Kurzíva latinky
Insert Aki Left Vložit aki vlevo
Insert Aki Right Vložit aki vpravo
Tsume Tsume
@@ -9258,7 +9260,7 @@ breakText Glyphs Glyfy
@msg unexpected resources neočekávané prostředky
@msg unknown CMYK profile `{name}` neznámý profil CMYK `{name}`
@msg unknown File Info field `{k}` neznámé pole informací o souboru `{k}`
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) neznámá funkce OpenType `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; předpona - funkci vypne; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom a aalt přijímají číslo alternativy jako `tag=N` s N od 0 do {_1}, například `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) neznámá funkce OpenType `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; předpona - funkci vypne; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom a aalt přijímají číslo alternativy jako `tag=N` s N od 0 do {_1}, například `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) neznámá funkce OpenType `{t}` ve featureChanges (značky, které přijímá `features`)
@msg unknown PDF preset `{name}` (presets: {_1}) neznámé přednastavení PDF `{name}` (přednastavení: {_1})
@msg unknown Warp style neznámý styl deformace
Can't render this file because it is too large.
+2
View File
@@ -2129,6 +2129,8 @@ lighting Light Lys
Leading Linjeafstand
No Break Ingen ombrydning
Proportional Metrics Proportionale metrikker
H or V Style Vandret eller lodret stil
Roman Italics Romersk kursiv
Insert Aki Left Indsæt aki til venstre
Insert Aki Right Indsæt aki til højre
Tsume Tsume
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3 -1
View File
@@ -2637,6 +2637,8 @@ mark-style Japanese Japanisch
Proof Setup Proof einrichten
Properties Eigenschaften
Proportional Metrics Proportionale Metrik
H or V Style Horizontaler oder vertikaler Stil
Roman Italics Lateinische Kursive
Insert Aki Left Aki links einfügen
Insert Aki Right Aki rechts einfügen
Tsume Tsume
@@ -7478,7 +7480,7 @@ breakText Glyphs Glyphen
@msg toString is not a function toString ist keine Funktion
@msg too many arguments zu viele Argumente
@msg too many quantifiers zu viele Quantifizierer
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) unbekannte OpenType-Funktion `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; mit vorangestelltem - ausschalten; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom und aalt nehmen die Nummer einer Alternative als `tag=N` mit N von 0 bis {_1}, etwa `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) unbekannte OpenType-Funktion `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; mit vorangestelltem - ausschalten; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom und aalt nehmen die Nummer einer Alternative als `tag=N` mit N von 0 bis {_1}, etwa `salt=2`)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) unbekanntes Dithering `{d}` (diffusion, pattern, noise oder none)
@msg unknown panel `{panel}` unbekanntes Bedienfeld `{panel}`
@msg unknown parameter `{key}` unbekannter Parameter `{key}`
Can't render this file because it is too large.
+2
View File
@@ -3434,6 +3434,8 @@ theme Appearance Εμφάνιση
Profile inclusion: Συμπερίληψη προφίλ:
Projecting Cap Προεξέχον άκρο
Proportional Metrics Αναλογικές μετρικές
H or V Style Οριζόντιο ή κατακόρυφο στυλ
Roman Italics Λατινικά πλάγια
Insert Aki Left Εισαγωγή aki αριστερά
Insert Aki Right Εισαγωγή aki δεξιά
Tsume Tsume
Can't render this file because it is too large.
+2
View File
@@ -2671,6 +2671,8 @@ font-technology Variable Variables
Proof Setup Ajuste de prueba
Properties Propiedades
Proportional Metrics Métrica proporcional
H or V Style Estilo horizontal o vertical
Roman Italics Cursiva romana
Insert Aki Left Insertar aki a la izquierda
Insert Aki Right Insertar aki a la derecha
Tsume Tsume
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -1587,6 +1587,8 @@ lighting Light Valo
Leading Riviväli
No Break Ei katkoa
Proportional Metrics Suhteelliset metriikat
H or V Style Vaaka- tai pystytyyli
Roman Italics Latinalainen kursiivi
Insert Aki Left Lisää aki vasemmalle
Insert Aki Right Lisää aki oikealle
Tsume Tsume
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3 -1
View File
@@ -2663,6 +2663,8 @@ font-technology Variable Variables
Proof Setup Format d’épreuve
Properties Propriétés
Proportional Metrics Métrique proportionnelle
H or V Style Style horizontal ou vertical
Roman Italics Italique des caractères romains
Insert Aki Left Insérer un aki à gauche
Insert Aki Right Insérer un aki à droite
Tsume Tsume
@@ -9116,7 +9118,7 @@ breakText Glyphs Glyphes
@msg unexpected resources ressources inattendues
@msg unknown CMYK profile `{name}` profil CMJN inconnu `{name}`
@msg unknown File Info field `{k}` champ Informations sur le fichier inconnu `{k}`
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) fonctionnalité OpenType inconnue `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt ; préfixe - pour désactiver ; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom et aalt acceptent un numéro de variante sous la forme `tag=N` avec N de 0 à {_1}, comme `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) fonctionnalité OpenType inconnue `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital ; préfixe - pour désactiver ; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom et aalt acceptent un numéro de variante sous la forme `tag=N` avec N de 0 à {_1}, comme `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) fonctionnalité OpenType inconnue `{t}` dans featureChanges (les balises qu’accepte `features`)
@msg unknown PDF preset `{name}` (presets: {_1}) paramètre prédéfini PDF inconnu `{name}` (paramètres prédéfinis : {_1})
@msg unknown Warp style style de déformation inconnu
Can't render this file because it is too large.
+2
View File
@@ -2744,6 +2744,8 @@
Proof Setup પ્રૂફ સેટઅપ
Properties ગુણધર્મો
Proportional Metrics પ્રમાણસર મેટ્રિક્સ
H or V Style આડી અથવા ઊભી શૈલી
Roman Italics રોમન ઇટાલિક
Pucker પકર
Pucker & Bloat… પકર અને બ્લોટ…
Pucker Tool પકર ટૂલ
Can't render this file because it contains an unexpected character in line 72 and column 5.
+2
View File
@@ -3702,6 +3702,8 @@ antiAlias Sharp शार्प
Properties प्रॉपर्टीज़
Proportional Lining आनुपातिक लाइनिंग
Proportional Metrics आनुपातिक मीट्रिक
H or V Style क्षैतिज या ऊर्ध्वाधर शैली
Roman Italics रोमन इटैलिक
Insert Aki Left बाईं ओर आकी जोड़ें
Insert Aki Right दाईं ओर आकी जोड़ें
Tsume त्सुमे
Can't render this file because it is too large.
+3 -1
View File
@@ -3228,6 +3228,8 @@ mark-style Japanese Japán
Proof Setup Színpróba beállítása
Properties Tulajdonságok
Proportional Metrics Arányos metrika
H or V Style Vízszintes vagy függőleges stílus
Roman Italics Latin betűk dőlt változata
Insert Aki Left Aki beszúrása balra
Insert Aki Right Aki beszúrása jobbra
Tsume Tsume
@@ -9128,7 +9130,7 @@ breakText Glyphs Glifák
@msg unexpected resources váratlan erőforrások
@msg unknown CMYK profile `{name}` ismeretlen CMYK-profil: `{name}`
@msg unknown File Info field `{k}` ismeretlen fájlinformációs mező: `{k}`
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) ismeretlen OpenType-funkció: `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; a - előtag kikapcsolja; a swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom és aalt egy alternatíva számát `tag=N` alakban fogadja, ahol N 0 és {_1} között lehet, például `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) ismeretlen OpenType-funkció: `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; a - előtag kikapcsolja; a swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom és aalt egy alternatíva számát `tag=N` alakban fogadja, ahol N 0 és {_1} között lehet, például `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) ismeretlen OpenType-funkció a featureChanges értékben: `{t}` (a `features` által fogadott címkék használhatók)
@msg unknown PDF preset `{name}` (presets: {_1}) ismeretlen PDF-előbeállítás: `{name}` (előbeállítások: {_1})
@msg unknown Warp style ismeretlen hajlítási stílus
Can't render this file because it is too large.
+2
View File
@@ -1520,6 +1520,8 @@ lighting Light Cahaya
Leading Leading
No Break Tanpa pemenggalan
Proportional Metrics Metrik proporsional
H or V Style Gaya horizontal atau vertikal
Roman Italics Miring Romawi
Insert Aki Left Sisipkan aki kiri
Insert Aki Right Sisipkan aki kanan
Tsume Tsume
1 # Indonesian (id) catalog. Same format as zh-hant.tsv: context <TAB> source <TAB> translation
1520
1521
1522
1523
1524
1525
1526
1527
+3 -1
View File
@@ -2713,6 +2713,8 @@ mark-style Japanese Giapponese
Proof Setup Impostazione prova
Properties Proprietà
Proportional Metrics Metrica proporzionale
H or V Style Stile orizzontale o verticale
Roman Italics Corsivo romano
Insert Aki Left Inserisci aki a sinistra
Insert Aki Right Inserisci aki a destra
Tsume Tsume
@@ -7526,7 +7528,7 @@ breakText Glyphs Glifi
@msg toString is not a function toString non è una funzione
@msg too many arguments troppi argomenti
@msg too many quantifiers troppi quantificatori
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) funzione OpenType sconosciuta `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; anteponi - per disattivarla; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom e aalt accettano il numero di un'alternativa come `tag=N` con N da 0 a {_1}, ad esempio `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) funzione OpenType sconosciuta `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; anteponi - per disattivarla; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom e aalt accettano il numero di un'alternativa come `tag=N` con N da 0 a {_1}, ad esempio `salt=2`)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) dithering sconosciuto `{d}` (diffusion, pattern, noise o none)
@msg unknown panel `{panel}` pannello sconosciuto `{panel}`
@msg unknown parameter `{key}` parametro sconosciuto `{key}`
Can't render this file because it is too large.
+3 -1
View File
@@ -50,6 +50,8 @@ font-technology Variable バリアブル
x-Height x ハイト
ICF Box 平均字面
Proportional Metrics プロポーショナルメトリクス
H or V Style 横組み・縦組み用かな
Roman Italics 欧文イタリック
Insert Aki Left 前にアキを挿入
Insert Aki Right 後ろにアキを挿入
Tsume 文字ツメ
@@ -6733,7 +6735,7 @@ axis Y Axis Y 軸
@msg toString is not a function toString は関数ではありません
@msg too many arguments 引数が多すぎます
@msg too many quantifiers 量指定子が多すぎます
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) `{t}` は不明な OpenType 機能です (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt。オフにするには先頭に - を付けます。swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt には、`salt=2` のように `tag=N` の形式で代替字形の番号を指定できます。N は 0 から {_1} まで)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) `{t}` は不明な OpenType 機能です (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital。オフにするには先頭に - を付けます。swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt には、`salt=2` のように `tag=N` の形式で代替字形の番号を指定できます。N は 0 から {_1} まで)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) `{d}` は不明なディザの指定です (diffusion、pattern、noise、none のいずれか)
@msg unknown panel `{panel}` `{panel}` は不明なパネルです
@msg unknown parameter `{key}` `{key}` は不明なパラメーターです
Can't render this file because it is too large.
+2
View File
@@ -1457,6 +1457,8 @@ lighting Light სინათლე
Leading სტრიქონთა დაშორება
No Break გადატანის გარეშე
Proportional Metrics პროპორციული მეტრიკა
H or V Style ჰორიზონტალური ან ვერტიკალური სტილი
Roman Italics ლათინური კურსივი
Insert Aki Left აკის ჩასმა მარცხნივ
Insert Aki Right აკის ჩასმა მარჯვნივ
Tsume ცუმე
Can't render this file because it is too large.
+3 -1
View File
@@ -44,6 +44,8 @@ font-technology Variable 가변
x-Height x 높이
ICF Box ICF 박스
Proportional Metrics 비례 메트릭
H or V Style 가로 또는 세로 스타일
Roman Italics 로마자 이탤릭
Insert Aki Left 앞 아키 삽입
Insert Aki Right 뒤 아키 삽입
Tsume 츠메
@@ -8861,7 +8863,7 @@ breakText Glyphs 글리프
@msg unexpected resources 예상하지 못한 리소스
@msg unknown CMYK profile `{name}` 알 수 없는 CMYK 프로파일 `{name}`
@msg unknown File Info field `{k}` 알 수 없는 파일 정보 필드 `{k}`
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) 알 수 없는 OpenType 기능 `{t}`(liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt. 끄려면 앞에 -를 붙이세요. swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt는 대체 글리프 번호를 `tag=N` 형식으로 받으며 N은 0에서 {_1} 사이입니다. 예: `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) 알 수 없는 OpenType 기능 `{t}`(liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital. 끄려면 앞에 -를 붙이세요. swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt는 대체 글리프 번호를 `tag=N` 형식으로 받으며 N은 0에서 {_1} 사이입니다. 예: `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) featureChanges의 알 수 없는 OpenType 기능 `{t}`(`features`가 받는 태그를 사용하세요)
@msg unknown PDF preset `{name}` (presets: {_1}) 알 수 없는 PDF 프리셋 `{name}`(프리셋: {_1})
@msg unknown Warp style 알 수 없는 왜곡 스타일
Can't render this file because it is too large.
+3 -1
View File
@@ -2038,6 +2038,8 @@ lighting Light Licht
Leading Regelafstand
No Break Niet afbreken
Proportional Metrics Proportionele metingen
H or V Style Horizontale of verticale stijl
Roman Italics Romeinse cursief
Insert Aki Left Aki links invoegen
Insert Aki Right Aki rechts invoegen
Tsume Tsume
@@ -7208,7 +7210,7 @@ imageTrace Outline Contour
@msg unexpected resources onverwachte resources
@msg unknown CMYK profile `{name}` onbekend CMYK-profiel `{name}`
@msg unknown File Info field `{k}` onbekend veld `{k}` van Bestandsinfo
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) onbekende OpenType-functie `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; zet er - voor om uit te schakelen; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom en aalt accepteren het nummer van een alternatief als `tag=N` met N van 0 tot {_1}, zoals `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) onbekende OpenType-functie `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; zet er - voor om uit te schakelen; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom en aalt accepteren het nummer van een alternatief als `tag=N` met N van 0 tot {_1}, zoals `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) onbekende OpenType-functie `{t}` in featureChanges (de tags die `features` accepteert)
@msg unknown PDF preset `{name}` (presets: {_1}) onbekende PDF-voorinstelling `{name}` (voorinstellingen: {_1})
@msg unknown Warp style onbekende warpstijl
Can't render this file because it is too large.
+3 -1
View File
@@ -1525,6 +1525,8 @@ lighting Light Światło
Leading Interlinia
No Break Bez podziału
Proportional Metrics Metryka proporcjonalna
H or V Style Styl poziomy lub pionowy
Roman Italics Kursywa łacińska
Insert Aki Left Wstaw aki z lewej
Insert Aki Right Wstaw aki z prawej
Tsume Tsume
@@ -7767,7 +7769,7 @@ breakText Glyphs Glify
@msg too many arguments zbyt wiele argumentów
@msg too many quantifiers zbyt wiele kwantyfikatorów
@msg turn on at least one side włącz co najmniej jedną stronę
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) nieznana funkcja OpenType `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefiks - wyłącza funkcję; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom i aalt przyjmują numer wariantu w postaci `tag=N`, gdzie N to liczba od 0 do {_1}, na przykład `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) nieznana funkcja OpenType `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefiks - wyłącza funkcję; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom i aalt przyjmują numer wariantu w postaci `tag=N`, gdzie N to liczba od 0 do {_1}, na przykład `salt=2`)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) nieznane rozpraszanie `{d}` (diffusion, pattern, noise lub none)
@msg unknown panel `{panel}` nieznany panel `{panel}`
@msg unknown parameter `{key}` nieznany parametr `{key}`
Can't render this file because it is too large.
+3 -1
View File
@@ -2235,6 +2235,8 @@ antiAlias Sharp Nítido
Proof Setup Configuração de Prova
Properties Propriedades
Proportional Metrics Métrica Proporcional
H or V Style Estilo Horizontal ou Vertical
Roman Italics Itálico Romano
Insert Aki Left Inserir Aki à Esquerda
Insert Aki Right Inserir Aki à Direita
Tsume Tsume
@@ -9321,7 +9323,7 @@ swatch Yellow Green Verde-amarelado
@msg unexpected resources recursos inesperados
@msg unknown CMYK profile `{name}` perfil CMYK desconhecido `{name}`
@msg unknown File Info field `{k}` campo de Informações do Arquivo desconhecido `{k}`
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) recurso OpenType desconhecido `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefixe com - para desativar; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom e aalt aceitam o número de uma alternativa como `tag=N` com N de 0 a {_1}, como `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) recurso OpenType desconhecido `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefixe com - para desativar; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom e aalt aceitam o número de uma alternativa como `tag=N` com N de 0 a {_1}, como `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) recurso OpenType desconhecido `{t}` em featureChanges (as tags que `features` aceita)
@msg unknown PDF preset `{name}` (presets: {_1}) predefinição de PDF desconhecida `{name}` (predefinições: {_1})
@msg unknown Warp style estilo de Deformação desconhecido
Can't render this file because it is too large.
+2
View File
@@ -2700,6 +2700,8 @@ mark-style Japanese Японский
Proof Setup Настройка цветопробы
Properties Свойства
Proportional Metrics Пропорциональные метрики
H or V Style Горизонтальный или вертикальный стиль
Roman Italics Римский курсив
Insert Aki Left Вставить аки слева
Insert Aki Right Вставить аки справа
Tsume Цумэ
Can't render this file because it is too large.
+2
View File
@@ -2608,6 +2608,8 @@ font-technology Variable Variabla
Proof Setup Provtrycksinställningar
Properties Egenskaper
Proportional Metrics Proportionella mått
H or V Style Vågrät eller lodrät stil
Roman Italics Romersk kursiv
Insert Aki Left Infoga aki till vänster
Insert Aki Right Infoga aki till höger
Tsume Tsume
Can't render this file because it is too large.
+3 -1
View File
@@ -2455,6 +2455,8 @@ shape Open Açık
Proof Setup Prova Kurulumu
Properties Özellikler
Proportional Metrics Orantılı Metrikler
H or V Style Yatay veya Dikey Stil
Roman Italics Roma İtalik
Insert Aki Left Sola Aki Ekle
Insert Aki Right Sağa Aki Ekle
Tsume Tsume
@@ -7120,7 +7122,7 @@ axis Y Axis Y ekseni
@msg toString is not a function toString bir işlev değil
@msg too many arguments çok fazla bağımsız değişken
@msg too many quantifiers çok fazla niceleyici
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) bilinmeyen OpenType özelliği `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; kapatmak için başına - koyun; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom ve aalt bir alternatifin numarasını `tag=N` biçiminde alır, N 0 ile {_1} arasındadır, örneğin `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) bilinmeyen OpenType özelliği `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; kapatmak için başına - koyun; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom ve aalt bir alternatifin numarasını `tag=N` biçiminde alır, N 0 ile {_1} arasındadır, örneğin `salt=2`)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) bilinmeyen renk taklidi `{d}` (diffusion, pattern, noise veya none)
@msg unknown panel `{panel}` bilinmeyen panel `{panel}`
@msg unknown parameter `{key}` bilinmeyen parametre `{key}`
Can't render this file because it is too large.
+3 -1
View File
@@ -2705,6 +2705,8 @@ mark-style Japanese Японський
Proof Setup Налаштування кольоропроби
Properties Властивості
Proportional Metrics Пропорційні метрики
H or V Style Горизонтальний або вертикальний стиль
Roman Italics Римський курсив
Insert Aki Left Вставити акі ліворуч
Insert Aki Right Вставити акі праворуч
Tsume Цуме
@@ -8850,7 +8852,7 @@ breakText Glyphs Гліфи
@msg unexpected resources неочікувані ресурси
@msg unknown CMYK profile `{name}` невідомий профіль CMYK `{name}`
@msg unknown File Info field `{k}` невідоме поле відомостей про файл `{k}`
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) невідома функція OpenType `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; префікс - вимикає функцію; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom і aalt приймають номер альтернативи у вигляді `tag=N`, де N від 0 до {_1}, наприклад `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) невідома функція OpenType `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; префікс - вимикає функцію; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom і aalt приймають номер альтернативи у вигляді `tag=N`, де N від 0 до {_1}, наприклад `salt=2`)
@msg unknown OpenType feature `{t}` in featureChanges (the tags `features` takes) невідома функція OpenType `{t}` у featureChanges (допустимі теги, які приймає `features`)
@msg unknown PDF preset `{name}` (presets: {_1}) невідомий набір PDF `{name}` (набори: {_1})
@msg unknown Warp style невідомий стиль деформації
Can't render this file because it is too large.
+2
View File
@@ -3017,6 +3017,8 @@ mark-style Japanese Kiểu Nhật
Proof Setup Thiết lập thử nghiệm
Properties Thuộc tính
Proportional Metrics Số liệu theo tỷ lệ
H or V Style Kiểu ngang hoặc dọc
Roman Italics Nghiêng Roman
Insert Aki Left Chèn aki bên trái
Insert Aki Right Chèn aki bên phải
Tsume Tsume
Can't render this file because it contains an unexpected character in line 204 and column 5.
+3 -1
View File
@@ -2567,6 +2567,8 @@ font-script Japanese 汉字
Proof Setup 校样设置
Properties 属性
Proportional Metrics 比例度量
H or V Style 横排或直排样式
Roman Italics 西文斜体
Insert Aki Left 在前方插入空白
Insert Aki Right 在后方插入空白
Tsume 比例间距
@@ -7748,7 +7750,7 @@ breakText Glyphs 字形
@msg too many arguments 参数过多
@msg too many quantifiers 量词过多
@msg turn on at least one side 请至少打开一条边
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) 未知的 OpenType 特性 `{t}` (liga、calt、dlig、smcp、frac、onum、tnum、ordn、swsh、ss01–ss20、salt、titl、pnum、lnum、sups、subs、numr、dnom、aalt;加前缀 - 表示关闭;swsh、ss01–ss20、salt、titl、pnum、lnum、sups、subs、numr、dnom 和 aalt 可用 `tag=N` 指定替代字形的编号,N 为 0 到 {_1},例如 `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) 未知的 OpenType 特性 `{t}` (liga、calt、dlig、smcp、frac、onum、tnum、ordn、swsh、ss01–ss20、salt、titl、pnum、lnum、sups、subs、numr、dnom、aalt、hkna、ital;加前缀 - 表示关闭;swsh、ss01–ss20、salt、titl、pnum、lnum、sups、subs、numr、dnom 和 aalt 可用 `tag=N` 指定替代字形的编号,N 为 0 到 {_1},例如 `salt=2`)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) 未知的仿色 `{d}` (diffusion、pattern、noise 或 none)
@msg unknown panel `{panel}` 未知的面板 `{panel}`
@msg unknown parameter `{key}` 未知的参数 `{key}`
Can't render this file because it is too large.
+3 -1
View File
@@ -3787,6 +3787,8 @@ font-script Japanese 漢字
Proof Setup 校樣設定
Properties 內容
Proportional Metrics 比例度量
H or V Style 橫排或直排樣式
Roman Italics 羅馬字斜體
Insert Aki Left 在前方插入空白
Insert Aki Right 在後方插入空白
Tsume 比例間距
@@ -7676,7 +7678,7 @@ breakText Glyphs 字符
@msg too many arguments 引數過多
@msg too many quantifiers 量詞過多
@msg turn on at least one side 請至少開啟一側
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) 未知的 OpenType 功能 `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt;加上前置的 - 可關閉;swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom 和 aalt 可用 `tag=N` 指定替代字的編號,N 為 0 到 {_1},例如 `salt=2`)
@msg unknown OpenType feature `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital; prefix - to turn off; swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom and aalt take an alternate's number as `tag=N` with N from 0 to {_1}, as `salt=2`) 未知的 OpenType 功能 `{t}` (liga, calt, dlig, smcp, frac, onum, tnum, ordn, swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom, aalt, hkna, ital;加上前置的 - 可關閉;swsh, ss01–ss20, salt, titl, pnum, lnum, sups, subs, numr, dnom 和 aalt 可用 `tag=N` 指定替代字的編號,N 為 0 到 {_1},例如 `salt=2`)
@msg unknown dither `{d}` (diffusion, pattern, noise or none) 未知的仿色 `{d}` (diffusion、pattern、noise 或 none)
@msg unknown panel `{panel}` 未知的面板 `{panel}`
@msg unknown parameter `{key}` 未知的參數 `{key}`
Can't render this file because it is too large.
+187 -14
View File
@@ -1,6 +1,7 @@
//! OpenType panel: per-character OpenType features (ligatures, alternates, swashes, small caps,
//! ordinals, fractions, figure style, position) for the selected text (every frame of each
//! selected threaded story) or the Type tool's selected characters.
//! ordinals, fractions, figure style, position, and with the East Asian options the menu's H or V
//! Style and Roman Italics) for the selected text (every frame of each selected threaded story) or
//! the Type tool's selected characters.
use egui::Ui;
use serde_json::json;
@@ -117,10 +118,42 @@ fn shown_figure(app: &VectorcraftApp) -> Option<usize> {
shared(app, |s| figure(&OtFeatures::from_tags(s.features.iter().map(String::as_str))))
}
/// Whether `flag` is on for every character the panel acts on (`Some(true)`), for none of them
/// (`Some(false)`), or only for some (`None`).
/// Whether `flag` is on for every character a toggle changes (`Some(true)`), for none of them
/// (`Some(false)`), or only for some (`None`). At a Type tool caret, and after Select All in a
/// threaded story, the command styles all the text ([`run_features`]), so every character of it
/// counts, as in [`edit`].
fn shown_flag(app: &VectorcraftApp, flag: Flag) -> Option<bool> {
shared(app, |s| flag.get(&OtFeatures::from_tags(s.features.iter().map(String::as_str))))
let on = |s: &CharStyle| flag.get(&OtFeatures::from_tags(s.features.iter().map(String::as_str)));
if let Some(mut runs) = whole_text_runs(app) {
// A run with no text, such as an empty frame's, counts only when no run has text.
if runs.iter().any(|r| !r.text.is_empty()) {
runs.retain(|r| !r.text.is_empty());
}
let Some(first) = runs.first() else {
return shared(app, on);
};
let v = on(&first.style);
return runs.iter().all(|r| on(&r.style) == v).then_some(v);
}
shared(app, on)
}
/// The runs the panel's commands style as a whole while the Type tool edits text: those of every
/// frame of the story after Select All in threaded text, else at a caret (an empty selection)
/// those of the text object. `None` for a range in one text object, or with no Type tool editing.
fn whole_text_runs(app: &VectorcraftApp) -> Option<Vec<&vectorcraft_doc::TextRun>> {
let (id, a, b) = text_editing(app)?;
let st = app.session.active()?;
let ids = match super::character::text_story(app) {
Some(story) => story,
None if b <= a => vec![id],
None => return None,
};
let runs = ids.into_iter().filter_map(|id| match &st.doc.node(id)?.kind {
NodeKind::Text(t) => Some(t.runs.iter()),
_ => None,
});
Some(runs.flatten().collect())
}
/// The Figure menu's text for entry `shown`: Mixed when the characters differ.
@@ -150,8 +183,9 @@ impl Change {
}
/// Make `change` to the features of each character the panel acts on, from the character's own
/// features (`featureChanges`), unless it changes none of them. At a Type tool caret the
/// command styles all the text, so every character of the text is checked.
/// features (`featureChanges`), unless it changes none of them. At a Type tool caret, and after
/// Select All in a threaded story, the command styles all the text, so every character of it is
/// checked ([`whole_text_runs`]).
fn edit(app: &mut VectorcraftApp, change: Change) {
let same = |s: &CharStyle| {
let before = OtFeatures::from_tags(s.features.iter().map(String::as_str));
@@ -159,12 +193,9 @@ fn edit(app: &mut VectorcraftApp, change: Change) {
change.apply(&mut after);
after == before
};
let unchanged = match text_editing(app) {
Some((id, a, b)) if b <= a => match app.session.active().and_then(|st| st.doc.node(id)).map(|n| &n.kind) {
Some(NodeKind::Text(t)) => Some(t.runs.iter().all(|r| same(&r.style))),
_ => None,
},
_ => shared(app, same),
let unchanged = match whole_text_runs(app) {
Some(runs) => Some(runs.iter().all(|r| same(&r.style))),
None => shared(app, same),
};
if unchanged != Some(true) {
run_features(app, "featureChanges", OtFeatures::changes(|f| change.apply(f)));
@@ -304,10 +335,29 @@ fn rows() -> [Toggle; 9] {
]
}
/// The panel menu's East Asian items, with Show East Asian Options: label and the feature each
/// turns on and off. H or V Style sets kana in the forms the font draws for the writing direction
/// (`hkna`, shaped as `vkna` in vertical type), and Roman Italics sets half-width alphanumerics
/// in the font's italic forms (`ital`).
fn east_asian_items() -> [Toggle; 2] {
[(tl!("H or V Style"), Flag::Extra("hkna")), (tl!("Roman Italics"), Flag::Extra("ital"))]
}
pub fn menu(app: &mut VectorcraftApp, ui: &mut Ui) {
if menu_item(ui, tl!("Reset OpenType Features"), text_style(app).is_some(), false) {
let has = text_style(app).is_some();
if menu_item(ui, tl!("Reset OpenType Features"), has, false) {
set(app, OtFeatures::default());
}
if app.session.prefs.show_east_asian_options {
ui.separator();
// Checked when every character it changes has it; chosen then, it turns it off.
for (label, flag) in east_asian_items() {
let on = shown_flag(app, flag) == Some(true);
if menu_item(ui, label, has, on) {
edit(app, Change::Toggle(flag, !on));
}
}
}
}
#[cfg(test)]
@@ -715,4 +765,127 @@ mod tests {
edit(&mut app, Change::Position(4));
assert_eq!(undo_steps(&app), undo + 1);
}
/// H or V Style and Roman Italics are in the panel menu with the East Asian options only.
#[test]
fn kana_style_and_roman_italics_show_with_the_east_asian_options() {
let mut app = selected_text();
let shown = |app: &mut VectorcraftApp| {
let text = crate::tests_labels::painted_text(app, menu);
(text.contains("H or V Style"), text.contains("Roman Italics"))
};
assert_eq!(shown(&mut app), (false, false));
app.session.prefs.show_east_asian_options = true;
assert_eq!(shown(&mut app), (true, true));
}
/// With the Type tool's characters only partly set, H or V Style and Roman Italics show
/// unchecked; chosen, each turns its feature on for every selected character in one undo step,
/// each run keeping its other features, and shows checked; chosen again, it turns it off.
/// Reset OpenType Features clears both.
#[test]
fn kana_style_and_roman_italics_turn_on_and_off() {
for (label, tag) in [("H or V Style", "hkna"), ("Roman Italics", "ital")] {
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
app.session.prefs.show_east_asian_options = true;
app.session.execute("file.new", &json!({"width": 300, "height": 200})).unwrap();
app.session.select_tool("type", Default::default()).unwrap();
let id = app.session.execute("text.create", &json!({"x": 10, "y": 40, "text": "かなAB"})).unwrap()["id"].clone();
app.session.execute("text.setRangeStyle", &json!({"id": id, "start": 0, "end": 3, "features": [tag, "smcp"]})).unwrap();
app.session.apply_actions(vec![vectorcraft_tools::Action::Notify("text.editNew".into())]).unwrap();
// "かなAB" is 8 bytes.
app.session.set_tool_option("select", &json!({"start": 0, "end": 8}));
let ctx = egui::Context::default();
let row = |app: &mut VectorcraftApp, label: &str| {
let texts = super::super::tests_appearance::frame_events(&ctx, app, vec![], menu);
texts.into_iter().find(|(t, _)| t.trim_start_matches(['✓', ' ']) == label).unwrap_or_else(|| panic!("{label} missing"))
};
let has = |runs: &[(String, Value)], t: &str| runs.iter().all(|(_, f)| f.as_array().is_some_and(|f| f.iter().any(|x| x == t)));
let (text, at) = row(&mut app, label);
assert!(!text.starts_with('✓'), "{label}: {text:?}");
let undo = undo_steps(&app);
super::super::tests_appearance::click(&ctx, &mut app, at.center(), menu);
assert_eq!(undo_steps(&app), undo + 1, "{label}");
let runs = run_features(&mut app, &id, 8);
assert!(has(&runs, tag), "{label}: {runs:?}");
assert!(has(&runs[..1], "smcp") && runs[0].0 == "か", "{label} keeps the other features: {runs:?}");
let (text, at) = row(&mut app, label);
assert!(text.starts_with('✓'), "{label}: {text:?}");
super::super::tests_appearance::click(&ctx, &mut app, at.center(), menu);
assert_eq!(run_features(&mut app, &id, 8), [("か".to_string(), json!(["smcp"])), ("なAB".to_string(), Value::Null)], "{label} off");
app.session.execute("text.setRangeStyle", &json!({"id": id, "features": ["hkna", "ital", "dlig"]})).unwrap();
let at = row(&mut app, "Reset OpenType Features").1;
super::super::tests_appearance::click(&ctx, &mut app, at.center(), menu);
assert_eq!(run_features(&mut app, &id, 8), [("かなAB".to_string(), Value::Null)], "{label}: reset");
}
}
/// At a Type tool caret after a character that has H or V Style or Roman Italics while the
/// rest of the text does not, the item and the checkbox rows read every character the command
/// styles at a caret (all of them): the item shows unchecked, a Small Caps row set the same way
/// shows a dash, and choosing the item turns its feature on for the whole text.
#[test]
fn caret_items_read_every_character_they_change() {
for (label, tag) in [("H or V Style", "hkna"), ("Roman Italics", "ital")] {
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
app.session.prefs.show_east_asian_options = true;
app.session.execute("file.new", &json!({"width": 300, "height": 200})).unwrap();
app.session.select_tool("type", Default::default()).unwrap();
let id = app.session.execute("text.create", &json!({"x": 10, "y": 40, "text": "かなAB"})).unwrap()["id"].clone();
app.session.execute("text.setRangeStyle", &json!({"id": id, "start": 0, "end": 3, "features": [tag, "smcp"]})).unwrap();
app.session.apply_actions(vec![vectorcraft_tools::Action::Notify("text.editNew".into())]).unwrap();
// The caret after "か", whose style the next typed character takes.
app.session.set_tool_option("select", &json!({"start": 3, "end": 3}));
assert_eq!(text_editing(&app).map(|(_, a, b)| (a, b)), Some((3, 3)));
assert_eq!(shown_flag(&app, Flag::Field(|f| &mut f.small_caps)), None, "{label}: Small Caps row");
let ctx = egui::Context::default();
let texts = super::super::tests_appearance::frame_events(&ctx, &mut app, vec![], menu);
let Some((text, at)) = texts.into_iter().find(|(t, _)| t.trim_start_matches(['✓', ' ']) == label) else { panic!("{label} missing") };
assert!(!text.starts_with('✓'), "{label}: {text:?}");
super::super::tests_appearance::click(&ctx, &mut app, at.center(), menu);
let runs = run_features(&mut app, &id, 8);
assert!(runs.iter().all(|(_, f)| f.as_array().is_some_and(|f| f.iter().any(|x| x == tag))), "{label}: {runs:?}");
}
}
/// After Select All in a threaded story whose edited frame is empty, the item reads the text
/// of every frame the command styles: with the story's text set with H or V Style or Roman
/// Italics it shows checked, and choosing it turns the feature off for that text.
#[test]
fn select_all_from_an_empty_frame_reads_the_whole_story() {
for (label, tag) in [("H or V Style", "hkna"), ("Roman Italics", "ital")] {
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
app.session.prefs.show_east_asian_options = true;
app.run("file.new", json!({"width": 600, "height": 300})).unwrap();
let story = "The quick brown fox jumps over the lazy dog and keeps running far beyond the first frame. ".repeat(4);
let area = json!({"x": 10, "y": 10, "text": story, "size": 12, "area": {"width": 150, "height": 60}});
let a = app.run("text.create", area).unwrap()["id"].as_u64().unwrap();
let b = app.run("shape.rectangle", json!({"x": 200, "y": 10, "width": 150, "height": 200})).unwrap()["id"].as_u64().unwrap();
app.run("select.set", json!({"ids": [a, b]})).unwrap();
app.run("text.thread.create", json!({})).unwrap();
app.session.select_tool("type", Default::default()).unwrap();
app.session.set_tool_option("textSelection", &json!({"editing": a, "anchor": 0, "caret": 0}));
app.run("select.all", json!({})).unwrap();
// A frame threaded in before the first takes the whole text, leaving the edited frame empty.
let c = app.run("text.thread.add", json!({"from": a, "before": true, "rect": [700, 10, 400, 600]})).unwrap()["id"].as_u64().unwrap();
app.run("text.setRangeStyle", json!({"id": c, "features": [tag]})).unwrap();
assert_eq!(text_editing(&app).map(|(id, a, b)| (id.0, a, b)), Some((a, 0, 0)), "{label}");
assert_eq!(super::super::character::text_story(&app).map(|frames| frames.len()), Some(3), "{label}");
// The empty frames' runs, which hold no character, without the feature.
for id in [a, b] {
let doc = std::sync::Arc::make_mut(&mut app.session.doc_mut().unwrap().doc);
let Some(NodeKind::Text(t)) = doc.node_mut(NodeId(id)).map(|n| &mut n.kind) else { panic!("no frame {id}") };
for r in &mut t.runs {
r.style.features.clear();
}
}
let ctx = egui::Context::default();
let texts = super::super::tests_appearance::frame_events(&ctx, &mut app, vec![], menu);
let Some((text, at)) = texts.into_iter().find(|(t, _)| t.trim_start_matches(['✓', ' ']) == label) else { panic!("{label} missing") };
assert!(text.starts_with('✓'), "{label}: {text:?}");
super::super::tests_appearance::click(&ctx, &mut app, at.center(), menu);
let runs = run_features(&mut app, &json!(c), story.len());
assert!(runs.iter().all(|(_, f)| !f.as_array().is_some_and(|f| f.iter().any(|x| x == tag))), "{label}: {runs:?}");
}
}
}
+18
View File
@@ -9556,6 +9556,24 @@ not kerned). Off by default and saved only when on. One undo step.
{"name":"run_command","arguments":{"command":"text.setFormat","params":{"proportionalMetrics":true}}}
```
## H or V Style and Roman Italics
With Show East Asian Options on, the OpenType panel menu has H or V Style and Roman Italics
([the help page](https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html)). They are the character
feature tags `hkna` and `ital` of `text.setStyle` and `text.setRangeStyle {features, featureChanges}`
([feature list](https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist)). `hkna` draws kana with the
forms the font makes for horizontal type, and in vertical type the shaper applies `vkna`, the forms for vertical type,
in its place. `ital` draws half-width alphanumerics with the font's italic forms. A font without the feature draws the
characters unchanged. Both are on or off only: `hkna=2` and `ital=0` are refused as unknown features, and `vkna` is
not a tag of its own. A menu item is checked when every character the panel acts on has it; choosing it turns the
feature on for all of them, or off when it is checked, each character keeping its other features, in one undo step.
Reset OpenType Features turns both off. Character styles carry them, and Character Style Options › OpenType Features
has an on, off or unset switch for each. Live SVG text writes them in `font-feature-settings`.
```json
{"name":"run_command","arguments":{"command":"text.setRangeStyle","params":{"id":12,"start":0,"end":6,"featureChanges":["hkna","ital"]}}}
```
## Variable fonts
`text.setFormat {fontAxes: {"wght": 650}}` (the selected type, or `ids`) and `text.setRangeStyle {id, start, end,
+1
View File
@@ -1383,6 +1383,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
The Glyphs panel's Alternates for Current Selection (#5514) applies the OpenType feature that draws the glyph to the selected character alone, as [Replace characters with alternate glyphs](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/replace-characters-with-alternate-glyphs.html) describes (Alternates For Current Selection in the Show menu; double-click the glyph to replace the selected character). One deliberate difference from a literal reading: the text keeps the Unicode character and gains a character-style feature with a value (`salt=2`, `ss03`; `text.setRangeStyle {featureChanges}`) instead of taking an unencoded glyph in its place. The grid lists the alternates of the glyph the shaper makes for the character in its word (a medial letter shows its medial variants; the default glyph comes first and the current glyph is highlighted); a variant no supported feature draws there stays enabled as a replacement glyph (`text.setGlyphAlternate`, including positional alternates), and its tooltip says it may not join its neighbors; the default glyph takes the character's alternate features off again. Runs that differ only in their OpenType features are shaped as one piece of text, each run's features over its own characters, so the letters of an Arabic word keep their joining forms. Show › Entire Font also lists the glyphs no character maps, with the font's name for them (or `gid N`) and the feature that gives them. It applies the selected letter's contextual alternates the same way, and applies a glyph no feature reaches whose name does not belong to another letter as a glyph choice; other glyphs are dimmed with the reason. An Arabic presentation form picked there inserts its base letter. These rules are VectorCraft's own. Tests: `tests::glyph_alternates` in the text crate (a fixture font; Kufi Murabba PIIIX when it is installed), `panels::glyphs::tests` (including positional glyph choices, unlisted glyph name ownership, apply and Undo), `tests::textedit::feature_values_are_set_replaced_and_saved`.
With a Type tool and exactly one character selected, the canvas shows that character's alternate glyphs in a row beside it, and a click on one replaces the character's glyph, as [Replace characters with alternate glyphs](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/replace-characters-with-alternate-glyphs.html) describes ("Replace a character with on-canvas alternate glyphs"). The row shows at most five alternates, and an arrow at its end opens the Glyphs panel on Alternates for Current Selection when the character has more, as the [reference manual](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=479) describes. A click runs the command the panel's double-click runs, as one undo step, so a letter of an Arabic word keeps the word joined. These rules are VectorCraft's own: the row leaves out the glyph the character is drawn with and puts the default glyph first for a character drawn with an alternate; it stands under a character of horizontal type and on the right of a character of vertical type, or on the other side when the canvas ends there or the Contextual Task Bar is there; Preferences › Type › Show Character Alternates (`showCharacterAlternates`, on by default) turns it off. Tests: `canvas::alternates_bar::tests`, `tests::prefs::show_character_alternates_preference_is_on_by_default_and_saved`.
The OpenType panel's Stylistic Sets menu offers `ss01`–`ss20` sets present in the selected text's font, using the font's custom labels when available and numbered labels otherwise. Sets can be combined and deselected individually. With mixed fonts, the menu shows the first selected character's font's sets and applies the feature tag to all selected text; a font without that set draws unchanged. The mixed-font rule is a VectorCraft design choice. Behavior reference: [Add stylistic sets to selected text](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/add-stylistic-sets-to-selected-text.html) and the [OpenType specification](https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt).
With Show East Asian Options on, the OpenType panel menu has H or V Style and Roman Italics, as [Format East Asian characters](https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html) describes. H or V Style sets the feature tag `hkna`, which draws kana with the forms the font makes for horizontal type, and with `vkna` for vertical type in vertical type; Roman Italics sets `ital`, the font's italic forms of half-width alphanumerics ([OpenType feature list](https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist)). Each is checked when every selected character has it and turns it on or off for all of them in one undo step; character styles carry both in OpenType Features. Tests: `panels::opentype::tests::kana_style_and_roman_italics_turn_on_and_off`, `features::tests::kana_style_and_roman_italics_are_kept_and_shaped`.
`text.setStyle {stroke, strokeWidth}` sets the character stroke's color and weight of the selected type or of a range of its characters (the weight in document points, as `stroke.set` sets it), in the same undo step as the command's other changes. Tests: `tests::textedit::set_style_sets_the_character_stroke`.
- **Paragraph alignment:** the shared Paragraph/Properties alignment row leaves every button unselected when the paragraphs it acts on differ. Auto resolves per paragraph; choosing an alignment uses the existing command. Headless paragraph_mixed_alignment_* regressions exercise mixed → Center → Undo, caret/uniform states, Unicode range boundaries, Auto/direction, split runs and grouped text. These regressions and full integration CI pass. Original captures confirm mixed → Center → Undo in the existing alignment-button layout. The [public Paragraph panel guide](https://helpx.adobe.com/illustrator/desktop/design-with-text/edit-format-text/paragraph-panel-overview.html) lists the seven controls, but does not specify mixed-state rendering. Other paragraph fields remain outside this change; scores and hours unchanged.
For Auto Size area type in columns, the bisection for the frame's height runs on the lines of the one-column layout, and its result is checked with at most two layouts of the columns. When the text wraps around objects or does not fit the one-column layout, or when the check fails, the columns are laid out at every step of the bisection, as before. Typing at the start of a story of 50,000 characters in 2 columns took 1,670 ms a keystroke and now takes 292 ms (release build, `auto_height_in_columns_typing_timing`).
+1
View File
@@ -34,6 +34,7 @@ against Illustrator's public documentation; **estimated** unless noted.
| Preserve font sizes while scaling a group | missing | Separate enhancement; scaling still scales text with the other artwork. |
| OpenType panel, Glyphs panel, alternates | done | Highlight Alternate Glyphs preference (#394, off by default) paints pink behind OpenType substitutions on screen when on (required shaping such as Arabic joining forms and the lam-alef ligature, including a lam-alef older fonts file under `liga`, is not highlighted; an optional feature that changes the ligature is); stylistic sets ss01–ss20, stylistic and titling alternates, proportional and lining figures, superscript and subscript are character-style features (`text.setStyle {features}`, #1607); the OpenType panel's Position menu sets superscript, subscript, numerator or denominator glyphs (`sups`, `subs`, `numr`, `dnom`). The OpenType panel's Stylistic Sets menu lists the selected font's `ss01`–`ss20` features, using a font-supplied name where available and `Set N` otherwise; several sets can be active, and selecting an active one removes it. For a mixed-font selection it uses the first selected character's font, a VectorCraft design choice ([public help](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/add-stylistic-sets-to-selected-text.html), [OpenType feature specification](https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt)). The Glyphs panel highlights the character selected with the Type tool (a range's first character, else the one before the caret) and scrolls it into view as the selection moves (#4908; `panels::glyphs` tests); its Show menu lists Unicode ranges and Alternates for Current Selection, the selected character's alternate glyphs from the font's `GSUB` table. A double-click applies the OpenType feature that draws a variant to that character alone, or uses a glyph choice when no supported feature draws it; see the Glyphs panel row below for Entire Font and the joining limits. The glyph-cell pop-up of alternates is not there yet |
| Glyphs panel: alternates as OpenType feature values, unencoded glyphs | done | #5514, as [Replace characters with alternate glyphs](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/replace-characters-with-alternate-glyphs.html) describes (Show › Alternates For Current Selection; replace the selected character by double-clicking the glyph). A character-style feature takes a value (`"salt=2"`, the font's alternate number; `ss01`–`ss20`, `swsh`, `titl` and `aalt` too) in `features` and `featureChanges`, in SVG `font-feature-settings` (`"salt" 2`) and in native files as the plain string. Show › Entire Font applies an unencoded glyph the same way when it is an alternate of the selected character in its word, applies one no feature reaches (`A.salt` in a font with no `salt`) to the selected character as a glyph choice (it may not join), and dims the others with the reason in the tooltip (e.g. `yehfarsi.fina.alt2 belongs to ی (U+06CC) at the end of a word; your selection is ي (U+064A)`); an Arabic presentation form picked there inserts its letter so the word joins. Runs that differ only in their features shape as one piece of text, each run's features over its own characters, so a variant on one letter of an Arabic word keeps its neighbours' initial, medial and final forms and the letters still touch. The panel lists the alternates of the glyph the shaper makes for the selected character in its word (a medial letter shows medial variants), and a double-click applies the OpenType feature that draws the variant (`salt=N` or `ssNN`) to that character alone, in one undo step (`text.setRangeStyle`); a variant no feature reaches falls back to a replacement glyph (`text.setGlyphAlternate`), which its tooltip says may not join. Show › Entire Font also lists the glyphs no character maps, with their name or `gid N` and the feature that gives them. The text crate reads each face's `GSUB` once (alternate sets, single substitutions, the feature that reaches a glyph). Not done: alternates reached through contextual or ligature lookups, and features of the font that the style has no tag for (`cv01`–`cv99`, `hist`). Evidence: `tests::glyph_alternates` in the text crate (a fixture font with a medial teh at `salt=1` to `3`, the neighbours' forms, no gap; Kufi Murabba PIIIX when it is installed), `features::tests::feature_values_are_parsed_validated_and_shaped`, `tests::textedit::feature_values_are_set_replaced_and_saved`, the `panels::glyphs` tests. |
| OpenType panel menu: H or V Style, Roman Italics | done | With Show East Asian Options, as [Format East Asian characters](https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html) describes: H or V Style is the character feature `hkna` (kana in the font's horizontal forms, shaped as `vkna` in vertical type) and Roman Italics is `ital` (the font's italic half-width alphanumerics), set with `text.setStyle` / `text.setRangeStyle {features, featureChanges}`, on or off only, and in Character Style Options › OpenType Features ([OpenType feature list](https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist)). |
| Font menu: samples, live preview, filters, favourites, recent families; font matching by any name; Find Font | done | #3515: recently applied families appear first, once each; missing families are omitted and the existing Number of Recent Fonts setting applies; #339; script filter: Japanese, Latin, Thai; the font scan on Linux also reads the folders fontconfig's configuration lists, such as TeX fonts under `/usr/share/texmf/fonts` (#1548, fixes #1529; not verified on Linux); Select Text by Font takes a scope: the document, chosen artboards or chosen layers; Find Font's Find In offers Document, Artboard (the active one) and Layers (the selected ones, else the current one) (#5529, a VectorCraft addition); Replace With Font lists family and style rows, one click setting both, with a search over them; its list scrolls on its own, apart from the document's font list (#4972); wherever the font menu opens, its filters keep the same four rows, and it opens at least wide enough for them and for a family name up to 220 points wide with its sample (up to 60% of the window), each sample filling its row's height (a VectorCraft layout); a filter chosen in the font menu of the Character panel, the Control bar or the Properties panel is on in the others, and the filters are cleared when the app quits ([Font browser overview](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/font-options-overview.html)); the font menus of the Glyphs panel and of the dialogs that pick a font share the same filters (a VectorCraft choice). |
| Missing glyphs set in an installed font made for their script (Thai, Lao, Khmer, Myanmar first; then any font that has them) | done | Thai: Leelawadee UI, Tahoma, Thonburi, Sukhumvit Set, Noto Sans Thai, TLWG |
| Full font-name matching (OpenType name ID 4) | done | #1258: loaded/cataloged faces and Missing Fonts searches; localized names and variable default faces; Windows font-service QA pending |