Atlas · blocks · Plate 12 of 16

blocks

Paragraphs

Diagram view views/Paragraphs.lml composing 5 LML includes and 4 associations.

Includes5
Associations4
Types5
Full UML diagram for Paragraphs

Model definitions

BasicBlock

class models/blocks/BasicBlock.lml

Block of textual content in BasicDocument.

AttributeTypeCardinalityDefinition
+notes NoteBlock 0..* Notes whose scope is the current block.
+contribMetadata ContributionElementMetadata 0..* Attribution of the block to a specific contributor, to be used in change management of documents.
+attributes Attribute 0..* Entries from the generic attribute register: an open key-value set that markup languages bind their own attribute types into.

ParagraphBlock

class models/blocks/paragraphs/ParagraphBlock.lml

Default block of textual content. Unlike the case for other document models, paragraphs _cannot_ contain other blocks, such as lists, tables, or figures: they are modelled as a basic building block of text.

AttributeTypeCardinalityDefinition
+contents BasicElement 0..* Inline elements constituting the content of the paragraph.
+alignment TextAlignment 0..1 The alignment of the paragraph against the margins of the document. Text alignment is the only concession the modelling of paragraphs makes to rendering, and is there because the application of alignment to paragraphs, while rare, can be unpredictable from paragraph semantics. Other rendering attributes of paragraphs, such as spacing before and after, are considered to be semantically predictable and are relegated to document stylesheets.

ParagraphWithFootnote

class models/blocks/paragraphs/ParagraphWithFootnote.lml

A paragraph which may also contain footnotes. While most paragraphs in a document can contain footnotes, the distinction is necessary, as footnotes are not appropriate for all instances of paragraph content in a document (e.g. sourcecode annotations).

AttributeTypeCardinalityDefinition
+footnotes ReferenceToIdWithParagraphElement 0..* Footnotes contained in the paragraph.