bugGNU roff - Bugs: bug #62690, [ms] drop...

 
 

bug #62690: [ms] drop "bell_localisms" extensions

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Fri 01 Jul 2022 04:16:06 AM UTC
   
 
Category:  Macro ms Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Jul 2022 07:55:18 PM UTC, comment #2: 


commit 30ebd9a034bb16290ed5efc3730eaeddaea1aa22
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Wed Jul 6 14:24:17 2022 -0500

    [ms]: Fix Savannah #62690.

    * tmac/s.tmac (P1, SC, UC, P2): Drop undocumented support for
      document-private macros used by Kernighan & Cherry's "Typesetting
      Mathematics -- User's Guide (Second Edition)".

    Fixes <https://savannah.gnu.org/bugs/?62690>.


G. Branden Robinson <gbranden>
Group administrator
Fri 01 Jul 2022 04:20:11 AM UTC, comment #1: 

groff ms's definition of `UC` is also inauthentic.  Kernighan and Cherry's `UC` didn't change the typeface, just the point size, and it also worked like ca. 1990 ms font styling macros, accepting a third argument indicating a prefix.

Theirs:


.de UC
\&\\$3\s-2\\$1\\s+2\\$2
..


Ours:


.de UC
.if r bell_localisms \f(CR\\$*\fP
..


G. Branden Robinson <gbranden>
Group administrator
Fri 01 Jul 2022 04:16:06 AM UTC, original submission:  

The localisms in question were not particular to the Unix V7 ms macro package, but specific to Kernighan & Cherry's "Typesetting Mathematics" paper.  They were defined in a file called g.mac which apparently was read before the g[0-5] files that comprised the document proper.


diff --git a/tmac/s.tmac b/tmac/s.tmac
index f72a8d698..258431e14 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -519,11 +519,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ..
 .nr pg*P1 0
 .de P1
-.ie r bell_localisms \{\
-.      DS L
-.      ft CW
-.\}
-.el .nr pg*P1 1
+.nr pg*P1 1
 ..
 .wh -\n[FM]u pg@bottom
 .wh -\n[FM]u/2u pg*footer
@@ -2130,41 +2129,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 .\}
 ..
 .par@load-init
-.\" ****************************
-.\" ******** module bell ********
-.\" ****************************
-.\" Emulate Bell Labs localisms. Note, (a) they're not documented, and
-.\" (b) the .P1 and .UC macros collide with different ones in Berkeley
-.\" ms.
-.\"
-.\" [Correction 2022-04-17: 10th Edition AT&T ms also collides with
-.\" Berkeley's (undocumented) FP macro.]
-.\"
-.\" We hack around this by conditionalizing the behavior of P1; UC was
-.\" not defined by groff and will be a no-op if called Berkeley style
-.\" with no arguments, so there is no problem with hijacking it here.
-.\"
-.\" 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.
-.\"
-.\" P1 is now defined in module pg.
-.de SC
-.nr bell_localisms 1
-.NH
-\\$*
-..
-.de UC
-.if r bell_localisms \f(CR\\$*\fP
-..
-.de P2
-.if r bell_localisms \{\
-.      ft
-.      DE
-.\}
-..
 .\" Local Variables:
 .\" mode: nroff
 .\" fill-column: 72


G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-06 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code