Opened 3 weeks ago

Closed 2 weeks ago

#6075 closed enhancement (fixed)

groff-1.25.0

Reported by: Bruce Dubbs Owned by: lfs-book
Priority: normal Milestone: 13.2
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

New minor version.

Change History (2)

comment:1 by Bruce Dubbs, 2 weeks ago

VERSION 1.25.0

troff

  • GNU troff, the formatter, now employs the unusual Roman numerals "W" and "Z" of AT&T troff only in compatibility mode.

  • The dt request, when given invalid arguments, now does nothing instead of removing any existing diversion trap. This change is inconsistent with AT&T troff but more consistent with general *roff syntax; as a rule, requests given invalid arguments (and that don't process a list of similar objects, as rm and rr do) perform no operation. (However, see "Other differences" in groff_diff(7) or groff's Texinfo manual regarding rm and rr request behavior that is discrepant among various troffs.)

  • The dt and wh requests now enforce their requirement of space between their arguments. While consistent with GNU troff input syntax, said enforcement is not consistent with AT&T troff. We did not add support in groff's AT&T troff compatibility mode because we're aware of no legacy documents that require it. Example: the input .wh9i+.5+\n(xxuPT, while it validly plants a trap calling the PT macro in AT&T troff, is considerably more cryptic than any specimens known to us.

  • The formatter now enables the "delim", "syntax", and "escape" warning categories by default.

  • The trf (transparent file throughput) request now discards input characters that are invalid in GNU troff's output format, meaning all character codes less than decimal 32 (except 10, the line feed) and greater than decimal 127.

  • A new read-only, string-valued register .pi reports the output pipeline constructed by one or more pi requests.

  • A new read-only register .ul reports the count of productive input lines remaining to be underlined in the environment (as configured by either the cu or ul requests).
  • The formatter supports a new warning category, "style". It is used to diagnose input that is non-idiomatic or likely to produce an unexpected result (or none at all), but is not invalid.
  • When issuing warning diagnostic messages, GNU troff now reports the warning category governing its emission. This change is to make it easier for users to select warnings of interest.
  • When the substring request is given two index arguments whose magnitudes both exceed the operand string, macro, or diversion's length, it now ignores the request (and issues a warning in category "range"), leaving the operand (first request argument) unchanged instead of emptying it.
  • When the ti request is given no arguments, the formatter now cancels any pending temporary indentation. (Formerly, it did nothing in any troff, except, in GNU troff, issuing a warning in category "missing".)
  • The phw request now accepts arguments. Each is interpreted as a possible hyphenation word (ignoring hyphens in the input), looked up in the hyphenation exception list for the hyphenation language, and if found, is reported with its hyphenation points. Only hyphenation exceptions defined by the hw request are reported.
  • The pwh request, when invoked while the diversion is not the top-level diversion, now reports the name and location of any configured diversion trap instead of reporting nothing.
  • A new request, rhw, removes user-defined hyphenation exception words from the current hyphenation language's list thereof. Those supplied by files like "tmac/hyphenex.{cs,en,pl}" are retained.
  • The built-in, read-only register .zoom is now named .fzoom for consistency with other GNU troff extensions, which largely pair names of requests with those of read-only registers they affect. The old name remains as an alias configured by the default "troffrc" file.

grn

  • The -M command-line option is renamed to -I, better paralleling troff(1). Inclusions are not the same things as macro file resources. The program accepts -L (the original Berkeley name for this option), and -M (groff grn prior to this point) synonymously.

groff

groff now passes -I options as-is to grn(1), instead of translating the option name to -M.

  • groff's -I option no longer implies -g or -s; if your document needs to be piped through grn(1) and/or soelim(1), specify the foregoing options as appropriate.

pic

  • groff's pic(1) manual, "Making Pictures With GNU PIC", is now built and installed as a PDF rather than a PostScript document.

Macro packages

  • The an (man) package offers new macros to ease the formatting of lists. Enclose paragraphing macros between LS and LE to identify them as list items. Doing so can mark them as "compact", ease management of their indentation, and supply hints to the output driver to improve their rendering (as with HTML). Lists can be nested. (Sub)sectioning macro calls, and the end of the document, close all open lists. See groff_man(7) for details, and groff_man_style(7) for an example.

Because these macros format no text, documents employing them risk no damage to their content if the formatter does not support them. A man(7) document author can choose either to transition to these macros, to manage list "compactness" and item indentation with existing man(7) package facilities, or to employ both approaches.

  • The an (man) package now checks for some problems of document portability to AT&T troff's man(7) if the CHECKSTYLE register, introduced in groff 1.23.0 and documented in 1.24.0, is given a value of 100 or greater. This feature is experimental and subject to change.
  • The m (mm) macro package's IA and WA macros--used only with the "letter" document type configured by calling the LT macro--no longer disable the escape character, and their counterparts IE and WE no longer reënable it. This change makes groff mm consistent with DWB 3.3 mm. If you require the previous groff mm behavior, consider writing and using wrapper macros such as the following in your document.
  • The s (ms) macro package now supports PDF features. Pass groff (or troff) the command-line option -r PDFFEAT=1 to enable them when used with the "pdf" output device ("-T pdf").

The PDF thus produced shows an overview bookmark panel or navigation pane (viewer application support allowing); the viewer's interface to document properties includes the document title and author(s), if specified by the TL and AU macros, respectively; if the document calls the package's TC macro, the table of contents entries it produces are hyperlinked to navigate the document (even if it does not use the XN macro introduced in groff 1.23.0); and if the document calls RP to configure a cover page, the table of contents relocates to follow it.

The new macros XM and XR anchor a location within the document and format text that hyperlinks to it, respectively.

These changes were inspired by Keith Marshall's "spdf.tmac" which was withdrawn from groff as of 1.24.0, but continues to be developed at:

​https://savannah.nongnu.org/projects/groff-pdfmark/

...though groff ms(7) differs in some respects. Our objective is to enable and support PDF features in any ms document without requiring its author to update its content.

We welcome feedback on these extensions to the package's macro interface. We expect to finalize these changes in a future release, and effectively default PDFFEAT "on".

  • The s (ms) macro package now supports the use of automatically numbered footnote marks (interpolated via \** or \*[*]) in tbl(1) table entries. Other implementations of ms do not.
  • groff's ms(7) manual, "Using groff with the ms macros", is now built and installed as a PDF rather than a PostScript document.

Miscellaneous

  • The new document "Groff PDF Features" is built and installed as a PDF. It surveys the PDF features that groff enables and exposes in its full-service macro packages.
  • The grn command now exits with status 2 instead of 8 on usage errors arising from missing arguments to command-line options. It now exits with the POSIX standard EXIT_FAILURE status (1) instead of 8 when reading an unrecognized command keyword.
  • The 'configure' options '--{en,dis}able-groff-allocator' introduced in groff 1.23.0 are now deprecated. --disable-groff-allocator has been implicit since that release, and we've received no reports of a C++ runtime unable to handle groff's demands on its heap/"free store" allocator. We expect to withdraw these configuration options completely in groff 1.26.
  • You need the "convert" program from ImageMagick or GraphicsMagick to build groff from its Git repository. The program is not required for builds from distribution archives.
  • Building groff from its Git repository now requires the --enable-maintainer-mode option to its 'configure' script.

comment:2 by Bruce Dubbs, 2 weeks ago

Resolution: → fixed
Status: new → closed

Fixed at commit f4fe536d6.

Note: See TracTickets for help on using tickets.