Skip to main content

Module render

Module render 

Source
Expand description

Turning a parsed folio into a self-contained HTML document.

Structs§

Colophon
The generation metadata recorded in every folio’s plaque.
Labour
What a render cost: how long the scribe took, and how large the folio came out. Neither can be known while the markup is being written, so the plaque carries a placeholder for each and inscribe fills them in afterwards.
Scribe
Renders folios, carrying the decisions a render depends on: how markdown becomes HTML, how code gets highlighted, and which zone timestamps read in.

Enums§

Fonts
Which cut of the embedded faces a folio should carry.

Constants§

DROPPED
Codepoints an embedded face carries whole but not cut, as sorted, disjoint, inclusive ranges. Generated by build.rs from src/fonts/cut/dropped.txt.

Functions§

beyond_cut
The characters in text that an embedded face carries whole but not cut, tallied by how often each occurs.
elapsed
A duration in the coarsest unit that still says something: whole milliseconds under a second, then seconds to one decimal place.
inscribe
Fills a finished folio’s own cost into its plaque.
size
A byte count as a size a reader can hold in mind, in the decimal units file sizes are quoted in.