wml::des::typography(3)
π wml::des::typography β the EN Tools typography era π
okay bestie, sit down, because this one is literally the glow-up your boring HTML was waiting for. wml::des::typography(3) is the include file that gives you tags for way more typographically strong layouting than plain HTML hands you out of the box. Let's get into it π
β¨ SYNOPSIS β¨
#use wml::des::typography [face_shortcuts]
# paragraph whitespace
<ps [height]>
(<ds [height]>)
<pi [width]>
(<ein [width]>)
# paragraph text rendering
<big X>
<sc [complete]>...</sc>
<csc>...</csc>
<spaced [interchar=N] [interline=N]>...</spaced>
<verbcode>...</verbcode>
# headlines
<headline [name]>...</headline>
(<ue [name]>...</ue>)
<subheadline [name]>...</subheadline>
(<zwue [name]>...</zwue>)
# unsorted lists
<tul [ps=N] [pi=N]>
<tli [pshape=dash|box] [pcolor=#rrggbb]>...</tli>
...
</tul>
πΈ DESCRIPTION πΈ
This include file provides tags for more typographically strong layouting than HTML per default provides. And yes, the following tags are all provided, we're going through every single one, no skips π«Ά
π Typographical Paragraph Skip
<ps [height]>
This is the typographical way to insert a blank line between two paragraphs. It is not as high as the one generated by HTML's <p> tag. Default is 4 pixels for height. Optically and functionally <ps> sits right between <br> and <p>. In german this is called "Durchschuss", so you can also use the alterntive name <ds> for this tag.
...The last line of the previous paragraph.
<ps>
The new line of the following paragraph...
π Typographical Paragraph Indention
<pi [width]>
This is the typographical way to glue paragraphs which should become one optical block. A complete blank line between them would be ugly and without any inserts the reader cannot distinguish between the two paragraphs. The typographical solution here is to indent the second paragraph by width pixels. The default is 40 pixels. Optically <pi> also includes the effect of <ps>. In german this is called Einrueckung, so you can also use the alterntive name <ein> for this tag.
Example:
...The last line of the previous paragraph.
<pi>The new line of the following paragraph...
π Big Paragraph Starting Letter
<big X>
This is the typographical way to mark the beginning of a more important paragraph by rendering the first letter of the first word of this paragraph in huge font. Optically this letter then is approximately three times bigger than the normal text font. Additionally the alt attribute of the used <img> tag is set to the letter, so text-based browsers correctly show the first word. Because such a paragraph should also be introduced by more whitespace, one usually uses the standard <p> tag in front of <big> to achieve the correct optical effect.
Example:
...The last line of the previous paragraph.
<p>
<big T>he new line of the following paragraph...
π Small Caps Text
<sc [complete]>...</sc>
This container tag renders its body with small caps, i.e. all lower case letters are changed to upper case while lowered optically via font size. In german typography this is also known as Kapitaelchen. Optionally when adding the attribute complete, all words are forced to begin with an upper case letter, too.
If you have support for i18n (internationalization) you may also convert case of non-ASCII characters. See your local documentation locale(7) for details or ask your system administrator.
π Spaced Text
<spaced [interchar=N] [interline=N]>...</spaced>
This container tag renders its body as spaced text, i.e. text with spaces between the lines and characters. In typpgraphy this is usually used to emphasize the text by the use of whitespace. Per default interchar and interline are 0, i.e. no spacing. The spacing is achieved by inserting as much entities as interchar specifies and 1pt-images of height 14+interline every fifth word. In german typography this is also known as Gesperrt.
π Headline
<headline [name]>...</headline>
This container tag creates a typographically better headline as the standard HTML <h1> does, i.e. it renders the text in Helvetica and used better whitespaces around it. Actually it does not create any whitespace above it, but the correct one below it. This way you can create the leading whitespace your own (which is usually different according to the context) but get nice trailing whitespace (which has to be chosen carefully to make the headline and the following paragraph one unit). In german this is called Ueberschrift hence the alias <ue>.
Example:
...The last line of the previous paragraph.
<p>
<ue>The headline</ue>
The new line of the following paragraph...
π Sub-Headline
<subheadline [name]>...</subheadline>
This container tag creates a typographically better sub-headline as the standard HTML <h2> does, i.e. it renders the text in Helvetica and used better whitespaces around it. Actually it does not create any whitespace above it, but the correct one below it. This way you can create the leading whitespace your own (which is usually different according to the context) but get nice trailing whitespace (which has to be chosen carefully to make the headline and the following paragraph one unit). In german this is called Zwischenueberschrift hence the alias <zwue>.
Example:
...The last line of the previous paragraph.
<p>
<zwue>The headline</zwue>
The new line of the following paragraph...
π§ Verbatim Code
<verbcode>...</verbcode>
This container tag renders its body mostly verbatim, i.e. treats it like plain (source) code. Internally this just is an indented <verbatim> container from wml::fmt::verbatim(3) which itself is an enhanced <pre> container.
π Unnumbered Lists
<tul [ps=N] [pi=N]>...</tul>
This container tag displays unnumbered lists in a more typographically strong layout, rendered via HTML tables for indentation.
<tli [pshape=box|dash] [pcolor=#rrggbb]>...</tli>
Items are prefixed by a box or a dash, depending on the pshape attribute, and its color may be defined.
π AUTHOR π
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
β REQUIRES β
- Internal:
P1,P2,P3,P8
π SEE ALSO π
HTML <font> and <br> tags.
and that's the whole page bestie, no cap, every tag accounted for π β this was wml::des::typography(3) from EN Tools, dated 2020-11-29, mwah, slay, periodt πβ¨π¦
π¦ where this page comes from
- debian bookworm: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- debian trixie: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu jammy: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu noble: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu questing: wml 2.32.0~ds1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms