bugGNU troff - Bugs: bug #63158, [ms] consider exposing internal...

 
 

bug #63158: [ms] consider exposing internal register `nh*hl` as `HL` or similar

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Wed 05 Oct 2022 06:31:47 AM UTC
 
Category:  Macro ms Severity:  1 - Wish
Item Group:  Feature change Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Wed 05 Oct 2022 06:31:47 AM UTC, original submission:  

While working on bug #63110 I ran into the following issue.

+.PP
+To get the section number of the numbered headings into the table of
+contents entries,
+we might define
+.CW \%XN\-REPLACEMENT
+as follows.
+.
+(We obtain the heading depth from
+.I "groff ms" 's
+internal register
+.CW nh*hl .)
+.
+.
+.LP
+.TS
+box center;
+L.
+T{
+.nf
+.CW
+\&.XN-INIT
+\&.XH-UPDATE-TOC \[rs]\[rs]n[nh*hl] \[rs]\[rs]$@
+\&\[rs]&\[rs]\[rs]*[SN] \[rs]\[rs]$*
+\&..
+T}
+.TE

The user shouldn't have to grub around with internal registers to extract the heading depth level.  We should either expose it, or give the new XN/XH features some way of obtaining it, but the latter might be difficult since we encourage the user to write replacements for them.

No plans to resolve this for 1.23.

G. Branden Robinson <gbranden>
Project 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.

     

     

     

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.9