From fa25d08e39dc9b5eb011d013eecdc43cd9ef6696 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Thu, 1 Feb 2007 09:36:19 +0000 Subject: [PATCH] Add some Bell labs extensions to the -ms macros. * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros. * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'. --- ChangeLog | 8 ++++++++ NEWS | 4 ++++ doc/groff.texinfo | 16 ++++++++++++++++ tmac/groff_ms.man | 29 +++++++++++++++++++++++++++-- tmac/s.tmac | 27 +++++++++++++++++++++++++++ 5 files changed, 82 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1efd2655..9c451f08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-02-01 Eric S. Raymond + + Add some Bell labs extensions to the -ms macros. + + * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros. + + * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'. + 2007-01-30 Werner LEMBERG * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX]. diff --git a/NEWS b/NEWS index ab66d5c7..7334980c 100644 --- a/NEWS +++ b/NEWS @@ -121,6 +121,10 @@ o A new auxiliary macro package `62bit' has been added which provides some macros for adding, multiplying, and dividing signed 62bit integers (mainly to handle normal groff number operations without risking overflow errors). +o For -ms, Eric S. Raymond contributed support for ancient Bell Labs + localisms `.SC', `.UC', `.P1', and `.P2' when the command-line switch + `-r bell=1' is given. + VERSION 1.19.2 ============== diff --git a/doc/groff.texinfo b/doc/groff.texinfo index 9bbc317e..1be1473f 100644 --- a/doc/groff.texinfo +++ b/doc/groff.texinfo @@ -4411,6 +4411,22 @@ Cover sheet information A cover sheet macro @end table +Emulations of a few ancient Bell Labs macros can be re-enabled with +the @code{groff} command-line option @w{@samp{-r bell=1}}. They are +@code{SC}, @code{UC}, @code{P1}, and @code{P2}. + +These are not enabled by default because (a)@tie{}they were not documented, +in the original @code{ms} manual, and (b)@tie{}the @code{P1} and @code{UC} +macros collide with different macros with the same names in the +Berkeley version of @code{ms}. + +These @code{groff} emulations are sufficient to give back the +1976 Kernighan@tie{}& Cherry paper @cite{Typsetting Mathematics -- User's +Guide} its section headings, and restore some text that had gone +missing as arguments of undefined macros. No warranty express or +implied is given as to how well the typographic details these produce +match the original Bell Labs macros. + @c --------------------------------------------------------------------- @node Additional ms Macros, , Missing ms Macros, Differences from AT&T ms diff --git a/tmac/groff_ms.man b/tmac/groff_ms.man index a9e0aee4..331c7cce 100644 --- a/tmac/groff_ms.man +++ b/tmac/groff_ms.man @@ -1,6 +1,6 @@ '\" t .ig -Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005, 2006 +Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of @@ -1298,7 +1298,32 @@ is to detect and report errors, rather than silently to ignore them. . .IP \(bu -Bell Labs localisms are not implemented. +Some Bell Labs localisms are not implemented by default. +However, by giving the command-line option +.B "-r\ bell=1" +you can enable implementations of the archaic Bell Labs macros +.BR SC , +.BR UC , +.BR P1 , +and +.BR P2 . +These are not enabled by default because (a)\~they were not documented, +in the original +.IR "ms manual" , +and (b)\~the +.B P1 +and +.B UC +macros both collide with different macros in the Berkeley version of +.IR ms . +The +.B "-r\ bell=1" +emulations are sufficient to give back the 1976 Kernighan\~& Cherry paper +.I "Typsetting Mathematics \(en User's Guide" +its section headings, and restore some text that had gone missing as +arguments of undefined macros. +No warranty express or implied is given as to how well the typographic +details these produce match the original Bell Labs macros. . .IP \(bu Berkeley localisms, in particular the diff --git a/tmac/s.tmac b/tmac/s.tmac index f652c005..286ef75c 100644 --- a/tmac/s.tmac +++ b/tmac/s.tmac @@ -2073,4 +2073,31 @@ Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. . \} .. .par@load-init +.\" **************************** +.\" ******** module bell ******** +.\" **************************** +.\" Emulate Bell Labs localisms by setting `-r bell=1' on the command line. +.\" They're not enabled by default because (a) they're not documented, and +.\" (b) the .P1 macro collides with a different one in the Berkeley version. +.\" What's done here is sufficient to give back the Guide to EQN (1976) its +.\" section headings and restore some text that had gone missing as macro +.\" arguments; no warranty express or implied is given as to how well the +.\" typographic details these produce match the original Bell Labs macros. +.if r bell \{\ +.de SC +.NH +\\$* +.. +.de UC +\f(CW\\$*\fP +.. +.de P1 +.DS L +ft CW +.. +.de P2 +.ft +.DE +.. +.\} .\" Make sure that no blank lines creep in at the end of this file. -- 2.11.4.GIT