bugGNU roff - Bugs: bug #63635, [troff] support `hydefault`...

 
 

bug #63635: [troff] support `hydefault` register or similar

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Mon 09 Jan 2023 04:20:38 PM UTC
   
 
Category:  Core Severity:  1 - Wish
Item Group:  Feature change Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 09 Jan 2023 04:20:38 PM UTC, original submission:  

A comment in tmac/an-ext.tmac says it all.


.\" In AT&T troff, there was no register exposing the hyphenation mode,
.\" and no way to save and restore it.


In man pages, we see people fiddle with `hy` requests, often seemingly under the assumption that it works like `ft`; that calling it without arguments will restore the previous setting.

But it doesn't, and never has.  `.hy` without an argument means `.hy 1`, which is just about useless for all our hyphenation patterns.

I propose to add a (writable) internal register, `hydefault`, to house that value that an argumentless `hy` request will set.

Its default value (in the formatter) would be `1`, retaining 50 years of AT&T troff compatibility.

However, in groff's localization files, this register would be updated to something sensible for the locale.

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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-09 gbranden Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code