From: "Benno Schulenberg" <bensberg@justemail.net>
To: kerolasa@gmail.com
Cc: "Karel Zak" <kzak@redhat.com>, "util-linux" <util-linux@vger.kernel.org>
Subject: Re: man-pages and usage() howto
Date: Tue, 23 Aug 2011 20:55:47 +0200 [thread overview]
Message-ID: <1314125747.31287.140258132893109@webmail.messagingengine.com> (raw)
In-Reply-To: <CAG27Bk2NS7-tRH4Acp-_WFhAmxELm4cCZ79mwgbXWnDJ7gFAfw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]
On Tue, 23 Aug 2011 10:15 +0200, "Sami Kerola" <kerolasa@iki.fi> wrote:
> On Mon, Aug 22, 2011 at 22:38, Benno Schulenberg <bensberg@justemail.net> wrote:
> > (I do not understand your comment about some macros not being
> > visually different from plain .B or .I.)
>
> Either my term, groff or pager is/are broken, or I have wooden eyes or
> the different highlights do not stand out, see yourself:
>
> http://ut3.org/~kerolasa/groff-highlight.png
>
> What I tried to say; Do not get fooled that different macros will look
> different so that you can refer visually in between different text
> elements.
Hmm, maybe you misunderstand what for example the .BI macro does?
It does not mean "bold _plus_ italic" but "alternate bold and italic". And it
does that perfectly. See for example the attached example file.
> > Another thing: the man page formatter itself puts a double space after a
> > period when in the man page source the next sentence begins on a new
> > line. So when in the source a new sentence begins somewhere midline,
> > it should use a double space before its initial letter.
>
> Are you sure it does that?
Yes, it does that here, on Ubuntu Lucid 10.10, with man 2.5.7.
> See the screenshot notes section third
> paragraph line two, words `macros. See' has only single space in
> between them.
Yes, but in the source it says "appropriate groff macros. See" on a single
line. When you put the "See" on a line by itself, you wil see two spaces
appear before it. See the attached example file.
> Even there would be two spaces I do not agree that groff
> input writer should imitate output. It should be enough that words and
> sentences are white space separated, groff will take care the rest.
Well, being a doublespacer myself, I notice it when some sentences are
single-spaced and others double; it irks. But never mind.
Regards,
Benno
--
http://www.fastmail.fm - A fast, anti-spam email service.
[-- Attachment #2: junk.1 --]
[-- Type: application/octet-stream, Size: 549 bytes --]
.TH JUNK 1 "Today" "Example" "Spaciousness"
.SH NAME
junk \- do nothing
.SH DESCRIPTION
.B junk
does nothing.
Just show.
That.
After.
.PP
Each period.
Plus newline.
Follow two spaces.
.SH FORMATTING
.PP
.BR \.BR\ alternate\ bold\ and\ normal\ and\ so\ on\ and\ so\ on
.PP
.BI \.BI\ alternate\ bold\ and\ italic
.PP
.IB \.IB\ alternate\ italic\ and\ bold
.PP
.IR \.IR\ alternate\ italic\ and\ normal
.PP
.RB \.RB\ alternate\ normal\ and\ bold
.PP
.RI \.RI\ alternate\ normal\ and\ italic\ and\ so\ on\ and\ so\ on
next prev parent reply other threads:[~2011-08-23 18:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-15 14:19 man-pages and usage() howto Karel Zak
2011-08-15 19:12 ` Sami Kerola
2011-08-16 9:03 ` Benno Schulenberg
2011-08-16 10:46 ` Karel Zak
2011-08-17 13:07 ` Sami Kerola
2011-08-20 9:10 ` Benno Schulenberg
2011-08-20 19:08 ` Sami Kerola
2011-08-21 10:56 ` Sami Kerola
2011-08-22 8:16 ` Karel Zak
2011-08-22 18:53 ` Sami Kerola
2011-08-22 20:38 ` Benno Schulenberg
2011-08-23 8:15 ` Sami Kerola
2011-08-23 18:55 ` Benno Schulenberg [this message]
2011-08-23 19:34 ` Sami Kerola
2011-08-16 10:39 ` Karel Zak
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=1314125747.31287.140258132893109@webmail.messagingengine.com \
--to=bensberg@justemail.net \
--cc=kerolasa@gmail.com \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.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