1 2000-03-10 Werner LEMBERG <wl@gnu.org>
3 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4 initializers from arguments (some compilers don't like this).
6 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
8 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9 used by pic and eqn to tell grohtml where the graphic regions start
11 * src/libs/libgroff/Makefile.sub: Use it.
12 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
13 graphic_start() and graphic_end() from htmlindicate.cc.
15 2000-03-09 Werner LEMBERG <wl@gnu.org>
17 * tmac/tmac.safer: Will now work correctly in compatibility mode.
18 * tmac/groff_man.man: More fixes.
20 2000-03-08 Werner LEMBERG <wl@gnu.org>
22 * doc/Makefile: Added texput.log to the `clean' target.
23 * doc/groff.texinfo: Added info about delimiters for escapes.
25 2000-03-08 Bernd Warken <bwarken@mayn.de>
27 * src/preproc/pic/pic.man: Add info on conversion of pic images to
28 other graphic formats.
30 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
32 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
33 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
34 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
37 2000-03-07 Werner LEMBERG <wl@gnu.org>
39 * doc/groff.texinfo: Spelling fixes.
41 2000-03-06 Werner LEMBERG <wl@gnu.org>
43 * tmac/groff_man.man: Completely revised to cover everything in
46 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
48 * src/roff/troff/env.cc (environment_copy): Improve error message and
50 * src/roff/troff/TODO: Updated.
52 * doc/Makefile: Bug fixes -- this is still provisional, though...
54 * tmac/eqnrc: Small fixes.
56 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
58 Adding a request `evc' to copy environments.
60 * src/roff/troff/env.cc (environment::copy, environment_copy):
62 * src/roff/troff/env.h: Add prototype.
64 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
66 Adding strsep() -- Solaris 8 doesn't have it.
68 * configure.in: Test it.
69 * src/devices/grolbp/lbp.cc: Add code.
71 2000-03-05 Werner LEMBERG <wl@gnu.org>
73 * src/roff/troff/div.cc (macro_diversion::output,
74 top_level_diversion::output): Fixing an incompatibility with
75 original troff: \x'0' updates the .a register also. Thanks to
76 <Andries.Brouwer@cwi.nl> for pointing this out.
77 * doc/groff.texinfo: Document it.
79 * Makefile.in: Create Makefile.dep if necessary before calling the
80 submake process to avoid warning about nonexistent file.
82 * NEWS, PROJECTS: Updated.
84 2000-03-04 Werner LEMBERG <wl@gnu.org>
86 * tmac/troffrc: Add tmac.lbp.
88 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
90 * tmac/tmac.lbp: New file.
91 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
94 2000-03-03 Werner LEMBERG <wl@gnu.org>
96 * Makefile.in: Fixing $(subdir).
98 * README, NEWS: Small fixes.
100 * test-groff: Adding path to grolbp.
102 * configure.in: The (new) file src/xditview/Imakefile.in will be
103 also configured -- it is now possible to build gxditview in a
104 directory different from $srcdir.
106 2000-03-02 Blake McBride <blake@florida-software.com>
108 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
110 * MORE.STUFF: Added website of bell labs and info about plot2dev.
112 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
114 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
117 2000-02-29 Werner LEMBERG <wl@gnu.org>
119 Adding GNU getopt to the groff distribution.
121 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
123 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
124 * aclocal.a4: Remove GROFF_GETOPT function.
125 * configure.in, Makefile.in, PROBLEMS: Update.
126 * src/include/lib.h: Replace getopt tests with getopt.h.
127 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
129 * doc/groff.texinfo: Further checking/updating. Adding more index
132 * man/groff_out.man: Fix nroff mode activation (for emacs).
133 * man/groff_font.man: Add missing ligature.
135 2000-02-28 Werner LEMBERG <wl@gnu.org>
137 * doc/groff.texinfo: Further checking/updating. Adding more index
140 * src/devices/grolbp/grolbp.man: Added a comment line at the
141 beginning of the file (similar to shell scripts) which indicates
142 that `tbl' should be used as a preprocessor.
144 2000-02-27 Blake McBride <blake@florida-software.com>
146 Adapting groff to MS Visual C++ 6.0 compiler (tested with
147 Windows NT 4.0). Uses _MSC_VER define where necessary.
149 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
150 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
151 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
152 src/include/lib.h, src/libs/libgroff/errarg.cc,
153 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
154 src/preproc/refer/label.y, src/preproc/refer/label.cc,
155 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
156 src/roff/troff/div.cc, src/roff/troff/env.cc,
157 src/roff/troff/input.cc, src/roff/troff/node.cc,
158 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
159 if_to_a() to avoid name clashes.
160 * src/include/posix.h: Don't use unistd.h.
161 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
162 clause for integrating non-Unix xtmpfile() code.
163 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
164 structure; use "rt" for popen() in pipe_source(); add getpid()
166 * src/roff/troff/node.cc: Use special versions of popen() in
167 real_output_file() and pclose() in ~real_output_file().
169 2000-02-27 Werner LEMBERG <wl@gnu.org>
171 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
172 LBP-8 series laser printers). This code has been contributed by
173 Francisco Andres Verdu <pandres@dragonet.es>.
175 * src/devices/grolbp/*: The grolbp output device.
176 * font/devlpb/*: The font description files.
177 * Makefile.in: Add grolpb and devlbp subdirectories.
179 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
180 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
183 * doc/groff.texinfo: Further checking/updating. Adding more index
188 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
190 * man/groff_font.man: Adding info about obsolete DESC keywords.
191 * src/devices/grolj4/grolj4.man: Documenting additional DESC
194 2000-02-26 Werner LEMBERG <wl@gnu.org>
196 * src/preproc/grn/grn.man: Added info about the gremlin file format
197 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
199 2000-02-25 Werner LEMBERG <wl@gnu.org>
201 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
202 friends to be non-integer.
204 * src/preproc/grn/grn.man: Document it.
206 * doc/groff.texinfo: Further checking/updating. Adding more index
209 2000-02-24 Werner LEMBERG <wl@gnu.org>
211 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
212 line thicknesses to be integer multiples of this value.
214 * src/preproc/grn/grn.man: Commenting out the -s option -- the
215 corresponding code doesn't work (yet).
217 * doc/groff.texinfo: Further checking/updating. Adding more index
220 2000-02-23 Werner LEMBERG <wl@gnu.org>
222 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
223 specify line thickness instead of base units. The new default
224 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
225 thick lines respectively.
227 Removed unused variable `prevval'.
229 * src/preproc/grn/grn.man: Updated.
231 2000-02-22 Werner LEMBERG <wl@gnu.org>
233 * src/preproc/grn/main.cc: Slight formatting.
235 * src/roff/groff/groff.man: Formatting fix.
236 * src/preproc/grn/grn.man: Ditto.
238 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
240 * doc/groff.texinfo: Further checking/updating.
242 2000-02-21 Werner LEMBERG <wl@gnu.org>
244 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
246 * test-groff: Added grn subdir to path.
248 * doc/groff.texinfo: Some restructing and other small improvements.
250 * src/roff/groff/groff.cc (help): Fixed info string.
252 2000-02-20 Werner LEMBERG <wl@gnu.org>
254 * doc/meref.me: Fix description of .GS request.
256 * src/roff/troff/troff.man: Fixing typo.
258 Adding the `grn' preprocessor for gremlin graphic files.
260 * src/preproc/grn/*: This is the Berkeley distribution written by
261 David Slattengren and Barry Roitblat, adapted to groff by Daniel
262 Senderowicz and Werner Lemberg.
264 * doc/grnexampl.{me,g}: A sample for grn.
266 * Makefile.in: Added subdirectory entry for grn.
268 * src/roff/groff/groff.cc: Added support for grn. It can be now
269 called with the switch `-g'.
271 * src/roff/groff/groff.man: Updated.
273 * src/roff/grog/grog.{man,pl,sh}: Updated.
277 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
279 * src/include/lib.h: Added xtmptemplate and made xtmpfile
280 parametrically polymorphic.
282 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
283 and the alterations to xtmpfile.
284 xtmpfile can be requested to return the filename created
285 and asked not to unlink the temp file. The default behaviour
286 if parameters are absent is exactly the same as before.
288 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
290 A new request `length' is available which returns the length of a
291 string in a number register:
293 * src/roff/troff/input.cc (length_macro): Implement it.
294 * src/roff/troff/input.cc (init_input_requests): Register it.
296 2000-02-11 Werner LEMBERG <wl@gnu.org>
298 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
299 of the `substring' request.
301 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
304 * src/roff/troff/TODO, NEWS: Updated.
306 2000-02-09 Werner LEMBERG <wl@gnu.org>
308 * src/roff/groff/groff.man: Added an example.
310 2000-02-06 Werner LEMBERG <wl@gnu.org>
312 I've considerably modified the directory structure of the
313 distribution to get a more vertical layout. For example, the number
314 of top level directories has been reduced from 42 to 6.
316 As a consequence, many changes, especially to the makefiles, were
319 * The makefile variables `top_builddir' and `top_srcdir' have been
320 introduced. Virtually all relative paths have been replaced with
321 absolute ones using these two variables.
323 * Dependencies (in the files `Makefile.dep') are no longer part of
324 the distribution. Instead, they are created during a `make install'
325 in the build directory.
327 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
328 make `top_srcdir' and `top_builddir' absolute.
332 * Man pages no depend on the files `VERSION' and `REVISION'.
334 * The added shell script `mkinstalldirs' will replace `mkdir' in
337 * VERSION: Version number increased to 1.16.
339 2000-02-04 Werner LEMBERG <wl@gnu.org>
341 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
343 * Makefile.in: Removed $(tmac_m) since it is no longer needed
344 (after an update of the mm stuff).
346 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
348 2000-02-03 Werner LEMBERG <wl@gnu.org>
350 The .psbb request will now also accept Mac PS images (i.e. using LF
351 as the EOL character).
353 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
354 (with slight modifications).
355 * troff/input.cc (do_ps_file): Use it.
357 * test-groff: Add grohtml and grolj4 output devices to PATH.
359 2000-01-30 Werner LEMBERG <wl@gnu.org>
361 * NEWS, MORE.STUFF: Updated.
363 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
365 Add the `srand' command to pic.
367 * pic/lex.cc, pic/pic.y: Implement it.
368 * pic/pic.man: Document it.
369 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
371 2000-01-30 Werner LEMBERG <wl@gnu.org>
373 Add a new request `.psbb'. This does exactly what the external
374 program psbb did. It scans a PostScript image file for a
375 %%BoundingBox comment and extracts the bounding box values (in
376 PostScript units) which are then stored in the four new (read-only)
377 number registers `llx', `lly', `urx', and `ury'.
379 This will allow the usage of the .PSPIC macro without worrying
380 about unsafe behaviour of groff, i.e., it will work without the
381 `-U' switch of groff.
383 * troff/input.cc: Implement it.
384 * tmac/tmac.pspic: Use it.
385 * troff/troff.man, grops/grops.man, NEWS: Document it.
386 * psbb/*, Makefile.in: Remove it since it is no longer needed.
388 This is bloody C code simply adapted from psbb.c! Any improvements
391 2000-01-29 Werner LEMBERG <wl@gnu.org>
393 * man/groff_font.man: Minor clarifications.
397 2000-01-28 Werner LEMBERG <wl@gnu.org>
399 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
401 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
403 * man/groff_font.man: Brought up to date regarding tcommand
405 * libgroff/font.cc: Handle everything after `--' as a comment
407 * devps/*: Added comment delimiter inside devps font files.
409 2000-01-28 Werner LEMBERG <wl@gnu.org>
411 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
412 \fC...\fP (which now works as expected).
414 * troff/troff.man: Fix typo.
416 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
418 Completed the pass_filenames implementation in troff.
420 * libdriver/input.cc: Will read the new `F' tcommand.
421 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
422 * troff/input.cc: Use it.
424 2000-01-26 Werner LEMBERG <wl@gnu.org>
426 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
427 font will now be updated even if an invalid font is selected.
429 2000-01-24 Werner LEMBERG <wl@gnu.org>
431 * doc/homepage.ms: Updated for new tmac.arkup.
433 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
435 * tmac/tmac.arkup: Cleanup.
437 Added `\&' to .HTML macro to `leave vertical mode', so to say.
439 Removed obsolete .LINK macro completely.
441 The macros .URL, .FTP, and .MAILTO now accept a third argument which
442 will be immediately appended to the second argument (to be used with
443 punctuation, for example).
445 Disabled .CDFTP macro temporarily for security reasons.
447 * tmac/groff_markup.man: Complete revision for latest changes in
448 tmac.arkup -- note that it does not yet format correctly with
451 2000-01-23 Bruno Haible <haible@clisp.cons.org>
453 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
454 * devutf8/R.proto: Add mappings for wp, lh, rh.
455 * devutf8/NOTES: Updated.
457 2000-01-23 Werner LEMBERG <wl@gnu.org>
459 * doc/groff.texinfo: Updated version/copyright info.
461 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
463 Added support for two new directives in device descriptions:
464 `pass_filenames' (to pass the input file name to the output device)
465 and `use_charnames_in_special' (to support e.g. accented characters
468 * include/font.h, troff/charinfo.h: Declare it.
470 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
472 * devhtml/DESC: Use it.
474 * troff/input.cc: New function encoded_char.
476 * troff/token.h: Add test for `specialness'.
478 2000-01-21 Werner LEMBERG <wl@gnu.org>
480 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
481 mistake from the list of files to be installed.
483 2000-01-18 Werner LEMBERG <wl@gnu.org>
485 * README: Added info how to apply patches.
487 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
489 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
491 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
493 * troff/input.cc: Add support for troffrc-end.
495 * tbl/main.cc: Altered to issue table-start and table-end special
496 characters if using the html device.
498 * devhtml/*: Modified font files to incorporate html encoding of
501 * tmac/groff_markup.man: New file documenting tmac.arkup.
503 * tmac/troffrc-end: New file. This is invoked after all user
504 specified macros. Currently used by the html device to include
505 tmac.html. Thus no need for users to specify -mhtml anymore.
507 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
508 (MAN7): Add groff_markup.man.
510 * tmac/tmac.an, tmac/tmac.html: Small html updates.
512 * tmac/troffrc: tmac.arkup will now be called for the html device.
514 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
515 extra device specific information about fonts.
517 * doc/homepage.ms: New file. It is an example how an HTML home page
518 could look like with grohtml.
520 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
522 2000-01-12 Bruno Haible <haible@clisp.cons.org>
524 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
527 * devutf8/NOTES: Updated.
529 2000-01-08 Bruno Haible <haible@clisp.cons.org>
531 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
532 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
533 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
534 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
535 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
536 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
537 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
538 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
541 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
543 2000-01-12 Fabrizio Polacco <fab@prosa.it>
545 grolj4: Paper size will be searched case-insensitively.
547 * grolj4/lib.h: Add check for strcasecmp().
548 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
549 * configure.in: Check for strcasecmp().
551 2000-01-11 Werner LEMBERG <wl@gnu.org>
553 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
556 2000-01-10 Werner LEMBERG <wl@gnu.org>
558 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
561 Add a new read-only register, `.Y', which contains the groff
564 * troff/input.cc (init_input_requests): Define it.
565 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
566 * doc/groff.texinfo, troff/troff.man: Document it.
568 * libgroff/Makefile.sub (version.cc): Add definition of
569 `Version_string[]', consisting of `<major>.<minor>.<revision>'
570 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
571 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
572 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
573 troff/input.cc, pfbtops/pfbtops.c: Use it.
575 2000-01-10 Fabrizio Polacco <fab@prosa.it>
577 Add a revision scheme to the groff package.
579 * REVISION: New file.
580 * libgroff/Makefile.sub (version.cc): Use it to define
582 * grops/psrm.cc: Use revision_string (converted to an unsigned
583 integer) in constructor of resource_manager.
585 2000-01-10 Bruno Haible <haible@clisp.cons.org>
587 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
589 * Makefile.in (DEVDIRS): Add devutf8.
590 * grotty/tty.cc: Include device.h.
591 (glyph): Change type of `code' to `unsigned int'.
592 (tty_printer): New field is_utf8. Constructor takes device argument.
593 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
594 (tty_printer::add_char): Change type of first arg to `unsigned int'.
595 (tty_printer::put_char): New function.
596 (tty_printer::end_page): Use put_char() instead of ::putchar().
597 (make_printer): Pass device to tty_printer constructor.
598 * nroff.sh: Determine default device by calling 'locale'. As a
599 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
600 Recognize UTF-8 locales.
601 * tmac/eqnrc: Recognize utf8 like latin1.
602 * tmac/troffrc: Device utf8 needs tmac.tty.
604 2000-01-07 Werner LEMBERG <wl@gnu.org>
606 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
608 2000-01-07 Paul Eggert <eggert@twinsun.com>
610 Add a new predefined writeable number register, `year',
611 which contains the current year.
613 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
614 * tmac/tmac.s: Use it.
615 * troff/input.cc (init_registers): Initialize it.
617 2000-01-06 Werner LEMBERG <wl@gnu.org>
619 * PROBLEMS: Fixed typo.
621 2000-01-04 Paul Eggert <eggert@twinsun.com>
623 * PROBLEMS: Add Y2k advice for the yr number register.
625 2000-01-03 Paul Eggert <eggert@twinsun.com>
627 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
629 2000-01-02 Werner LEMBERG <wl@gnu.org>
631 * tmac/tmac.arkup: Slight modification of macros to provide better
632 appearance for non-HTML formats.
634 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
636 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
637 does not automatically translate to malloc(n) on all OSes
638 (e.g., SunOS) so do it explicitly. Also, check the returned
641 2000-01-01 Werner LEMBERG <wl@gnu.org>
643 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
645 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
646 expects this variable
648 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
650 * doc/Makefile: Added instructions to create HTML and text
651 versions of some files.
653 1999-12-31 Werner LEMBERG <wl@gnu.org>
655 * Updated INSTALL.gen.
657 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
658 better resp. correctly with non-HTML devices.
660 Version 1.15 released
661 =====================
663 1999-12-28 Werner LEMBERG <wl@gnu.org>
665 * NEWS, VERSION: Changed to 1.15
667 1999-12-27 Paul Eggert <eggert@twinsun.com>
669 * nroff/nroff.man: -S is safer, not safe.
671 * groff/groff.cc (main): Use `safer', not `safe', in variable
672 names. This does not change the behavior.
674 * troff/input.cc (main): Likewise.
676 * nroff/nroff.sh: Likewise.
678 * troff/input.cc (prepend_string): New function.
679 (main): Prepend -msafer, so that we check macro libraries for
682 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
684 Version 1.14 released
685 =====================
687 1999-12-26 Werner LEMBERG <wl@gnu.org>
689 * NEWS, VERSION: Changed to 1.14.
691 1999-12-24 Werner LEMBERG <wl@gnu.org>
693 * refer/refer.cc: Fixing the last fix.
695 Version 1.13 released
696 =====================
698 1999-12-23 Werner LEMBERG <wl@gnu.org>
700 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
705 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
707 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
708 document conventions, the version number must be a real.
710 Version 1.12.1 released
711 =======================
713 1999-12-22 Werner LEMBERG <wl@gnu.org>
715 * VERSION: Changed to 1.12.1.
717 1999-12-22 Alan Rooks <arooks@istar.ca>
719 * refer/refer.cc (do_file): Slight modification to satisfy the
720 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
723 1999-12-20 Werner LEMBERG <wl@gnu.org>
725 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
728 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
729 list of unsafe requests.
731 * pic/pic.man: Fixed a typo.
733 * man/groff_out.man: Fixed a typo.
735 1999-12-18 Werner LEMBERG <wl@gnu.org>
737 * Makefile.in: Doc fixes.
739 1999-12-17 Fabrizio Polacco <fab@prosa.it>
741 * groff/groff.cc: Missing `U' option added to getopt().
743 * troff/troff.man: Missing `U' option added to synopsis.
745 Version 1.12 released
746 =====================
748 1999-12-14 Werner LEMBERG <wl@gnu.org>
750 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
753 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
754 with the more appropriate terms `safer' and `unsafe'.
756 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
757 sys_nerr and sys_errlist[].
759 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
761 * pic/pic.y, pic/pic.cc: Added check for fmod().
763 1999-12-13 Werner LEMBERG <wl@gnu.org>
765 * VERSION: Changed to 1.12.
767 Here some patches from various sources; most of them taken from
768 the Debian distribution.
770 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
771 tmac/Makefile.sub: New files copied directly from the NetBSD
772 distribution. Probably, some additional adaptation later on is
775 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
778 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
779 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
780 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
781 (`-S') is now the default.
783 * README, NEWS: Updated.
785 1999-12-09 Werner LEMBERG <wl@gnu.org>
787 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
789 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
791 1999-12-06 Werner LEMBERG <wl@gnu.org>
793 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
794 grief than relief today. Additionally, it is against the GNU
797 * configure: Recreated.
799 1999-12-05 Werner LEMBERG <wl@gnu.org>
801 * configure.in: Added GROFF_LIBM.
803 * configure: Recreated.
805 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
808 * Makefile.in: Added definition of $(LIBM).
810 * Makefile.comm (LIBM): Removed.
812 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
814 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
816 * doc/Makefile: Added rule for generation pic.html.
818 (clean): Files produced by grohtml will be removed also.
820 * doc/pic.ms: Small fix.
822 * tmac/tmac.html: Fixed suppression of headers.
824 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
826 * tmac/tmac.html: Fixing horizontal arrows.
828 Turning off hyphenation.
830 * tmac/tmac.an: Improved support for grohtml; better indentation,
833 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
835 * tmac/tmac.arkup: Added CDFTP macro
837 * tmac/tmac.html: All headers are turned off for ms, me, and mm
840 * tmac/troffrc: Some additions for HTML stuff.
842 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
844 * tmac/tmac.html: Small changes.
846 1999-09-26 Werner LEMBERG <wl@gnu.org>
848 * doc/groff.texinfo: Minor fixes.
850 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
852 * devhtml/TR: Changed spacewidth to 3.
854 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
856 * tmac/tmac.html: Moved markup macros to tmap.arkup.
858 * tmac/tmac.arkup: New file.
860 * grohtml/ChangeLog: New file.
862 1999-09-16 Werner LEMBERG <wl@gnu.org>
864 * doc/groff.texinfo (Common Features): Added Copying chapter.
865 Changed format to @smallbook.
867 1999-09-15 Werner LEMBERG <wl@gnu.org>
869 * NEWS: Added info about groff.texinfo.
871 * doc/groff.texinfo: Will now compile (using texi2dvi) without
874 1999-09-14 Werner LEMBERG <wl@gnu.org>
876 * groff/groff.man: More updates.
878 1999-09-13 Werner LEMBERG <wl@gnu.org>
880 * doc/groff.texinfo: New file. This manual is still very
881 rudimentary. It has been originally contributed by Trent
882 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
885 * INSTALL: Added information about the `doc' subdir
887 * troff/troff.man: Minor fixes.
889 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
892 * troff/input.cc (usage): Added missing `-ffam' to usage message.
894 * Makefile.in (dist): groff-$(version).tar.gz must be removed
895 also, otherwise it is included itself in another call of `make
898 * groff/groff.cc (synopsis): Removed superfluous space.
900 * PROJECTS, PROBLEMS, NEWS: Updated.
902 * xditview/Makefile: Removed.
904 * VERSION: Updated to 1.12beta.
906 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
908 * README: Updated: Included documentation about CVS repository,
909 mailing lists, and daily snapshots.
911 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
913 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
915 * tmac/tmac.an: If the tag didn't fit into the space that the
916 macro `TP' specifies, the rest of the tag went into the space for
919 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
921 * grolj4/lj4.cc: Added duplex printing (option `-d').
923 * grolj4/grolj4.man: Document duplex printing.
925 1999-09-12 Werner LEMBERG <wl@gnu.org>
927 * doc/Makefile (pic.ps): Fixed rule which caused problems with
928 non-GNUish sed programs.
930 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
933 * configure.in (LIBS): Added `-lc'
935 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
937 * pic/tex.cc (solid_arc): Casting M_PI to double.
939 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
941 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
942 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
943 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
945 * groff/groff_man.man: New file. This manual page was originally
946 written for the Debian GNU/Linux system by Susan G. Kleinmann
949 * eqn/list.cc (list_box::compute_metrics,
950 list_box::compute_sublist_width): Removed variable declaration to
951 avoid shadowing warnings.
953 * grops/psrm.cc (resource_manager::process_file): Ditto.
955 * tfmtodit/tfmtodit.cc (main): Ditto.
957 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
958 to avoid shadowing warnings.
960 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
961 shadowing loop variable.
963 * groff/groff.man, troff/troff.man: Added doc about grohtml.
965 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
967 New grohtml frontend to convert groff input to html.
969 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
971 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
973 * tmac/eqnrc: Added html device.
975 * tmac/tmac.html: New file.
977 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
978 (troff_output::start_picture, troff_output::finish_picture),
979 tbl/main.cc (process_input_file):
980 Surrounded output with `graphics_start' and `graphics_end' so that
981 the html driver can identify non-text portions.
983 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
984 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
985 grotty/tty.ps (tty_printer::set_char): Additional parameter
988 * include/printer.h: Class printer: New function
989 set_char_and_width; new variables (is_char_named, is_named_set,
990 named_command, named_char_s, named_char_n) to hold information
991 about named characters -- needed by the html driver.
993 * libdriver/printer.cc (printer::set_ascii_char,
994 printer::set_special_char): Use set_char_and_width.
996 * devhtml/*: New device files for html driver.
998 * grohtml/*: New driver grohtml.
1000 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
1002 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1005 1999-09-11 Luke Mewburn <lukem@netbsd.org>
1007 * libgroff/string.cc (search): Small fix to test against NULL
1010 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
1012 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1013 \b'abc') were stacked in reverse order when processed in a
1016 * troff/node.h: Added `*last' to struct `node' to make the above
1019 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1020 The default scale for the 'f' and 't' graphics functions were 'm'
1021 rather than 'u' (i.e., no scaling).
1023 1999-09-11 Peter Miller <peterm@jna.com.au>
1025 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1026 do_file), soelim/soelim.man: Added `-I file' option to soelim,
1027 defining include paths.
1029 * soelim/soelim.cc (include_path_append): New function.
1031 1999-09-11 Larry Jones <larry.jones@sdrc.com>
1033 * tbl/main.cc (process_options): Unix (at least Documenter's
1034 Workbench) tbl allows arbitrary non-alpha characters between
1037 1999-09-11 Paul Eggert <eggert@twinsun.com>
1039 Y2k fixes. Don't assume that the current year precedes 2000.
1041 * doc/meref.me: Add \n(y2, \n(y4.
1043 * tmac/doc-common (Yr): New number register.
1044 (Dd): Don't assume current year precedes 2000.
1046 * tmac/tmac.e (td): Likewise.
1047 (y2, y4): New number registers.
1049 * pic/pic.man: Update reference for pic paper to May, 1991
1052 1999-09-11 Werner LEMBERG <wl@gnu.org>
1054 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1055 Removed quotation marks which prevented correct expansion of
1058 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1060 1999-09-10 Werner LEMBERG <wl@gnu.org>
1062 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1065 * Removed configure.old.
1067 1999-08-31 Werner LEMBERG <wl@gnu.org>
1069 * VERSION: Updated to 1.11.1
1071 1999-05-27 Werner LEMBERG <wl@gnu.org>
1073 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1075 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1076 added quotations around $(tmac_wrap) to avoid syntax error if
1079 * configure: Newly generated using autoconf 2.13.
1081 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1083 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
1085 * README, PROJECTS, NEWS, INSTALL, VERSION,
1086 doc/Makefile. doc/pic.ms, groff/groff.man:
1087 Prepare for 1.11 release. No code changes.
1088 Documentation for pic added (doc/pic.ms).
1090 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
1092 * Version 1.10 released.
1094 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
1096 * afmtodit/afmtodit.pl: Avoid comment on first line.
1098 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
1100 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1101 * configure.in: Call it.
1103 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1104 (distfiles): Doesn't depend on config.log or config.cache.
1106 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
1108 * grog/grog.sh: Use print "" rather than print in END rule.
1110 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
1112 * tbl/main.cc (process_data): Don't give error for excess data
1113 entries that are comments.
1115 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
1117 * tbl/main.cc (process_data): Fix case where new for-scope rules
1118 silently change meaning of code.
1120 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
1122 * troff/env.cc (hyphenate): Loop over all consecutive sequences
1123 of non-zero hyphenation codes.
1125 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
1127 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1129 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
1131 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1133 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
1135 * tmac/tmac.andoc: Make it work in compatibility mode.
1137 * refer/token.h (token_info::is_range_sep): New function.
1138 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1139 * refer/ref.cc (reference::output): More sophisticated check for
1142 * devps/prologue.ps (MANUAL): New procedure.
1143 * grops/ps.cc (main): New -m option.
1144 (usage): Include -m.
1145 (ps_printer::~ps_printer): Implement -m.
1147 * aclocal.m4 (GROFF_G): New macro.
1148 * configure.in: Call it.
1149 * Makefile.in (g): Provided by configure.
1151 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1153 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
1156 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1157 (tmac_m, tmac_s): Deleted.
1158 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1159 tmac_s_prefix): New variables.
1160 (MDEFINES): Change accordingly.
1161 * Makefile.comm (.man.n): Use new TMAC_* variables.
1162 * configure.in (GROFF_TMAC): Call.
1163 * aclocal.m4 (GROFF_TMAC): Define.
1164 * tmac/Makefile.sub (stamp_wrap): New target.
1165 (install_data, uninstall_sub): Handle macro wrapping.
1167 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
1169 * tbl/main.cc (main): Ignore -T option.
1171 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
1173 * devlj4/generate/special.map: Add definition of \(nb.
1175 * tmac/tmac.dvi: Add definition of \(nb.
1177 * troff/dictionary.c (dictionary::dictionary): association::v gets
1178 initialized by association::association.
1180 * tmac/Makefile.sub: Avoid using temporary files when installing.
1182 * troff/env.cc (environment::set_font): Make bad font number a
1185 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1187 * Makefile.in (datadir): Use share rather than lib.
1189 * groff/groff.cc (basename): Rename to xbasename.
1191 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
1193 * Makefile (CCLIBS): Don't use.
1194 * Makefile.ccpg: Likewise.
1196 * acgroff.m4: Rename to...
1197 * aclocal.m4: Modify extensively for autoconf 2.
1198 * configure.in: Likewise.
1199 * Makefile.in: Likewise.
1201 * groff/pipeline.c (const): Declare as empty if __STDC__ not
1203 (xstrsignal): Check for definition of NSIG. Conditionalize
1204 on SYS_SIGLIST_DECLARED. Make return type const.
1206 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
1208 * troff/input.cc (interpolate_macro): Rephrase missing space
1211 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1213 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1214 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1215 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1216 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1217 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1218 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1219 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1220 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1221 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1222 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1223 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1226 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
1228 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1230 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1232 (macro_iterator::macro_iterator): Add additional argument.
1234 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
1236 * troff/div.cc (vertical_size::vertical_size): In place of integer
1237 specifying line spacing use cunits specifying post vertical
1239 (macro_diversion::output, top_level_diversion::output): Likewise.
1240 * troff/div.h: Change declarations accordingly.
1241 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1243 (pending_output_line::pending_output_line,
1244 pending_output_line::output, environment::output,
1245 environment::output_line, environment::output_title,
1246 environment::hyphenate_line): In place of
1247 integer specifying line spacing use cunits specifying post vertical
1249 (environment::environment): Add post_vertical_spacing and
1250 prev_post_vertical_spacing arguments.
1251 (environment::get_post_vertical_spacing): New function.
1252 (environment::total_post_vertical_spacing): New function.
1253 (environment::post_vertical_spacing): New function.
1254 (init_env_requests): Initialize pvs request and .pvs register.
1255 * troff/env.h: Change declarations.
1257 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1259 * tmac/tmac.pspic: Immediately remove the temporary file.
1261 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1263 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1264 height is specified.
1266 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1268 * tbl/table.c (struct vertical rule, class table_entry): Use int
1269 not short for start_row and end_row.
1271 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1273 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1275 (diverted_space_node::reread, process_input_stack): Call
1276 trapping_blank_line() rather than blank_line().
1277 (init_input_requests): Bind "blm" to blank_line_macro().
1279 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1281 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1283 * troff/env.cc (environment::possibly_break_line): Require that
1284 width total excluding width of final space node be greater than
1285 the target text length.
1287 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1289 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1291 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1293 * troff/node.cc (charinfo_node): New class.
1294 (glyph_node, composite_node): Derive from charinfo_node. Change
1295 member functions accordingly.
1297 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1299 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1301 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1303 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1305 * devps/generate/textmap (notsubset): Add.
1307 * tmac/tmac.a4: New file.
1309 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1311 * pic/main.cc (had_parse_error): New variable.
1312 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1314 (main): Return 1 if had_parse_error is true.
1316 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1318 * grolj4/lj4.cc (main): Avoid use of strtoul.
1320 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1322 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1323 iso_8859_1 or $LESSCHARSET is latin1.
1325 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1327 * hpftodit: New directory.
1328 * Makefile.in (CCPROGDIRS): Add hpftodit.
1329 * devlj4/generate: New directory.
1331 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1333 * configure.in: Don't use AC_VFORK.
1334 * groff/pipeline.c (run_pipeline): Use fork() always.
1336 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1338 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1340 * Makefile.in (CCPROGDIRS): Add grolj4.
1341 (DEVDIRS): Add devlj4.
1342 * grolj4, devlj4: New directories.
1343 * tmac/troffrc: Handle lj4.
1344 * tmac/tmac.lj4: New file.
1346 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1348 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1350 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1352 * troff/input.cc (do_if_request): At end of second string, switch
1353 environments before getting next token.
1355 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1357 * devps/psstrip.sed: Split rule that strips whitespace on either
1360 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1362 * troff/node.h (font_family::make_definition): Add return value to
1363 declaration. * troff/symbol.h (symbol::operator==,
1364 symbol::operator!=): Likewise.
1366 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1368 * groff/groff.cc (main, help, synopsis): Handle -S.
1369 (possible_command::insert_arg): New function.
1371 * tmac/tmac.safer: New file.
1372 * tmac/msafer.man: New file.
1373 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1375 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1377 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1378 * pic/pic.y (placeless_element): Avoid unsafe operations if
1379 `safer_flag' is set.
1380 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1382 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1384 * eqn/lex.cc (get_token): Put call to add_context() in block to
1385 work around Sun C++ 4.0 bug.
1387 * include/stringclass.h (operator +): Use ?: instead of `if' to
1388 work around Sun C++ 4.0 bug.
1390 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1392 * tbl/main.cc (process_format): Accept - as a synonym for the _
1395 * libbib/index.cc (minus_one): Don't declare as const.
1397 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1399 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1401 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1403 * troff/input.cc (write_macro_request): New function.
1404 (init_input_requests): Bind write_macro_request to writem.
1406 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1408 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1411 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1413 * tmac/tmac.s (@TS): Renamed from TS.
1414 (TS): Call LP then TS again.
1415 (cov*ab-init): Alias @TS to TS.
1417 * tmac/tmac.s: Allow QP or RS to initialize.
1419 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1420 Move initializations of PS and LL here.
1421 (par@init): Don't initialize HY. Avoid changing environment 0.
1422 (par*env-init): Don't all par@reset.
1424 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1426 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1428 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1430 * Makefile.in (MDEFINES): Add LDFLAGS.
1431 (LDFLAGS): Add definition line.
1433 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1435 * troff/input.cc (get_optional_char): Split off error check into...
1436 (check_missing_character): New function.
1437 * troff/token.h: Declare it.
1438 * troff/env.cc (margin_character): Don't call get_optional_char.
1439 Only call tok.next() after making the node.
1441 * include/lib.h (getopt): Make 2nd argument char *const *.
1443 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1445 * nroff/conftest.sh: Deleted.
1447 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1449 * pic/make-dos-dist: Deleted.
1451 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1453 * devps/psstrip.sed: Strip comments before stripping trailing
1456 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1458 * Version 1.09 released.
1460 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1462 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1464 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1466 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1468 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1470 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1471 about returning without a value.
1473 * troff/charinfo.h (charinfo::get_special_translation): Cast
1474 TRANSLATE_NONE to int.
1476 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1477 test. Fix test so that it works with n unsigned.
1479 * pic/pic.y (defaults_table): Fully bracket initializer.
1480 * pic/lex.cc (lookup_keyword): Likewise.
1481 * eqn/lex.cc (token_table, def_table): Likewise.
1482 * eqn/box.cc (param_table): Likewise.
1483 * troff/input.cc (warning_table): Likewise.
1484 * libgroff/font.cc (table): Likewise.
1485 * grops/ps.cc (ps_printer::special): Likewise.
1486 * grops/psrm.cc (resource_manager::process_file): Likewise.
1487 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1488 * refer/command.cc (command_table): Likewise.
1489 * addftinfo/addftinfo.cc (param_table): Likewise.
1491 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1492 about temp's being unused.
1493 (unused): New function.
1495 * groff/pipeline.cc: Declare c_fatal.
1497 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1500 * libbib/index.cc (index_search_item::load): Prevent compiler
1501 warnings about fd_closer's being unused.
1502 (unused): New function.
1504 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1506 * troff/input.cc (copy_mode_error): Make `prefix' static.
1509 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1511 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1512 HAVE_CC_OSFCN_H and modify accordingly.
1514 * troff/input.cc (init_charset_table): radicalex overlaps
1517 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1518 udodo!hans@relay.NL.net).
1519 * groff/configure.in: Call it.
1521 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1522 * groff/configure.in: Call it.
1523 * include/lib.h: Conditionalize declaration of pclose.
1525 * troff/div.cc (last_page_number): New global variable.
1526 (top_level_diversion::begin_page): Exit if we just printed the
1528 * troff/div.h (last_page_number): Declare it.
1529 * troff/input.cc (parse_output_page_list): Set last_page_number.
1531 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1532 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1533 tmac/tmac.X: Likewise.
1534 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1535 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1537 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1539 * tmac/doc-ditroff (hK): Remove groff specific code which
1540 prevented page-breaks between separate manual entries. If this is
1541 the first page, don't set the page number to 1.
1543 * acgroff.m4 (GROFF_POSIX): New macro.
1544 * configure.in: Use it.
1546 * troff/node.cc (class real_output_file,
1547 real_output_file::real_output_file,
1548 real_output_file::~real_output_file): Conditionalize use of
1549 popen/pclose on POPEN_MISSING.
1550 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1551 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1552 (pipe_source): Similarily.
1554 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1556 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1557 presence of declarations by trying to compile example with
1558 conflicting declarations. (gcc only gives a warning for missing
1561 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1563 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1564 (from Ulrich Lauther).
1566 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1568 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1570 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1572 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1573 pointers and ints have different sizes.
1575 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1577 * tmac/tmac.s (par*env-init): Call par@reset.
1579 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1581 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1583 (par*push-tag-env, par*pop-tag-env): New macros.
1585 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1587 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1588 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1590 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1591 comment. Include <time.h>.
1593 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1595 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1596 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1599 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1601 * troff/input.cc (read_request): Only print a prompt if reading
1602 from the terminal. Also clearerr on EOF if reading from the
1603 terminal. Declare isatty.
1605 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1607 * refer/label.y: Rename map_t to map_func and extractor_t to
1610 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1612 * include/assert.h: Don't use volatile.
1613 * libgroff/assert.cc: Likewise.
1615 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1617 * troff/input.cc (abort_request): Look at character in tok before
1620 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1622 * troff/troff.h (NO_RETURN): Deleted.
1623 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1624 * troff/input.cc (exit_troff): Likewise
1626 * Makefile.in: Remove `Making ...' messages since GNU make now
1629 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1631 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1633 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1636 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1638 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1640 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1642 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1643 MARK_REG if there was no left delimiter.
1645 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1647 * pic/troff.cc (troff_output::text): Set line thickness to
1648 relative before outputting text.
1650 * tmac/tmac.e (@k): Don't zero ?T.
1653 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1655 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1657 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1659 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1662 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1664 * troff/input.cc (ignoring): New variable.
1665 (ignore): Set ignoring during call to do_define_macro.
1666 (do_define_macro): Clear ignoring before interpolating terminating
1668 (copy_mode_error): New function.
1669 (get_char_for_escape_name, read_long_escape_name,
1670 interpolate_arg): Use copy_mode_error.
1671 (warning_table): Add WARN_IG.
1672 * troff/troff.h (WARN_IG): Declare.
1673 (WARN_TOTAL): Change accordingly.
1675 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1676 * groff/groff.cc (strsignal): Delete declaration.
1678 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1680 * troff/div.cc (page_offset): Use 'm' as default scaling.
1682 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1684 * nroff/nroff.sh: Ignore -u.
1686 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1688 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1690 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1692 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1694 (B2): With -Tascii, leave additional vertical space before
1695 and after. Ensure that the left and right indent is restored to
1696 what it was even if the point size changes. Don't call
1697 par@finish. Change the indent, line length and title length
1698 directly. With -Tascii, make the width of the box 1n less.
1699 (B1): Remember 1n at the current point size. Don't call
1700 par@reset. Change the indent, line length and title length
1701 directly. Ensure that the temporary indent is preserved.
1702 (par*box-mark-top): Turn off no spacing mode.
1704 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1706 * Makefile.in (dist): Use .gz suffix.
1708 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1710 * troff/input.cc (main): Add return 0.
1711 * pic/main.cc (main): Use return instead of exit.
1712 * tbl/main.cc (main): Likewise.
1713 * eqn/main.cc (main): Likewise.
1714 * grops/ps.cc (main): Likewise.
1715 * grotty/tty.cc (main): Likewise.
1716 * groff/groff.cc (main): Likewise.
1717 * grodvi/dvi.cc (main): Likewise.
1718 * refer/refer.cc (main): Likewise.
1719 * indxbib/indxbib.cc (main): Likewise.
1720 * lkbib/lkbib.cc (main): Likewise.
1721 * soelim/soelim.cc (main): Likewise.
1722 * addftinfo/addftinfo.cc (main): Likewise.
1723 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1724 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1726 * troff/token.h (process_input_stack): Don't declare as static.
1727 * troff/input.cc: Likewise.
1729 * troff/node.c (invalidate_fontno): Make it a static member of
1730 class font_family. Change callers.
1731 * troff/node.c: Change declaration.
1733 * tbl/main.cc (struct input_entry_format): Add explicit public
1735 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1736 struct double_hline_stuff): Likewise.
1737 * tbl/table.h (struct entry_format): Likewise.
1738 * pic/object.h (struct saved_state): Likewise.
1740 * include/stringclass.h: Add forward declarations of friend
1741 functions that are later declared as inline. Don't include inline
1742 specifier in friend declaration.
1744 * libgroff/lib.h: Declare popen and pclose.
1745 * acgroff.m4 (GROFF_POPEN): New macro.
1746 * configure.in: Call it.
1748 * include/lib.h (PI): New constant. Undef first if necessary.
1749 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1750 * grops/ps.cc (degrees, radians): Likewise.
1751 * libgroff/font.cc (font::get_skew): Likewise.
1753 * grops/ps.cc (is_ascii): New function.
1754 (ps_output::put_string): Use is_ascii. Use csprint rather than
1756 (ps_printer::define_encoding): Use csspace.
1757 * libgroff/strtol.c (ISASCII): New macro.
1758 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1759 Use ISASCII rather than isascii.
1760 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1761 * libgroff/cset.cc: Likewise.
1762 * libdriver/input.cc: Include cset.h.
1763 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1766 * refer/refer.cc (main): Use %ld rather than %d for longs.
1768 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1771 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1773 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1775 * troff/input.cc (hyphenation_code): Skip white space between
1778 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1780 * tbl/table.h (table::entry_list_tailp): New member.
1781 (table::table): Initialize it.
1782 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1785 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1787 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1788 with negative horizontal positions. Remove casts of glyph::hpos to
1790 (USHRT_MAX): Delete definition.
1791 (SHRT_MAX, SHRT_MIN): New definitions.
1792 (glyph::hpos): Change type to short.
1793 (tty_printer::end_page): Output multiple backspaces if necessary.
1794 Remove casts of glyph::hpos to int.
1796 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1798 * tmac/tmac.s (@RT): New definition.
1800 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1802 * refer/refer.cc (do_file): Make sure current_filename is set when
1805 * pic/common.cc (common_output::dot_line): Handle zero length
1808 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1810 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1811 (par@init): Initialize \n[HY].
1813 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1815 * troff/dictionary.cc (dictionary::remove): Continue when
1818 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1820 * Makefile.com (.y.cc): Avoid ending up with two versions of
1823 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1825 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1826 (\(,C): Likewise. Also fix typo.
1828 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1830 * lib.h: Delete extraneous semi-colon.
1832 * Add pso request: `so' from a pipe.
1833 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1834 (file_iterator::close): New function.
1835 (file_iterator::~file_iterator, file_iterator::next_file): Use
1836 file_iterator::close.
1837 (file_iterator::backtrace): Say `process' rather than `file' when
1838 the stream is popened.
1839 (pipe_source): New function.
1840 (init_input_requests): Bind ".pso" to pipe_source.
1842 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1844 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1846 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1847 digits in lower case.
1849 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1851 * Version 1.08 released.
1853 * Makefile.in (dist): Insert || true after ln -s commands that
1856 * mm: Update to mm 1.16.
1858 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1859 * configure.in: Call GROFF_CSH_HACK. Substitute for
1861 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1863 * nroff/Makefile.sub (nroff): New target.
1864 (install_data): Install nroff.
1865 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1866 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1868 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1870 * eqn/Makefile.sub (neqn): Add chmod +x.
1872 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1874 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1876 * troff/input.cc (string_iterator::string_iterator()): Initialize
1879 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1881 * troff/div.cc (macro_diversion::space,
1882 top_level_diversion::space): Don't set high_water_mark.
1883 (macro_diversion::output, top_level_diversion::output): Don't
1884 include post line space in high water mark.
1886 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1888 * eqn/eqn.y: Don't define YYDEBUG.
1889 * pic/pic.y: Likewise.
1891 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1893 * tmac/tmac.e ([3): Add space after comma following editors.
1894 Change double spaces to single spaces.
1895 ([4): Change double spaces to single spaces.
1897 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1898 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1899 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1900 after %!PS-Adobe- (for Newsprint).
1902 * troff/div.cc (top_level_diversion::begin_page): When
1903 before_first_page is 1, set page_number to 1.
1905 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1907 * eqn/box.cc (box::top_level): Protect equation with \&.
1909 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1911 * groff/groff.cc (possible_command::set_name): Delete old name.
1913 * groff/groff.cc (possible_command::~possible_command): Use
1916 * troff/node.cc (troff_output_file::begun_page): New member.
1917 (troff_output_file::troff_output_file): Initialize it.
1918 (troff_output_file::really_begin_page): Only output V command if a
1919 page has been begun.
1921 * pic/pic.y (placeless_element): Delete argument to PRINT after
1924 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1926 * Make wrapman work.
1927 * troff/div.h (class top_level_diversion): Replace
1928 first_page_begun by before_first_page (with opposite sense).
1929 * Change first_page_begun to before_first_page inverting sense.
1930 * troff/div.cc (class nl_reg): New class.
1931 (init_div_requests): Use class nl_reg for \n(nl.
1932 (top_level_diversion::begin_page): Don't call
1933 output_file::begin_page if before_first_page is 2;
1934 reset before_first_page afterwards. If have_next_page_number is
1935 false, then always increment page_number.
1936 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1937 Restore compatibility mode after loading, and then disable
1938 compatibility mode in TH.
1940 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1942 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1944 * troff/node.h (output_file::trailer): Declare.
1945 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1946 * troff/node.cc (output_file::trailer): New function.
1947 (troff_output_file::~troff_output_file): Move most code into...
1948 (troff_output_file::trailer): New function.
1949 (class troff_output_file): Delete page_length member. Declare
1951 (troff_output_file::really_begin_page): Use current page length
1952 for final V command.
1954 * tbl/main.cc (struct options): New decimal_point_char member.
1955 (options::options): Initialize this.
1956 (process_options): Implement decimalpoint option.
1957 (process_data): Pass decimal_point_char option to table::table.
1958 * tbl/table.h (class table): New decimal_point_char member.
1959 (table::table): Add additional argument.
1960 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1961 second argument specifying decimal point character. Use this
1963 (table::table): Initialize decimal_point_char.
1964 (table::add_entry): Change call to find_dot.
1966 * troff/input.cc (get_copy, token::next): Implement \V.
1967 (interpolate_environment_variable): New function.
1969 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1971 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1972 * pic/pic.y: Likewise.
1974 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1976 * refer/ref.cc (reference::insert_field, reference::delete_field):
1978 * troff/number.cc (parse_term): Likewise.
1980 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1981 * configure.in: Use GROFF_PROG_YACC.
1983 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1985 * Makefile.in (OPTIMIZE): New define.
1986 (DEBUG): Empty by default.
1987 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1989 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1990 (GROFF_ARRAY_DELETE): Likewise.
1991 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1993 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1995 * devps/psstrip.sed: Use different delimiter on last line (so that
1996 it works with BSD 4.4 sed.)
1998 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
2000 * devps/psstrip.sed: Delete comments.
2002 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2003 optind, opterr, optarg.
2004 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2007 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
2009 * Makefile.in (check): Dummy target.
2011 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
2013 * Version 1.07 released.
2015 * Integrate mm 1.11.
2017 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2018 where start_col was meant.
2020 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
2022 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2024 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
2026 * troff/input.cc (token::next): Make \z\o'...' and similar things
2029 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2031 (environment): Add margin_character_flags member.
2032 * env.cc (environment::environment(symbol),
2033 environment::environment(const environment *): Initialize
2034 margin_character_flags.
2035 (margin_character): Rewrite.
2036 (environment::output_line): Add a margin character if
2037 margin_character_flags is non-zero. Turn off the
2038 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
2039 zero, use margin_character_node without copying and then set
2040 margin_character_node to 0.
2042 * devps/DESC.in: Change minimum size to 1000.
2044 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
2046 * troff/symbol.h (symbol::hash): Change return type to unsigned
2048 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2051 * test-groff: Use -r rather than -x.
2053 * grops/psfig.diff: Include in distribution again.
2055 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
2057 * Makefile.in (dist): Use gzip.
2059 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
2061 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2062 unistd.h as well as in stdlib.h.
2063 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2064 defined; otherwise include <sys/types.h> and <unistd.h> if
2065 UNISTD_H_DECLARES_GETOPT is defined.
2067 * configure.in: use builtin(include, ... rather than include(...
2068 * configure: Regenerate with autoconf 1.3.
2070 * libdriver/print.cc (printer::adjust_arc_center): Use new
2071 algorithm suggested by Andy Fyfe.
2073 * libdriver/printer.cc (printer::adjust_arc_center): New function.
2074 * include/printer.h: Declare this.
2075 * grops/ps.cc (ps_printer::draw): Use it.
2076 * grodvi/dvi.cc (dvi_printer::draw): Use it.
2078 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
2080 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2082 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
2084 * eqn/main.cc (main): Handle "eqn -".
2086 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
2088 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2090 * mm: Integrate version 1.08.
2092 * pic/troff.cc (troff_output::finish_picture): Set
2093 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2094 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2095 if it's not defined. Check whether the register is non-zero rather
2096 than whether it's not defined.
2097 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2099 * indxbib/indxbib.cc: Move all signal handling into...
2100 * indxbib/signal.c: New file.
2101 * configure.in: Call AC_RETSIGTYPE.
2103 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2104 * configure.in: Call GROFF_STRUCT_EXCEPTION.
2105 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2107 * troff/input.cc (token::token, token::operator=): Work round SGI
2109 * pic/object.cc (position::position): Likewise.
2111 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
2113 * pic/pic.h: Move declaration of hypot().
2115 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
2117 * pic/pic.h: Declare hypot().
2119 * pic/pic.h: Define M_PI if necessary.
2121 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
2123 * tmac/tmac.e (re): Add alternative version that doesn't use groff
2126 * devps/prologue.ps (RE): Handle the possibility that the old font
2127 doesn't have a FontName entry.
2129 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
2131 * tmac/tmac.e (fam): Redefine to set family in environment 2.
2132 (@C): Use @fam not fam.
2134 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
2136 * lookbib/lookbib.cc (main): Change type of start to const char *.
2137 * lkbib/lkbib.cc (main): Likewise.
2139 * eqn/lex.cc (definition::definition): Don't use member
2140 initializer syntax for members of anonymous unions.
2142 * troff/input.cc (input_stack::backtrace): Change type of to const
2145 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
2147 * include/stringclass.h (class string): Declare inline friend
2148 functions as inline in class declaration.
2149 * troff/hvunits.h (class hunits, class vunits): Likewise.
2150 * include/refid.h (class reference_id): Likewise
2151 * troff/troff.h (points_to_units(units), scale(units, double)):
2152 Delete declarations.
2153 * libdriver/input.cc (get_char): Delete declaration.
2154 * include/lib.h: Change 2nd argument of getopt from const char **
2156 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2157 char **' before assigning to a `const char **'.
2158 * tbl/table.cc: Delete extra declarations of prints().
2160 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
2162 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2163 char **' before assigning to a `const char **'.
2165 * libgroff/errarg.cc (errarg::errarg): Don't use member
2166 initializer syntax for members of anonymous unions.
2168 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
2170 * mm: Integrate version 1.07.
2172 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
2174 * troff/input.c (translate2): Rename to
2175 (translate_no_transparent).
2176 (init_input_requests): Rename tr2 to trnt.
2178 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
2180 * troff/charinfo.h (class charinfo): Add transparent_translate field.
2181 (charinfo::set_translation, charinfo::set_special_translation):
2182 Add second argument that specifies value for
2183 transparent_translate.
2184 (charinfo::get_translation, charinfo::get_special_translation):
2185 Add optional second argument that specifies whether translation is
2186 being used for transparent throughput.
2187 * troff/input.cc (charinfo::set_translation,
2188 charinfo::set_special_translation): Handle second argument.
2189 (charinfo::charinfo): Initialize transparent_translate.
2190 (translate): Split main part off into
2191 (do_translate): New function. Pass argument saying whether
2192 translation applies to transparent throughput.
2193 (translate2): New request.
2194 (init_input_requests): Bind translate2 to `tr2'.
2196 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
2198 * tbl/table.h (class table): Add `nokeep' flag.
2199 * tbl/main.cc (process_options): Handle `nokeep' option.
2200 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2201 table::do_bottom): Don't output keep/release macro definitions or
2202 calls when `nokeep' option has been specified.
2204 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
2206 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2208 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
2210 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2211 block_entry::divert, alphabetic_block_entry::divert): Add extra
2212 argument giving column separation.
2213 (table::compute_widths): Pass column separation to
2214 table_entry::divert().
2215 (block_entry::do_divert): If an entry spans multiple columns and a
2216 minimumum width has been specified for each column, then set the
2217 line length to the sum of the widths (plus possibly the column
2220 * troff/input.cc (set_escape_char): Don't set the escape_char
2221 until after calling has_arg().
2223 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
2225 * tbl/table.cc (table::do_top): Add missing \s0 for double box
2228 * tbl/table.cc (table::print_double_hline): Avoid extra new line
2229 in case where r > nrows - 1.
2231 * tbl/table.cc (BODY_HEIGHT): Deleted.
2232 (LINE_SEP): New definition.
2233 (table::print_single_hline, table::print_double_hline,
2234 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2235 table::do_row, table::do_top): Use LINE_SEP space before a line
2236 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2238 * tbl/table.cc (text_entry::print_contents): New function.
2239 (text_string_name, right_text_string_name): Deleted.
2240 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2241 (simple_text_entry::do_width, numeric_text_entry::do_width,
2242 alphabetic_text_entry::do_width): Don't store the contents of the
2244 (left_text_entry::simple_print, right_text_entry::simple_print,
2245 center_text_entry::simple_print,
2246 alphabetic_text_entry::simple_print,
2247 numeric_text_entry::simple_print): Print the entry directly
2248 instead of using the stored string.
2250 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2252 * devps/Makefile: Strip PostScript files.
2253 * devps/prologue: Rename to...
2254 * devps/prologue.ps.
2255 * devps/psstrip.sed: New file.
2256 * devps/download: Use .pfa rather than .ps for installed versions
2259 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2261 * troff/env.cc (input_trap): Give a warning if the argument is out
2264 * troff/env.cc (adjust): Treat negative argument as missing. Round
2265 argument > 5 down to 5.
2267 * troff/env.cc (center, right_justify): Make negative argument zero.
2269 * troff/div.cc (page_offset, vertical_position_traps): Treat
2270 invalid argument as missing.
2271 * troff/env.cc (line_spacing, line_length, title_length, indent,
2272 underline, hyphen_line_max_request, control_char,
2273 no_break_control_char, widow_control_request, adjust, input_trap,
2274 point_size): Likewise.
2275 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2276 constant_space): Likewise.
2277 * troff/input.cc (compatible, shift, warn_request,
2278 set_escape_char): Likewise.
2280 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2281 * tbl/table.cc (table::table): Likewise.
2283 * Makefile.dev (install_dev): depends on $(DEVFILES).
2285 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2287 * devX75, devX75-12, devX100, devX100-12: New directories.
2288 * Makefile.in: Add these to DEVDIRS.
2290 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2291 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2292 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2293 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2295 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2296 (uninstall): New target.
2297 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2298 uninstall_prog, uninstall_dev): New targets.
2300 * troff/div.cc (return_request): Treat an invalid argument as
2303 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2305 * tmac/tmac.e ((f): Set up the environment even when there's a
2306 current diversion. Transperently throughput a call to @N.
2309 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2311 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2312 up to vertical resolution.
2314 * tbl/table.cc (table::do_row): Change row number after printing
2317 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2319 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2321 * Rename CHANGES to NEWS.
2323 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2325 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2327 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2329 * man.ultrix: Removed.
2331 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2333 * Makefile.comm (extraclean): Delete files whose names begin with
2336 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2339 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2341 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2342 * troff/div.cc (page_length, need_space, space_request): Treat
2343 invalid optional argument as missing.
2344 * troff/env.cc (number_lines): If the first argument is present
2345 but not a number, turn on line numbering, don't change the next
2346 line number and parse the remaining arguments.
2348 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2350 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2352 * eqn/box.h: Change declaration accordingly.
2353 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2354 the specified size was bad but don't give an error. Check for
2356 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2357 * eqn/lex (do_size): Likewise.
2359 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2361 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2364 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2366 * tbl/table.cc (table::init_output): Improve error message when
2367 table won't fit on one page.
2369 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2371 * pic/troff.cc (troff_output::start_picture): Generate line
2372 containing a horizontal motion equal to the width of the picture.
2374 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2375 using GROFF_COMMAND_PREFIX environment variable.
2377 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2379 * mdate.sh: Use $NF rather than $(NF).
2381 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2383 * pic/main.cc (main): Use %1 not %c in argument to warning.
2385 * eqn/main.cc (main): Output code to check that geqn was given the
2388 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2390 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2391 `ln -s ../Makefile .; make; rm -f Makefile'.
2393 * troff/hyphen: Rename to...
2395 * troff/input.cc (main): Delete -H option. Don't call
2397 * troff/env.cc: Include searchpath.h and macropath.h.
2398 (exception_dictionary): Deleted.
2400 (read_hyphen_file): Deleted.
2401 (hyphenation_language): New struct.
2402 (class trie, class hyphen_trie): Move declarations up.
2403 (trie_node::~trie_node): Deleted.
2404 (trie::delete_trie_node): New function.
2405 (trie::do_delete): New pure virtual function.
2406 (hyphen_trie::do_delete): New function.
2407 (trie::~trie): New function.
2408 (hyphen_trie::~hyphen_trie): New function.
2409 (trie::clear): No need to chcek that tp is not 0.
2410 (current_language, language_dictionary): New variables.
2411 (hyphen_word): Give an error if no current language. Use
2412 exceptions dictionary in current language.
2413 (hyphen_trie::read_patterns_file): Find file using macro_path.
2414 Allow comments (starting with %) in patterns file. Don't make it
2415 a fatal error if the file can't be found.
2416 (hyphenate): Return if no current language. Get the exceptions
2417 dictionary and the hyphenation patterns from the current language.
2418 (set_hyphenation_language): New variable.
2419 (hyphenation_patterns_file): New function.
2420 (hyphenation_language_reg): New class.
2421 (hyphenation_language_reg::get_string): New function.
2422 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2423 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2425 * groff/groff.cc (main, help, synopsis): Delete -H option.
2426 * include/Makefile.sub: Don't define HYPHENFILE.
2427 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2428 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2429 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2430 hyphenation patterns.
2432 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2434 * eqn/neqn.sh: New file.
2435 * eqn/Makefile.sub: Handle neqn.sh.
2437 * eqn/eqn.h: Declare `nroff' variable.
2438 * eqn/box.cc (param_table): Add `nroff' param.
2440 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2442 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2444 * troff/troff.h (WARN_FONT): New warning.
2445 (WARN_TOTAL): Change accordingly.
2446 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2447 (warning_table): Add WARN_FONT.
2448 * troff/node.cc (mount_font_no_translate): Pass argument to
2449 font::load_font. If this is non-zero, give a warning.
2450 Don't give an error message when accessing a font that has already
2451 been found to be invalid.
2452 * include/font.h (font::load, font::load_font): Add additional
2453 optional argument which suppresses error message if the font is
2455 * libgroff/font.cc (font::load_font): Handle additional argument.
2456 (font::load): Add additional argument. If this is non-null, set it
2457 to 1 and don't give error message.
2459 * include/printer.h (printer::end_page): Add argument giving
2461 * libdriver/input.cc (do_file): Pass this.
2462 * grops/ps.cc (ps_printer::end_page): Add argument.
2463 * grodvi/dvi.cc (dvi_printer::end_page,
2464 draw_dvi_printer::end_page): Add argument.
2465 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2466 columns_per_page members. New member nlines.
2467 (DEFAULT_LINES_PER_PAGE): Deleted.
2468 (tty_printer::tty_printer): Don't compute lines_per_page from
2469 font::paperlength. Don't compute columns_per_page from
2471 (tty_printer::add_char): Don't check horizontal position against
2472 columns_per_page. Grow glyphs vector if neccessary.
2473 (tty_printer::end_page): Add argument giving page_length in units.
2474 Discard lines past end of page.
2476 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2478 * tmac/tmac.tty-char: Fix definition of \(/l.
2480 * tmac/tmac.X: Define \(en.
2482 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2484 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2485 lpq, then use lp rather than lpr.
2487 * tmac/tmac.s (par@reset): Don't call `ad'.
2488 (par*env-init): Call `ad'.
2490 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2492 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2495 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2496 * indxbib/indxbib.cc: Likewise.
2498 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2500 * libgroff/putenv.c: New file.
2501 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2502 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2503 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2504 stdlib.h with AC_HAVE_HEADERS.
2506 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2508 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2511 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2513 * eqn/box.cc (gsize): Make it an int.
2514 (set_gsize): Parse argument handling increment or decrement.
2515 (box::top_level): Convert gsize to a string.
2517 * troff/input.cc (exit_troff): Make buf unsigned char [].
2518 Call to make_temp_iterator casts buf to char*.
2520 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2522 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2523 * Makefile.cpg (depend.temp): Likewise.
2525 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2527 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2529 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2531 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2533 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2535 * Version 1.06 released.
2537 * Integrate mm 1.04.
2539 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2541 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2543 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2545 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2547 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2548 afmtodit. Regenerate.
2550 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2551 @f back past the current position.
2553 * tmac/tmac.e: Change calls to @R so that comments are not part of
2556 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2558 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2560 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2561 check that we can link a call to a function declared in <stdio.h>.
2562 (GROFF_UNISTD_H): New macro.
2563 * configure.in: Call it.
2564 * Makefile.in: Document it.
2565 * include/posix.h: New file.
2566 * troff/troff.h: Don't include <osfcn.h>
2567 * troff/input.cc: Include posix.h.
2568 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2570 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2571 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2573 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2574 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2575 * libbib/search.cc (O_RDONLY): Delete definition.
2576 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2577 Don't include <osfcn.h>.
2579 * acgroff.m4 (GROFF_TIME_T): New macro.
2580 * configure.in: Call it.
2581 * Makefile.in: Document it.
2583 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2584 * configure.in: Call it.
2585 * Makefile.in: Document -DTRADITIONAL_CPP.
2586 * include/ptable.h: Don't include generic.h.
2589 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2590 Afterwards remove [T1 and [T2.
2591 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2592 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2593 (ref*add-T2): Renamed from ref*add-T.
2594 (ref*add-T1): New macro.
2596 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2598 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2600 * libbib/index.cc: Include <fcntl.h>.
2601 (O_RDONLY): Define if necessary.
2602 (make_index_search_item, index_search_item_iterator::get_tag,
2603 index_search_item::check_files): Use O_RDONLY.
2604 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2605 (O_RDONLY): Define if necessary.
2606 (search_list::add_file): Use O_RDONLY.
2607 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2609 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2612 * libbib/index.cc (S_ISREG): Define it if necessary.
2613 (index_search_item::load): Use S_ISREG.
2615 * include/driver.h: Include <errno.h>.
2617 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2619 * eqn/box.cc (body_height): Increase default value to 85.
2620 (body_depth): Increase default value to 35.
2622 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2624 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2625 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2626 protected from expansion with \E.
2628 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2630 * Makefile (Makefile): New target.
2632 * Makefile.sub (configure, distfiles): New targets.
2634 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2637 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2639 * eqn/box.cc (param_table): Add body_height and body_depth.
2641 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2643 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2645 * psbb/Makefile.sub: Don't link with libgroff.a.
2647 * acgroff.m4 (GROFF_PUTENV): New macro.
2648 * configure.in: Call GROFF_PUTENV.
2649 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2650 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2653 * troff/env.cc (distribute_space): Rename force_forward argument
2654 to force_reverse. Reverse the list if force_reverse is true.
2656 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2658 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2660 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2661 height or depth to be negative. Guard against SUP_RAISE quantity
2664 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2666 * devps/generate/textmap: Add `an' (arrowhorizex).
2667 * tmac/tmac.ps: \(an overlaps horizontally.
2668 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2670 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2671 * devps/textmap: Add arrowvertex.
2672 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2673 updownarrow delimiters.
2674 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2676 * tbl/table.cc (simple_entry::position_vertically,
2677 block_entry::position_vertically): For a centered entry, perform
2678 the motion in two stages.
2680 * refer/refer.cc (split_punct): Don't call lookup_token if there
2683 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2685 * troff/input.cc (token::next): Delete token_node after copying
2688 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2691 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2693 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2695 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2697 * grops/ps.cc (usage): -b option takes an argument.
2699 * devps/prologue (PLG): New procedure.
2700 * grops/ps.cc (main, usage): New -g option.
2701 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2704 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2706 * include/cset.h: Include <limits.h> if we have it.
2708 * libgroff/illegal.cc: New file.
2709 * include/lib.h (illegal_input_char): Use table.
2710 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2711 * pic/lex.cc (ARG1): Renumber to 14.
2712 * eqn/lex.cc (ARG1: Likewise.
2714 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2715 (eg 1.05.90) correctly.
2717 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2719 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2720 Rename $r and $R registers to $v and $V.
2721 ($r, $R): Initialize to 0.
2722 (@v, @V): New macros.
2726 * troff/input.cc (main, usage): Add -R option that says not to
2728 * eqn/main.cc (main, usage): Rename -n to -R.
2730 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2732 * devps/DESC.in: Leave font positions 5-9 blank.
2733 * devdvi/DESC.in: Likewise.
2735 * grog/grog.pl: Handle `.PS <file' correctly.
2737 * troff/input.cc (input_stack::push): Improve error message when
2738 input stack limit exceeded.
2740 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2742 * refer/refer.cc (main): Fix typo in handling of `a' option.
2744 * refer/refer.cc (do_bib): In state START after a newline remain
2747 * groff/groff.sh: Deleted.
2748 * groff/Makefile.sub: Delete handling of groff.sh.
2750 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2751 to determine whether to use \X'ps:...'.
2752 * tmac/troffrc: Set 0p register to 0.
2753 * tmac/tmac.ps: Set 0p register to 1.
2755 * groff/groff.cc: Support -X option. Give warning for -TXps and
2756 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2757 * tmac/troffrc: Support -r.X=1.
2759 * pic/troff.cc (troff_output::dot): Don't test
2760 zero_length_line_flag.
2762 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2764 * include/lib.h: Declare getopt() and friends unless
2765 STDLIB_H_DECLARES_GETOPT is defined.
2767 * doc/chars.tr: Delete.
2768 * man/groff_char.man: New file.
2770 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2772 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2773 user has changed register format.
2775 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2777 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2778 `postpro' command in DESC file. Get spooler command from `print'
2779 command in DESC file. Execute spooler command with /bin/sh.
2781 * groff/groff.cc: Split Unix-specific parts into...
2782 * groff/pipeline.c: New file.
2785 * COPYING: New file.
2786 * all files: Update copyright notices.
2788 * Rearrange files. Redo Makefiles. Use autoconf.
2790 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2792 * troff/input.c (charinfo_to_node_list): Interpret character
2793 definition with escape_char of `\'.
2795 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2797 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2798 Define INT_DIGITS as big enough for 64-bit integer.
2799 * lib/strtol.c: Don't include lib.h.
2800 * lib/lib.h: Delete ifdef __cplusplus stuff.
2802 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2804 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2805 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2806 get DESC from current directory.
2808 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2810 * tbl/main.c (main): Always reset the line number when reading
2813 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2814 table::define_bottom_macro, table::do_row, table::do_top): Round
2815 vertical spacing up to vertical resolution.
2817 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2819 * ps/ps.h (enum resource_type): Avoid comma at end of
2821 * dvi/dvi.c (class dvi_printer): Likewise.
2822 * dvi/tfmtodit.c (gf::load): Likewise.
2823 * refer/label.y (struct expression): Likewise.
2824 * refer/refer.c (class label_processing_state): Likewise.
2825 * refer/indxbib.c (do_file): Likewise.
2826 * troff/troff.c (enum warning_type): Likewise.
2827 * tbl/main.c (process_data): Likewise.
2828 * troff/charinfo.h (class charinfo):
2830 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2832 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2834 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2836 * groff.c: Move to new groff subdirectory.
2837 * groff/Makefile: New file.
2838 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2840 * man/mdate.sh: Use ls -L if supported.
2842 * Consolidate all header files produced by gendef into lib/defs.h.
2843 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2844 Don't include path.h.
2845 * lib/Makefile (path.h): Don't generate.
2846 * troff/input.c: Include defs.h. Don't include config.h.
2847 * troff/Makefile (config.h): Don't generate.
2848 * refer/index.h: Don't include suffix.h.
2849 * refer/index.c: Include defs.h.
2850 * refer/indxbib.c: Include defs.h.
2851 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2853 * refer/Makefile (suffix.h, path.h): Don't generate.
2854 * groff.c: Don't include config.h. Include defs.h.
2855 * Makefile (config.h): Don't generate.
2856 (lib/defs.h): Generate.
2857 (topclean): Remove lib/defs.h.
2859 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2861 * lib/malloc.c, lib/getpagesize.h: Deleted.
2862 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2864 * lib/Makefile: Delete malloc-related stuff.
2865 * lib/new.c: Workaround COOKIE_BUG if necessary.
2867 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2868 needed header files directly.
2869 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2870 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2872 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2874 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2876 * lib/font (font::load_desc, font::load): Don't split argument of
2878 (font::handle_unknown_font_command): Change type.
2879 * ps/ps.c (ps_font::handle_unknown_font_command,
2880 handle_unknown_desc_command): Change type.
2881 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2883 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2885 * lib/font.h (font::handle_unknown_font_command): Add file and
2887 * lib/font.c (font::handle_unknown_font_command):
2888 * ps/ps.c (ps_font::handle_unknown_font_command):
2889 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2890 lineno arguments. Use _with_file_and_line functions for error
2893 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2895 * lib/font.c (font::set_unknown_desc_command_handler): New
2897 (font::load_desc): For unknown commands, call
2898 unknown_desc_command_handler if not null.
2899 * lib/font.h (class font): Declare them.
2900 (FONT_COMMAND_HANDLER): New typedef.
2901 * ps/ps.c (handle_unknown_desc_command): New function.
2902 (main): Set bflag if we had a -b option. Call
2903 font::set_unknown_desc_command_handler.
2904 (broken.h): Don't include.
2905 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2907 * ps/devps/Makefile: Add `broken' command to DESC file using
2908 BROKEN_SPOOLER_FLAGS.
2910 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2912 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2914 * macros/tmac.e (@R, @S): New macros.
2915 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2916 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2917 Declare $H, $[0-9], .. macros with @S.
2918 Declare |0, |1, |2, |3 strings with @S.
2920 * macros/tmac.e (@S): Rename to @U.
2922 * macros/tmac.e (@z): Define @b and bp as empty instead of
2925 * macros/tmac.e (@m): Deleted.
2926 (@h): Don't call @m.
2927 (@z): Don't set @m trap.
2929 * macros/tmac.e ($h, $f): Define |z as empty string.
2931 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2934 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2936 ()f): Likewise for * register.
2938 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2939 argument is missing, don't change $R. Call sr with three
2940 arguments when initializing.
2942 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2944 * macros/tmac.e (sr): New macro.
2945 Initialize $r and $R using sr.
2947 * macros/tmac.e (,): Delete \*(#[.
2949 * troff/env.c (set_tabs): Read the tab type even if the position
2950 is bad. Allow the position of the first tab stop to be negative.
2952 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2954 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2956 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2957 rather than -DPATHCONF_MISSING.
2958 * Makefile: Get rid of PATHCONF_MISSING.
2960 * refer/map.c: New file.
2961 * refer/index.c: Interface to mmap through map.c. Rename map_size
2963 * refer/Makefile: Handle map.c.
2964 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2966 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2968 * Makefile: RANLIB should be `true' if there is no ranlib.
2969 * lib/Makefile (libgroff.a): Simplify.
2970 * driver/Makefile (libdriver.a): Simplify.
2972 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2973 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2976 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2978 * troff/env.c (compare_ranges): Declare as extern "C".
2980 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2982 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2984 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2986 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2987 but conditionalize use of \X based on \*(.T.
2988 (grops_output::*): Deleted.
2989 * pic/output.h: Delete declaration of make_grops_output.
2990 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2991 by default. -n sets it to 0.
2992 (usage): Corresponding changes.
2993 * groff.c (main): Don't pass -x or -p to pic.
2994 * groff.sh: Likewise.
2996 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2999 * ps/devps/afmtodit: Change calculation of asc_boundary and
3000 desc_boundary. Make these bounds inclusive.
3001 * ps/devps: Regenerate font files.
3003 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
3005 * macros/tmac.latin1: New file.
3006 * macros/tmac.tty-char: Use tmac.latin1.
3007 (tmac.tty-tr): Deleted.
3008 * macros/Makefile: Install tmac.latin1.
3009 * macros/tmac.dvi: Use tmac.latin1.
3010 * macros/troffrc: Translate \[char160] onto no-break space here.
3011 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3013 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
3015 * macros/tmac.Xps: Use `do' request.
3017 * macros/tmac.ps: Use `do' request.
3019 * macros/tmac.e (@C): Use `do' request.
3021 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3022 * macros/Makefile: Install tmac.X*.
3024 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3025 * tty/Makefile: Don't install tmac.tty*.
3026 * macros/Makefile: Install tmac.tty*.
3028 * dvi/tmac.dvi: Move to macros.
3029 * dvi/Makefile: Don't install tmac.dvi.
3030 * macros/Makefile: Install tmac.dvi.
3032 * ps/tmac.ps*: Move to macros.
3033 * ps/Makefile: Don't install tmac.ps*.
3034 * macros/Makefile: Install tmac.ps*.
3036 * eqn/box.c: Provide draw_lines parameter corresponding to -D
3038 * macros/eqnrc: Set draw_lines parameter based on device.
3039 * groff.c: Don't pass -D flag to eqn.
3040 * groff.sh: Likewise.
3041 * eqn/main.c: Warn about use of -D.
3043 * troff/input.c (process_startup_file): New function.
3044 (main): Call process_startup_file().
3045 * macros/troffrc: New file.
3046 * macros/Makefile: Install troffrc.
3047 * groff.c (main): Don't pass extra -m option to troff. For a
3048 pseudo device pass the name of the pseudo device to troff using
3050 * groff.sh: Likewise.
3051 * groff.c (possible_command::prepend_arg): Deleted.
3053 * troff/input.c (do_request): New function.
3054 (init_input_requests): Bind "do" to do_request.
3056 * eqn/main.c (main): Instead of loading eqnchar from device directory,
3057 load eqnrc from macro directory.
3058 * macros/eqnrc: New file.
3059 * macros/Makefile: Install eqnrc.
3060 * ps/devps/eqnchar: Deleted.
3061 * ps/devps/Makefile: Don't install eqnchar.
3062 * dvi/devdvi/eqnchar: Deleted.
3063 * dvi/devdvi/Makefile: Don't install eqnchar.
3064 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3067 * lib/device.[ch]: New files.
3068 * lib/font.h (font::set_device_name, font::get_device_name):
3070 * lib/fontfile.c: Use device.h.
3071 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3072 * troff/input.c: Delete definition of `device'.
3073 (main): Don't initialize device.
3074 * troff/troff.h: Include device.h rather than declaring device.
3075 * troff/Makefile: No need to handle DEVICE.
3076 * driver/input.c: Include device.h. Don't use
3077 font::{set,get}_device_name.
3078 * groff.c, Makefile: Rename device.h to config.h.
3079 * groff.c: Use library device variable.
3080 * eqn/main.c: Use library device variable.
3081 * eqn/Makefile: No need to handle DEVICE.
3083 * lib/searchpath.[ch]: New files.
3084 * lib/Makefile: Handle searchpath.[ch].
3085 * troff/input.c (open_file, init_dirs): Deleted.
3086 (macro_dirs): Deleted.
3087 (open_mac_file, macro_source): Use class search_path.
3088 (add_string, struct string_list): Move definition.
3089 (main): Change -M option to use macro_path. Delete call to
3091 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3092 Rewrite to use class search_path.
3093 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3094 * lib/Makefile: fontfile.c depends on searchpath.h.
3095 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3097 * lib/macropath.[ch]: New files.
3098 * troff/Makefile: No need to handle MACROPATH.
3100 * troff/input.c: Delete DUMP code.
3101 * lib/fontfile.c, lib/font.h: Delete
3102 font::forget_command_line_font_dirs.
3104 * troff/input.c (push_token): New function.
3105 (handle_first_page_transition): Use push_token().
3106 (process_input_stack): Change handling of a space at the beginning
3109 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
3111 * troff/input.c (font_dirs): Delete unused variable.
3113 * eqn/lex.c (do_set): Correct error messages.
3115 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
3117 * troff/input.c (do_define_string): Allow the string name to be
3118 followed immediately by a tab.
3119 (define_character): Likewise.
3121 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
3123 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3126 * troff/input.c (input_iterator::is_file): New virtual function.
3127 (file_iterator::is_file): New function.
3128 (input_stack::end_file): New function.
3129 (input_stack::next_file): Handle the situation where there is no
3130 file on the input stack correctly. Avoid making two passes over
3132 (next_file): Make the filename optional; in this case call
3133 input_stack::end_file().
3135 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
3137 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3138 produce a real _ charater when the current font is CW and _
3141 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3142 expression to work around gcc 2.2 bug.
3144 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
3146 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3148 * troff/env.c (environment::add_padding): New function.
3149 (environment::add_char): Use add_padding().
3150 (environment::space): Likewise.
3151 (environment::wrap_up_field): Add some padding if there is none
3152 and there's no current tab.
3153 * troff/env.h: Declare environment::add_padding.
3155 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
3157 * pic/pic.y: undef fmod and rand before declaring them.
3159 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
3161 * troff/input.c (main): If the DESC file specifies a font name of
3162 0, then leave the corresponding font position empty.
3164 * nroff.sh: New file.
3165 * Makefile (install.nobin): Install nroff.sh.
3167 * tty/devlatin1/R.proto: Add ao as synonym for de.
3168 * tty/tmac.tty-char: Define ao as o.
3170 * tty/dev{ascii,latin1}/R.proto: Add aq.
3171 * tty/tmac.tty-char: Delete definition of aq.
3173 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
3175 * troff/input.c (init_charset_table): Don't translate 0240.
3176 * ps/tmac.ps: Translate char160 to space.
3177 * dvi/tmac.dvi: Likewise.
3178 * tty/tmac.tty: Likewise.
3180 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
3182 * dvi/tmac.dvi: Add support for all Latin-1 characters.
3184 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3185 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3188 * tty/tmac.tty-char: Add \(ah.
3190 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3191 No need to define \(FM and \(!/. Conditionalize all character
3194 * ps/devps/lgreekmap: Add +h, +f, +p.
3196 * ps/tmac.psnew: New file.
3197 * ps/Makefile: Install tmac.psnew.
3199 * troff/input.c (charinfo_to_node_list): Don't ever interpret
3200 character definitions in compatible mode.
3202 * troff/input.c (remove_character): New function.
3203 (init_input_requests): Bind remove_character to "rchar".
3205 * ps/tmac.psold: New file.
3206 * ps/Makefile: Install tmac.psold.
3207 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3208 characters into tmac.psold. Make these definitions unconditional.
3210 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3212 * ps/tmac.ps: Don't define \('c and \('C.
3214 * ps/devps/textmap: Move Greek characters to...
3215 * ps/devps/symbolchars:
3217 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
3219 * ps/devps/text.enc: Add quotesingle.
3220 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3221 * tty/tmac.tty-char: Likewise.
3222 * dvi/devdvi/texmi.map: Add +h, +f, +p.
3223 * dvi/devdvi/texi.map: Add Fn.
3224 * dvi/devdvi/msam.map: Add lz.
3225 * dvi/tmac.dvi: Handle Bq, bq, aq.
3227 * pic/lex.c (get_token): Recognize 'th.
3228 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3230 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
3232 * ps/devps/textmap: Move di, mu, +- to...
3233 * ps/devps/symbolchars:
3235 * macros/tmac.s (@XS): Don't call par@reset or fi.
3236 (XA): Call LP. Turn off adjustment. Reduce line length.
3238 * macros/tmac.s: Initially alias XS to LP.
3239 (XS): Rename to @XS.
3240 (cov*ab-init): Alias XS to @XS.
3242 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3244 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3245 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3246 (token::is_size, token::changes_env): Deleted.
3247 * troff/number.c (parse_term): No need to process \s explicitly.
3248 Call tok.next() only after scale indicator has been processed.
3249 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3251 (token::next): Handle \s, \f, \S, \H immediately rather than
3252 returning them as tokens.
3253 (token::operator==, token::description, token::add_to_node_list,
3254 token::process): Remove handling of deleted tokens.
3256 * troff/env.c (environment::add_char): When adding padding
3257 indicator character, call start_line() if necessary.
3259 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3261 * ps/devps/afmtodit: Don't output 0 kerns.
3263 * ps/devps/afmtodit: Remove directory from name of encoding in
3264 font description file.
3266 * ps/devps/afmtodit: Improve error messages.
3268 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3270 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3271 * ps/devps/FontMakefile: Deleted.
3272 * ps/devps/afmname: New file.
3274 * ps/devps/symbol.sed: New file.
3275 * ps/devps/symbol.diff: Deleted.
3276 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3277 Generate zapfdr.afm from zapfd.afm.
3279 * tty/tmac.tty (tty-char): Prefix definition with ".
3281 * macros/tmac.an (TP): Don't start a diversion if one has already
3284 * tty/tmac.tty-char: Add Latin-1 characters.
3286 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3288 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3290 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3291 Move declaration of struct horizontal_span.
3293 * tbl/table.c (table::table): Initialize span_list.
3294 (table::~table): Delete span_list.
3296 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3298 * ps/devps/Makefile: Avoid dependency on GNU make.
3300 * ps/tmac.ps: Check that character does not already exist before
3303 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3304 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3305 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3308 * tty/tmac.tty-char: New file.
3309 * tty/Makefile: Install tmac.tty-char.
3310 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3313 * tty/tmac.tty: Fix definition of \(34.
3315 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3316 bracket-drawing characters onto |. Add *o.
3318 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3319 only if current_field.
3321 * troff/dictionary.c (dictionary::lookup): Free old_table after
3324 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3326 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3327 whose glyphs are identical to glyphs of some Roman character.
3329 * tty/devlatin1/R.proto (bu): Deleted.
3330 * tty/devascii/R.proto (bu): Deleted.
3331 * tty/tmac.tty: Add definition of \(bu.
3333 * eqn/main.c (do_file): Pass FILE as argument.
3334 (main): Automatically load eqnchar. New options -F and -n.
3335 Pass do_file an opened FILE.
3336 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3337 No need to include font.h.
3338 * groff.sh: Likewise. Don't need to use - for standard input.
3339 Prefix files with -- if first file starts with -.
3341 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3343 * troff/env.c (environment::possibly_break_line): Don't set line
3344 to 0 across call to output_line(). Don't call output_line() until
3345 after discarding nodes after break.
3347 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3349 * request.h (macro::empty): Declare it.
3350 * input.c (macro::empty): New method.
3351 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3354 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3356 * troff/env.c (environment::start_field): Decrement space_total
3357 when a space is frozen.
3359 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3361 * macros/tmac.an (R): Delete macro.
3363 * troff/input.c (get_copy, token::next): Support \# (like \" but
3364 newline is ignored).
3366 * troff/input.c (token::next): Fix error message in 'Y' case.
3368 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3370 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3373 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3375 * c++test.c: Include <osfcn.h>.
3377 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3380 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3382 * tbl/table.c (table::divide_span): Don't count column separation
3383 if expand was specified.
3385 * tbl/main.c (process_format): Don't ignore width specs in
3386 continued format. Give warning for changing equal widths or
3387 column separation in continued format.
3388 (process_data): Set column separation, minimum width, equal
3389 columns at end of table.
3391 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3393 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3394 node::add_discretionary_hyphen): Use soft_hyphen_char.
3395 (set_soft_hyphen_char): New function.
3396 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3398 * Makefile (c++tested): Give more helpful message if test fails.
3400 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3402 * troff/input.c (init_charset_table): Translate 0240 to
3403 an unbreakable space.
3405 * troff/token.h (token::hyphen_indicator): New function.
3406 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3408 * troff/input.c (translate): Allow translation to \%.
3409 * troff/node.c (node::add_char): Handle
3410 TRANSLATE_HYPHEN_INDICATOR.
3411 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3413 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3416 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3418 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3420 * groff.c (run_commands): If the last command gets a SIGPIPE send
3421 a SIGPIPE to all children than haven't yet terminated. When
3422 command terminates, set pid field to -1.
3424 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3426 * groff.c (main): Pass an appropriate -filename option to gxditview.
3428 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3430 * Makefile.bd (install): Remove existing program before copying.
3432 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3433 programs which have Unix counterparts to be installed with
3434 user-specified prefix.
3436 * troff/input.c (exit_troff): Don't check if exit_started.
3437 (exit_request): Don't call exit_troff if exit_started.
3439 * Makefile.bd (install.mm): Rename to install.dwbmm.
3441 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3443 * driver/input.c (do_file): Add missing break for '#' case.
3445 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3447 * troff/input.c (input_stack::clear): Clear past any boundaries and
3448 then add the boundaries back.
3450 * troff/input.c (exit_troff): Return immediately if already
3453 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3455 (pg*end-page): If the text has ended and there are no more
3456 footnotes or keeps, exit.
3458 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3460 * troff/input.c (init_charset_table): Make \(rq transparent by
3463 * macros/tmac.an: Define lq and rq strings.
3465 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3467 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3469 * troff/env.c (environment::final_break): New function.
3470 (environment::newline): Set prev_line_interrupted to 2 if
3472 * troff/env.h: Declare environment::final_break.
3473 * troff/input.c (exit_troff): Call environment::final_break()
3474 instead of environment::do_break().
3476 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3477 doesn't already exist.
3478 * macros/man.local: New file.
3479 * macros/tmac.an: Load man.local.
3480 * macros/man.ultrix: New file.
3482 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3484 * troff/input.c (exit_groff): Rename to...
3485 (exit_troff): New function.
3487 * troff/div.c (exit_started, done_end_macro,
3488 seen_last_page_ejector): New global variables.
3489 (began_page_in_end_macro): New static variable.
3490 (exit_flag): Deleted.
3491 (top_level_diversion::top_level_diversion): Initialize
3493 (top_level_diversion): More elaborate test for whether
3494 cleanup_and_exit() should be called.
3495 Set began_page_in_end_macro if the end macro isn't yet finished.
3496 * troff/div.h (top_level_diversion::last_page_count): New data
3498 (top_level_diversion::set_last_page): New function.
3499 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3500 * troff/env.c (do_break): Zero prev_line_interrupted.
3501 * troff/input.c (exit_flag): Delete declaration.
3502 (LAST_PAGE_EJECTOR): New magic cookie.
3503 (token::next): Handle LAST_PAGE_EJECTOR.
3504 (exit_groff): Set exit_started and done_end_macro instead of
3505 exit_flag. Call top_level_diversion::set_last_page. Push a
3506 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3507 another ejection after setting seen_last_page_ejector.
3509 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3511 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3513 * macros/tmac.e (TH): Make sure there's room for the initial
3516 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3517 Set FVS in points rather than units.
3519 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3521 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3522 position of empty slots.
3524 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3526 * ps/devps/S: Fix height and depth of parenrightex.
3527 * ps/devps/symbol.diff: Regenerate.
3529 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3531 * tmac.e (u): Do underlining as in -mgs.
3533 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3535 * tty/tty.c (tty_printer::end_page): If overstriking is
3536 suppressed, still turn overstruck horizontal and vertical lines
3539 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3542 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3544 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3546 * Version 1.05 released.
3548 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3550 * tty/tty.c: Instead of keeping an array of glyphs and then
3551 sorting it, keep a ordered linked list of glyphs for each line.
3553 * driver/driver.h: Include stddef.h.
3555 * tty/tty.c (compare_glyph):
3556 * refer/refer.c (rcompare):
3557 * troff/env.c (compare_ranges): Arguments of qsort comparison
3558 function should be const void *.
3560 * troff/number.c (parse_term):
3561 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3564 * refer/label.y (consider_authors): Don't access variables
3565 constructed under a condition outside that condition: put braces
3566 round for statement containing declaration; redeclare use of same
3569 * pic/pic.y (text_expr): Delete production that allows
3570 parenthesised text_expr.
3571 (expr): Allow a conditional_expr to appear in parentheses.
3572 (conditional_expr): Rename to any_expr.
3574 * mm: Install new version 1.01 from jh.
3576 * lib/font.c (font::get_width): Cache scaled widths.
3577 (font::font): Initialize widths_cache.
3578 (font::~font): Destroy widths_cache.
3579 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3581 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3583 * c++test.c, c++test.ref: New files.
3584 * Makefile: Check that the C++ compiler works.
3586 * ps/tmac.pspic (PSPIC): Do a break.
3588 * ps/tmac.ps: Move definition of PSPIC into...
3589 * ps/tmac.pspic: New file.
3590 (PSPIC): Draw box around picture, but make it invisible to grops.
3591 * ps/tmac.ps: Load tmac.pspic.
3592 * ps/Makefile: Install tmac.pspic.
3594 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3596 * lib/font.c (scale_round): If n is negative,
3597 subtract .5 before truncating floating point result.
3599 * lib/fontfile.c: Include <errno.h>.
3601 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3603 * driver/input.c (get_char): Inline. Don't update current_lineno.
3604 Change callers to up date current_lineno if necessary.
3605 Use get_char() instead of getc(current_file).
3607 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3609 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3611 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3613 * tty/tty.c (tmac.tty): Define \(rg as (R).
3615 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3617 * lib/lib.h: New define a_delete.
3618 * Use a_delete instead of delete when deleting an array of objects
3619 without destructors.
3621 * lib/lib.h: Rename adelete to ad_delete.
3622 * Change uses of adelete.
3624 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3626 * eqn/eqn.y: Include lib.h.
3628 * troff/node.c (grow_font_table): Delete old_font_table.
3630 * mm: Install new version from jh.
3632 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3634 * tbl/table.h (format_type): Make global instead of local to class
3635 entry_format. Prefix enumerators with FORMAT_.
3636 * tbl/table.c, tbl/main.c: Corresponding changes.
3637 * refer/token.h (token_type): Make global. Prefix enumerators
3639 * refer/token.[ch]: Corresponding changes.
3640 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3642 * troff/div.c (node::set_vertical_size): Don't name argument.
3644 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3646 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3647 * lib/lib.h: Define adelete accordingly.
3648 * pic/object.c (graphic_object::graphic_object):
3649 * tbl/main.c (format::~format):
3650 * tbl/table.c (table::~table):
3651 * refer/ref.c (reference::~reference, reference::merge,
3652 reference::insert_field, reference::delete_field): Use adelete.
3654 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3656 * tbl/table.h: Corresponding changes.
3658 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3659 Ensure total_angle is positive.
3661 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3663 * refer/ref.c (reference::merge, reference::insert_field,
3664 reference::delete_field): Avoid delete[0].
3666 * refer/token.c (init_special_chars): Move calls to cmupper
3667 outside calls to init_two_char_letter to work around bug in gcc
3670 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3672 * lib/new.c (operator new): Use __builtin_new for g++.
3674 * pic/object.c (graphic_object::~graphic_object): Don't use
3677 * pic/object.c (output::compute_scale): Initialize max_width and
3680 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3682 * troff/input.c (write_request): Call fflush.
3684 * troff/node.h (class composite_node): Move declaration to node.c
3685 * troff/input.c (charinfo_to_node): Rename to ...
3686 (charinfo_to_node_list): Return node list rather than composite
3688 * troff/node.c (make_composite_node): New function.
3689 (make_node, add_char): Call make_composite_node instead of
3691 (class composite_node): Add a tfont * member. Delete font_size
3693 (composite_node::composite_node, composite_node::copy,
3694 composite_node::size): Corresponding changes.
3695 (composite_node::tprint): Provide constant spacing, emboldening
3696 and track kerning as specified in tfont.
3697 (composite_node::width): Change width calculation accordingly.
3698 * troff/env.h (environment::composite): New member.
3699 (environment::is_composite, environment::set_composite): New
3701 * troff/env.c (environment::environment): Initialize composite.
3702 * troff/input.c (charinfo_to_node): Call
3703 environment::set_composite.
3704 * troff/node.c (make_composite_node, make_glyph_node): Use the
3705 plain version of the tfont if the environment is composite.
3707 * troff/node.c (font_info::get_space_width): Additional argument
3708 giving space_size. Handle constant space correctly. Scale by
3709 space_size unless constant spaced.
3710 (env_sentence_space_width): New function.
3711 * troff/node.h: Declare it.
3712 * troff/env.h (environment::get_space_size,
3713 environment::get_sentence_space_size,
3714 environment::get_narrow_space_width,
3715 environment::get_half_narrow_space_width): Make inline.
3716 (environment::get_space_width): Make inline. Just call
3718 * troff/env.c: Delete definitions for funtions made inline.
3719 (environment::space_newline, environment::space): Use
3720 env_sentence_space_width(). Don't scale by space_size.
3721 * troff/node.h: Move declarations of env*space_width() functions
3724 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3726 * macros/tmac.s (PS): Don't try to set negative indent.
3728 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3730 * pic/pic.y: Fix min function.
3732 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3734 * man/mdate.sh: Clear LANGUAGE.
3736 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3738 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3739 * pic/lex.c: New COMMAND keyword.
3740 * pic/pic.y (print_args, print_arg): New rules.
3741 (placeless_element): Use print_args for PRINT.
3742 New COMMAND element.
3744 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3746 * troff/input.c (terminal): Handle missing argument correctly.
3748 * pic/pic.y (text_expr): New rule.
3750 * pic/pic.y: Implement := operator.
3752 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3754 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3757 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3759 * ps/devps/dingbatsrmap: Include this in the distribution.
3761 * macros/tmac.doc: Replace with new version from 2nd Networking
3762 Release. Fix loading of doc-* files.
3763 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3764 * macros/tmac.doc.old: New file. Apply fixes that had been
3765 applied to old tmac.doc.
3766 * macros/tmac.andoc: Check that we're running under groff.
3767 * macros/Makefile: Rework.
3769 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3771 * tbl/table.h (format_type):
3772 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3773 typedef to make these types visible at file scope.
3774 * Makefile: Add NESTED_TYPES configuration option.
3776 * troff/div.c (mark): At the top level use the value of
3777 nl_reg_contents rather than the current vertical position.
3779 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3781 * tty/tty.c: Implement \D for horizontal or vertical lines.
3782 (tty_printer::set_char): Use vec_used+2 as serial number.
3783 Don't allow size of vector to exceed USHRT_MAX-2.
3784 Split off part into...
3785 (tty_printer::add_char): New function.
3786 (tty_printer::draw): New function.
3787 (compare_glyph): Handle equal serial numbers.
3788 (tty_printer::end_page): Handle overstruck characters from \D.
3789 (main, usage): Implement -d option.
3791 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3793 * tbl/main.c (process_format):
3794 * eqn/text.c (split_text):
3795 * troff/input.c (token::next): Use inner block for declarations
3796 with initializers in switch statement.
3798 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3800 * pic/common.c (common_output::dash_line): Cope with zero-length
3803 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3805 * Version 1.04 released.
3807 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3809 * macros/tmac.an (TH): Define a macro an-init to define variables
3810 based on command line arguments.
3811 (an-header): Call it.
3813 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3815 * Makefile (install.mm): Rename to install.dwbmm.
3817 * Makefile: Integrate mm.
3818 * mm: New directory.
3820 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3822 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3825 * pic/troff.c (troff_output::simple_spline,
3826 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3827 shadowing parameter.
3829 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3831 * lib/ptable.h: Add explicit casts when converting from unsigned
3834 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3835 * dvi/devdvi/Makefile: Install SA, SB.
3837 * refer/indxbib.c: Add declaration of mktemp.
3839 * refer/lookbib.c: Add declaration of isatty.
3841 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3843 * pic/lex.c (interpolate_macro_with_args): While collecting
3844 arguments, keep track of whether we're in a string.
3846 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3848 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3849 down with \v, so as to avoid problems with top of page trap
3850 setting no space mode.
3852 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3854 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3856 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3858 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3859 Improve error message.
3861 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3863 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3866 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3868 * groff.c (possible_command::execp): Always use _exit() after a
3871 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3872 NO_SYS_WAIT_H configuration options.
3873 * groff.c: Use these options. Use POSIX-style macros to extract
3874 fields from the status returned by wait().
3876 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3878 * tbl/table.c (table::compute_separation_factor): Allow the
3879 separation factor to drop to 0.
3881 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3883 * refer/search.c: Include <errno.h>.
3885 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3887 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3889 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3892 * pic/lex.c (input_stack::bol): Move definition out of class body.
3894 * pic/main.c: On MSDOS munge argv[0].
3896 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3898 * lib/ptable.c (hash_string): Use unsigned long rather than
3900 (next_ptable_size): Use unsigned rather than int. Give an error
3901 message if we've hit the largest table size.
3902 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3905 * pic/object.h (object_spec): Make flags unsigned long. Declare
3906 flags as const unisgned long rather than as enums.
3908 * pic/output.c: Deleted.
3910 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3912 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3913 Add additional argument.
3914 (line_entry::note_double_vrule_on_{left,right}): Set value of
3915 douvle_vrule_on_{right,left} flag according to argument.
3916 (simple_line_entry::simple_print,
3917 simple_line_entry::double_line_print): If adjacent to double vrule
3918 on a corner extend rather than shorten the rule by half the double
3921 * troff/number.c (parse_term): In checking for overflow, handle the
3922 case where the current horizontal position is negative.
3924 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3926 * pic/object.c (draw_arrow): Check for object having zero length.
3928 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3930 * eqn/main.c (do_file): Split off inline equation handling into...
3931 (inline_equation): New function. Search for starting delimiter
3933 (delim_search): New function. Don't recognize a delimiter that
3934 occurs in the name of an escape sequence, number register, string
3937 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3939 * eqn/delim.c (delim_box::compute_metrics): Don't call
3940 define_extensible_string if left is 0.
3941 (delim_box::output): Don't print the left delimiter if left is 0.
3942 (delim_box::debug_print): Check for left == 0 before calling printf.
3944 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3946 * troff/Makefile (majorminor.c): Include only digits in
3949 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3951 * refer/dirnamemax.c: new file.
3952 * refer/genlimits.c: Deleted.
3953 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3954 Don't check path length.
3955 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3956 * Makefile: Add PATHCONF_MISSING option.
3958 * refer/indxbib.c (get_cwd): New function.
3959 (main): Use get_cwd().
3960 * lib/getcwd.c: New file.
3961 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3963 * lib/Makefile: Compile getcwd.o.
3965 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3968 * refer/indxbib.c (main): Check success of mktemp.
3970 * lib/tmpfile.c: New file.
3971 * lib/Makefile: Add tmpfile.c.
3972 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3973 * ps/ps.h: Delete declaration of mktemp().
3974 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3975 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3976 * driver/driver.h: No need now to include errno.h.
3978 * everywhere: Set errno to 0 before calling fopen().
3980 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3981 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3982 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3984 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3986 * troff/env.h (translate_space_to_dummy): Declare it.
3987 * troff/env.c (environment::space_newline, environment::space):
3988 If translate_space_to_dummy is set then make the width of spaces 0.
3989 * troff/input.c (translate): If the second character of a
3990 translation is a space, translate to unbreakable space. If the
3991 first character is a space, set or clear translate_space_to_dummy
3992 according to whether the second character is \&. Weird!
3994 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3996 * groff.c (run_commands): Don't use non-zero exit code because a
3997 command gets SIGPIPE.
3999 * groff.c, groff.sh: Use -mXps with -TXps.
4001 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4002 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4003 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4004 (ps_printer::special): New specials invis and endinvis.
4005 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4006 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
4007 (ps_printer::end_page): Check that invis_count == 0.
4008 (ps_printer::invis_count): New member.
4009 (ps_printer::ps_printer): Initialize invis_count to 0.
4011 * troff/env.c (environment::hyphenate_line): Hyphenation
4012 indicator at beginning of word inhibits splitting after -, \(em
4015 * pic/pic.y (element): Allow another element to follow } without
4016 any intervening separator.
4018 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
4020 * pic/lex.c (get_delimited): Allow tabs before delimiter.
4022 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
4024 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
4025 declaration of wait() in header files.
4026 * Makefile: Get rid of -DHAVE_UNION_WAIT.
4028 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4030 * lib/lib.h: Declare return type of strerror as char *.
4032 * man/Makefile: Add g flag to sed substitutions.
4033 * Makefile (shgroff, bindist): Likewise.
4035 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
4037 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4038 * ps/devps/prologue (PBEGIN): Define showpage after pushing
4041 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
4043 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4046 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
4048 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4051 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
4053 * troff/input.c (define_number_reg): If currently undefined,
4054 don't define it if the argument is an invalid expression.
4056 * Makefile: Ignore return value of `if' commands without `else'
4059 * Makefile: Split up CPPDEFINES into a series of separate
4060 configuration options.
4062 * troff/input.c (init_registers): Use time_t instead of long
4063 unless LONG_FOR_TIME_T is defined. Use returned result rather
4064 than passing pointer.
4065 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4067 * lib/Makefile (fontpath.h): Use gendef.
4069 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
4071 * troff/input.c (input_iterator::shift): Delete argument name.
4072 * troff/node.c (suppress_output_file::really_begin_page,
4073 suppress_output_file::really_transparent_char, node::ascii_print,
4074 node::tprint): Delete names of unused arguments.
4076 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
4078 * refer/label.y (string): Pass $4 to command_error.
4080 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
4082 * Version 1.03 released.
4084 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
4086 * Makefile: Pass definition of SHELL in SUBFLAGS.
4089 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4090 ps/Makefile: Use gendef to construct header files that are
4091 constructed from the Makefile.
4093 * macros/Makefile: make all should build stripped version of tmac.e.
4095 * refer/Makefile (clean): Remove y.output.
4097 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
4099 * ps/pfbtops.c (main): Add -v option which prints out a version
4101 * ps/Makefile (pfbtops): Link with libgroff.a.
4103 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
4105 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4106 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4108 * refer/lkbib.c (main): Always terminate reference with blank
4110 * refer/lookbib.c (main): Likewise.
4112 * refer/linear.c (file_buffer::load): Check that the file is not a
4115 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4116 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4117 Delete second inclusion of <sys/param.h>.
4119 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
4121 * troff/token.h (token::special): Deleted.
4123 * tbl/main.c (process_format): Rework so that opt->tab_char is
4124 recognized only when appropriate.
4126 * ps/Makefile (clean): Remove pfbtops.
4128 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
4130 * lib/font.c (text_file::next): Don't return if we have got a
4133 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
4135 * refer/refer.c (store_reference): Get hash code from old_table[i]
4136 when rehashing the table.
4138 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
4140 * eqn/box.c (box::top_level): Save size and prev size using \R and
4141 restore it afterwards. Set the size to the size at the beginning
4143 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4144 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4146 * refer/Makefile (limits.h): Use ./genlimits.
4148 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
4150 * refer/index.c: Delete declarations of stat() and fstat().
4152 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
4154 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4156 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
4158 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4160 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
4162 * troff/input.c (token::get_char): Handle \e.
4164 * refer/linear.c: Delete declarations of fstat() and stat().
4166 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
4168 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4169 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4171 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
4173 * troff/input.c (do_define_macro): Improve error handling for end
4174 of file while defining macro.
4176 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
4178 * eqn/box.h: Fix declaration of set_gsize.
4179 * eqn/box.c (set_gsize): Make argument const char *.
4180 (gsize): Declare as char *.
4181 * eqn/main.c (main): Don't convert gsize to int.
4182 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4184 * Version 1.02 released.
4186 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
4188 * macros/tmac.andoc: New file.
4189 * macros/Makefile: Install tmac.andoc.
4191 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4192 operator new and delete on OP_DELETE_BROKEN not being defined.
4193 * Makefile: Mention OP_DELETE_BROKEN.
4195 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
4197 * Makefile (bindist): Pass SUBFLAGS.
4199 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
4201 * Makefile, groff.c: Pass definitions to groff.c via device.h.
4203 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4206 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4208 * ps/ps.h, ps/psrm.c: Make comment_table and
4209 header_comment_table local to resource_manager::process_file.
4211 * groff.sh: With -TXps pass -printCommand option to gxditview.
4213 * groff.c (possible_command::print): Implement using
4214 append_arg_to_string.
4216 * xditview: Merge in new implementation with own ChangeLog.
4218 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
4220 * groff.c (main): Implement PRINT_OPTION.
4221 (append_arg_to_string): New command.
4222 (device_table): Set PRINT_OPTION flag for Xps.
4224 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
4226 * troff/groff.h: Rename to troff.h.
4228 * pic/lex.c (lookup_keyword, docmp): New functions.
4229 (get_token): Use new lookup_keyword.
4230 Don't include key.h.
4231 * pic/key.[ch], pic/pic.gperf: Deleted.
4232 * pic/Makefile: Remove gperf stuff.
4234 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4236 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4238 * troff/Makefile, troff/node.c: Move definition of
4239 STORE_WIDTH into node.c.
4241 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4243 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4245 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4246 dvi/devdvi/texb.map: Add lq and rq.
4247 dvi/devdvi: Regenerate fonts.
4248 * ps/devps/textmap: Add lq and rq.
4249 * ps/devps: Regenerate fonts.
4250 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4251 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4253 * pic/object.c (position_rectangle): When checking radius
4254 cope with possiblity that width or height is negative.
4255 (box_object::box_object): Have separate xrad and yrad with
4256 signs matching signs of dim components.
4257 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4258 (box_object::print): With rounded boxes use absolute values
4259 for dim and rad arguments.
4261 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4264 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4266 * various files: Add explicit destructors to keep Saber CC +d
4269 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4271 * eqn/box.c (box::top_level): Restore fonts correctly after
4272 font changes in line containing inline equation. Also
4273 restore previous font as well as current font.
4274 * eqn/pbox.h: Define necessary string and register names.
4276 * troff/input.c (token::next): Case 'R' calls do_register.
4277 (do_register): New function.
4279 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4281 * groff.c, groff.sh: Support Xps device. Allow each device
4282 to have a pseudo_name and a real_name.
4284 * groff.c (run_commands): Don't print `Broken pipe' messages.
4286 * ps/pfbtops.c: New file.
4287 * ps/Makefile: Add pfbtops.
4289 * troff/number.c (parse_term): Improved error message.
4291 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4293 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4295 * Makefile: Integrate refer.
4296 * refer: New directory.
4297 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4298 man/lkbib.man: New files.
4299 * man/Makefile: Support refer man pages.
4301 * lib/lib.h: Declare is_prime.
4302 * lib/prime.c: New file.
4304 * troff/input.c (macro_source): New function.
4305 (init_input_requests): Bind "mso" to macro_source.
4307 * troff/env.c (environment::possibly_break_line): Maintain
4308 pointer to pointer to node to be split in ndp so as to avoid
4309 using address of freed node.
4311 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4312 pointer to first node to be hyphenated in startp so as to
4313 avoid using address of freed node.
4315 * troff/env.c (class trie, class hyphen_trie): Make the
4316 elements of the trie be of type char not unsigned char.
4317 Declare arguments to be const char* instead of unsigned char *.
4319 * troff/env.c (hyphenate): Initialize hbuf[0].
4321 * troff/input.c (set_string): Declare p to be char * and cast
4322 *p to unsigned char when necessary.
4324 * troff/input.c (do_define_macro): Declare s to be const
4325 char*. Cast element to unisgned char when necessary, Declare
4326 d to be an int. Handle EOF better.
4328 * troff/Makefile, troff/input.c: Different scheme for passing
4329 definitions of MACROPATH, HYPHENFILE and DEVICE.
4331 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4333 * tty/devascii/R.proto: Delete entry for em.
4334 * tty/devlatin1/R.proto: Likewise.
4336 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4338 * troff/input.c (translate): Stop when we get a space. Treat eof
4341 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4343 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4345 * tbl/main.c (process_format): A font name following a `f'
4346 modifier that starts with a digit can be only one character long.
4347 Also deal with EOF on the second character of the font name.
4349 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4351 * troff/input.c (token::next): Turn \~ into an
4352 unbreakable_space_node.
4353 * troff/node.c (unbreakable_space_node): New class.
4354 * troff/node.h: Declare it.
4356 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4358 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4359 it's >= 0, before outputting it as a single byte.
4361 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4363 * lib/font.c: Make font_char_metric::code an int.
4364 (font::get_code): Change return type to int.
4365 (font::load): Allow code to be arbitrary integer.
4366 * lib/font.h (font::get_code): Change return type to int.
4367 (font::number_to_index): Change argument type to int.
4368 * troff/input.c (token::next): In case 'N', allow any value.
4369 Store value in token::val.
4370 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4371 (token::get_char, token::add_to_node_list, token::process): Get
4373 (charinfo::set_number): Change argument to int.
4374 (charinfo::get_number): Require that NUMBERED flag be set.
4375 (get_charinfo_by_number): Store numbered characters not between 0
4376 and 255 in a dictionary.
4377 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4379 (charinfo::number): Change type to int.
4380 (charinfo::set_number): Change type of set_number to int.
4381 * troff/node.c (troff_output_file::put_char_width,
4382 troff_output_file::put_char): Test whether character is numbered
4383 using charinfo::numbered().
4384 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4386 * lib/nametoindex.c: New implementation to cope with arbitrary
4389 * troff/input.c (token::operator==): Test val for
4390 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4393 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4394 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4396 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4398 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4401 * all Makefiles: rm targets of cp and >.
4403 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4406 * eqn/lex.c (def_table): Add dollar.
4408 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4410 * troff/input.c (do_width): Push back newline before closing delim
4413 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4415 * groff.c (possible_command::prepend_arg): New function.
4416 (main): Prepend device -m option.
4417 * groff.sh: Put device -m options before command-line options.
4419 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4421 * macros/tmac.an (IP): Quote argument to TP.
4423 * ps/ps.c (main): New option -b, which sets...
4424 (broken_flags): New variable.
4425 (ps_printer::~ps_printer): Incorporate the setup section in the
4426 prolog if (broken_flags & NO_SETUP_SECTION).
4427 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4428 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4429 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4430 ps_printer::print_needed_font_comment,
4431 ps_printer::print_supplied_font_comment,
4432 ps_printer::print_include_font_comments,
4433 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4434 ps_printer::read_download_file, read_document_fonts, add_font,
4435 skip_line, parse_fonts_arg, document_font::document_font,
4436 document_font::~document_font, document_font::download,
4437 ps_output::include_file): Deleted.
4438 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4439 rather than %!PS-Adobe-2.0. Make calls to
4440 resource_manager::need_font for each font that we used. Replace
4441 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4442 print_supplied_font_comment, print_needed_font_comment by call to
4443 resource_manager::print_header_comments. Output %%Orientation
4444 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4445 Don't output the prolog directly. Instead call
4446 resource_manager::output_prolog. Only define #copies when ncopies
4447 > 1. Delete calls to print_include_font_comments and
4448 download_fonts. Add call to resource_manager::document_setup.
4449 (ps_printer::do_file): Call resource_manager::import_file instead
4450 of including it ourselves.
4451 (ps_printer::do_import): Likewise. Also don't call
4452 merge_import_fonts. Push userdict on the dictionary stack before
4453 and pop it afterwards.
4454 Move declaration of ps_output into ps.h.
4455 * ps/psrm.c: New file implementing resource_manager class.
4456 * ps/ps.h: New file declaring ps_output and resource_manager
4458 * ps/devps/zapfdr.ps:
4459 * ps/devps/symbolsl.ps:
4460 * ps/devps/prologue: Use 3.0 conventions.
4461 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4462 Add default definition of BROKEN_SPOOLER_FLAGS.
4463 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4464 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4466 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4468 * etc/grog.pl: New file.
4469 * Makefile (GROG): New variable.
4470 Add GROG to SUBFLAGS.
4471 * etc/Makefile (GROG): New variable.
4472 (install.nobin): Install $(GROG) rather than grog.sh.
4474 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4476 * eqn/special.c (special_box::compute_metrics): Make the input and
4477 output strings the same. Get the new height and depth from the
4478 predefined height and depth registers. Also make subscript kern
4480 (special_box::compute_subscript_kern, special_box::compute_skew):
4483 * eqn/box.c (pointer_box::compute_skew,
4484 simple_box::compute_metrics, box::top_level)
4485 * eqn/text.c (prime_box::compute_metrics,
4486 prime_box::comput_subscript_kern)
4487 * eqn/limit.c (limit_box::compute_metrics):
4488 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4489 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4490 negative numbers in `nr' requests with a leading 0.
4492 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4494 * eqn/special.c: New file.
4495 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4496 Add new rule for simple.
4497 * eqn/lex.c (token_table): Add SPECIAL.
4498 * eqn/box.h: Declare make_special_box.
4499 * eqn/Makefile: Add special.[co].
4501 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4503 * ps/devps/prologue: Possibly set packing to true while defining.
4504 Create grops dictionary here. Initialize local variables before
4505 defining procedures.
4506 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4507 the dictionary stack. Set strokeadjust and overprint to false if
4508 the relevant operators are defined.
4509 (PEND): New procedure.
4510 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4511 prologue. Do everything else in the setup section.
4512 (ps_printer::do_import): Just call PBEGIN and PEND around the
4513 picture. Also push userdict before, and pop it afterwards.
4515 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4517 * troff/node.c (bracket_node::tprint): Brackets were being printed
4520 * macros/tmac.an (SH, SS): Set fill mode.
4522 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4524 * troff/div.c (top_level_diversion::begin_page): Set
4525 high_water_mark to 0.
4527 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4529 * man/mdate.sh: New file.
4530 * man/mdate.c: Deleted.
4531 * man/Makefile: Use mdate.sh instead of mdate.
4534 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4536 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4538 * man/mdate.c: New file.
4539 * man/*.man: Replace modification date by @MDATE@.
4540 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4541 (mdate): New target.
4543 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4544 Remove illegal input characters.
4546 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4548 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4550 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4552 * troff/div.c (begin_page): Change behaviour when
4553 !first_page_begun and !break_flag.
4555 * troff/input.c (do_name_test): Return 0 if argument is empty.
4557 * troff/input.c (read_long_escape_name): Require closing ] to be
4558 at same input level as opening [.
4560 * troff/input.c (read_increment_and_escape_name): New function.
4561 (get_copy, process_input_stack): Use this for \n.
4563 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4565 * troff/div.c (top_level_diversion::begin_page): Ignore the
4566 current value of page_number if !first_page_begun.
4568 * groff.c (main): Fix declaration of buf.
4570 * troff/input.c (do_name_test): New function.
4571 (token::next): Implement \A.
4572 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4573 (token::description, token::add_to_node_list, token::process):
4574 Handle TOKEN_ESCAPE.
4575 * troff/token.h: New token TOKEN_ESCAPE.
4577 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4579 * pic/main.c (do_picture): Allow space before and after filename
4580 following `<'. Check that the filename is not empty.
4582 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4584 * Version 1.01 released.
4586 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4588 * dvi/tmac.dvi: ftr HR to H.
4590 * macros/tmac.e: Round up computation of $r.
4592 * xditview/tmac.X: Don't give up completely in compatibility mode.
4593 Use \n(.s instead of \n[.s].
4595 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4596 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4597 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4598 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4599 short names in the char definitions.
4601 * ps/tmac.ps: Don't give up completely in compatibility mode.
4602 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4603 quote in front of \n(.s. Add u to factors inside \s[...].
4605 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4607 * tty/tmac.tty: Call the nroff request.
4609 * macros/tmac.e ((x, )x): Better definitions that work properly
4611 (@0, @1): Helper macros for (x.
4613 * macros/tmac.e ($s, hl): Use \l rather than \D.
4615 * tty/tmac.tty: Make it work better in compatibility mode.
4616 (pchar): Rename to tty-char.
4618 * macros/tmac.e (@E): New macro.
4619 (r, i, b, rb, bi): Use @E.
4621 * macros/tmac.e (@F): Don't use (;...) syntax.
4623 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4624 it was modified for groff.
4626 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4628 * macros/tmac.e (<., .>): Removed.
4629 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4631 * macros/tmac.e: Remove check that groff is being used.
4633 * macros/tmac.e (@C): Change families only if using groff; turn
4634 compatibility mode off while changing familes. Save compatibility
4635 mode before changing families and restore it afterwards.
4637 * macros/tmac.e (@h): Remove test for offset + line length.
4639 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4640 (lo, th, ac): Define to call @S instead of using als.
4642 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4643 the ratio of the vertical spacing to the point size in units
4644 expressed as a percentage. Use these instead of $10r and $10R,
4645 Delete $10r and $10R.
4647 * lib/font.c (font::load): In default computation of space_width,
4648 divide by sizescale. Use scale_round.
4650 * macros/tmac.an (TP): Don't call `nf'.
4651 (an-do-tag): Don't call `fi'.
4653 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4655 * troff/input.c (process_input_stack): Handle the case where
4656 spaces at the beginning of an input line are followed by a
4659 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4661 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4662 * groff.sh: Use pic -x with the dvi device.
4664 * dvi/devdvi/FontMakefile (H): Don't use -s.
4666 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4667 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4668 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4671 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4673 * ps/psfig.diff: New file.
4674 * ps/tmac.psfig: New file.
4676 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4678 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4679 (]-): Don't call ref*do-tl.
4681 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4683 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4684 (fn@do-FS): Rename to fn*do-FS.
4686 * troff/input.c (transparent_translate): New function.
4687 (process_input_stack): Apply transparent_translate before calling
4688 diversion::transparent_output(unsigned char).
4690 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4692 * troff/input.c (do_define_macro): Define the macro before calling
4695 * xditview/Makefile: Add DEVICES variable. Change install target
4698 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4700 * groff.c (run_commands): Handle the possibility that there are
4701 child processes other than those forked by us.
4703 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4705 * lib/string.c (string::append): New function.
4706 * lib/stringclass.h: Declare it.
4708 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4710 * eqn/main.c (main): New option -N which sets
4711 no_newline_in_delim_flag.
4712 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4714 * groff.c (main): Pass -N on to eqn.
4715 (help, synopsis): Mention -N.
4716 * groff.sh: Implement -N.
4718 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4720 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4721 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4722 (XP): Allow as initializer.
4724 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4726 * troff/env.c (environment::wrap_up_field): If field_spaces are
4727 non-zero and we have a current_tab, subtract padding from
4728 tab_distance. If this makes tab_distance <= 0, use the next tab
4729 stop instead. If there isn't any next tab or it's a left tab,
4730 wrap up the current tab.
4731 (environment::start_field): Initialize tab_precedes_field.
4732 (environment::wrap_up_tab): If there's a current field, update
4733 pre_field_width, field_distance and tab_precedes_field.
4734 * troff/env.h (environment::tab_precedes_field): New member.
4736 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4738 * ps/ps.c (ps_printer::do_file): New function.
4739 (ps_printer::special): Bind to `file' special.
4740 (ps_printer::do_exec): Set ndefined_styles to 0.
4742 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4744 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4745 Avoid stripping first character from the start of unrecognized
4746 escapes. Use lex_error instead of error to report errors.
4747 * eqn/lex.c (get_token): Rework handling of escapes.
4748 (lex_error): Move declaration into...
4751 * xditview/xditview.c (main): Make -page option work.
4753 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4755 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4757 * macros/tmac.s (B2): Correct size of box.
4759 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4761 * macros/tmac.s (B2): Postpone drawing the box until in the
4762 top-level diversion.
4764 * tty/tmac.tty: Add font translations for C, CR, CW.
4766 * groff.c (synopsis, help): Document -i.
4767 * groff.sh: Implement -i.
4769 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4770 Simplify the construction of SN.
4772 * troff/number.c (parse_term): Give `|' a higher precedence.
4773 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4776 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4778 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4780 * lib/string.c (string::move): New function.
4781 * lib/stringclass.h: Declare it.
4783 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4785 * troff/env.c (distribute_space): Add optional argument
4787 (environment::wrap_up_field): Call distribute_space with
4788 `force_forward' argument of 1.
4790 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4792 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4793 Inline it. Move reallocation into...
4794 (string::grow1): New function.
4795 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4796 dependencies to include library header files.
4797 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4799 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4801 * macros/tmac.s (@NH): Use the same number registers than -ms does
4802 for the heading level counters. Use the same string that -ms does
4803 for the number for this heading.
4805 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4807 * lib/new.c (operator new): Cast result of malloc to char *.
4809 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4812 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4814 * groff.c (main): Support -i.
4816 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4818 * pic/pic.h: Include <osfcn.h>.
4820 * ps/ps.c: Add declaration of mktemp.
4822 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4823 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4824 argument as union wait *.
4825 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4826 argument to union wait *.
4828 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4830 * tty/tmac.tty: Add definition of \(co.
4832 * pic/object.c (make_arc): Only increase radius when radius
4833 strictly less than d.
4834 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4837 * troff/env.c (environment::environment(symbol),
4838 environment::environment(const environment *)): Initialize
4841 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4843 * tbl/main.c (main): Add exit(0).
4845 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4847 * pic/main.c (main):
4848 * eqn/main.c (main):
4849 * tbl/main.c (main):
4850 * etc/soelim.c (main):
4851 * driver/printer.c (printer::~printer):
4852 * troff/node.c (real_output_file::~real_output_file,
4853 real_output_file::flush): Check for errors on stdout.
4855 * most files: Add 1991 to copyright notice.
4857 * macros/tmac.s: Don't test \n(.x and \n(.y.
4859 * troff/input.c (token::next): Rename `escape_char' label to
4860 `handle_escape_char' and `normal_char' label to
4861 `handle_normal_char'.
4863 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4865 * groff.c (main, synopsis, help): Support -a option.
4866 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4867 to trflags while parsing options.
4869 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4871 * troff/number.c (parse_term): With `m', `M' and `n' scale
4872 indicators, convert scale factor to hunits before scaling.
4874 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4876 * lib/font.c (scale_round): Better test for overflow when n is
4879 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4881 * tbl/main.c (process_format): Add second argument of type
4882 options*. Change callers. Allow opt->tab_char as well as '\t'
4883 between format items.
4885 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4887 * macros/tmac.an (PD): With no arguments, make sure register PD is
4889 (TH): Call PD with no argument, instead of setting register PD
4892 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4894 * Version 1.00 released.
4896 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4898 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4900 * dvi/devdvi/DESC: Mount CW instead of CR.
4902 * dvi/tmac.dvi: Add definition of \(tm.
4904 * dvi/devdvi/texsy.map: Add lh, and rh.
4905 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4906 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4908 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4909 * dvi/devdvi/Makefile: Install H.
4910 * dvi/devdvi/H: New file.
4912 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4914 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4917 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4919 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4921 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4923 * macros/tmac.s (@EN): Handle the case where the equation is empty
4924 but the label is not.
4926 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4928 * troff/groff.h: New warning category WARN_SPACE.
4929 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4930 WARN_SPACE to warning_table.
4931 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4932 is longer than two characters and is not defined, but the first
4933 two characters do make a defined name.
4935 * PROBLEMS: New file.
4937 * CHANGES: New file.
4938 * README-0.6, README-1.00: Deleted.
4940 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4941 * xditview/devX75/Makefile: Make devX75-12.
4942 * xditview/devX100/Makefile: Make devX100-12.
4944 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4945 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4947 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4949 * README-0.7: Rename to README-1.00.
4951 * macros/tmac.pic: New file.
4952 * macros/Makefile (install.nobin): Install tmac.pic.
4954 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4956 * troff/env.c (hyphen_word): Correct the test for whether the
4957 token is a hyphen. Reset npos to 0.
4959 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4961 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4963 * macros/tmac.s (ds*common-end): Call par*reset.
4965 (par@reset-indent): Deleted.
4967 * macros/tmac.s (@IP): Divert the label.
4969 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4971 * xditview/draw.c (setGC): Use a line width of .1m rather than
4972 .04m by default; round rather than truncate value.
4974 * tbl/table.c (class empty_entry): New class.
4975 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4976 (table::add_entry): Represent empty entries by objects of type
4978 (table_entry::line_type): Return -1.
4979 (table::determine_row_type): Ignore entries with line_type 0.
4980 Treat type -1 as non-lines.
4982 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4984 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4985 macros/tmac.s: Rename \(-d to \(Sd.
4987 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4989 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4990 * xditview/libXdvi/DviChar.c: Likewise.
4991 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4993 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4995 * troff/div.c (top_level_diversion::begin_page): Call
4996 init_output() if the_output is 0.
4998 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
5000 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5002 (get_copy): Turn \E into ESCAPE_E.
5003 (token::process, asciify): Handle ESCAPE_E.
5005 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5007 (DS): Implement `.DS R'.
5009 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
5011 * macros/tmac.s (FS): New macro.
5013 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5015 * macros/tmac.s (cov*tl-init): Remove after first execution
5016 instead of aliasing to @nop. Call top of page macro explicitly
5017 instead of setting trap; call @init first. Set pg@top as top of
5019 (cov*auto-init): Deleted. Set cov*tl-init instead of
5020 cov*auto-init as top of page trap.
5021 (TL, LP): Do a break instead of calling cov*tl-init.
5022 (cov*print): With RP format but no TL, alias FS and FE to @FS and
5023 @FE; in this case also give a warning and always start another
5024 page. No need to set pg@top here.
5025 (cov*tl-init): Rename to cov*first-page-init.
5027 * macros/tmac.s (RP): Do `.pn 0'.
5028 (cov*tl-init): With RP format don't do `.pn 0'.
5030 * macros/tmac.s (pg@cs-top): Set no space mode.
5032 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5033 (cov*ab-init): Alias TL, AU and AI to these.
5035 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
5037 * macros/tmac.s (@EQ): Move the space before the equation into @EN
5038 (@EN): Do nothing unless \n[dl] is > 0.
5040 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
5042 * pic/object.c (ellipse_object::radius): New function.
5044 * VERSION: Change version to 0.7.
5046 * tbl/table.c (block_entry::do_divert): Declare return type as
5048 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5050 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
5052 * troff/column.c: New file.
5053 * troff/Makefile: Corresponding changes.
5055 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
5058 * troff/div.c (top_level_diversion::space): If the space causes
5059 the first-page transition and springs a trap, truncate the space
5062 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
5064 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5067 * pic/troff.c (troff_output::line_thickness,
5068 troff_output::set_fill): Do a horizontal motion to compensate for
5069 the width of the \D escape sequence.
5071 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
5073 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5076 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
5079 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5080 Supply empty definition.
5081 (text_entry::simple_print, simple_text_entry::simple_print):
5082 Delete declarations.
5083 (table::add_entry): Represent empty entries by objects of type
5086 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
5088 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5090 * tbl/table.c (left_text_entry::add_tab): New function.
5092 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
5095 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
5097 * troff/env.c (environment::start_field): Give an error message if
5098 there is no next tab.
5100 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
5102 * troff/env.c (hyphenate): Skip initial elements with zero
5105 * macros/tmac.s (par@init): Keep VS in points rather than units.
5107 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
5109 * pic/main.c (main): Implement `-c' option.
5110 * pic/output.h: Declare make_tpic_output().
5111 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5113 (tpic_output): New class.
5114 (tpic_output::tpic_output, tpic_output::set_pen_size,
5115 tpic_output::command, make_tpic_output): New functions.
5117 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
5119 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
5120 if they're not already defined.
5121 * tbl/table.c (init_output): Don't test \n(.g.
5123 * troff/input.c (do_if_request): Delete `g' condition. Recognize
5124 `d', `r' and `c' conditions even in compatibility mode.
5126 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
5128 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5131 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
5133 * troff/env.h (environment::prev_line_interrupted): New member.
5134 (environment::get_prev_line_interrupted): New function.
5135 * troff/env.c (environment::newline): Set prev_line_interrupted.
5136 (environment::environment(const environment *),
5137 environment::environment(symbol)): Initialize
5138 prev_line_interrupted.
5139 * troff/input.c (process_input_stack): Don't give special
5140 treatment to space and newline at the beginning of the line if the
5141 previous line was interrupted.
5143 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
5145 * eqn/eqn.y: Disallow PRIME by itself.
5146 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5148 (def_table): Remove definition of '. Define prime to be `.
5150 * eqn/eqn.y: Split off part of rule `script' into a new rule
5153 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
5155 * macros/tmac.s ({, }): New string aliases.
5157 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
5159 * README-0.7: New file.
5161 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
5163 * macros/tmac.s: New file.
5164 * man/groff_ms.man: New file.
5165 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5166 * Makefile.bd: Similarily.
5167 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5168 definition of TMAC_S.
5169 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5170 * macros/TODO: New file.
5172 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
5174 * troff/env.c (right_justify): New function.
5175 (init_env_requests): Bind this to request "rj".
5176 (center_lines): Set right_justify_lines to 0. If we get a bad
5177 integer, center 1 line.
5178 (environment::environment(symbol), environment::environment(const
5179 environment *)): Initialize right_justify_lines.
5180 (environment::get_right_justify_lines): New function.
5181 (init_env_requests): Bind this to number_register ".rj".
5183 * troff/env.c (environment::choose_breakpoint): Implement
5184 hyphenation_margin and hyphenation_space.
5185 (environment::get_hyphenation_space,
5186 environment::get_hyphenation_margin): New functions.
5187 (init_env_requests): Bind these to .hys and .hym.
5188 (hyphenation_space_request, hyphenation_margin_request): New
5190 (init_env_requests): Bind these to hys and hym.
5191 (environment::environment(symbol), environment::environment(const
5192 environment *)): Initialize hyphenation_margin and
5194 * troff/env.h: Corresponding changes to class environment.
5196 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
5198 * troff/div.c (blank_line): Always do a break.
5200 * eqn/box.c (do_text): Turn off escapes while appending text to
5203 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
5205 * troff/input.c (while_break_request, while_continue_request): New
5207 (init_input_requests): Bind these to "break" and "continue".
5208 (while_depth, while_break_flag): New variables.
5209 (while_request): Update while_depth. Break out of loop if
5210 while_break_flag is set.
5212 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
5214 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5217 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
5219 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
5221 * stringify: New file.
5222 * Makefile (groff.o): Use stringify.
5224 * xditview/tmac.X: Remove definition of \(rn.
5225 * xditview/libXdvi/DviChar.c: Remove radicalex from
5228 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
5230 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5231 (alphabetic_block_entry::alphabetic_block_entry,
5232 alphabetic_block_entry::divert, alphabetic_block_entry::print):
5234 (block_entry::divert): Split off body into ...
5235 (block_entry::do_divert): If the block is alphabetic, subtract 2n
5236 from the line length; also update the span width to dl+2n, and the
5237 alphabetic span width to dl.
5239 * driver/input.c (do_file): While reading argument to D command,
5240 when expanding buffer, multiply szp by sizeof(int) rather than 2
5241 in the argument to memcpy.
5243 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5244 width of alphabetic columns.
5246 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5248 * troff/node.c (lookup_family): Supply second argument to lookup.
5250 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5251 search, return immediately if v is 0.
5253 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5254 (troff_output::start_picture): Set this reg.
5255 (troff_output::end_picture): Remove this reg
5256 * eqn/box.c (box::extra_space): Don't produce `\x's if
5257 EQN_NO_EXTRA_SPACE_REG is defined.
5259 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5260 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5263 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5265 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5268 * troff/div.c (top_level_diversion::top_level_diversion):
5269 Initialize page_number to 0.
5271 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5273 * groff/troff (environment::environment(const environment *)):
5274 Initialize name to e->name, rather than "anonymous".
5276 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5278 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5279 requested_page. Split middle part into ...
5280 (FindPage): New function.
5281 (SetValues): If we don't yet know the last page, and the requested
5282 page is greater than the current page, call FindPage.
5283 Update the font_map_string before doing this.
5285 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5286 Translate \(lh and \(rh into left and right double arrows.
5288 * troff/node.c (class hyphen_inhibitor_node): New class.
5289 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5290 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5291 hyphen_inhibitor_node::type,
5292 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5293 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5294 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5297 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5299 * troff/node.h (dummy_node::get_hyphenation_type,
5300 transparent_dummy_node::get_hyphenation_type): Declare them.
5301 * troff/node.c: (dummy_node::get_hyphenation_type,
5302 transparent_dummy_node::get_hyphenation_type): New functions.
5304 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5306 * xditview/libXdvi/draw.c: If M_PI not defined after including
5307 math.h, then define it.
5309 * xditview/Makefile: Add definition of AR. Pass it to the submake
5311 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5313 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5315 * troff/dictionary.h (object_dictionary::alias): Declare return
5317 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5318 if the old name was defined.
5319 * troff/input.c (alias_macro): Give a warning if the old name was
5321 * troff/reg.c (alias_reg): Likewise.
5323 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5325 * troff/input.c (token::next): Delete implementation of \R.
5327 * macros/Makefile: Strip comments from tmac.e while installing it.
5329 * troff/input.c: New variable `nroff_mode'.
5330 (troff_request, nroff_request): New functions.
5331 (init_input_requests): Bind `troff' and `nroff' to troff_request
5333 (do_if_request): Compute results of t and n conditions from
5336 * text/text.c (split_text): Fix typo in >=.
5338 * eqn/lex.c: Add definition of `==' to def_table.
5340 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5342 * pic/tex.c (tex_output::start_picture): Change the definitions of
5343 \graph and \graphtemp so that they work properly with Plain TeX.
5345 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5346 argument to `ar' is not less than the first.
5348 * pic/pic.y: Allow a comma between elements of the variable list
5349 in the argument to `reset'.
5351 * pic/object.c (arc_object::arc_object): Fix computation of
5354 * eqn/main.c (main): Add exit(0).
5356 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5358 * troff/div.c (begin_page): Test no_space_mode after doing the
5359 break, but still push the page ejector cookie before doing the
5360 break. Also set the next page number after doing the break.
5362 * xditview/xditview.c (NewFile): Don't set the title and icon name
5363 if this is the first file and its name is `-'.
5364 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5365 the X75 and X100 devices.
5366 (main): If a device has the XT_OPTION flag set and there's exactly
5367 one file argument, pass the driver -xrm and -title options to set
5368 the icon name and window title to the name of the file.
5370 * troff/env.c (environment_switch): If there was an argument but
5371 it wasn't a valid number or name, then pop an environment but
5372 don't give an error message on underflow.
5374 * troff/number.c (start_number): Correct spelling in error message.
5376 * troff/input.c (token::delimiter): Don't print an error message
5379 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5380 ParseDrawFunction if dw->display_enable is true.
5382 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5384 * pic/pic.y: Parse text positioning like normal attributes, so as
5385 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5386 positioning attribute.
5388 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5390 * tbl/main.c (process_data): When in state START while reading a
5391 text block, don't change to state MIDDLE if c is a newline.
5393 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5395 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5396 so as to avoid shadowing parameter.
5398 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5400 * tbl/table.c (trim_space): Deleted.
5401 (table::add_entry): Don't call trim_space.
5403 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5405 * VERSION: Change version to 0.6.
5407 * troff/number.c (parse_expr): Make == work.
5409 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5411 * man/grog.man: New file.
5412 * man/Makefile: Add grog.n to MAN1PAGES.
5413 * etc/grog.sh: New file.
5414 * etc/Makefile: Install grog.sh as grog.
5416 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5418 * troff/input.c (token::next): Implement \E.
5420 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5422 * xditview/tmac.X: Change font translations to match tmac.ps.
5424 * troff/input.c (non_empty_name_warning): Don't give a warning if
5425 `\{' terminates the name.
5427 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5429 * ps/devps/symbol.diff: New file.
5430 * ps/devps/FontMakefile: Mention symbol.diff.
5432 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5434 * troff/node.c (font_position): Use get_long_name to read the
5437 * troff/env.c (environment_switch): If we get a number that's < 0
5438 or >= NENVIRONMENTS, treat it like a name.
5439 Change NENVIRONMENTS to 10.
5441 * troff/groff.h: Remove definition of FONTS_MAX.
5442 * troff/node.h (class font_family): Make map a pointer instead of
5443 an array. Add a map_size member. Make it a class. Make nm const
5444 and public. Make invalidate_fontno a friend.
5445 * troff/node.c: Define font_table_size. Make font_info a pointer
5446 rather than an array.
5447 (class troff_output_file): Allocate font_position dynamically. Add
5448 nfont_positions member.
5449 (troff_output_file::set_font): Grow font_position if necessary.
5450 (troff_output_file::~troff_output_file): Delete font_position.
5451 (troff_output_file::troff_output_file): Allocate font_position.
5452 (grow_font_table): New function.
5453 (troff_output_file::really_begin_page,
5454 troff_output_file:really_copy_page): Use nfont_positions rather
5456 (mount_font_no_translate, mount_style): Call grow_font_table if
5458 (font_family::font_family): Allocate map.
5459 (font_family::make_definite): Grow map if necessary. Use
5460 font_table_size instead of FONTS_MAX.
5461 (font_family::~font_family): New function.
5462 (invalidate_fontno): Use font_family::map_size.
5463 (get_fontno, env_space_width, env_half_narrow_space_width,
5464 env_narrow_space_width, symbol_fotno, is_good_fontno,
5465 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5467 (next_available_font_position): Never return 0.
5469 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5471 * ps/tmac.ps: Add font translations for compatibility with dpost.
5473 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5475 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5476 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5477 Move definitions baseline_sep, shift_down, column_sep,
5478 matrix_side_sep into...
5479 * eqn/box.c: Add them to param_table.
5480 * eqn/pbox.h: Add declarations to pbox.h.
5482 * troff/input.c (set_string): Cast value to unsigned char *.
5484 * troff/token.h (process_input_stack): Declare it static before
5485 declaring it a friend.
5487 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5489 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5491 * dvi/devdvi/EX: Regenerate.
5493 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5496 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5498 * eqn/lex.c: In defaults_table, make definition of `dot' call
5499 `dot_def'. Don't explicitly make it roman. Similarily for other
5502 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5504 (for_input::get, for_input::peek): Use this.
5505 (do_for): Add by_is_multiplicative argument.
5506 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5507 Change semantic value of optional_by to be a double plus a flag
5508 saying whethet the by clause is multiplicative.
5510 * eqn/lex.c (get_delimited_text): Remember location of start of
5511 definition. Improve error handling when EOF is encountered.
5513 * lib/font.h: Rename handle_x_command to
5514 handle_unknown_font_command.
5515 * lib/font.c (font::load): Call handle_unknown_font_command for
5516 any unknown command in the font description file. Don't call
5517 handle_x_command. Include the name of the command in the argv.
5518 Improve message for unknown command after kernpairs or charset
5520 * ps/ps.c (ps_font::handle_x_command): Rename to
5521 handle_unknown_font_command. Remove message about `x download'
5522 command. Give error message for wrong number of arguments.
5523 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5524 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5525 handle_unknown_font_command. Give an error message for wrong
5526 number of arguments. Rename design_size to designsize.
5527 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5528 checksum', `designsize' instead of `design_size'.
5530 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5532 * eqn/*.[chy]: Change underaccent to uaccent.
5534 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5535 give it the same precedence as ACCENT.
5536 * eqn/other.c (make_underaccent_box): New function.
5537 * eqn/box.h: Declare it.
5538 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5541 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5543 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5544 (parse_init): Call reset_all.
5545 (define_variable): When defining scale reset only those
5546 pre-defined variables that are scaled.
5547 (defaults_table): Add `scale' as non-scaled value.
5549 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5550 together with the text; allow any number of positioning words;
5551 allow center as a positioning word.
5553 * pic/object.c (output::compute_scale): Get picture maximum height
5554 and width from variables called maxpswid and maxpsht.
5555 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5557 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5559 * pic/object.c (object_spec::make_text): Multiply textht by number
5562 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5564 (do_sprintf): New function.
5565 (pic.gperf): Add sprintf token.
5566 (text, sprintf): New rules.
5568 * pic/pic.y: `rand()' with no arguments returns a random number
5571 * pic/pic.y: Allow a bare expression to be an attribute: change
5572 precedences to support this. Change optional_ordinal rule to
5573 optional_ordinal_last to avoid reduce/reduce conflict.
5574 * pic/object.c (object_spec::object_spec): Initialize direction.
5576 * pic/pic.y: Implement ^ operator meaning exponentiation.
5578 * troff/node.h: Add default argument to mount_font.
5579 * troff/node.c (font_position): Read an optional third argument
5580 giving the external_name.
5581 (mount_font): Add optional argument giving the external_name.
5582 (mount_font_not_translate): Have additional argument giving
5583 external name. Use this name to load the font. Pass both names
5584 to font_info::font_info.
5585 (font_info::font_info): Have additional argument giving
5587 (class tfont): New member external_name.
5588 (font_info::get_tfont): Use external name to construct tfont_spec.
5590 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5592 * eqn/lex.c (init_table): Add argument giving device. Define
5593 name of device to be "1".
5594 (do_ifdef): Counts as true if the argument has been defined with
5596 * eqn/main.c (main): Call init_table with device argument. Make
5597 device local to main.
5598 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5601 * pic/lex.c (get_delimited): Allow text to be delimited by
5602 matching {}s. Don't recognize ending delimiter within a string.
5604 * troff/input.c (get_delim_name): New function.
5605 (token::next): Implement \C.
5607 * lib/font.c (font::load): Grok ---. Add an alias for each
5608 character based on its code.
5609 (font::get_code_width): Deleted.
5610 * lib/font.h (class font): Declare font::number_to_index().
5611 Remove declaration of font::get_code_width.
5612 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5613 to indices of named characters.
5614 (font::number_to_index): New function.
5615 * troff/input.c (font::number_to_index): New function.
5616 (get_charinfo_by_number, charinfo::get_number,
5617 charinfo::set_number): New functions.
5618 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5619 (token::process, token::description, token::get_char,
5620 token::add_to_node_list, token::operator==): Handle
5621 TOKEN_NUMBERED_CHAR.
5622 * troff/charinfo.h: Declare get_charinfo_by_number,
5623 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5625 (charinfo::numbered): New function.
5626 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5627 * troff/env.h (class environment): Remove declaration of ...
5628 * troff/env.c (environment::make_numbered_char_node): Deleted.
5629 * troff/node.c (make_numbered_node): Deleted.
5630 (class numbered_glyph_node): Remove.
5631 (troff_output_file::put_char_width, troff_output_file::put_char):
5632 Handle numbered chars.
5633 (troff_output_file::numbered_char): Removed.
5634 (tfont::get_code_width): Removed.
5635 (make_glyph_node): Don't search special fonts for numbered
5637 * troff/node.h: Remove declaration of make_numbered_node.
5638 * driver/input.c (do_file): Handle N command.
5639 * driver/printer.h: Add declaration of ...
5640 * driver/printer.c (printer::set_numbered_char): New function.
5641 * dvi/tfmtodit.c (main): Generate unnamed entries.
5642 * ps/devps/afmtodit: Likewise.
5643 * xditview/xtotroff.c (MapFont): Likewise.
5644 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5646 * tbl/main.c (process_format): If multiple widths are specified
5647 for a column but all the widths are the same, don't give an error
5650 * tbl/table.c (table::do_row): If the current row is all lines and
5651 the stuff doesn't contains a line, mark the top of the row after
5652 printing stuff before the row. If the current row is not all
5653 lines and the stuff doesn't contain a line, don't unnecessarily
5654 mark the top of the row before printing the stuff.
5656 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5658 * troff/groff.h: Remove MAX_PATH.
5659 * troff/input.c (open_file): Dynamically allocate space for the
5661 (open_mac_file, process_macro_file): Corresponding changes.
5663 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5665 * troff/node.h (class output_file): Make copy_file pure. Add
5666 vspace method ifdef COLUMN. Add is_printing method.
5667 * troff/node.c: Add class printing_reg. Add class
5668 real_output_file. Derive other output_file classes from
5669 real_output_file; in these classes rename begin_page to
5670 really_begin_page, print_line to really_print_line, copy_file to
5671 really_copy_file, transparent_char to really_transparent_char.
5672 Move output_file::flush to real_output_file. Add printing member
5673 to class output_file.
5674 * troff/div.h: Remove printing member from top_level_diversion.
5675 Add vspace member function to class diversion ifdef COLUMN. Add
5676 some declarations ifdef COLUMN.
5677 * troff/div.c (top_level_diversion::copy_file,
5678 top_level_diversion::transparent_output,
5679 top_level_diversion::output): Don't test printing member before
5681 * troff/input.c: Handle initial variable_space_request ifdef
5683 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5686 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5688 * troff/div.c (diversion::need): Make any space forced. If we
5689 sprung a trap, set truncated_space to minus the distance to the
5690 trap and set needed_space to the amount that was needed.
5691 (top_level_diversion::space): A forced space turns no_space_mode
5693 (class constant_vunits_reg): New class.
5694 (init_div_requests): Implement number registers .trunc and .ne
5695 using constant_vunits_reg.
5696 (class truncated_space_reg): Deleted.
5698 * troff/div.h: Don't have a no_space_mode member in diversion.
5699 Instead have it in top_level_diversion.
5700 * troff/div.c (diversion::diversion): Don't initialize
5702 (top_level_diversion::top_level_diversion): Initialize
5704 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5705 (macro_diversion::output): Don't clear no_space_mode.
5707 * troff/input.c (diverted_space_node::reread): Don't call
5708 environment::do_break. In fill mode, act like a blank line.
5709 (diverted_copy_file_node::reread): Don't call
5710 environment::do_break.
5712 * troff/div.c (blank_line): New function.
5713 * troff/div.h: Declare it.
5714 * troff/input.c (process_input_stack): Call it.
5716 * troff/div.c (truncated_space_reg::get_string): New function.
5717 (init_div_requests): Bind to .trunc.
5718 (space_request, top_level_diversion::space,
5719 top_level_diversion::output, macro_diversion::space,
5720 macro_diversion::output): Update truncated_space.
5721 (macro_diversion::output): Redo calculations when trap sprung.
5722 (macro_diversion::output, macro_diversion::space): No need for
5725 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5726 after truncating post line spacing.
5728 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5730 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5731 defined as a procedure rather than as an operator.
5733 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5735 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5737 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5739 * troff/div.c (top_level_diversion::output): Merge
5740 output_file::print_line and output_file::end_of_line member
5742 * troff/div.h (class output_file):
5743 * troff/node.c (troff_output_file::print_line,
5744 troff_output_file::end_of_line, output_file::end_of_line,
5745 ascii_output_file::print_line, suppress_output_file::print_line):
5746 Corresponding changes.
5748 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5750 * troff/input.c (token::next): Don't give a warning for `\.'.
5752 * troff/env.c (environment::get_center_lines): New function.
5753 (init_env_requests): Bind number register .ce to it.
5754 * troff/env.h: Declare it.
5755 * tbl/table.c (table::init_output): Define reset macro to restore
5756 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5758 (table::print): If center option not given, then imply center
5759 option if SAVED_CENTER_REG > 0.
5761 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5763 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5764 Troff.ps from DOWNLOAD.
5766 * troff/Makefile: Change comment in DEFINES to avoid confusing
5769 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5770 code. Don't try to catch errors with stopped.
5771 (check_line_lengths): New function.
5772 * ps/devps/prologue (EXEC): Deleted.
5773 (EBEGIN, EEND): New procedures.
5775 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5777 * troff/input.c: Include request.h before node.h.
5778 * troff/node.c: Likewise.
5779 * troff/env.c: Likewise.
5780 * troff/div.c: Likewise.
5781 * troff/node.h (class special_node): Store argument as a macro
5782 rather than a char *.
5783 * troff/node.c (special_node::special_node, special_node::copy):
5785 (special_node::~special_node): Deleted.
5786 (special_node::tprint): Deleted.
5787 (special_node::tprint_start, special_node::tprint_end,
5788 special_node::tprint_char): New functions.
5789 (troff_output_file::special): Deleted.
5790 (troff_output_file::start_special, troff_output_file::end_special,
5791 troff_output_file::special_char): New functions.
5792 * troff/input.c (special_node::tprint): New function.
5793 (do_special): Use macro not char *.
5794 (do_transparent_macro): Deleted.
5795 (token::next): Don't call do_transparent_macro.
5797 * troff/input.c (token::next): Add 'Y' case.
5798 (do_transparent_macro): New function.
5799 * troff/node.c (troff_output_file::special): Handle newlines with
5800 argument using new continuation convention.
5801 * driver/input.c (get_string): Cope with continuation convention.
5802 (do_file): Don't call skip_line after calling get_string(1).
5803 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5804 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5806 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5809 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5811 * troff/input.c (asciify): By default, illegal input characters
5812 should return empty string.
5814 * troff/input.c (copy_file): Handle first page transition like title.
5815 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5817 * troff/input.c (token::next): Improve error message for EOF after
5819 (input_char_description): New function.
5820 (get_char_for_escape_name): Use input_char_description.
5821 (token::next): Warn about unrecognized escape sequences.
5822 (warning_table): Add WARN_ESCAPE.
5823 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5826 * troff/token.h: Remove declaration of process_input_stack.
5828 * troff/input.c: Remove declaration of init_hyphen_requests.
5829 * troff/request.h: Correct spelling in declaration of same.
5831 * troff/input.c (token::next): Check whether escape_char is 0.
5833 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5835 * groff.c (main, usage, help): Implement -P and -L options.
5836 * groff.sh: Likewise.
5838 * troff/input.c (token::next): Use some gotos to avoid code
5841 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5842 Avoid calling symbol::symbol if name empty.
5844 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5846 * troff/input.c (init_input_requests): Make \n(.x return the major
5847 version number and \n(.y return the minor version number.
5848 * troff/Makefile: Construct file majorminor.c defining
5849 major_version and minor_version automatically from ../VERSION.
5851 * troff/node.c (class glyph_node): Make operator new and operator
5853 (class ligature_node): Similarily.
5855 * troff/input.c (operator==(const macro &, const macro &)): New
5857 (non_interpreted_node::same): Use this.
5858 (string_iterator::string_iterator): Make macro& argument const.
5860 * troff/input.c (input_iterator::get): New function. Don't make
5861 asciify_macro or class non_interpreted_node friends of class
5863 (non_interpreted_node::interpret): Use input_iterator::get.
5864 (asciify_macro): Likewise.
5866 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5867 ~non_interpreted_node): Deleted.
5868 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5871 * troff/symbol.h: Make all symbol member functions const.
5873 * lib/strtol.c: New file.
5874 * lib/Makefile: Add strtol.c.
5875 * Makefile: Define STRTOL as strtol.o to include strtol in
5878 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5880 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5882 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5884 * troff/input.c (do_special): Use input_level.
5886 * troff/token.h (TOKEN_BACKSPACE): New token.
5887 (token::backspace): New function.
5888 * troff/input.c (token::description, token::next, token::process):
5889 Grok TOKEN_BACKSPACE.
5890 (do_special): Turn TOKEN_BACKSPACE back into \b.
5892 * troff/token.h (token::leader): New function.
5893 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5895 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5897 * troff/input.c (do_special): Use token::description in error
5900 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5902 * troff/input.c (decode_args): Combine quoted and
5903 quote_input_level variables. Make it a for (;;) loop.
5905 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5907 * troff/input.c (read_long_escape_name): The test for whether to
5908 expand buffer was off by 1.
5909 (read_string): Similarily.
5911 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5913 * troff/input.c: Use `const int' rather than `static const int'.
5915 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5916 (macro_diversion::copy_file): New function.
5917 * troff/node.h: New class diverted_copy_file_node.
5918 * troff/node.c: Implement it.
5919 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5920 first page transition by pushing a diverted_copy_file_node.
5921 * troff/input.c (token::next, process_input_stack): Don't handle
5924 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5926 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5927 whether space widths need adjusting.
5929 * troff/charinfo.h: Generalize translated_to_space to
5930 special_translation so as to allow translation to \&.
5931 * troff/input.c (translate): Allow translation to \&.
5932 (charinfo::*): Corresponding changes.
5933 * troff/node.c (make_node, node::add_char): Corresponding changes.
5934 * troff/node.h (dummy_node::dummy_node): Allow optional first
5937 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5938 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5940 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5941 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5942 (token::process): Grok that.
5943 * troff/input.c (copy_file): Handle first page transition like
5944 title by pushing a COPY_FILE_REQUEST cookie.
5945 (token::next, process_input_stack): Grok that.
5946 * troff/node.h (output_file::copy_file): Add x and y arguments.
5948 * troff/div.c (top_level_diversion::copy_file): Supply them.
5949 * troff/node.c (troff_output_file::copy_file): Add x and y
5950 arguments; moveto specified position. Invalidate font_position
5951 array after copying file.
5952 (output_file::copy_file): New function.
5953 (suppressed_output_file::copy_file, ascii_output::copy_file):
5955 * troff/input.c (transparent_file): New function.
5956 (init_input_requests): Bind to "trf".
5957 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5958 (process_input_stack): Likewise.
5960 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5962 * troff/node.c (init_node_requests): New number registers .kern
5963 pointing to global_kern_mode, and .lg pointing to
5964 global_ligature_mode.
5966 * troff/node.c (ligature): Don't change it if we get a bad
5969 * troff/input.c (do_define_string): Don't strip tabs.
5971 * troff/input.c (asciify_macro): Make the string_iterator auto.
5973 * troff/node.c (init_font_requests): Rename to...
5974 (init_node_requests):
5975 * troff/node.h: Change declaration.
5976 * troff/input.c (main): Change call.
5978 * troff/input.c (node::reread, diverted_space_node::reread): New
5980 (process_input_stack): Call reread rather than
5981 get_diverted_space_node.
5982 * troff/node.c (node::get_diverted_space_node,
5983 diverted_space_node::get_diverted_space_node): Removed.
5984 * troff/node.h: Declare reread methods instead of
5985 get_diverted_space_node methods. Make `n' member private.
5986 * troff/input.c: (token::diverted_space): Removed.
5987 * troff/token.h: Removed declaration.
5990 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5992 * eqn/script.c (script_box::compute_metrics): Don't let
5993 SUP_RAISE_FORMAT become negative.
5995 * tbl/table.c (table::do_row): Entries that don't end in the
5996 this row shouldn't make the row non-blank.
5998 * tbl/table.c (table::make_columns_equal): Only set the width of
5999 columns which are marked as equal.
6001 * tbl/main.c (process_data): Before issuing excess data error,
6002 if last character was a newline unget it; then get it again after
6003 the error. Also include the contents of the entry in the message.
6005 * groff.c: New file.
6006 * Makefile: Build groff from groff.c. Make it possible to use
6007 either groff.sh or groff.c as groff.
6008 * Makefile.bd: Similarily.
6010 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
6012 * groff.sh: Don't delay expansion of $@ in assignment to files.
6013 Remove occurrences of \".
6015 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
6017 * all Makefiles: Simplify and rearrange.
6019 * Makefile: Handle fmod like malloc.
6020 * lib/Makefile: Similarily.
6021 * lib/fmod.c: Remove #ifdef NEED_FMOD.
6023 * Makefile: Rename OPTIMISE to OPTIMIZE.
6025 * groff.sh: Remove assignment to PATH.
6026 * Makefile: Remove SHPATH variable.
6027 * Makefile.bd: Similarily.
6029 * groff.sh: Add -V option to print the pipeline instead of
6032 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
6034 * lib/font.c: Split off file searching into ...
6035 * lib/fontfile.c: New file.
6037 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6039 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
6041 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6042 Also change misleading comment.
6043 (table::do_vspan): Change similarily misleading comment.
6044 * tbl/main.c (process_data): A format row with an explicit `s'
6045 uses up a data line, even if all the other columns are `_' or `='.
6047 * troff/input.c (token::description): Fix description of
6048 TOKEN_DUMMY and TOKEN_EMPTY.
6050 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
6052 * groff.sh: Fix description of -Z in help message.
6054 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
6056 * pic/object.c (object_spec::make_object): Allow negative and zero
6058 * pic/pic.y: Give linethick default value of -1.0.
6059 * pic/troff.c (troff_output::troff_output): Initialize
6060 last_line_thickness to BAD_THICKNESS.
6061 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6062 (troff_output::line_thickness): Canonicalize negative thicknesses
6063 to RELATIVE_THICKNESS.
6064 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6065 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6067 (tex_output::start_picture): Set pen_size to -2.0.
6069 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6070 0, then use 0 linewidth.
6071 (ps_printer::ps_printer): Initialize line_thickness to -1.
6073 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6075 * ps/devps/symbolchars: Remove `or'.
6076 * ps/tmac.ps: Implement \(or with .char.
6078 * ps/devps/symbolchars: Move most characters into textmap.
6079 * ps/devps/textmap: Add names for troff bracket characters. Remove
6082 * ps/devps/TSymbol.ps: Removed.
6083 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6084 * ps/tmac.ps: Do with .char what TSymbol did.
6085 * ps/devps/download: Remove TSymbol.
6087 * ps/devps/T: Removed.
6088 * ps/devps/Troff.ps: Removed.
6089 * ps/devps/Troff.afm: Removed.
6090 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6091 * ps/devps/download: Remove Troff.
6092 * ps/devps/FontMakefile: Remove T target.
6093 * ps/devps/DESC-A4: Remove T from font list.
6094 * ps/devps/DESC-letter: Likewise.
6096 * troff/input.c (macro_to_node): Rename to ...
6097 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
6098 character's definition while processing it.
6099 * troff/node.c (node::add_char, make_node): Change calls to
6100 macro_to_node accordingly.
6102 * troff/input.c (token::next): Translate \_ to \(ul.
6104 * tty/devascii/R.proto: Add `|'.
6105 * tty/devlatin1/R.proto: Likewise.
6107 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
6109 * man: Put the version number in all the man pages.
6111 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
6113 * Makefile.bd: New file.
6114 * README.bd: New file.
6116 * VERSION: New file.
6117 * lib/version.c: Removed.
6118 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6121 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6122 environment variable.
6124 * all Makefiles: Split install target into install.bin for
6125 binaries, and install.nobin for everything else.
6126 * Makefile: Add bindist target.
6128 * man/afmtodit.man: New file.
6129 * man/Makefile: Add afmtodit.n to MAN1PAGES.
6130 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6132 * ps/Makefile: Pass BINDIR to make install in devps.
6134 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6135 the space character.
6137 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6139 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
6141 * ps/ps.c: Redo font downloading.
6142 * ps/devps/download: New file.
6143 * ps/devps/Makefile: Add download to DEVICEFILES.
6144 * ps/devps/afmtodit: Remove -d option.
6145 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6146 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6147 * ps/devps/zapfdr.ps: Likewise.
6148 * ps/devps/TSymbol.ps: Likewise.
6150 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
6152 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6154 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
6156 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6157 then strip the first line if it starts with %.
6158 * Makefile: Add a comment about this.
6160 * man/tfmtodit.man: New file.
6161 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6162 * dvi/Makefile: Install tfmtodit in BINDIR.
6164 * dvi/tfmtodit.c (usage): Mention -v option.
6166 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
6168 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6169 * troff/node.c (troff_output_file::transparent_char): Don't call
6172 * eqn: Add check_tabs method to most box classes.
6173 * eqn/box.c (box::top_level): Call check_tabs.
6175 * eqn/script.c (script_box::output): Use \Z.
6176 * eqn/limit.c (limit_box::output): Use \Z.
6178 * eqn/box.c (box::top_level): Use itoa.
6180 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
6182 * dvi/tmac.dvi: Add font translations for CR, C, TT.
6183 * dvi/devdvi/Makefile: Don't make links to CW.
6185 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6187 * xditview/tmac.X: Likewise.
6189 * troff/node.c: Add font translation feature.
6190 (get_font_translation): New function.
6191 (symbol_fontno): Translate the font name.
6192 (mount_font_no_translate): Rename to mount_font to this.
6193 (mount_font): New function.
6194 (font_family::make_definite): Call mount_font_no_translate instead
6196 (mount_style): Translate the font name.
6197 (font_translate): New function.
6198 (init_font_requests): Bind "ftr" to font_translate.
6200 * ps/devps/prologue (SN): New procedure that rounds a position to
6201 the nearest (pixel + (.25,.25)).
6202 (DL): Use SN to round endpoints.
6204 * lib/version.c: Changed version to 0.5.
6206 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
6208 * Makefile: Move definition of PAGE to the very beginning, so that
6209 people are less likely to miss it.
6211 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
6213 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6215 * troff/env.c (environment::choose_breakpoint): Make `can't find
6216 breakpoint' error a warning of type WARN_BREAK. Change message to
6218 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6220 * troff/input.c: Add WARN_BREAK to warning_table. Include
6221 WARN_BREAK in DEFAULT_WARNING_MASK.
6223 * tty/tmac.tty: Add definition of \(+-.
6225 * groff.sh: Remove `--' option to set command.
6227 * dvi/devdvi/texsy.map: Remove duplicate md entry.
6229 * ps/devps/eqnchar: Better definition of cdot using md.
6230 * dvi/devdvi/eqnchar: Likewise.
6231 * xditview/devX100/eqnchar: Likewise.
6232 * xditview/devX75/eqnchar: Likewise.
6233 * eqn/lex.c: Add definition of cdot.
6235 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
6237 * troff/input.c (get_optional_char): New function.
6238 * troff/input.c (set_page_character): Use get_optional_char(),
6239 rather than has_arg() and tok.get_char(1).
6240 * troff/env.c (tab_character, leader_character, hyphen_char,
6241 field_characters): Likewise.
6242 (margin_character): Likewise. Also always delete the
6243 margin_character_node.
6245 * troff/input.c (token::get_char): Use token::description.
6247 * troff/input.c (has_arg): Don't skip over tab and \}.
6248 * troff/number.c (start_number): Give a warning if the number
6249 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6251 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6253 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6255 (get_name, get_long_name): Use these. Rename `warn' argument to
6258 * troff/node.c (get_fontno): Test that the symbol is not null.
6260 * troff/input.c (token::description): New function.
6261 * troff/number.c (parse_term): Use token::description in `numeric
6262 expression expected' message.
6263 * troff/groff.h: Add WARN_MISSING.
6264 * troff/number.c (start_number): New function.
6265 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6266 get_incr_number): Use start_number().
6267 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6269 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6270 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6272 * troff/input.c (token::get_char): Use WARN_MISSING.
6273 * troff/input.c (token::delimiter): Use token::description.
6274 * troff/env.c (environment_switch): Back out Aug 3 change.
6275 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6277 * troff/token.h (token::tab): New function.
6278 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6279 * troff/reg.c (alter_format): Likewise.
6280 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6282 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6284 * troff (most files): Redo warnings. Divide warnings into various
6285 categories; warning() has an additional first argument indicating
6286 the category it falls into.
6287 * troff/input.c (main): -w now takes an argument. New option -W.
6288 (enable_warning, disable_warning): New functions.
6290 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6291 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6293 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6295 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6296 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6297 * xditview/devX75/eqnchar: Likewise.
6298 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6300 * eqn/other.c: When bar or over applies to a single character
6301 don't produce an overline_box or an underline_box. Instead produce
6302 an accent_box or an underaccent_box, with the accent a line
6303 whose width is accent_width. New classes underaccent_box,
6304 overline_char_box and underline_char_box.
6305 * eqn/box.h: Move overline_box, underline_box, accent_box class
6306 declarations into eqn/other.c. Add declarations of
6307 make_underline_box, make_overline_box, make_accent_box.
6308 * eqn/eqn.y: Call make_overline_box, make_underline_box
6309 make_accent_box instead of constructors.
6310 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6312 * eqn/other.c: Add accent_box::~accent_box.
6313 * eqn/box.h: Declare it.
6315 * groff.sh: With -Tps, use eqn -D.
6317 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6319 (underline_box::output): Similarily.
6320 (accent_box::output): Use \Z.
6322 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6325 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6327 * troff/div.c (top_level_diversion::transparent_output(unsigned
6328 char)): Use asciify.
6329 * troff/input.c (asciify): Don't make it static.
6330 * troff/token.h (asciify): Declare it.
6332 * troff/input.c (get_name, get_long_name, token::get_char,
6333 token::delimiter): Add an extra default argument which says
6334 whether a warning should be printed.
6335 * troff: Pass a non-zero argument to one of these rather than
6336 printing a warning directly.
6338 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6340 * troff: Consistently use symbol::is_null.
6342 * troff/dictionary.h: Move some inline functions into
6345 * troff/request.h: Move inline functions into input.c.
6346 (request_or_macro::invoke): Make it pure.
6348 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6349 * troff/input.c (init_input_requests): Use class constant_int_reg.
6350 (class compatible_reg): Deleted.
6351 * troff/div.c (init_div_requests): Use class constant_int_reg.
6352 (class last_post_line_extra_space_reg): Deleted.
6354 * troff/env.c (tab_character): Don't change the tab character if
6355 we get an invalid argument.
6356 (hyphen_char): Similarily.
6358 * troff/reg.c (alter_format): Check that nm is not null.
6360 * Makefile, groff.sh: Make it possible to customize the commands
6361 used for printing PostScript and dvi files. Also make it possible
6362 to customize the path used by groff.sh.
6364 * eqn/eqn.y: Make `left' right associative.
6366 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6368 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6371 * pic/pic.h: Removed definition of INT_MAX.
6373 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6376 * troff/input.c (token::next): Handle \R like \n.
6378 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6380 * ps/tmac.pc (PSPIC): Simplify.
6382 * troff/env.c (tab_stops::to_string):
6383 * pic/pic.y (object_type_name):
6384 * pic/troff.c (simple_output::line):
6385 * pic/tex.c (tex_output::spline):
6386 * pic/object.c (object_spec::make_object):
6387 * tbl/main.c (process_data): Add cases to switch statements to
6388 avoid cfront warnings. (Some of these are spurious, since the
6389 switch already has a default case.)
6391 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6392 `ps-'. Don't test systat; instead check number of arguments to
6395 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6397 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6399 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6400 Unlink the file as soon as we have opened it, so that we don't
6401 have to bother with signal handlers.
6403 (fatal_error_exit): Deleted.
6404 (main): Don't call signal.
6406 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6408 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6410 * pic/pic.y: If there is a label, or an nth construction before
6411 the first `.' in the argument to `with', ignore it and generate a
6413 * pic/lex.c (lex_warning): New function.
6415 * tbl/table.c (table::init_output): In section keep and release
6416 macro, use 0 indent when diverting and the correct indent when
6419 * troff/input.c (interpolate_number_format): Do not interpolate
6420 anything if the number register is not defined.
6422 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6424 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6426 * ps/devps/prologue (PICTURE): Set components of graphics state to
6427 their default values.
6429 * ps/devps/text.enc: Add trademark
6430 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6431 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6432 * ps/devps/symbolchars: Add names for summation and product.
6434 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6435 suchthat. Add pp. Add upper-case letters.
6437 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6438 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6441 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6442 rA (right angle bracket) to ra. Introduce names for double-headed
6443 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6444 * ps/devps/textmap: Likewise for ps device.
6445 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6446 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6447 * tty/devascii/R.proto: Likewise.
6448 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6450 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6452 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6454 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6457 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6459 * troff/div.c (when_request): Use symbol::is_null rather than
6460 has_arg to determine whether we have an argument.
6461 (change_trap): Remove the trap if we get an invalid number. Give
6462 an error if we don't get at least the macro name.
6463 (diversion_trap): Remove trap if we get an invalid name or number.
6465 * troff/env.c (environment_switch): Pop if we get an invalid
6466 symbol or numeric expression.
6468 * troff/input.c (do_define_macro): If EOF is encoutered while
6469 defining the macro, do tok.next() before returning.
6471 * troff/token.h (has_arg): Move definition from here, to ...
6472 * troff/input.c (has_arg): ... here
6474 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6475 * troff/input.c (shift): Likewise.
6477 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6480 * pic/troff.c (troff_output::start_picture): Comment out calls to
6483 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6484 interpret_lf_args succeeds.
6486 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6487 \\. This avoids problems with \$N.
6489 * groff.sh: Pass -C to preprocessors.
6491 * lib/lf.c (interpret_lf_args): Be more flexible.
6493 * tbl/main.c (main): Add -C option.
6494 (table_input::get): Do not recognize TE if followed by character
6495 other than a space or newline unless -C option given.
6496 (process_input_file): Likewise for lf, TS.
6497 (process_data): Likewise for lf in text blocks.
6499 * eqn/main.c (main): Add -C option.
6500 (do_file): Don't recognize EQ, EN or lf if followed by character
6501 other than space or newline unless -C option given.
6502 * eqn/lex.c (file_input::read_line): Similarily.
6503 * eqn/eqn.h: Declare compatible_flag.
6505 * etc/soelim.c (main): Add -C option.
6506 (interpret_lf_args): Use version in libgroff.
6509 * pic/main.c (main): Add -C option, which sets compatible_flag.
6510 (top_input::get), (top_input::peek): If -C option not given,
6511 do not recognize .PS/.PE/.PF/.lf if followed by a character
6512 other than space or newline.
6513 * pic/lex.c (file_input::read_line): Similarily.
6514 * pic/pic.h: Add declaration of compatible_flag.
6516 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6518 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6520 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6521 derived from node. New class space_char_hmotion_node.
6522 * troff/input.c (asciify_macro): New function.
6523 * troff/input.c (init_input_requests): New request `asciify' bound
6525 * macros/mm.diff: New file.
6526 * Makefile: In install.mm target use `patch' to apply
6529 * troff/input.c (macro::print_size): Just print the size in bytes.
6531 * troff/div.c (return_request): Correct the argument
6534 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6536 * troff/node.h (class composite_node): Add sz member.
6537 * troff/node.c (composite_node::size): Return sz.
6538 * troff/input.c (macro_to_node): Use the initial size in the
6539 environment as the size of the composite_node.
6541 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6544 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6546 * troff/div.c (change_trap): If we get a bad number expression,
6549 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6551 * lib/matherr.c (matherr): Define this only if math.h defines
6554 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6556 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6557 no diversion trap return vunits(INT_MAX - vresolution).
6559 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6561 * troff/input.c (do_zero_width): New implementation that doesn't
6562 use a temporary environment. Use instead:
6563 (token::add_to_node_list): New function.
6564 * troff/env.c (environment::get_prev_char_height),
6565 (environment::get_prev_char_height),
6566 (environment::get_prev_char_skew): New functions.
6567 (environment::get_prev_char): New function.
6568 (environment::get_prev_char_width): Change to use get_prev_char.
6569 (init_env_request): Implement new registers .cht, .cdp, .csk.
6570 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6571 \Z being processed in a separate environment.
6573 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6575 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6577 * tbl/table.c (table::init_output): In the section release macro,
6578 give a warning message if the section won't fit on one page.
6580 * tbl/table.c (table::do_top): Emit table keep only if table is
6582 (table::do_bottom): Likewise for table release.
6583 (table::table), (table::add_vertical_rule): Remove reference to
6585 * tbl/table.h: Remove keep member.
6587 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6588 SECTION_RELEASE_MACRO, if there's not enough space before the next
6589 trap to output the diversion, call T# ourselves, set
6590 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6591 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6592 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6593 vertical position and return to it before turning traps on again.
6595 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6597 * troff/node.c, troff/node.h: In classes derived from node,
6598 replace prev_char_width method by last_char_node method.
6599 * troff/env.c (environment::get_prev_char_width): Use
6600 node::last_char_node rather than node::get_prev_char_width.
6602 * Makefile: Added comment about -fno-inline on 68030-based
6605 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6606 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6607 expressions using sizeof to int.
6608 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6610 * macros/tmac.e (TS): Don't move @f back past the current
6613 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6615 * ps/ps.c (main): Buffer stderr.
6616 * dvi/dvi.c (main): Likewise.
6617 * tty/tty.c (main): Likewise.
6619 * ps/ps.c (ps_printer::do_import): Improve error handling.
6621 * troff/input.c (abort_request): Use asciify.
6623 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6624 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6625 type of first argument int rather than char. This works around a
6626 bug on the 68030 based Apollo using g++ 1.37.1.
6628 * tbl/table.h (class table): Add `keep' member.
6629 * tbl/table.c (table::table): Initialize `keep'.
6630 (table::add_vertical_rule): Set `keep' to 1.
6631 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6632 (table::do_bottom): Likewise for table release macro.
6633 (table::do_row): Emit section keep macro even if the row is 0.
6635 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6637 * macros/tmac.e (@C): Preserve the font family across the change
6640 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6642 * lib/font.c: Initialize font::hor and font::vert to 1.
6643 (font::load_desc): Check the values of font::hor and font::vert.
6645 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6646 be included in a C compilation.
6647 (iftoa): Use INT_DIGITS. Include lib.h.
6649 (as_string): Likewise.
6650 * tbl/table.c: Removed definition of INT_DIGITS.
6651 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6652 * troff/input.c (input_input_requests): Likewise.
6653 * ps/ps.c (make_encoding_name): Likewise.
6654 (ps_printer::set_style): Likewise.
6655 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6657 * tty/devascii/R.proto: Map fm onto '.
6658 * tty/devlatin1/R.proto: Likewise.
6660 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6662 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6663 argument to \w is at a different input level.
6665 * tbl/table.c (table::init_output): Define a new macro
6666 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6667 transparently outputs itself.
6668 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6670 (table::do_row): Likewise.
6672 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6673 TRANSPARENT_STRING_NAME.
6675 * tbl/table.c (table::init_output): In the table release macro
6676 print an error message and don't produce any output if after
6677 issuing the need request the table still will not fit. Also
6678 remove the diversion after bringing it back.
6680 * tbl/table.c (table::init_output): Define a new macro
6681 REPEATED_MARK_MACRO, like mk but if in a diversion also
6682 transparently outputs itself.
6683 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6684 is necessary because .TH might not call .T#.
6685 (table::do_top): Likewise TOP_REG.
6686 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6687 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6688 table header might contain just the two top rules.
6690 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6692 * troff/div.c: Implement new request `ptr' to print all traps.
6694 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6695 init_string_env_reg.
6696 * troff/env.c (class tab_reg): Deleted.
6698 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6700 * troff/div.c: New number register .pn returns the number of the
6701 next page as set by the pn request.
6703 * macros/tmac.an: Redid headers and footers. Number each manual
6704 entry starting from 1 unless \nC is > 0, like Sun. Added an
6705 optional 5th argument to .TH which specifies the manual name and
6706 appears in the center of the header. Understand the X, P and D
6709 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6711 * troff/env.c (init_env_requests): New number register `.lt' to
6712 return the title length.
6714 * troff/node.h (class transparent_dummy_node): New class.
6715 * troff/node.c (class transparent_dummy_node): Provide member
6717 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6720 * troff/input.c (token::next): New escape sequence \).
6721 * troff/input.c (get_copy): Recognize \) in copy mode.
6723 * troff/input.c (input_stack::clear): New function.
6724 * troff/input.c (exit_request): Use input_stack::clear.
6726 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6727 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6729 * troff/env.c: Move set_page_character to input.c. Move
6730 page_character to input.c also.
6731 * troff/env.c (title): Split off the reading of the parts of the
6732 title into read_title_parts.
6733 * troff/input.c (read_title_parts): New function. Check the
6734 input_level when testing whether a token matches the delimiter.
6736 * troff/input.c (exit_request): New function.
6737 * troff/input.c (init_input_requests): Bind ex request to
6738 exit_request rather than exit_groff.
6740 * troff/input.c (exit_groff): Call tok.next() before
6741 process_input_stack().
6743 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6745 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6746 * troff/env.h: ditto.
6747 * troff/input.c: ditto.
6749 * troff/env.c (environment::is_empty): Test pending_lines.
6751 * troff/env.c (environment::have_pending_lines): Removed.
6753 * troff/input.c: Add request to flush pending lines from the
6756 * troff/env.c, troff/env.h: Add automatic widow control feature.
6758 * troff/input.c (exit_groff): Do process_input_stack() after
6759 do_break() but before setting exit_flag to 2.
6761 * troff/input.c: Remove FLUSH_PENDING_LINES and
6762 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6763 environment after END_TRAP token seen, but only if there aren't
6764 any more traps still unfinished.
6765 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6767 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6769 * troff/env.c: Rename the `retain_size' member of class
6770 pending_output_line to `no_fill'.
6772 * troff/env.c (title): When the line is output, make the
6773 retain_size argument !fill.
6775 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6776 * troff/node.c (space_node::get_breakpoints),
6777 (dbreak_node::get_breakpoints): Fill this in.
6778 * troff/env.c: Allow specification of maximum number of
6779 consecutive hyphenated lines.
6781 * troff/env.c (environment::is_empty): Add test for !current_tab.
6783 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6785 * troff/env.c (environment::hyphenate_line): Don't completely give
6786 up if the word is not to be hyphenated; continue so that breaks
6787 can be made at break_char_node's.
6789 * lib/lib.h: Only define INT_MAX if it's not already defined;
6790 undef INT_MIN if it's already defined.
6792 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6794 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6795 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6798 * macros/tmac.an (an-header): Set no-space mode.
6800 * macros/tmac.an (TH): Start a new page if necessary.
6802 * Started using ChangeLog at version 0.4.
6805 version-control: never