From: Phil Sutter <phil@nwl.cc>
To: Jan Engelhardt <jengelh@inai.de>
Cc: Arturo Borrero Gonzalez <arturo@netfilter.org>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Netfilter Development Mailing list
<netfilter-devel@vger.kernel.org>
Subject: Re: [nft PATCH RFC] Convert man page source to asciidoc
Date: Fri, 8 Sep 2017 10:53:21 +0200 [thread overview]
Message-ID: <20170908085321.GJ2399@orbyte.nwl.cc> (raw)
In-Reply-To: <nycvar.YFH.7.76.1709061608280.4856@n3.vanv.qr>
On Wed, Sep 06, 2017 at 04:29:00PM +0200, Jan Engelhardt wrote:
>
> On Wednesday 2017-09-06 16:02, Phil Sutter wrote:
> >> Knowing that, people just avoid them most of the time for groff - and if I may
> >> say so, it has not reduced the document quality.
> >
> >Right now, nft.8 makes extensive use of tables which is why I considered
> >proper table support an important feature. OTOH I didn't experience
> >rendering issues with them in nft.8, did you?
>
> I do. For some reason, the right margin of the table is 60% of the
> terminal width. (width 120 => table up to col #63, terminal 80 cols
> => table up to col #50).
Oh, I see that too, also in my asciidoc PoC. Explicitly setting the
table width to 100% doesn't help either. Maybe this is a problem in
groff? The tables span the whole page in asciidoc's PDF output at least.
[...]
> However, what I tried to express is the problem with tables is that
> one column has almost no text and another has a lot of it, like this
> one. This causes large amounts of whitespace in column 1 in this
> case. Personally, I would have placed the hooks and their
> explanations as (the equivalent of)
>
> .TP
> \fBprerouting\fP
> All packets enter ...
> .TP
> \fBinput\fP
> Packets delivered ...
>
> Or if the source material was HTML, perhaps just
>
> <ul>
> <li><b>prerouting</b>: All packets enter...</li>
> <li><b>input</b>: Packets delivered...</li>
> </ul>
Yes, we should indeed convert two-column tables to these labeled lists
if they are merely keyword descriptions. I'm not sure about other cases,
sometimes having the table headings allows to provide information in a
more compact form than embedding everything into a paragraph of text.
[...]
> In another way, I could also ask why hooks are in tables, and commands
> ("add", "flush", etc.) are in TP-style. What makes hooks so special that
> they deserve a table, despite their keyword being the same short length
> as the commands.
Many of the tables seem to be there for reasons of document structure,
e.g. those below DATA TYPES. I don't think that is a bad thing per se.
> >> >> There are many markup languages, it reminds me to xkcd #927 [0].
> >> >
> >> >Well, the difference here is that I'm not inventing anything new but
> >> >search for better options amongst the existing solutions. :P
> >>
> >> That would be to stay with docbook then, because RST/MD/A2 do not seem to have
> >> left themselves a lot of room for later extension.
> >
> >What extensions do you have in mind?
>
> I kind of left that open; it seemed you implied there is something
> (the "better option") that MD couldn't do that asciidoc could. That
> thing, docbook should already have.
I think docbook is the most "feature complete" solution amongst those
mentioned. My personal motivation to replace it is basically founded by
two things:
1) XML is not quite editor-friendly. I found myself spending way more
time opening and closing tags than I had anticipated for whenever I
worked on content.
2) I didn't like how docbook formats synopfragment/synopfragmentref
constructs. Maybe this could be changed by using some customization
though. Also I didn't see an equivalent to it in asciidoc - BNF-style
referencing is done manually there.
Cheers, Phil
prev parent reply other threads:[~2017-09-08 8:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-06 8:41 [nft PATCH RFC] Convert man page source to asciidoc Phil Sutter
2017-09-06 9:56 ` Arturo Borrero Gonzalez
2017-09-06 11:34 ` Pablo Neira Ayuso
2017-09-06 11:53 ` Jan Engelhardt
2017-09-06 11:58 ` Phil Sutter
2017-09-06 13:25 ` Jan Engelhardt
2017-09-06 14:02 ` Phil Sutter
2017-09-06 14:29 ` Jan Engelhardt
2017-09-08 8:53 ` Phil Sutter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170908085321.GJ2399@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=arturo@netfilter.org \
--cc=jengelh@inai.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).