Commit Graph
6 Commits
Author SHA1 Message Date
aiongg 450fd1f5ac feat: decode the index, chapter, dictionary and EPUB preferences
- IndexHeaderSetting (chunk 0x1300E): its five attributes and the whole
  Properties/ListOfIndexHeaderGroup tree.
- IndexOptions (chunk 0x13010): title, title and level styles,
  separators and flags. Styles are matched by name among the styles
  outside groups. Without the chunk no Title is written: it follows the
  exporting application's language.
- ChapterNumberPreference (chunk 0x1A4C4): format, source, number.
- DictionaryPreference Composition: UseDocument with chunk 0x2806,
  Both without.
- EPubExportPreference (DOM 8 on): Version and Id from chunk 0x21A1A;
  without it the observed Id, TocStyleName $ID/, and Version Epub3
  from INDD version 18.1.

compare.py --exclude own/:
- trustworthy value coverage 97.15% -> 97.17% (+2,465 values); all
  pairs 95.19% -> 95.21% (+3,281)
- ListOfIndexHeaderGroup 489 of 489; IndexOptions Title 10 of 10 with
  the chunk; Composition wrong in 5 documents (Both with the chunk);
  TocStyleName with the chunk is not written (13)
- extra values unchanged; no key lost values; 0 failures
- compare.py --all with schemas: 0 schema failures on pairs; the files
  without a reference fail as before (22 conversions, 11 schemas)
2026-10-08 05:45:37 +00:00
aiongg c6e943e187 feat: decode the whole print settings chunks and booklet margins
Chunks 0xA4C and 0xAF2 are read to their end: device type, paper
offset range, colour output, screening, scaling, tiling and thumbnails,
graphics and font download, printer marks, bleed, slug, profile, ink
screens, flattener preset and the paper size selector. AllPrinterMarks
and PreserveColorNumbers are derived from them. Printer and PPD follow
the corrected rules (built-in empty printer, device-independent PPD
only for PostScript file output). Chunk 0xAF0 gives the four
PrintBookletOption margins. Booklets leave out the attributes their
element does not have.

compare.py --exclude own/ (trustworthy pairs):
- value coverage 96.85% -> 97.03% (+21,049 values; all pairs
  94.89% -> 95.07%, +28,090)
- PrintPreference and PrintBookletPrintPreference: every attribute
  reproduced in all 489 pairs except PreserveColorNumbers (2) and
  MarkType (1); PrintBookletOption margins 11 -> 0 documents wrong
- extra values unchanged; no key lost values; 0 failures
2026-10-08 05:13:12 +00:00
aiongg 8b0f46837b feat: write unnamed colours and gradients only when something refers to them
IDML writes a colour or gradient without a name only if a value in the
package refers to it, a gradient stop or tint uses the colour, or the
page item defaults name it in one of the two entry tables of chunk
0x6E07 (objects.md, colours; preferences.md). The graphic part is now
written last, from the references in the other parts; the second table
of chunk 0x6E07 is read.

compare.py, trustworthy pairs: extra values 155,956 -> 33,181 (unnamed
Color -114,734, Gradient -3,498, GradientStop -4,543). 463 values are
no longer reproduced: 10 unnamed colours and 22 unnamed gradients with
their stops that IDML writes though nothing refers to them (open, see
objects.md). Value coverage 92.46 % -> 92.45 %. No conversion or schema
failures; story text 18,509/18,610.

The previous commit (09e87fa), measured alone: extra values 635,511 ->
155,956, value coverage 92.41 % -> 92.46 %; 39 values lost (7 opacity
stops and 8 drop shadows IDML writes with values equal to the style,
5 StrokeWeight, 1 TextColumnFixedWidth).
2026-10-07 22:33:58 +00:00
aiongg 8d71e09a6b feat: read the start of the print and booklet print settings 2026-10-07 18:07:03 +00:00
aiongg 1e26e1e8bd feat: read text, margin, anchor, pasteboard, XML tag and page item defaults 2026-10-07 15:40:54 +00:00
aiongg 8e8cb28d40 feat: read colour settings, view, grid, watermark and text defaults from the preferences 2026-10-07 15:14:54 +00:00