groff before CVS: release 1.15
[s-roff.git] / NEWS
blob243cbfb4ee6f73c89c941eb54f9391033493ceaf
1 This file describes recent user-visible changes in groff.  Bug fixes
2 are not described.  There are more details in the man pages.
4 VERSION 1.13, 1.14, 1.15
5 ========================
7 Bug fixes only; no user-visible changes.
9 VERSION 1.12
10 ============
12 Finally, there are new maintainers for groff.  Mailing lists and a CVS
13 repository are available also.  See the file README for details.  Not
14 all reported bug could be fixed, so please send mails again if
15 something is still not working.
17 Most of the installation problems should have vanished now (most
18 notably the $(tmac_wrap) bug).
20 There is now a man page called groff_man.man which documents the
21 basics of the -man macros.  It has been originally written by Susan
22 G. Kleinmann <sgk@debian.org>.
24 A (still incomplete) groff reference manual in texinfo format
25 originally contributed by Trent A. Fisher <trent@gnurd.portland.or.us>.
27 me.man and msafer.man have been renamed to groff_me.man
28 resp. groff_msafer.man for consistency.
30 Default strings for macros in doc-common resp. tmac.an no longer
31 contain the word `UNIX'.
33 groff should now be Y2k safe (fixes contributed by Paul Eggert
34 <eggert@twinsun.com>).
36 Following the GNU standards, groff will now use the prefix
37 `/usr/local/' as the default instead of replacing an existent groff
38 binary.
40 groff, troff, nroff, and pic now support the -U flag to activate unsafe
41 behaviour (without -msafer); the -S flag for using the -msafer macros
42 is now the default.
44 Grohtml
45 -------
47 This is a new output device for producing HTML output contributed by
48 Gaius Mulley <gaius@glam.ac.uk>.  It is still very alpha but has been
49 included into the distribution so that a lot of people have a chance
50 to test it.  Bug reports are highly welcome.
52 Grolj4
53 ------
55 Duplex printing support has been contributed by Jeffrey Copeland
56 <jeff@opennt.com>.
58 Soelim
59 ------
61 Added -I option for defining include paths (patch contributed by Peter
62 Miller <peterm@jna.com.au>).
64 Gxditview
65 ---------
67 Fallback resources added (patch contributed by Larry Jones
68 <larry.jones@sdrc.com>).
70 Will now support 8 gray levels.
75 New version 1.32 (contributed by Joergen Haegg <jh@axis.com>).
77 VERSION 1.11
78 ============
80 Complete documentation for pic is now in the file doc/pic.ms.  It was
81 contributed by Eric S. Raymond, <esr@thyrsus.com>, who is emphatically
82 *not* volunteering to take over groff as he is way overworked with
83 half a dozen other projects.
85 VERSION 1.10
86 ============
88 The directory where data files are installed has been changed from
89 /usr/local/lib/groff to /usr/local/share/groff to comply with the
90 latest GNU coding standards.
92 By default groff programs with Unix equivalents are installed with a
93 "g" prefix unless there is an existing (non-groff) troff installation.
95 A new approach is used to make system macro packages available to
96 groff.  Instead of simply including /usr/lib/tmac in the list of
97 directories searched by groff, the installation process creates for
98 each system macro package a wrapper macro package in the groff macro
99 directory that references the system macro package.  The groff macro
100 packages are now installed with a leading "g" prefix if there is a
101 system version of the same macro package, and otherwise without the
102 "g" prefix, with the exception that the groff version of -me which is
103 always installed as -me.
105 There is a new device, lj4, for the HP LaserJet 4 (and PCL5
106 compatibles).
108 Groff
109 -----
111 groff has a -S option that prevents the use of unsafe features in pic
112 and troff.  This uses a new -S option of pic and the -msafer macros
113 for troff.
115 Troff
116 -----
118 The `blm' request specifies a macro to be invoked when a blank line is
119 encountered.
124 A -S (safer) option disables the sh command.
126 Grops
127 -----
129 The -m option enables manual feed.
131 VERSION 1.09
132 ============
134 \(rn will now produce a character that has the traditional metrics,
135 and will form corners with \(ul and \(br.  This means that it will not
136 align properly with \(sr.  Instead there's a new character
137 \[radicalex] which aligns with \(sr; this is used by eqn for doing
138 square roots.
140 Troff
141 -----
143 The `pso' request allows you to read from the standard output of a
144 command.
146 Grops
147 -----
149 The PSPIC macro has options to allow the horizontal alignment of the
150 graphic to be specified.
152 VERSION 1.08
153 ============
155 Troff
156 -----
158 The escape sequence \V[xxx] will interpolate the value of the
159 environment variable xxx.
164 The decimalpoint option can be used to specify the character to be
165 recognized as the decimal point character in place of the default
166 period.
168 VERSION 1.07
169 ============
171 Groff
172 -----
174 The environment variable GROFF_COMMAND_PREFIX can be used to control
175 whether groff looks for `gtroff' or `troff' (similarily for the
176 preprocessors.)
178 Troff
179 -----
181 Multilingual hyphenation is supported by new `hpf' and `hla' requests,
182 and by a `\n[.hla]' number register.  The -H option has been removed.
183 Files of hyphenation patterns can have comments.
185 When a font cannot be found, troff gives a warning (of type `font',
186 enabled by default) instead of an error.
188 There's a new request `trnt' that's like `tr' except that it doesn't
189 apply to text transparently throughput into a diversion with \!.
194 There is a `nokeep' option which tells tbl not to use diversions to
195 try to keep the table on one page.
200 Setting the parameter `nroff' to a non-zero value causes `ndefine' to
201 behave like `define' and `tdefine' to be ignored.  This is done by
202 eqnrc when the current device is ascii or latin1.  There's a `neqn'
203 script that just does `eqn -Tascii'.
205 Grotty
206 ------
208 grotty uses whatever page length was specified using the `pl' request
209 rather than using the paperlength command in the DESC file.  The
210 paperwidth command in the DESC file is also ignored.
212 VERSION 1.06
213 ============
215 The programs in groff that have Unix counterparts can now be installed
216 without a leading `g' prefix.  See the `g' variable in the Makefile.
218 The g?nroff script simulates the nroff command using groff.
220 New special characters \(+h, \(+f, \(+p, \(Fn, \(Bq, \(bq, \(aq, \(lz,
221 \(an.  See groff_char(7).
223 ^L is now a legal input character.
225 Groff
226 -----
228 The Xps pseudo-device has disappeared.  Instead there is a new -X
229 option that tells groff to use gxditview instead of the usual
230 postprocessor. (So instead of -TXps, use -XTps or just -X if your
231 default device is ps.)
233 The postprocessor to be used for a particular device is now specified
234 by a `postpro' command in the DESC file rather than being compiled
235 into groff.  Similarly the command to be used for printing (with the
236 -l option) is now specified by a `print' command in the DESC file.
238 The groff command no longer specifies eqnchar as an input file for
239 eqn.  Instead eqn automatically loads a file `eqnrc'.  The groff
240 command no longer passes the -D option to eqn.  Instead eqnrc sets the
241 draw_lines parameter.
243 The groff command no longer tells troff to load a device-specific
244 macro file.  This is handled instead by the `troffrc' file, which is
245 always loaded by troff.
247 The shell script version of groff has been removed.
249 Troff
250 -----
252 The `rchar' request removes a character definition established with `char'.
254 Compatibility mode is disabled and the escape character is set to `\'
255 while a character definition is being processed.
257 The `\#' escape sequence is like `\"' except that the terminating
258 newline is ignored.
260 The `shc' request tells troff which character to insert (instead of
261 the default \(hy) when a word is hyphenated at a line break.
263 A font name of 0 (zero) in the DESC file will cause no font to be
264 mounted on the corresponding font position.  This is useful for
265 arranging that special fonts are mounted on positions on which users
266 are not likely explicitly to mount fonts.  All groff devices now avoid
267 initially mounting fonts on positions 5-9.
269 The `do' request allows a single request or macro to be interpreted
270 with compatibility mode disabled.
272 troff automatically loads a file `troffrc' before any other input file.
273 This can be prevented with the -R option.  This file is responsible
274 for loading the device-specific macros.
279 The -x option has been removed and a -n option has been added.  By
280 default, pic now assumes that the postprocessor supports groff
281 extensions.  The -n option tells pic to generate output that works
282 with ditroff drivers.  The -z option now applies only to TeX mode.
284 The -p option has been removed. Instead if the -n option is not
285 specified, pic generates output that uses \X'ps: ...' if the \n(0p
286 register is non-zero and tmac.ps sets this register to 1.
288 In places where you could 1st or 5th you can now say `i'th or `i+1'th
289 (the quotes are required).
294 Eqn now automatically reads a file `eqnrc' from the macro directory.
295 This performs the same role that the eqnchar files used to.  This can
296 be prevented by the -R option.
298 Setting the draw_lines parameter to a non-zero value causes lines to
299 be drawn using \D rather than \l.  The -D option is now obsolete.
301 `uparrow', `downarrow' and `updownarrow' can be used with `left' and
302 `right'.
304 The amount of extra space added before and after lines containing
305 equations can be controlled using the `body_height' and `body_depth'
306 parameters.
308 Grops
309 -----
311 Font description files have been regenerated from newer AFM files.
312 You can get access to the additional characters present in the text
313 fonts in newer PostScript printers by using -mpsnew.
315 The default value of the -b option is specified by a `broken' command
316 in the DESC file.
318 With the -g option, grops will generate PostScript code that guesses
319 the page height.  This allows documents to be printed on both letter
320 (8.5x11) and A4 paper without change.
322 Grodvi
323 ------
325 ISO Latin-1 characters are available with -Tdvi.  Format groff_char(7)
326 with groff -Tdvi for more information.
328 Grotty
329 ------
331 The -mtty-char macros contain additional character definitions for
332 use with grotty.
334 Macros
335 ------
337 In previous releases the groff -me macros treated the $r and $R number
338 registers in a way that was incompatible with the BSD -me macros.  The
339 reason for this was that the approach used by the BSD -me macros does
340 not work with low resolution devices such as -TX75 and -TX100.
341 However, this caused problems with existing -me documents.  In this
342 release, the vertical spacing is controlled by the $v and $V registers
343 which have the same meaning as $r and $R in earlier groff releases.
344 In addition, if the $r or $R register is set to a value that would be
345 correct for for the BSD -me macros and a low resolution device is not
346 being used, then an appropriate value for the $v or $V register will
347 be derived from the $r or $R register.
349 The groff -me macros work with -C and (I think) with Unix troff.
351 For backward compatibility with BSD -me, the \*{ and \*} strings are
352 also available as \*[ and \*].  Of course, \*[ will only be usable
353 with -C.
355 The \*T string has been deleted.  Use \*(Tm instead.
357 Xditview
358 --------
360 The `n', Space and Return keys are bound to the Next Page action.  The
361 `p', BackSpace and Delete keys are bound to the Previous Page action.
362 The `q' key is bound to the Quit action.
364 The `r' key is bound to a rerasterize action that reruns groff, and
365 redisplays the current page.
367 VERSION 1.05
368 ============
373 There is a alternative assignment operator `:=' which interacts
374 differently with blocks.
376 There is a new command `command', which allows the values of variables
377 to be passed through to troff or TeX.
379 The `print' command now accepts multiple arguments.
381 String comparison expressions (using `==' or `!=') are allowed in more
382 contexts.
384 Grotty
385 ------
387 Horizontal and vertical lines drawn with \D'l ...' will be rendered
388 using -, | and + characters.  This is intended to give reasonable
389 results with boxed tables.  It won't work well with pic.
391 Macros
392 ------
394 The -mdoc macros have been upgraded to the version in the second
395 Berkeley networking release.  This version is not completely
396 compatible with earlier versions; the old version is still available
397 as -mdoc.old.  The grog script has been enhanced so that it can
398 usually determine whether a document requires the old or new versions.
400 With -TX75, -TX100 and -TXps, the PSPIC macro will produce a box
401 around where the picture would appear with -Tps.
403 VERSION 1.04
404 ============
406 An implementation of the -mm macros is included.
408 The directory in which temporary files are created can be controlled
409 by setting the GROFF_TMPDIR or TMPDIR environment variables.
414 Some MS-DOS support (see pic/make-dos-dist).
416 Grops
417 -----
419 There are two new \X commands (\X'ps: invis' and \X'ps: endinvis')
420 which make it possible to have substitute characters that are
421 displayed when previewing with -TXps but ignored when printing with
422 grops.
424 Xditview
425 --------
427 Support for scalable fonts.
429 VERSION 1.03
430 ============
432 No changes other than bug fixes.
434 VERSION 1.02
435 ============
437 There is an implementation of refer and associated programs.  groff -R
438 preprocesses with grefer; no mechanism is provided for passing
439 arguments to grefer because most grefer options have equivalent
440 commands which can be included in the file.  grog also supports refer.
442 There is an alternative perl implementation of the grog script.
444 The code field in lines in the charset section of font description
445 files is now allowed to contain an arbitrary integer (previously it
446 was required to lie between 0 and 255).  Currently grops and grodvi
447 use only the low order 8 bits of the value.  Grodvi will use the
448 complete value; however, this is unlikely to be useful with
449 traditional TeX tools (.tfm files only allow 8 bit character codes.)
451 Left and right double quotes can be obtained with \(lq and \(rq
452 respectively.
454 There is a new program called pfbtops which translates PostScript
455 fonts in pfb format to ASCII.
457 A slightly modified version of the Berkeley tmac.doc is included.
459 Troff
460 -----
462 In long escape names the closing ] is now required to be at the same
463 input level as the opening [.
465 The \A'S' escape sequence returns 1 or 0 according as S is or is not
466 suitable for use as a name.
468 \~ produces an unbreakable space that can be stretched when the line
469 is adjusted.
471 The `mso' request is like the `so' request except that it searches for
472 the file in the same directories in which tmac.X is searched for when
473 the -mX option is given.
475 The escape sequence `\R' is similar to the `nr' request.
480 A new `special' primitive allows you to add new types of unary
481 constructs by writing a troff macro.
486 The implementation no longer uses gperf.
488 Grops
489 -----
491 The compile-time -DBROKEN_SPOOLER option has been replaced by a
492 BROKEN_SPOOLER_FLAGS option.  This allows more precise control over
493 how grops should workaround broken spoolers and previewers.  There is
494 a new -b option that can change this at run-time.
496 Grops now generates PostScript that complies with version 3.0 of the
497 Document Structuring Convention.
499 The resource management component of grops (the part that deals with
500 imported documents and downloadable fonts) has been rewritten and now
501 supports version 3.0 of the Document Structuring Conventions.  The
502 %%DocumentFonts comment is no longer supported; you must use the
503 %%Document{Needed,Supplied}{Fonts,Resources} comments instead
504 (or as well.)
506 tmac.psatk contains some macros that support the mechanism used by the
507 Andrew Toolkit for including PostScript graphics in troff documents.
509 Xditview
510 --------
512 Parts of xditview have been rewritten so that it can be used with the
513 output of gtroff -Tps.  groff -TXps will run gtroff -Tps with
514 gxditview.
516 There is a new menu entry `Print' which brings up a dialog box for
517 specifying a command with which the file being previewed should be
518 printed.
520 Xditview now uses imake.
522 VERSION 1.01
523 ============
525 The groff command now understands the gtroff `-a' and `-i' options.
527 With the `m' and `n' scale indicators, the scale factor is rounded
528 horizontally before being applied.  This makes (almost) no difference
529 for devices with `hor' equal to 1, but it makes groff with -Tascii or
530 -Tlatin1 behave more like nroff in its treatment of these scale
531 indicators.  Accordingly tmac.tty now calls the `nroff' request so
532 that the `n' condition will be true.
534 The device-specific macros (tmac.ps, tmac.dvi, tmac.tty and tmac.X)
535 have been made to work at least somewhat with -C.  In particular the
536 special characters defined by these macros now work with -C.
538 groff -Tdvi -p will now pass pic the -x flag; this will enable filling
539 of arrowheads and boxes, provided that your dvi driver supports the
540 latest version of the tpic specials.
545 There is a new `-N' option that tells eqn not to allow newlines in
546 delimiters.  This allows eqn to recover better from missing closing
547 delimiters.  The groff command will pass on a `-N' option to eqn.
549 Grops
550 -----
552 You can now use psfig with grops.  See the file ps/psfig.diff.  I do
553 not recommend using psfig for new documents.
555 The command \X'ps: file F' is similar to \X'ps: exec ...' except that
556 the PostScript code is read from the file F instead of being contained
557 within the \X command.  This was added to support psfig.
559 Grodvi
560 ------
562 There are font files HB and HI corresponding to cmsssbx10 and cmssi10.
564 Macros
565 ------
567 The groff -me macros now work with the -C option.  As a result, they
568 may also work with Unix nroff/troff.
570 In -me, the $r and $R number registers now contain the line spacing as
571 a percentage of the pointsize expressed in units (normally about 120).
572 The previous definition was useless with low resolution devices such
573 as X75 and X100.
575 VERSION 1.00
576 ============
578 A -ms-like macro-package is now included.
580 The name for the Icelandic lowercase eth character has been changed
581 from \(-d to \(Sd.
583 Troff
584 -----
586 There is a new request `nroff', which makes the `n' built-in condition
587 true and the `t' built-in condition false; also a new request `troff'
588 which undoes the effect of the `nroff' request.  This is intended only
589 for backward compatibility: it is usually better to test \n(.H or
590 \n(.V or to use the `c' built-in condition.
592 The \R escape sequence has been deleted.  Use \E instead.
594 There are `break' and `continue' requests for use with the `while'
595 request.
597 There is a request `hym' that can ensure that when the current
598 adjustment mode is not `b' a line will not be hyphenated if it is no
599 more than a given amount short, and a request `hys' that can ensure
600 that when the current adjustment mode is `b' a line will not be
601 hyphenated if it can be justified by adding no more than a given
602 amount of extra space to each word space.
604 There is a request `rj' similar to `ce' that right justifies lines.
606 A warning of type `space' will be given when a call is made to an
607 undefined request or macro with a name longer than two characters, and
608 the first two characters of the name make a name that is defined.
609 This is intended to find places where a space has been omitted been a
610 request or macro and its argument.  This type of warning is enabled by
611 default.
616 A comma is permitted between the arguments to the `reset' command.
618 For use with TeX, there is a new `-c' option that makes gpic treat
619 lines beginning with `.' in a way that is more compatible with tpic
620 (but ugly).
625 It is no longer necessary to add `space 0' at the beginning of
626 complicated equations inside pictures.
628 `prime' is now treated as an ordinary character, as in Unix eqn.  The
629 previous behaviour of `prime' as an operator can now be obtained using
630 `opprime'.
632 Xditview
633 --------
635 There are two new devices X75-12 and X100-12 which are the same as X75
636 and X100 except that they are optimized for documents that use mostly
637 12 point text.
639 VERSION 0.6
640 ===========
642 The installation process has been refined to make it easy for you to
643 share groff with someone who has the same type of machine as you but
644 does not have a C++ compiler.  See the end of the INSTALL file for
645 details.
647 There is a man page for the tfmtodit program which explains how to use
648 your own fonts with groff -Tdvi.
650 There is a man page for afmtodit which explains how to use your own
651 PostScript fonts with groff -Tps.
653 The \N escape sequence is now fully supported.  It can now be used to
654 access any character in a font by its output code, even if it doesn't
655 have a groff name.  This is made possible by a convention in the font
656 files that a character name of `---' refers to an unnamed character.
657 The drivers now all support the `N' command required for this.  The font
658 description files have been updated to include unnamed characters.
660 The `x' command in font description files has been removed: instead
661 any unknown commands are automatically made available to the drivers.
662 If you constructed your own font files with an earlier version of
663 tfmtodit or afmtodit, you must construct them again using the current
664 version.
666 Characters between 0200 and 0237 octal are no longer legal input
667 characters.  Note that these are not used in ISO 8859.
669 A command called `grog' has been added, similar to the `doctype'
670 command described in Kernighan and Pike.
672 Groff
673 -----
675 The groff command has some new options: -V prints the pipeline
676 instead of executing it; -P passes an argument to the postprocessor,
677 -L passes an argument to the spooler.
679 There is a C++ implementation of the groff command.  This handles some
680 things slightly better than the shell script.  In particular, it can
681 correctly handle arguments containing characters that have a special
682 meaning to the shell; it can give an error message when child
683 processes other than the last in the pipeline terminate abnormally;
684 its exit status can take account of the exit statuses of all its child
685 processes; it is a little more efficient; when geqn is used, it
686 searches for the eqnchar file in the same way that font metric files
687 are searched for, rather than expecting to find it in one particular
688 directory.
690 Gtroff
691 ------
693 There is font translation feature: For example, you can tell gtroff to
694 use font `HR' whenever font `H' is requested with the line
695   .ftr H HR
696 This would be useful for a document that uses `H' to refer to
697 Helvetica.
699 There are some new number registers: `.kern' contains the current kern
700 mode, `.lg' the current ligature mode, `.x' the major version number,
701 `.y' the minor version number, `.ce' the number of lines to be
702 centered in the current environment, `.trunc' the amount of vertical
703 space truncated by the most recently sprung vertical position trap,
704 `.ne' the amount of vertical space needed in the last `ne' request
705 that caused a vertical position trap to be sprung.
707 The `cf' request now behaves sensibly in a diversion.  If used in a
708 diversion, it will now arrange for the file to be copied to the output
709 when the diversion is reread.
711 There is a new request `trf' (transparent file) similar to `cf', but
712 more like `\!'.
714 There is a new escape sequence `\Y[xxx]', roughly equivalent to
715 `\X'\*[xxx]'', except that the contents of string or macro xxx are not
716 interpreted, and xxx may contain newlines.  This requires an output
717 format extension; the drivers have been modified to understand this.
718 Grops has also been modified to cope with newlines in the arguments to
719 \X commands; grops has a new \X command mdef, which is like def except
720 that it has a first argument giving the number of definitions.
722 There is a new warning category `escape' which warns about unknown
723 escape sequences.
725 The `fp' request now takes an optional third argument giving the external
726 name of the font.
728 The `\_' character is now automatically translated to `\(ul' as in troff.
730 The environment variable `GROFF_HYPHEN' gives the name of the file
731 containing the hyphenation patterns.
733 There is a `\C'xxx'' escape sequence equivalent to `\[xxx]'.
735 Characters ", ', ), ], *, \(dg are now initially transparent for the purposes
736 of end of sentence recognition.
738 There is an anti-recursion feature in the `char' request, so you can
739 say `.char \(bu \s+2\(bu\s-2'.
741 The limit on the number of font positions has been removed.
742 Accordingly `\n[.fp]' never returns 0.
744 The restriction on the number of numbered environments has been removed.
746 There is a new escape sequence `\E' that makes it possible to
747 guarantee that an escape sequence won't get interpreted in copy-mode.
748 The `\R' escape sequence is accordingly now deprecated.
750 Gpic
751 ----
753 Arguments of the form `X anything X' (in the `copy thru', `sh', `for',
754 `if' and `define' constructs) can now be of the form `{ anything }'.
756 If the `linethick' variable is negative (as it now is initially),
757 lines will be drawn with a thickness proportional to the current point
758 size.
760 The `rand' function now takes no arguments and returns a number between
761 0 and 1.  The old syntax is still supported.
763 `^' can be used in expressions to indicate exponentiation.
765 In the `for' construct the argument to the by clause can be prefixed
766 by `*' to indicate that the increment is multiplicative.
768 A bare expression may be used as an attribute.  If the current
769 direction is `dir', then an attribute `expr' is equivalent to
770 `dir expr'
772 There is a `sprintf' construct that allows numbers to be formatted and used
773 wherever a quoted string can be used.
775 The height of a text object without an explicit height attribute is
776 the number of text strings associated with the object times the value
777 of the `textht' variable.
779 The maximum height and width of a picture is controlled by the
780 `maxpswid' and `maxpsht' variables.
782 Gtbl
783 ----
785 Gtbl can now handle gracefully the situation where the `ce' request
786 has been applied to a table.
788 Geqn
789 ----
791 The `ifdef' primitive has been generalized.
793 A tilde accent can be put underneath a box using `utilde'.  This
794 defined using a general `uaccent' primitive.
796 Grops
797 -----
799 There is a new PostScript font downloading scheme which handles font
800 downloading for imported illustrations.  Previously, the name of the
801 file containing the font was given in the `x download' line in the
802 groff font metric file.  Now, there is a `download' file which says
803 for each PostScript font name which file contains that font.  Grops
804 can also now handle inter-font dependencies, where one downloadable
805 font depends on some other (possibly downloadable) font.
807 The `T' font has been removed.  The characters it used to provide are
808 now provided by `char' definitions in tmac.ps. TSymbol.ps has also
809 been removed, and the tweaks it provided are now provided by `char'
810 definitions.