Trustworthy coverage 98.46 % -> 98.96 % (28,546,513 of 28,847,647
values), all pairs 97.28 % -> 97.77 %, documents at 99 % or more 193 ->
901 of 1,251, extra values 93,502 -> 92,838, story text unchanged
(37,129 of 37,150 exact); no pair loses a value, 0 conversion and 0
paired schema failures.
Trustworthy coverage 97.91 % -> 98.46 % (28,404,742 of 28,847,647
values), all pairs 96.64 % -> 97.28 %, documents at 99 % or more
186 -> 193 of 1,251, story text 37,112 -> 37,129 of 37,150 exact,
extra values 93,520 -> 93,502. The form field commit gains about
133,000 values, not 150,000 as its message says.
The IDML schema rejects a CheckBox, RadioButton, TextBox, ComboBox or
SignatureField inside a CharacterStyleRange, but InDesign writes
anchored form fields there, and the reference IDML of every such pair
has these errors. compare.py accepts them in a paired output when the
reference has the same errors, as it does for endnote markup, and lists
unpaired files with them.
With it, 0 paired outputs fail validation (3 without it); one unpaired
file fails for anchored form fields only.
Every composite font is written, in UID order. Chunk 0xCB02 is read as
four flagged strings, a u32, a u16 and the entry list, which ends the
chunk; the count search remains for other layouts (it took a wrong
position in one 12.1 document). Entries get RelativeSize and
BaselineShift (the first two f64), HorizontalScale and VerticalScale,
Locked from the u16 after the numbers (204 false), and no
CustomCharacters on the first entry of each font, the base font (1,434
of 1,434). Text attribute 0x1BFA is ParagraphBorderGapColor, 0 being
Swatch/None. Evidence in fonts.md and attributes.md.
compare.py --exclude own/, trustworthy pairs: 97.84 % -> 97.91 %
(+17,964 values, 0 lost on any key); CompositeFontEntry 7,306 -> 8,589
of 8,589 elements (AppliedFont 8,553: one document whose IDML names its
families in English), CompositeFont 1,434 of 1,434, TextRange
PSR.P.ParagraphBorderGapColor 0 -> 2,745 of 2,745. Extras 93,569 ->
93,520: the 49 CustomCharacters extras are gone.
Numbers from readme_numbers.py (compare.py --all --exclude own/ with
schema validation): trustworthy coverage 98.07 % -> 98.16 %, all pairs
96.21 % -> 96.30 %; failures and schema failures unchanged.
List ruby settings, kenten, warichu, custom mojikumi spacing, layout,
named and frame grids and primary text frames as converted; the ruby
and kenten settings that every sample has at their default value are
not provable.
Numbers from readme_numbers.py (compare.py --all --exclude own/ with
schema validation): 803 pairs, 606 trustworthy; trustworthy coverage
98.07 % (12,049,823 of 12,287,557 values), all pairs 96.21 %; 0
conversion failures, 22 rejected files; 0 schema failures on pairs.
The converted areas now include EPS text, text on a path, placed
InDesign pages, outer and inner glow and the 3.0 composite font, and
the corpus paragraph names the open-corpus fetch tool.
readme_numbers.py with schema validation: trustworthy value coverage
96.85% -> 98.03%, all pairs 94.89% -> 96.13%; failures and story text
unchanged. The tables now list the index, the preferences read from the
INDD, the further text attributes and font names; index topics and
print settings leave the "not started" list.
compare.py now also writes target/compare/summary.json: the options of
the run (--all, schema validation, --exclude, --limit, --file), the
files, conversion failures (error messages) and schema validation
failures of the paired and the other files, and the values, reproduced
values and story counts of the trustworthy and of all pairs.
tools/readme_numbers.py rewrites the "Current numbers" table of the
README, now between `<!-- numbers:start -->` and `<!-- numbers:end -->`,
from that summary. It refuses a summary from a run that included own/,
covered part of the corpus, or ran without --all or schema validation.
With --schemas and --jing it first builds the converter and runs
`compare.py --all --exclude own/` with validation, so one command
refreshes the README; --check only reports whether it is current.
The numbers in the README are unchanged.
tools/check_wasm.sh builds the library for wasm32-unknown-unknown,
then builds a probe module (a cdylib generated under the target
directory that exports a function calling `indd::convert`) and checks
with Node.js that the module imports nothing: a conversion needs no
file system, clock or other host function. It then converts the
fetched fixtures, or the files given, in the probe module and compares
each package byte for byte with the native `indd convert` output.
No library change was needed: only `convert_file` and `read_header`
use `std::fs`, and `convert` does not call them. The 5 fixtures and 80
corpus files give the same packages in WebAssembly as natively. The
check takes about 10 s; it is documented in CLAUDE.md, CONTRIBUTING.md,
README.md and ARCHITECTURE.md. There is no hosted CI.
Idea from storytold/designcraft#98.
The README listed implemented features as not started, an old attribute
count, corpus size and numbers, and no library use. The numbers are from
compare.py --all with schema validation at this revision.
Remove the sample documents, PDF and licence copies from tests/fixtures/.
tests/fixtures/manifest.json lists each file's download URL (pinned to a
commit for GitHub sources), size and SHA-256. tools/fetch_fixtures.py
downloads them into the git-ignored tests/fixtures/files/ and verifies
them. The fixture tests read from there and skip when it is absent.
List what converts by area and what does not, with the reason; how
fidelity is measured; the current numbers from compare.py --all with
schema validation; supported versions and byte orders; CLI usage.
Decode the signature, byte-order flag and InDesign version from the INDD
header, add an `indd info` command, and add smoke tests on four
open-licensed sample files plus an optional local corpus test.
Document the clean-room method and the header layout with the evidence
for each field.