wml::fmt::text(3)
β¨ wml::fmt::text β¨ β the wml::fmt::text(3) era π
okay bestie, gather round, because this one is genuinely one of the cutest little EN Tools modules and it's about to make your plain ASCII text look so good π
πΈ NAME πΈ
wml::fmt::text β Plain ASCII with Special Formatting Semantic β¨
π SYNOPSIS π
#use wml::fmt::text
<: print &wml_fmt_text({ FILE => $file, OPTIONS => '--xhtml', ...}); :>
<text notypo>
FOO
===
1. bar
2. quux
a. baz
b. foo
...
</text>
π¦ DESCRIPTION π¦
ngl the usage is stupid simple: you just wrap your text in the <text> container tag and then literally just write plain ASCII text inside it. that's it. that's the whole vibe. π«Ά
the corresponding HTML code gets made via txt2html(3), which is a filter that gives the ASCII text nice formatting semantic which control the HTML result. it's giving β¨glow upβ¨ for boring text.
now, if the 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. so if you want the fancy modern version, you know what to do π
the core conversion function is wml_fmt_text() which also can be used by other include files. very giving, very generous of it π
π 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. two ways in, same energy π₯
NOTYPOβ by default, font commands are added to headings to highlight them (main character behavior fr fr). this attribute prevents alteration oftxt2html's output. so like, if you want it left exactly as-is, no notes, this is your girl πOPTIONS=strβ this attribute performs two actions: selecttxt2htmlas a filter instead oftxt2html, and make str arguments be passed literally on the command line oftxt2html. two birds, one iconique attribute π
π AUTHOR π
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
π REQUIRES π
- Internal:
P1,P2,P3,txt2html(WML) - External:
--
β SEE ALSO β
and that's the whole page bestie!! π EN Tools, dated 2020-11-29, wml::fmt::text(3) β literally iconic, no cap, 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