mpexpand(n)
π mpexpand(n) β the glow-up page
okay bestie, gather round, because we're talking about mpexpand β the Markup processor β and honestly? it's giving backstage-pass-to-the-whole-doc-toolchain energy. β¨
πΈ NAME πΈ
mpexpand β Markup processor π
β¨ SYNOPSIS β¨
mpexpand ?-module module? format infile|- outfile|-
mpexpand.all ?-verbose? ?module?
the ?question marks? mean "optional, bestie, no pressure" β that's just how Tcl docs roll π
π¦ DESCRIPTION π¦
So this manpage is literally about a processor/converter for manpages that are written in the doctools format, as specified in doctools_fmt. And the processor itself? Built on top of the package doctools. iconic behavior, no cap.
π mpexpand ?-module module? format infile|- outfile|-
This one takes three arguments, and here's the breakdown:
- the code that says which formatting to generate as the output π
- the file to read the markup from
- the file to write the generated output into
If infile is "-", the processor reads from stdin. If outfile is "-", the processor writes to stdout. classic dash behavior, we love to see it π«Ά
If the option -module is present, its value overrides the internal definition of the module name. periodt.
The currently known output formats are:
nroffβ the processor generates*roffoutput, the standard format for unix manpages. yes, the classic. the OG. πhtmlβ the processor generates HTML output, for usage in and display by web browsers. πtmmlβ the processor generates TMML output, the Tcl Manpage Markup Language, a derivative of XML. lowkey fancy πlatexβ the processor generates LaTeX output. for the academic girlies πwikiβ the processor generates Wiki markup as understood bywikit. π§listβ the processor extracts the information provided bymanpage_begin. just the facts, ma'am β¨nullβ the processor does not generate any output. literally does nothing. and honestly? sometimes that's the vibe π
π mpexpand.all ?-verbose? ?module?
This command uses mpexpand to generate all possible output formats for all manpages in the current directory. yes, all of them. she's an overachiever, we respect it π
The manpages are recognized through the extension ".man".
If -verbose is specified, the command will list its actions before executing them. she announces her plans first, main character energy fr fr π₯
The module information is passed to mpexpand.
β NOTES β
Possible future formats are plain text, pdf and postscript. (manifesting this for her πβ¨)
π BUGS, IDEAS, FEEDBACK π
ngl, this document, and the package it describes, will undoubtedly contain bugs and other problems. it's not a read, it's a confession. π
Please report such in the category doctools of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation. she wants the feedback, bestie, it's a whole love language π
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. (iykyk β the left-most button. don't make me say it twice π )
π SEE ALSO π
expander(n)format(n)formatter(n)
π KEYWORDS π
HTML, TMML, conversion, manpage, markup, nroff
πΈ CATEGORY πΈ
Documentation tools
π COPYRIGHT π
Copyright (c) 2002 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Copyright (c) 2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
okay that's the whole page, bestie, you ate that π«Άβ¨ this was tcllib version 1.0, the mpexpand(n) page, and yes we're all a little bit obsessed with her. go forth and convert some markup. π
ππ¦
π¦ where this page comes from
- alpine 3.24: tcl-lib-doc 1.21-r1 Β· BSD-2-Clause
- epel 9: tcllib 1.21-1.el9 Β· BSD
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- opensuse-leap 16.0: tcllib 1.21-bp160.1.2 Β· TCL
- Copyright (c) 2002 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- Copyright (c) 2003 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms