info groff
(セクション5.11文字変換)に
よると\.
、ドットだけを印刷する必要があります。しかし、これは起こっているように見えることではありません。このマンページをレンダリングすると
.TH x x x x
\.SH foo
foo
セクション見出しとしてレンダリングされ、.SH
印刷されません。
では、なぜこれが発生するのでしょうか。また、groffの行の先頭で、ドット(およびアポストロフィ)をどのようにエスケープするのでしょうか。
行頭のドットをエスケープするには、次のように記述します\[char46]
。
\[char46]SH foo
プリント
.SH foo
これは予期される動作ですが、マニュアルページで修正する必要があります。これがバグレポートです。
\\
以下に、 (短縮)と\.
(情報ページから)の両方の説明を読むことができます。
-- Escape: \\
[...]
`\\' is a `delayed' backslash; more precisely, it is the default
escape character followed by a backslash, which no longer has
special meaning due to the leading escape character. It is _not_
an escape sequence in the usual sense! In any unknown escape
sequence `\X' the escape character is ignored and X is printed.
But if X is equal to the current escape character, no warning is
emitted.
As a consequence, only at top-level or in a diversion a backslash
glyph is printed; in copy-in mode, it expands to a single
backslash which then combines with the following character to an
escape sequence.
[...]
-- Escape: \.
Similar to `\\', the sequence `\.' isn't a real escape sequence.
As before, a warning message is suppressed if the escape character
is followed by a dot, and the dot itself is printed.
ドットの前に幅ゼロの文字を追加するだけです。
\&. -- this a a dot.
または一時的に別の制御文字に切り替えます。
.cc #
. -- this is a dot.
#cc