একটি খসড়া ডেমো

ছাদের এক বৃষ্টিমাপকের হিসাব

মেনু

Typography and Its Limits

সূচিপত্র

What the engine does to prose, and what it leaves to the theme. Set in khata; every example is live.

“Quotes become curly,” she said – and dashes become dashes, while an ellipsis… becomes one character. That is the whole of what the engine does to an author’s words: a Markdown parser option, nothing more.

Inside a code span none of it happens: "quotes" -- and ellipses... survive byte for byte, because the typographer works on the parsed tree rather than on the text.

Marks the dialect adds

Where prose needs more than CommonMark offers there are four marks: water is H2O, a millimetre is 10-3 m, the second column is the one that matters, and this phrase was cut. A subscript holds a formula and never a phrase, so x^2 + y^2 stays exactly as typed.

Text is stored in NFC — Normalization Form C — which the engine normalises to and compares in.

Where there is no mark for something, HTML does it: this reading is taken with Shift held.

Marks that hang

“A quotation mark that opens a paragraph sits out in the margin,” so the first letter lines up with the lines below it. The same goes for any line that happens to begin on one, wherever the window breaks it: she wrote “not yet” on the first page and “perhaps” on the next, then “now” on the third, and on a narrow screen one of them will start a line and hang. Single quotes hang by less: ‘soon’, ‘maybe’, ‘someday’. A German „Zitat“ or a French « citation » hangs by its own width.

Dashes hang too, half an em of each — this one typed as three hyphens, this one – as two — and a closed em dash may begin a line even with no space before it—as this one may—while the en dash in 1990–2000 never can. Narrow the window and watch the left edge: the words stay in a straight column and the marks step out of it.

— A paragraph that opens on a dash, the way dialogue does in French and Bengali prose, hangs it from the start.

Figures

Digits stand at capital height unless asked otherwise: the gauge read 1,847 in 1990 and 362 in 2004.

Asked for old-style figures, the same sentence sits inside its line: the gauge read 1,847 in 1990 and 362 in 2004.

A run of words can ask too — in 1990 — and a table lines its digits up whatever the prose does, a column aligned right with a colon under it, |---:|, standing its figures flush:

Year Reading
1990 1,847
2004 362
2011 1,111

Twenty-four years, 1990–2014, old-style and tabular at once.

Each shape can be undone inside a region that asked for the other. In an old-style paragraph, the station number stands back up at capital height — gauge BD-1990, read in 1990 — and in a tabular one a figure in passing takes its own width again: 1,111 against 1,111.

A page can print its own frontmatter where the author wants it: this one is called “:meta[title]”, which :meta[title] read from the page’s own title:.

A fraction set as one: 3/4 of a cup and 1 1/2 spoons, where the plain text says 3/4 and 1 1/2.

Line breaking is not the engine’s business at all. This paragraph is deliberately long enough to wrap several times on a narrow screen, which is where you would notice a lonely last word.

A code block, indented.
Also untouched.

khosra · khata 88cb5d68 · content 380f1670 · 228 publications, 4256671 bytes · built in 1.495908104s