mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 23:01:02 +00:00
A legacy .ai stores layer, object, color, gradient, pattern, style and swatch names as bytes, without saying which code page they are in. Names that aren't UTF-8 are still read as Windows-1252 by default, and now each gives a warning naming it and the encoding it was read in (the first three, then a count). document.open takes legacyNameEncoding (windows-1252, macintosh, windows-949 or euc-kr, shift_jis, gbk, big5) and vectorcraft-cli convert takes --legacy-name-encoding, to read those names in another code page. Definitions and the fills that name them are read alike, so they still match. Type, comments, dictionary keys and PDF layer names are read as before. encoding_rs becomes a direct dependency of vectorcraft-eps. Part of #2831