[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60477] [ms]: BX is not useful on terminal devices
From: |
G. Branden Robinson |
Subject: |
[bug #60477] [ms]: BX is not useful on terminal devices |
Date: |
Fri, 30 Apr 2021 04:16:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #60477 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.23.0
_______________________________________________________
Follow-up 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 #51339, file #51340)
_______________________________________________________
Additional Item Attachment:
File name: groff_ms_BX_nroff_better.png Size:56 KB
<https://file.savannah.gnu.org/file/groff_ms_BX_nroff_better.png?file_id=51339>
File name: bx.ms Size:0 KB
<https://file.savannah.gnu.org/file/bx.ms?file_id=51340>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60477>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/