mirror of
https://github.com/storytold/indd-utils.git
synced 2026-11-22 10:10:47 +01:00
feat: write the index, its topics and the page reference topics
The index object (class 0x13004) lists its sections (class 0x13005); chunk 0x13007 of a section holds its topic records depth first, with their level, name, sort order and page references. The converter writes the Index element in designmap.xml with its nested Topic elements, and gives each PageReference its ReferencedTopic and PageReferenceType. Evidence: docs/format/index.md. compare.py --exclude own/: - trustworthy value coverage 97.17% -> 97.36% (+21,617 values); all pairs 95.21% -> 95.35% (+21,808) - Topic 2,185 of 2,185 with Name and SortOrder; Index 16 of 16; PageReference ReferencedTopic and PageReferenceType 7,523 of 7,523 - extra values +15: the 3 topics and 3 page references one INDD has and its earlier IDML lacks - compare.py --all with schemas: 0 schema failures on pairs; files without a reference as before. One of them (DOM 19) has topic records of another length; its sections are left out with a warning (21 warnings).
This commit is contained in:
1 parent
450fd1f5ac
commit
f7fe41e65d
9 files changed
+399
-18
No files matched your search
@@ -1227,14 +1227,7 @@ only.
|
||||
|
||||
**Index markers (class 0x13006).** An index marker is owned by a U+FEFF,
|
||||
which is not text in IDML: IDML writes a `PageReference` in its place.
|
||||
`Self` is `u` and the UID in hexadecimal (7,495 of 7,495 in the
|
||||
research run). `Id` is the u32 at offset 26 of chunk 0x13009 when the
|
||||
chunk has 30 bytes (7,558 of 7,558 over all pairs); the IDML has no
|
||||
`Id` for the 3 markers whose chunk has 26 bytes. `PageReferenceType`
|
||||
(`CurrentPage` in all) has no located field, and `ReferencedTopic` names
|
||||
an index topic, which the converter does not write yet; both are left
|
||||
out (the schema allows that). Chunk 0x13008 is u16 1 and the topic UID
|
||||
(class 0x13005).
|
||||
Its layout and attributes are in `index.md`.
|
||||
|
||||
**Anchored object settings (chunk 0x2800).** The anchor object (class
|
||||
0x262) and object styles have a 62-byte chunk 0x2800:
|
||||
|
||||
Reference in new issue
Block a user