mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
Scripts: XMP generic-language updates and packets that serialize too deep
- setLocalizedText reads its generic language argument. With no item in the specific language and exactly one item in the generic language or a variant of it, that item changes, as the XMP Toolkit SDK's SetLocalizedText does (XMPCore/source/XMPMeta-GetSet.cpp); with several, the specific language is added. - A packet read from rdf:RDF alone could hold a value nested 64 elements deep that serialize() then wrote under x:xmpmeta, 65 deep, so the written packet did not read back. A value is now measured as deep as serialize() writes it, and one past 64 elements throws when the packet is read. Tests: localized_text_updates_a_single_generic_language_item and deeply_nested_values_read_back_after_serializing in crates/js/src/xmp_tests.rs. Docs: docs/mcp.md.
This commit is contained in:
1 parent
7fb823a462
commit
1a33ff7326
4 files changed
+77
-17
No files matched your search
+2
-1
@@ -3081,7 +3081,8 @@ rules for these objects:
|
||||
`Script file could not be written` and the `File` keeps its changes. `getXMP`, `getPacketInfo`, `getFileInfo` and `canPutXMP` are available. An `XMPFile` is open only in the
|
||||
run that opened it.
|
||||
- A packet over 8 MiB, one that is not well-formed XML, one with a document type declaration or an undefined entity,
|
||||
and one nested more than 64 elements deep throws. Members of the help page that are not built yet (iterators,
|
||||
and one nested more than 64 elements deep throws; a value is counted as deep as `serialize()` would write it,
|
||||
under `x:xmpmeta`, `rdf:RDF` and `rdf:Description`. Members of the help page that are not built yet (iterators,
|
||||
structure fields, qualifiers, aliases, sorting, byte-array packets and `XMPFile.getFormatInfo`) throw
|
||||
`… is not available yet`, and so does a flag, format or path form that is not handled yet.
|
||||
|
||||
|
||||
Reference in new issue
Block a user