Breaking a Paragraph up, and Aligning It
A paragraph broken into lines, then laid out four ways: left, right, centred, justified.
You supply the text; the library works out where each line ends, where each column stops and where each page breaks.
You give it a paragraph. It measures every word, decides where each line ends, and pours what is left onto the next line, the next column, the next page. Nobody counts characters and nobody guesses how much will fit.
It also settles the awkward cases a person would otherwise have to notice by hand: a word too long for its column, the places inside a word where it may be split, a pair of words that must not be parted across a line, a heading that has to shrink rather than run off the edge. Two entire novels are laid out this way, chapters and all.
A paragraph broken into lines, then laid out four ways: left, right, centred, justified.
A word longer than the column that holds it: the library leaves it whole, cuts it at the column's edge, or cuts it and closes the line on a hyphen.
A justified column set twice: the long words breaking at their soft hyphens with a hyphen shown, or left whole, and a figure a no-break space keeps together.
A justified column set four times: file paths and compounds running past the edge with no break points, wrapping where a break after a slash or a hyphen is allowed, then wherever their punctuation allows one, and last with no-break hyphens that keep each compound whole.
A title, a rule, two paragraphs, a heading, a table of twenty-six rows and a footnote, handed over in reading order and broken across two pages by the engine.
A delivery slip poured into two boxes, the second taking up where the first stopped, and a poster whose picture no box can hold, each box saying what became of the stack in it.
One line of statuses set twice: in a company font alone, where the characters it has no glyph for come out as empty boxes, then with a second font behind it that draws them.
Three font files read and set out on one page: each face in its own letters, with its name, how many letters it holds, its heights, its underline and what its maker allows a document to do with it.
One line of text received as bytes in seven encodings and read back the same each time, a line in plain letters whose codes are read four ways, and one accented letter written as one character or as two.
Five samples set twice each, once plain and once with a single setting activated: joined letters, small capitals, figures that hang below the line, the letters one language draws its own way, and pairs moved closer together.
One long passage poured into three columns, each fitting the lines its height allows and handing the rest to the next.
The same two paragraphs six ways: as they come, a first line pushed in, a first line pulled out, the room above and below, a justified block whose last line is centred, and where the first and last lines sit in their rectangle. A second page sets them four more ways: two other rules for the first and last lines, letters only outlined, and letters thickened by a line round them.
A contents page whose entries are led to their page numbers by dots the layout draws.
A paragraph whose style changes inside it — size, underline, colour — then a heading left hollow or thickened, a line struck through the letters, a long web address broken after its slashes, and a paragraph centred in its box.
The same tabulated rows under each of the three methods, then a contents block whose dots run out to a stop on the right. A tabulation can step on from wherever the text stopped, land on the regular grid of a typewriter, or aim at a stop of its own, on which the text that follows starts, centres, or lines up by its decimal point.
Bulleted, numbered and nested lists, each built out of an indent that hangs out to the left and one tab stop rather than out of a dedicated list object: the marker sits in the room the indent opens, and every line below the first begins where the tabulation put the text.
What a document says about itself — DRAFT, COPY, PAID — laid across rectangles of four different shapes and scaled to each, then SPECIMEN given to the document once and laid on every even page.
Headings of different lengths shrunk to share one column, and a label turned a quarter turn up the page's spine.
Eight badges cut to the same size, carrying names that run from two short words to a double-barrelled surname. The library finds, for each name, the largest size that fits its rectangle, and that size is printed underneath.
A seal whose legend rides its ring and a second one bowed at its foot so those words stand upright, a title bent over an arch, and the same sentence begun at three places along one straight path.
Three narrow signs whose words are set letter under letter, each filling its columns another way, with what each column measures written underneath.
One page, three blocks of text: a column that goes round a note set into its corner, a circle filled line by line, and a six-sided shape whose lines carry on past a picture box in its middle.
A public-domain English novel read into its twelve chapters and laid out across sixty-two numbered pages, behind a contents you can click, each chapter opening a page of its own and the engine choosing every line break.
The same layout on a French text: thirty-seven chapters over a hundred and sixty-nine pages, drawing the accented alphabet, so the font kept inside the file carries every shape a wider alphabet needs.
A half-price shelf card: every line shows the old price with a line through it beside the new one, the sum of the three carries a rule over the top, and the title is set a second time behind itself, shifted and paler, so it reads over anything.
One word painted four ways, each time letting the stripes laid after it show only inside its letters: the way a pattern or a photograph is poured into a headline.