bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: G. Branden Robinson
Subject: [bug #62038] [me] improve `bx` macro support on nroff devices
Date: Sat, 12 Feb 2022 00:49:04 -0500 (EST)

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

                 Summary: [me] improve `bx` macro support on nroff devices
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Sat 12 Feb 2022 05:49:02 AM UTC
                Category: Macro me
                Severity: 2 - Minor
              Item Group: Rendering/Cosmetics
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]