Breaking a paragraph up, and aligning it
A paragraph broken into lines, set four ways: left, right, centred, justified.
A contents page whose entries are led to their page numbers by dots the layout draws.
A contents page: chapter titles on the left, page numbers on the right, and a row of dots leading the eye from one to the other. The dots are not typed into the text. Each entry asks for a row of them, and the layout fills whatever room the entry leaves free.
That is the difference between a contents page that survives and one that does not. Edit a title, translate the document, set it in another font, and the dots still meet the numbers, because their count was never a property of the text — it was worked out from the room left over.
The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.
The document this example writes, ready to open.
| Before | 111,913 bytes |
|---|---|
| Now | 41,580 bytes |
| Saved | 62.8 % |
Not one mark on the page changed. See every document measured.
A paragraph broken into lines, set four ways: left, right, centred, justified.
A word too wide for its column: left whole, or cut to the edge.
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 twice: file paths and compounds running past the edge with no break points, then wrapping where a break after a slash or a hyphen is allowed.
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: the indents, the room around a paragraph, its last line, its first line.