mirror of
https://github.com/storytold/indd-utils.git
synced 2026-11-22 10:10:47 +01:00
Decode the save history of the document (chunk 0x1D8): one record per session, with a u16 language code. The layout parses 4,431 of the 4,439 distinct valid corpus files (not the six InDesign 2.x files and two without the chunk) and all 803 pairs. Code 0x0101 in the last record marks a session of a Japanese or Chinese edition: all 149 Japanese pairs have it. The converter uses it for values that IDML writes in the exporting InDesign's language: - spread FlattenerPreference without chunk 0x10833: 400/400 for 0x0101, otherwise 300/150, none when the history cannot be read (7,481 of 7,490 spreads of all pairs; the 9 others are one pair exported in a session the INDD does not record) - IndexOptions without chunk 0x13010: BetweenEntriesSeparator "、" or "; " (789 of 791 pairs) and Title "索引" for 0x0101 (158 of 159); no title for other codes, whose titles vary by language - EndnoteOption without chunk 0x2261E: separator U+3000 and RubyMarker for 0x0101, tab and SuperscriptMarker otherwise (140 of 141) The endnote title and the Assignment Name do not follow the code and stay out (objects.md, save history, has the counts). compare.py --exclude own/: - trustworthy coverage 97.71% -> 97.72% (+1,119 values: flattener resolutions 5,065 -> 5,404 of 5,413 each, index title 10 -> 136, separator 481 -> 604 of 606, endnote separator and marker position 301 -> 397 of 398) - all pairs 95.88% -> 95.89% (+1,679) - extra values unchanged (26,256; all pairs 304,533) - compare.py --all with schemas: 0 conversion and 0 schema failures on pairs