From: John Spencer <maillist-musl-Am5OCHYCrcUb1SvskN2V4Q@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: John Spencer
<maillist-musl-Am5OCHYCrcUb1SvskN2V4Q@public.gmane.org>,
"linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Andrew Josey <ajosey-7882/jkIBncuagvECLh61g@public.gmane.org>,
Felix Janda <felix.janda-1KBjaw7Xf1+zQB+pC5nmwQ@public.gmane.org>,
Rich Felker <dalias-/miJ2pyFWUyWIDz0JBNUog@public.gmane.org>,
Rob Landley <rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org>,
Matthew Dempsky <matthew-bfSpyvURsAhAfugRpC6u6w@public.gmane.org>
Subject: Re: POSIX.1-2013 man pages for review
Date: Fri, 20 Sep 2013 15:09:03 +0200 [thread overview]
Message-ID: <523C48EF.5080309@barfooze.de> (raw)
In-Reply-To: <CAKgNAki+jTS9rkORvcPNxWcStNjnNTnt_jqBYcfoaYm7d4GxqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hello Michael, Felix,
On 09/19/2013 01:00 PM, Michael Kerrisk (man-pages) wrote:
>> i've run a test script[0] using my own manpage viewer[1]
>> and attached the results. it seems that ~10% of the manpages use some
>> special groff features. i'd rather see these removed/replaced with something
>> nroff-compatible.
>
> I just want to check where you're coming from John. You're working on
> musl, right? Does musl not use the work from the man-pages project? I
> ask, because some of the pieces that your script doesn't like are also
> used in the man-pages project. See below.
musl itself does not use the man-pages project currently, as the
majority of manpages are very glibc specific. so the posix manpages
project is _imo_ currently a much better documentation for the
interfaces provided by musl.
i can't remember the exact outcome of the previous discussion on the
musl mailing list, ("Linux manpages (was Re: [musl] Request for
volunteers)"), but afaik it is unlikely that the man-pages project will
be updated as discussed in that thread before musl 1.0 is out.
however, my interest in having the POSIX manpages use portable nroff
syntax comes from my endeavor to build a non-bloated musl-based linux
system, which will, at least in the basic configuration, feature the
below nroff-only manpage viewer, since groff is incredibly bloated (over
4 MB of compressed source code! - in comparison my man.c compiles to a
60 KB statically linked binary) and written in C++ so it's definitely
contrary to my goals. (not to talk about that some of the groff features
like the tbl preprocessor are just horribly misguided and completely
unidiomatic, introducing a completely new language namespace)
as such i'd love to see the POSIX manpages project actually deliver
portable manpages, instead of assuming that the full-blown GNU userspace
stack is available.
>
>> [0] https://github.com/rofl0r/hardcore-utils/blob/master/tests/mantest.sh
>> [1] https://github.com/rofl0r/hardcore-utils/blob/master/man.c
>
> Looking at your log:
>
>> === status report ===
>> total manpages : 1143
>> buggy manpages : 137
>> total failures : 406
>> unique failures : 12
>>
>> bug list:
>> 122 **** Unknown formatter command: .ne
>
> Not sure about this one. From groff(7):
>
> .ne Need a one-line vertical space.
> .ne N Need N vertical space (default scaling indicator v).
>
> I'm not sure about the circumstances where these are being applied. Felix?
>
>> 106 **** Unknown formatter command: .TS
>> 106 **** Unknown formatter command: .TE
>
> These two are heavily used for tables in the man-pages project itself.
> What's the problem/alternative?
the problem is A) that it requires groff's tbl preprocessor, which in
turn requires the full groff install, and B) that the tag cannot simply
be ignored becaused the content embedded into those tags follows a
completely random new syntax - example:
http://www.podgrid.org/linux-bible/linux-bible-page607.html
the alternative is to apply the tbl preprocessor before shipping the
manpages and instead include the preprocessed output (cleaned up from
groffisms as well)
as for the other groff specific formatter commands, i am refering to
Felix' response: all of them can either be left away or in case of tbl
and eqn the preprocessed source used instead.
Thanks,
--JS
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-09-20 13:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 7:59 POSIX.1-2013 man pages for review Michael Kerrisk (man-pages)
[not found] ` <523AAEEE.5090602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-19 8:44 ` John Spencer
[not found] ` <523AB978.2080607-Am5OCHYCrcUb1SvskN2V4Q@public.gmane.org>
2013-09-19 11:00 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAki+jTS9rkORvcPNxWcStNjnNTnt_jqBYcfoaYm7d4GxqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-19 17:47 ` Felix Janda
2013-09-20 13:09 ` John Spencer [this message]
[not found] ` <523C48EF.5080309-Am5OCHYCrcUb1SvskN2V4Q@public.gmane.org>
2013-09-20 17:50 ` Simon Paillard
2013-09-20 17:54 ` Felix Janda
2013-09-21 12:20 ` John Spencer
[not found] ` <523D8F06.9060801-Am5OCHYCrcUb1SvskN2V4Q@public.gmane.org>
2013-09-22 19:25 ` Felix Janda
2013-09-24 13:30 ` John Spencer
2013-10-01 23:16 ` Rob Landley
-- strict thread matches above, loose matches on Subject: below --
2013-12-09 17:58 Xose Vazquez Perez
[not found] ` <52A604CD.6040502-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-04 10:17 ` Michael Kerrisk (man-pages)
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=523C48EF.5080309@barfooze.de \
--to=maillist-musl-am5ochycrcub1svskn2v4q@public.gmane.org \
--cc=ajosey-7882/jkIBncuagvECLh61g@public.gmane.org \
--cc=dalias-/miJ2pyFWUyWIDz0JBNUog@public.gmane.org \
--cc=felix.janda-1KBjaw7Xf1+zQB+pC5nmwQ@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matthew-bfSpyvURsAhAfugRpC6u6w@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=rob-VoJi6FS/r0vR7s880joybQ@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.