Commit Graph

13 Commits

Author SHA1 Message Date
Adam Porter 9275068204 man: Escape Org heading-like lines in example 2024-03-28 11:04:05 -05:00
Dirk-Jan C. Binnema 7e89e3715b mu-query: use mu info tables 2024-03-17 10:59:37 +02:00
Stefan van der Walt 7ca566bda6 Document personal and calendar flags 2024-03-16 15:44:09 -07:00
Jeremy Sowden 721aadc140 man: change quoting style
The man-page sources use single quotes to quote text.  However, this can be
problematic in man-pages because if a single quote appears at the beginning of a
line the following word is interpreted by troff as a macro.  For example, this
paragraph in mu-easy.7:

    What if we want to see some of the body of the message? You can get a 'summary'
    of the first lines of the message using the \fI\-\-summary\-len\fP option, which will
   'summarize' the first \fIn\fP lines of the message:

elicits this warning:

    $ man --warnings obj-x86_64-linux-gnu/man/mu-easy.7 >/dev/null
    troff:<standard input>:166: warning: macro 'summarize'' not defined

and gets truncated:

    What  if  we want to see some of the body of the message? You can get a
    'summary' of the first lines of the message using the --summary-len op‐
    tion, which will

One could adjust the line-wrapping to move the quoted text away from the
beginning of the line, but that is fragile.  Another possibility would be to use
the troff escape-sequences for open and close quotes (`\(oq` and `\(cq`
respectively), but ox-man is being used precisely to avoid having to handle
troff directly.  Instead use back-ticks for left quotes.  Thus:

    What if we want to see some of the body of the message? You can get a `summary'
    of the first lines of the message using the \fI\-\-summary\-len\fP option, which will
   `summarize' the first \fIn\fP lines of the message:

which is rendered correctly:

    What  if  we want to see some of the body of the message? You can get a
    `summary' of the first lines of the message using the --summary-len op-
    tion, which will `summarize' the first n lines of the message:

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden c76aa53156 man: fix formatting of `NAME` sections
The command names are formatted inconsistently, e.g.:

    * NAME

    ~mu add~ - add one or more messages to the database

versus:

    * NAME

    *mu cfind* is the *mu* command to find contacts in the *mu* database and export them

versus:

    * NAME

    mu server - the mu backend for the mu4e e-mail client

and the format, with a space between "mu" and the subcommand, is not compatible
with mandb(8).  Use formatting which is consistent and replace the spaces with
hyphens.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden e5fe18c2c2 man: disable captions in tables
The tables don't define any captions, and ox-man outputs a `.TB` macro that
groff does not support.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Dirk-Jan C. Binnema 976266631c man: update query manpage 2023-09-12 21:35:47 +03:00
Dirk-Jan C. Binnema a9bd6e69d3 lib: implement new query parser
Implement a new query parser; the results should be very similar to the
old one, but it adds an Sexp middle-representation, so users can see how
a query is interpreted.
2023-09-09 11:59:59 +03:00
Jeremy Sowden 671a958085 man: fix formatting of some man-page references
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-08-19 12:00:21 +01:00
Dirk-Jan C. Binnema d96e9cc4ba mu-info: improve docs; better colors 2023-07-06 19:13:14 +03:00
Dirk-Jan C. Binnema fee95e1010 man: update documentation (language detection) 2023-05-11 23:29:05 +03:00
Dirk-Jan C. Binnema 4b00ea0635 man: update man pages
Explicitly mention PCRE where appropriate.

Include section headers (through MAN_CLASS_OPTIONS)

Fix mu-easy manpage

Make date dynamic
2022-12-30 11:15:03 +02:00
Dirk-Jan C. Binnema a259ae4162 man: generate manpages from .org files
Generate the manpages from org-documents which makes it a bit easier to
keep them update to date since I find org-syntax easier than troff, and
we can use include files.
2022-12-29 10:41:16 +02:00