Commit Graph
20 Commits
Author SHA1 Message Date
aiongg 468b6389e1 docs: update the README numbers
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.
2026-10-10 10:11:37 +00:00
aiongg 071c0f6237 docs: update the README numbers
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.
2026-10-10 08:15:41 +00:00
aiongg e4777b2a3c fix: accept InDesign's markup of form fields anchored in text
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.
2026-10-10 08:15:41 +00:00
aiongg 56764eaf68 docs: update the README numbers 2026-10-10 06:14:40 +00:00
aiongg cbf12fbed2 feat: write user composite fonts and the paragraph border gap colour
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.
2026-10-10 05:47:59 +00:00
aiongg 93303bf3c0 docs: update the README numbers
Measured on the larger corpus (1,460 paired files, 1,251 trustworthy
pairs) with compare.py --all --exclude own/ and schema validation.
2026-10-10 03:51:18 +00:00
aiongg 9cf456d94f docs: update the README numbers 2026-10-09 20:03:16 +00:00
aiongg 34a9b7871f docs: update the README numbers and the converted areas
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.
2026-10-08 17:46:38 +00:00
aiongg b54d4580c5 docs: update the README numbers and the converted areas
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.
2026-10-08 15:17:53 +00:00
aiongg f38be0d160 docs: update the README numbers and the converted areas
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.
2026-10-08 08:43:21 +00:00
aiongg 020d0beb7a docs: state only what the samples show about byte order 2026-10-08 04:36:23 +00:00
aiongg e453d1e8e8 docs: simplify the supported versions table 2026-10-08 04:36:15 +00:00
aiongg 95e74255ba docs: update the README status, coverage tables and numbers 2026-10-08 04:29:31 +00:00
aiongg 4ce9073dfa chore: refresh the README numbers from compare.py's summary
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.
2026-10-08 04:18:22 +00:00
aiongg c010bedef4 chore: check the WebAssembly build of the library
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.
2026-10-08 04:18:22 +00:00
aiongg ae5a44db3a docs: add ARCHITECTURE.md and CONTRIBUTING.md; bring the README up to date
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.
2026-10-07 20:07:28 +00:00
aiongg 3bb20b527d chore: dual-license under MIT or Apache-2.0 2026-10-07 15:01:43 +00:00
aiongg bf72b93d23 test: download fixtures from pinned sources instead of committing them
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.
2026-10-07 05:47:17 +00:00
aiongg cacd61eb11 docs: describe the converter's current state in the README
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.
2026-10-07 03:55:33 +00:00
aiongg 8d156bfeba feat: read INDD header and set up clean-room project
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.
2026-10-06 15:22:17 +00:00