mpexpand - Markup processor
Contents
Bugs, Ideas, Feedback
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please
report such in the category doctools of the TcllibTrackers [http://core.tcl.tk/tcllib/reportlist].
Please also report any ideas for enhancements you may have for either package and/or documentation.
When proposing code changes, please provide unifieddiffs, 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.
Category
Documentation tools
Copyright
Copyright (c) 2002 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Copyright (c) 2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
tcllib 1.0 mpexpand(1)
Description
This manpage describes a processor / converter for manpages in the doctools format as specified in
doctools_fmt. The processor is based upon the package doctools.
mpexpand ?-module module? formatinfile|- outfile|-
The processor takes three arguments, namely the code describing which formatting to generate as
the output, the file to read the markup from, and the file to write the generated output into. If
the infile is "-" the processor will read from stdin. If outfile is "-" the processor will write
to stdout.
If the option -module is present its value overrides the internal definition of the module name.
The currently known output formats are
nroff The processor generates *roff output, the standard format for unix manpages.
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.
latex The processor generates LaTeX output.
wiki The processor generates Wiki markup as understood by wikit.
list The processor extracts the information provided by manpage_begin.
null The processor does not generate any output.
mpexpand.all ?-verbose? ?module?
This command uses mpexpand to generate all possible output formats for all manpages in the current
directory. The manpages are recognized through the extension ".man". If -verbose is specified the
command will list its actions before executing them.
The module information is passed to mpexpand.
Keywords
HTML, TMML, conversion, manpage, markup, nroff
Name
mpexpand - Markup processor
Notes
Possible future formats are plain text, pdf and postscript.
See Also
expander(3tcl), format(3tcl), formatter(3tcl)
Synopsis
mpexpand ?-module module? formatinfile|- outfile|-
mpexpand.all ?-verbose? ?module?
________________________________________________________________________________________________________________
