bugGNU roff - Bugs: bug #62038, [me] improve `bx` macro support on...

 
 

bug #62038: [me] improve `bx` macro support on nroff devices

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Sat 12 Feb 2022 05:49:02 AM UTC
   
 
Category:  Macro package me 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
   

Mon 14 Feb 2022 06:53:01 AM UTC, comment #1: 


commit cf01ac57e6a0787c1f3abaceffa62bf23c98412a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sat Feb 12 16:49:31 2022 +1100

    [me]: Fix Savannah #62038.

    * tmac/e.tmac (bx): Simulate boxed text support on nroff devices with
      ISO 6429 color escape sequences.  Add further fallback for non-groff
      formatters in nroff mode, bracketing the boxed argument with '|'
      glyphs.

    * doc/meref.me.in: Document it.

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


G. Branden Robinson <gbranden>
Group administrator
Sat 12 Feb 2022 05:49:02 AM UTC, original submission:  

See bug #60477, which did something similar for our ms(7).

Pending patch:

diff --git a/doc/meref.me.in b/doc/meref.me.in
index 3cc4d72dc..e7c35bf81 100644
--- a/doc/meref.me.in
+++ b/doc/meref.me.in
@@ -1199,7 +1199,7 @@ in a box.
 should not be adjusted, hyphenated, or otherwise broken;
 .b .bx
 is reliable only when filling is disabled,
-works poorly in \*N mode,
+is simulated with ISO\~6429 color escape sequences in \*N mode,
 and is ignored by
 .i groff 's
 .b html
diff --git a/tmac/e.tmac b/tmac/e.tmac
index 2a6b0a655..badab08fb 100644
--- a/tmac/e.tmac
+++ b/tmac/e.tmac
@@ -1561,8 +1561,12 @@
 ..
 .
 .de bx                 \" *** enter boxed word
-.ie '\*(.T'html' \\$1\\$2
-.el \k~\(br\|\\$1\|\(br\l'|\\n~u\(rn'\l'|\\n~u\(ul'\^\\$2
+.ie t \
+\{\
+.      ie '\\*(.T'html' \\$1\\$2
+.      el \k~\(br\|\\$1\|\(br\l'|\\n~u\(rn'\l'|\\n~u\(ul'\^\\$2
+.\}
+.el .do nop \m[black]\M[white]\Z'\\$1'\h'\w'\\$1'u'\m[]\M[]\\$2
 ..
 .
 .de sm                 \" *** print in smaller font


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

    Back to the top

    Powered by Savane 3.13-0329.
    Corresponding source code