Commit Graph
355 Commits
Author SHA1 Message Date
aiongg 756e2832d3 docs: add a disk space rule to CLAUDE.md 2026-10-13 00:13:34 +00:00
aiongg 9ed074acf4 docs: give check.py's warm run time in CLAUDE.md 2026-10-12 23:55:49 +00:00
aiongg 27bf102912 tools: cache pair comparisons by content in compare.py --cache and speed up aggregation 2026-10-12 23:45:16 +00:00
aiongg 7332ad6cba docs: add check.py to the CLAUDE.md commands 2026-10-12 22:23:38 +00:00
aiongg bff03f709c tools: add check.py, a check run that reuses conversions, validations and renders
compare.py --cache keeps conversions by content SHA-256 and file name,
--valid-cache keeps schema validation results by part; render_compare.py
takes conversions from the same cache and reuses verdicts and
measurements with --reuse-results. Runs killed by a signal or a timeout
and failed renders are not kept.
2026-10-12 22:09:46 +00:00
aiongg 66e9be2d13 docs: update the README numbers 2026-10-12 19:44:13 +00:00
aiongg 2a7a9b7da9 docs: document story links, link source IDs, style mappings and placed-text import options 2026-10-12 18:43:58 +00:00
aiongg 47f1e268ba feat: write story links, link source IDs, linked story options, style mappings and placed-text import options
Story links come from chunk 0x8CBC with the graphic link reader;
LinkClassID is the link object's class and resource state 3 is
StoredState="Contained". LinkResourceId on stories and text frames
comes from document chunk 0x21D06, LinkedStoryOption from 0x21D12,
ParaStyleMapping/CharStyleMapping from 0x21D30 (story and
preferences), StyleMappingPreferences from 0x12216, and
WordRTFImportPreferences/ExcelImportPreferences from the options object
of 0x12202.
2026-10-12 18:43:58 +00:00
aiongg 99bf192b6d feat: write $ID/ PostScript names for InDesign 7.0 up to build 522 2026-10-12 18:17:37 +00:00
aiongg d20d1fa3ed fix: leave out font axes and placed-text plugin data from the measurement 2026-10-12 18:04:47 +00:00
aiongg bfec50e67d docs: document kerning value 1e+11 and rounding, manual kerning method, two numbering formats and DeleteEndPunctuation 2026-10-12 17:54:45 +00:00
aiongg e93a41dc6a feat: write kerning value 1e+11, whole-number kerning, manual kerning method, two numbering formats and DeleteEndPunctuation 2026-10-12 17:48:03 +00:00
aiongg 96a84f0487 docs: document articles and the EPUB accessibility version boundary 2026-10-12 17:44:15 +00:00
aiongg 8fe6eaf05d feat: write articles, group article children and EPUB accessibility values
Article elements with ArticleMember children from document chunk 0x21B03
and the articles' chunks 0x13C and 0x21B02; Group ArticleChildrenList
from chunk 0x21B05; the nine empty EpubAccessibility attributes from
INDD 19.3 and EpubCreatePageNavigation from 19.4.
2026-10-12 17:44:15 +00:00
aiongg 6fe7f19654 docs: update the README numbers 2026-10-12 17:14:54 +00:00
aiongg eb3524dd02 fix: leave out UntitledDocumentCount, which the IDML schema does not allow 2026-10-12 16:54:20 +00:00
aiongg d1c0a3072b docs: list the defaults and the print page range field 2026-10-12 16:09:45 +00:00
aiongg 2eee577790 feat: write documented defaults and the print page range
Preference, document and language values that no INDD field holds and
nearly every reference IDML has are written as defaults. The print
page range is read from the u16 at A+122 of the print settings.
2026-10-12 16:09:45 +00:00
aiongg 9f72881d5e docs: document movies and sounds 2026-10-12 15:55:32 +00:00
aiongg 8cb6e6aa7b feat: write placed movies and sounds
Movie (class 0x14801) and Sound (0x14F01) as the last child of their
frame: playback settings from chunk 0x14004, poster image, link,
FilePath, label, text wrap and transparency. MovieBehavior/SoundBehavior
name them in MovieItem/SoundItem, and timing targets that point at them
are kept.
2026-10-12 15:55:32 +00:00
aiongg 10a3dd3114 docs: update the README numbers 2026-10-12 15:36:42 +00:00
aiongg a5987d0b47 fix: leave out timing targets whose element is not written 2026-10-12 14:52:14 +00:00
aiongg 6c61f25235 docs: document button behaviours 2026-10-12 14:35:38 +00:00
aiongg b63fa53c36 feat: write button behaviours 2026-10-12 14:35:38 +00:00
aiongg a6bb0c02e7 docs: document timing lists, motion presets and animation settings 2026-10-12 14:10:43 +00:00
aiongg 633a2ee402 feat: write timing lists, motion presets and animation settings 2026-10-12 14:10:43 +00:00
aiongg 388cc0e3d4 feat: write capitalization code 4 as LowerCase 2026-10-12 13:48:31 +00:00
aiongg 1d4686bb33 feat: write the alternative text and tagging of object styles 2026-10-12 13:46:08 +00:00
aiongg da4cbfa11e fix: leave a family name's trailing spaces out of its fonts' Name from DOM 21 2026-10-12 13:43:24 +00:00
aiongg 0bd2db2b96 fix: write a colon in a style group's name as \: in its Self and Name 2026-10-12 13:40:58 +00:00
aiongg 971d3a5aff docs: update the README numbers 2026-10-12 12:12:19 +00:00
aiongg f3acf86a98 docs: record colons in style group names and lowercase capitalization as open 2026-10-12 11:28:23 +00:00
aiongg 0a40d2188a feat: write the extended keyboard shortcut of styles with a character key 2026-10-12 11:23:28 +00:00
aiongg 02e4405a59 feat: write the script labels of frames, shapes, groups, buttons and multi-state objects, and label strings as stored 2026-10-12 11:20:58 +00:00
aiongg e541aa6ddc docs: update the README numbers 2026-10-12 11:00:49 +00:00
aiongg d18a4f874f style: format overprint_in_effect 2026-10-12 10:27:09 +00:00
aiongg 63d0a2fe38 docs: record the DOM version of IDML exported by a later release as not stored 2026-10-12 10:20:59 +00:00
aiongg c4672ad579 feat: write the overprint flags of groups and page item defaults 2026-10-12 10:20:37 +00:00
aiongg b5761b3333 feat: write the footnote separator tab without the footnote chunk, and record the endnote separator exceptions 2026-10-12 10:20:33 +00:00
aiongg 2a176eacfb docs: update the README numbers 2026-10-12 09:56:05 +00:00
aiongg 2524863a7f feat: write the numbering restart policy and keyboard direction code 1, and leave out empty nested style lists
NumberingRestartPolicies (0x1A41E) is three u32; the two triples seen
in the corpus are written. KeyboardDirection code 1 is
LeftToRightDirection. IDML writes AllNestedStyles only when the list
has items, on every style. The root value test checks values that the
observed root values still hold.
2026-10-12 09:21:25 +00:00
aiongg 750c912e0f feat: write 79 text attributes placed by the order of the attribute list
IDML writes a style's text attributes in ascending attribute ID order.
The IDs between known ones, with their payload types, place 79 more
attributes: ruby, kenten, tatechuyoko and warichu settings, OpenType
features, gap tints and colours, overprint flags, paragraph border
options and others. Styles and text runs write them wherever they are
stored; the root style values come from the INDD instead of the
observed values.
2026-10-12 09:06:55 +00:00
aiongg 6314db60cc docs: update the README numbers 2026-10-12 08:47:37 +00:00
aiongg d58d89fa87 feat: write the layer before grouping, table style caption position, generated alternative text and nested style group names
- BeforeGroupingLayerReference from the u32 at 0 of chunk 0x324, a
  spread layer resolved to its layer.
