DHTML(1)
π DHTML(1) β dhtml: HTML postprocessor for troff π
okay bestie, welcome to the DHTML(1) page β manual name folded in right up here at the top like a little name tag. the command is dhtml, and itβs an HTML postprocessor for troff, periodt. letβs go. β¨
πΈ NAME πΈ
dhtml β HTML postprocessor for troff.
π¦ SYNOPSIS π¦
dhtml [-t title] < ditroff_output > html_output
β¨ DESCRIPTION β¨
okay so dhtml is the HTML postprocessor for troff(1). it reads the ditroff output from STDIN and writes HTML5 output to STDOUT. for this to work, troff must in this case be called with option -Thtml. no cap.
Missing charaters (thatβs the pageβs spelling, not mine π) can be added by changing the files charset and CHAR β see the FILES section for the whole situation. For adding fonts, the tool needs to be recompiled. currently the legacy fonts R I B BI C CW CR CI CB H HI HB S are available.
π Options π
-ttitle β set text for the HTML<title>tag.
π FILES π
source_dir/troff/troff.d/font/devhtml/charsetβ thecharsetwhich is appended to each font description file at installation of the tool. after changes of this file, run# make install, okay?/usr/share/heirloom-doctools/font/devhtml/CHARβ Character to HTML name mapping which is read at each run ofdhtml.
π EXAMPLES π
tbl manpage | troff -Thtml -mandoc \
| dhtml -t html_title > html_file
convert manpage into HTML format with title html_title and save it as html_file.
π SEE ALSO π
troff(1), dpost(1) β go give them a read too, bestie.
π BUGS π
For the current version, no changes to the ditroff interface are done. all information for formatting the HTML page is taken from legacy ditroff commands. as a consequence, the alignment cannot be as accurate as in the dpost(1) output, since the character widths of HTML fonts must be supposed to be unknown. itβs giving βweβre doing our best with legacy teaβ energy, fr fr.
At the moment no HTML tables are generated. tbl(1) (without options) can be used for preprocessing, but mayor alingment issues may result (their spelling, not mine π). There is no support for equations, graphics, images, and links in this versions (again, their words). These features are subject to be implemented later.
π thatβs the whole DHTML(1) page, bestie β source/version + date sign-off: DHTML(1), dated September 18, 2015. now go make some iconic HTML and slay β¨π
π¦ where this page comes from
- alpine 3.24: heirloom-doctools-doc 191015-r6 Β· CDDL-1.1
- Copyright (c) 2015, Carsten Kunze
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms