wml::fmt::text(3)

wml::fmt::text3

Plain ascii with special formatting semantic

Usage

 #use wml::fmt::text
 <: print &wml_fmt_text({ FILE => $file, OPTIONS => '--xhtml', ...}); :>
 <text notypo>
 FOO
 ===
 1. bar
 2. quux
    a. baz
    b. foo
 ...
 </text>

Overview

The usage is simple: Surround the text with the "<text>" container tag and then just write plain ASCII text inside it. The corresponding HTML code is created via txt2html(3), a filter which gives the ASCII text nice formatting semantic which control the HTML result.

If OPTIONS field is specified, a newer txt2html(1) filter is called instead of txt2html, which is dead upstream. This allows for instance generation of XHTML markup.

The core conversion function is wml_fmt_text() which also can be used by other include files.

Attributes

These attributes can be used both in the "<text>" tag (in lowercase letters) and in "wml_fmt_text"'s arguments, as shown in the examples above.

"NOTYPO"

By default, font commands are added to headings to highlight them. This attribute prevents alteration of txt2html's output.

"OPTIONS=str"

This attribute performs two actions: select txt2html as a filter instead of txt2html, and make str arguments be passed literally on the command line of txt2html.

Requires

 Internal: P1, P2, P3, txt2html (WML)
 External: --

Releases

15 releases since Debian 2.0 (Hamm); the text changed 12 times.

  1. 2.0
  2. 2.1
  3. 2.2
  4. 3.0
  5. 3.1
  6. 4.0
  7. 5.0
  8. 6.0
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11–13

Author

 Ralf S. Engelschall
 [email protected]
 www.engelschall.com

From wml 2.32.0~ds1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.