sextile.content.blocks¶
The semantic shape of a document, between its source and a screen.
Deliberately structural rather than typographic. On forty columns, colour earns its keep telling a quotation from a code listing from the author’s own words; it earns nothing rendering an italic, so emphasis is dropped and structure is kept.
A paragraph holds lines rather than one string because a single line break and a paragraph break are different things that can arrive looking the same, and spending a blank row on every break would be ruinous on a twenty-four row screen.
- class sextile.content.blocks.Attachment(name)[source]¶
Bases:
objectA file attached to the document, named but not retrievable.
- Parameters:
name (
str)
- class sextile.content.blocks.Code(lines)[source]¶
Bases:
objectA listing, whose spacing is significant and must not be reflowed.
- class sextile.content.blocks.Document(blocks, links=())[source]¶
Bases:
objectA body of content, ready to be laid out.
- class sextile.content.blocks.Image(description)[source]¶
Bases:
objectA picture, which a viewdata terminal can only announce.
- Parameters:
description (
str)
- class sextile.content.blocks.Link(number, text, url)[source]¶
Bases:
objectA link, numbered so the text can refer to it and the frame can list it.
- class sextile.content.blocks.ListItem(text)[source]¶
Bases:
objectOne item of a bulleted or numbered list.
- Parameters:
text (
str)