Atlas · blocks · Plate 12 of 16
blocks
Paragraphs
Diagram view views/Paragraphs.lml composing
5 LML includes
and 4 associations.
Includes5
Associations4
Types5
Model definitions
BasicBlock¶
classmodels/blocks/BasicBlock.lml
Block of textual content in BasicDocument.
| Attribute | Type | Cardinality | Definition |
|---|---|---|---|
+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¶
classmodels/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.
| Attribute | Type | Cardinality | Definition |
|---|---|---|---|
+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¶
classmodels/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).
| Attribute | Type | Cardinality | Definition |
|---|---|---|---|
+footnotes |
ReferenceToIdWithParagraphElement | 0..* | Footnotes contained in the paragraph. |
TextAlignment¶
enummodels/blocks/paragraphs/TextAlignment.lml
definitionleftdefinitioncenterdefinitionrightdefinitionjustifieddefinition
ParagraphsBlock¶
classmodels/blocks/multiparagraphs/ParagraphsBlock.lml
Block composed of multiple paragraphs.
| Attribute | Type | Cardinality | Definition |
|---|---|---|---|
+contents |
BasicBlock | 0..* | The paragraphs constituting the ParagraphsBlock. |