- TableStyle CaptionPosition from DOM 21.5: attribute 0x1047D = 1 gives
  BeforeTable, absent gives AfterTable.
- AIGeneratedAltText, AltTextGenerationError and AltTextCropSyncRect of
  page items from chunks 0x1E262, 0x1E260 and 0x1E261.
- The Name of a nested style group is its full path joined by ':'.
2026-10-12 08:12:50 +00:00
aiongg 9d12015919 docs: update the README numbers 2026-10-12 07:56:09 +00:00
aiongg 6dda8c63bd feat: write the preview data of unlinked images that name no raw data object as Contents
An image without a link whose chunk 0x8C23 is 0 or absent keeps its
file in its preview (0x170D -> class 0x1708 -> 0x119 -> raw data
object). Images of InDesign 2.0 to 5.0 whose chunk 0x8C1B names a class
0x8C01 object keep the preview as a preview.
2026-10-12 07:22:26 +00:00
aiongg f174589ec5 fix: return the previews of graphics in table cells and form states, and leave out damaged previews
`read_previews` also collects the page items of graphic table cells and
the items of form field states, which the package holds as well. Over
the open corpus this adds previews for 657 graphics in cells and 385 in
states; every cell graphic without `Contents` has one. Items anchored in
cell text were already in the story anchors.

A preview chain that can't be read gives no preview instead of failing
the graphic, and with it the conversion.

The README and ARCHITECTURE.md say that every conversion looks up each
graphic's preview object; only `convert` reads the preview data.
2026-10-12 06:15:20 +00:00
Wiktor Wiesek 6d41202f17 feat: return the previews of graphics whose file is not in the document
`indd::convert` now returns `Conversion::previews`: InDesign's screen
preview (chunk 0x170D -> class 0x1708 -> chunk 0x119 -> raw data) of each
placed graphic without `Contents`, one entry per preview file with the
`Self` of every graphic that uses it. IDML has no place for a preview, so
the package is unchanged; an application can show the preview when it
cannot read a linked file. `convert_into` and `indd audit` do not read
previews.

Output: `diff_outputs.py --exclude own/` over 23 files (the fixtures and
part of the open corpus): 0 differing outputs, 0 changed warnings or
failures.
2026-10-12 05:49:46 +00:00
aiongg 6cdcf3b45f docs: update the README numbers 2026-10-12 05:48:48 +00:00
aiongg 032ab0b15c feat: write the story, link, contour, object style and HTML5 export values of DOM 21.1 to 21.5, and the anchored settings of every complete element
Stories and XML stories get the Ai* attributes from DOM 21.5; links the
Ai* attributes from 21.5 and SourceObjectName from 21.4; every typed
ContourOption the four contour parameters from 21.4; object styles
EpubAriaLabel and EpubAriaLabelSourceType from 21.2; designmap.xml
Html5ExportPreference from 21.1. LockPosition and AnchorSpaceAbove go on
every AnchoredObjectSetting with all ten settings, polygons included,
in place of the per-tag WhenWritten blocks.
2026-10-12 04:59:47 +00:00