wml::fmt::text(3) | EN Tools | wml::fmt::text(3) |
wml::fmt::text - Plain ASCII with Special Formatting Semantic
#use wml::fmt::text <: print &wml_fmt_text({ FILE => $file, OPTIONS => '--xhtml', ...}); :> <text notypo> FOO === 1. bar 2. quux a. baz b. foo ... </text>
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.
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.
Ralf S. Engelschall rse@engelschall.com www.engelschall.com
Internal: P1, P2, P3, txt2html (WML) External: --
2020-11-29 | EN Tools |