Rig names InDesign layout meaning as rig.layout.* plus rig.story.*. InDesign Markup Language files stay host mappings at the boundary - same rule as IFC in openbim.md and SVG (design philosophy).
The Contract job is entities, POD components, and schema ids. An .idml reader / writer (SimpleIDML, a Pandoc wire, or a sibling pack) is fulfillment, not Contract.
Do not invent rig.idml.*. One story and one frame use the schemas below; IDML Self ids land on rig.meta.named stableId. Visual typography stays on rig.layout.paragraph_style / character_style, never on rig.story.*.
| IDML idea | Rig |
|---|---|
| Page / Spread page | rig.layout.page |
| MasterSpread | rig.layout.master on a page |
| AppliedMaster | rig.layout.applied_master |
| FacingPages / BindingLocation | rig.layout.facing |
| MarginPreference / Bleed / Slug | page margins / bleed / slug |
| Story | rig.story.flow. Story content, styles, local formatting, and tables map as in icml.md |
| ParagraphStyle (identity) | rig.story.paragraph_style |
| CharacterStyle (identity) | rig.story.character_style |
| ParagraphStyle (face / size / lead / align / colour) | rig.layout.paragraph_style |
| CharacterStyle (face / size / colour / bold / italic) | rig.layout.character_style |
| TextFrame | rig.layout.frame |
| GeometricBounds + ItemTransform | rig.spatial.transform + frame width / height |
| InsetSpacing | frame insets |
| TextColumnCount / TextColumnGutter | frame columnCount / columnGutter |
| FirstBaselineOffset / MinimumFirstBaselineOffset | frame firstBaseline / firstBaselineMin |
| PreviousTextFrame / NextTextFrame / ParentStory | rig.layout.frame_chain |
| Containment (on page or master) | rig.spatial.relationship parent |
| Rectangle / Oval / Polygon holding an Image | Geometry (rig.geometry.rectangle, ellipse, path) + rig.render.sprite + rig.render.image_fit on one entity |
Link LinkResourceURI |
the sprite texture's rig.media.asset_ref path |
FrameFittingOption FillProportionally / Proportionally / ContentToFrame / CenterContent |
fit cover / contain / fill / none |
| Image ItemTransform inside its frame (scale, translate) | fit none, positionX / positionY 0, scale, offsetX / offsetY |
| Image flip | sprite flipX / flipY |
Frame FillColor / StrokeColor + StrokeWeight |
rig.paint.fill / rig.paint.stroke paint + width, swatches as rig.paint.solid |
StrokeAlignment CenterAlignment / InsideAlignment / OutsideAlignment |
rig.paint.stroke_style align center / inside / outside |
TransparencySetting Opacity (0-100) / BlendMode |
rig.render.blend opacity (0-1) / blendMode |
CharacterStyle Underline / StrikeThru |
character style underline / strikethrough |
TextWrapPreference TextWrapMode BoundingBoxTextWrap / Contour / JumpObjectTextWrap |
rig.layout.text_wrap shape box / contour, sides jump; None = no component |
TextWrapSide BothSides / LeftSide / RightSide / LargestArea |
sides both / left / right / largest |
TextWrapOffset; ContourOption AlphaChannel |
offset; shape alpha |
GeometricBounds (y1, x1, y2, x2) become position (x1, y1) and size (x2 − x1, y2 − y1) in 2D page space (+X right, +Y down). ItemTransform composes onto the same transform. Do not store the IDML matrix as a second pose.
| File | Role |
|---|---|
.idml |
ZIP of designmap.xml + Spreads / Stories / MasterSpreads / Resources - map into / out of layout + story |
.indt / .indd |
InDesign private database - export IDML first |
.icml |
One InCopy story, no pages or frames - icml.md, with a merge-onto-source round trip |
Word / .docx |
Story-only import to rig.story.*. Tables land as rig.story.table content; the document's rig.layout.table_style dresses them - Word table formatting does not travel. Not a layout |
Do not put InDesign Self strings, story overflow, or composed line breaks in portable components - those are encoding / host cache.
Do not invent schemas for these yet:
- Rotated or skewed images inside their frame (bake them), and frames that hold vector art
- Groups
- Object styles
- Text wrap sides toward or away from the spine, and
NextColumnTextWrap - Anchored objects
- Hyphenation and justification settings (alignment
justifyis already on the paragraph style) - GREP / nested styles
- Footnotes
- Text variables (folio)
- Notes
- XML tags
- Books (
.indb)
A compose host that parents a flow to a page and clones pages on overflow is not an IDML layout - InDesign threads frames. Masters, facing, slug, and character styles beyond italic are already in the schemas; honor them at emit time.
A Word converter that emits only paragraphs is fine for a novel's rig.story.*. It is not a pictured book or a register until tables, lists, images, footnotes, and hyperlinks land in that fulfillment. Tables and list membership are already named here.
Example: examples/story-frames.json.