fix(anatomy): V1-2.2 review LOWs, owner export procedure, evidence
Composer check counts url( openings apart from the reader; tab and newline character references tested; RUST.md sizes and counts of the final build; owner procedure for Illustrator, Figma and Affinity.
This commit is contained in:
1 parent
a678faaa23
commit
f1ef6a466f
9 files changed
+300
-55
No files matched your search
+6
-6
@@ -26,9 +26,9 @@ sudo); inkscape.org, where the AppImage lives, answered 504 and timed out that d
|
||||
## Editor exports, supplied by the owner (`owner/`)
|
||||
|
||||
Illustrator, Figma and Affinity are not available on the development machine (Inkscape is
|
||||
covered above by a real 1.4.3 export); the owner exports a small drawing from each and puts
|
||||
the files in `owner/`, named `<tool>-<version>-<what>.svg` (for example
|
||||
`illustrator-29.3-export-as.svg`, `figma-125.8-export.svg`). The suite reads every file
|
||||
there: each must be refused (with a closed reason) or cleaned into a drawing that reads back
|
||||
with no removal, and a file whose name contains `-active-` must be refused for active content.
|
||||
Until files arrive, that test runs on an empty folder and the report of V1-2.2 says so.
|
||||
covered above by a real 1.4.3 export). The owner opens `inkscape-source.svg` in each tool,
|
||||
exports it unchanged and puts the files in `owner/`, named `<tool>-<version>-<date>-<variant>.svg`;
|
||||
`owner/README.md` gives the exact steps. The suite reads every file there: each must be refused
|
||||
(with a closed reason) or cleaned into a stored form that reads back with no removal, and a file
|
||||
whose name contains `-active-` must be refused for active content. Until files arrive, that test
|
||||
runs on an empty folder and A6 stays open.
|
||||
+45
-34
@@ -2,46 +2,57 @@ Owner-supplied editor exports land here (see ../README.md).
|
||||
|
||||
# What to export (A6, contract §9.2 and §15)
|
||||
|
||||
One small drawing per tool, made in that tool, never retouched by hand afterwards. Same
|
||||
reference content as `../inkscape-source.svg`, so the results compare:
|
||||
Every tool exports the same drawing, so the results compare: open
|
||||
`../inkscape-source.svg` (200 × 150 px: a dashed curved outline filled with a
|
||||
two-stop gradient, an ellipse, a rounded rectangle with `fill-opacity` 0.5, the
|
||||
group clipped by a rectangle, the live text « Garrot ») in the tool, change
|
||||
nothing, and export it. Never retouch an exported file by hand.
|
||||
|
||||
- an outline with a curve, filled with a two-stop linear gradient, a 2 px dashed stroke;
|
||||
- an ellipse with a flat colour;
|
||||
- a rounded rectangle at 50 % opacity;
|
||||
- the whole group clipped by a rectangle (Illustrator: clipping mask; Figma: a frame with
|
||||
« Clip content »);
|
||||
- the word « Garrot » as live text.
|
||||
Name each file `<tool>-<version>-<date>-<variant>.svg`: the version from the
|
||||
tool's « About » box (Figma in the browser shows none: write `web`), the date
|
||||
as `2026-10-30`. Example: `illustrator-29.3-2026-10-30-presentation.svg`.
|
||||
|
||||
Artboard or frame 200 × 150 px. Note the exact version (Illustrator: Aide › À propos
|
||||
d'Illustrator; Figma: menu › Aide › À propos de Figma, or the desktop app's version).
|
||||
The menu labels below are the English ones; the French interface words them
|
||||
differently, and I could not check them here.
|
||||
|
||||
## Illustrator
|
||||
## Illustrator (Fichier › Ouvrir… `inkscape-source.svg`)
|
||||
|
||||
1. Fichier › Exporter › Exporter sous… › format SVG (`svg`), « Utiliser les plans de travail »
|
||||
ticked.
|
||||
2. Options SVG, two files:
|
||||
- `illustrator-<version>-export-as.svg`: Style « Attributs de présentation », Police
|
||||
« Vectoriser », Images « Incorporer », ID d'objet « Noms de calques », Décimales 2, Minifier
|
||||
off, Responsive on;
|
||||
- `illustrator-<version>-internal-css.svg`: the same with Style « CSS interne » (the export
|
||||
most users keep by default; expected cleanable, its `<style>` named as removed).
|
||||
3. If a third is easy: Fichier › Enregistrer sous… › SVG (`illustrator-<version>-save-as.svg`),
|
||||
the older dialog, default settings.
|
||||
1. File › Export › Export As… › format SVG, « Use Artboards » ticked.
|
||||
2. SVG Options, two exports of the same drawing:
|
||||
- `…-presentation.svg`: Styling « Presentation Attributes », Font « SVG »
|
||||
(text kept as text), Images « Embed », Object IDs « Layer Names »,
|
||||
Decimal 2, Minify off, Responsive on;
|
||||
- `…-internal-css.svg`: the same with Styling « Internal CSS » and Font
|
||||
« Convert to Outlines » (the export most users keep).
|
||||
3. Optional: File › Save As… › SVG with the dialog's defaults
|
||||
(`…-save-as.svg`). This older path may keep Illustrator data that the
|
||||
core refuses as active content; a refusal is a valid result, tell me.
|
||||
|
||||
## Figma
|
||||
## Figma (import `inkscape-source.svg` into a file, or drag it onto the canvas)
|
||||
|
||||
1. Select the frame, right panel › Exporter › « + » › format SVG.
|
||||
2. Options, two files:
|
||||
- `figma-<version>-export.svg`: defaults (« Contours du texte » ticked, « Inclure
|
||||
l'attribut id » unticked);
|
||||
- `figma-<version>-ids.svg`: « Inclure l'attribut id » ticked (the layer names become ids).
|
||||
3. Exporter.
|
||||
1. Select the imported frame, right panel › Export › « + » › SVG.
|
||||
2. Two exports:
|
||||
- `…-default.svg`: the defaults;
|
||||
- `…-ids.svg`: « Include "id" attribute » ticked, « Outline text » unticked
|
||||
(text kept as text).
|
||||
|
||||
## Affinity (Designer 2 or Affinity, if you use it; otherwise say so and A6 drops it)
|
||||
|
||||
File › Open `inkscape-source.svg`, then File › Export › SVG, preset « SVG (for
|
||||
web) » (`…-web.svg`); if offered, a second with « SVG (digital – high quality) »
|
||||
(`…-hq.svg`).
|
||||
|
||||
## Then
|
||||
|
||||
Copy the files here, unchanged, and tell Claude. The suite
|
||||
`cargo test -p faunosteo-core --test svg_clean the_owner_editor_exports` reads every `.svg` in
|
||||
this folder: each must be refused with a closed reason or cleaned into a stored form that reads
|
||||
back with no removal. A file whose name contains `-active-` must be refused for active content
|
||||
(useful if you want to try an export with a linked image or an animation). Nothing is uploaded
|
||||
anywhere: these are test fixtures, committed with the tool and version in their names.
|
||||
Copy the files here unchanged, then run, from the repository root:
|
||||
|
||||
cargo test -p faunosteo-core --test svg_clean the_owner_editor_exports -- --nocapture
|
||||
|
||||
It prints one line per file: the outcome (clean, cleanable or rejected), the
|
||||
reason and the removed names. Send me that output with the files. A green run
|
||||
alone proves only that every file was cleaned into a readable stored form or
|
||||
refused with a closed reason; the printed lines say which, and I turn them into
|
||||
fixed expectations in the suite. A file whose name contains `-active-` must be
|
||||
refused for active content (useful if you also export one with a linked image
|
||||
or an animation). Nothing is uploaded anywhere: these are test fixtures,
|
||||
committed with the tool, version and date in their names.
|
||||
@@ -365,6 +365,10 @@ fn every_url_spelling_but_the_strict_one_is_refused() {
|
||||
"url(#a rgb(1,2,3))",
|
||||
"url(#/a)",
|
||||
"url(#a",
|
||||
"url(\'#	a\')",
|
||||
"url(\'#a	\')",
|
||||
"url(\'#a \')",
|
||||
"url(" #a")",
|
||||
] {
|
||||
let cleaning = clean_svg(svg(value).as_bytes());
|
||||
assert_eq!(
|
||||
|
||||
Reference in new issue
Block a user