# How it reads

> Frames, timing, and what a key, a tap or a scroll does.

## Frames

A frame is what shows at once: the number of words set, from one to six.

- A frame never crosses the end of a sentence or of a paragraph.
- A comma, a semicolon, a colon or a dash inside a frame does not cut it; it makes it stay a beat longer.
- A heading is shown on its own.
- In Flow, a frame can be a whole paragraph: the Words setting goes on past six to ¶.

## Timing

A longer word stays a little longer. After a frame, a clause end waits one word, a sentence two, a paragraph or a heading three.

The whole is then scaled so the text takes exactly words / wpm minutes: the rate shown is the rate you get, pauses included. A text of 600 words at 300 wpm takes two minutes, whatever its punctuation.

## Words and size

Words per frame and size depend on each other. More words step the size down until most frames (90 %) fit the line; a larger size takes words off. A frame longer than most shrinks on its own.

## Reading back

Paused in Sequence, the sentence shows under the band with the frame marked, to read back. Every way of moving goes by frame, so every part of the text is the one being read in turn.

| | |
|---|---|
| Space | plays or pauses |
| ← → | a frame back or on; on the progress slider too |
| ↑ ↓ | change the speed |
| Escape | closes |
| A tap or a click on the band or the text | plays or pauses, and nothing else |
| A scroll, or a swipe on touch | a frame back or on |

Paused, a flick or a wheel's notch glides on, slowing down. A stream of events, from a trackpad, is followed as it is, never sped up.

In Flow while paused, a scroll moves the text freely instead. The reading place follows the line at the anchor, and Play goes on from there.

## While it plays

Labels and controls fade out at once on Play, then two seconds after a move, a tap or a key, which bring them back. The figures and the progress bar go with them, so that only the text is left. In Flow the two rulers then move out to the panel's edges, and the text takes the room of the settings and the figures; a pause brings the rulers back, and the controls with them.

The panel's Progress setting, or the `progress="on"` attribute, keeps the figures and the progress bar in sight while it plays, in both views. Flow's window then keeps its size.

## The Settings button

The Settings button, in the title's bar, folds the settings away and brings them back. Folded away, they stay away, paused or playing: a scroll or a move brings back the title and the controls at the bottom, and no longer a row of settings over the text. The button fades and comes back with the title, as Full screen does. On a narrow panel the button is its gear alone. The `settings="off"` attribute opens a reader that way.

A screen reader hears play, pause and the settings, never each frame: a text read aloud a word at a time by a screen reader would be no way to read it. The article itself is still in the page for that.

## On a phone

Opening asks for full screen and a landscape lock. Android Chrome grants both. Safari on iPhone grants neither, and there the panel covers the window and works upright.

No script can fold Safari's bars, only a scroll of the page by hand. So when they show as the panel opens, a swipe up on it scrolls the page behind, which folds them; the panel then locks, and a swipe goes a frame back or on as everywhere else. Until then the panel says so, with the `barsHint` label. Closing puts the page back where it was.
