diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2019-06-30 03:44:40 +1000 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2019-06-30 04:10:29 +1000 |
commit | 699ac6598d3c54fc6890c9be6780410c82f817ea (patch) | |
tree | bce2303c5ead37259fae63106fb09374119b3027 /contrib/gperl | |
parent | 066a48664571079e1d722045c33a1dd32e65e166 (diff) | |
download | groff-git-699ac6598d3c54fc6890c9be6780410c82f817ea.tar.gz |
*.[157].man: Save and restore compatibility mode.
...where needed. Several pages were using escapes not documented in
CSTR #54 (1992 revision).
There were no _egregious_ portability offenses here; the problems were
mainly:
1. Use of \~ and \: escapes. It's worth noting that the
"makevarescape.sed" script I introduced means that \: escapes can be
hidden inside @FOODIR@ macro expansions. Whether they actually appear
depends on how the "configure" script is invoked, but it's pretty safe
bet, since the script injects them after every "/" in a pathname.
2. Use of \[xx] special character escapes.
There are only 3 man pages left that do not require compatibility mode;
they now use the Vim hint "filetype=nroff" if they didn't already. (Vim
distinguishes groff and nroff syntax highlighting; furthermore, my
private fork of nroff.vim is enhanced to show me many more potential
portability problems.)
Also update comments to make the editor hints consistent and remove some
stale or redundant comments (mostly about installation paths and
filename transformations).
Diffstat (limited to 'contrib/gperl')
-rw-r--r-- | contrib/gperl/gperl.1.man | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/gperl/gperl.1.man b/contrib/gperl/gperl.1.man index ba5cac4f7..aaef2b362 100644 --- a/contrib/gperl/gperl.1.man +++ b/contrib/gperl/gperl.1.man @@ -2,6 +2,12 @@ .SH NAME gperl \- groff preprocessor for Perl parts in roff files . +. +.\" Save and disable compatibility mode (for, e.g., Solaris 10/11). +.do nr gperl_C \n[.C] +.cp 0 +. +. .\" ==================================================================== .\" Legal Terms .\" ==================================================================== @@ -498,11 +504,12 @@ are .BR \%perl (@MAN7EXT@). . . -.\" ==================================================================== -.\" Emacs settings -.\" ==================================================================== +.\" Restore compatibility mode (for, e.g., Solaris 10/11). +.cp \n[gperl_C] +. . .\" Local Variables: .\" mode: nroff +.\" fill-column: 72 .\" End: -.\" vim: set filetype=groff: +.\" vim: set filetype=groff textwidth=72: |