feat(tools): list reproduced values per key and dump whole chunks

compare.py writes values.tsv and values-all.tsv with every key's values and
how many are reproduced, so a change can be checked for keys that lose
reproduced values. indd dump --full prints every byte of each chunk.
root_values.py reads the current inventory layout and keeps to the pairs
its generated files were made from.
This commit is contained in:
aiongg committed 2026-10-07 09:39:02 +00:00
1 parent 5543af5867
commit c9528b10ff
5 files changed
+52 -13

No files matched your search

+6 -2
View File
@@ -33,11 +33,15 @@ character root styles, attributes in the text attribute table
(`attributes.md`) are left out of the file, and any attribute the INDD
supplies is written from the INDD.
The corpus has 240 INDD files with an IDML, which are 88 distinct IDML
The files were generated from the 240 INDD files with an IDML that the
corpus had then (`SOURCE` in the tool), which are 88 distinct IDML
files. Their DOM versions are 7 (1 file), 12 (7 files) and 15 to 20 (80
files). Values that first appear after DOM 7 are written only for
documents of that InDesign version or later (`MinimumVersion` in the
file).
file). The corpus has grown since; the later pairs are evidence for the
values of other elements (below). Regenerating these files from all pairs
would drop some values that the larger corpus shows to vary between
documents, such as table style stroke weights.
| Root style | Values | Same in | Written for version |
|---|---|---|---|
+5
View File
@@ -155,6 +155,11 @@ number of documents affected and the number of values wrong and missing.
`compare.py` prints the top 30 keys by documents affected (`--gaps N`) and
the top 15 by values.
`values.tsv` and `values-all.tsv` list every key with its number of
values and how many are reproduced, wrong and missing. Comparing them
between two runs shows whether a change reproduces fewer values of any
key.
## Audit: what the converter does not read
`indd audit <file>` needs no reference IDML. It converts the file while