From 869295358540c06765b31f853e55b6d6d2e5a99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 11 Dec 2020 00:24:14 +0100 Subject: mht, mht.1: Remove strict arities Now, superfluous or missing arguments will be silently ignored. Furthermore, only one definition of the same request is allowed. But on the upside, the system is a whole lot simpler and can be made even more flexible in the future than before. --- mht.1 | 74 +++++++++++++++++++++---------------------------------------------- 1 file changed, 23 insertions(+), 51 deletions(-) (limited to 'mht.1') diff --git a/mht.1 b/mht.1 index 75ab3c2..f1bb73c 100644 --- a/mht.1 +++ b/mht.1 @@ -26,8 +26,8 @@ As such, it supports only a subset of the standard troff requests. .Pp This section describes the various types of requests supported by .Nm . -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. +On the left side is the name of the request. +On the right side is the HTML expansion. .Pp 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. .Pp @@ -36,79 +36,51 @@ In block element requests, a percent sign (%) signifies the lines following the 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. .Ss Standard troff requests .Bl -tag -.It Sy \&br/0 +.It Sy \&br
.El .Ss Contiguous element requests .Bl -tag -.It Sy \&Qp/0 +.It Sy \&Qp
{

%

}
.El .Ss Block element requests .Bl -tag -.It Sy \&Pp/0 +.It Sy \&Hh +% +.It Sy \&Pp

%

-.It Sy \&Pr/0 +.It Sy \&Pr
%
-.It Sy \&Sh/0 +.It Sy \&Sh

%

-.It Sy \&Sh/1 -% -.It Sy \&Ti/0 +.It Sy \&Ti % .Ss Inline element requests .Bl -tag -.It Sy \&Au/1 +.It Sy \&Au -.It Sy \&Bd/1 -\\$1 -.It Sy \&Bd/2 -\\$1\\$2 -.It Sy \&Bd/3 +.It Sy \&Bd \\$3\\$1\\$2 -.It Sy \&br/0 -
-.It Sy \&Cd/1 -\\$1 -.It Sy \&Cd/2 -\\$1\\$2 -.It Sy \&Cd/3 +.It Sy \&Cd \\$3\\$1\\$2 -.It Sy \&Cs/1 +.It Sy \&Cs -.It Sy \&Em/1 -\\$1 -.It Sy \&Em/2 -\\$1\\$2 -.It Sy \&Em/3 +.It Sy \&Da + +.It Sy \&Em \\$3\\$1\\$2 -.It Sy \&Hy/2 +.It Sy \&Hy \\$1 -.It Sy \&Im/2 +.It Sy \&Im \\$2 -.It Sy \&It/1 -\\$1 -.It Sy \&It/2 -\\$1\\$2 -.It Sy \&It/3 +.It Sy \&It \\$3\\$1\\$2 -.It Sy \&St/1 -\\$1 -.It Sy \&St/2 -\\$1\\$2 -.It Sy \&St/3 +.It Sy \&St \\$3\\$1\\$2 -.It Sy \&Tt/1 -\\$1 -.It Sy \&Tt/2 -\\$1\\$2 -.It Sy \&Tt/3 +.It Sy \&Tt \\$3\\$1\\$2 -.It Sy \&Ul/1 -\\$1 -.It Sy \&Ul/2 -\\$1\\$2 -.It Sy \&Ul/3 +.It Sy \&Ul \\$3\\$1\\$2 .El . -- cgit v1.2.3