bugGNU roff - Bugs: bug #62187, [man] doesn't reset font family...

 
 

bug #62187: [man] doesn't reset font family except in `EE`

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Tue 15 Mar 2022 07:27:25 AM UTC
   
 
Category:  Macro package man Severity:  2 - Minor
Item Group:  Rendering/Cosmetics Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Mar 2022 04:44:27 AM UTC, comment #1: 


commit e0e16d8e659e8ce9165dee7f91a066559c2c9a61
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Mar 15 19:27:35 2022 +1100

    [man]: Recover faster from missing `EE` calls.

    * tmac/an.tmac: Recover more quickly from missing `EE` calls.

      (initialization): Define new strings, `an*body-family` and
      `an*example-family` to house the font families used in these rendering
      contexts.

      (TH, SH, SS): Restore the font family to `an*body-family`.

      (TH): Set font style to roman as well.

      (EX): Change to `an*example-family` instead of literal "C".

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


G. Branden Robinson <gbranden>
Group administrator
Tue 15 Mar 2022 07:27:25 AM UTC, original submission:  

I omitted a `EE` call in one man page recently, and this caused the font family to get stuck in Courier until another `EE` call was eventually encountered, more than one document later.

This led to ordinary body text being set in Courier.

That is not desirable.

The font family should be reset periodically.  I don't think paragraphing macros are a good place to do it, because one may need an extended example with multiple paragraphs.

I nominate the (sub)sectioning macros.  An example in a well-formed man page will not cross a (sub)section boundary.

While I'm there, I'll parameterize the body and example families, but not yet expose strings for them.

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-03-18 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code