.ai import: a text variable bound to its story binds the type

The variable library can name a text object by its story's XML id
(AI11_StoryUID in the text object's /StoryDictionary) rather than the
object's own AI10_ArtUID. The reader only remembered AI10_ArtUID, so
such a binding found no object: the type came in unbound and the import
noted the bindings as skipped. The story's id now names the slot of the
story's first frame, the same way the object's id names the object;
for a story also written on %_ lines, the plain copy's slot, which is
the one the reader keeps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
jmvergesandClaude Opus 5.5 committed 2026-12-01 00:36:03 +00:00
1 parent 38846fcdf3
commit 923f6bd7ee
4 files changed
+67 -2

No files matched your search

+1
View File
@@ -425,6 +425,7 @@ Stop opacity on translated artboards remains outside this regression coverage.
| Date | Change | Summary |
|---|---|---|
| 2026-11-30 | minor | `.ai` and EPS import: a text variable bound to a story binds its type. The variable library can name a text object by its story's XML id (`AI11_StoryUID` in the text object's `/StoryDictionary`) instead of the object's own `AI10_ArtUID`; the reader kept only the latter, so such a binding found no object and the import noted it as skipped. The story's id now names the slot of its first frame (the plain copy's, for a story also written on `%_` lines), as the object's id names the object; test `a_text_variable_bound_to_its_story_binds_the_type`. In 3 users' files (used locally, never committed) both text variables of each file bind and the note goes; in 2 of them the bound type is in an envelope, which now keeps its drawn art, as type in an envelope bound to a text variable already did. |
| 2026-11-30 | minor | `.ai` and EPS import: a word the page draws from two text objects in a row is their type. Where the text document makes the type of every text object that shows, a word of the page's type is the type of the made type holding its piece when that type spells it. The page can draw two text objects as one word: a word and a letter set apart from it (a swash "h" after "Spirit") come out of the page as one piece, "Spirith", that neither spells. It was counted as type with no text object, with the note "some of the page's type has no text object in the layers, so it is left out" (a loss, so `convert` wouldn't write over the file), though both text objects come in and draw it. Now a word left that is the last word of one text object holding the piece joined to the first word of another holding it that draws after it, along the first one's lines, is theirs (`joined_by_two` in `see_page_type`). Each part is a whole word of its text object, and the two the other way round don't make the word. Tests: `a_word_the_page_draws_from_two_text_objects_in_a_row_is_their_type`, `two_text_objects_the_other_way_round_arent_the_word_the_page_draws`. |
| 2026-11-27 | minor | `.ai` save: type in a spot ink, a global process colour or Registration keeps its swatch link and its tint. Its fill and stroke in the text document name (key 5 of the paint) an art style of one paint, `0 1 Xd`, whose paint is the colour as a path's fill writes it (`x`, `Xx`, `Xk`, `Xs`), the form `.ai` import reads since the change below; key 0 still holds the process values at the tint. Each style is read back before it is written and kept only when the reader gives the same swatch and tint, so such type no longer counts among the attributes of type left out; a link to a process swatch that isn't global still does. Test `ai_editing::tests::type_in_spot_and_global_colors_reads_back_linked_at_its_tint` |
| 2026-11-27 | minor | `.ai` and EPS import: type set in a spot ink or a global process colour keeps its ink. In the text document a character's fill or stroke is a colour (key 0: grey, RGB or CMYK) and the name of an art style (key 5). In users' files (used locally, never committed) that style is one paint (`/SimpleStyle`), always its fill's, for a stroke too; for a spot ink or a global process colour it is `c m y k (name) tint x`, `Xx` or `Xk`, and key 0 keeps only the ink's process values at that tint. Such type came in as that process colour, so it separated onto the process plates, and white type in a white ink onto none. It now takes the style's paint: the colour at its tint, linked to the document's swatch of that name, which the style's colour makes when the art doesn't (after the art's colours, before the header's custom colours). A style whose paint is a process colour or a gradient, one that also sets a stroke's colour or pattern (before or after the fill's) or another fill paint after it, one whose `Xd` doesn't turn on its fill alone, and a paint that names no style of the file, keep the colour of key 0 as before; type filled with a gradient still comes in black. Tests `type_set_in_a_spot_ink_takes_it_from_the_art_style_its_paint_names` in `crates/eps/src/import/tests_native.rs`, `a_run_painted_by_a_swatch_colours_art_style_takes_the_swatch` in `crates/eps/src/import/ate.rs` and `only_a_style_of_one_swatch_colour_holds_it_for_type` in `crates/eps/src/import/ai/style/tests.rs`. Scores and estimates unchanged. |