[Top][All Lists]

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

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

From: G. Branden Robinson
Subject: [bug #63635] [troff] support `hydefault` register or similar
Date: Mon, 9 Jan 2023 11:20:40 -0500 (EST)


                 Summary: [troff] support `hydefault` register or similar
                 Project: GNU troff
               Submitter: gbranden
               Submitted: Mon 09 Jan 2023 04:20:38 PM UTC
                Category: Core
                Severity: 3 - Normal
              Item Group: Feature change
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


Follow-up Comments:

Date: Mon 09 Jan 2023 04:20:38 PM UTC By: G. Branden Robinson <gbranden>
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.


Reply to this item at:


Message sent via Savannah

reply via email to

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