mirror of
https://github.com/storytold/indd-utils.git
synced 2026-11-29 09:34:02 +01:00
feat: write named grids and object style export options
designmap.xml gets the document's named grids with the layout grid settings all its pages share. Object styles other than [None] get the export options every IDML of their version has, now also before InDesign 12. Value coverage on trustworthy pairs: 86.72 % to 86.83 %.
This commit is contained in:
1 parent
5344dc2148
commit
27cfef8fd7
4 files changed
+93
-2
No files matched your search
@@ -350,6 +350,11 @@ groups are tagged as artifacts with custom text. Their INDD objects hold
|
||||
these settings in chunk 0x1E206 (its first u32 is 5 in items with the
|
||||
usual values, 8 or 0 in those items), which is not decoded.
|
||||
|
||||
Object styles other than `[None]` (2,657 `ObjectExportOption`
|
||||
elements) have 22 of the same values from DOM 9 on, `EpubType` from 10
|
||||
and `EpubAriaRole` from 21; the converter writes them on those styles,
|
||||
in addition to the object style values above.
|
||||
|
||||
The converter writes these values on every page item. From DOM 12 on it
|
||||
adds the values that every object style other than `[None]` has in the
|
||||
files the object style values were made from (above); all 6,151
|
||||
|
||||
@@ -225,6 +225,18 @@ true in every layer; the two fields that are 1 in every sample may hold
|
||||
them. The converter reads the fields only when the name starts at offset
|
||||
19 (in all little-endian corpus pairs, 1,465 layers).
|
||||
|
||||
## Named grids (0xCD12)
|
||||
|
||||
Chunk 0xCD28: u32, a flag byte (1 = built-in key) and the name
|
||||
(`[Page Grid]`, IDML `$ID/[Page Grid]`). IDML writes a `NamedGrid` per
|
||||
object, with a `GridDataInformation` that holds no INDD field of its
|
||||
own: it equals the layout grid settings of the document pages (chunk
|
||||
0xCD02, pages above) when all pages have the same, which is so in 494 of
|
||||
the 495 trustworthy pairs; the named grid's settings match those in
|
||||
493 of the 494. The converter writes the named grid with the pages'
|
||||
settings when they agree, and without `GridDataInformation` otherwise.
|
||||
Over the trustworthy pairs: 494 of 496 named grids, all names.
|
||||
|
||||
## Table of contents styles (0x11605)
|
||||
|
||||
Chunk 0x11605: a flag byte (1 = built-in key) and the name, three u32
|
||||
|
||||
Reference in new issue
Block a user