Bridges
A bridge takes a story written for one format and tells it in another. Some bridges are a single
line, format: in the front matter; the others are a command, recit convert … --. Récit only
promises a bridge whose mapping is closed: every part of the source has one place in the target,
written in a table. What the table does not cover is an error with its file and its line, never
a guess, a summary or a silent drop.
The bridges
| From → to | How | Mapping | Status |
|---|---|---|---|
| deck → motion | format: in the front matter | layouts → animated blocks, one slide → one shot | Available |
| report → deck | recit convert report. | one section → one slide, charts and tables kept | Available |
| bible → deck | recit convert cast. | each character, set, style or beat template → a slide, traits in the notes | Preview |
| bible → book | recit convert cast. | the characters → one "Dramatis personae" chapter, name and summary | Preview |
| webtoon → motion | webtoonToFilm of @recit/ | one panel → one 9:16 shot with a vertical pan | Available |
| book → docs | the entry of a book in a site | one chapter → one page, table of contents → sidebar | Preview |
| roadmap → calendar | include: of a roadmap in a calendar | each dated milestone or item → an event | Available |
| calendar → webstory | recit convert cal. | the upcoming events → an "upcoming" story | Available |
| calendar → atlas | recit convert cal. | each event with a geo → a view of the map | Preview |
| webstory ⇄ motion | webstoryToFilm of @recit/ | one card → one 9:16, 4:5 or 1:1 shot, same animated blocks | Available |
| report → webstory | recit convert report. | each KPI or chart → a card | Available |
| form → report | recit convert survey. | the prose steps → sections, every field → one printable form | Preview |
| webstory → webtoon | recit convert story. | one card → one panel, its text → captions stacked at the top | Preview |
| Fountain ⇄ webtoon | recit convert script. | a scene heading or a shot → a panel, a dialogue → a stacked bubble | Preview |
recit export -- | the formats of the closed print list, one print chain | Available | |
| deck → PowerPoint | recit export -- (@recit/pptx) | measured slides → editable .pptx text, shapes, charts, notes | Preview |
The formats added since have their own bridges, listed on their page: atlas (to a deck, a film or a web story, and from a calendar), directory and glossary.
Every bridge marked available or preview has a conversion test and a test of the case it refuses. A bridge marked planned does not exist yet: asking for it is refused, it is never approximated.
Who owns a bridge
The source format owns its outgoing bridges: reportToDeck is in @recit/, atlasToFilm in
@recit/atlas. The exception is a bridge that would make the source depend on its target. Three
bridges are owned by their target for that reason, each one tested:
| Bridge | Owned by | Why |
|---|---|---|
| roadmap → calendar | roadmapCalendarEvents of @recit/ | the roadmap would depend on the calendar it feeds |
| calendar → webstory | calendarToWebstory of @recit/ | the calendar would depend on the webstory format |
| calendar → atlas | calendarToAtlas of @recit/ | the calendar would depend on the atlas and its maps |
Each one reads only the fields of the source model it needs, so the dependency goes one way.
calendarToAtlas is the exception written down on purpose: it stays in @recit/, and
the calendar model it reads, Calendar, CalendarEvent and Occurrence, lives in
@recit/ (re-exported by @recit/), so @recit/atlas depends on
@recit/time and never on @recit/. The same goes for calendarToWebstory in
@recit/. The webstory,
calendar and roadmap
pages show them.
Deck → motion, the bridge of 1.0
A deck becomes a film by one line. The source stays the same, scenes keep their id, and the
layouts map to the blocks of the motion format:
Markdown
| Deck layout | Motion block |
|---|---|
cover | title |
section | chapter |
quote | statement |
| a list | list |
The whole table, with the shapes each block accepts, is on the motion page. A deck written for slides plays as a film when its scenes keep to that table. When one does not, the film is refused, and the message names every scene that has no block, at its line:
Code
This bridge and the ./bridge subpaths of the formats in the 1.0 contract (report, webtoon,
calendar, roadmap, directory, webstory) are part of Récit 1.0 (see
Stability). A bridge whose source or target stays outside 1.0
(docs, atlas, @recit/pptx) joins the contract with that package, in a 1.x minor.
A story outside every bridge
Asking for a target no bridge reaches is an error too, before anything is written:
Code
recit convert without --to keeps the format and switches between the Markdown and its
JSON twin, which is not a bridge: the story stays
the same, only its notation changes.