Creating text nodes#
What are nodes?#
Text data structure#
- Hierarchical structure
Text can be a nested structure. Think of
where you can consider the underlined part as a child of the emphasized part.
Format a paragraph#
- font family needed
This breaks a paragraph into lines:
hsize is the desired horizontal size.
format paragraph calls mknodes
which creates a list of nodes from a nested Text data structure.
FormatParagraph() method takes a typesetting options as the last argument.
||Set the vertical distance between two baselines|
||Set the language used for hyphenation|
||Set the font size for the paragraph|
||Set the text indent|
||Sets the horizontal alignment for a paragraph|