With #7378's rows in place, Keyboard Shortcuts still showed 21 names on
two rows each, in 10 languages. A catalog translated two English names
the same way: the Scale and Zoom tools, the Column and Bar Graph tools
and their stacked forms, the Pucker and Wrinkle tools, the Shear and
Warp tools, Edit › Copy and Duplicate, and Pathfinder Unite and Merge.
These rows now read differently in bs, fi, fr, ru, sv, uk, vi, zh-hans
and zh-hant. The French Shear rows (Shear, Shear Tool, Shear… and
Shear:) all use the new word, and the Bulgarian Revolve (Classic)… row
uses the same words as Revolve and Revolve….
The Catalan rows for Saved View, Saved Selection and Open Recent File 2
and above had numbers out of order ("Saved View 10" read "Vista desada
2", and "Open Recent File 2" read "Obre el fitxer recent 12"). Each row
now has its own number, and this removes the last 8 shared names.
The ru and uk Line Graph Tool rows read as a bar graph and now read as
a line graph. The uk Stacked Column Graph Tool and Perspective
Selection Tool rows use «» quotes like the other tool rows.
Tests: Keyboard Shortcuts shows no two rows with the same name in any
language, and a plain row whose English ends with a number keeps that
number in every catalog.
* PDF import: outlined Indic glyphs keep their own stroke and transparency (#5235)
Follow-up to #6906, for two review findings on how a line kept as
outlines is joined into paths:
- Glyphs were joined when their stroke widths matched; dash, cap, join
and miter limit were ignored, so a dashed glyph took the stroke of the
solid one before it. They join only when the whole stroke matches.
- Translucent glyphs were joined into one fill, where overlapping marks
paint once instead of compositing as the file draws them. Only opaque
glyphs join.
Also records the fix in the PDF row of docs/target-app-parity.md and in
docs/roadmap.md, as AGENTS.md asks.
Tests: outlined_glyphs_stroked_differently_stay_apart and
outlined_translucent_glyphs_stay_apart (both fail without the change).
* PDF import: outlined Indic glyphs under a soft mask stay apart; check kept geometry (#5235)
Review follow-ups on #6957 and #6906:
- Glyphs kept as outlines under a soft mask were joined into one path,
so the mask was applied once to all of them where the file applies it
to each glyph. They now join only when no soft mask is active.
- The fallback tests counted outline nodes only. A new test compares the
kept outlines (element count and bounding box) with the same file
opened as outlines, so a dropped or moved glyph fails it.
Tests: outlined_glyphs_under_a_soft_mask_stay_apart (fails without the
change) and kept_glyphs_are_where_the_file_draws_them.
* PDF import: mask outlined Indic glyphs one by one under a soft mask (#5235)
Review follow-up on #6957. Keeping glyphs out of one shared path was not
enough: each path still went into the soft mask's queue and
flush_masked wrapped them all in one masked group, so a mask that is not
constant was applied once to every glyph, where overlapping glyphs
composite one by one in the file.
With a soft mask active the queued art is now drained before the first
glyph and after each one, so every glyph gets a mask of its own.
Test: outlined_glyphs_under_a_varying_soft_mask_are_masked_one_by_one
checks that each outlined glyph carries its own mask (0 of 3 without
the change).
* #6957: clarify soft-mask exception in glyph grouping docs
---------
Co-authored-by: ruchirguitar <info@jeevantirth.org>
The refusals of the SVG filter check (unreadable XML, a missing or too
long id, elements, event attributes and images a filter does not take,
and the limits on primitives, numOctaves, order, radius, stdDeviation,
kernelUnitLength, image pixels, nesting and size) had no @msg rows and
showed in English. Every complete-message catalog now has a row for each
of the 16 templates and for the three attribute names {what} carries.
The scan reads svg_filter.rs, map_err closures included, as the
untranslated report does since #7336.
Turkish showed Effect › 3D and Materials › Revolve… and Rotate… with
the same label. Revolve is now "Eksen Etrafında Döndür" in every row
that showed it as "Döndür", and the Classic pair follows it; Rotate
keeps "Döndür", which Object › Transform › Rotate… shares.
A new test walks every menu in every language and fails when two items
side by side show the same label. It found 27 other pairs, all fixed:
Effect › Warp and Distort (el, ko, fr, bg, sv, pt-br), Window ›
Attributes and Properties (ko, vi, zh-hans), Pathfinder Trim and Crop
(vi, bg, tr, ca) and Add and Merge (ru, tr), Warp Bulge and Inflate
(vi, bg), Arc and Arch and Tweak and Twist (pt-br), Shell and Arc
Lower and Upper (zh-hans, zh-hant), Hair Space and Thin Space (bs, bg,
pt-br), and Revolve and Rotate (bg).
A second test fails when a menu item shows a command id: the @id rows
for file.close and pathfinder.add in bg, da, nl and id held an id, so
File › Close and Effect › Pathfinder › Add showed it. They now hold each
catalog's Close and Unite translations.
Adds 1,813 @msg rows to zh-hans.tsv, one for each status and error message the
untranslated report listed for Simplified Chinese, except the 38 that open
pull requests translate in their own rows: the composite font, justification
order and Blob Brush connect end errors. The catalog test rejects a second row
for the same key, so leaving them out keeps the catalog consistent when those
pull requests merge.
The report now lists 40 zh-hans messages: those 38, and two that no catalog
has a row for yet. Its menu, tl!, undo label and swatch name sections are
unchanged. Placeholders, backticked names, quoted values and JavaScript
identifiers stay as in the source.
Docs: docs/localization-parity.md (zh-hans row), docs/target-app-parity.md.
- After a fill drag, the Live Paint Bucket stores the release point, so the
cursor swatch preview shows there instead of where the pointer last moved
before the press.
- Arrow nudges and Alt+arrow type spacing read Shift and Alt from the key
press, as the tool keys do, so a modifier released within the same frame
still makes a 10 pt nudge, a copy, or a spacing step.
- tool.setOption accepts cursorSwatchPreview for the Live Paint Bucket and
refuses a value that is not true or false.
The Polish catalog lacked a row for 1,854 of the status and error
messages that the untranslated report finds in the sources, so the
status bar showed those messages in English.
- pl.tsv gains 1,808 `@msg` rows: the errors of commands and their
parameter checks, scripts, file import and export, printing and
plug-ins. The translations are VectorCraft's own, written from the
English meaning with the catalog's conventions and its existing
feature names. Placeholders, parameter names, command ids and
literal values stay as the English writes them.
- 44 of the others get their Polish rows from open #7211, #7214,
#7116, #7330 and #1931, so this change leaves them out. 2 are
messages that no catalog has a row for yet. Menu strings, `tl!`
literals, undo labels and swatch names are unchanged.
- Two of the messages have two placeholders in a row. The catalog does
not load such a row, so those two are still shown in English.
- The Polish row of docs/localization-parity.md gives the catalog's
current counts.
Docs: docs/target-app-parity.md, docs/localization-parity.md.
craft_dxf::parse_recovering reads the tags (ASCII and binary, any code
page), model::Document::read the sections, tables, blocks, layouts and
entity followers, and Entity::read each entity. The pair parser, the
records, the header, layer, block and layout readers and the colour
palette are gone; what stays is the mapping onto VectorCraft art.
Binary DXF files now open instead of being refused. A damaged binary
file says so.
In a document in picas, a bare number typed in Text Wrap Options › Offset
follows Preferences › Units › Numbers Without Units Are Points, as every
length field drawn by the shared unit field does: points while it is on
(the default), picas while it is off. A test covers both settings, and
the evidence line in docs/target-app-parity.md states the rule.
A straight compound path with Twist was read live up to 180° whatever
guides it held, and the live Twist was measured from bounds that take in
the guide members. A straight compound path with Twist whose guide
members reach past its other members now opens as its drawn look
instead of live, and so does a compound path made only of guides.
Compound paths whose guides lie inside their other members, a Twist of
0°, and single paths keep opening live.
The `.ai` writer keeps a graphic-style link only where the reader reads
the style live, so such an object is now written without the link, with
the existing style-link warning.
A CSV file that holds NUL bytes and has no byte-order mark was refused.
It is now read as UTF-16 when at least half of its two-byte units hold
a NUL byte, in the byte order that reads a line break. A file with fewer
NUL bytes (UTF-8 or Windows-1252 text with stray NUL bytes, or UTF-16
text made mostly of characters above U+00FF) is still refused, and so is
a file that reads a line break in both byte orders, has an odd length,
isn't valid UTF-16 in that order or holds a NUL character. Refused files
get the same message as before.