From 104f2006ea454c2f6d4e0fccbba7c1467da1d7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 2 Dec 2020 00:12:18 +0100 Subject: Add documentation --- index.html | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 index.html (limited to 'index.html') diff --git a/index.html b/index.html new file mode 100644 index 0000000..991444e --- /dev/null +++ b/index.html @@ -0,0 +1,151 @@ + + + + + + +
mht(1)General Commands Manualmht(1)
+
+
+

+mht — +
troff for HTML
+
+
+

+ + + + + +
mht[file]
+
+
+

+mht is a utility that generates HTML from + troff(1) source code. +

While mht is named like a troff macro + package and uses troff syntax, it is a standalone utility that does not use + troff itself. As such, it supports only a subset of the standard troff + requests.

+
+
+

+This section describes the various types of requests supported by + mht. On the left side are the name and arity of each + request, separated by a slash. On the right side is the HTML expansion of each + request. +

In the HTML expansion of all element requests, a backslash and a + dollar sign followed by a number (e.g. \$1) signify a parameter + expansion.

+

In block element requests, a percent sign (%) signifies the lines + following the request until the next block element request.

+

Finally, in contiguous element requests, whatever text is on the + outside of the area delimited by braces ({...}) is removed when two of the + same contiguous element requests are placed next to one another.

+
+

+
+
br/0
+
<br>
+
+
+
+

+
+
Qp/0
+
<blockquote>{<p>%</p>}</blockquote>
+
+
+
+

+
+
Pp/0
+
<p>%</p>
+
Pr/0
+
<pre>%</pre>
+
Sh/0
+
<h3>%</h3>
+
Sh/1
+
<h\$1>%</h\$1>
+
Ti/0
+
<title>%</title>
+
+
+
+

+
+
Au/1
+
<meta name="author" content="\$1"/>
+
Bd/1
+
<b>\$1</b>
+
Bd/2
+
<b>\$1</b>\$2
+
Bd/3
+
\$3<b>\$1</b>\$2
+
br/0
+
<br/>
+
Cd/1
+
<code>\$1</code>
+
Cd/2
+
<code>\$1</code>\$2
+
Cd/3
+
\$3<code>\$1</code>\$2
+
Cs/1
+
<meta http-equiv="Content-Type" content="text/html; + charset=\$1"/>
+
Em/1
+
<em>\$1</em>
+
Em/2
+
<em>\$1</em>\$2
+
Em/3
+
\$3<em>\$1</em>\$2
+
Hy/2
+
<a href="\$2">\$1</a>
+
Im/2
+
<img src="\$1" alt="\$2"/>
+
It/1
+
<i>\$1</i>
+
It/2
+
<i>\$1</i>\$2
+
It/3
+
\$3<i>\$1</i>\$2
+
St/1
+
<strong>\$1</strong>
+
St/2
+
<strong>\$1</strong>\$2
+
St/3
+
\$3<strong>\$1</strong>\$2
+
Tt/1
+
<tt>\$1</tt>
+
Tt/2
+
<tt>\$1</tt>\$2
+
Tt/3
+
\$3<tt>\$1</tt>\$2
+
Ul/1
+
<u>\$1</u>
+
Ul/2
+
<u>\$1</u>\$2
+
Ul/3
+
\$3<u>\$1</u>\$2
+
+
+
+
+

+mht is written by John Ankarström + <john + (at) + ankarstrom.se>. +
+
+ + + + + +
December 2, 2020Linux 5.4.72-0-lts
-- cgit v1.2.3