bugGNU roff - Bugs: bug #64141, [troff] `.b` register does not...

 
 

bug #64141: [troff] `.b` register does not report emboldening amount

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Wed 03 May 2023 09:11:50 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 09 May 2023 09:31:19 PM UTC, comment #2: 

original submission:

> This promises to have been broken for a long, long time.


Since at least groff 1.19.2, I can confirm.  But it's such an edge feature I bet it never worked -- suggesting that one valid solution is to deprecate the register in groff.  (It's hard to argue a thing is critical to back compatibility if it hasn't worked in 30 years and no one has ever noticed.)

Dave <barx>
Group Member
Wed 03 May 2023 09:17:52 PM UTC, comment #1: 

The good news is that the actual emboldening of the output works fine; it is only the value of the register .b that is anomalous.

Revised input:


.\" groff calls the PostScript device's default font "TR'.
.\" DWB 3.3 troff called it simply "R", because it didn't group fonts
.\" into families.
FEE FIE FOE FUM
.nf
.ie \n(.g .ds ft TR\"
.el       .ds ft R\"
.bd \*(ft 720
.tm by name: .b=\n(.b
.bd 1 720
.tm by position: .b=\n(.b
FEE FIE FOE FUM


G. Branden Robinson <gbranden>
Group administrator
Wed 03 May 2023 09:11:50 PM UTC, original submission:  

Input:


.\" groff calls the PostScript device's default font "TR'.
.\" DWB 3.3 troff called it simply "R", because it didn't group
.\" fonts into families.
.ie \n(.g .ds ft TR\"
.el       .ds ft R\"
.bd \*(ft 3
.tm by name: .b=\n(.b
.bd 1 3
.tm by position: .b=\n(.b


DWB 3.3 troff output:


$ DWBHOME=. ./bin/troff ./embolden.roff >/dev/null
by name: .b=3
by position: .b=3


groff 1.22.4 output:


$ groff EXPERIMENTS/embolden.roff
by name: .b=0
by position: .b=0


groff Git HEAD output:

$ ./build/test-groff -ww EXPERIMENTS/embolden.roff
troff:EXPERIMENTS/embolden.roff:6: warning: numeric expression missing
by name: .b=0
troff:EXPERIMENTS/embolden.roff:8: warning: numeric expression missing
by position: .b=0


(The -ww flag makes no difference in groff 1.22.4.  groff Git complains more.)

This promises to have been broken for a long, long time.
-verbatim-

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 barx (Posted a comment)
  • -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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-03 gbranden Summary[troff] emboldening request `bd` is broken [troff] `.b` register does not report emboldening amount

    Back to the top

    Powered by Savane 3.13-12ab.
    Corresponding source code