1 2000-03-09 Werner LEMBERG <wl@gnu.org>
3 * tmac/tmac.safer: Will now work correctly in compatibility mode.
5 2000-03-08 Werner LEMBERG <wl@gnu.org>
7 * doc/Makefile: Added texput.log to the `clean' target.
8 * doc/groff.texinfo: Added info about delimiters for escapes.
10 2000-03-08 Bernd Warken <bwarken@mayn.de>
12 * src/preproc/pic/pic.man: Add info on conversion of pic images to
13 other graphic formats.
15 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
17 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
18 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
19 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
22 2000-03-07 Werner LEMBERG <wl@gnu.org>
24 * doc/groff.texinfo: Spelling fixes.
26 2000-03-06 Werner LEMBERG <wl@gnu.org>
28 * tmac/groff_man.man: Completely revised to cover everything in
31 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
33 * src/roff/troff/env.cc (environment_copy): Improve error message and
35 * src/roff/troff/TODO: Updated.
37 * doc/Makefile: Bug fixes -- this is still provisional, though...
39 * tmac/eqnrc: Small fixes.
41 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
43 Adding a request `evc' to copy environments.
45 * src/roff/troff/env.cc (environment::copy, environment_copy):
47 * src/roff/troff/env.h: Add prototype.
49 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
51 Adding strsep() -- Solaris 8 doesn't have it.
53 * configure.in: Test it.
54 * src/devices/grolbp/lbp.cc: Add code.
56 2000-03-05 Werner LEMBERG <wl@gnu.org>
58 * src/roff/troff/div.cc (macro_diversion::output,
59 top_level_diversion::output): Fixing an incompatibility with
60 original troff: \x'0' updates the .a register also. Thanks to
61 <Andries.Brouwer@cwi.nl> for pointing this out.
62 * doc/groff.texinfo: Document it.
64 * Makefile.in: Create Makefile.dep if necessary before calling the
65 submake process to avoid warning about nonexistent file.
67 * NEWS, PROJECTS: Updated.
69 2000-03-04 Werner LEMBERG <wl@gnu.org>
71 * tmac/troffrc: Add tmac.lbp.
73 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
75 * tmac/tmac.lbp: New file.
76 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
79 2000-03-03 Werner LEMBERG <wl@gnu.org>
81 * Makefile.in: Fixing $(subdir).
83 * README, NEWS: Small fixes.
85 * test-groff: Adding path to grolbp.
87 * configure.in: The (new) file src/xditview/Imakefile.in will be
88 also configured -- it is now possible to build gxditview in a
89 directory different from $srcdir.
91 2000-03-02 Blake McBride <blake@florida-software.com>
93 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
95 * MORE.STUFF: Added website of bell labs and info about plot2dev.
97 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
99 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
102 2000-02-29 Werner LEMBERG <wl@gnu.org>
104 Adding GNU getopt to the groff distribution.
106 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
108 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
109 * aclocal.a4: Remove GROFF_GETOPT function.
110 * configure.in, Makefile.in, PROBLEMS: Update.
111 * src/include/lib.h: Replace getopt tests with getopt.h.
112 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
114 * doc/groff.texinfo: Further checking/updating. Adding more index
117 * man/groff_out.man: Fix nroff mode activation (for emacs).
118 * man/groff_font.man: Add missing ligature.
120 2000-02-28 Werner LEMBERG <wl@gnu.org>
122 * doc/groff.texinfo: Further checking/updating. Adding more index
125 * src/devices/grolbp/grolbp.man: Added a comment line at the
126 beginning of the file (similar to shell scripts) which indicates
127 that `tbl' should be used as a preprocessor.
129 2000-02-27 Blake McBride <blake@florida-software.com>
131 Adapting groff to MS Visual C++ 6.0 compiler (tested with
132 Windows NT 4.0). Uses _MSC_VER define where necessary.
134 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
135 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
136 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
137 src/include/lib.h, src/libs/libgroff/errarg.cc,
138 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
139 src/preproc/refer/label.y, src/preproc/refer/label.cc,
140 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
141 src/roff/troff/div.cc, src/roff/troff/env.cc,
142 src/roff/troff/input.cc, src/roff/troff/node.cc,
143 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
144 if_to_a() to avoid name clashes.
145 * src/include/posix.h: Don't use unistd.h.
146 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
147 clause for integrating non-Unix xtmpfile() code.
148 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
149 structure; use "rt" for popen() in pipe_source(); add getpid()
151 * src/roff/troff/node.cc: Use special versions of popen() in
152 real_output_file() and pclose() in ~real_output_file().
154 2000-02-27 Werner LEMBERG <wl@gnu.org>
156 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
157 LBP-8 series laser printers). This code has been contributed by
158 Francisco Andres Verdu <pandres@dragonet.es>.
160 * src/devices/grolbp/*: The grolbp output device.
161 * font/devlpb/*: The font description files.
162 * Makefile.in: Add grolpb and devlbp subdirectories.
164 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
165 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
168 * doc/groff.texinfo: Further checking/updating. Adding more index
173 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
175 * man/groff_font.man: Adding info about obsolete DESC keywords.
176 * src/devices/grolj4/grolj4.man: Documenting additional DESC
179 2000-02-26 Werner LEMBERG <wl@gnu.org>
181 * src/preproc/grn/grn.man: Added info about the gremlin file format
182 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
184 2000-02-25 Werner LEMBERG <wl@gnu.org>
186 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
187 friends to be non-integer.
189 * src/preproc/grn/grn.man: Document it.
191 * doc/groff.texinfo: Further checking/updating. Adding more index
194 2000-02-24 Werner LEMBERG <wl@gnu.org>
196 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
197 line thicknesses to be integer multiples of this value.
199 * src/preproc/grn/grn.man: Commenting out the -s option -- the
200 corresponding code doesn't work (yet).
202 * doc/groff.texinfo: Further checking/updating. Adding more index
205 2000-02-23 Werner LEMBERG <wl@gnu.org>
207 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
208 specify line thickness instead of base units. The new default
209 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
210 thick lines respectively.
212 Removed unused variable `prevval'.
214 * src/preproc/grn/grn.man: Updated.
216 2000-02-22 Werner LEMBERG <wl@gnu.org>
218 * src/preproc/grn/main.cc: Slight formatting.
220 * src/roff/groff/groff.man: Formatting fix.
221 * src/preproc/grn/grn.man: Ditto.
223 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
225 * doc/groff.texinfo: Further checking/updating.
227 2000-02-21 Werner LEMBERG <wl@gnu.org>
229 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
231 * test-groff: Added grn subdir to path.
233 * doc/groff.texinfo: Some restructing and other small improvements.
235 * src/roff/groff/groff.cc (help): Fixed info string.
237 2000-02-20 Werner LEMBERG <wl@gnu.org>
239 * doc/meref.me: Fix description of .GS request.
241 * src/roff/troff/troff.man: Fixing typo.
243 Adding the `grn' preprocessor for gremlin graphic files.
245 * src/preproc/grn/*: This is the Berkeley distribution written by
246 David Slattengren and Barry Roitblat, adapted to groff by Daniel
247 Senderowicz and Werner Lemberg.
249 * doc/grnexampl.{me,g}: A sample for grn.
251 * Makefile.in: Added subdirectory entry for grn.
253 * src/roff/groff/groff.cc: Added support for grn. It can be now
254 called with the switch `-g'.
256 * src/roff/groff/groff.man: Updated.
258 * src/roff/grog/grog.{man,pl,sh}: Updated.
262 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
264 * src/include/lib.h: Added xtmptemplate and made xtmpfile
265 parametrically polymorphic.
267 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
268 and the alterations to xtmpfile.
269 xtmpfile can be requested to return the filename created
270 and asked not to unlink the temp file. The default behaviour
271 if parameters are absent is exactly the same as before.
273 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
275 A new request `length' is available which returns the length of a
276 string in a number register:
278 * src/roff/troff/input.cc (length_macro): Implement it.
279 * src/roff/troff/input.cc (init_input_requests): Register it.
281 2000-02-11 Werner LEMBERG <wl@gnu.org>
283 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
284 of the `substring' request.
286 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
289 * src/roff/troff/TODO, NEWS: Updated.
291 2000-02-09 Werner LEMBERG <wl@gnu.org>
293 * src/roff/groff/groff.man: Added an example.
295 2000-02-06 Werner LEMBERG <wl@gnu.org>
297 I've considerably modified the directory structure of the
298 distribution to get a more vertical layout. For example, the number
299 of top level directories has been reduced from 42 to 6.
301 As a consequence, many changes, especially to the makefiles, were
304 * The makefile variables `top_builddir' and `top_srcdir' have been
305 introduced. Virtually all relative paths have been replaced with
306 absolute ones using these two variables.
308 * Dependencies (in the files `Makefile.dep') are no longer part of
309 the distribution. Instead, they are created during a `make install'
310 in the build directory.
312 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
313 make `top_srcdir' and `top_builddir' absolute.
317 * Man pages no depend on the files `VERSION' and `REVISION'.
319 * The added shell script `mkinstalldirs' will replace `mkdir' in
322 * VERSION: Version number increased to 1.16.
324 2000-02-04 Werner LEMBERG <wl@gnu.org>
326 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
328 * Makefile.in: Removed $(tmac_m) since it is no longer needed
329 (after an update of the mm stuff).
331 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
333 2000-02-03 Werner LEMBERG <wl@gnu.org>
335 The .psbb request will now also accept Mac PS images (i.e. using LF
336 as the EOL character).
338 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
339 (with slight modifications).
340 * troff/input.cc (do_ps_file): Use it.
342 * test-groff: Add grohtml and grolj4 output devices to PATH.
344 2000-01-30 Werner LEMBERG <wl@gnu.org>
346 * NEWS, MORE.STUFF: Updated.
348 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
350 Add the `srand' command to pic.
352 * pic/lex.cc, pic/pic.y: Implement it.
353 * pic/pic.man: Document it.
354 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
356 2000-01-30 Werner LEMBERG <wl@gnu.org>
358 Add a new request `.psbb'. This does exactly what the external
359 program psbb did. It scans a PostScript image file for a
360 %%BoundingBox comment and extracts the bounding box values (in
361 PostScript units) which are then stored in the four new (read-only)
362 number registers `llx', `lly', `urx', and `ury'.
364 This will allow the usage of the .PSPIC macro without worrying
365 about unsafe behaviour of groff, i.e., it will work without the
366 `-U' switch of groff.
368 * troff/input.cc: Implement it.
369 * tmac/tmac.pspic: Use it.
370 * troff/troff.man, grops/grops.man, NEWS: Document it.
371 * psbb/*, Makefile.in: Remove it since it is no longer needed.
373 This is bloody C code simply adapted from psbb.c! Any improvements
376 2000-01-29 Werner LEMBERG <wl@gnu.org>
378 * man/groff_font.man: Minor clarifications.
382 2000-01-28 Werner LEMBERG <wl@gnu.org>
384 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
386 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
388 * man/groff_font.man: Brought up to date regarding tcommand
390 * libgroff/font.cc: Handle everything after `--' as a comment
392 * devps/*: Added comment delimiter inside devps font files.
394 2000-01-28 Werner LEMBERG <wl@gnu.org>
396 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
397 \fC...\fP (which now works as expected).
399 * troff/troff.man: Fix typo.
401 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
403 Completed the pass_filenames implementation in troff.
405 * libdriver/input.cc: Will read the new `F' tcommand.
406 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
407 * troff/input.cc: Use it.
409 2000-01-26 Werner LEMBERG <wl@gnu.org>
411 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
412 font will now be updated even if an invalid font is selected.
414 2000-01-24 Werner LEMBERG <wl@gnu.org>
416 * doc/homepage.ms: Updated for new tmac.arkup.
418 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
420 * tmac/tmac.arkup: Cleanup.
422 Added `\&' to .HTML macro to `leave vertical mode', so to say.
424 Removed obsolete .LINK macro completely.
426 The macros .URL, .FTP, and .MAILTO now accept a third argument which
427 will be immediately appended to the second argument (to be used with
428 punctuation, for example).
430 Disabled .CDFTP macro temporarily for security reasons.
432 * tmac/groff_markup.man: Complete revision for latest changes in
433 tmac.arkup -- note that it does not yet format correctly with
436 2000-01-23 Bruno Haible <haible@clisp.cons.org>
438 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
439 * devutf8/R.proto: Add mappings for wp, lh, rh.
440 * devutf8/NOTES: Updated.
442 2000-01-23 Werner LEMBERG <wl@gnu.org>
444 * doc/groff.texinfo: Updated version/copyright info.
446 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
448 Added support for two new directives in device descriptions:
449 `pass_filenames' (to pass the input file name to the output device)
450 and `use_charnames_in_special' (to support e.g. accented characters
453 * include/font.h, troff/charinfo.h: Declare it.
455 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
457 * devhtml/DESC: Use it.
459 * troff/input.cc: New function encoded_char.
461 * troff/token.h: Add test for `specialness'.
463 2000-01-21 Werner LEMBERG <wl@gnu.org>
465 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
466 mistake from the list of files to be installed.
468 2000-01-18 Werner LEMBERG <wl@gnu.org>
470 * README: Added info how to apply patches.
472 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
474 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
476 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
478 * troff/input.cc: Add support for troffrc-end.
480 * tbl/main.cc: Altered to issue table-start and table-end special
481 characters if using the html device.
483 * devhtml/*: Modified font files to incorporate html encoding of
486 * tmac/groff_markup.man: New file documenting tmac.arkup.
488 * tmac/troffrc-end: New file. This is invoked after all user
489 specified macros. Currently used by the html device to include
490 tmac.html. Thus no need for users to specify -mhtml anymore.
492 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
493 (MAN7): Add groff_markup.man.
495 * tmac/tmac.an, tmac/tmac.html: Small html updates.
497 * tmac/troffrc: tmac.arkup will now be called for the html device.
499 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
500 extra device specific information about fonts.
502 * doc/homepage.ms: New file. It is an example how an HTML home page
503 could look like with grohtml.
505 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
507 2000-01-12 Bruno Haible <haible@clisp.cons.org>
509 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
512 * devutf8/NOTES: Updated.
514 2000-01-08 Bruno Haible <haible@clisp.cons.org>
516 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
517 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
518 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
519 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
520 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
521 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
522 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
523 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
526 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
528 2000-01-12 Fabrizio Polacco <fab@prosa.it>
530 grolj4: Paper size will be searched case-insensitively.
532 * grolj4/lib.h: Add check for strcasecmp().
533 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
534 * configure.in: Check for strcasecmp().
536 2000-01-11 Werner LEMBERG <wl@gnu.org>
538 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
541 2000-01-10 Werner LEMBERG <wl@gnu.org>
543 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
546 Add a new read-only register, `.Y', which contains the groff
549 * troff/input.cc (init_input_requests): Define it.
550 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
551 * doc/groff.texinfo, troff/troff.man: Document it.
553 * libgroff/Makefile.sub (version.cc): Add definition of
554 `Version_string[]', consisting of `<major>.<minor>.<revision>'
555 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
556 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
557 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
558 troff/input.cc, pfbtops/pfbtops.c: Use it.
560 2000-01-10 Fabrizio Polacco <fab@prosa.it>
562 Add a revision scheme to the groff package.
564 * REVISION: New file.
565 * libgroff/Makefile.sub (version.cc): Use it to define
567 * grops/psrm.cc: Use revision_string (converted to an unsigned
568 integer) in constructor of resource_manager.
570 2000-01-10 Bruno Haible <haible@clisp.cons.org>
572 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
574 * Makefile.in (DEVDIRS): Add devutf8.
575 * grotty/tty.cc: Include device.h.
576 (glyph): Change type of `code' to `unsigned int'.
577 (tty_printer): New field is_utf8. Constructor takes device argument.
578 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
579 (tty_printer::add_char): Change type of first arg to `unsigned int'.
580 (tty_printer::put_char): New function.
581 (tty_printer::end_page): Use put_char() instead of ::putchar().
582 (make_printer): Pass device to tty_printer constructor.
583 * nroff.sh: Determine default device by calling 'locale'. As a
584 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
585 Recognize UTF-8 locales.
586 * tmac/eqnrc: Recognize utf8 like latin1.
587 * tmac/troffrc: Device utf8 needs tmac.tty.
589 2000-01-07 Werner LEMBERG <wl@gnu.org>
591 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
593 2000-01-07 Paul Eggert <eggert@twinsun.com>
595 Add a new predefined writeable number register, `year',
596 which contains the current year.
598 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
599 * tmac/tmac.s: Use it.
600 * troff/input.cc (init_registers): Initialize it.
602 2000-01-06 Werner LEMBERG <wl@gnu.org>
604 * PROBLEMS: Fixed typo.
606 2000-01-04 Paul Eggert <eggert@twinsun.com>
608 * PROBLEMS: Add Y2k advice for the yr number register.
610 2000-01-03 Paul Eggert <eggert@twinsun.com>
612 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
614 2000-01-02 Werner LEMBERG <wl@gnu.org>
616 * tmac/tmac.arkup: Slight modification of macros to provide better
617 appearance for non-HTML formats.
619 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
621 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
622 does not automatically translate to malloc(n) on all OSes
623 (e.g., SunOS) so do it explicitly. Also, check the returned
626 2000-01-01 Werner LEMBERG <wl@gnu.org>
628 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
630 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
631 expects this variable
633 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
635 * doc/Makefile: Added instructions to create HTML and text
636 versions of some files.
638 1999-12-31 Werner LEMBERG <wl@gnu.org>
640 * Updated INSTALL.gen.
642 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
643 better resp. correctly with non-HTML devices.
645 Version 1.15 released
646 =====================
648 1999-12-28 Werner LEMBERG <wl@gnu.org>
650 * NEWS, VERSION: Changed to 1.15
652 1999-12-27 Paul Eggert <eggert@twinsun.com>
654 * nroff/nroff.man: -S is safer, not safe.
656 * groff/groff.cc (main): Use `safer', not `safe', in variable
657 names. This does not change the behavior.
659 * troff/input.cc (main): Likewise.
661 * nroff/nroff.sh: Likewise.
663 * troff/input.cc (prepend_string): New function.
664 (main): Prepend -msafer, so that we check macro libraries for
667 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
669 Version 1.14 released
670 =====================
672 1999-12-26 Werner LEMBERG <wl@gnu.org>
674 * NEWS, VERSION: Changed to 1.14.
676 1999-12-24 Werner LEMBERG <wl@gnu.org>
678 * refer/refer.cc: Fixing the last fix.
680 Version 1.13 released
681 =====================
683 1999-12-23 Werner LEMBERG <wl@gnu.org>
685 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
690 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
692 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
693 document conventions, the version number must be a real.
695 Version 1.12.1 released
696 =======================
698 1999-12-22 Werner LEMBERG <wl@gnu.org>
700 * VERSION: Changed to 1.12.1.
702 1999-12-22 Alan Rooks <arooks@istar.ca>
704 * refer/refer.cc (do_file): Slight modification to satisfy the
705 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
708 1999-12-20 Werner LEMBERG <wl@gnu.org>
710 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
713 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
714 list of unsafe requests.
716 * pic/pic.man: Fixed a typo.
718 * man/groff_out.man: Fixed a typo.
720 1999-12-18 Werner LEMBERG <wl@gnu.org>
722 * Makefile.in: Doc fixes.
724 1999-12-17 Fabrizio Polacco <fab@prosa.it>
726 * groff/groff.cc: Missing `U' option added to getopt().
728 * troff/troff.man: Missing `U' option added to synopsis.
730 Version 1.12 released
731 =====================
733 1999-12-14 Werner LEMBERG <wl@gnu.org>
735 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
738 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
739 with the more appropriate terms `safer' and `unsafe'.
741 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
742 sys_nerr and sys_errlist[].
744 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
746 * pic/pic.y, pic/pic.cc: Added check for fmod().
748 1999-12-13 Werner LEMBERG <wl@gnu.org>
750 * VERSION: Changed to 1.12.
752 Here some patches from various sources; most of them taken from
753 the Debian distribution.
755 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
756 tmac/Makefile.sub: New files copied directly from the NetBSD
757 distribution. Probably, some additional adaptation later on is
760 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
763 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
764 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
765 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
766 (`-S') is now the default.
768 * README, NEWS: Updated.
770 1999-12-09 Werner LEMBERG <wl@gnu.org>
772 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
774 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
776 1999-12-06 Werner LEMBERG <wl@gnu.org>
778 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
779 grief than relief today. Additionally, it is against the GNU
782 * configure: Recreated.
784 1999-12-05 Werner LEMBERG <wl@gnu.org>
786 * configure.in: Added GROFF_LIBM.
788 * configure: Recreated.
790 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
793 * Makefile.in: Added definition of $(LIBM).
795 * Makefile.comm (LIBM): Removed.
797 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
799 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
801 * doc/Makefile: Added rule for generation pic.html.
803 (clean): Files produced by grohtml will be removed also.
805 * doc/pic.ms: Small fix.
807 * tmac/tmac.html: Fixed suppression of headers.
809 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
811 * tmac/tmac.html: Fixing horizontal arrows.
813 Turning off hyphenation.
815 * tmac/tmac.an: Improved support for grohtml; better indentation,
818 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
820 * tmac/tmac.arkup: Added CDFTP macro
822 * tmac/tmac.html: All headers are turned off for ms, me, and mm
825 * tmac/troffrc: Some additions for HTML stuff.
827 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
829 * tmac/tmac.html: Small changes.
831 1999-09-26 Werner LEMBERG <wl@gnu.org>
833 * doc/groff.texinfo: Minor fixes.
835 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
837 * devhtml/TR: Changed spacewidth to 3.
839 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
841 * tmac/tmac.html: Moved markup macros to tmap.arkup.
843 * tmac/tmac.arkup: New file.
845 * grohtml/ChangeLog: New file.
847 1999-09-16 Werner LEMBERG <wl@gnu.org>
849 * doc/groff.texinfo (Common Features): Added Copying chapter.
850 Changed format to @smallbook.
852 1999-09-15 Werner LEMBERG <wl@gnu.org>
854 * NEWS: Added info about groff.texinfo.
856 * doc/groff.texinfo: Will now compile (using texi2dvi) without
859 1999-09-14 Werner LEMBERG <wl@gnu.org>
861 * groff/groff.man: More updates.
863 1999-09-13 Werner LEMBERG <wl@gnu.org>
865 * doc/groff.texinfo: New file. This manual is still very
866 rudimentary. It has been originally contributed by Trent
867 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
870 * INSTALL: Added information about the `doc' subdir
872 * troff/troff.man: Minor fixes.
874 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
877 * troff/input.cc (usage): Added missing `-ffam' to usage message.
879 * Makefile.in (dist): groff-$(version).tar.gz must be removed
880 also, otherwise it is included itself in another call of `make
883 * groff/groff.cc (synopsis): Removed superfluous space.
885 * PROJECTS, PROBLEMS, NEWS: Updated.
887 * xditview/Makefile: Removed.
889 * VERSION: Updated to 1.12beta.
891 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
893 * README: Updated: Included documentation about CVS repository,
894 mailing lists, and daily snapshots.
896 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
898 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
900 * tmac/tmac.an: If the tag didn't fit into the space that the
901 macro `TP' specifies, the rest of the tag went into the space for
904 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
906 * grolj4/lj4.cc: Added duplex printing (option `-d').
908 * grolj4/grolj4.man: Document duplex printing.
910 1999-09-12 Werner LEMBERG <wl@gnu.org>
912 * doc/Makefile (pic.ps): Fixed rule which caused problems with
913 non-GNUish sed programs.
915 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
918 * configure.in (LIBS): Added `-lc'
920 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
922 * pic/tex.cc (solid_arc): Casting M_PI to double.
924 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
926 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
927 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
928 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
930 * groff/groff_man.man: New file. This manual page was originally
931 written for the Debian GNU/Linux system by Susan G. Kleinmann
934 * eqn/list.cc (list_box::compute_metrics,
935 list_box::compute_sublist_width): Removed variable declaration to
936 avoid shadowing warnings.
938 * grops/psrm.cc (resource_manager::process_file): Ditto.
940 * tfmtodit/tfmtodit.cc (main): Ditto.
942 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
943 to avoid shadowing warnings.
945 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
946 shadowing loop variable.
948 * groff/groff.man, troff/troff.man: Added doc about grohtml.
950 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
952 New grohtml frontend to convert groff input to html.
954 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
956 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
958 * tmac/eqnrc: Added html device.
960 * tmac/tmac.html: New file.
962 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
963 (troff_output::start_picture, troff_output::finish_picture),
964 tbl/main.cc (process_input_file):
965 Surrounded output with `graphics_start' and `graphics_end' so that
966 the html driver can identify non-text portions.
968 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
969 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
970 grotty/tty.ps (tty_printer::set_char): Additional parameter
973 * include/printer.h: Class printer: New function
974 set_char_and_width; new variables (is_char_named, is_named_set,
975 named_command, named_char_s, named_char_n) to hold information
976 about named characters -- needed by the html driver.
978 * libdriver/printer.cc (printer::set_ascii_char,
979 printer::set_special_char): Use set_char_and_width.
981 * devhtml/*: New device files for html driver.
983 * grohtml/*: New driver grohtml.
985 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
987 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
990 1999-09-11 Luke Mewburn <lukem@netbsd.org>
992 * libgroff/string.cc (search): Small fix to test against NULL
995 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
997 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
998 \b'abc') were stacked in reverse order when processed in a
1001 * troff/node.h: Added `*last' to struct `node' to make the above
1004 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1005 The default scale for the 'f' and 't' graphics functions were 'm'
1006 rather than 'u' (i.e., no scaling).
1008 1999-09-11 Peter Miller <peterm@jna.com.au>
1010 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1011 do_file), soelim/soelim.man: Added `-I file' option to soelim,
1012 defining include paths.
1014 * soelim/soelim.cc (include_path_append): New function.
1016 1999-09-11 Larry Jones <larry.jones@sdrc.com>
1018 * tbl/main.cc (process_options): Unix (at least Documenter's
1019 Workbench) tbl allows arbitrary non-alpha characters between
1022 1999-09-11 Paul Eggert <eggert@twinsun.com>
1024 Y2k fixes. Don't assume that the current year precedes 2000.
1026 * doc/meref.me: Add \n(y2, \n(y4.
1028 * tmac/doc-common (Yr): New number register.
1029 (Dd): Don't assume current year precedes 2000.
1031 * tmac/tmac.e (td): Likewise.
1032 (y2, y4): New number registers.
1034 * pic/pic.man: Update reference for pic paper to May, 1991
1037 1999-09-11 Werner LEMBERG <wl@gnu.org>
1039 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1040 Removed quotation marks which prevented correct expansion of
1043 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1045 1999-09-10 Werner LEMBERG <wl@gnu.org>
1047 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1050 * Removed configure.old.
1052 1999-08-31 Werner LEMBERG <wl@gnu.org>
1054 * VERSION: Updated to 1.11.1
1056 1999-05-27 Werner LEMBERG <wl@gnu.org>
1058 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1060 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1061 added quotations around $(tmac_wrap) to avoid syntax error if
1064 * configure: Newly generated using autoconf 2.13.
1066 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1068 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
1070 * README, PROJECTS, NEWS, INSTALL, VERSION,
1071 doc/Makefile. doc/pic.ms, groff/groff.man:
1072 Prepare for 1.11 release. No code changes.
1073 Documentation for pic added (doc/pic.ms).
1075 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
1077 * Version 1.10 released.
1079 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
1081 * afmtodit/afmtodit.pl: Avoid comment on first line.
1083 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
1085 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1086 * configure.in: Call it.
1088 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1089 (distfiles): Doesn't depend on config.log or config.cache.
1091 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
1093 * grog/grog.sh: Use print "" rather than print in END rule.
1095 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
1097 * tbl/main.cc (process_data): Don't give error for excess data
1098 entries that are comments.
1100 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
1102 * tbl/main.cc (process_data): Fix case where new for-scope rules
1103 silently change meaning of code.
1105 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
1107 * troff/env.cc (hyphenate): Loop over all consecutive sequences
1108 of non-zero hyphenation codes.
1110 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
1112 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1114 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
1116 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1118 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
1120 * tmac/tmac.andoc: Make it work in compatibility mode.
1122 * refer/token.h (token_info::is_range_sep): New function.
1123 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1124 * refer/ref.cc (reference::output): More sophisticated check for
1127 * devps/prologue.ps (MANUAL): New procedure.
1128 * grops/ps.cc (main): New -m option.
1129 (usage): Include -m.
1130 (ps_printer::~ps_printer): Implement -m.
1132 * aclocal.m4 (GROFF_G): New macro.
1133 * configure.in: Call it.
1134 * Makefile.in (g): Provided by configure.
1136 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1138 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
1141 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1142 (tmac_m, tmac_s): Deleted.
1143 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1144 tmac_s_prefix): New variables.
1145 (MDEFINES): Change accordingly.
1146 * Makefile.comm (.man.n): Use new TMAC_* variables.
1147 * configure.in (GROFF_TMAC): Call.
1148 * aclocal.m4 (GROFF_TMAC): Define.
1149 * tmac/Makefile.sub (stamp_wrap): New target.
1150 (install_data, uninstall_sub): Handle macro wrapping.
1152 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
1154 * tbl/main.cc (main): Ignore -T option.
1156 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
1158 * devlj4/generate/special.map: Add definition of \(nb.
1160 * tmac/tmac.dvi: Add definition of \(nb.
1162 * troff/dictionary.c (dictionary::dictionary): association::v gets
1163 initialized by association::association.
1165 * tmac/Makefile.sub: Avoid using temporary files when installing.
1167 * troff/env.cc (environment::set_font): Make bad font number a
1170 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1172 * Makefile.in (datadir): Use share rather than lib.
1174 * groff/groff.cc (basename): Rename to xbasename.
1176 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
1178 * Makefile (CCLIBS): Don't use.
1179 * Makefile.ccpg: Likewise.
1181 * acgroff.m4: Rename to...
1182 * aclocal.m4: Modify extensively for autoconf 2.
1183 * configure.in: Likewise.
1184 * Makefile.in: Likewise.
1186 * groff/pipeline.c (const): Declare as empty if __STDC__ not
1188 (xstrsignal): Check for definition of NSIG. Conditionalize
1189 on SYS_SIGLIST_DECLARED. Make return type const.
1191 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
1193 * troff/input.cc (interpolate_macro): Rephrase missing space
1196 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1198 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1199 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1200 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1201 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1202 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1203 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1204 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1205 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1206 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1207 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1208 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1211 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
1213 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1215 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1217 (macro_iterator::macro_iterator): Add additional argument.
1219 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
1221 * troff/div.cc (vertical_size::vertical_size): In place of integer
1222 specifying line spacing use cunits specifying post vertical
1224 (macro_diversion::output, top_level_diversion::output): Likewise.
1225 * troff/div.h: Change declarations accordingly.
1226 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1228 (pending_output_line::pending_output_line,
1229 pending_output_line::output, environment::output,
1230 environment::output_line, environment::output_title,
1231 environment::hyphenate_line): In place of
1232 integer specifying line spacing use cunits specifying post vertical
1234 (environment::environment): Add post_vertical_spacing and
1235 prev_post_vertical_spacing arguments.
1236 (environment::get_post_vertical_spacing): New function.
1237 (environment::total_post_vertical_spacing): New function.
1238 (environment::post_vertical_spacing): New function.
1239 (init_env_requests): Initialize pvs request and .pvs register.
1240 * troff/env.h: Change declarations.
1242 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1244 * tmac/tmac.pspic: Immediately remove the temporary file.
1246 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1248 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1249 height is specified.
1251 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1253 * tbl/table.c (struct vertical rule, class table_entry): Use int
1254 not short for start_row and end_row.
1256 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1258 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1260 (diverted_space_node::reread, process_input_stack): Call
1261 trapping_blank_line() rather than blank_line().
1262 (init_input_requests): Bind "blm" to blank_line_macro().
1264 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1266 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1268 * troff/env.cc (environment::possibly_break_line): Require that
1269 width total excluding width of final space node be greater than
1270 the target text length.
1272 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1274 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1276 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1278 * troff/node.cc (charinfo_node): New class.
1279 (glyph_node, composite_node): Derive from charinfo_node. Change
1280 member functions accordingly.
1282 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1284 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1286 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1288 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1290 * devps/generate/textmap (notsubset): Add.
1292 * tmac/tmac.a4: New file.
1294 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1296 * pic/main.cc (had_parse_error): New variable.
1297 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1299 (main): Return 1 if had_parse_error is true.
1301 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1303 * grolj4/lj4.cc (main): Avoid use of strtoul.
1305 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1307 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1308 iso_8859_1 or $LESSCHARSET is latin1.
1310 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1312 * hpftodit: New directory.
1313 * Makefile.in (CCPROGDIRS): Add hpftodit.
1314 * devlj4/generate: New directory.
1316 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1318 * configure.in: Don't use AC_VFORK.
1319 * groff/pipeline.c (run_pipeline): Use fork() always.
1321 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1323 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1325 * Makefile.in (CCPROGDIRS): Add grolj4.
1326 (DEVDIRS): Add devlj4.
1327 * grolj4, devlj4: New directories.
1328 * tmac/troffrc: Handle lj4.
1329 * tmac/tmac.lj4: New file.
1331 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1333 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1335 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1337 * troff/input.cc (do_if_request): At end of second string, switch
1338 environments before getting next token.
1340 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1342 * devps/psstrip.sed: Split rule that strips whitespace on either
1345 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1347 * troff/node.h (font_family::make_definition): Add return value to
1348 declaration. * troff/symbol.h (symbol::operator==,
1349 symbol::operator!=): Likewise.
1351 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1353 * groff/groff.cc (main, help, synopsis): Handle -S.
1354 (possible_command::insert_arg): New function.
1356 * tmac/tmac.safer: New file.
1357 * tmac/msafer.man: New file.
1358 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1360 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1362 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1363 * pic/pic.y (placeless_element): Avoid unsafe operations if
1364 `safer_flag' is set.
1365 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1367 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1369 * eqn/lex.cc (get_token): Put call to add_context() in block to
1370 work around Sun C++ 4.0 bug.
1372 * include/stringclass.h (operator +): Use ?: instead of `if' to
1373 work around Sun C++ 4.0 bug.
1375 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1377 * tbl/main.cc (process_format): Accept - as a synonym for the _
1380 * libbib/index.cc (minus_one): Don't declare as const.
1382 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1384 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1386 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1388 * troff/input.cc (write_macro_request): New function.
1389 (init_input_requests): Bind write_macro_request to writem.
1391 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1393 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1396 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1398 * tmac/tmac.s (@TS): Renamed from TS.
1399 (TS): Call LP then TS again.
1400 (cov*ab-init): Alias @TS to TS.
1402 * tmac/tmac.s: Allow QP or RS to initialize.
1404 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1405 Move initializations of PS and LL here.
1406 (par@init): Don't initialize HY. Avoid changing environment 0.
1407 (par*env-init): Don't all par@reset.
1409 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1411 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1413 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1415 * Makefile.in (MDEFINES): Add LDFLAGS.
1416 (LDFLAGS): Add definition line.
1418 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1420 * troff/input.cc (get_optional_char): Split off error check into...
1421 (check_missing_character): New function.
1422 * troff/token.h: Declare it.
1423 * troff/env.cc (margin_character): Don't call get_optional_char.
1424 Only call tok.next() after making the node.
1426 * include/lib.h (getopt): Make 2nd argument char *const *.
1428 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1430 * nroff/conftest.sh: Deleted.
1432 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1434 * pic/make-dos-dist: Deleted.
1436 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1438 * devps/psstrip.sed: Strip comments before stripping trailing
1441 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1443 * Version 1.09 released.
1445 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1447 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1449 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1451 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1453 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1455 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1456 about returning without a value.
1458 * troff/charinfo.h (charinfo::get_special_translation): Cast
1459 TRANSLATE_NONE to int.
1461 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1462 test. Fix test so that it works with n unsigned.
1464 * pic/pic.y (defaults_table): Fully bracket initializer.
1465 * pic/lex.cc (lookup_keyword): Likewise.
1466 * eqn/lex.cc (token_table, def_table): Likewise.
1467 * eqn/box.cc (param_table): Likewise.
1468 * troff/input.cc (warning_table): Likewise.
1469 * libgroff/font.cc (table): Likewise.
1470 * grops/ps.cc (ps_printer::special): Likewise.
1471 * grops/psrm.cc (resource_manager::process_file): Likewise.
1472 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1473 * refer/command.cc (command_table): Likewise.
1474 * addftinfo/addftinfo.cc (param_table): Likewise.
1476 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1477 about temp's being unused.
1478 (unused): New function.
1480 * groff/pipeline.cc: Declare c_fatal.
1482 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1485 * libbib/index.cc (index_search_item::load): Prevent compiler
1486 warnings about fd_closer's being unused.
1487 (unused): New function.
1489 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1491 * troff/input.cc (copy_mode_error): Make `prefix' static.
1494 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1496 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1497 HAVE_CC_OSFCN_H and modify accordingly.
1499 * troff/input.cc (init_charset_table): radicalex overlaps
1502 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1503 udodo!hans@relay.NL.net).
1504 * groff/configure.in: Call it.
1506 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1507 * groff/configure.in: Call it.
1508 * include/lib.h: Conditionalize declaration of pclose.
1510 * troff/div.cc (last_page_number): New global variable.
1511 (top_level_diversion::begin_page): Exit if we just printed the
1513 * troff/div.h (last_page_number): Declare it.
1514 * troff/input.cc (parse_output_page_list): Set last_page_number.
1516 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1517 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1518 tmac/tmac.X: Likewise.
1519 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1520 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1522 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1524 * tmac/doc-ditroff (hK): Remove groff specific code which
1525 prevented page-breaks between separate manual entries. If this is
1526 the first page, don't set the page number to 1.
1528 * acgroff.m4 (GROFF_POSIX): New macro.
1529 * configure.in: Use it.
1531 * troff/node.cc (class real_output_file,
1532 real_output_file::real_output_file,
1533 real_output_file::~real_output_file): Conditionalize use of
1534 popen/pclose on POPEN_MISSING.
1535 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1536 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1537 (pipe_source): Similarily.
1539 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1541 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1542 presence of declarations by trying to compile example with
1543 conflicting declarations. (gcc only gives a warning for missing
1546 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1548 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1549 (from Ulrich Lauther).
1551 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1553 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1555 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1557 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1558 pointers and ints have different sizes.
1560 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1562 * tmac/tmac.s (par*env-init): Call par@reset.
1564 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1566 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1568 (par*push-tag-env, par*pop-tag-env): New macros.
1570 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1572 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1573 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1575 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1576 comment. Include <time.h>.
1578 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1580 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1581 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1584 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1586 * troff/input.cc (read_request): Only print a prompt if reading
1587 from the terminal. Also clearerr on EOF if reading from the
1588 terminal. Declare isatty.
1590 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1592 * refer/label.y: Rename map_t to map_func and extractor_t to
1595 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1597 * include/assert.h: Don't use volatile.
1598 * libgroff/assert.cc: Likewise.
1600 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1602 * troff/input.cc (abort_request): Look at character in tok before
1605 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1607 * troff/troff.h (NO_RETURN): Deleted.
1608 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1609 * troff/input.cc (exit_troff): Likewise
1611 * Makefile.in: Remove `Making ...' messages since GNU make now
1614 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1616 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1618 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1621 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1623 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1625 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1627 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1628 MARK_REG if there was no left delimiter.
1630 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1632 * pic/troff.cc (troff_output::text): Set line thickness to
1633 relative before outputting text.
1635 * tmac/tmac.e (@k): Don't zero ?T.
1638 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1640 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1642 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1644 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1647 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1649 * troff/input.cc (ignoring): New variable.
1650 (ignore): Set ignoring during call to do_define_macro.
1651 (do_define_macro): Clear ignoring before interpolating terminating
1653 (copy_mode_error): New function.
1654 (get_char_for_escape_name, read_long_escape_name,
1655 interpolate_arg): Use copy_mode_error.
1656 (warning_table): Add WARN_IG.
1657 * troff/troff.h (WARN_IG): Declare.
1658 (WARN_TOTAL): Change accordingly.
1660 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1661 * groff/groff.cc (strsignal): Delete declaration.
1663 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1665 * troff/div.cc (page_offset): Use 'm' as default scaling.
1667 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1669 * nroff/nroff.sh: Ignore -u.
1671 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1673 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1675 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1677 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1679 (B2): With -Tascii, leave additional vertical space before
1680 and after. Ensure that the left and right indent is restored to
1681 what it was even if the point size changes. Don't call
1682 par@finish. Change the indent, line length and title length
1683 directly. With -Tascii, make the width of the box 1n less.
1684 (B1): Remember 1n at the current point size. Don't call
1685 par@reset. Change the indent, line length and title length
1686 directly. Ensure that the temporary indent is preserved.
1687 (par*box-mark-top): Turn off no spacing mode.
1689 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1691 * Makefile.in (dist): Use .gz suffix.
1693 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1695 * troff/input.cc (main): Add return 0.
1696 * pic/main.cc (main): Use return instead of exit.
1697 * tbl/main.cc (main): Likewise.
1698 * eqn/main.cc (main): Likewise.
1699 * grops/ps.cc (main): Likewise.
1700 * grotty/tty.cc (main): Likewise.
1701 * groff/groff.cc (main): Likewise.
1702 * grodvi/dvi.cc (main): Likewise.
1703 * refer/refer.cc (main): Likewise.
1704 * indxbib/indxbib.cc (main): Likewise.
1705 * lkbib/lkbib.cc (main): Likewise.
1706 * soelim/soelim.cc (main): Likewise.
1707 * addftinfo/addftinfo.cc (main): Likewise.
1708 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1709 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1711 * troff/token.h (process_input_stack): Don't declare as static.
1712 * troff/input.cc: Likewise.
1714 * troff/node.c (invalidate_fontno): Make it a static member of
1715 class font_family. Change callers.
1716 * troff/node.c: Change declaration.
1718 * tbl/main.cc (struct input_entry_format): Add explicit public
1720 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1721 struct double_hline_stuff): Likewise.
1722 * tbl/table.h (struct entry_format): Likewise.
1723 * pic/object.h (struct saved_state): Likewise.
1725 * include/stringclass.h: Add forward declarations of friend
1726 functions that are later declared as inline. Don't include inline
1727 specifier in friend declaration.
1729 * libgroff/lib.h: Declare popen and pclose.
1730 * acgroff.m4 (GROFF_POPEN): New macro.
1731 * configure.in: Call it.
1733 * include/lib.h (PI): New constant. Undef first if necessary.
1734 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1735 * grops/ps.cc (degrees, radians): Likewise.
1736 * libgroff/font.cc (font::get_skew): Likewise.
1738 * grops/ps.cc (is_ascii): New function.
1739 (ps_output::put_string): Use is_ascii. Use csprint rather than
1741 (ps_printer::define_encoding): Use csspace.
1742 * libgroff/strtol.c (ISASCII): New macro.
1743 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1744 Use ISASCII rather than isascii.
1745 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1746 * libgroff/cset.cc: Likewise.
1747 * libdriver/input.cc: Include cset.h.
1748 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1751 * refer/refer.cc (main): Use %ld rather than %d for longs.
1753 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1756 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1758 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1760 * troff/input.cc (hyphenation_code): Skip white space between
1763 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1765 * tbl/table.h (table::entry_list_tailp): New member.
1766 (table::table): Initialize it.
1767 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1770 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1772 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1773 with negative horizontal positions. Remove casts of glyph::hpos to
1775 (USHRT_MAX): Delete definition.
1776 (SHRT_MAX, SHRT_MIN): New definitions.
1777 (glyph::hpos): Change type to short.
1778 (tty_printer::end_page): Output multiple backspaces if necessary.
1779 Remove casts of glyph::hpos to int.
1781 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1783 * tmac/tmac.s (@RT): New definition.
1785 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1787 * refer/refer.cc (do_file): Make sure current_filename is set when
1790 * pic/common.cc (common_output::dot_line): Handle zero length
1793 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1795 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1796 (par@init): Initialize \n[HY].
1798 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1800 * troff/dictionary.cc (dictionary::remove): Continue when
1803 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1805 * Makefile.com (.y.cc): Avoid ending up with two versions of
1808 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1810 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1811 (\(,C): Likewise. Also fix typo.
1813 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1815 * lib.h: Delete extraneous semi-colon.
1817 * Add pso request: `so' from a pipe.
1818 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1819 (file_iterator::close): New function.
1820 (file_iterator::~file_iterator, file_iterator::next_file): Use
1821 file_iterator::close.
1822 (file_iterator::backtrace): Say `process' rather than `file' when
1823 the stream is popened.
1824 (pipe_source): New function.
1825 (init_input_requests): Bind ".pso" to pipe_source.
1827 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1829 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1831 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1832 digits in lower case.
1834 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1836 * Version 1.08 released.
1838 * Makefile.in (dist): Insert || true after ln -s commands that
1841 * mm: Update to mm 1.16.
1843 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1844 * configure.in: Call GROFF_CSH_HACK. Substitute for
1846 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1848 * nroff/Makefile.sub (nroff): New target.
1849 (install_data): Install nroff.
1850 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1851 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1853 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1855 * eqn/Makefile.sub (neqn): Add chmod +x.
1857 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1859 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1861 * troff/input.cc (string_iterator::string_iterator()): Initialize
1864 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1866 * troff/div.cc (macro_diversion::space,
1867 top_level_diversion::space): Don't set high_water_mark.
1868 (macro_diversion::output, top_level_diversion::output): Don't
1869 include post line space in high water mark.
1871 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1873 * eqn/eqn.y: Don't define YYDEBUG.
1874 * pic/pic.y: Likewise.
1876 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1878 * tmac/tmac.e ([3): Add space after comma following editors.
1879 Change double spaces to single spaces.
1880 ([4): Change double spaces to single spaces.
1882 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1883 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1884 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1885 after %!PS-Adobe- (for Newsprint).
1887 * troff/div.cc (top_level_diversion::begin_page): When
1888 before_first_page is 1, set page_number to 1.
1890 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1892 * eqn/box.cc (box::top_level): Protect equation with \&.
1894 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1896 * groff/groff.cc (possible_command::set_name): Delete old name.
1898 * groff/groff.cc (possible_command::~possible_command): Use
1901 * troff/node.cc (troff_output_file::begun_page): New member.
1902 (troff_output_file::troff_output_file): Initialize it.
1903 (troff_output_file::really_begin_page): Only output V command if a
1904 page has been begun.
1906 * pic/pic.y (placeless_element): Delete argument to PRINT after
1909 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1911 * Make wrapman work.
1912 * troff/div.h (class top_level_diversion): Replace
1913 first_page_begun by before_first_page (with opposite sense).
1914 * Change first_page_begun to before_first_page inverting sense.
1915 * troff/div.cc (class nl_reg): New class.
1916 (init_div_requests): Use class nl_reg for \n(nl.
1917 (top_level_diversion::begin_page): Don't call
1918 output_file::begin_page if before_first_page is 2;
1919 reset before_first_page afterwards. If have_next_page_number is
1920 false, then always increment page_number.
1921 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1922 Restore compatibility mode after loading, and then disable
1923 compatibility mode in TH.
1925 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1927 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1929 * troff/node.h (output_file::trailer): Declare.
1930 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1931 * troff/node.cc (output_file::trailer): New function.
1932 (troff_output_file::~troff_output_file): Move most code into...
1933 (troff_output_file::trailer): New function.
1934 (class troff_output_file): Delete page_length member. Declare
1936 (troff_output_file::really_begin_page): Use current page length
1937 for final V command.
1939 * tbl/main.cc (struct options): New decimal_point_char member.
1940 (options::options): Initialize this.
1941 (process_options): Implement decimalpoint option.
1942 (process_data): Pass decimal_point_char option to table::table.
1943 * tbl/table.h (class table): New decimal_point_char member.
1944 (table::table): Add additional argument.
1945 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1946 second argument specifying decimal point character. Use this
1948 (table::table): Initialize decimal_point_char.
1949 (table::add_entry): Change call to find_dot.
1951 * troff/input.cc (get_copy, token::next): Implement \V.
1952 (interpolate_environment_variable): New function.
1954 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1956 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1957 * pic/pic.y: Likewise.
1959 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1961 * refer/ref.cc (reference::insert_field, reference::delete_field):
1963 * troff/number.cc (parse_term): Likewise.
1965 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1966 * configure.in: Use GROFF_PROG_YACC.
1968 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1970 * Makefile.in (OPTIMIZE): New define.
1971 (DEBUG): Empty by default.
1972 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1974 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1975 (GROFF_ARRAY_DELETE): Likewise.
1976 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1978 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1980 * devps/psstrip.sed: Use different delimiter on last line (so that
1981 it works with BSD 4.4 sed.)
1983 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1985 * devps/psstrip.sed: Delete comments.
1987 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1988 optind, opterr, optarg.
1989 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1992 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1994 * Makefile.in (check): Dummy target.
1996 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1998 * Version 1.07 released.
2000 * Integrate mm 1.11.
2002 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2003 where start_col was meant.
2005 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
2007 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2009 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
2011 * troff/input.cc (token::next): Make \z\o'...' and similar things
2014 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2016 (environment): Add margin_character_flags member.
2017 * env.cc (environment::environment(symbol),
2018 environment::environment(const environment *): Initialize
2019 margin_character_flags.
2020 (margin_character): Rewrite.
2021 (environment::output_line): Add a margin character if
2022 margin_character_flags is non-zero. Turn off the
2023 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
2024 zero, use margin_character_node without copying and then set
2025 margin_character_node to 0.
2027 * devps/DESC.in: Change minimum size to 1000.
2029 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
2031 * troff/symbol.h (symbol::hash): Change return type to unsigned
2033 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2036 * test-groff: Use -r rather than -x.
2038 * grops/psfig.diff: Include in distribution again.
2040 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
2042 * Makefile.in (dist): Use gzip.
2044 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
2046 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2047 unistd.h as well as in stdlib.h.
2048 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2049 defined; otherwise include <sys/types.h> and <unistd.h> if
2050 UNISTD_H_DECLARES_GETOPT is defined.
2052 * configure.in: use builtin(include, ... rather than include(...
2053 * configure: Regenerate with autoconf 1.3.
2055 * libdriver/print.cc (printer::adjust_arc_center): Use new
2056 algorithm suggested by Andy Fyfe.
2058 * libdriver/printer.cc (printer::adjust_arc_center): New function.
2059 * include/printer.h: Declare this.
2060 * grops/ps.cc (ps_printer::draw): Use it.
2061 * grodvi/dvi.cc (dvi_printer::draw): Use it.
2063 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
2065 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2067 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
2069 * eqn/main.cc (main): Handle "eqn -".
2071 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
2073 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2075 * mm: Integrate version 1.08.
2077 * pic/troff.cc (troff_output::finish_picture): Set
2078 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2079 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2080 if it's not defined. Check whether the register is non-zero rather
2081 than whether it's not defined.
2082 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2084 * indxbib/indxbib.cc: Move all signal handling into...
2085 * indxbib/signal.c: New file.
2086 * configure.in: Call AC_RETSIGTYPE.
2088 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2089 * configure.in: Call GROFF_STRUCT_EXCEPTION.
2090 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2092 * troff/input.cc (token::token, token::operator=): Work round SGI
2094 * pic/object.cc (position::position): Likewise.
2096 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
2098 * pic/pic.h: Move declaration of hypot().
2100 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
2102 * pic/pic.h: Declare hypot().
2104 * pic/pic.h: Define M_PI if necessary.
2106 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
2108 * tmac/tmac.e (re): Add alternative version that doesn't use groff
2111 * devps/prologue.ps (RE): Handle the possibility that the old font
2112 doesn't have a FontName entry.
2114 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
2116 * tmac/tmac.e (fam): Redefine to set family in environment 2.
2117 (@C): Use @fam not fam.
2119 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
2121 * lookbib/lookbib.cc (main): Change type of start to const char *.
2122 * lkbib/lkbib.cc (main): Likewise.
2124 * eqn/lex.cc (definition::definition): Don't use member
2125 initializer syntax for members of anonymous unions.
2127 * troff/input.cc (input_stack::backtrace): Change type of to const
2130 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
2132 * include/stringclass.h (class string): Declare inline friend
2133 functions as inline in class declaration.
2134 * troff/hvunits.h (class hunits, class vunits): Likewise.
2135 * include/refid.h (class reference_id): Likewise
2136 * troff/troff.h (points_to_units(units), scale(units, double)):
2137 Delete declarations.
2138 * libdriver/input.cc (get_char): Delete declaration.
2139 * include/lib.h: Change 2nd argument of getopt from const char **
2141 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2142 char **' before assigning to a `const char **'.
2143 * tbl/table.cc: Delete extra declarations of prints().
2145 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
2147 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2148 char **' before assigning to a `const char **'.
2150 * libgroff/errarg.cc (errarg::errarg): Don't use member
2151 initializer syntax for members of anonymous unions.
2153 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
2155 * mm: Integrate version 1.07.
2157 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
2159 * troff/input.c (translate2): Rename to
2160 (translate_no_transparent).
2161 (init_input_requests): Rename tr2 to trnt.
2163 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
2165 * troff/charinfo.h (class charinfo): Add transparent_translate field.
2166 (charinfo::set_translation, charinfo::set_special_translation):
2167 Add second argument that specifies value for
2168 transparent_translate.
2169 (charinfo::get_translation, charinfo::get_special_translation):
2170 Add optional second argument that specifies whether translation is
2171 being used for transparent throughput.
2172 * troff/input.cc (charinfo::set_translation,
2173 charinfo::set_special_translation): Handle second argument.
2174 (charinfo::charinfo): Initialize transparent_translate.
2175 (translate): Split main part off into
2176 (do_translate): New function. Pass argument saying whether
2177 translation applies to transparent throughput.
2178 (translate2): New request.
2179 (init_input_requests): Bind translate2 to `tr2'.
2181 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
2183 * tbl/table.h (class table): Add `nokeep' flag.
2184 * tbl/main.cc (process_options): Handle `nokeep' option.
2185 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2186 table::do_bottom): Don't output keep/release macro definitions or
2187 calls when `nokeep' option has been specified.
2189 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
2191 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2193 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
2195 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2196 block_entry::divert, alphabetic_block_entry::divert): Add extra
2197 argument giving column separation.
2198 (table::compute_widths): Pass column separation to
2199 table_entry::divert().
2200 (block_entry::do_divert): If an entry spans multiple columns and a
2201 minimumum width has been specified for each column, then set the
2202 line length to the sum of the widths (plus possibly the column
2205 * troff/input.cc (set_escape_char): Don't set the escape_char
2206 until after calling has_arg().
2208 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
2210 * tbl/table.cc (table::do_top): Add missing \s0 for double box
2213 * tbl/table.cc (table::print_double_hline): Avoid extra new line
2214 in case where r > nrows - 1.
2216 * tbl/table.cc (BODY_HEIGHT): Deleted.
2217 (LINE_SEP): New definition.
2218 (table::print_single_hline, table::print_double_hline,
2219 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2220 table::do_row, table::do_top): Use LINE_SEP space before a line
2221 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2223 * tbl/table.cc (text_entry::print_contents): New function.
2224 (text_string_name, right_text_string_name): Deleted.
2225 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2226 (simple_text_entry::do_width, numeric_text_entry::do_width,
2227 alphabetic_text_entry::do_width): Don't store the contents of the
2229 (left_text_entry::simple_print, right_text_entry::simple_print,
2230 center_text_entry::simple_print,
2231 alphabetic_text_entry::simple_print,
2232 numeric_text_entry::simple_print): Print the entry directly
2233 instead of using the stored string.
2235 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2237 * devps/Makefile: Strip PostScript files.
2238 * devps/prologue: Rename to...
2239 * devps/prologue.ps.
2240 * devps/psstrip.sed: New file.
2241 * devps/download: Use .pfa rather than .ps for installed versions
2244 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2246 * troff/env.cc (input_trap): Give a warning if the argument is out
2249 * troff/env.cc (adjust): Treat negative argument as missing. Round
2250 argument > 5 down to 5.
2252 * troff/env.cc (center, right_justify): Make negative argument zero.
2254 * troff/div.cc (page_offset, vertical_position_traps): Treat
2255 invalid argument as missing.
2256 * troff/env.cc (line_spacing, line_length, title_length, indent,
2257 underline, hyphen_line_max_request, control_char,
2258 no_break_control_char, widow_control_request, adjust, input_trap,
2259 point_size): Likewise.
2260 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2261 constant_space): Likewise.
2262 * troff/input.cc (compatible, shift, warn_request,
2263 set_escape_char): Likewise.
2265 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2266 * tbl/table.cc (table::table): Likewise.
2268 * Makefile.dev (install_dev): depends on $(DEVFILES).
2270 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2272 * devX75, devX75-12, devX100, devX100-12: New directories.
2273 * Makefile.in: Add these to DEVDIRS.
2275 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2276 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2277 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2278 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2280 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2281 (uninstall): New target.
2282 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2283 uninstall_prog, uninstall_dev): New targets.
2285 * troff/div.cc (return_request): Treat an invalid argument as
2288 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2290 * tmac/tmac.e ((f): Set up the environment even when there's a
2291 current diversion. Transperently throughput a call to @N.
2294 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2296 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2297 up to vertical resolution.
2299 * tbl/table.cc (table::do_row): Change row number after printing
2302 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2304 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2306 * Rename CHANGES to NEWS.
2308 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2310 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2312 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2314 * man.ultrix: Removed.
2316 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2318 * Makefile.comm (extraclean): Delete files whose names begin with
2321 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2324 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2326 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2327 * troff/div.cc (page_length, need_space, space_request): Treat
2328 invalid optional argument as missing.
2329 * troff/env.cc (number_lines): If the first argument is present
2330 but not a number, turn on line numbering, don't change the next
2331 line number and parse the remaining arguments.
2333 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2335 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2337 * eqn/box.h: Change declaration accordingly.
2338 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2339 the specified size was bad but don't give an error. Check for
2341 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2342 * eqn/lex (do_size): Likewise.
2344 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2346 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2349 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2351 * tbl/table.cc (table::init_output): Improve error message when
2352 table won't fit on one page.
2354 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2356 * pic/troff.cc (troff_output::start_picture): Generate line
2357 containing a horizontal motion equal to the width of the picture.
2359 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2360 using GROFF_COMMAND_PREFIX environment variable.
2362 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2364 * mdate.sh: Use $NF rather than $(NF).
2366 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2368 * pic/main.cc (main): Use %1 not %c in argument to warning.
2370 * eqn/main.cc (main): Output code to check that geqn was given the
2373 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2375 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2376 `ln -s ../Makefile .; make; rm -f Makefile'.
2378 * troff/hyphen: Rename to...
2380 * troff/input.cc (main): Delete -H option. Don't call
2382 * troff/env.cc: Include searchpath.h and macropath.h.
2383 (exception_dictionary): Deleted.
2385 (read_hyphen_file): Deleted.
2386 (hyphenation_language): New struct.
2387 (class trie, class hyphen_trie): Move declarations up.
2388 (trie_node::~trie_node): Deleted.
2389 (trie::delete_trie_node): New function.
2390 (trie::do_delete): New pure virtual function.
2391 (hyphen_trie::do_delete): New function.
2392 (trie::~trie): New function.
2393 (hyphen_trie::~hyphen_trie): New function.
2394 (trie::clear): No need to chcek that tp is not 0.
2395 (current_language, language_dictionary): New variables.
2396 (hyphen_word): Give an error if no current language. Use
2397 exceptions dictionary in current language.
2398 (hyphen_trie::read_patterns_file): Find file using macro_path.
2399 Allow comments (starting with %) in patterns file. Don't make it
2400 a fatal error if the file can't be found.
2401 (hyphenate): Return if no current language. Get the exceptions
2402 dictionary and the hyphenation patterns from the current language.
2403 (set_hyphenation_language): New variable.
2404 (hyphenation_patterns_file): New function.
2405 (hyphenation_language_reg): New class.
2406 (hyphenation_language_reg::get_string): New function.
2407 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2408 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2410 * groff/groff.cc (main, help, synopsis): Delete -H option.
2411 * include/Makefile.sub: Don't define HYPHENFILE.
2412 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2413 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2414 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2415 hyphenation patterns.
2417 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2419 * eqn/neqn.sh: New file.
2420 * eqn/Makefile.sub: Handle neqn.sh.
2422 * eqn/eqn.h: Declare `nroff' variable.
2423 * eqn/box.cc (param_table): Add `nroff' param.
2425 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2427 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2429 * troff/troff.h (WARN_FONT): New warning.
2430 (WARN_TOTAL): Change accordingly.
2431 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2432 (warning_table): Add WARN_FONT.
2433 * troff/node.cc (mount_font_no_translate): Pass argument to
2434 font::load_font. If this is non-zero, give a warning.
2435 Don't give an error message when accessing a font that has already
2436 been found to be invalid.
2437 * include/font.h (font::load, font::load_font): Add additional
2438 optional argument which suppresses error message if the font is
2440 * libgroff/font.cc (font::load_font): Handle additional argument.
2441 (font::load): Add additional argument. If this is non-null, set it
2442 to 1 and don't give error message.
2444 * include/printer.h (printer::end_page): Add argument giving
2446 * libdriver/input.cc (do_file): Pass this.
2447 * grops/ps.cc (ps_printer::end_page): Add argument.
2448 * grodvi/dvi.cc (dvi_printer::end_page,
2449 draw_dvi_printer::end_page): Add argument.
2450 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2451 columns_per_page members. New member nlines.
2452 (DEFAULT_LINES_PER_PAGE): Deleted.
2453 (tty_printer::tty_printer): Don't compute lines_per_page from
2454 font::paperlength. Don't compute columns_per_page from
2456 (tty_printer::add_char): Don't check horizontal position against
2457 columns_per_page. Grow glyphs vector if neccessary.
2458 (tty_printer::end_page): Add argument giving page_length in units.
2459 Discard lines past end of page.
2461 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2463 * tmac/tmac.tty-char: Fix definition of \(/l.
2465 * tmac/tmac.X: Define \(en.
2467 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2469 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2470 lpq, then use lp rather than lpr.
2472 * tmac/tmac.s (par@reset): Don't call `ad'.
2473 (par*env-init): Call `ad'.
2475 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2477 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2480 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2481 * indxbib/indxbib.cc: Likewise.
2483 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2485 * libgroff/putenv.c: New file.
2486 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2487 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2488 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2489 stdlib.h with AC_HAVE_HEADERS.
2491 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2493 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2496 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2498 * eqn/box.cc (gsize): Make it an int.
2499 (set_gsize): Parse argument handling increment or decrement.
2500 (box::top_level): Convert gsize to a string.
2502 * troff/input.cc (exit_troff): Make buf unsigned char [].
2503 Call to make_temp_iterator casts buf to char*.
2505 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2507 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2508 * Makefile.cpg (depend.temp): Likewise.
2510 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2512 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2514 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2516 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2518 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2520 * Version 1.06 released.
2522 * Integrate mm 1.04.
2524 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2526 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2528 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2530 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2532 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2533 afmtodit. Regenerate.
2535 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2536 @f back past the current position.
2538 * tmac/tmac.e: Change calls to @R so that comments are not part of
2541 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2543 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2545 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2546 check that we can link a call to a function declared in <stdio.h>.
2547 (GROFF_UNISTD_H): New macro.
2548 * configure.in: Call it.
2549 * Makefile.in: Document it.
2550 * include/posix.h: New file.
2551 * troff/troff.h: Don't include <osfcn.h>
2552 * troff/input.cc: Include posix.h.
2553 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2555 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2556 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2558 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2559 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2560 * libbib/search.cc (O_RDONLY): Delete definition.
2561 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2562 Don't include <osfcn.h>.
2564 * acgroff.m4 (GROFF_TIME_T): New macro.
2565 * configure.in: Call it.
2566 * Makefile.in: Document it.
2568 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2569 * configure.in: Call it.
2570 * Makefile.in: Document -DTRADITIONAL_CPP.
2571 * include/ptable.h: Don't include generic.h.
2574 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2575 Afterwards remove [T1 and [T2.
2576 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2577 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2578 (ref*add-T2): Renamed from ref*add-T.
2579 (ref*add-T1): New macro.
2581 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2583 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2585 * libbib/index.cc: Include <fcntl.h>.
2586 (O_RDONLY): Define if necessary.
2587 (make_index_search_item, index_search_item_iterator::get_tag,
2588 index_search_item::check_files): Use O_RDONLY.
2589 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2590 (O_RDONLY): Define if necessary.
2591 (search_list::add_file): Use O_RDONLY.
2592 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2594 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2597 * libbib/index.cc (S_ISREG): Define it if necessary.
2598 (index_search_item::load): Use S_ISREG.
2600 * include/driver.h: Include <errno.h>.
2602 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2604 * eqn/box.cc (body_height): Increase default value to 85.
2605 (body_depth): Increase default value to 35.
2607 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2609 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2610 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2611 protected from expansion with \E.
2613 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2615 * Makefile (Makefile): New target.
2617 * Makefile.sub (configure, distfiles): New targets.
2619 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2622 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2624 * eqn/box.cc (param_table): Add body_height and body_depth.
2626 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2628 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2630 * psbb/Makefile.sub: Don't link with libgroff.a.
2632 * acgroff.m4 (GROFF_PUTENV): New macro.
2633 * configure.in: Call GROFF_PUTENV.
2634 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2635 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2638 * troff/env.cc (distribute_space): Rename force_forward argument
2639 to force_reverse. Reverse the list if force_reverse is true.
2641 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2643 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2645 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2646 height or depth to be negative. Guard against SUP_RAISE quantity
2649 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2651 * devps/generate/textmap: Add `an' (arrowhorizex).
2652 * tmac/tmac.ps: \(an overlaps horizontally.
2653 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2655 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2656 * devps/textmap: Add arrowvertex.
2657 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2658 updownarrow delimiters.
2659 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2661 * tbl/table.cc (simple_entry::position_vertically,
2662 block_entry::position_vertically): For a centered entry, perform
2663 the motion in two stages.
2665 * refer/refer.cc (split_punct): Don't call lookup_token if there
2668 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2670 * troff/input.cc (token::next): Delete token_node after copying
2673 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2676 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2678 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2680 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2682 * grops/ps.cc (usage): -b option takes an argument.
2684 * devps/prologue (PLG): New procedure.
2685 * grops/ps.cc (main, usage): New -g option.
2686 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2689 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2691 * include/cset.h: Include <limits.h> if we have it.
2693 * libgroff/illegal.cc: New file.
2694 * include/lib.h (illegal_input_char): Use table.
2695 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2696 * pic/lex.cc (ARG1): Renumber to 14.
2697 * eqn/lex.cc (ARG1: Likewise.
2699 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2700 (eg 1.05.90) correctly.
2702 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2704 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2705 Rename $r and $R registers to $v and $V.
2706 ($r, $R): Initialize to 0.
2707 (@v, @V): New macros.
2711 * troff/input.cc (main, usage): Add -R option that says not to
2713 * eqn/main.cc (main, usage): Rename -n to -R.
2715 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2717 * devps/DESC.in: Leave font positions 5-9 blank.
2718 * devdvi/DESC.in: Likewise.
2720 * grog/grog.pl: Handle `.PS <file' correctly.
2722 * troff/input.cc (input_stack::push): Improve error message when
2723 input stack limit exceeded.
2725 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2727 * refer/refer.cc (main): Fix typo in handling of `a' option.
2729 * refer/refer.cc (do_bib): In state START after a newline remain
2732 * groff/groff.sh: Deleted.
2733 * groff/Makefile.sub: Delete handling of groff.sh.
2735 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2736 to determine whether to use \X'ps:...'.
2737 * tmac/troffrc: Set 0p register to 0.
2738 * tmac/tmac.ps: Set 0p register to 1.
2740 * groff/groff.cc: Support -X option. Give warning for -TXps and
2741 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2742 * tmac/troffrc: Support -r.X=1.
2744 * pic/troff.cc (troff_output::dot): Don't test
2745 zero_length_line_flag.
2747 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2749 * include/lib.h: Declare getopt() and friends unless
2750 STDLIB_H_DECLARES_GETOPT is defined.
2752 * doc/chars.tr: Delete.
2753 * man/groff_char.man: New file.
2755 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2757 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2758 user has changed register format.
2760 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2762 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2763 `postpro' command in DESC file. Get spooler command from `print'
2764 command in DESC file. Execute spooler command with /bin/sh.
2766 * groff/groff.cc: Split Unix-specific parts into...
2767 * groff/pipeline.c: New file.
2770 * COPYING: New file.
2771 * all files: Update copyright notices.
2773 * Rearrange files. Redo Makefiles. Use autoconf.
2775 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2777 * troff/input.c (charinfo_to_node_list): Interpret character
2778 definition with escape_char of `\'.
2780 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2782 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2783 Define INT_DIGITS as big enough for 64-bit integer.
2784 * lib/strtol.c: Don't include lib.h.
2785 * lib/lib.h: Delete ifdef __cplusplus stuff.
2787 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2789 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2790 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2791 get DESC from current directory.
2793 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2795 * tbl/main.c (main): Always reset the line number when reading
2798 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2799 table::define_bottom_macro, table::do_row, table::do_top): Round
2800 vertical spacing up to vertical resolution.
2802 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2804 * ps/ps.h (enum resource_type): Avoid comma at end of
2806 * dvi/dvi.c (class dvi_printer): Likewise.
2807 * dvi/tfmtodit.c (gf::load): Likewise.
2808 * refer/label.y (struct expression): Likewise.
2809 * refer/refer.c (class label_processing_state): Likewise.
2810 * refer/indxbib.c (do_file): Likewise.
2811 * troff/troff.c (enum warning_type): Likewise.
2812 * tbl/main.c (process_data): Likewise.
2813 * troff/charinfo.h (class charinfo):
2815 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2817 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2819 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2821 * groff.c: Move to new groff subdirectory.
2822 * groff/Makefile: New file.
2823 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2825 * man/mdate.sh: Use ls -L if supported.
2827 * Consolidate all header files produced by gendef into lib/defs.h.
2828 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2829 Don't include path.h.
2830 * lib/Makefile (path.h): Don't generate.
2831 * troff/input.c: Include defs.h. Don't include config.h.
2832 * troff/Makefile (config.h): Don't generate.
2833 * refer/index.h: Don't include suffix.h.
2834 * refer/index.c: Include defs.h.
2835 * refer/indxbib.c: Include defs.h.
2836 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2838 * refer/Makefile (suffix.h, path.h): Don't generate.
2839 * groff.c: Don't include config.h. Include defs.h.
2840 * Makefile (config.h): Don't generate.
2841 (lib/defs.h): Generate.
2842 (topclean): Remove lib/defs.h.
2844 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2846 * lib/malloc.c, lib/getpagesize.h: Deleted.
2847 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2849 * lib/Makefile: Delete malloc-related stuff.
2850 * lib/new.c: Workaround COOKIE_BUG if necessary.
2852 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2853 needed header files directly.
2854 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2855 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2857 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2859 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2861 * lib/font (font::load_desc, font::load): Don't split argument of
2863 (font::handle_unknown_font_command): Change type.
2864 * ps/ps.c (ps_font::handle_unknown_font_command,
2865 handle_unknown_desc_command): Change type.
2866 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2868 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2870 * lib/font.h (font::handle_unknown_font_command): Add file and
2872 * lib/font.c (font::handle_unknown_font_command):
2873 * ps/ps.c (ps_font::handle_unknown_font_command):
2874 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2875 lineno arguments. Use _with_file_and_line functions for error
2878 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2880 * lib/font.c (font::set_unknown_desc_command_handler): New
2882 (font::load_desc): For unknown commands, call
2883 unknown_desc_command_handler if not null.
2884 * lib/font.h (class font): Declare them.
2885 (FONT_COMMAND_HANDLER): New typedef.
2886 * ps/ps.c (handle_unknown_desc_command): New function.
2887 (main): Set bflag if we had a -b option. Call
2888 font::set_unknown_desc_command_handler.
2889 (broken.h): Don't include.
2890 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2892 * ps/devps/Makefile: Add `broken' command to DESC file using
2893 BROKEN_SPOOLER_FLAGS.
2895 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2897 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2899 * macros/tmac.e (@R, @S): New macros.
2900 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2901 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2902 Declare $H, $[0-9], .. macros with @S.
2903 Declare |0, |1, |2, |3 strings with @S.
2905 * macros/tmac.e (@S): Rename to @U.
2907 * macros/tmac.e (@z): Define @b and bp as empty instead of
2910 * macros/tmac.e (@m): Deleted.
2911 (@h): Don't call @m.
2912 (@z): Don't set @m trap.
2914 * macros/tmac.e ($h, $f): Define |z as empty string.
2916 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2919 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2921 ()f): Likewise for * register.
2923 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2924 argument is missing, don't change $R. Call sr with three
2925 arguments when initializing.
2927 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2929 * macros/tmac.e (sr): New macro.
2930 Initialize $r and $R using sr.
2932 * macros/tmac.e (,): Delete \*(#[.
2934 * troff/env.c (set_tabs): Read the tab type even if the position
2935 is bad. Allow the position of the first tab stop to be negative.
2937 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2939 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2941 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2942 rather than -DPATHCONF_MISSING.
2943 * Makefile: Get rid of PATHCONF_MISSING.
2945 * refer/map.c: New file.
2946 * refer/index.c: Interface to mmap through map.c. Rename map_size
2948 * refer/Makefile: Handle map.c.
2949 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2951 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2953 * Makefile: RANLIB should be `true' if there is no ranlib.
2954 * lib/Makefile (libgroff.a): Simplify.
2955 * driver/Makefile (libdriver.a): Simplify.
2957 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2958 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2961 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2963 * troff/env.c (compare_ranges): Declare as extern "C".
2965 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2967 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2969 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2971 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2972 but conditionalize use of \X based on \*(.T.
2973 (grops_output::*): Deleted.
2974 * pic/output.h: Delete declaration of make_grops_output.
2975 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2976 by default. -n sets it to 0.
2977 (usage): Corresponding changes.
2978 * groff.c (main): Don't pass -x or -p to pic.
2979 * groff.sh: Likewise.
2981 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2984 * ps/devps/afmtodit: Change calculation of asc_boundary and
2985 desc_boundary. Make these bounds inclusive.
2986 * ps/devps: Regenerate font files.
2988 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2990 * macros/tmac.latin1: New file.
2991 * macros/tmac.tty-char: Use tmac.latin1.
2992 (tmac.tty-tr): Deleted.
2993 * macros/Makefile: Install tmac.latin1.
2994 * macros/tmac.dvi: Use tmac.latin1.
2995 * macros/troffrc: Translate \[char160] onto no-break space here.
2996 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2998 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
3000 * macros/tmac.Xps: Use `do' request.
3002 * macros/tmac.ps: Use `do' request.
3004 * macros/tmac.e (@C): Use `do' request.
3006 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3007 * macros/Makefile: Install tmac.X*.
3009 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3010 * tty/Makefile: Don't install tmac.tty*.
3011 * macros/Makefile: Install tmac.tty*.
3013 * dvi/tmac.dvi: Move to macros.
3014 * dvi/Makefile: Don't install tmac.dvi.
3015 * macros/Makefile: Install tmac.dvi.
3017 * ps/tmac.ps*: Move to macros.
3018 * ps/Makefile: Don't install tmac.ps*.
3019 * macros/Makefile: Install tmac.ps*.
3021 * eqn/box.c: Provide draw_lines parameter corresponding to -D
3023 * macros/eqnrc: Set draw_lines parameter based on device.
3024 * groff.c: Don't pass -D flag to eqn.
3025 * groff.sh: Likewise.
3026 * eqn/main.c: Warn about use of -D.
3028 * troff/input.c (process_startup_file): New function.
3029 (main): Call process_startup_file().
3030 * macros/troffrc: New file.
3031 * macros/Makefile: Install troffrc.
3032 * groff.c (main): Don't pass extra -m option to troff. For a
3033 pseudo device pass the name of the pseudo device to troff using
3035 * groff.sh: Likewise.
3036 * groff.c (possible_command::prepend_arg): Deleted.
3038 * troff/input.c (do_request): New function.
3039 (init_input_requests): Bind "do" to do_request.
3041 * eqn/main.c (main): Instead of loading eqnchar from device directory,
3042 load eqnrc from macro directory.
3043 * macros/eqnrc: New file.
3044 * macros/Makefile: Install eqnrc.
3045 * ps/devps/eqnchar: Deleted.
3046 * ps/devps/Makefile: Don't install eqnchar.
3047 * dvi/devdvi/eqnchar: Deleted.
3048 * dvi/devdvi/Makefile: Don't install eqnchar.
3049 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3052 * lib/device.[ch]: New files.
3053 * lib/font.h (font::set_device_name, font::get_device_name):
3055 * lib/fontfile.c: Use device.h.
3056 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3057 * troff/input.c: Delete definition of `device'.
3058 (main): Don't initialize device.
3059 * troff/troff.h: Include device.h rather than declaring device.
3060 * troff/Makefile: No need to handle DEVICE.
3061 * driver/input.c: Include device.h. Don't use
3062 font::{set,get}_device_name.
3063 * groff.c, Makefile: Rename device.h to config.h.
3064 * groff.c: Use library device variable.
3065 * eqn/main.c: Use library device variable.
3066 * eqn/Makefile: No need to handle DEVICE.
3068 * lib/searchpath.[ch]: New files.
3069 * lib/Makefile: Handle searchpath.[ch].
3070 * troff/input.c (open_file, init_dirs): Deleted.
3071 (macro_dirs): Deleted.
3072 (open_mac_file, macro_source): Use class search_path.
3073 (add_string, struct string_list): Move definition.
3074 (main): Change -M option to use macro_path. Delete call to
3076 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3077 Rewrite to use class search_path.
3078 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3079 * lib/Makefile: fontfile.c depends on searchpath.h.
3080 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3082 * lib/macropath.[ch]: New files.
3083 * troff/Makefile: No need to handle MACROPATH.
3085 * troff/input.c: Delete DUMP code.
3086 * lib/fontfile.c, lib/font.h: Delete
3087 font::forget_command_line_font_dirs.
3089 * troff/input.c (push_token): New function.
3090 (handle_first_page_transition): Use push_token().
3091 (process_input_stack): Change handling of a space at the beginning
3094 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
3096 * troff/input.c (font_dirs): Delete unused variable.
3098 * eqn/lex.c (do_set): Correct error messages.
3100 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
3102 * troff/input.c (do_define_string): Allow the string name to be
3103 followed immediately by a tab.
3104 (define_character): Likewise.
3106 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
3108 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3111 * troff/input.c (input_iterator::is_file): New virtual function.
3112 (file_iterator::is_file): New function.
3113 (input_stack::end_file): New function.
3114 (input_stack::next_file): Handle the situation where there is no
3115 file on the input stack correctly. Avoid making two passes over
3117 (next_file): Make the filename optional; in this case call
3118 input_stack::end_file().
3120 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
3122 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3123 produce a real _ charater when the current font is CW and _
3126 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3127 expression to work around gcc 2.2 bug.
3129 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
3131 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3133 * troff/env.c (environment::add_padding): New function.
3134 (environment::add_char): Use add_padding().
3135 (environment::space): Likewise.
3136 (environment::wrap_up_field): Add some padding if there is none
3137 and there's no current tab.
3138 * troff/env.h: Declare environment::add_padding.
3140 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
3142 * pic/pic.y: undef fmod and rand before declaring them.
3144 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
3146 * troff/input.c (main): If the DESC file specifies a font name of
3147 0, then leave the corresponding font position empty.
3149 * nroff.sh: New file.
3150 * Makefile (install.nobin): Install nroff.sh.
3152 * tty/devlatin1/R.proto: Add ao as synonym for de.
3153 * tty/tmac.tty-char: Define ao as o.
3155 * tty/dev{ascii,latin1}/R.proto: Add aq.
3156 * tty/tmac.tty-char: Delete definition of aq.
3158 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
3160 * troff/input.c (init_charset_table): Don't translate 0240.
3161 * ps/tmac.ps: Translate char160 to space.
3162 * dvi/tmac.dvi: Likewise.
3163 * tty/tmac.tty: Likewise.
3165 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
3167 * dvi/tmac.dvi: Add support for all Latin-1 characters.
3169 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3170 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3173 * tty/tmac.tty-char: Add \(ah.
3175 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3176 No need to define \(FM and \(!/. Conditionalize all character
3179 * ps/devps/lgreekmap: Add +h, +f, +p.
3181 * ps/tmac.psnew: New file.
3182 * ps/Makefile: Install tmac.psnew.
3184 * troff/input.c (charinfo_to_node_list): Don't ever interpret
3185 character definitions in compatible mode.
3187 * troff/input.c (remove_character): New function.
3188 (init_input_requests): Bind remove_character to "rchar".
3190 * ps/tmac.psold: New file.
3191 * ps/Makefile: Install tmac.psold.
3192 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3193 characters into tmac.psold. Make these definitions unconditional.
3195 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3197 * ps/tmac.ps: Don't define \('c and \('C.
3199 * ps/devps/textmap: Move Greek characters to...
3200 * ps/devps/symbolchars:
3202 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
3204 * ps/devps/text.enc: Add quotesingle.
3205 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3206 * tty/tmac.tty-char: Likewise.
3207 * dvi/devdvi/texmi.map: Add +h, +f, +p.
3208 * dvi/devdvi/texi.map: Add Fn.
3209 * dvi/devdvi/msam.map: Add lz.
3210 * dvi/tmac.dvi: Handle Bq, bq, aq.
3212 * pic/lex.c (get_token): Recognize 'th.
3213 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3215 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
3217 * ps/devps/textmap: Move di, mu, +- to...
3218 * ps/devps/symbolchars:
3220 * macros/tmac.s (@XS): Don't call par@reset or fi.
3221 (XA): Call LP. Turn off adjustment. Reduce line length.
3223 * macros/tmac.s: Initially alias XS to LP.
3224 (XS): Rename to @XS.
3225 (cov*ab-init): Alias XS to @XS.
3227 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3229 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3230 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3231 (token::is_size, token::changes_env): Deleted.
3232 * troff/number.c (parse_term): No need to process \s explicitly.
3233 Call tok.next() only after scale indicator has been processed.
3234 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3236 (token::next): Handle \s, \f, \S, \H immediately rather than
3237 returning them as tokens.
3238 (token::operator==, token::description, token::add_to_node_list,
3239 token::process): Remove handling of deleted tokens.
3241 * troff/env.c (environment::add_char): When adding padding
3242 indicator character, call start_line() if necessary.
3244 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3246 * ps/devps/afmtodit: Don't output 0 kerns.
3248 * ps/devps/afmtodit: Remove directory from name of encoding in
3249 font description file.
3251 * ps/devps/afmtodit: Improve error messages.
3253 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3255 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3256 * ps/devps/FontMakefile: Deleted.
3257 * ps/devps/afmname: New file.
3259 * ps/devps/symbol.sed: New file.
3260 * ps/devps/symbol.diff: Deleted.
3261 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3262 Generate zapfdr.afm from zapfd.afm.
3264 * tty/tmac.tty (tty-char): Prefix definition with ".
3266 * macros/tmac.an (TP): Don't start a diversion if one has already
3269 * tty/tmac.tty-char: Add Latin-1 characters.
3271 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3273 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3275 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3276 Move declaration of struct horizontal_span.
3278 * tbl/table.c (table::table): Initialize span_list.
3279 (table::~table): Delete span_list.
3281 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3283 * ps/devps/Makefile: Avoid dependency on GNU make.
3285 * ps/tmac.ps: Check that character does not already exist before
3288 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3289 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3290 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3293 * tty/tmac.tty-char: New file.
3294 * tty/Makefile: Install tmac.tty-char.
3295 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3298 * tty/tmac.tty: Fix definition of \(34.
3300 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3301 bracket-drawing characters onto |. Add *o.
3303 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3304 only if current_field.
3306 * troff/dictionary.c (dictionary::lookup): Free old_table after
3309 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3311 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3312 whose glyphs are identical to glyphs of some Roman character.
3314 * tty/devlatin1/R.proto (bu): Deleted.
3315 * tty/devascii/R.proto (bu): Deleted.
3316 * tty/tmac.tty: Add definition of \(bu.
3318 * eqn/main.c (do_file): Pass FILE as argument.
3319 (main): Automatically load eqnchar. New options -F and -n.
3320 Pass do_file an opened FILE.
3321 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3322 No need to include font.h.
3323 * groff.sh: Likewise. Don't need to use - for standard input.
3324 Prefix files with -- if first file starts with -.
3326 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3328 * troff/env.c (environment::possibly_break_line): Don't set line
3329 to 0 across call to output_line(). Don't call output_line() until
3330 after discarding nodes after break.
3332 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3334 * request.h (macro::empty): Declare it.
3335 * input.c (macro::empty): New method.
3336 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3339 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3341 * troff/env.c (environment::start_field): Decrement space_total
3342 when a space is frozen.
3344 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3346 * macros/tmac.an (R): Delete macro.
3348 * troff/input.c (get_copy, token::next): Support \# (like \" but
3349 newline is ignored).
3351 * troff/input.c (token::next): Fix error message in 'Y' case.
3353 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3355 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3358 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3360 * c++test.c: Include <osfcn.h>.
3362 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3365 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3367 * tbl/table.c (table::divide_span): Don't count column separation
3368 if expand was specified.
3370 * tbl/main.c (process_format): Don't ignore width specs in
3371 continued format. Give warning for changing equal widths or
3372 column separation in continued format.
3373 (process_data): Set column separation, minimum width, equal
3374 columns at end of table.
3376 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3378 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3379 node::add_discretionary_hyphen): Use soft_hyphen_char.
3380 (set_soft_hyphen_char): New function.
3381 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3383 * Makefile (c++tested): Give more helpful message if test fails.
3385 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3387 * troff/input.c (init_charset_table): Translate 0240 to
3388 an unbreakable space.
3390 * troff/token.h (token::hyphen_indicator): New function.
3391 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3393 * troff/input.c (translate): Allow translation to \%.
3394 * troff/node.c (node::add_char): Handle
3395 TRANSLATE_HYPHEN_INDICATOR.
3396 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3398 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3401 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3403 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3405 * groff.c (run_commands): If the last command gets a SIGPIPE send
3406 a SIGPIPE to all children than haven't yet terminated. When
3407 command terminates, set pid field to -1.
3409 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3411 * groff.c (main): Pass an appropriate -filename option to gxditview.
3413 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3415 * Makefile.bd (install): Remove existing program before copying.
3417 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3418 programs which have Unix counterparts to be installed with
3419 user-specified prefix.
3421 * troff/input.c (exit_troff): Don't check if exit_started.
3422 (exit_request): Don't call exit_troff if exit_started.
3424 * Makefile.bd (install.mm): Rename to install.dwbmm.
3426 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3428 * driver/input.c (do_file): Add missing break for '#' case.
3430 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3432 * troff/input.c (input_stack::clear): Clear past any boundaries and
3433 then add the boundaries back.
3435 * troff/input.c (exit_troff): Return immediately if already
3438 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3440 (pg*end-page): If the text has ended and there are no more
3441 footnotes or keeps, exit.
3443 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3445 * troff/input.c (init_charset_table): Make \(rq transparent by
3448 * macros/tmac.an: Define lq and rq strings.
3450 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3452 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3454 * troff/env.c (environment::final_break): New function.
3455 (environment::newline): Set prev_line_interrupted to 2 if
3457 * troff/env.h: Declare environment::final_break.
3458 * troff/input.c (exit_troff): Call environment::final_break()
3459 instead of environment::do_break().
3461 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3462 doesn't already exist.
3463 * macros/man.local: New file.
3464 * macros/tmac.an: Load man.local.
3465 * macros/man.ultrix: New file.
3467 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3469 * troff/input.c (exit_groff): Rename to...
3470 (exit_troff): New function.
3472 * troff/div.c (exit_started, done_end_macro,
3473 seen_last_page_ejector): New global variables.
3474 (began_page_in_end_macro): New static variable.
3475 (exit_flag): Deleted.
3476 (top_level_diversion::top_level_diversion): Initialize
3478 (top_level_diversion): More elaborate test for whether
3479 cleanup_and_exit() should be called.
3480 Set began_page_in_end_macro if the end macro isn't yet finished.
3481 * troff/div.h (top_level_diversion::last_page_count): New data
3483 (top_level_diversion::set_last_page): New function.
3484 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3485 * troff/env.c (do_break): Zero prev_line_interrupted.
3486 * troff/input.c (exit_flag): Delete declaration.
3487 (LAST_PAGE_EJECTOR): New magic cookie.
3488 (token::next): Handle LAST_PAGE_EJECTOR.
3489 (exit_groff): Set exit_started and done_end_macro instead of
3490 exit_flag. Call top_level_diversion::set_last_page. Push a
3491 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3492 another ejection after setting seen_last_page_ejector.
3494 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3496 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3498 * macros/tmac.e (TH): Make sure there's room for the initial
3501 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3502 Set FVS in points rather than units.
3504 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3506 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3507 position of empty slots.
3509 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3511 * ps/devps/S: Fix height and depth of parenrightex.
3512 * ps/devps/symbol.diff: Regenerate.
3514 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3516 * tmac.e (u): Do underlining as in -mgs.
3518 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3520 * tty/tty.c (tty_printer::end_page): If overstriking is
3521 suppressed, still turn overstruck horizontal and vertical lines
3524 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3527 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3529 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3531 * Version 1.05 released.
3533 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3535 * tty/tty.c: Instead of keeping an array of glyphs and then
3536 sorting it, keep a ordered linked list of glyphs for each line.
3538 * driver/driver.h: Include stddef.h.
3540 * tty/tty.c (compare_glyph):
3541 * refer/refer.c (rcompare):
3542 * troff/env.c (compare_ranges): Arguments of qsort comparison
3543 function should be const void *.
3545 * troff/number.c (parse_term):
3546 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3549 * refer/label.y (consider_authors): Don't access variables
3550 constructed under a condition outside that condition: put braces
3551 round for statement containing declaration; redeclare use of same
3554 * pic/pic.y (text_expr): Delete production that allows
3555 parenthesised text_expr.
3556 (expr): Allow a conditional_expr to appear in parentheses.
3557 (conditional_expr): Rename to any_expr.
3559 * mm: Install new version 1.01 from jh.
3561 * lib/font.c (font::get_width): Cache scaled widths.
3562 (font::font): Initialize widths_cache.
3563 (font::~font): Destroy widths_cache.
3564 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3566 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3568 * c++test.c, c++test.ref: New files.
3569 * Makefile: Check that the C++ compiler works.
3571 * ps/tmac.pspic (PSPIC): Do a break.
3573 * ps/tmac.ps: Move definition of PSPIC into...
3574 * ps/tmac.pspic: New file.
3575 (PSPIC): Draw box around picture, but make it invisible to grops.
3576 * ps/tmac.ps: Load tmac.pspic.
3577 * ps/Makefile: Install tmac.pspic.
3579 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3581 * lib/font.c (scale_round): If n is negative,
3582 subtract .5 before truncating floating point result.
3584 * lib/fontfile.c: Include <errno.h>.
3586 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3588 * driver/input.c (get_char): Inline. Don't update current_lineno.
3589 Change callers to up date current_lineno if necessary.
3590 Use get_char() instead of getc(current_file).
3592 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3594 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3596 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3598 * tty/tty.c (tmac.tty): Define \(rg as (R).
3600 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3602 * lib/lib.h: New define a_delete.
3603 * Use a_delete instead of delete when deleting an array of objects
3604 without destructors.
3606 * lib/lib.h: Rename adelete to ad_delete.
3607 * Change uses of adelete.
3609 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3611 * eqn/eqn.y: Include lib.h.
3613 * troff/node.c (grow_font_table): Delete old_font_table.
3615 * mm: Install new version from jh.
3617 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3619 * tbl/table.h (format_type): Make global instead of local to class
3620 entry_format. Prefix enumerators with FORMAT_.
3621 * tbl/table.c, tbl/main.c: Corresponding changes.
3622 * refer/token.h (token_type): Make global. Prefix enumerators
3624 * refer/token.[ch]: Corresponding changes.
3625 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3627 * troff/div.c (node::set_vertical_size): Don't name argument.
3629 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3631 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3632 * lib/lib.h: Define adelete accordingly.
3633 * pic/object.c (graphic_object::graphic_object):
3634 * tbl/main.c (format::~format):
3635 * tbl/table.c (table::~table):
3636 * refer/ref.c (reference::~reference, reference::merge,
3637 reference::insert_field, reference::delete_field): Use adelete.
3639 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3641 * tbl/table.h: Corresponding changes.
3643 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3644 Ensure total_angle is positive.
3646 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3648 * refer/ref.c (reference::merge, reference::insert_field,
3649 reference::delete_field): Avoid delete[0].
3651 * refer/token.c (init_special_chars): Move calls to cmupper
3652 outside calls to init_two_char_letter to work around bug in gcc
3655 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3657 * lib/new.c (operator new): Use __builtin_new for g++.
3659 * pic/object.c (graphic_object::~graphic_object): Don't use
3662 * pic/object.c (output::compute_scale): Initialize max_width and
3665 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3667 * troff/input.c (write_request): Call fflush.
3669 * troff/node.h (class composite_node): Move declaration to node.c
3670 * troff/input.c (charinfo_to_node): Rename to ...
3671 (charinfo_to_node_list): Return node list rather than composite
3673 * troff/node.c (make_composite_node): New function.
3674 (make_node, add_char): Call make_composite_node instead of
3676 (class composite_node): Add a tfont * member. Delete font_size
3678 (composite_node::composite_node, composite_node::copy,
3679 composite_node::size): Corresponding changes.
3680 (composite_node::tprint): Provide constant spacing, emboldening
3681 and track kerning as specified in tfont.
3682 (composite_node::width): Change width calculation accordingly.
3683 * troff/env.h (environment::composite): New member.
3684 (environment::is_composite, environment::set_composite): New
3686 * troff/env.c (environment::environment): Initialize composite.
3687 * troff/input.c (charinfo_to_node): Call
3688 environment::set_composite.
3689 * troff/node.c (make_composite_node, make_glyph_node): Use the
3690 plain version of the tfont if the environment is composite.
3692 * troff/node.c (font_info::get_space_width): Additional argument
3693 giving space_size. Handle constant space correctly. Scale by
3694 space_size unless constant spaced.
3695 (env_sentence_space_width): New function.
3696 * troff/node.h: Declare it.
3697 * troff/env.h (environment::get_space_size,
3698 environment::get_sentence_space_size,
3699 environment::get_narrow_space_width,
3700 environment::get_half_narrow_space_width): Make inline.
3701 (environment::get_space_width): Make inline. Just call
3703 * troff/env.c: Delete definitions for funtions made inline.
3704 (environment::space_newline, environment::space): Use
3705 env_sentence_space_width(). Don't scale by space_size.
3706 * troff/node.h: Move declarations of env*space_width() functions
3709 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3711 * macros/tmac.s (PS): Don't try to set negative indent.
3713 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3715 * pic/pic.y: Fix min function.
3717 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3719 * man/mdate.sh: Clear LANGUAGE.
3721 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3723 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3724 * pic/lex.c: New COMMAND keyword.
3725 * pic/pic.y (print_args, print_arg): New rules.
3726 (placeless_element): Use print_args for PRINT.
3727 New COMMAND element.
3729 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3731 * troff/input.c (terminal): Handle missing argument correctly.
3733 * pic/pic.y (text_expr): New rule.
3735 * pic/pic.y: Implement := operator.
3737 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3739 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3742 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3744 * ps/devps/dingbatsrmap: Include this in the distribution.
3746 * macros/tmac.doc: Replace with new version from 2nd Networking
3747 Release. Fix loading of doc-* files.
3748 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3749 * macros/tmac.doc.old: New file. Apply fixes that had been
3750 applied to old tmac.doc.
3751 * macros/tmac.andoc: Check that we're running under groff.
3752 * macros/Makefile: Rework.
3754 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3756 * tbl/table.h (format_type):
3757 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3758 typedef to make these types visible at file scope.
3759 * Makefile: Add NESTED_TYPES configuration option.
3761 * troff/div.c (mark): At the top level use the value of
3762 nl_reg_contents rather than the current vertical position.
3764 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3766 * tty/tty.c: Implement \D for horizontal or vertical lines.
3767 (tty_printer::set_char): Use vec_used+2 as serial number.
3768 Don't allow size of vector to exceed USHRT_MAX-2.
3769 Split off part into...
3770 (tty_printer::add_char): New function.
3771 (tty_printer::draw): New function.
3772 (compare_glyph): Handle equal serial numbers.
3773 (tty_printer::end_page): Handle overstruck characters from \D.
3774 (main, usage): Implement -d option.
3776 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3778 * tbl/main.c (process_format):
3779 * eqn/text.c (split_text):
3780 * troff/input.c (token::next): Use inner block for declarations
3781 with initializers in switch statement.
3783 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3785 * pic/common.c (common_output::dash_line): Cope with zero-length
3788 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3790 * Version 1.04 released.
3792 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3794 * macros/tmac.an (TH): Define a macro an-init to define variables
3795 based on command line arguments.
3796 (an-header): Call it.
3798 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3800 * Makefile (install.mm): Rename to install.dwbmm.
3802 * Makefile: Integrate mm.
3803 * mm: New directory.
3805 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3807 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3810 * pic/troff.c (troff_output::simple_spline,
3811 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3812 shadowing parameter.
3814 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3816 * lib/ptable.h: Add explicit casts when converting from unsigned
3819 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3820 * dvi/devdvi/Makefile: Install SA, SB.
3822 * refer/indxbib.c: Add declaration of mktemp.
3824 * refer/lookbib.c: Add declaration of isatty.
3826 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3828 * pic/lex.c (interpolate_macro_with_args): While collecting
3829 arguments, keep track of whether we're in a string.
3831 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3833 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3834 down with \v, so as to avoid problems with top of page trap
3835 setting no space mode.
3837 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3839 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3841 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3843 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3844 Improve error message.
3846 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3848 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3851 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3853 * groff.c (possible_command::execp): Always use _exit() after a
3856 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3857 NO_SYS_WAIT_H configuration options.
3858 * groff.c: Use these options. Use POSIX-style macros to extract
3859 fields from the status returned by wait().
3861 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3863 * tbl/table.c (table::compute_separation_factor): Allow the
3864 separation factor to drop to 0.
3866 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3868 * refer/search.c: Include <errno.h>.
3870 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3872 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3874 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3877 * pic/lex.c (input_stack::bol): Move definition out of class body.
3879 * pic/main.c: On MSDOS munge argv[0].
3881 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3883 * lib/ptable.c (hash_string): Use unsigned long rather than
3885 (next_ptable_size): Use unsigned rather than int. Give an error
3886 message if we've hit the largest table size.
3887 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3890 * pic/object.h (object_spec): Make flags unsigned long. Declare
3891 flags as const unisgned long rather than as enums.
3893 * pic/output.c: Deleted.
3895 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3897 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3898 Add additional argument.
3899 (line_entry::note_double_vrule_on_{left,right}): Set value of
3900 douvle_vrule_on_{right,left} flag according to argument.
3901 (simple_line_entry::simple_print,
3902 simple_line_entry::double_line_print): If adjacent to double vrule
3903 on a corner extend rather than shorten the rule by half the double
3906 * troff/number.c (parse_term): In checking for overflow, handle the
3907 case where the current horizontal position is negative.
3909 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3911 * pic/object.c (draw_arrow): Check for object having zero length.
3913 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3915 * eqn/main.c (do_file): Split off inline equation handling into...
3916 (inline_equation): New function. Search for starting delimiter
3918 (delim_search): New function. Don't recognize a delimiter that
3919 occurs in the name of an escape sequence, number register, string
3922 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3924 * eqn/delim.c (delim_box::compute_metrics): Don't call
3925 define_extensible_string if left is 0.
3926 (delim_box::output): Don't print the left delimiter if left is 0.
3927 (delim_box::debug_print): Check for left == 0 before calling printf.
3929 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3931 * troff/Makefile (majorminor.c): Include only digits in
3934 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3936 * refer/dirnamemax.c: new file.
3937 * refer/genlimits.c: Deleted.
3938 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3939 Don't check path length.
3940 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3941 * Makefile: Add PATHCONF_MISSING option.
3943 * refer/indxbib.c (get_cwd): New function.
3944 (main): Use get_cwd().
3945 * lib/getcwd.c: New file.
3946 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3948 * lib/Makefile: Compile getcwd.o.
3950 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3953 * refer/indxbib.c (main): Check success of mktemp.
3955 * lib/tmpfile.c: New file.
3956 * lib/Makefile: Add tmpfile.c.
3957 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3958 * ps/ps.h: Delete declaration of mktemp().
3959 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3960 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3961 * driver/driver.h: No need now to include errno.h.
3963 * everywhere: Set errno to 0 before calling fopen().
3965 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3966 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3967 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3969 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3971 * troff/env.h (translate_space_to_dummy): Declare it.
3972 * troff/env.c (environment::space_newline, environment::space):
3973 If translate_space_to_dummy is set then make the width of spaces 0.
3974 * troff/input.c (translate): If the second character of a
3975 translation is a space, translate to unbreakable space. If the
3976 first character is a space, set or clear translate_space_to_dummy
3977 according to whether the second character is \&. Weird!
3979 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3981 * groff.c (run_commands): Don't use non-zero exit code because a
3982 command gets SIGPIPE.
3984 * groff.c, groff.sh: Use -mXps with -TXps.
3986 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3987 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3988 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3989 (ps_printer::special): New specials invis and endinvis.
3990 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3991 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3992 (ps_printer::end_page): Check that invis_count == 0.
3993 (ps_printer::invis_count): New member.
3994 (ps_printer::ps_printer): Initialize invis_count to 0.
3996 * troff/env.c (environment::hyphenate_line): Hyphenation
3997 indicator at beginning of word inhibits splitting after -, \(em
4000 * pic/pic.y (element): Allow another element to follow } without
4001 any intervening separator.
4003 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
4005 * pic/lex.c (get_delimited): Allow tabs before delimiter.
4007 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
4009 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
4010 declaration of wait() in header files.
4011 * Makefile: Get rid of -DHAVE_UNION_WAIT.
4013 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4015 * lib/lib.h: Declare return type of strerror as char *.
4017 * man/Makefile: Add g flag to sed substitutions.
4018 * Makefile (shgroff, bindist): Likewise.
4020 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
4022 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4023 * ps/devps/prologue (PBEGIN): Define showpage after pushing
4026 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
4028 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4031 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
4033 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4036 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
4038 * troff/input.c (define_number_reg): If currently undefined,
4039 don't define it if the argument is an invalid expression.
4041 * Makefile: Ignore return value of `if' commands without `else'
4044 * Makefile: Split up CPPDEFINES into a series of separate
4045 configuration options.
4047 * troff/input.c (init_registers): Use time_t instead of long
4048 unless LONG_FOR_TIME_T is defined. Use returned result rather
4049 than passing pointer.
4050 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4052 * lib/Makefile (fontpath.h): Use gendef.
4054 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
4056 * troff/input.c (input_iterator::shift): Delete argument name.
4057 * troff/node.c (suppress_output_file::really_begin_page,
4058 suppress_output_file::really_transparent_char, node::ascii_print,
4059 node::tprint): Delete names of unused arguments.
4061 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
4063 * refer/label.y (string): Pass $4 to command_error.
4065 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
4067 * Version 1.03 released.
4069 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
4071 * Makefile: Pass definition of SHELL in SUBFLAGS.
4074 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4075 ps/Makefile: Use gendef to construct header files that are
4076 constructed from the Makefile.
4078 * macros/Makefile: make all should build stripped version of tmac.e.
4080 * refer/Makefile (clean): Remove y.output.
4082 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
4084 * ps/pfbtops.c (main): Add -v option which prints out a version
4086 * ps/Makefile (pfbtops): Link with libgroff.a.
4088 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
4090 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4091 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4093 * refer/lkbib.c (main): Always terminate reference with blank
4095 * refer/lookbib.c (main): Likewise.
4097 * refer/linear.c (file_buffer::load): Check that the file is not a
4100 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4101 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4102 Delete second inclusion of <sys/param.h>.
4104 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
4106 * troff/token.h (token::special): Deleted.
4108 * tbl/main.c (process_format): Rework so that opt->tab_char is
4109 recognized only when appropriate.
4111 * ps/Makefile (clean): Remove pfbtops.
4113 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
4115 * lib/font.c (text_file::next): Don't return if we have got a
4118 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
4120 * refer/refer.c (store_reference): Get hash code from old_table[i]
4121 when rehashing the table.
4123 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
4125 * eqn/box.c (box::top_level): Save size and prev size using \R and
4126 restore it afterwards. Set the size to the size at the beginning
4128 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4129 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4131 * refer/Makefile (limits.h): Use ./genlimits.
4133 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
4135 * refer/index.c: Delete declarations of stat() and fstat().
4137 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
4139 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4141 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
4143 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4145 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
4147 * troff/input.c (token::get_char): Handle \e.
4149 * refer/linear.c: Delete declarations of fstat() and stat().
4151 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
4153 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4154 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4156 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
4158 * troff/input.c (do_define_macro): Improve error handling for end
4159 of file while defining macro.
4161 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
4163 * eqn/box.h: Fix declaration of set_gsize.
4164 * eqn/box.c (set_gsize): Make argument const char *.
4165 (gsize): Declare as char *.
4166 * eqn/main.c (main): Don't convert gsize to int.
4167 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4169 * Version 1.02 released.
4171 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
4173 * macros/tmac.andoc: New file.
4174 * macros/Makefile: Install tmac.andoc.
4176 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4177 operator new and delete on OP_DELETE_BROKEN not being defined.
4178 * Makefile: Mention OP_DELETE_BROKEN.
4180 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
4182 * Makefile (bindist): Pass SUBFLAGS.
4184 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
4186 * Makefile, groff.c: Pass definitions to groff.c via device.h.
4188 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4191 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4193 * ps/ps.h, ps/psrm.c: Make comment_table and
4194 header_comment_table local to resource_manager::process_file.
4196 * groff.sh: With -TXps pass -printCommand option to gxditview.
4198 * groff.c (possible_command::print): Implement using
4199 append_arg_to_string.
4201 * xditview: Merge in new implementation with own ChangeLog.
4203 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
4205 * groff.c (main): Implement PRINT_OPTION.
4206 (append_arg_to_string): New command.
4207 (device_table): Set PRINT_OPTION flag for Xps.
4209 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
4211 * troff/groff.h: Rename to troff.h.
4213 * pic/lex.c (lookup_keyword, docmp): New functions.
4214 (get_token): Use new lookup_keyword.
4215 Don't include key.h.
4216 * pic/key.[ch], pic/pic.gperf: Deleted.
4217 * pic/Makefile: Remove gperf stuff.
4219 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4221 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4223 * troff/Makefile, troff/node.c: Move definition of
4224 STORE_WIDTH into node.c.
4226 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4228 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4230 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4231 dvi/devdvi/texb.map: Add lq and rq.
4232 dvi/devdvi: Regenerate fonts.
4233 * ps/devps/textmap: Add lq and rq.
4234 * ps/devps: Regenerate fonts.
4235 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4236 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4238 * pic/object.c (position_rectangle): When checking radius
4239 cope with possiblity that width or height is negative.
4240 (box_object::box_object): Have separate xrad and yrad with
4241 signs matching signs of dim components.
4242 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4243 (box_object::print): With rounded boxes use absolute values
4244 for dim and rad arguments.
4246 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4249 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4251 * various files: Add explicit destructors to keep Saber CC +d
4254 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4256 * eqn/box.c (box::top_level): Restore fonts correctly after
4257 font changes in line containing inline equation. Also
4258 restore previous font as well as current font.
4259 * eqn/pbox.h: Define necessary string and register names.
4261 * troff/input.c (token::next): Case 'R' calls do_register.
4262 (do_register): New function.
4264 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4266 * groff.c, groff.sh: Support Xps device. Allow each device
4267 to have a pseudo_name and a real_name.
4269 * groff.c (run_commands): Don't print `Broken pipe' messages.
4271 * ps/pfbtops.c: New file.
4272 * ps/Makefile: Add pfbtops.
4274 * troff/number.c (parse_term): Improved error message.
4276 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4278 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4280 * Makefile: Integrate refer.
4281 * refer: New directory.
4282 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4283 man/lkbib.man: New files.
4284 * man/Makefile: Support refer man pages.
4286 * lib/lib.h: Declare is_prime.
4287 * lib/prime.c: New file.
4289 * troff/input.c (macro_source): New function.
4290 (init_input_requests): Bind "mso" to macro_source.
4292 * troff/env.c (environment::possibly_break_line): Maintain
4293 pointer to pointer to node to be split in ndp so as to avoid
4294 using address of freed node.
4296 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4297 pointer to first node to be hyphenated in startp so as to
4298 avoid using address of freed node.
4300 * troff/env.c (class trie, class hyphen_trie): Make the
4301 elements of the trie be of type char not unsigned char.
4302 Declare arguments to be const char* instead of unsigned char *.
4304 * troff/env.c (hyphenate): Initialize hbuf[0].
4306 * troff/input.c (set_string): Declare p to be char * and cast
4307 *p to unsigned char when necessary.
4309 * troff/input.c (do_define_macro): Declare s to be const
4310 char*. Cast element to unisgned char when necessary, Declare
4311 d to be an int. Handle EOF better.
4313 * troff/Makefile, troff/input.c: Different scheme for passing
4314 definitions of MACROPATH, HYPHENFILE and DEVICE.
4316 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4318 * tty/devascii/R.proto: Delete entry for em.
4319 * tty/devlatin1/R.proto: Likewise.
4321 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4323 * troff/input.c (translate): Stop when we get a space. Treat eof
4326 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4328 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4330 * tbl/main.c (process_format): A font name following a `f'
4331 modifier that starts with a digit can be only one character long.
4332 Also deal with EOF on the second character of the font name.
4334 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4336 * troff/input.c (token::next): Turn \~ into an
4337 unbreakable_space_node.
4338 * troff/node.c (unbreakable_space_node): New class.
4339 * troff/node.h: Declare it.
4341 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4343 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4344 it's >= 0, before outputting it as a single byte.
4346 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4348 * lib/font.c: Make font_char_metric::code an int.
4349 (font::get_code): Change return type to int.
4350 (font::load): Allow code to be arbitrary integer.
4351 * lib/font.h (font::get_code): Change return type to int.
4352 (font::number_to_index): Change argument type to int.
4353 * troff/input.c (token::next): In case 'N', allow any value.
4354 Store value in token::val.
4355 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4356 (token::get_char, token::add_to_node_list, token::process): Get
4358 (charinfo::set_number): Change argument to int.
4359 (charinfo::get_number): Require that NUMBERED flag be set.
4360 (get_charinfo_by_number): Store numbered characters not between 0
4361 and 255 in a dictionary.
4362 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4364 (charinfo::number): Change type to int.
4365 (charinfo::set_number): Change type of set_number to int.
4366 * troff/node.c (troff_output_file::put_char_width,
4367 troff_output_file::put_char): Test whether character is numbered
4368 using charinfo::numbered().
4369 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4371 * lib/nametoindex.c: New implementation to cope with arbitrary
4374 * troff/input.c (token::operator==): Test val for
4375 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4378 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4379 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4381 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4383 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4386 * all Makefiles: rm targets of cp and >.
4388 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4391 * eqn/lex.c (def_table): Add dollar.
4393 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4395 * troff/input.c (do_width): Push back newline before closing delim
4398 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4400 * groff.c (possible_command::prepend_arg): New function.
4401 (main): Prepend device -m option.
4402 * groff.sh: Put device -m options before command-line options.
4404 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4406 * macros/tmac.an (IP): Quote argument to TP.
4408 * ps/ps.c (main): New option -b, which sets...
4409 (broken_flags): New variable.
4410 (ps_printer::~ps_printer): Incorporate the setup section in the
4411 prolog if (broken_flags & NO_SETUP_SECTION).
4412 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4413 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4414 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4415 ps_printer::print_needed_font_comment,
4416 ps_printer::print_supplied_font_comment,
4417 ps_printer::print_include_font_comments,
4418 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4419 ps_printer::read_download_file, read_document_fonts, add_font,
4420 skip_line, parse_fonts_arg, document_font::document_font,
4421 document_font::~document_font, document_font::download,
4422 ps_output::include_file): Deleted.
4423 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4424 rather than %!PS-Adobe-2.0. Make calls to
4425 resource_manager::need_font for each font that we used. Replace
4426 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4427 print_supplied_font_comment, print_needed_font_comment by call to
4428 resource_manager::print_header_comments. Output %%Orientation
4429 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4430 Don't output the prolog directly. Instead call
4431 resource_manager::output_prolog. Only define #copies when ncopies
4432 > 1. Delete calls to print_include_font_comments and
4433 download_fonts. Add call to resource_manager::document_setup.
4434 (ps_printer::do_file): Call resource_manager::import_file instead
4435 of including it ourselves.
4436 (ps_printer::do_import): Likewise. Also don't call
4437 merge_import_fonts. Push userdict on the dictionary stack before
4438 and pop it afterwards.
4439 Move declaration of ps_output into ps.h.
4440 * ps/psrm.c: New file implementing resource_manager class.
4441 * ps/ps.h: New file declaring ps_output and resource_manager
4443 * ps/devps/zapfdr.ps:
4444 * ps/devps/symbolsl.ps:
4445 * ps/devps/prologue: Use 3.0 conventions.
4446 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4447 Add default definition of BROKEN_SPOOLER_FLAGS.
4448 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4449 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4451 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4453 * etc/grog.pl: New file.
4454 * Makefile (GROG): New variable.
4455 Add GROG to SUBFLAGS.
4456 * etc/Makefile (GROG): New variable.
4457 (install.nobin): Install $(GROG) rather than grog.sh.
4459 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4461 * eqn/special.c (special_box::compute_metrics): Make the input and
4462 output strings the same. Get the new height and depth from the
4463 predefined height and depth registers. Also make subscript kern
4465 (special_box::compute_subscript_kern, special_box::compute_skew):
4468 * eqn/box.c (pointer_box::compute_skew,
4469 simple_box::compute_metrics, box::top_level)
4470 * eqn/text.c (prime_box::compute_metrics,
4471 prime_box::comput_subscript_kern)
4472 * eqn/limit.c (limit_box::compute_metrics):
4473 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4474 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4475 negative numbers in `nr' requests with a leading 0.
4477 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4479 * eqn/special.c: New file.
4480 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4481 Add new rule for simple.
4482 * eqn/lex.c (token_table): Add SPECIAL.
4483 * eqn/box.h: Declare make_special_box.
4484 * eqn/Makefile: Add special.[co].
4486 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4488 * ps/devps/prologue: Possibly set packing to true while defining.
4489 Create grops dictionary here. Initialize local variables before
4490 defining procedures.
4491 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4492 the dictionary stack. Set strokeadjust and overprint to false if
4493 the relevant operators are defined.
4494 (PEND): New procedure.
4495 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4496 prologue. Do everything else in the setup section.
4497 (ps_printer::do_import): Just call PBEGIN and PEND around the
4498 picture. Also push userdict before, and pop it afterwards.
4500 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4502 * troff/node.c (bracket_node::tprint): Brackets were being printed
4505 * macros/tmac.an (SH, SS): Set fill mode.
4507 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4509 * troff/div.c (top_level_diversion::begin_page): Set
4510 high_water_mark to 0.
4512 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4514 * man/mdate.sh: New file.
4515 * man/mdate.c: Deleted.
4516 * man/Makefile: Use mdate.sh instead of mdate.
4519 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4521 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4523 * man/mdate.c: New file.
4524 * man/*.man: Replace modification date by @MDATE@.
4525 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4526 (mdate): New target.
4528 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4529 Remove illegal input characters.
4531 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4533 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4535 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4537 * troff/div.c (begin_page): Change behaviour when
4538 !first_page_begun and !break_flag.
4540 * troff/input.c (do_name_test): Return 0 if argument is empty.
4542 * troff/input.c (read_long_escape_name): Require closing ] to be
4543 at same input level as opening [.
4545 * troff/input.c (read_increment_and_escape_name): New function.
4546 (get_copy, process_input_stack): Use this for \n.
4548 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4550 * troff/div.c (top_level_diversion::begin_page): Ignore the
4551 current value of page_number if !first_page_begun.
4553 * groff.c (main): Fix declaration of buf.
4555 * troff/input.c (do_name_test): New function.
4556 (token::next): Implement \A.
4557 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4558 (token::description, token::add_to_node_list, token::process):
4559 Handle TOKEN_ESCAPE.
4560 * troff/token.h: New token TOKEN_ESCAPE.
4562 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4564 * pic/main.c (do_picture): Allow space before and after filename
4565 following `<'. Check that the filename is not empty.
4567 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4569 * Version 1.01 released.
4571 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4573 * dvi/tmac.dvi: ftr HR to H.
4575 * macros/tmac.e: Round up computation of $r.
4577 * xditview/tmac.X: Don't give up completely in compatibility mode.
4578 Use \n(.s instead of \n[.s].
4580 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4581 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4582 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4583 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4584 short names in the char definitions.
4586 * ps/tmac.ps: Don't give up completely in compatibility mode.
4587 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4588 quote in front of \n(.s. Add u to factors inside \s[...].
4590 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4592 * tty/tmac.tty: Call the nroff request.
4594 * macros/tmac.e ((x, )x): Better definitions that work properly
4596 (@0, @1): Helper macros for (x.
4598 * macros/tmac.e ($s, hl): Use \l rather than \D.
4600 * tty/tmac.tty: Make it work better in compatibility mode.
4601 (pchar): Rename to tty-char.
4603 * macros/tmac.e (@E): New macro.
4604 (r, i, b, rb, bi): Use @E.
4606 * macros/tmac.e (@F): Don't use (;...) syntax.
4608 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4609 it was modified for groff.
4611 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4613 * macros/tmac.e (<., .>): Removed.
4614 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4616 * macros/tmac.e: Remove check that groff is being used.
4618 * macros/tmac.e (@C): Change families only if using groff; turn
4619 compatibility mode off while changing familes. Save compatibility
4620 mode before changing families and restore it afterwards.
4622 * macros/tmac.e (@h): Remove test for offset + line length.
4624 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4625 (lo, th, ac): Define to call @S instead of using als.
4627 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4628 the ratio of the vertical spacing to the point size in units
4629 expressed as a percentage. Use these instead of $10r and $10R,
4630 Delete $10r and $10R.
4632 * lib/font.c (font::load): In default computation of space_width,
4633 divide by sizescale. Use scale_round.
4635 * macros/tmac.an (TP): Don't call `nf'.
4636 (an-do-tag): Don't call `fi'.
4638 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4640 * troff/input.c (process_input_stack): Handle the case where
4641 spaces at the beginning of an input line are followed by a
4644 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4646 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4647 * groff.sh: Use pic -x with the dvi device.
4649 * dvi/devdvi/FontMakefile (H): Don't use -s.
4651 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4652 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4653 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4656 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4658 * ps/psfig.diff: New file.
4659 * ps/tmac.psfig: New file.
4661 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4663 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4664 (]-): Don't call ref*do-tl.
4666 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4668 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4669 (fn@do-FS): Rename to fn*do-FS.
4671 * troff/input.c (transparent_translate): New function.
4672 (process_input_stack): Apply transparent_translate before calling
4673 diversion::transparent_output(unsigned char).
4675 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4677 * troff/input.c (do_define_macro): Define the macro before calling
4680 * xditview/Makefile: Add DEVICES variable. Change install target
4683 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4685 * groff.c (run_commands): Handle the possibility that there are
4686 child processes other than those forked by us.
4688 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4690 * lib/string.c (string::append): New function.
4691 * lib/stringclass.h: Declare it.
4693 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4695 * eqn/main.c (main): New option -N which sets
4696 no_newline_in_delim_flag.
4697 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4699 * groff.c (main): Pass -N on to eqn.
4700 (help, synopsis): Mention -N.
4701 * groff.sh: Implement -N.
4703 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4705 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4706 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4707 (XP): Allow as initializer.
4709 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4711 * troff/env.c (environment::wrap_up_field): If field_spaces are
4712 non-zero and we have a current_tab, subtract padding from
4713 tab_distance. If this makes tab_distance <= 0, use the next tab
4714 stop instead. If there isn't any next tab or it's a left tab,
4715 wrap up the current tab.
4716 (environment::start_field): Initialize tab_precedes_field.
4717 (environment::wrap_up_tab): If there's a current field, update
4718 pre_field_width, field_distance and tab_precedes_field.
4719 * troff/env.h (environment::tab_precedes_field): New member.
4721 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4723 * ps/ps.c (ps_printer::do_file): New function.
4724 (ps_printer::special): Bind to `file' special.
4725 (ps_printer::do_exec): Set ndefined_styles to 0.
4727 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4729 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4730 Avoid stripping first character from the start of unrecognized
4731 escapes. Use lex_error instead of error to report errors.
4732 * eqn/lex.c (get_token): Rework handling of escapes.
4733 (lex_error): Move declaration into...
4736 * xditview/xditview.c (main): Make -page option work.
4738 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4740 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4742 * macros/tmac.s (B2): Correct size of box.
4744 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4746 * macros/tmac.s (B2): Postpone drawing the box until in the
4747 top-level diversion.
4749 * tty/tmac.tty: Add font translations for C, CR, CW.
4751 * groff.c (synopsis, help): Document -i.
4752 * groff.sh: Implement -i.
4754 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4755 Simplify the construction of SN.
4757 * troff/number.c (parse_term): Give `|' a higher precedence.
4758 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4761 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4763 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4765 * lib/string.c (string::move): New function.
4766 * lib/stringclass.h: Declare it.
4768 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4770 * troff/env.c (distribute_space): Add optional argument
4772 (environment::wrap_up_field): Call distribute_space with
4773 `force_forward' argument of 1.
4775 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4777 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4778 Inline it. Move reallocation into...
4779 (string::grow1): New function.
4780 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4781 dependencies to include library header files.
4782 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4784 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4786 * macros/tmac.s (@NH): Use the same number registers than -ms does
4787 for the heading level counters. Use the same string that -ms does
4788 for the number for this heading.
4790 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4792 * lib/new.c (operator new): Cast result of malloc to char *.
4794 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4797 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4799 * groff.c (main): Support -i.
4801 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4803 * pic/pic.h: Include <osfcn.h>.
4805 * ps/ps.c: Add declaration of mktemp.
4807 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4808 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4809 argument as union wait *.
4810 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4811 argument to union wait *.
4813 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4815 * tty/tmac.tty: Add definition of \(co.
4817 * pic/object.c (make_arc): Only increase radius when radius
4818 strictly less than d.
4819 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4822 * troff/env.c (environment::environment(symbol),
4823 environment::environment(const environment *)): Initialize
4826 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4828 * tbl/main.c (main): Add exit(0).
4830 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4832 * pic/main.c (main):
4833 * eqn/main.c (main):
4834 * tbl/main.c (main):
4835 * etc/soelim.c (main):
4836 * driver/printer.c (printer::~printer):
4837 * troff/node.c (real_output_file::~real_output_file,
4838 real_output_file::flush): Check for errors on stdout.
4840 * most files: Add 1991 to copyright notice.
4842 * macros/tmac.s: Don't test \n(.x and \n(.y.
4844 * troff/input.c (token::next): Rename `escape_char' label to
4845 `handle_escape_char' and `normal_char' label to
4846 `handle_normal_char'.
4848 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4850 * groff.c (main, synopsis, help): Support -a option.
4851 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4852 to trflags while parsing options.
4854 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4856 * troff/number.c (parse_term): With `m', `M' and `n' scale
4857 indicators, convert scale factor to hunits before scaling.
4859 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4861 * lib/font.c (scale_round): Better test for overflow when n is
4864 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4866 * tbl/main.c (process_format): Add second argument of type
4867 options*. Change callers. Allow opt->tab_char as well as '\t'
4868 between format items.
4870 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4872 * macros/tmac.an (PD): With no arguments, make sure register PD is
4874 (TH): Call PD with no argument, instead of setting register PD
4877 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4879 * Version 1.00 released.
4881 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4883 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4885 * dvi/devdvi/DESC: Mount CW instead of CR.
4887 * dvi/tmac.dvi: Add definition of \(tm.
4889 * dvi/devdvi/texsy.map: Add lh, and rh.
4890 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4891 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4893 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4894 * dvi/devdvi/Makefile: Install H.
4895 * dvi/devdvi/H: New file.
4897 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4899 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4902 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4904 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4906 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4908 * macros/tmac.s (@EN): Handle the case where the equation is empty
4909 but the label is not.
4911 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4913 * troff/groff.h: New warning category WARN_SPACE.
4914 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4915 WARN_SPACE to warning_table.
4916 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4917 is longer than two characters and is not defined, but the first
4918 two characters do make a defined name.
4920 * PROBLEMS: New file.
4922 * CHANGES: New file.
4923 * README-0.6, README-1.00: Deleted.
4925 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4926 * xditview/devX75/Makefile: Make devX75-12.
4927 * xditview/devX100/Makefile: Make devX100-12.
4929 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4930 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4932 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4934 * README-0.7: Rename to README-1.00.
4936 * macros/tmac.pic: New file.
4937 * macros/Makefile (install.nobin): Install tmac.pic.
4939 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4941 * troff/env.c (hyphen_word): Correct the test for whether the
4942 token is a hyphen. Reset npos to 0.
4944 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4946 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4948 * macros/tmac.s (ds*common-end): Call par*reset.
4950 (par@reset-indent): Deleted.
4952 * macros/tmac.s (@IP): Divert the label.
4954 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4956 * xditview/draw.c (setGC): Use a line width of .1m rather than
4957 .04m by default; round rather than truncate value.
4959 * tbl/table.c (class empty_entry): New class.
4960 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4961 (table::add_entry): Represent empty entries by objects of type
4963 (table_entry::line_type): Return -1.
4964 (table::determine_row_type): Ignore entries with line_type 0.
4965 Treat type -1 as non-lines.
4967 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4969 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4970 macros/tmac.s: Rename \(-d to \(Sd.
4972 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4974 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4975 * xditview/libXdvi/DviChar.c: Likewise.
4976 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4978 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4980 * troff/div.c (top_level_diversion::begin_page): Call
4981 init_output() if the_output is 0.
4983 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4985 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4987 (get_copy): Turn \E into ESCAPE_E.
4988 (token::process, asciify): Handle ESCAPE_E.
4990 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4992 (DS): Implement `.DS R'.
4994 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4996 * macros/tmac.s (FS): New macro.
4998 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5000 * macros/tmac.s (cov*tl-init): Remove after first execution
5001 instead of aliasing to @nop. Call top of page macro explicitly
5002 instead of setting trap; call @init first. Set pg@top as top of
5004 (cov*auto-init): Deleted. Set cov*tl-init instead of
5005 cov*auto-init as top of page trap.
5006 (TL, LP): Do a break instead of calling cov*tl-init.
5007 (cov*print): With RP format but no TL, alias FS and FE to @FS and
5008 @FE; in this case also give a warning and always start another
5009 page. No need to set pg@top here.
5010 (cov*tl-init): Rename to cov*first-page-init.
5012 * macros/tmac.s (RP): Do `.pn 0'.
5013 (cov*tl-init): With RP format don't do `.pn 0'.
5015 * macros/tmac.s (pg@cs-top): Set no space mode.
5017 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5018 (cov*ab-init): Alias TL, AU and AI to these.
5020 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
5022 * macros/tmac.s (@EQ): Move the space before the equation into @EN
5023 (@EN): Do nothing unless \n[dl] is > 0.
5025 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
5027 * pic/object.c (ellipse_object::radius): New function.
5029 * VERSION: Change version to 0.7.
5031 * tbl/table.c (block_entry::do_divert): Declare return type as
5033 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5035 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
5037 * troff/column.c: New file.
5038 * troff/Makefile: Corresponding changes.
5040 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
5043 * troff/div.c (top_level_diversion::space): If the space causes
5044 the first-page transition and springs a trap, truncate the space
5047 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
5049 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5052 * pic/troff.c (troff_output::line_thickness,
5053 troff_output::set_fill): Do a horizontal motion to compensate for
5054 the width of the \D escape sequence.
5056 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
5058 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5061 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
5064 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5065 Supply empty definition.
5066 (text_entry::simple_print, simple_text_entry::simple_print):
5067 Delete declarations.
5068 (table::add_entry): Represent empty entries by objects of type
5071 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
5073 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5075 * tbl/table.c (left_text_entry::add_tab): New function.
5077 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
5080 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
5082 * troff/env.c (environment::start_field): Give an error message if
5083 there is no next tab.
5085 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
5087 * troff/env.c (hyphenate): Skip initial elements with zero
5090 * macros/tmac.s (par@init): Keep VS in points rather than units.
5092 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
5094 * pic/main.c (main): Implement `-c' option.
5095 * pic/output.h: Declare make_tpic_output().
5096 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5098 (tpic_output): New class.
5099 (tpic_output::tpic_output, tpic_output::set_pen_size,
5100 tpic_output::command, make_tpic_output): New functions.
5102 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
5104 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
5105 if they're not already defined.
5106 * tbl/table.c (init_output): Don't test \n(.g.
5108 * troff/input.c (do_if_request): Delete `g' condition. Recognize
5109 `d', `r' and `c' conditions even in compatibility mode.
5111 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
5113 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5116 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
5118 * troff/env.h (environment::prev_line_interrupted): New member.
5119 (environment::get_prev_line_interrupted): New function.
5120 * troff/env.c (environment::newline): Set prev_line_interrupted.
5121 (environment::environment(const environment *),
5122 environment::environment(symbol)): Initialize
5123 prev_line_interrupted.
5124 * troff/input.c (process_input_stack): Don't give special
5125 treatment to space and newline at the beginning of the line if the
5126 previous line was interrupted.
5128 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
5130 * eqn/eqn.y: Disallow PRIME by itself.
5131 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5133 (def_table): Remove definition of '. Define prime to be `.
5135 * eqn/eqn.y: Split off part of rule `script' into a new rule
5138 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
5140 * macros/tmac.s ({, }): New string aliases.
5142 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
5144 * README-0.7: New file.
5146 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
5148 * macros/tmac.s: New file.
5149 * man/groff_ms.man: New file.
5150 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5151 * Makefile.bd: Similarily.
5152 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5153 definition of TMAC_S.
5154 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5155 * macros/TODO: New file.
5157 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
5159 * troff/env.c (right_justify): New function.
5160 (init_env_requests): Bind this to request "rj".
5161 (center_lines): Set right_justify_lines to 0. If we get a bad
5162 integer, center 1 line.
5163 (environment::environment(symbol), environment::environment(const
5164 environment *)): Initialize right_justify_lines.
5165 (environment::get_right_justify_lines): New function.
5166 (init_env_requests): Bind this to number_register ".rj".
5168 * troff/env.c (environment::choose_breakpoint): Implement
5169 hyphenation_margin and hyphenation_space.
5170 (environment::get_hyphenation_space,
5171 environment::get_hyphenation_margin): New functions.
5172 (init_env_requests): Bind these to .hys and .hym.
5173 (hyphenation_space_request, hyphenation_margin_request): New
5175 (init_env_requests): Bind these to hys and hym.
5176 (environment::environment(symbol), environment::environment(const
5177 environment *)): Initialize hyphenation_margin and
5179 * troff/env.h: Corresponding changes to class environment.
5181 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
5183 * troff/div.c (blank_line): Always do a break.
5185 * eqn/box.c (do_text): Turn off escapes while appending text to
5188 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
5190 * troff/input.c (while_break_request, while_continue_request): New
5192 (init_input_requests): Bind these to "break" and "continue".
5193 (while_depth, while_break_flag): New variables.
5194 (while_request): Update while_depth. Break out of loop if
5195 while_break_flag is set.
5197 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
5199 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5202 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
5204 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
5206 * stringify: New file.
5207 * Makefile (groff.o): Use stringify.
5209 * xditview/tmac.X: Remove definition of \(rn.
5210 * xditview/libXdvi/DviChar.c: Remove radicalex from
5213 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
5215 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5216 (alphabetic_block_entry::alphabetic_block_entry,
5217 alphabetic_block_entry::divert, alphabetic_block_entry::print):
5219 (block_entry::divert): Split off body into ...
5220 (block_entry::do_divert): If the block is alphabetic, subtract 2n
5221 from the line length; also update the span width to dl+2n, and the
5222 alphabetic span width to dl.
5224 * driver/input.c (do_file): While reading argument to D command,
5225 when expanding buffer, multiply szp by sizeof(int) rather than 2
5226 in the argument to memcpy.
5228 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5229 width of alphabetic columns.
5231 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5233 * troff/node.c (lookup_family): Supply second argument to lookup.
5235 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5236 search, return immediately if v is 0.
5238 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5239 (troff_output::start_picture): Set this reg.
5240 (troff_output::end_picture): Remove this reg
5241 * eqn/box.c (box::extra_space): Don't produce `\x's if
5242 EQN_NO_EXTRA_SPACE_REG is defined.
5244 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5245 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5248 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5250 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5253 * troff/div.c (top_level_diversion::top_level_diversion):
5254 Initialize page_number to 0.
5256 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5258 * groff/troff (environment::environment(const environment *)):
5259 Initialize name to e->name, rather than "anonymous".
5261 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5263 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5264 requested_page. Split middle part into ...
5265 (FindPage): New function.
5266 (SetValues): If we don't yet know the last page, and the requested
5267 page is greater than the current page, call FindPage.
5268 Update the font_map_string before doing this.
5270 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5271 Translate \(lh and \(rh into left and right double arrows.
5273 * troff/node.c (class hyphen_inhibitor_node): New class.
5274 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5275 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5276 hyphen_inhibitor_node::type,
5277 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5278 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5279 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5282 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5284 * troff/node.h (dummy_node::get_hyphenation_type,
5285 transparent_dummy_node::get_hyphenation_type): Declare them.
5286 * troff/node.c: (dummy_node::get_hyphenation_type,
5287 transparent_dummy_node::get_hyphenation_type): New functions.
5289 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5291 * xditview/libXdvi/draw.c: If M_PI not defined after including
5292 math.h, then define it.
5294 * xditview/Makefile: Add definition of AR. Pass it to the submake
5296 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5298 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5300 * troff/dictionary.h (object_dictionary::alias): Declare return
5302 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5303 if the old name was defined.
5304 * troff/input.c (alias_macro): Give a warning if the old name was
5306 * troff/reg.c (alias_reg): Likewise.
5308 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5310 * troff/input.c (token::next): Delete implementation of \R.
5312 * macros/Makefile: Strip comments from tmac.e while installing it.
5314 * troff/input.c: New variable `nroff_mode'.
5315 (troff_request, nroff_request): New functions.
5316 (init_input_requests): Bind `troff' and `nroff' to troff_request
5318 (do_if_request): Compute results of t and n conditions from
5321 * text/text.c (split_text): Fix typo in >=.
5323 * eqn/lex.c: Add definition of `==' to def_table.
5325 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5327 * pic/tex.c (tex_output::start_picture): Change the definitions of
5328 \graph and \graphtemp so that they work properly with Plain TeX.
5330 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5331 argument to `ar' is not less than the first.
5333 * pic/pic.y: Allow a comma between elements of the variable list
5334 in the argument to `reset'.
5336 * pic/object.c (arc_object::arc_object): Fix computation of
5339 * eqn/main.c (main): Add exit(0).
5341 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5343 * troff/div.c (begin_page): Test no_space_mode after doing the
5344 break, but still push the page ejector cookie before doing the
5345 break. Also set the next page number after doing the break.
5347 * xditview/xditview.c (NewFile): Don't set the title and icon name
5348 if this is the first file and its name is `-'.
5349 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5350 the X75 and X100 devices.
5351 (main): If a device has the XT_OPTION flag set and there's exactly
5352 one file argument, pass the driver -xrm and -title options to set
5353 the icon name and window title to the name of the file.
5355 * troff/env.c (environment_switch): If there was an argument but
5356 it wasn't a valid number or name, then pop an environment but
5357 don't give an error message on underflow.
5359 * troff/number.c (start_number): Correct spelling in error message.
5361 * troff/input.c (token::delimiter): Don't print an error message
5364 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5365 ParseDrawFunction if dw->display_enable is true.
5367 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5369 * pic/pic.y: Parse text positioning like normal attributes, so as
5370 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5371 positioning attribute.
5373 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5375 * tbl/main.c (process_data): When in state START while reading a
5376 text block, don't change to state MIDDLE if c is a newline.
5378 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5380 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5381 so as to avoid shadowing parameter.
5383 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5385 * tbl/table.c (trim_space): Deleted.
5386 (table::add_entry): Don't call trim_space.
5388 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5390 * VERSION: Change version to 0.6.
5392 * troff/number.c (parse_expr): Make == work.
5394 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5396 * man/grog.man: New file.
5397 * man/Makefile: Add grog.n to MAN1PAGES.
5398 * etc/grog.sh: New file.
5399 * etc/Makefile: Install grog.sh as grog.
5401 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5403 * troff/input.c (token::next): Implement \E.
5405 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5407 * xditview/tmac.X: Change font translations to match tmac.ps.
5409 * troff/input.c (non_empty_name_warning): Don't give a warning if
5410 `\{' terminates the name.
5412 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5414 * ps/devps/symbol.diff: New file.
5415 * ps/devps/FontMakefile: Mention symbol.diff.
5417 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5419 * troff/node.c (font_position): Use get_long_name to read the
5422 * troff/env.c (environment_switch): If we get a number that's < 0
5423 or >= NENVIRONMENTS, treat it like a name.
5424 Change NENVIRONMENTS to 10.
5426 * troff/groff.h: Remove definition of FONTS_MAX.
5427 * troff/node.h (class font_family): Make map a pointer instead of
5428 an array. Add a map_size member. Make it a class. Make nm const
5429 and public. Make invalidate_fontno a friend.
5430 * troff/node.c: Define font_table_size. Make font_info a pointer
5431 rather than an array.
5432 (class troff_output_file): Allocate font_position dynamically. Add
5433 nfont_positions member.
5434 (troff_output_file::set_font): Grow font_position if necessary.
5435 (troff_output_file::~troff_output_file): Delete font_position.
5436 (troff_output_file::troff_output_file): Allocate font_position.
5437 (grow_font_table): New function.
5438 (troff_output_file::really_begin_page,
5439 troff_output_file:really_copy_page): Use nfont_positions rather
5441 (mount_font_no_translate, mount_style): Call grow_font_table if
5443 (font_family::font_family): Allocate map.
5444 (font_family::make_definite): Grow map if necessary. Use
5445 font_table_size instead of FONTS_MAX.
5446 (font_family::~font_family): New function.
5447 (invalidate_fontno): Use font_family::map_size.
5448 (get_fontno, env_space_width, env_half_narrow_space_width,
5449 env_narrow_space_width, symbol_fotno, is_good_fontno,
5450 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5452 (next_available_font_position): Never return 0.
5454 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5456 * ps/tmac.ps: Add font translations for compatibility with dpost.
5458 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5460 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5461 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5462 Move definitions baseline_sep, shift_down, column_sep,
5463 matrix_side_sep into...
5464 * eqn/box.c: Add them to param_table.
5465 * eqn/pbox.h: Add declarations to pbox.h.
5467 * troff/input.c (set_string): Cast value to unsigned char *.
5469 * troff/token.h (process_input_stack): Declare it static before
5470 declaring it a friend.
5472 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5474 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5476 * dvi/devdvi/EX: Regenerate.
5478 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5481 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5483 * eqn/lex.c: In defaults_table, make definition of `dot' call
5484 `dot_def'. Don't explicitly make it roman. Similarily for other
5487 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5489 (for_input::get, for_input::peek): Use this.
5490 (do_for): Add by_is_multiplicative argument.
5491 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5492 Change semantic value of optional_by to be a double plus a flag
5493 saying whethet the by clause is multiplicative.
5495 * eqn/lex.c (get_delimited_text): Remember location of start of
5496 definition. Improve error handling when EOF is encountered.
5498 * lib/font.h: Rename handle_x_command to
5499 handle_unknown_font_command.
5500 * lib/font.c (font::load): Call handle_unknown_font_command for
5501 any unknown command in the font description file. Don't call
5502 handle_x_command. Include the name of the command in the argv.
5503 Improve message for unknown command after kernpairs or charset
5505 * ps/ps.c (ps_font::handle_x_command): Rename to
5506 handle_unknown_font_command. Remove message about `x download'
5507 command. Give error message for wrong number of arguments.
5508 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5509 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5510 handle_unknown_font_command. Give an error message for wrong
5511 number of arguments. Rename design_size to designsize.
5512 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5513 checksum', `designsize' instead of `design_size'.
5515 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5517 * eqn/*.[chy]: Change underaccent to uaccent.
5519 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5520 give it the same precedence as ACCENT.
5521 * eqn/other.c (make_underaccent_box): New function.
5522 * eqn/box.h: Declare it.
5523 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5526 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5528 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5529 (parse_init): Call reset_all.
5530 (define_variable): When defining scale reset only those
5531 pre-defined variables that are scaled.
5532 (defaults_table): Add `scale' as non-scaled value.
5534 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5535 together with the text; allow any number of positioning words;
5536 allow center as a positioning word.
5538 * pic/object.c (output::compute_scale): Get picture maximum height
5539 and width from variables called maxpswid and maxpsht.
5540 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5542 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5544 * pic/object.c (object_spec::make_text): Multiply textht by number
5547 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5549 (do_sprintf): New function.
5550 (pic.gperf): Add sprintf token.
5551 (text, sprintf): New rules.
5553 * pic/pic.y: `rand()' with no arguments returns a random number
5556 * pic/pic.y: Allow a bare expression to be an attribute: change
5557 precedences to support this. Change optional_ordinal rule to
5558 optional_ordinal_last to avoid reduce/reduce conflict.
5559 * pic/object.c (object_spec::object_spec): Initialize direction.
5561 * pic/pic.y: Implement ^ operator meaning exponentiation.
5563 * troff/node.h: Add default argument to mount_font.
5564 * troff/node.c (font_position): Read an optional third argument
5565 giving the external_name.
5566 (mount_font): Add optional argument giving the external_name.
5567 (mount_font_not_translate): Have additional argument giving
5568 external name. Use this name to load the font. Pass both names
5569 to font_info::font_info.
5570 (font_info::font_info): Have additional argument giving
5572 (class tfont): New member external_name.
5573 (font_info::get_tfont): Use external name to construct tfont_spec.
5575 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5577 * eqn/lex.c (init_table): Add argument giving device. Define
5578 name of device to be "1".
5579 (do_ifdef): Counts as true if the argument has been defined with
5581 * eqn/main.c (main): Call init_table with device argument. Make
5582 device local to main.
5583 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5586 * pic/lex.c (get_delimited): Allow text to be delimited by
5587 matching {}s. Don't recognize ending delimiter within a string.
5589 * troff/input.c (get_delim_name): New function.
5590 (token::next): Implement \C.
5592 * lib/font.c (font::load): Grok ---. Add an alias for each
5593 character based on its code.
5594 (font::get_code_width): Deleted.
5595 * lib/font.h (class font): Declare font::number_to_index().
5596 Remove declaration of font::get_code_width.
5597 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5598 to indices of named characters.
5599 (font::number_to_index): New function.
5600 * troff/input.c (font::number_to_index): New function.
5601 (get_charinfo_by_number, charinfo::get_number,
5602 charinfo::set_number): New functions.
5603 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5604 (token::process, token::description, token::get_char,
5605 token::add_to_node_list, token::operator==): Handle
5606 TOKEN_NUMBERED_CHAR.
5607 * troff/charinfo.h: Declare get_charinfo_by_number,
5608 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5610 (charinfo::numbered): New function.
5611 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5612 * troff/env.h (class environment): Remove declaration of ...
5613 * troff/env.c (environment::make_numbered_char_node): Deleted.
5614 * troff/node.c (make_numbered_node): Deleted.
5615 (class numbered_glyph_node): Remove.
5616 (troff_output_file::put_char_width, troff_output_file::put_char):
5617 Handle numbered chars.
5618 (troff_output_file::numbered_char): Removed.
5619 (tfont::get_code_width): Removed.
5620 (make_glyph_node): Don't search special fonts for numbered
5622 * troff/node.h: Remove declaration of make_numbered_node.
5623 * driver/input.c (do_file): Handle N command.
5624 * driver/printer.h: Add declaration of ...
5625 * driver/printer.c (printer::set_numbered_char): New function.
5626 * dvi/tfmtodit.c (main): Generate unnamed entries.
5627 * ps/devps/afmtodit: Likewise.
5628 * xditview/xtotroff.c (MapFont): Likewise.
5629 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5631 * tbl/main.c (process_format): If multiple widths are specified
5632 for a column but all the widths are the same, don't give an error
5635 * tbl/table.c (table::do_row): If the current row is all lines and
5636 the stuff doesn't contains a line, mark the top of the row after
5637 printing stuff before the row. If the current row is not all
5638 lines and the stuff doesn't contain a line, don't unnecessarily
5639 mark the top of the row before printing the stuff.
5641 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5643 * troff/groff.h: Remove MAX_PATH.
5644 * troff/input.c (open_file): Dynamically allocate space for the
5646 (open_mac_file, process_macro_file): Corresponding changes.
5648 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5650 * troff/node.h (class output_file): Make copy_file pure. Add
5651 vspace method ifdef COLUMN. Add is_printing method.
5652 * troff/node.c: Add class printing_reg. Add class
5653 real_output_file. Derive other output_file classes from
5654 real_output_file; in these classes rename begin_page to
5655 really_begin_page, print_line to really_print_line, copy_file to
5656 really_copy_file, transparent_char to really_transparent_char.
5657 Move output_file::flush to real_output_file. Add printing member
5658 to class output_file.
5659 * troff/div.h: Remove printing member from top_level_diversion.
5660 Add vspace member function to class diversion ifdef COLUMN. Add
5661 some declarations ifdef COLUMN.
5662 * troff/div.c (top_level_diversion::copy_file,
5663 top_level_diversion::transparent_output,
5664 top_level_diversion::output): Don't test printing member before
5666 * troff/input.c: Handle initial variable_space_request ifdef
5668 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5671 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5673 * troff/div.c (diversion::need): Make any space forced. If we
5674 sprung a trap, set truncated_space to minus the distance to the
5675 trap and set needed_space to the amount that was needed.
5676 (top_level_diversion::space): A forced space turns no_space_mode
5678 (class constant_vunits_reg): New class.
5679 (init_div_requests): Implement number registers .trunc and .ne
5680 using constant_vunits_reg.
5681 (class truncated_space_reg): Deleted.
5683 * troff/div.h: Don't have a no_space_mode member in diversion.
5684 Instead have it in top_level_diversion.
5685 * troff/div.c (diversion::diversion): Don't initialize
5687 (top_level_diversion::top_level_diversion): Initialize
5689 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5690 (macro_diversion::output): Don't clear no_space_mode.
5692 * troff/input.c (diverted_space_node::reread): Don't call
5693 environment::do_break. In fill mode, act like a blank line.
5694 (diverted_copy_file_node::reread): Don't call
5695 environment::do_break.
5697 * troff/div.c (blank_line): New function.
5698 * troff/div.h: Declare it.
5699 * troff/input.c (process_input_stack): Call it.
5701 * troff/div.c (truncated_space_reg::get_string): New function.
5702 (init_div_requests): Bind to .trunc.
5703 (space_request, top_level_diversion::space,
5704 top_level_diversion::output, macro_diversion::space,
5705 macro_diversion::output): Update truncated_space.
5706 (macro_diversion::output): Redo calculations when trap sprung.
5707 (macro_diversion::output, macro_diversion::space): No need for
5710 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5711 after truncating post line spacing.
5713 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5715 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5716 defined as a procedure rather than as an operator.
5718 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5720 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5722 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5724 * troff/div.c (top_level_diversion::output): Merge
5725 output_file::print_line and output_file::end_of_line member
5727 * troff/div.h (class output_file):
5728 * troff/node.c (troff_output_file::print_line,
5729 troff_output_file::end_of_line, output_file::end_of_line,
5730 ascii_output_file::print_line, suppress_output_file::print_line):
5731 Corresponding changes.
5733 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5735 * troff/input.c (token::next): Don't give a warning for `\.'.
5737 * troff/env.c (environment::get_center_lines): New function.
5738 (init_env_requests): Bind number register .ce to it.
5739 * troff/env.h: Declare it.
5740 * tbl/table.c (table::init_output): Define reset macro to restore
5741 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5743 (table::print): If center option not given, then imply center
5744 option if SAVED_CENTER_REG > 0.
5746 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5748 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5749 Troff.ps from DOWNLOAD.
5751 * troff/Makefile: Change comment in DEFINES to avoid confusing
5754 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5755 code. Don't try to catch errors with stopped.
5756 (check_line_lengths): New function.
5757 * ps/devps/prologue (EXEC): Deleted.
5758 (EBEGIN, EEND): New procedures.
5760 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5762 * troff/input.c: Include request.h before node.h.
5763 * troff/node.c: Likewise.
5764 * troff/env.c: Likewise.
5765 * troff/div.c: Likewise.
5766 * troff/node.h (class special_node): Store argument as a macro
5767 rather than a char *.
5768 * troff/node.c (special_node::special_node, special_node::copy):
5770 (special_node::~special_node): Deleted.
5771 (special_node::tprint): Deleted.
5772 (special_node::tprint_start, special_node::tprint_end,
5773 special_node::tprint_char): New functions.
5774 (troff_output_file::special): Deleted.
5775 (troff_output_file::start_special, troff_output_file::end_special,
5776 troff_output_file::special_char): New functions.
5777 * troff/input.c (special_node::tprint): New function.
5778 (do_special): Use macro not char *.
5779 (do_transparent_macro): Deleted.
5780 (token::next): Don't call do_transparent_macro.
5782 * troff/input.c (token::next): Add 'Y' case.
5783 (do_transparent_macro): New function.
5784 * troff/node.c (troff_output_file::special): Handle newlines with
5785 argument using new continuation convention.
5786 * driver/input.c (get_string): Cope with continuation convention.
5787 (do_file): Don't call skip_line after calling get_string(1).
5788 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5789 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5791 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5794 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5796 * troff/input.c (asciify): By default, illegal input characters
5797 should return empty string.
5799 * troff/input.c (copy_file): Handle first page transition like title.
5800 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5802 * troff/input.c (token::next): Improve error message for EOF after
5804 (input_char_description): New function.
5805 (get_char_for_escape_name): Use input_char_description.
5806 (token::next): Warn about unrecognized escape sequences.
5807 (warning_table): Add WARN_ESCAPE.
5808 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5811 * troff/token.h: Remove declaration of process_input_stack.
5813 * troff/input.c: Remove declaration of init_hyphen_requests.
5814 * troff/request.h: Correct spelling in declaration of same.
5816 * troff/input.c (token::next): Check whether escape_char is 0.
5818 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5820 * groff.c (main, usage, help): Implement -P and -L options.
5821 * groff.sh: Likewise.
5823 * troff/input.c (token::next): Use some gotos to avoid code
5826 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5827 Avoid calling symbol::symbol if name empty.
5829 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5831 * troff/input.c (init_input_requests): Make \n(.x return the major
5832 version number and \n(.y return the minor version number.
5833 * troff/Makefile: Construct file majorminor.c defining
5834 major_version and minor_version automatically from ../VERSION.
5836 * troff/node.c (class glyph_node): Make operator new and operator
5838 (class ligature_node): Similarily.
5840 * troff/input.c (operator==(const macro &, const macro &)): New
5842 (non_interpreted_node::same): Use this.
5843 (string_iterator::string_iterator): Make macro& argument const.
5845 * troff/input.c (input_iterator::get): New function. Don't make
5846 asciify_macro or class non_interpreted_node friends of class
5848 (non_interpreted_node::interpret): Use input_iterator::get.
5849 (asciify_macro): Likewise.
5851 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5852 ~non_interpreted_node): Deleted.
5853 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5856 * troff/symbol.h: Make all symbol member functions const.
5858 * lib/strtol.c: New file.
5859 * lib/Makefile: Add strtol.c.
5860 * Makefile: Define STRTOL as strtol.o to include strtol in
5863 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5865 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5867 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5869 * troff/input.c (do_special): Use input_level.
5871 * troff/token.h (TOKEN_BACKSPACE): New token.
5872 (token::backspace): New function.
5873 * troff/input.c (token::description, token::next, token::process):
5874 Grok TOKEN_BACKSPACE.
5875 (do_special): Turn TOKEN_BACKSPACE back into \b.
5877 * troff/token.h (token::leader): New function.
5878 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5880 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5882 * troff/input.c (do_special): Use token::description in error
5885 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5887 * troff/input.c (decode_args): Combine quoted and
5888 quote_input_level variables. Make it a for (;;) loop.
5890 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5892 * troff/input.c (read_long_escape_name): The test for whether to
5893 expand buffer was off by 1.
5894 (read_string): Similarily.
5896 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5898 * troff/input.c: Use `const int' rather than `static const int'.
5900 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5901 (macro_diversion::copy_file): New function.
5902 * troff/node.h: New class diverted_copy_file_node.
5903 * troff/node.c: Implement it.
5904 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5905 first page transition by pushing a diverted_copy_file_node.
5906 * troff/input.c (token::next, process_input_stack): Don't handle
5909 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5911 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5912 whether space widths need adjusting.
5914 * troff/charinfo.h: Generalize translated_to_space to
5915 special_translation so as to allow translation to \&.
5916 * troff/input.c (translate): Allow translation to \&.
5917 (charinfo::*): Corresponding changes.
5918 * troff/node.c (make_node, node::add_char): Corresponding changes.
5919 * troff/node.h (dummy_node::dummy_node): Allow optional first
5922 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5923 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5925 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5926 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5927 (token::process): Grok that.
5928 * troff/input.c (copy_file): Handle first page transition like
5929 title by pushing a COPY_FILE_REQUEST cookie.
5930 (token::next, process_input_stack): Grok that.
5931 * troff/node.h (output_file::copy_file): Add x and y arguments.
5933 * troff/div.c (top_level_diversion::copy_file): Supply them.
5934 * troff/node.c (troff_output_file::copy_file): Add x and y
5935 arguments; moveto specified position. Invalidate font_position
5936 array after copying file.
5937 (output_file::copy_file): New function.
5938 (suppressed_output_file::copy_file, ascii_output::copy_file):
5940 * troff/input.c (transparent_file): New function.
5941 (init_input_requests): Bind to "trf".
5942 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5943 (process_input_stack): Likewise.
5945 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5947 * troff/node.c (init_node_requests): New number registers .kern
5948 pointing to global_kern_mode, and .lg pointing to
5949 global_ligature_mode.
5951 * troff/node.c (ligature): Don't change it if we get a bad
5954 * troff/input.c (do_define_string): Don't strip tabs.
5956 * troff/input.c (asciify_macro): Make the string_iterator auto.
5958 * troff/node.c (init_font_requests): Rename to...
5959 (init_node_requests):
5960 * troff/node.h: Change declaration.
5961 * troff/input.c (main): Change call.
5963 * troff/input.c (node::reread, diverted_space_node::reread): New
5965 (process_input_stack): Call reread rather than
5966 get_diverted_space_node.
5967 * troff/node.c (node::get_diverted_space_node,
5968 diverted_space_node::get_diverted_space_node): Removed.
5969 * troff/node.h: Declare reread methods instead of
5970 get_diverted_space_node methods. Make `n' member private.
5971 * troff/input.c: (token::diverted_space): Removed.
5972 * troff/token.h: Removed declaration.
5975 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5977 * eqn/script.c (script_box::compute_metrics): Don't let
5978 SUP_RAISE_FORMAT become negative.
5980 * tbl/table.c (table::do_row): Entries that don't end in the
5981 this row shouldn't make the row non-blank.
5983 * tbl/table.c (table::make_columns_equal): Only set the width of
5984 columns which are marked as equal.
5986 * tbl/main.c (process_data): Before issuing excess data error,
5987 if last character was a newline unget it; then get it again after
5988 the error. Also include the contents of the entry in the message.
5990 * groff.c: New file.
5991 * Makefile: Build groff from groff.c. Make it possible to use
5992 either groff.sh or groff.c as groff.
5993 * Makefile.bd: Similarily.
5995 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5997 * groff.sh: Don't delay expansion of $@ in assignment to files.
5998 Remove occurrences of \".
6000 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
6002 * all Makefiles: Simplify and rearrange.
6004 * Makefile: Handle fmod like malloc.
6005 * lib/Makefile: Similarily.
6006 * lib/fmod.c: Remove #ifdef NEED_FMOD.
6008 * Makefile: Rename OPTIMISE to OPTIMIZE.
6010 * groff.sh: Remove assignment to PATH.
6011 * Makefile: Remove SHPATH variable.
6012 * Makefile.bd: Similarily.
6014 * groff.sh: Add -V option to print the pipeline instead of
6017 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
6019 * lib/font.c: Split off file searching into ...
6020 * lib/fontfile.c: New file.
6022 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6024 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
6026 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6027 Also change misleading comment.
6028 (table::do_vspan): Change similarily misleading comment.
6029 * tbl/main.c (process_data): A format row with an explicit `s'
6030 uses up a data line, even if all the other columns are `_' or `='.
6032 * troff/input.c (token::description): Fix description of
6033 TOKEN_DUMMY and TOKEN_EMPTY.
6035 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
6037 * groff.sh: Fix description of -Z in help message.
6039 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
6041 * pic/object.c (object_spec::make_object): Allow negative and zero
6043 * pic/pic.y: Give linethick default value of -1.0.
6044 * pic/troff.c (troff_output::troff_output): Initialize
6045 last_line_thickness to BAD_THICKNESS.
6046 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6047 (troff_output::line_thickness): Canonicalize negative thicknesses
6048 to RELATIVE_THICKNESS.
6049 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6050 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6052 (tex_output::start_picture): Set pen_size to -2.0.
6054 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6055 0, then use 0 linewidth.
6056 (ps_printer::ps_printer): Initialize line_thickness to -1.
6058 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6060 * ps/devps/symbolchars: Remove `or'.
6061 * ps/tmac.ps: Implement \(or with .char.
6063 * ps/devps/symbolchars: Move most characters into textmap.
6064 * ps/devps/textmap: Add names for troff bracket characters. Remove
6067 * ps/devps/TSymbol.ps: Removed.
6068 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6069 * ps/tmac.ps: Do with .char what TSymbol did.
6070 * ps/devps/download: Remove TSymbol.
6072 * ps/devps/T: Removed.
6073 * ps/devps/Troff.ps: Removed.
6074 * ps/devps/Troff.afm: Removed.
6075 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6076 * ps/devps/download: Remove Troff.
6077 * ps/devps/FontMakefile: Remove T target.
6078 * ps/devps/DESC-A4: Remove T from font list.
6079 * ps/devps/DESC-letter: Likewise.
6081 * troff/input.c (macro_to_node): Rename to ...
6082 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
6083 character's definition while processing it.
6084 * troff/node.c (node::add_char, make_node): Change calls to
6085 macro_to_node accordingly.
6087 * troff/input.c (token::next): Translate \_ to \(ul.
6089 * tty/devascii/R.proto: Add `|'.
6090 * tty/devlatin1/R.proto: Likewise.
6092 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
6094 * man: Put the version number in all the man pages.
6096 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
6098 * Makefile.bd: New file.
6099 * README.bd: New file.
6101 * VERSION: New file.
6102 * lib/version.c: Removed.
6103 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6106 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6107 environment variable.
6109 * all Makefiles: Split install target into install.bin for
6110 binaries, and install.nobin for everything else.
6111 * Makefile: Add bindist target.
6113 * man/afmtodit.man: New file.
6114 * man/Makefile: Add afmtodit.n to MAN1PAGES.
6115 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6117 * ps/Makefile: Pass BINDIR to make install in devps.
6119 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6120 the space character.
6122 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6124 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
6126 * ps/ps.c: Redo font downloading.
6127 * ps/devps/download: New file.
6128 * ps/devps/Makefile: Add download to DEVICEFILES.
6129 * ps/devps/afmtodit: Remove -d option.
6130 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6131 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6132 * ps/devps/zapfdr.ps: Likewise.
6133 * ps/devps/TSymbol.ps: Likewise.
6135 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
6137 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6139 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
6141 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6142 then strip the first line if it starts with %.
6143 * Makefile: Add a comment about this.
6145 * man/tfmtodit.man: New file.
6146 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6147 * dvi/Makefile: Install tfmtodit in BINDIR.
6149 * dvi/tfmtodit.c (usage): Mention -v option.
6151 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
6153 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6154 * troff/node.c (troff_output_file::transparent_char): Don't call
6157 * eqn: Add check_tabs method to most box classes.
6158 * eqn/box.c (box::top_level): Call check_tabs.
6160 * eqn/script.c (script_box::output): Use \Z.
6161 * eqn/limit.c (limit_box::output): Use \Z.
6163 * eqn/box.c (box::top_level): Use itoa.
6165 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
6167 * dvi/tmac.dvi: Add font translations for CR, C, TT.
6168 * dvi/devdvi/Makefile: Don't make links to CW.
6170 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6172 * xditview/tmac.X: Likewise.
6174 * troff/node.c: Add font translation feature.
6175 (get_font_translation): New function.
6176 (symbol_fontno): Translate the font name.
6177 (mount_font_no_translate): Rename to mount_font to this.
6178 (mount_font): New function.
6179 (font_family::make_definite): Call mount_font_no_translate instead
6181 (mount_style): Translate the font name.
6182 (font_translate): New function.
6183 (init_font_requests): Bind "ftr" to font_translate.
6185 * ps/devps/prologue (SN): New procedure that rounds a position to
6186 the nearest (pixel + (.25,.25)).
6187 (DL): Use SN to round endpoints.
6189 * lib/version.c: Changed version to 0.5.
6191 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
6193 * Makefile: Move definition of PAGE to the very beginning, so that
6194 people are less likely to miss it.
6196 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
6198 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6200 * troff/env.c (environment::choose_breakpoint): Make `can't find
6201 breakpoint' error a warning of type WARN_BREAK. Change message to
6203 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6205 * troff/input.c: Add WARN_BREAK to warning_table. Include
6206 WARN_BREAK in DEFAULT_WARNING_MASK.
6208 * tty/tmac.tty: Add definition of \(+-.
6210 * groff.sh: Remove `--' option to set command.
6212 * dvi/devdvi/texsy.map: Remove duplicate md entry.
6214 * ps/devps/eqnchar: Better definition of cdot using md.
6215 * dvi/devdvi/eqnchar: Likewise.
6216 * xditview/devX100/eqnchar: Likewise.
6217 * xditview/devX75/eqnchar: Likewise.
6218 * eqn/lex.c: Add definition of cdot.
6220 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
6222 * troff/input.c (get_optional_char): New function.
6223 * troff/input.c (set_page_character): Use get_optional_char(),
6224 rather than has_arg() and tok.get_char(1).
6225 * troff/env.c (tab_character, leader_character, hyphen_char,
6226 field_characters): Likewise.
6227 (margin_character): Likewise. Also always delete the
6228 margin_character_node.
6230 * troff/input.c (token::get_char): Use token::description.
6232 * troff/input.c (has_arg): Don't skip over tab and \}.
6233 * troff/number.c (start_number): Give a warning if the number
6234 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6236 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6238 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6240 (get_name, get_long_name): Use these. Rename `warn' argument to
6243 * troff/node.c (get_fontno): Test that the symbol is not null.
6245 * troff/input.c (token::description): New function.
6246 * troff/number.c (parse_term): Use token::description in `numeric
6247 expression expected' message.
6248 * troff/groff.h: Add WARN_MISSING.
6249 * troff/number.c (start_number): New function.
6250 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6251 get_incr_number): Use start_number().
6252 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6254 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6255 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6257 * troff/input.c (token::get_char): Use WARN_MISSING.
6258 * troff/input.c (token::delimiter): Use token::description.
6259 * troff/env.c (environment_switch): Back out Aug 3 change.
6260 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6262 * troff/token.h (token::tab): New function.
6263 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6264 * troff/reg.c (alter_format): Likewise.
6265 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6267 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6269 * troff (most files): Redo warnings. Divide warnings into various
6270 categories; warning() has an additional first argument indicating
6271 the category it falls into.
6272 * troff/input.c (main): -w now takes an argument. New option -W.
6273 (enable_warning, disable_warning): New functions.
6275 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6276 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6278 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6280 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6281 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6282 * xditview/devX75/eqnchar: Likewise.
6283 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6285 * eqn/other.c: When bar or over applies to a single character
6286 don't produce an overline_box or an underline_box. Instead produce
6287 an accent_box or an underaccent_box, with the accent a line
6288 whose width is accent_width. New classes underaccent_box,
6289 overline_char_box and underline_char_box.
6290 * eqn/box.h: Move overline_box, underline_box, accent_box class
6291 declarations into eqn/other.c. Add declarations of
6292 make_underline_box, make_overline_box, make_accent_box.
6293 * eqn/eqn.y: Call make_overline_box, make_underline_box
6294 make_accent_box instead of constructors.
6295 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6297 * eqn/other.c: Add accent_box::~accent_box.
6298 * eqn/box.h: Declare it.
6300 * groff.sh: With -Tps, use eqn -D.
6302 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6304 (underline_box::output): Similarily.
6305 (accent_box::output): Use \Z.
6307 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6310 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6312 * troff/div.c (top_level_diversion::transparent_output(unsigned
6313 char)): Use asciify.
6314 * troff/input.c (asciify): Don't make it static.
6315 * troff/token.h (asciify): Declare it.
6317 * troff/input.c (get_name, get_long_name, token::get_char,
6318 token::delimiter): Add an extra default argument which says
6319 whether a warning should be printed.
6320 * troff: Pass a non-zero argument to one of these rather than
6321 printing a warning directly.
6323 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6325 * troff: Consistently use symbol::is_null.
6327 * troff/dictionary.h: Move some inline functions into
6330 * troff/request.h: Move inline functions into input.c.
6331 (request_or_macro::invoke): Make it pure.
6333 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6334 * troff/input.c (init_input_requests): Use class constant_int_reg.
6335 (class compatible_reg): Deleted.
6336 * troff/div.c (init_div_requests): Use class constant_int_reg.
6337 (class last_post_line_extra_space_reg): Deleted.
6339 * troff/env.c (tab_character): Don't change the tab character if
6340 we get an invalid argument.
6341 (hyphen_char): Similarily.
6343 * troff/reg.c (alter_format): Check that nm is not null.
6345 * Makefile, groff.sh: Make it possible to customize the commands
6346 used for printing PostScript and dvi files. Also make it possible
6347 to customize the path used by groff.sh.
6349 * eqn/eqn.y: Make `left' right associative.
6351 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6353 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6356 * pic/pic.h: Removed definition of INT_MAX.
6358 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6361 * troff/input.c (token::next): Handle \R like \n.
6363 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6365 * ps/tmac.pc (PSPIC): Simplify.
6367 * troff/env.c (tab_stops::to_string):
6368 * pic/pic.y (object_type_name):
6369 * pic/troff.c (simple_output::line):
6370 * pic/tex.c (tex_output::spline):
6371 * pic/object.c (object_spec::make_object):
6372 * tbl/main.c (process_data): Add cases to switch statements to
6373 avoid cfront warnings. (Some of these are spurious, since the
6374 switch already has a default case.)
6376 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6377 `ps-'. Don't test systat; instead check number of arguments to
6380 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6382 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6384 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6385 Unlink the file as soon as we have opened it, so that we don't
6386 have to bother with signal handlers.
6388 (fatal_error_exit): Deleted.
6389 (main): Don't call signal.
6391 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6393 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6395 * pic/pic.y: If there is a label, or an nth construction before
6396 the first `.' in the argument to `with', ignore it and generate a
6398 * pic/lex.c (lex_warning): New function.
6400 * tbl/table.c (table::init_output): In section keep and release
6401 macro, use 0 indent when diverting and the correct indent when
6404 * troff/input.c (interpolate_number_format): Do not interpolate
6405 anything if the number register is not defined.
6407 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6409 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6411 * ps/devps/prologue (PICTURE): Set components of graphics state to
6412 their default values.
6414 * ps/devps/text.enc: Add trademark
6415 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6416 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6417 * ps/devps/symbolchars: Add names for summation and product.
6419 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6420 suchthat. Add pp. Add upper-case letters.
6422 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6423 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6426 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6427 rA (right angle bracket) to ra. Introduce names for double-headed
6428 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6429 * ps/devps/textmap: Likewise for ps device.
6430 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6431 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6432 * tty/devascii/R.proto: Likewise.
6433 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6435 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6437 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6439 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6442 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6444 * troff/div.c (when_request): Use symbol::is_null rather than
6445 has_arg to determine whether we have an argument.
6446 (change_trap): Remove the trap if we get an invalid number. Give
6447 an error if we don't get at least the macro name.
6448 (diversion_trap): Remove trap if we get an invalid name or number.
6450 * troff/env.c (environment_switch): Pop if we get an invalid
6451 symbol or numeric expression.
6453 * troff/input.c (do_define_macro): If EOF is encoutered while
6454 defining the macro, do tok.next() before returning.
6456 * troff/token.h (has_arg): Move definition from here, to ...
6457 * troff/input.c (has_arg): ... here
6459 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6460 * troff/input.c (shift): Likewise.
6462 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6465 * pic/troff.c (troff_output::start_picture): Comment out calls to
6468 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6469 interpret_lf_args succeeds.
6471 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6472 \\. This avoids problems with \$N.
6474 * groff.sh: Pass -C to preprocessors.
6476 * lib/lf.c (interpret_lf_args): Be more flexible.
6478 * tbl/main.c (main): Add -C option.
6479 (table_input::get): Do not recognize TE if followed by character
6480 other than a space or newline unless -C option given.
6481 (process_input_file): Likewise for lf, TS.
6482 (process_data): Likewise for lf in text blocks.
6484 * eqn/main.c (main): Add -C option.
6485 (do_file): Don't recognize EQ, EN or lf if followed by character
6486 other than space or newline unless -C option given.
6487 * eqn/lex.c (file_input::read_line): Similarily.
6488 * eqn/eqn.h: Declare compatible_flag.
6490 * etc/soelim.c (main): Add -C option.
6491 (interpret_lf_args): Use version in libgroff.
6494 * pic/main.c (main): Add -C option, which sets compatible_flag.
6495 (top_input::get), (top_input::peek): If -C option not given,
6496 do not recognize .PS/.PE/.PF/.lf if followed by a character
6497 other than space or newline.
6498 * pic/lex.c (file_input::read_line): Similarily.
6499 * pic/pic.h: Add declaration of compatible_flag.
6501 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6503 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6505 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6506 derived from node. New class space_char_hmotion_node.
6507 * troff/input.c (asciify_macro): New function.
6508 * troff/input.c (init_input_requests): New request `asciify' bound
6510 * macros/mm.diff: New file.
6511 * Makefile: In install.mm target use `patch' to apply
6514 * troff/input.c (macro::print_size): Just print the size in bytes.
6516 * troff/div.c (return_request): Correct the argument
6519 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6521 * troff/node.h (class composite_node): Add sz member.
6522 * troff/node.c (composite_node::size): Return sz.
6523 * troff/input.c (macro_to_node): Use the initial size in the
6524 environment as the size of the composite_node.
6526 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6529 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6531 * troff/div.c (change_trap): If we get a bad number expression,
6534 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6536 * lib/matherr.c (matherr): Define this only if math.h defines
6539 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6541 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6542 no diversion trap return vunits(INT_MAX - vresolution).
6544 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6546 * troff/input.c (do_zero_width): New implementation that doesn't
6547 use a temporary environment. Use instead:
6548 (token::add_to_node_list): New function.
6549 * troff/env.c (environment::get_prev_char_height),
6550 (environment::get_prev_char_height),
6551 (environment::get_prev_char_skew): New functions.
6552 (environment::get_prev_char): New function.
6553 (environment::get_prev_char_width): Change to use get_prev_char.
6554 (init_env_request): Implement new registers .cht, .cdp, .csk.
6555 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6556 \Z being processed in a separate environment.
6558 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6560 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6562 * tbl/table.c (table::init_output): In the section release macro,
6563 give a warning message if the section won't fit on one page.
6565 * tbl/table.c (table::do_top): Emit table keep only if table is
6567 (table::do_bottom): Likewise for table release.
6568 (table::table), (table::add_vertical_rule): Remove reference to
6570 * tbl/table.h: Remove keep member.
6572 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6573 SECTION_RELEASE_MACRO, if there's not enough space before the next
6574 trap to output the diversion, call T# ourselves, set
6575 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6576 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6577 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6578 vertical position and return to it before turning traps on again.
6580 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6582 * troff/node.c, troff/node.h: In classes derived from node,
6583 replace prev_char_width method by last_char_node method.
6584 * troff/env.c (environment::get_prev_char_width): Use
6585 node::last_char_node rather than node::get_prev_char_width.
6587 * Makefile: Added comment about -fno-inline on 68030-based
6590 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6591 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6592 expressions using sizeof to int.
6593 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6595 * macros/tmac.e (TS): Don't move @f back past the current
6598 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6600 * ps/ps.c (main): Buffer stderr.
6601 * dvi/dvi.c (main): Likewise.
6602 * tty/tty.c (main): Likewise.
6604 * ps/ps.c (ps_printer::do_import): Improve error handling.
6606 * troff/input.c (abort_request): Use asciify.
6608 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6609 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6610 type of first argument int rather than char. This works around a
6611 bug on the 68030 based Apollo using g++ 1.37.1.
6613 * tbl/table.h (class table): Add `keep' member.
6614 * tbl/table.c (table::table): Initialize `keep'.
6615 (table::add_vertical_rule): Set `keep' to 1.
6616 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6617 (table::do_bottom): Likewise for table release macro.
6618 (table::do_row): Emit section keep macro even if the row is 0.
6620 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6622 * macros/tmac.e (@C): Preserve the font family across the change
6625 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6627 * lib/font.c: Initialize font::hor and font::vert to 1.
6628 (font::load_desc): Check the values of font::hor and font::vert.
6630 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6631 be included in a C compilation.
6632 (iftoa): Use INT_DIGITS. Include lib.h.
6634 (as_string): Likewise.
6635 * tbl/table.c: Removed definition of INT_DIGITS.
6636 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6637 * troff/input.c (input_input_requests): Likewise.
6638 * ps/ps.c (make_encoding_name): Likewise.
6639 (ps_printer::set_style): Likewise.
6640 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6642 * tty/devascii/R.proto: Map fm onto '.
6643 * tty/devlatin1/R.proto: Likewise.
6645 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6647 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6648 argument to \w is at a different input level.
6650 * tbl/table.c (table::init_output): Define a new macro
6651 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6652 transparently outputs itself.
6653 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6655 (table::do_row): Likewise.
6657 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6658 TRANSPARENT_STRING_NAME.
6660 * tbl/table.c (table::init_output): In the table release macro
6661 print an error message and don't produce any output if after
6662 issuing the need request the table still will not fit. Also
6663 remove the diversion after bringing it back.
6665 * tbl/table.c (table::init_output): Define a new macro
6666 REPEATED_MARK_MACRO, like mk but if in a diversion also
6667 transparently outputs itself.
6668 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6669 is necessary because .TH might not call .T#.
6670 (table::do_top): Likewise TOP_REG.
6671 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6672 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6673 table header might contain just the two top rules.
6675 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6677 * troff/div.c: Implement new request `ptr' to print all traps.
6679 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6680 init_string_env_reg.
6681 * troff/env.c (class tab_reg): Deleted.
6683 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6685 * troff/div.c: New number register .pn returns the number of the
6686 next page as set by the pn request.
6688 * macros/tmac.an: Redid headers and footers. Number each manual
6689 entry starting from 1 unless \nC is > 0, like Sun. Added an
6690 optional 5th argument to .TH which specifies the manual name and
6691 appears in the center of the header. Understand the X, P and D
6694 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6696 * troff/env.c (init_env_requests): New number register `.lt' to
6697 return the title length.
6699 * troff/node.h (class transparent_dummy_node): New class.
6700 * troff/node.c (class transparent_dummy_node): Provide member
6702 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6705 * troff/input.c (token::next): New escape sequence \).
6706 * troff/input.c (get_copy): Recognize \) in copy mode.
6708 * troff/input.c (input_stack::clear): New function.
6709 * troff/input.c (exit_request): Use input_stack::clear.
6711 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6712 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6714 * troff/env.c: Move set_page_character to input.c. Move
6715 page_character to input.c also.
6716 * troff/env.c (title): Split off the reading of the parts of the
6717 title into read_title_parts.
6718 * troff/input.c (read_title_parts): New function. Check the
6719 input_level when testing whether a token matches the delimiter.
6721 * troff/input.c (exit_request): New function.
6722 * troff/input.c (init_input_requests): Bind ex request to
6723 exit_request rather than exit_groff.
6725 * troff/input.c (exit_groff): Call tok.next() before
6726 process_input_stack().
6728 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6730 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6731 * troff/env.h: ditto.
6732 * troff/input.c: ditto.
6734 * troff/env.c (environment::is_empty): Test pending_lines.
6736 * troff/env.c (environment::have_pending_lines): Removed.
6738 * troff/input.c: Add request to flush pending lines from the
6741 * troff/env.c, troff/env.h: Add automatic widow control feature.
6743 * troff/input.c (exit_groff): Do process_input_stack() after
6744 do_break() but before setting exit_flag to 2.
6746 * troff/input.c: Remove FLUSH_PENDING_LINES and
6747 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6748 environment after END_TRAP token seen, but only if there aren't
6749 any more traps still unfinished.
6750 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6752 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6754 * troff/env.c: Rename the `retain_size' member of class
6755 pending_output_line to `no_fill'.
6757 * troff/env.c (title): When the line is output, make the
6758 retain_size argument !fill.
6760 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6761 * troff/node.c (space_node::get_breakpoints),
6762 (dbreak_node::get_breakpoints): Fill this in.
6763 * troff/env.c: Allow specification of maximum number of
6764 consecutive hyphenated lines.
6766 * troff/env.c (environment::is_empty): Add test for !current_tab.
6768 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6770 * troff/env.c (environment::hyphenate_line): Don't completely give
6771 up if the word is not to be hyphenated; continue so that breaks
6772 can be made at break_char_node's.
6774 * lib/lib.h: Only define INT_MAX if it's not already defined;
6775 undef INT_MIN if it's already defined.
6777 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6779 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6780 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6783 * macros/tmac.an (an-header): Set no-space mode.
6785 * macros/tmac.an (TH): Start a new page if necessary.
6787 * Started using ChangeLog at version 0.4.
6790 version-control: never