VERSION 1.20.1
==============
A packaging error made it necessary to publish this release. No
user-visible changes.
VERSION 1.20
============
Groff
-----
o XHTML support has been added to grohtml and can be specified by
-Txhtml. This option also utilizes the MathML capability of
eqn and combines the outputs of both in the final XHTML file.
Users can also specify the `-P-V' option together with `-Txhtml'
in groff. This has the effect of creating an XHTML validator
button at the bottom of each page.
o Some options have been added to control a new preprocessor,
`preconv' (see below): `-k' activates it, `-K' sets the input
encoding, and `-D' sets the default encoding.
o A new environment variable `GROFF_ENCODING' sets the encoding
of input files; it implies command option `-k'.
Troff
-----
o Two new requests `device' and `devicem' have been added which are
equivalents to the \X and \Y escapes, respectively.
o A new read-only number register `.br' is available which is set to 1
if a macro is called as .foo and to 0 if called as 'foo. This allows to
reliably modify requests.
.als bp@orig bp
.de bp
. tm before bp
. ie \\n[.br] .bp@orig
. el 'bp@orig
. tm after bp
..
o A new request `fzoom' has been added to adjust the optical size of a
font in relation to the others. The zoom factor is given in integer
multiples of 1/1000th. In the following example, the CR font is
magnified by 10% (the zoom factor is 1.1).
.fam P
.fzoom CR 1100
.ps 12
Palatino and \f[CR]Courier\f[]
The new number register `.zoom' holds the zoom value of the current font,
in multiples of 1/1000th.
o The `cflags' request has been extended with a new flag value 64, to be
used in combination with values 2 (break before character) and 4 (break
after character). If set, the hyphenation codes of the surrounding
characters are ignored.
o A new debugging request, `pev', has been added to print all of the current
known environments to stderr. It first prints the state of the current
environment, then iterates through all of the known environments, printing
each except the one that is current.
o A new escape `\$^' has been added. It represents the parameters of a
macro as if they were an argument to the `ds' request. This is used by
`trace.tmac'.
o A new read-only number register `.O' is available which returns the
current suppression level as set by the `\O' escape.
o The space width emitted by the `\|' and `\^' escape sequences can be
controlled on a per-font basis. If there is a glyph named `\|' or `\^',
respectively (note the leading backslash), defined in the current font
file, use this glyph's width instead of the default value.
This behaviour is not new, but hasn't been documented before.
Nroff
-----
o Two new command line options `-w' and `-W' are accepted and passed to
groff to enable and disable warning messages, respectively.
Preconv
-------
o This is a new preprocessor to convert various input encodings to something
groff understands (this is, ASCII and \[uXXXX] entities, with `XXXX' a
hexadecimal number with 4 to 6 digits, representing a Unicode input code).
Normally, preconv should be invoked with options `-k' and `-K' of groff.
See the preconv man page for details.
Pic
---
o int(x) now really behaves as documented: It truncates the non-integer part
of x, this is, it rounds towards zero and not towards the next integer
less than or equal to x.
o Pic now supports up to 32 macro arguments (and up to 16 on EBCDIC
platforms).
o Heinz-J
`yslanted', which can change the shape of boxes into arbitrary
parallelograms.
Tbl
---
o Latest versions of DWB tbl introduced an `x' column specifier for a single
column expanded to the line width. GNU tbl has now been extended to
support even multiple `x' specifiers within a table.
o To avoid collision with the new `x' specifier, a block formatting macro
must now be selected with specifier letter `m'.
Eqn
---
o Eric S. Raymond has added a new device type to eqn, MathML. When
-TMathML is enabled, eqn now emits MathML formula markup rather than
groff commands. The new groff -Txhtml device uses this.
Chem
----
o The preprocessor `chem' was added. `chem' is a roff language to generate
chemical structure diagrams. It generates `pic' output.
Grops
-----
o The PS font definition files have been regenerated with newer AFM versions
from Adobe's 35 core fonts as present in most Level 2 PS printers. The
changes are minor (most notably, the addition of the `Euro' glyph and an
extended set of kerning values).
For backwards compatibility, the old set of font definition files is still
available; for details please read the man page of grops.
Grotty
------
o \D'p...' is now supported if the polygon consists entirely of horizontal
and vertical lines.
Grohtml
-------
o XHTML support has been added.
o New command line option `-V' (to be used in XHTML mode) to produce an
XHTML validator button.
o New command line option `-y' to produce a right-justified groff signature
at the end of the document (in combination with option `-V').
Gxditview
---------
o Support for keyboard navigation has been improved.
o Similar to other X11 applications, there are now two resource files,
`GXditview' and `GXditview-color'.
Groffer
-------
o `groffer' version 1.* exists now in a shell and a Perl version.
Afmtodit
--------
o New option `-c' to output more font information as comments.
o New option `-k' to suppress output of kerning data.
o New option `-f NAME' to set the internal name of the groff font.
Macro Packages
--------------
o Joachim Walsdorff contributed the `hdtbl' package for the generation of
tables, using a syntax very similar to the HTML table model. For
example, a table with two cells and two rows looks like this:
.TBL cols=2
. TR .TD 1*1 .TD 1*2
. TR .TD 2*1 .TD 2*2
.ETB
Here the same table using a more expanded syntax:
.TBL cols=2
. TR
. TD 1*1
. TD 1*2
. TR
. TD 2*1
. TD 2*2
.ETB
Tables can be nested; `hdtbl' works without a preprocessor so that the
full capability of groff's macro engine is available.
This package currently works with `-Tps' only.
o -mandoc now supports multiple man pages (in either man or mdoc format).
o Fabrice M
possible to get French localization of the main macro packages (-ms, -mm,
-me, and -mom, but not -man and -mdoc which are localized differently) by
appending `-mfr' to the list of macro packages. Example:
groff -ms -mfr foo > foo.ps
Note that latin-9 input encoding is used for French (to support the `oe'
ligature).
o Swedish macro localization (with `-msv') has been added.
o German macro localization (with `-mde' and `-mden' for traditional and
new orthography, respectively) has been added.
o Czech macro localization (with `-mcs') has been added.
Note that latin-2 input encoding is used for Czech.
o A new macro `Dx' has been added to the mdoc package which identifies the
DragonFly OS.
o If mdoc is used to print multiple man pages (together with the -rcR=0
command line option), each man page now starts a new page.
o -mtrace has been considerably improved, now showing number and string
register assignments, among other things. See the groff_trace man page
for details.
o The PSPIC macro now works with all devices (producing a hollow
rectangle on devices which don't support inclusion of PS images) and
is loaded in troffrc at start-up.
o A new auxiliary macro package `62bit' has been added which provides some
macros for adding, multiplying, and dividing signed 62bit integers (mainly
to handle normal groff number operations without risking overflow errors).
o For -ms, Eric S. Raymond contributed support for ancient Bell Labs
localisms `.SC', `.UC', `.P1', and `.P2'. The latter three are enabled
only after .SC is called.
o A new string, `SN-STYLE', has been added to the ms macros, controlling
the formatting of section numbers in headings defined by `.NH'.
o The new macro package `ptx' provides a template definition for the `.xx'
macro as needed by GNU ptx (for creating permuted indices).
When turning it off, you can get rid of the netpbm, psutils,
and ghostscript dependencies. Might help in bootstrapping some
platforms. Based on a patch from schmonz@.
While here, improve PLIST by trying to remove an additional directory
and bump PKGREVISION for that.
> program requires Xaw, which requires the Xlib shape routines, which on
> Interix are in Xext. http://www.faqs.org/faqs/x-faq/part6/section-27.html
Move fix from Makefile to options.mk, so it is only used when the x11
option is enabled.
it into the normal PLIST.
VERSION 1.19.2
==============
Troff
-----
o Analogously to the .ft and \f pair, two new requests `gcolor' and
`fcolor' (which pair with \m and \M, respectively) have been added to
set the glyph and background colours.
o A new read-only, string-valued register `.sty' returns the name of the
current style.
o Two new conditional operators `F <name>' and `S <name>' have been added.
`F' is true if a font <name> exists. `S' is true if a style <name> has
been registered.
o Cyrillic characters have been added to the `utf8' and `html' output
devices.
Pic
---
o The `by' argument in a `for' loop can now be negative if it is additive.
For the multiplicative case, it must be greater than zero.
Eqn
---
o The following keywords aren't new but haven't been documented previously:
undef NAME (to undefine a macro)
copy "FILE" (a synonym for `include')
space n (to modify the vertical spacing before and after
an equation)
o The following macros aren't new but haven't been documented previously:
Alpha, ..., Omega (the same as `ALPHA', ..., `OMEGA')
ldots (three dots on the base line)
dollar (a dollar glyph)
o The following keywords have been extended. Again, this isn't new but
hasn't been documented previously:
col n { ... }
lcol n { ... }
rcol n { ... }
ccol n { ... }
pile n { ... }
lpile n { ... }
rpile n { ... }
cpile n { ... } (set vertical spacing between rows to N)
Grohtml
-------
o This device driver has been raised to beta stage; its set of tags should
be stable now.
o New command line option `-s' to set the base point size.
o New command line option `-S' to set the split level while generating
multiple files.
Grotty
------
o Experimental support for zero-width and double-width characters.
Gxditview
---------
o On platforms which have the X Window System this program is now built and
installed automatically.
Xtotroff
--------
o This program to create font definition files for xditview isn't new but
hasn't been installed previously.
Groffer
-------
o A security problem (reported as CAN-2004-0969) has been fixed.
Gdiffmk
-------
o A new script contributed by Mike Bianchi. It compares two groff, nroff,
or troff documents and creates an output with added margin characters
(using `.mc') to indicate the differences.
Pdfroff
-------
o A new wrapper script contributed by Keith Marshall to easily create PDF
documents with groff.
Macro packages
--------------
o ms.tmac
. Support for fractional point sizes: A value for the `PS', `VS', `FPS',
and `VPS' register larger than or equal to 1000 is always divided by
1000. For example, `.nr PS 10250' sets the document's font size to
10.25 points.
. The `Ds' and `De' macros provided in ms since groff version 1.19 have
been removed; the equivalent `DS' and `DE' macros should be used
instead. X11 documents which actually use `Ds' and `De' always load a
specific macro file from the X11 distribution (`macros.t') which
provides proper definitions for the two macros.
. The following registers have been added for improving layout control:
PORPHANS
Defines number of lines following `LP', `PP', `QP', `IP' or `XP' which
must be kept together, before any automatic page break.
HORPHANS
Sets number of lines of following paragraph which must be kept with a
heading, defined by `NH' or `SH', before any automatic page break.
GROWPS
Sets the first level of heading (set with `NH') which will keep the
same point size as body text.
PSINCR
Sets the point size increment for each level of heading (set with
`NH'), below the threshold level set by `GROWPS'; e.g., if
\n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p, then `.NH 1' will
produce 14pt headings, `.NH 2' will produce 12pt, and all other levels
will remain at 10pt (because \n[PS] = 10).
. The `SH' macro now accepts a numeric argument, to make heading size
match that of `NH' with same argument value when the `GROWPS'/`PSINCR'
feature is enabled.
Please refer to the documentation of the ms package for other, minor
improvements.
o me.tmac
The section type set with the `++' request is available in the `_M'
register. This isn't new but hasn't been documented before.
o www.tmac
The `HR' macro no longer causes an empty line for non-HTML devices.
A new macro `HEAD' has been added to directly add data to the
<head>...</head> block.
New macros `OLS' and `OLE' to start and end an ordered list.
New macros `DLS' and `DLE' to start and end a definition list.
Pdfmark
-------
o A new macro package contributed by Keith Marshall which implements PDF
marks. This is in alpha stage currently.
Miscellaneous
-------------
o Two new keywords to the DESC file have been added which are needed for
grohtml: `image_generator' and `unscaled_charwidths'. The former gives
the name of the program which creates PNG images, and the latter makes
troff always use unscaled character widths.
the appropriate tool via USE_TOOLS (usually "gs:run"), and remove
ghostscript.mk. This change removes a rather out-dated file from
pkgsrc and switches packages to use the more compact implementation
of the Ghostcript-handling inside the tools framework.
around at either build-time or at run-time is:
USE_TOOLS+= perl # build-time
USE_TOOLS+= perl:run # run-time
Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
binary tool. We can now use the tools framework for this. Remove the
various nroff/groff buildlink3.mk/builtin.mk files as editors/jove was
their only user in pkgsrc.
How ugly: a hypot(near0, near0) can result in a NaN if round-off error
somehow makes the a^2+b^2 result negative. Work around it with an
"#ifdef __INTERIX"-only fix.
Groff
-----
o The argument of the command line option `-I' is now also passed to troff
and grops, specifying a directory to search for files on the command line,
files named in `so' and `psbb' requests, and files named in \X'ps: file'
and \X'ps: import' escapes.
o If option `-V' is used more than once, the commands will be both printed
on standard error and run.
Troff
-----
o Two new read-only, string-valued registers `.m' and `.M' return the
name of the current drawing and background color, respectively.
o New read-only register `.U' which is set to 1 if in safer mode and set
to 0 if in unsafe mode.
o An input encoding file for latin-5 (a.k.a. ISO 8859-9) has been added.
Example use:
groff -Tdvi -mlatin5 my_file > my_file.dvi
Note that some output devices don't support all glyphs of this encoding.
o If the `return' request is called with an argument, it exits twice,
namely the current macro and the macro one level higher. This is
used to define a wrapper macro for `return' in trace.tmac.
o For completeness, two new requests have been added: `dei1' and `ami1'.
They are equivalent to `dei' and `ami', respectively, but the macros
are executed with compatibility mode off (similar to `de1' and `am1').
o New command line option `-I' to specify a directory for files (both
those on the command line and those named in `psbb' requests). This is
also handled by the groff wrapper program.
o Since version 1.19 you can say `.vs 0'. Older versions emit a warning
and convert this to `.vs \n[.V]'.
This hasn't been documented properly. Note that `.vs 0' isn't saved in a
diversion since it doesn't result in vertical motion.
Pic
___
o Dashed and dotted ellipses have been implemented.
Tbl
---
o New key character `x' to make tbl call a user-defined macro on a table
cell. Patch by Heinz-Jürgen Oertel <hj.oertel@surfeu.de>.
Grap2graph
----------
o A new script contributed by Eric S. Raymond <esr@thyrsus.com>. It
converts a grap diagram into a cropped image. Since it uses gs and the
PNM library, virtually all graphics formats are available for output.
[Note that the grap program itself isn't part of the groff package;
see the file MORE.STUFF how to obtain grap.]
Grohtml
-------
o New option `-j' to emit output splitted into multiple files.
Grops
-----
o New command line option `-I' to specify a directory to search for files
on the command line and files named in \X'ps: import' and \X'ps: file'
escapes. This is also handled by the groff wrapper program.
o The default value for the `broken' keyword in the DESC file is now 0.
Grolj4
------
o A new man page `lj4_font(5)' documents how fonts are accessed with
grolj4.
o The built-in fonts for LJ4 and newer PCL 5 devices have been completely
revised, mainly to access as much glyphs as possible. The provided
metric files should be compatible with recent PCL 5 printers also.
Additionally, font description files have been added for the Arial and
Times New Roman family, the MS symbol, and Wingdings fonts.
Afmtodit
--------
o New option `-x' to prevent use of built-in Adobe Glyph List.
Hpftodit
--------
o Completely revised to handle HP TrueType metric files also. See the
hpftodit manual page for more details.
Groffer
-------
o This version is a rewrite of groffer in many parts, but it is kept in
the old single script style.
New options: --text, --mode text, --tty-viewer, --X, --mode X,
--X-viewer, --html, --mode html, --html-view, --apropos-data,
--apropos-devel, --apropos-progs.
New documentation file: README_SH.
Enhancement of the configuration files and the `apropos' handling.
Macro Packages
--------------
o www.tmac: New macro `JOBNAME' to split output into multiple files.
o In mdoc, multiple calls to `.Lb' are now supported in the LIBRARY
section.
the number of size. This lead to some of the commands being truncated
and not executing appropriately. (The function in questions was
make_message in ./src/preproc/html/pre-html.cpp.) Patch this to also
behave correctly with Irix' vsnprintf(3) family.
This should address PR pkg/22563.
"volume-operating-system" macro is ${OPSYS}. And sets the default
.Os value to "pkgsrc" as suggested by wiz@. (It was hard-coded
"NetBSD\~1.6".)
Usually the mdoc.local "volume-operating-system" definition is for
the operating system name often displayed on top of man pages. And
"operating-system" is for the default .Os value (operating system
and version/release) and is usually displayed at bottom of man page.
Bump PKGREVISION.
This closes my PR #23100.