mpexpand(1)
๐ mpexpand โ Markup processor (yes bestie, it's giving documentation toolbox)
okay so welcome to the mpexpand(1) page, the manual page manual page processor, we're going meta today ๐ธ
โจ SYNOPSIS โจ
mpexpand ?-module module? format infile|- outfile|-
mpexpand.all ?-verbose? ?module?
๐ฆ DESCRIPTION ๐ฆ
This page is literally about a processor / converter for manpages that are written in the doctools format, as specified in doctools_fmt. The whole thing is built on top of the package doctools. iconic, no notes ๐
๐ the mpexpand command
mpexpand ?-module module? format infile|- outfile|-
So this one takes three arguments, bestie, and you need all of them:
- the code that says which formatting to generate as the output,
- the file to read the markup from, and
- the file to write the generated output into.
If infile is -, the processor reads from stdin instead. If outfile is -, it writes to stdout instead. yes, dashes are doing main character energy here ๐ซถ
If the option -module is present, its value overrides the internal definition of the module name. that's it, that's the override.
๐ the currently known output formats
nroffโ the processor generates*roffoutput, the standard format for unix manpages. the classic. the blueprint. ๐htmlโ generates HTML output, for usage in and display by web browsers. web girlies rise up ๐tmmlโ generates TMML output, the Tcl Manpage Markup Language, which is a derivative of XML.latexโ generates LaTeX output. for the academic besties โจwikiโ generates Wiki markup as understood bywikit.listโ the processor extracts the information provided bymanpage_begin. just the info, no vibes.nullโ the processor does not generate any output. it said "no thoughts, head empty" ๐ง
๐ the mpexpand.all command
mpexpand.all ?-verbose? ?module?
This command uses mpexpand to generate all possible output formats for all manpages in the current directory. an overachiever fr fr ๐
The manpages get recognized through the extension .man โ that's the vibe check they have to pass.
If -verbose is specified, the command will list its actions before executing them. very "narrating my own life" of it.
The module information is passed to mpexpand. (that's the ?module? up there, iykyk)
โญ NOTES โญ
Possible future formats are plain text, pdf and postscript. not here yet, but the vision is real ๐ฎ
๐ BUGS, IDEAS, FEEDBACK ๐
This document, and the package it describes, will undoubtedly contain bugs and other problems. honestly, same. ๐ญ
Please report such in the category doctools of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation. they want the ideas, bestie, send them ๐ซถ
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. yes, the left-most one, don't make me repeat it ๐
๐ธ SEE ALSO ๐ธ
expander(3tcl)format(3tcl)formatter(3tcl)
๐ 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>
and that's the whole page, bestie!! brought to you by tcllib, version 1.0, in the mpexpand(1) era โ stay slay, stay documented, and remember: if infile is -, it's stdin, periodt ๐๐๐ฆ
๐ฆ where this page comes from
- debian bookworm: tcllib 1.21+dfsg-1 ยท BSD
- debian trixie: tcllib 2.0+dfsg-4 ยท Tcl
- ubuntu jammy: tcllib 1.20+dfsg-1 ยท BSD
- ubuntu noble: tcllib 1.21+dfsg-1 ยท BSD
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 ยท Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 ยท 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