bugGNU roff - Bugs: bug #60477, [ms]: BX is not useful on terminal...

 
 

bug #60477: [ms]: BX is not useful on terminal devices

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Thu 29 Apr 2021 01:58:34 PM UTC
   
 
Category:  Macro package 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
   

Fri 30 Apr 2021 08:16:06 AM UTC, comment #1: 

Fixed.  Also attaching updated screenshot showing improved behavior, and, since I don't have a regression test for this (because doing so would require parsing/scraping groff -Z output or, worse, terminal output with embedded escape sequences), a demonstrator document.


commit e260fc23612e9c865a01bc25fbc154fe67608680
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Fri Apr 30 17:44:12 2021 +1000

    [ms]: Support .BX better in nroff mode.

    * tmac/s.tmac (BX): Add alternative implementation for terminal (nroff)
      devices.  Store width of boxed text, adding .4m only on troff devices
      (to make room for the vertical box lines).  Break long input line in
      troff implementation.  If not in troff mode, use ISO 6429 color
      escapes to render boxed text in black on white.  Use the \Z escape to
      match breaking semantics of macro in troff mode.

    * doc/groff.texi (Highlighting in ms) <BX>:
    * doc/ms.ms (Highlighting) <BX>:
    * tmac/groff_ms.7.man (Usage/Highlighting) <BX>: Document it.

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


file #51340)

G. Branden Robinson <gbranden>
Group administrator
Thu 29 Apr 2021 01:58:34 PM UTC, original submission:  

ms is not able to usefully box words on character-cell terminals.

See attached screenshot.

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:
   

Attached Files
file #51340:  bx.ms added by gbranden (344B - text/x-troff-ms)
file #51337:  groff_ms_BX_nroff.png added by gbranden (46KiB - image/png)

 

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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-30 gbranden Attached File- Added groff_ms_BX_nroff_better.png, #51339
        Attached File- Added bx.ms, #51340
        StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0
    2021-04-29 gbranden Attached File- Added groff_ms_BX_nroff.png, #51337

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code