1 2000-02-21 Werner LEMBERG <wl@gnu.org>
3 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
5 * test-groff: Added grn subdir to path.
7 * doc/groff.texinfo: Some restructing and other small improvements.
9 2000-02-20 Werner LEMBERG <wl@gnu.org>
11 * doc/meref.me: Fix description of .GS request.
13 * src/roff/troff/troff.man: Fixing typo.
15 Adding the `grn' preprocessor for gremlin graphic files.
17 * src/preproc/grn/*: This is the Berkeley distribution written by
18 David Slattengren and Barry Roitblat, adapted to groff by Daniel
19 Senderowicz and Werner Lemberg.
21 * doc/grnexampl.{me,g}: A sample for grn.
23 * Makefile.in: Added subdirectory entry for grn.
25 * src/roff/groff/groff.cc: Added support for grn. It can be now
26 called with the switch `-g'.
28 * src/roff/groff/groff.man: Updated.
30 * src/roff/grog/grog.{man,pl,sh}: Updated.
34 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
36 * src/include/lib.h: Added xtmptemplate and made xtmpfile
37 parametrically polymorphic.
39 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
40 and the alterations to xtmpfile.
41 xtmpfile can be requested to return the filename created
42 and asked not to unlink the temp file. The default behaviour
43 if parameters are absent is exactly the same as before.
45 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
47 A new request `length' is available which returns the length of a
48 string in a number register:
50 * src/roff/troff/input.cc (length_macro): Implement it.
51 * src/roff/troff/input.cc (init_input_requests): Register it.
53 2000-02-11 Werner LEMBERG <wl@gnu.org>
55 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
56 of the `substring' request.
58 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
61 * src/roff/troff/TODO, NEWS: Updated.
63 2000-02-09 Werner LEMBERG <wl@gnu.org>
65 * src/roff/groff/groff.man: Added an example.
67 2000-02-06 Werner LEMBERG <wl@gnu.org>
69 I've considerably modified the directory structure of the
70 distribution to get a more vertical layout. For example, the number
71 of top level directories has been reduced from 42 to 6.
73 As a consequence, many changes, especially to the makefiles, were
76 * The makefile variables `top_builddir' and `top_srcdir' have been
77 introduced. Virtually all relative paths have been replaced with
78 absolute ones using these two variables.
80 * Dependencies (in the files `Makefile.dep') are no longer part of
81 the distribution. Instead, they are created during a `make install'
82 in the build directory.
84 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
85 make `top_srcdir' and `top_builddir' absolute.
89 * Man pages no depend on the files `VERSION' and `REVISION'.
91 * The added shell script `mkinstalldirs' will replace `mkdir' in
94 * VERSION: Version number increased to 1.16.
96 2000-02-04 Werner LEMBERG <wl@gnu.org>
98 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
100 * Makefile.in: Removed $(tmac_m) since it is no longer needed
101 (after an update of the mm stuff).
103 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
105 2000-02-03 Werner LEMBERG <wl@gnu.org>
107 The .psbb request will now also accept Mac PS images (i.e. using LF
108 as the EOL character).
110 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
111 (with slight modifications).
112 * troff/input.cc (do_ps_file): Use it.
114 * test-groff: Add grohtml and grolj4 output devices to PATH.
116 2000-01-30 Werner LEMBERG <wl@gnu.org>
118 * NEWS, MORE.STUFF: Updated.
120 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
122 Add the `srand' command to pic.
124 * pic/lex.cc, pic/pic.y: Implement it.
125 * pic/pic.man: Document it.
126 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
128 2000-01-30 Werner LEMBERG <wl@gnu.org>
130 Add a new request `.psbb'. This does exactly what the external
131 program psbb did. It scans a PostScript image file for a
132 %%BoundingBox comment and extracts the bounding box values (in
133 PostScript units) which are then stored in the four new (read-only)
134 number registers `llx', `lly', `urx', and `ury'.
136 This will allow the usage of the .PSPIC macro without worrying
137 about unsafe behaviour of groff, i.e., it will work without the
138 `-U' switch of groff.
140 * troff/input.cc: Implement it.
141 * tmac/tmac.pspic: Use it.
142 * troff/troff.man, grops/grops.man, NEWS: Document it.
143 * psbb/*, Makefile.in: Remove it since it is no longer needed.
145 This is bloody C code simply adapted from psbb.c! Any improvements
148 2000-01-29 Werner LEMBERG <wl@gnu.org>
150 * man/groff_font.man: Minor clarifications.
154 2000-01-28 Werner LEMBERG <wl@gnu.org>
156 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
158 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
160 * man/groff_font.man: Brought up to date regarding tcommand
162 * libgroff/font.cc: Handle everything after `--' as a comment
164 * devps/*: Added comment delimiter inside devps font files.
166 2000-01-28 Werner LEMBERG <wl@gnu.org>
168 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
169 \fC...\fP (which now works as expected).
171 * troff/troff.man: Fix typo.
173 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
175 Completed the pass_filenames implementation in troff.
177 * libdriver/input.cc: Will read the new `F' tcommand.
178 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
179 * troff/input.cc: Use it.
181 2000-01-26 Werner LEMBERG <wl@gnu.org>
183 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
184 font will now be updated even if an invalid font is selected.
186 2000-01-24 Werner LEMBERG <wl@gnu.org>
188 * doc/homepage.ms: Updated for new tmac.arkup.
190 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
192 * tmac/tmac.arkup: Cleanup.
194 Added `\&' to .HTML macro to `leave vertical mode', so to say.
196 Removed obsolete .LINK macro completely.
198 The macros .URL, .FTP, and .MAILTO now accept a third argument which
199 will be immediately appended to the second argument (to be used with
200 punctuation, for example).
202 Disabled .CDFTP macro temporarily for security reasons.
204 * tmac/groff_markup.man: Complete revision for latest changes in
205 tmac.arkup -- note that it does not yet format correctly with
208 2000-01-23 Bruno Haible <haible@clisp.cons.org>
210 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
211 * devutf8/R.proto: Add mappings for wp, lh, rh.
212 * devutf8/NOTES: Updated.
214 2000-01-23 Werner LEMBERG <wl@gnu.org>
216 * doc/groff.texinfo: Updated version/copyright info.
218 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
220 Added support for two new directives in device descriptions:
221 `pass_filenames' (to pass the input file name to the output device)
222 and `use_charnames_in_special' (to support e.g. accented characters
225 * include/font.h, troff/charinfo.h: Declare it.
227 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
229 * devhtml/DESC: Use it.
231 * troff/input.cc: New function encoded_char.
233 * troff/token.h: Add test for `specialness'.
235 2000-01-21 Werner LEMBERG <wl@gnu.org>
237 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
238 mistake from the list of files to be installed.
240 2000-01-18 Werner LEMBERG <wl@gnu.org>
242 * README: Added info how to apply patches.
244 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
246 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
248 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
250 * troff/input.cc: Add support for troffrc-end.
252 * tbl/main.cc: Altered to issue table-start and table-end special
253 characters if using the html device.
255 * devhtml/*: Modified font files to incorporate html encoding of
258 * tmac/groff_markup.man: New file documenting tmac.arkup.
260 * tmac/troffrc-end: New file. This is invoked after all user
261 specified macros. Currently used by the html device to include
262 tmac.html. Thus no need for users to specify -mhtml anymore.
264 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
265 (MAN7): Add groff_markup.man.
267 * tmac/tmac.an, tmac/tmac.html: Small html updates.
269 * tmac/troffrc: tmac.arkup will now be called for the html device.
271 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
272 extra device specific information about fonts.
274 * doc/homepage.ms: New file. It is an example how an HTML home page
275 could look like with grohtml.
277 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
279 2000-01-12 Bruno Haible <haible@clisp.cons.org>
281 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
284 * devutf8/NOTES: Updated.
286 2000-01-08 Bruno Haible <haible@clisp.cons.org>
288 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
289 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
290 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
291 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
292 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
293 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
294 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
295 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
298 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
300 2000-01-12 Fabrizio Polacco <fab@prosa.it>
302 grolj4: Paper size will be searched case-insensitively.
304 * grolj4/lib.h: Add check for strcasecmp().
305 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
306 * configure.in: Check for strcasecmp().
308 2000-01-11 Werner LEMBERG <wl@gnu.org>
310 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
313 2000-01-10 Werner LEMBERG <wl@gnu.org>
315 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
318 Add a new read-only register, `.Y', which contains the groff
321 * troff/input.cc (init_input_requests): Define it.
322 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
323 * doc/groff.texinfo, troff/troff.man: Document it.
325 * libgroff/Makefile.sub (version.cc): Add definition of
326 `Version_string[]', consisting of `<major>.<minor>.<revision>'
327 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
328 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
329 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
330 troff/input.cc, pfbtops/pfbtops.c: Use it.
332 2000-01-10 Fabrizio Polacco <fab@prosa.it>
334 Add a revision scheme to the groff package.
336 * REVISION: New file.
337 * libgroff/Makefile.sub (version.cc): Use it to define
339 * grops/psrm.cc: Use revision_string (converted to an unsigned
340 integer) in constructor of resource_manager.
342 2000-01-10 Bruno Haible <haible@clisp.cons.org>
344 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
346 * Makefile.in (DEVDIRS): Add devutf8.
347 * grotty/tty.cc: Include device.h.
348 (glyph): Change type of `code' to `unsigned int'.
349 (tty_printer): New field is_utf8. Constructor takes device argument.
350 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
351 (tty_printer::add_char): Change type of first arg to `unsigned int'.
352 (tty_printer::put_char): New function.
353 (tty_printer::end_page): Use put_char() instead of ::putchar().
354 (make_printer): Pass device to tty_printer constructor.
355 * nroff.sh: Determine default device by calling 'locale'. As a
356 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
357 Recognize UTF-8 locales.
358 * tmac/eqnrc: Recognize utf8 like latin1.
359 * tmac/troffrc: Device utf8 needs tmac.tty.
361 2000-01-07 Werner LEMBERG <wl@gnu.org>
363 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
365 2000-01-07 Paul Eggert <eggert@twinsun.com>
367 Add a new predefined writeable number register, `year',
368 which contains the current year.
370 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
371 * tmac/tmac.s: Use it.
372 * troff/input.cc (init_registers): Initialize it.
374 2000-01-06 Werner LEMBERG <wl@gnu.org>
376 * PROBLEMS: Fixed typo.
378 2000-01-04 Paul Eggert <eggert@twinsun.com>
380 * PROBLEMS: Add Y2k advice for the yr number register.
382 2000-01-03 Paul Eggert <eggert@twinsun.com>
384 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
386 2000-01-02 Werner LEMBERG <wl@gnu.org>
388 * tmac/tmac.arkup: Slight modification of macros to provide better
389 appearance for non-HTML formats.
391 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
393 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
394 does not automatically translate to malloc(n) on all OSes
395 (e.g., SunOS) so do it explicitly. Also, check the returned
398 2000-01-01 Werner LEMBERG <wl@gnu.org>
400 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
402 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
403 expects this variable
405 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
407 * doc/Makefile: Added instructions to create HTML and text
408 versions of some files.
410 1999-12-31 Werner LEMBERG <wl@gnu.org>
412 * Updated INSTALL.gen.
414 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
415 better resp. correctly with non-HTML devices.
417 Version 1.15 released
418 =====================
420 1999-12-28 Werner LEMBERG <wl@gnu.org>
422 * NEWS, VERSION: Changed to 1.15
424 1999-12-27 Paul Eggert <eggert@twinsun.com>
426 * nroff/nroff.man: -S is safer, not safe.
428 * groff/groff.cc (main): Use `safer', not `safe', in variable
429 names. This does not change the behavior.
431 * troff/input.cc (main): Likewise.
433 * nroff/nroff.sh: Likewise.
435 * troff/input.cc (prepend_string): New function.
436 (main): Prepend -msafer, so that we check macro libraries for
439 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
441 Version 1.14 released
442 =====================
444 1999-12-26 Werner LEMBERG <wl@gnu.org>
446 * NEWS, VERSION: Changed to 1.14.
448 1999-12-24 Werner LEMBERG <wl@gnu.org>
450 * refer/refer.cc: Fixing the last fix.
452 Version 1.13 released
453 =====================
455 1999-12-23 Werner LEMBERG <wl@gnu.org>
457 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
462 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
464 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
465 document conventions, the version number must be a real.
467 Version 1.12.1 released
468 =======================
470 1999-12-22 Werner LEMBERG <wl@gnu.org>
472 * VERSION: Changed to 1.12.1.
474 1999-12-22 Alan Rooks <arooks@istar.ca>
476 * refer/refer.cc (do_file): Slight modification to satisfy the
477 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
480 1999-12-20 Werner LEMBERG <wl@gnu.org>
482 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
485 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
486 list of unsafe requests.
488 * pic/pic.man: Fixed a typo.
490 * man/groff_out.man: Fixed a typo.
492 1999-12-18 Werner LEMBERG <wl@gnu.org>
494 * Makefile.in: Doc fixes.
496 1999-12-17 Fabrizio Polacco <fab@prosa.it>
498 * groff/groff.cc: Missing `U' option added to getopt().
500 * troff/troff.man: Missing `U' option added to synopsis.
502 Version 1.12 released
503 =====================
505 1999-12-14 Werner LEMBERG <wl@gnu.org>
507 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
510 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
511 with the more appropriate terms `safer' and `unsafe'.
513 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
514 sys_nerr and sys_errlist[].
516 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
518 * pic/pic.y, pic/pic.cc: Added check for fmod().
520 1999-12-13 Werner LEMBERG <wl@gnu.org>
522 * VERSION: Changed to 1.12.
524 Here some patches from various sources; most of them taken from
525 the Debian distribution.
527 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
528 tmac/Makefile.sub: New files copied directly from the NetBSD
529 distribution. Probably, some additional adaptation later on is
532 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
535 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
536 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
537 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
538 (`-S') is now the default.
540 * README, NEWS: Updated.
542 1999-12-09 Werner LEMBERG <wl@gnu.org>
544 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
546 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
548 1999-12-06 Werner LEMBERG <wl@gnu.org>
550 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
551 grief than relief today. Additionally, it is against the GNU
554 * configure: Recreated.
556 1999-12-05 Werner LEMBERG <wl@gnu.org>
558 * configure.in: Added GROFF_LIBM.
560 * configure: Recreated.
562 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
565 * Makefile.in: Added definition of $(LIBM).
567 * Makefile.comm (LIBM): Removed.
569 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
571 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
573 * doc/Makefile: Added rule for generation pic.html.
575 (clean): Files produced by grohtml will be removed also.
577 * doc/pic.ms: Small fix.
579 * tmac/tmac.html: Fixed suppression of headers.
581 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
583 * tmac/tmac.html: Fixing horizontal arrows.
585 Turning off hyphenation.
587 * tmac/tmac.an: Improved support for grohtml; better indentation,
590 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
592 * tmac/tmac.arkup: Added CDFTP macro
594 * tmac/tmac.html: All headers are turned off for ms, me, and mm
597 * tmac/troffrc: Some additions for HTML stuff.
599 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
601 * tmac/tmac.html: Small changes.
603 1999-09-26 Werner LEMBERG <wl@gnu.org>
605 * doc/groff.texinfo: Minor fixes.
607 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
609 * devhtml/TR: Changed spacewidth to 3.
611 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
613 * tmac/tmac.html: Moved markup macros to tmap.arkup.
615 * tmac/tmac.arkup: New file.
617 * grohtml/ChangeLog: New file.
619 1999-09-16 Werner LEMBERG <wl@gnu.org>
621 * doc/groff.texinfo (Common Features): Added Copying chapter.
622 Changed format to @smallbook.
624 1999-09-15 Werner LEMBERG <wl@gnu.org>
626 * NEWS: Added info about groff.texinfo.
628 * doc/groff.texinfo: Will now compile (using texi2dvi) without
631 1999-09-14 Werner LEMBERG <wl@gnu.org>
633 * groff/groff.man: More updates.
635 1999-09-13 Werner LEMBERG <wl@gnu.org>
637 * doc/groff.texinfo: New file. This manual is still very
638 rudimentary. It has been originally contributed by Trent
639 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
642 * INSTALL: Added information about the `doc' subdir
644 * troff/troff.man: Minor fixes.
646 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
649 * troff/input.cc (usage): Added missing `-ffam' to usage message.
651 * Makefile.in (dist): groff-$(version).tar.gz must be removed
652 also, otherwise it is included itself in another call of `make
655 * groff/groff.cc (synopsis): Removed superfluous space.
657 * PROJECTS, PROBLEMS, NEWS: Updated.
659 * xditview/Makefile: Removed.
661 * VERSION: Updated to 1.12beta.
663 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
665 * README: Updated: Included documentation about CVS repository,
666 mailing lists, and daily snapshots.
668 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
670 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
672 * tmac/tmac.an: If the tag didn't fit into the space that the
673 macro `TP' specifies, the rest of the tag went into the space for
676 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
678 * grolj4/lj4.cc: Added duplex printing (option `-d').
680 * grolj4/grolj4.man: Document duplex printing.
682 1999-09-12 Werner LEMBERG <wl@gnu.org>
684 * doc/Makefile (pic.ps): Fixed rule which caused problems with
685 non-GNUish sed programs.
687 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
690 * configure.in (LIBS): Added `-lc'
692 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
694 * pic/tex.cc (solid_arc): Casting M_PI to double.
696 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
698 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
699 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
700 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
702 * groff/groff_man.man: New file. This manual page was originally
703 written for the Debian GNU/Linux system by Susan G. Kleinmann
706 * eqn/list.cc (list_box::compute_metrics,
707 list_box::compute_sublist_width): Removed variable declaration to
708 avoid shadowing warnings.
710 * grops/psrm.cc (resource_manager::process_file): Ditto.
712 * tfmtodit/tfmtodit.cc (main): Ditto.
714 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
715 to avoid shadowing warnings.
717 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
718 shadowing loop variable.
720 * groff/groff.man, troff/troff.man: Added doc about grohtml.
722 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
724 New grohtml frontend to convert groff input to html.
726 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
728 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
730 * tmac/eqnrc: Added html device.
732 * tmac/tmac.html: New file.
734 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
735 (troff_output::start_picture, troff_output::finish_picture),
736 tbl/main.cc (process_input_file):
737 Surrounded output with `graphics_start' and `graphics_end' so that
738 the html driver can identify non-text portions.
740 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
741 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
742 grotty/tty.ps (tty_printer::set_char): Additional parameter
745 * include/printer.h: Class printer: New function
746 set_char_and_width; new variables (is_char_named, is_named_set,
747 named_command, named_char_s, named_char_n) to hold information
748 about named characters -- needed by the html driver.
750 * libdriver/printer.cc (printer::set_ascii_char,
751 printer::set_special_char): Use set_char_and_width.
753 * devhtml/*: New device files for html driver.
755 * grohtml/*: New driver grohtml.
757 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
759 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
762 1999-09-11 Luke Mewburn <lukem@netbsd.org>
764 * libgroff/string.cc (search): Small fix to test against NULL
767 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
769 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
770 \b'abc') were stacked in reverse order when processed in a
773 * troff/node.h: Added `*last' to struct `node' to make the above
776 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
777 The default scale for the 'f' and 't' graphics functions were 'm'
778 rather than 'u' (i.e., no scaling).
780 1999-09-11 Peter Miller <peterm@jna.com.au>
782 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
783 do_file), soelim/soelim.man: Added `-I file' option to soelim,
784 defining include paths.
786 * soelim/soelim.cc (include_path_append): New function.
788 1999-09-11 Larry Jones <larry.jones@sdrc.com>
790 * tbl/main.cc (process_options): Unix (at least Documenter's
791 Workbench) tbl allows arbitrary non-alpha characters between
794 1999-09-11 Paul Eggert <eggert@twinsun.com>
796 Y2k fixes. Don't assume that the current year precedes 2000.
798 * doc/meref.me: Add \n(y2, \n(y4.
800 * tmac/doc-common (Yr): New number register.
801 (Dd): Don't assume current year precedes 2000.
803 * tmac/tmac.e (td): Likewise.
804 (y2, y4): New number registers.
806 * pic/pic.man: Update reference for pic paper to May, 1991
809 1999-09-11 Werner LEMBERG <wl@gnu.org>
811 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
812 Removed quotation marks which prevented correct expansion of
815 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
817 1999-09-10 Werner LEMBERG <wl@gnu.org>
819 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
822 * Removed configure.old.
824 1999-08-31 Werner LEMBERG <wl@gnu.org>
826 * VERSION: Updated to 1.11.1
828 1999-05-27 Werner LEMBERG <wl@gnu.org>
830 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
832 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
833 added quotations around $(tmac_wrap) to avoid syntax error if
836 * configure: Newly generated using autoconf 2.13.
838 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
840 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
842 * README, PROJECTS, NEWS, INSTALL, VERSION,
843 doc/Makefile. doc/pic.ms, groff/groff.man:
844 Prepare for 1.11 release. No code changes.
845 Documentation for pic added (doc/pic.ms).
847 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
849 * Version 1.10 released.
851 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
853 * afmtodit/afmtodit.pl: Avoid comment on first line.
855 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
857 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
858 * configure.in: Call it.
860 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
861 (distfiles): Doesn't depend on config.log or config.cache.
863 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
865 * grog/grog.sh: Use print "" rather than print in END rule.
867 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
869 * tbl/main.cc (process_data): Don't give error for excess data
870 entries that are comments.
872 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
874 * tbl/main.cc (process_data): Fix case where new for-scope rules
875 silently change meaning of code.
877 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
879 * troff/env.cc (hyphenate): Loop over all consecutive sequences
880 of non-zero hyphenation codes.
882 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
884 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
886 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
888 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
890 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
892 * tmac/tmac.andoc: Make it work in compatibility mode.
894 * refer/token.h (token_info::is_range_sep): New function.
895 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
896 * refer/ref.cc (reference::output): More sophisticated check for
899 * devps/prologue.ps (MANUAL): New procedure.
900 * grops/ps.cc (main): New -m option.
902 (ps_printer::~ps_printer): Implement -m.
904 * aclocal.m4 (GROFF_G): New macro.
905 * configure.in: Call it.
906 * Makefile.in (g): Provided by configure.
908 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
910 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
913 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
914 (tmac_m, tmac_s): Deleted.
915 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
916 tmac_s_prefix): New variables.
917 (MDEFINES): Change accordingly.
918 * Makefile.comm (.man.n): Use new TMAC_* variables.
919 * configure.in (GROFF_TMAC): Call.
920 * aclocal.m4 (GROFF_TMAC): Define.
921 * tmac/Makefile.sub (stamp_wrap): New target.
922 (install_data, uninstall_sub): Handle macro wrapping.
924 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
926 * tbl/main.cc (main): Ignore -T option.
928 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
930 * devlj4/generate/special.map: Add definition of \(nb.
932 * tmac/tmac.dvi: Add definition of \(nb.
934 * troff/dictionary.c (dictionary::dictionary): association::v gets
935 initialized by association::association.
937 * tmac/Makefile.sub: Avoid using temporary files when installing.
939 * troff/env.cc (environment::set_font): Make bad font number a
942 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
944 * Makefile.in (datadir): Use share rather than lib.
946 * groff/groff.cc (basename): Rename to xbasename.
948 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
950 * Makefile (CCLIBS): Don't use.
951 * Makefile.ccpg: Likewise.
953 * acgroff.m4: Rename to...
954 * aclocal.m4: Modify extensively for autoconf 2.
955 * configure.in: Likewise.
956 * Makefile.in: Likewise.
958 * groff/pipeline.c (const): Declare as empty if __STDC__ not
960 (xstrsignal): Check for definition of NSIG. Conditionalize
961 on SYS_SIGLIST_DECLARED. Make return type const.
963 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
965 * troff/input.cc (interpolate_macro): Rephrase missing space
968 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
970 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
971 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
972 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
973 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
974 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
975 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
976 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
977 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
978 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
979 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
980 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
983 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
985 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
987 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
989 (macro_iterator::macro_iterator): Add additional argument.
991 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
993 * troff/div.cc (vertical_size::vertical_size): In place of integer
994 specifying line spacing use cunits specifying post vertical
996 (macro_diversion::output, top_level_diversion::output): Likewise.
997 * troff/div.h: Change declarations accordingly.
998 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1000 (pending_output_line::pending_output_line,
1001 pending_output_line::output, environment::output,
1002 environment::output_line, environment::output_title,
1003 environment::hyphenate_line): In place of
1004 integer specifying line spacing use cunits specifying post vertical
1006 (environment::environment): Add post_vertical_spacing and
1007 prev_post_vertical_spacing arguments.
1008 (environment::get_post_vertical_spacing): New function.
1009 (environment::total_post_vertical_spacing): New function.
1010 (environment::post_vertical_spacing): New function.
1011 (init_env_requests): Initialize pvs request and .pvs register.
1012 * troff/env.h: Change declarations.
1014 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1016 * tmac/tmac.pspic: Immediately remove the temporary file.
1018 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1020 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1021 height is specified.
1023 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1025 * tbl/table.c (struct vertical rule, class table_entry): Use int
1026 not short for start_row and end_row.
1028 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1030 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1032 (diverted_space_node::reread, process_input_stack): Call
1033 trapping_blank_line() rather than blank_line().
1034 (init_input_requests): Bind "blm" to blank_line_macro().
1036 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1038 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1040 * troff/env.cc (environment::possibly_break_line): Require that
1041 width total excluding width of final space node be greater than
1042 the target text length.
1044 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1046 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1048 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1050 * troff/node.cc (charinfo_node): New class.
1051 (glyph_node, composite_node): Derive from charinfo_node. Change
1052 member functions accordingly.
1054 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1056 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1058 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1060 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1062 * devps/generate/textmap (notsubset): Add.
1064 * tmac/tmac.a4: New file.
1066 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1068 * pic/main.cc (had_parse_error): New variable.
1069 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1071 (main): Return 1 if had_parse_error is true.
1073 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1075 * grolj4/lj4.cc (main): Avoid use of strtoul.
1077 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1079 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1080 iso_8859_1 or $LESSCHARSET is latin1.
1082 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1084 * hpftodit: New directory.
1085 * Makefile.in (CCPROGDIRS): Add hpftodit.
1086 * devlj4/generate: New directory.
1088 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1090 * configure.in: Don't use AC_VFORK.
1091 * groff/pipeline.c (run_pipeline): Use fork() always.
1093 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1095 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1097 * Makefile.in (CCPROGDIRS): Add grolj4.
1098 (DEVDIRS): Add devlj4.
1099 * grolj4, devlj4: New directories.
1100 * tmac/troffrc: Handle lj4.
1101 * tmac/tmac.lj4: New file.
1103 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1105 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1107 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1109 * troff/input.cc (do_if_request): At end of second string, switch
1110 environments before getting next token.
1112 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1114 * devps/psstrip.sed: Split rule that strips whitespace on either
1117 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1119 * troff/node.h (font_family::make_definition): Add return value to
1120 declaration. * troff/symbol.h (symbol::operator==,
1121 symbol::operator!=): Likewise.
1123 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1125 * groff/groff.cc (main, help, synopsis): Handle -S.
1126 (possible_command::insert_arg): New function.
1128 * tmac/tmac.safer: New file.
1129 * tmac/msafer.man: New file.
1130 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1132 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1134 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1135 * pic/pic.y (placeless_element): Avoid unsafe operations if
1136 `safer_flag' is set.
1137 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1139 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1141 * eqn/lex.cc (get_token): Put call to add_context() in block to
1142 work around Sun C++ 4.0 bug.
1144 * include/stringclass.h (operator +): Use ?: instead of `if' to
1145 work around Sun C++ 4.0 bug.
1147 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1149 * tbl/main.cc (process_format): Accept - as a synonym for the _
1152 * libbib/index.cc (minus_one): Don't declare as const.
1154 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1156 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1158 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1160 * troff/input.cc (write_macro_request): New function.
1161 (init_input_requests): Bind write_macro_request to writem.
1163 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1165 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1168 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1170 * tmac/tmac.s (@TS): Renamed from TS.
1171 (TS): Call LP then TS again.
1172 (cov*ab-init): Alias @TS to TS.
1174 * tmac/tmac.s: Allow QP or RS to initialize.
1176 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1177 Move initializations of PS and LL here.
1178 (par@init): Don't initialize HY. Avoid changing environment 0.
1179 (par*env-init): Don't all par@reset.
1181 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1183 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1185 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1187 * Makefile.in (MDEFINES): Add LDFLAGS.
1188 (LDFLAGS): Add definition line.
1190 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1192 * troff/input.cc (get_optional_char): Split off error check into...
1193 (check_missing_character): New function.
1194 * troff/token.h: Declare it.
1195 * troff/env.cc (margin_character): Don't call get_optional_char.
1196 Only call tok.next() after making the node.
1198 * include/lib.h (getopt): Make 2nd argument char *const *.
1200 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1202 * nroff/conftest.sh: Deleted.
1204 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1206 * pic/make-dos-dist: Deleted.
1208 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1210 * devps/psstrip.sed: Strip comments before stripping trailing
1213 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1215 * Version 1.09 released.
1217 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1219 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1221 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1223 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1225 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1227 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1228 about returning without a value.
1230 * troff/charinfo.h (charinfo::get_special_translation): Cast
1231 TRANSLATE_NONE to int.
1233 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1234 test. Fix test so that it works with n unsigned.
1236 * pic/pic.y (defaults_table): Fully bracket initializer.
1237 * pic/lex.cc (lookup_keyword): Likewise.
1238 * eqn/lex.cc (token_table, def_table): Likewise.
1239 * eqn/box.cc (param_table): Likewise.
1240 * troff/input.cc (warning_table): Likewise.
1241 * libgroff/font.cc (table): Likewise.
1242 * grops/ps.cc (ps_printer::special): Likewise.
1243 * grops/psrm.cc (resource_manager::process_file): Likewise.
1244 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1245 * refer/command.cc (command_table): Likewise.
1246 * addftinfo/addftinfo.cc (param_table): Likewise.
1248 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1249 about temp's being unused.
1250 (unused): New function.
1252 * groff/pipeline.cc: Declare c_fatal.
1254 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1257 * libbib/index.cc (index_search_item::load): Prevent compiler
1258 warnings about fd_closer's being unused.
1259 (unused): New function.
1261 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1263 * troff/input.cc (copy_mode_error): Make `prefix' static.
1266 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1268 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1269 HAVE_CC_OSFCN_H and modify accordingly.
1271 * troff/input.cc (init_charset_table): radicalex overlaps
1274 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1275 udodo!hans@relay.NL.net).
1276 * groff/configure.in: Call it.
1278 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1279 * groff/configure.in: Call it.
1280 * include/lib.h: Conditionalize declaration of pclose.
1282 * troff/div.cc (last_page_number): New global variable.
1283 (top_level_diversion::begin_page): Exit if we just printed the
1285 * troff/div.h (last_page_number): Declare it.
1286 * troff/input.cc (parse_output_page_list): Set last_page_number.
1288 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1289 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1290 tmac/tmac.X: Likewise.
1291 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1292 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1294 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1296 * tmac/doc-ditroff (hK): Remove groff specific code which
1297 prevented page-breaks between separate manual entries. If this is
1298 the first page, don't set the page number to 1.
1300 * acgroff.m4 (GROFF_POSIX): New macro.
1301 * configure.in: Use it.
1303 * troff/node.cc (class real_output_file,
1304 real_output_file::real_output_file,
1305 real_output_file::~real_output_file): Conditionalize use of
1306 popen/pclose on POPEN_MISSING.
1307 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1308 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1309 (pipe_source): Similarily.
1311 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1313 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1314 presence of declarations by trying to compile example with
1315 conflicting declarations. (gcc only gives a warning for missing
1318 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1320 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1321 (from Ulrich Lauther).
1323 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1325 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1327 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1329 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1330 pointers and ints have different sizes.
1332 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1334 * tmac/tmac.s (par*env-init): Call par@reset.
1336 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1338 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1340 (par*push-tag-env, par*pop-tag-env): New macros.
1342 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1344 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1345 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1347 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1348 comment. Include <time.h>.
1350 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1352 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1353 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1356 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1358 * troff/input.cc (read_request): Only print a prompt if reading
1359 from the terminal. Also clearerr on EOF if reading from the
1360 terminal. Declare isatty.
1362 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1364 * refer/label.y: Rename map_t to map_func and extractor_t to
1367 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1369 * include/assert.h: Don't use volatile.
1370 * libgroff/assert.cc: Likewise.
1372 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1374 * troff/input.cc (abort_request): Look at character in tok before
1377 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1379 * troff/troff.h (NO_RETURN): Deleted.
1380 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1381 * troff/input.cc (exit_troff): Likewise
1383 * Makefile.in: Remove `Making ...' messages since GNU make now
1386 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1388 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1390 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1393 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1395 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1397 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1399 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1400 MARK_REG if there was no left delimiter.
1402 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1404 * pic/troff.cc (troff_output::text): Set line thickness to
1405 relative before outputting text.
1407 * tmac/tmac.e (@k): Don't zero ?T.
1410 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1412 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1414 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1416 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1419 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1421 * troff/input.cc (ignoring): New variable.
1422 (ignore): Set ignoring during call to do_define_macro.
1423 (do_define_macro): Clear ignoring before interpolating terminating
1425 (copy_mode_error): New function.
1426 (get_char_for_escape_name, read_long_escape_name,
1427 interpolate_arg): Use copy_mode_error.
1428 (warning_table): Add WARN_IG.
1429 * troff/troff.h (WARN_IG): Declare.
1430 (WARN_TOTAL): Change accordingly.
1432 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1433 * groff/groff.cc (strsignal): Delete declaration.
1435 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1437 * troff/div.cc (page_offset): Use 'm' as default scaling.
1439 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1441 * nroff/nroff.sh: Ignore -u.
1443 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1445 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1447 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1449 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1451 (B2): With -Tascii, leave additional vertical space before
1452 and after. Ensure that the left and right indent is restored to
1453 what it was even if the point size changes. Don't call
1454 par@finish. Change the indent, line length and title length
1455 directly. With -Tascii, make the width of the box 1n less.
1456 (B1): Remember 1n at the current point size. Don't call
1457 par@reset. Change the indent, line length and title length
1458 directly. Ensure that the temporary indent is preserved.
1459 (par*box-mark-top): Turn off no spacing mode.
1461 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1463 * Makefile.in (dist): Use .gz suffix.
1465 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1467 * troff/input.cc (main): Add return 0.
1468 * pic/main.cc (main): Use return instead of exit.
1469 * tbl/main.cc (main): Likewise.
1470 * eqn/main.cc (main): Likewise.
1471 * grops/ps.cc (main): Likewise.
1472 * grotty/tty.cc (main): Likewise.
1473 * groff/groff.cc (main): Likewise.
1474 * grodvi/dvi.cc (main): Likewise.
1475 * refer/refer.cc (main): Likewise.
1476 * indxbib/indxbib.cc (main): Likewise.
1477 * lkbib/lkbib.cc (main): Likewise.
1478 * soelim/soelim.cc (main): Likewise.
1479 * addftinfo/addftinfo.cc (main): Likewise.
1480 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1481 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1483 * troff/token.h (process_input_stack): Don't declare as static.
1484 * troff/input.cc: Likewise.
1486 * troff/node.c (invalidate_fontno): Make it a static member of
1487 class font_family. Change callers.
1488 * troff/node.c: Change declaration.
1490 * tbl/main.cc (struct input_entry_format): Add explicit public
1492 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1493 struct double_hline_stuff): Likewise.
1494 * tbl/table.h (struct entry_format): Likewise.
1495 * pic/object.h (struct saved_state): Likewise.
1497 * include/stringclass.h: Add forward declarations of friend
1498 functions that are later declared as inline. Don't include inline
1499 specifier in friend declaration.
1501 * libgroff/lib.h: Declare popen and pclose.
1502 * acgroff.m4 (GROFF_POPEN): New macro.
1503 * configure.in: Call it.
1505 * include/lib.h (PI): New constant. Undef first if necessary.
1506 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1507 * grops/ps.cc (degrees, radians): Likewise.
1508 * libgroff/font.cc (font::get_skew): Likewise.
1510 * grops/ps.cc (is_ascii): New function.
1511 (ps_output::put_string): Use is_ascii. Use csprint rather than
1513 (ps_printer::define_encoding): Use csspace.
1514 * libgroff/strtol.c (ISASCII): New macro.
1515 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1516 Use ISASCII rather than isascii.
1517 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1518 * libgroff/cset.cc: Likewise.
1519 * libdriver/input.cc: Include cset.h.
1520 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1523 * refer/refer.cc (main): Use %ld rather than %d for longs.
1525 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1528 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1530 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1532 * troff/input.cc (hyphenation_code): Skip white space between
1535 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1537 * tbl/table.h (table::entry_list_tailp): New member.
1538 (table::table): Initialize it.
1539 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1542 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1544 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1545 with negative horizontal positions. Remove casts of glyph::hpos to
1547 (USHRT_MAX): Delete definition.
1548 (SHRT_MAX, SHRT_MIN): New definitions.
1549 (glyph::hpos): Change type to short.
1550 (tty_printer::end_page): Output multiple backspaces if necessary.
1551 Remove casts of glyph::hpos to int.
1553 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1555 * tmac/tmac.s (@RT): New definition.
1557 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1559 * refer/refer.cc (do_file): Make sure current_filename is set when
1562 * pic/common.cc (common_output::dot_line): Handle zero length
1565 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1567 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1568 (par@init): Initialize \n[HY].
1570 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1572 * troff/dictionary.cc (dictionary::remove): Continue when
1575 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1577 * Makefile.com (.y.cc): Avoid ending up with two versions of
1580 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1582 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1583 (\(,C): Likewise. Also fix typo.
1585 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1587 * lib.h: Delete extraneous semi-colon.
1589 * Add pso request: `so' from a pipe.
1590 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1591 (file_iterator::close): New function.
1592 (file_iterator::~file_iterator, file_iterator::next_file): Use
1593 file_iterator::close.
1594 (file_iterator::backtrace): Say `process' rather than `file' when
1595 the stream is popened.
1596 (pipe_source): New function.
1597 (init_input_requests): Bind ".pso" to pipe_source.
1599 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1601 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1603 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1604 digits in lower case.
1606 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1608 * Version 1.08 released.
1610 * Makefile.in (dist): Insert || true after ln -s commands that
1613 * mm: Update to mm 1.16.
1615 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1616 * configure.in: Call GROFF_CSH_HACK. Substitute for
1618 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1620 * nroff/Makefile.sub (nroff): New target.
1621 (install_data): Install nroff.
1622 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1623 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1625 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1627 * eqn/Makefile.sub (neqn): Add chmod +x.
1629 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1631 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1633 * troff/input.cc (string_iterator::string_iterator()): Initialize
1636 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1638 * troff/div.cc (macro_diversion::space,
1639 top_level_diversion::space): Don't set high_water_mark.
1640 (macro_diversion::output, top_level_diversion::output): Don't
1641 include post line space in high water mark.
1643 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1645 * eqn/eqn.y: Don't define YYDEBUG.
1646 * pic/pic.y: Likewise.
1648 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1650 * tmac/tmac.e ([3): Add space after comma following editors.
1651 Change double spaces to single spaces.
1652 ([4): Change double spaces to single spaces.
1654 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1655 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1656 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1657 after %!PS-Adobe- (for Newsprint).
1659 * troff/div.cc (top_level_diversion::begin_page): When
1660 before_first_page is 1, set page_number to 1.
1662 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1664 * eqn/box.cc (box::top_level): Protect equation with \&.
1666 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1668 * groff/groff.cc (possible_command::set_name): Delete old name.
1670 * groff/groff.cc (possible_command::~possible_command): Use
1673 * troff/node.cc (troff_output_file::begun_page): New member.
1674 (troff_output_file::troff_output_file): Initialize it.
1675 (troff_output_file::really_begin_page): Only output V command if a
1676 page has been begun.
1678 * pic/pic.y (placeless_element): Delete argument to PRINT after
1681 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1683 * Make wrapman work.
1684 * troff/div.h (class top_level_diversion): Replace
1685 first_page_begun by before_first_page (with opposite sense).
1686 * Change first_page_begun to before_first_page inverting sense.
1687 * troff/div.cc (class nl_reg): New class.
1688 (init_div_requests): Use class nl_reg for \n(nl.
1689 (top_level_diversion::begin_page): Don't call
1690 output_file::begin_page if before_first_page is 2;
1691 reset before_first_page afterwards. If have_next_page_number is
1692 false, then always increment page_number.
1693 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1694 Restore compatibility mode after loading, and then disable
1695 compatibility mode in TH.
1697 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1699 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1701 * troff/node.h (output_file::trailer): Declare.
1702 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1703 * troff/node.cc (output_file::trailer): New function.
1704 (troff_output_file::~troff_output_file): Move most code into...
1705 (troff_output_file::trailer): New function.
1706 (class troff_output_file): Delete page_length member. Declare
1708 (troff_output_file::really_begin_page): Use current page length
1709 for final V command.
1711 * tbl/main.cc (struct options): New decimal_point_char member.
1712 (options::options): Initialize this.
1713 (process_options): Implement decimalpoint option.
1714 (process_data): Pass decimal_point_char option to table::table.
1715 * tbl/table.h (class table): New decimal_point_char member.
1716 (table::table): Add additional argument.
1717 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1718 second argument specifying decimal point character. Use this
1720 (table::table): Initialize decimal_point_char.
1721 (table::add_entry): Change call to find_dot.
1723 * troff/input.cc (get_copy, token::next): Implement \V.
1724 (interpolate_environment_variable): New function.
1726 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1728 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1729 * pic/pic.y: Likewise.
1731 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1733 * refer/ref.cc (reference::insert_field, reference::delete_field):
1735 * troff/number.cc (parse_term): Likewise.
1737 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1738 * configure.in: Use GROFF_PROG_YACC.
1740 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1742 * Makefile.in (OPTIMIZE): New define.
1743 (DEBUG): Empty by default.
1744 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1746 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1747 (GROFF_ARRAY_DELETE): Likewise.
1748 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1750 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1752 * devps/psstrip.sed: Use different delimiter on last line (so that
1753 it works with BSD 4.4 sed.)
1755 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1757 * devps/psstrip.sed: Delete comments.
1759 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1760 optind, opterr, optarg.
1761 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1764 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1766 * Makefile.in (check): Dummy target.
1768 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1770 * Version 1.07 released.
1772 * Integrate mm 1.11.
1774 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1775 where start_col was meant.
1777 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
1779 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1781 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
1783 * troff/input.cc (token::next): Make \z\o'...' and similar things
1786 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1788 (environment): Add margin_character_flags member.
1789 * env.cc (environment::environment(symbol),
1790 environment::environment(const environment *): Initialize
1791 margin_character_flags.
1792 (margin_character): Rewrite.
1793 (environment::output_line): Add a margin character if
1794 margin_character_flags is non-zero. Turn off the
1795 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
1796 zero, use margin_character_node without copying and then set
1797 margin_character_node to 0.
1799 * devps/DESC.in: Change minimum size to 1000.
1801 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
1803 * troff/symbol.h (symbol::hash): Change return type to unsigned
1805 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1808 * test-groff: Use -r rather than -x.
1810 * grops/psfig.diff: Include in distribution again.
1812 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
1814 * Makefile.in (dist): Use gzip.
1816 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
1818 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1819 unistd.h as well as in stdlib.h.
1820 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1821 defined; otherwise include <sys/types.h> and <unistd.h> if
1822 UNISTD_H_DECLARES_GETOPT is defined.
1824 * configure.in: use builtin(include, ... rather than include(...
1825 * configure: Regenerate with autoconf 1.3.
1827 * libdriver/print.cc (printer::adjust_arc_center): Use new
1828 algorithm suggested by Andy Fyfe.
1830 * libdriver/printer.cc (printer::adjust_arc_center): New function.
1831 * include/printer.h: Declare this.
1832 * grops/ps.cc (ps_printer::draw): Use it.
1833 * grodvi/dvi.cc (dvi_printer::draw): Use it.
1835 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
1837 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1839 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
1841 * eqn/main.cc (main): Handle "eqn -".
1843 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
1845 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1847 * mm: Integrate version 1.08.
1849 * pic/troff.cc (troff_output::finish_picture): Set
1850 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1851 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1852 if it's not defined. Check whether the register is non-zero rather
1853 than whether it's not defined.
1854 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1856 * indxbib/indxbib.cc: Move all signal handling into...
1857 * indxbib/signal.c: New file.
1858 * configure.in: Call AC_RETSIGTYPE.
1860 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1861 * configure.in: Call GROFF_STRUCT_EXCEPTION.
1862 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1864 * troff/input.cc (token::token, token::operator=): Work round SGI
1866 * pic/object.cc (position::position): Likewise.
1868 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
1870 * pic/pic.h: Move declaration of hypot().
1872 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
1874 * pic/pic.h: Declare hypot().
1876 * pic/pic.h: Define M_PI if necessary.
1878 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
1880 * tmac/tmac.e (re): Add alternative version that doesn't use groff
1883 * devps/prologue.ps (RE): Handle the possibility that the old font
1884 doesn't have a FontName entry.
1886 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
1888 * tmac/tmac.e (fam): Redefine to set family in environment 2.
1889 (@C): Use @fam not fam.
1891 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
1893 * lookbib/lookbib.cc (main): Change type of start to const char *.
1894 * lkbib/lkbib.cc (main): Likewise.
1896 * eqn/lex.cc (definition::definition): Don't use member
1897 initializer syntax for members of anonymous unions.
1899 * troff/input.cc (input_stack::backtrace): Change type of to const
1902 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
1904 * include/stringclass.h (class string): Declare inline friend
1905 functions as inline in class declaration.
1906 * troff/hvunits.h (class hunits, class vunits): Likewise.
1907 * include/refid.h (class reference_id): Likewise
1908 * troff/troff.h (points_to_units(units), scale(units, double)):
1909 Delete declarations.
1910 * libdriver/input.cc (get_char): Delete declaration.
1911 * include/lib.h: Change 2nd argument of getopt from const char **
1913 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1914 char **' before assigning to a `const char **'.
1915 * tbl/table.cc: Delete extra declarations of prints().
1917 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
1919 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1920 char **' before assigning to a `const char **'.
1922 * libgroff/errarg.cc (errarg::errarg): Don't use member
1923 initializer syntax for members of anonymous unions.
1925 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
1927 * mm: Integrate version 1.07.
1929 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
1931 * troff/input.c (translate2): Rename to
1932 (translate_no_transparent).
1933 (init_input_requests): Rename tr2 to trnt.
1935 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
1937 * troff/charinfo.h (class charinfo): Add transparent_translate field.
1938 (charinfo::set_translation, charinfo::set_special_translation):
1939 Add second argument that specifies value for
1940 transparent_translate.
1941 (charinfo::get_translation, charinfo::get_special_translation):
1942 Add optional second argument that specifies whether translation is
1943 being used for transparent throughput.
1944 * troff/input.cc (charinfo::set_translation,
1945 charinfo::set_special_translation): Handle second argument.
1946 (charinfo::charinfo): Initialize transparent_translate.
1947 (translate): Split main part off into
1948 (do_translate): New function. Pass argument saying whether
1949 translation applies to transparent throughput.
1950 (translate2): New request.
1951 (init_input_requests): Bind translate2 to `tr2'.
1953 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
1955 * tbl/table.h (class table): Add `nokeep' flag.
1956 * tbl/main.cc (process_options): Handle `nokeep' option.
1957 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
1958 table::do_bottom): Don't output keep/release macro definitions or
1959 calls when `nokeep' option has been specified.
1961 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
1963 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
1965 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
1967 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
1968 block_entry::divert, alphabetic_block_entry::divert): Add extra
1969 argument giving column separation.
1970 (table::compute_widths): Pass column separation to
1971 table_entry::divert().
1972 (block_entry::do_divert): If an entry spans multiple columns and a
1973 minimumum width has been specified for each column, then set the
1974 line length to the sum of the widths (plus possibly the column
1977 * troff/input.cc (set_escape_char): Don't set the escape_char
1978 until after calling has_arg().
1980 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
1982 * tbl/table.cc (table::do_top): Add missing \s0 for double box
1985 * tbl/table.cc (table::print_double_hline): Avoid extra new line
1986 in case where r > nrows - 1.
1988 * tbl/table.cc (BODY_HEIGHT): Deleted.
1989 (LINE_SEP): New definition.
1990 (table::print_single_hline, table::print_double_hline,
1991 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
1992 table::do_row, table::do_top): Use LINE_SEP space before a line
1993 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
1995 * tbl/table.cc (text_entry::print_contents): New function.
1996 (text_string_name, right_text_string_name): Deleted.
1997 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
1998 (simple_text_entry::do_width, numeric_text_entry::do_width,
1999 alphabetic_text_entry::do_width): Don't store the contents of the
2001 (left_text_entry::simple_print, right_text_entry::simple_print,
2002 center_text_entry::simple_print,
2003 alphabetic_text_entry::simple_print,
2004 numeric_text_entry::simple_print): Print the entry directly
2005 instead of using the stored string.
2007 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2009 * devps/Makefile: Strip PostScript files.
2010 * devps/prologue: Rename to...
2011 * devps/prologue.ps.
2012 * devps/psstrip.sed: New file.
2013 * devps/download: Use .pfa rather than .ps for installed versions
2016 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2018 * troff/env.cc (input_trap): Give a warning if the argument is out
2021 * troff/env.cc (adjust): Treat negative argument as missing. Round
2022 argument > 5 down to 5.
2024 * troff/env.cc (center, right_justify): Make negative argument zero.
2026 * troff/div.cc (page_offset, vertical_position_traps): Treat
2027 invalid argument as missing.
2028 * troff/env.cc (line_spacing, line_length, title_length, indent,
2029 underline, hyphen_line_max_request, control_char,
2030 no_break_control_char, widow_control_request, adjust, input_trap,
2031 point_size): Likewise.
2032 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2033 constant_space): Likewise.
2034 * troff/input.cc (compatible, shift, warn_request,
2035 set_escape_char): Likewise.
2037 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2038 * tbl/table.cc (table::table): Likewise.
2040 * Makefile.dev (install_dev): depends on $(DEVFILES).
2042 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2044 * devX75, devX75-12, devX100, devX100-12: New directories.
2045 * Makefile.in: Add these to DEVDIRS.
2047 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2048 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2049 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2050 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2052 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2053 (uninstall): New target.
2054 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2055 uninstall_prog, uninstall_dev): New targets.
2057 * troff/div.cc (return_request): Treat an invalid argument as
2060 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2062 * tmac/tmac.e ((f): Set up the environment even when there's a
2063 current diversion. Transperently throughput a call to @N.
2066 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2068 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2069 up to vertical resolution.
2071 * tbl/table.cc (table::do_row): Change row number after printing
2074 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2076 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2078 * Rename CHANGES to NEWS.
2080 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2082 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2084 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2086 * man.ultrix: Removed.
2088 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2090 * Makefile.comm (extraclean): Delete files whose names begin with
2093 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2096 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2098 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2099 * troff/div.cc (page_length, need_space, space_request): Treat
2100 invalid optional argument as missing.
2101 * troff/env.cc (number_lines): If the first argument is present
2102 but not a number, turn on line numbering, don't change the next
2103 line number and parse the remaining arguments.
2105 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2107 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2109 * eqn/box.h: Change declaration accordingly.
2110 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2111 the specified size was bad but don't give an error. Check for
2113 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2114 * eqn/lex (do_size): Likewise.
2116 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2118 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2121 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2123 * tbl/table.cc (table::init_output): Improve error message when
2124 table won't fit on one page.
2126 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2128 * pic/troff.cc (troff_output::start_picture): Generate line
2129 containing a horizontal motion equal to the width of the picture.
2131 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2132 using GROFF_COMMAND_PREFIX environment variable.
2134 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2136 * mdate.sh: Use $NF rather than $(NF).
2138 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2140 * pic/main.cc (main): Use %1 not %c in argument to warning.
2142 * eqn/main.cc (main): Output code to check that geqn was given the
2145 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2147 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2148 `ln -s ../Makefile .; make; rm -f Makefile'.
2150 * troff/hyphen: Rename to...
2152 * troff/input.cc (main): Delete -H option. Don't call
2154 * troff/env.cc: Include searchpath.h and macropath.h.
2155 (exception_dictionary): Deleted.
2157 (read_hyphen_file): Deleted.
2158 (hyphenation_language): New struct.
2159 (class trie, class hyphen_trie): Move declarations up.
2160 (trie_node::~trie_node): Deleted.
2161 (trie::delete_trie_node): New function.
2162 (trie::do_delete): New pure virtual function.
2163 (hyphen_trie::do_delete): New function.
2164 (trie::~trie): New function.
2165 (hyphen_trie::~hyphen_trie): New function.
2166 (trie::clear): No need to chcek that tp is not 0.
2167 (current_language, language_dictionary): New variables.
2168 (hyphen_word): Give an error if no current language. Use
2169 exceptions dictionary in current language.
2170 (hyphen_trie::read_patterns_file): Find file using macro_path.
2171 Allow comments (starting with %) in patterns file. Don't make it
2172 a fatal error if the file can't be found.
2173 (hyphenate): Return if no current language. Get the exceptions
2174 dictionary and the hyphenation patterns from the current language.
2175 (set_hyphenation_language): New variable.
2176 (hyphenation_patterns_file): New function.
2177 (hyphenation_language_reg): New class.
2178 (hyphenation_language_reg::get_string): New function.
2179 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2180 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2182 * groff/groff.cc (main, help, synopsis): Delete -H option.
2183 * include/Makefile.sub: Don't define HYPHENFILE.
2184 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2185 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2186 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2187 hyphenation patterns.
2189 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2191 * eqn/neqn.sh: New file.
2192 * eqn/Makefile.sub: Handle neqn.sh.
2194 * eqn/eqn.h: Declare `nroff' variable.
2195 * eqn/box.cc (param_table): Add `nroff' param.
2197 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2199 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2201 * troff/troff.h (WARN_FONT): New warning.
2202 (WARN_TOTAL): Change accordingly.
2203 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2204 (warning_table): Add WARN_FONT.
2205 * troff/node.cc (mount_font_no_translate): Pass argument to
2206 font::load_font. If this is non-zero, give a warning.
2207 Don't give an error message when accessing a font that has already
2208 been found to be invalid.
2209 * include/font.h (font::load, font::load_font): Add additional
2210 optional argument which suppresses error message if the font is
2212 * libgroff/font.cc (font::load_font): Handle additional argument.
2213 (font::load): Add additional argument. If this is non-null, set it
2214 to 1 and don't give error message.
2216 * include/printer.h (printer::end_page): Add argument giving
2218 * libdriver/input.cc (do_file): Pass this.
2219 * grops/ps.cc (ps_printer::end_page): Add argument.
2220 * grodvi/dvi.cc (dvi_printer::end_page,
2221 draw_dvi_printer::end_page): Add argument.
2222 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2223 columns_per_page members. New member nlines.
2224 (DEFAULT_LINES_PER_PAGE): Deleted.
2225 (tty_printer::tty_printer): Don't compute lines_per_page from
2226 font::paperlength. Don't compute columns_per_page from
2228 (tty_printer::add_char): Don't check horizontal position against
2229 columns_per_page. Grow glyphs vector if neccessary.
2230 (tty_printer::end_page): Add argument giving page_length in units.
2231 Discard lines past end of page.
2233 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2235 * tmac/tmac.tty-char: Fix definition of \(/l.
2237 * tmac/tmac.X: Define \(en.
2239 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2241 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2242 lpq, then use lp rather than lpr.
2244 * tmac/tmac.s (par@reset): Don't call `ad'.
2245 (par*env-init): Call `ad'.
2247 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2249 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2252 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2253 * indxbib/indxbib.cc: Likewise.
2255 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2257 * libgroff/putenv.c: New file.
2258 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2259 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2260 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2261 stdlib.h with AC_HAVE_HEADERS.
2263 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2265 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2268 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2270 * eqn/box.cc (gsize): Make it an int.
2271 (set_gsize): Parse argument handling increment or decrement.
2272 (box::top_level): Convert gsize to a string.
2274 * troff/input.cc (exit_troff): Make buf unsigned char [].
2275 Call to make_temp_iterator casts buf to char*.
2277 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2279 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2280 * Makefile.cpg (depend.temp): Likewise.
2282 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2284 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2286 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2288 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2290 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2292 * Version 1.06 released.
2294 * Integrate mm 1.04.
2296 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2298 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2300 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2302 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2304 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2305 afmtodit. Regenerate.
2307 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2308 @f back past the current position.
2310 * tmac/tmac.e: Change calls to @R so that comments are not part of
2313 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2315 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2317 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2318 check that we can link a call to a function declared in <stdio.h>.
2319 (GROFF_UNISTD_H): New macro.
2320 * configure.in: Call it.
2321 * Makefile.in: Document it.
2322 * include/posix.h: New file.
2323 * troff/troff.h: Don't include <osfcn.h>
2324 * troff/input.cc: Include posix.h.
2325 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2327 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2328 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2330 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2331 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2332 * libbib/search.cc (O_RDONLY): Delete definition.
2333 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2334 Don't include <osfcn.h>.
2336 * acgroff.m4 (GROFF_TIME_T): New macro.
2337 * configure.in: Call it.
2338 * Makefile.in: Document it.
2340 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2341 * configure.in: Call it.
2342 * Makefile.in: Document -DTRADITIONAL_CPP.
2343 * include/ptable.h: Don't include generic.h.
2346 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2347 Afterwards remove [T1 and [T2.
2348 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2349 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2350 (ref*add-T2): Renamed from ref*add-T.
2351 (ref*add-T1): New macro.
2353 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2355 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2357 * libbib/index.cc: Include <fcntl.h>.
2358 (O_RDONLY): Define if necessary.
2359 (make_index_search_item, index_search_item_iterator::get_tag,
2360 index_search_item::check_files): Use O_RDONLY.
2361 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2362 (O_RDONLY): Define if necessary.
2363 (search_list::add_file): Use O_RDONLY.
2364 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2366 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2369 * libbib/index.cc (S_ISREG): Define it if necessary.
2370 (index_search_item::load): Use S_ISREG.
2372 * include/driver.h: Include <errno.h>.
2374 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2376 * eqn/box.cc (body_height): Increase default value to 85.
2377 (body_depth): Increase default value to 35.
2379 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2381 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2382 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2383 protected from expansion with \E.
2385 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2387 * Makefile (Makefile): New target.
2389 * Makefile.sub (configure, distfiles): New targets.
2391 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2394 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2396 * eqn/box.cc (param_table): Add body_height and body_depth.
2398 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2400 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2402 * psbb/Makefile.sub: Don't link with libgroff.a.
2404 * acgroff.m4 (GROFF_PUTENV): New macro.
2405 * configure.in: Call GROFF_PUTENV.
2406 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2407 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2410 * troff/env.cc (distribute_space): Rename force_forward argument
2411 to force_reverse. Reverse the list if force_reverse is true.
2413 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2415 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2417 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2418 height or depth to be negative. Guard against SUP_RAISE quantity
2421 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2423 * devps/generate/textmap: Add `an' (arrowhorizex).
2424 * tmac/tmac.ps: \(an overlaps horizontally.
2425 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2427 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2428 * devps/textmap: Add arrowvertex.
2429 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2430 updownarrow delimiters.
2431 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2433 * tbl/table.cc (simple_entry::position_vertically,
2434 block_entry::position_vertically): For a centered entry, perform
2435 the motion in two stages.
2437 * refer/refer.cc (split_punct): Don't call lookup_token if there
2440 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2442 * troff/input.cc (token::next): Delete token_node after copying
2445 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2448 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2450 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2452 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2454 * grops/ps.cc (usage): -b option takes an argument.
2456 * devps/prologue (PLG): New procedure.
2457 * grops/ps.cc (main, usage): New -g option.
2458 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2461 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2463 * include/cset.h: Include <limits.h> if we have it.
2465 * libgroff/illegal.cc: New file.
2466 * include/lib.h (illegal_input_char): Use table.
2467 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2468 * pic/lex.cc (ARG1): Renumber to 14.
2469 * eqn/lex.cc (ARG1: Likewise.
2471 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2472 (eg 1.05.90) correctly.
2474 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2476 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2477 Rename $r and $R registers to $v and $V.
2478 ($r, $R): Initialize to 0.
2479 (@v, @V): New macros.
2483 * troff/input.cc (main, usage): Add -R option that says not to
2485 * eqn/main.cc (main, usage): Rename -n to -R.
2487 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2489 * devps/DESC.in: Leave font positions 5-9 blank.
2490 * devdvi/DESC.in: Likewise.
2492 * grog/grog.pl: Handle `.PS <file' correctly.
2494 * troff/input.cc (input_stack::push): Improve error message when
2495 input stack limit exceeded.
2497 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2499 * refer/refer.cc (main): Fix typo in handling of `a' option.
2501 * refer/refer.cc (do_bib): In state START after a newline remain
2504 * groff/groff.sh: Deleted.
2505 * groff/Makefile.sub: Delete handling of groff.sh.
2507 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2508 to determine whether to use \X'ps:...'.
2509 * tmac/troffrc: Set 0p register to 0.
2510 * tmac/tmac.ps: Set 0p register to 1.
2512 * groff/groff.cc: Support -X option. Give warning for -TXps and
2513 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2514 * tmac/troffrc: Support -r.X=1.
2516 * pic/troff.cc (troff_output::dot): Don't test
2517 zero_length_line_flag.
2519 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2521 * include/lib.h: Declare getopt() and friends unless
2522 STDLIB_H_DECLARES_GETOPT is defined.
2524 * doc/chars.tr: Delete.
2525 * man/groff_char.man: New file.
2527 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2529 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2530 user has changed register format.
2532 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2534 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2535 `postpro' command in DESC file. Get spooler command from `print'
2536 command in DESC file. Execute spooler command with /bin/sh.
2538 * groff/groff.cc: Split Unix-specific parts into...
2539 * groff/pipeline.c: New file.
2542 * COPYING: New file.
2543 * all files: Update copyright notices.
2545 * Rearrange files. Redo Makefiles. Use autoconf.
2547 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2549 * troff/input.c (charinfo_to_node_list): Interpret character
2550 definition with escape_char of `\'.
2552 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2554 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2555 Define INT_DIGITS as big enough for 64-bit integer.
2556 * lib/strtol.c: Don't include lib.h.
2557 * lib/lib.h: Delete ifdef __cplusplus stuff.
2559 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2561 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2562 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2563 get DESC from current directory.
2565 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2567 * tbl/main.c (main): Always reset the line number when reading
2570 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2571 table::define_bottom_macro, table::do_row, table::do_top): Round
2572 vertical spacing up to vertical resolution.
2574 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2576 * ps/ps.h (enum resource_type): Avoid comma at end of
2578 * dvi/dvi.c (class dvi_printer): Likewise.
2579 * dvi/tfmtodit.c (gf::load): Likewise.
2580 * refer/label.y (struct expression): Likewise.
2581 * refer/refer.c (class label_processing_state): Likewise.
2582 * refer/indxbib.c (do_file): Likewise.
2583 * troff/troff.c (enum warning_type): Likewise.
2584 * tbl/main.c (process_data): Likewise.
2585 * troff/charinfo.h (class charinfo):
2587 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2589 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2591 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2593 * groff.c: Move to new groff subdirectory.
2594 * groff/Makefile: New file.
2595 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2597 * man/mdate.sh: Use ls -L if supported.
2599 * Consolidate all header files produced by gendef into lib/defs.h.
2600 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2601 Don't include path.h.
2602 * lib/Makefile (path.h): Don't generate.
2603 * troff/input.c: Include defs.h. Don't include config.h.
2604 * troff/Makefile (config.h): Don't generate.
2605 * refer/index.h: Don't include suffix.h.
2606 * refer/index.c: Include defs.h.
2607 * refer/indxbib.c: Include defs.h.
2608 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2610 * refer/Makefile (suffix.h, path.h): Don't generate.
2611 * groff.c: Don't include config.h. Include defs.h.
2612 * Makefile (config.h): Don't generate.
2613 (lib/defs.h): Generate.
2614 (topclean): Remove lib/defs.h.
2616 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2618 * lib/malloc.c, lib/getpagesize.h: Deleted.
2619 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2621 * lib/Makefile: Delete malloc-related stuff.
2622 * lib/new.c: Workaround COOKIE_BUG if necessary.
2624 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2625 needed header files directly.
2626 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2627 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2629 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2631 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2633 * lib/font (font::load_desc, font::load): Don't split argument of
2635 (font::handle_unknown_font_command): Change type.
2636 * ps/ps.c (ps_font::handle_unknown_font_command,
2637 handle_unknown_desc_command): Change type.
2638 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2640 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2642 * lib/font.h (font::handle_unknown_font_command): Add file and
2644 * lib/font.c (font::handle_unknown_font_command):
2645 * ps/ps.c (ps_font::handle_unknown_font_command):
2646 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2647 lineno arguments. Use _with_file_and_line functions for error
2650 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2652 * lib/font.c (font::set_unknown_desc_command_handler): New
2654 (font::load_desc): For unknown commands, call
2655 unknown_desc_command_handler if not null.
2656 * lib/font.h (class font): Declare them.
2657 (FONT_COMMAND_HANDLER): New typedef.
2658 * ps/ps.c (handle_unknown_desc_command): New function.
2659 (main): Set bflag if we had a -b option. Call
2660 font::set_unknown_desc_command_handler.
2661 (broken.h): Don't include.
2662 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2664 * ps/devps/Makefile: Add `broken' command to DESC file using
2665 BROKEN_SPOOLER_FLAGS.
2667 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2669 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2671 * macros/tmac.e (@R, @S): New macros.
2672 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2673 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2674 Declare $H, $[0-9], .. macros with @S.
2675 Declare |0, |1, |2, |3 strings with @S.
2677 * macros/tmac.e (@S): Rename to @U.
2679 * macros/tmac.e (@z): Define @b and bp as empty instead of
2682 * macros/tmac.e (@m): Deleted.
2683 (@h): Don't call @m.
2684 (@z): Don't set @m trap.
2686 * macros/tmac.e ($h, $f): Define |z as empty string.
2688 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2691 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2693 ()f): Likewise for * register.
2695 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2696 argument is missing, don't change $R. Call sr with three
2697 arguments when initializing.
2699 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2701 * macros/tmac.e (sr): New macro.
2702 Initialize $r and $R using sr.
2704 * macros/tmac.e (,): Delete \*(#[.
2706 * troff/env.c (set_tabs): Read the tab type even if the position
2707 is bad. Allow the position of the first tab stop to be negative.
2709 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2711 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2713 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2714 rather than -DPATHCONF_MISSING.
2715 * Makefile: Get rid of PATHCONF_MISSING.
2717 * refer/map.c: New file.
2718 * refer/index.c: Interface to mmap through map.c. Rename map_size
2720 * refer/Makefile: Handle map.c.
2721 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2723 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2725 * Makefile: RANLIB should be `true' if there is no ranlib.
2726 * lib/Makefile (libgroff.a): Simplify.
2727 * driver/Makefile (libdriver.a): Simplify.
2729 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2730 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2733 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2735 * troff/env.c (compare_ranges): Declare as extern "C".
2737 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2739 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2741 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2743 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2744 but conditionalize use of \X based on \*(.T.
2745 (grops_output::*): Deleted.
2746 * pic/output.h: Delete declaration of make_grops_output.
2747 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2748 by default. -n sets it to 0.
2749 (usage): Corresponding changes.
2750 * groff.c (main): Don't pass -x or -p to pic.
2751 * groff.sh: Likewise.
2753 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2756 * ps/devps/afmtodit: Change calculation of asc_boundary and
2757 desc_boundary. Make these bounds inclusive.
2758 * ps/devps: Regenerate font files.
2760 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2762 * macros/tmac.latin1: New file.
2763 * macros/tmac.tty-char: Use tmac.latin1.
2764 (tmac.tty-tr): Deleted.
2765 * macros/Makefile: Install tmac.latin1.
2766 * macros/tmac.dvi: Use tmac.latin1.
2767 * macros/troffrc: Translate \[char160] onto no-break space here.
2768 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2770 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
2772 * macros/tmac.Xps: Use `do' request.
2774 * macros/tmac.ps: Use `do' request.
2776 * macros/tmac.e (@C): Use `do' request.
2778 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2779 * macros/Makefile: Install tmac.X*.
2781 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2782 * tty/Makefile: Don't install tmac.tty*.
2783 * macros/Makefile: Install tmac.tty*.
2785 * dvi/tmac.dvi: Move to macros.
2786 * dvi/Makefile: Don't install tmac.dvi.
2787 * macros/Makefile: Install tmac.dvi.
2789 * ps/tmac.ps*: Move to macros.
2790 * ps/Makefile: Don't install tmac.ps*.
2791 * macros/Makefile: Install tmac.ps*.
2793 * eqn/box.c: Provide draw_lines parameter corresponding to -D
2795 * macros/eqnrc: Set draw_lines parameter based on device.
2796 * groff.c: Don't pass -D flag to eqn.
2797 * groff.sh: Likewise.
2798 * eqn/main.c: Warn about use of -D.
2800 * troff/input.c (process_startup_file): New function.
2801 (main): Call process_startup_file().
2802 * macros/troffrc: New file.
2803 * macros/Makefile: Install troffrc.
2804 * groff.c (main): Don't pass extra -m option to troff. For a
2805 pseudo device pass the name of the pseudo device to troff using
2807 * groff.sh: Likewise.
2808 * groff.c (possible_command::prepend_arg): Deleted.
2810 * troff/input.c (do_request): New function.
2811 (init_input_requests): Bind "do" to do_request.
2813 * eqn/main.c (main): Instead of loading eqnchar from device directory,
2814 load eqnrc from macro directory.
2815 * macros/eqnrc: New file.
2816 * macros/Makefile: Install eqnrc.
2817 * ps/devps/eqnchar: Deleted.
2818 * ps/devps/Makefile: Don't install eqnchar.
2819 * dvi/devdvi/eqnchar: Deleted.
2820 * dvi/devdvi/Makefile: Don't install eqnchar.
2821 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2824 * lib/device.[ch]: New files.
2825 * lib/font.h (font::set_device_name, font::get_device_name):
2827 * lib/fontfile.c: Use device.h.
2828 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2829 * troff/input.c: Delete definition of `device'.
2830 (main): Don't initialize device.
2831 * troff/troff.h: Include device.h rather than declaring device.
2832 * troff/Makefile: No need to handle DEVICE.
2833 * driver/input.c: Include device.h. Don't use
2834 font::{set,get}_device_name.
2835 * groff.c, Makefile: Rename device.h to config.h.
2836 * groff.c: Use library device variable.
2837 * eqn/main.c: Use library device variable.
2838 * eqn/Makefile: No need to handle DEVICE.
2840 * lib/searchpath.[ch]: New files.
2841 * lib/Makefile: Handle searchpath.[ch].
2842 * troff/input.c (open_file, init_dirs): Deleted.
2843 (macro_dirs): Deleted.
2844 (open_mac_file, macro_source): Use class search_path.
2845 (add_string, struct string_list): Move definition.
2846 (main): Change -M option to use macro_path. Delete call to
2848 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2849 Rewrite to use class search_path.
2850 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2851 * lib/Makefile: fontfile.c depends on searchpath.h.
2852 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2854 * lib/macropath.[ch]: New files.
2855 * troff/Makefile: No need to handle MACROPATH.
2857 * troff/input.c: Delete DUMP code.
2858 * lib/fontfile.c, lib/font.h: Delete
2859 font::forget_command_line_font_dirs.
2861 * troff/input.c (push_token): New function.
2862 (handle_first_page_transition): Use push_token().
2863 (process_input_stack): Change handling of a space at the beginning
2866 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
2868 * troff/input.c (font_dirs): Delete unused variable.
2870 * eqn/lex.c (do_set): Correct error messages.
2872 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
2874 * troff/input.c (do_define_string): Allow the string name to be
2875 followed immediately by a tab.
2876 (define_character): Likewise.
2878 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
2880 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2883 * troff/input.c (input_iterator::is_file): New virtual function.
2884 (file_iterator::is_file): New function.
2885 (input_stack::end_file): New function.
2886 (input_stack::next_file): Handle the situation where there is no
2887 file on the input stack correctly. Avoid making two passes over
2889 (next_file): Make the filename optional; in this case call
2890 input_stack::end_file().
2892 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
2894 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2895 produce a real _ charater when the current font is CW and _
2898 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2899 expression to work around gcc 2.2 bug.
2901 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
2903 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2905 * troff/env.c (environment::add_padding): New function.
2906 (environment::add_char): Use add_padding().
2907 (environment::space): Likewise.
2908 (environment::wrap_up_field): Add some padding if there is none
2909 and there's no current tab.
2910 * troff/env.h: Declare environment::add_padding.
2912 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
2914 * pic/pic.y: undef fmod and rand before declaring them.
2916 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
2918 * troff/input.c (main): If the DESC file specifies a font name of
2919 0, then leave the corresponding font position empty.
2921 * nroff.sh: New file.
2922 * Makefile (install.nobin): Install nroff.sh.
2924 * tty/devlatin1/R.proto: Add ao as synonym for de.
2925 * tty/tmac.tty-char: Define ao as o.
2927 * tty/dev{ascii,latin1}/R.proto: Add aq.
2928 * tty/tmac.tty-char: Delete definition of aq.
2930 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
2932 * troff/input.c (init_charset_table): Don't translate 0240.
2933 * ps/tmac.ps: Translate char160 to space.
2934 * dvi/tmac.dvi: Likewise.
2935 * tty/tmac.tty: Likewise.
2937 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
2939 * dvi/tmac.dvi: Add support for all Latin-1 characters.
2941 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2942 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2945 * tty/tmac.tty-char: Add \(ah.
2947 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2948 No need to define \(FM and \(!/. Conditionalize all character
2951 * ps/devps/lgreekmap: Add +h, +f, +p.
2953 * ps/tmac.psnew: New file.
2954 * ps/Makefile: Install tmac.psnew.
2956 * troff/input.c (charinfo_to_node_list): Don't ever interpret
2957 character definitions in compatible mode.
2959 * troff/input.c (remove_character): New function.
2960 (init_input_requests): Bind remove_character to "rchar".
2962 * ps/tmac.psold: New file.
2963 * ps/Makefile: Install tmac.psold.
2964 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
2965 characters into tmac.psold. Make these definitions unconditional.
2967 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
2969 * ps/tmac.ps: Don't define \('c and \('C.
2971 * ps/devps/textmap: Move Greek characters to...
2972 * ps/devps/symbolchars:
2974 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
2976 * ps/devps/text.enc: Add quotesingle.
2977 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
2978 * tty/tmac.tty-char: Likewise.
2979 * dvi/devdvi/texmi.map: Add +h, +f, +p.
2980 * dvi/devdvi/texi.map: Add Fn.
2981 * dvi/devdvi/msam.map: Add lz.
2982 * dvi/tmac.dvi: Handle Bq, bq, aq.
2984 * pic/lex.c (get_token): Recognize 'th.
2985 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
2987 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
2989 * ps/devps/textmap: Move di, mu, +- to...
2990 * ps/devps/symbolchars:
2992 * macros/tmac.s (@XS): Don't call par@reset or fi.
2993 (XA): Call LP. Turn off adjustment. Reduce line length.
2995 * macros/tmac.s: Initially alias XS to LP.
2996 (XS): Rename to @XS.
2997 (cov*ab-init): Alias XS to @XS.
2999 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3001 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3002 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3003 (token::is_size, token::changes_env): Deleted.
3004 * troff/number.c (parse_term): No need to process \s explicitly.
3005 Call tok.next() only after scale indicator has been processed.
3006 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3008 (token::next): Handle \s, \f, \S, \H immediately rather than
3009 returning them as tokens.
3010 (token::operator==, token::description, token::add_to_node_list,
3011 token::process): Remove handling of deleted tokens.
3013 * troff/env.c (environment::add_char): When adding padding
3014 indicator character, call start_line() if necessary.
3016 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3018 * ps/devps/afmtodit: Don't output 0 kerns.
3020 * ps/devps/afmtodit: Remove directory from name of encoding in
3021 font description file.
3023 * ps/devps/afmtodit: Improve error messages.
3025 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3027 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3028 * ps/devps/FontMakefile: Deleted.
3029 * ps/devps/afmname: New file.
3031 * ps/devps/symbol.sed: New file.
3032 * ps/devps/symbol.diff: Deleted.
3033 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3034 Generate zapfdr.afm from zapfd.afm.
3036 * tty/tmac.tty (tty-char): Prefix definition with ".
3038 * macros/tmac.an (TP): Don't start a diversion if one has already
3041 * tty/tmac.tty-char: Add Latin-1 characters.
3043 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3045 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3047 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3048 Move declaration of struct horizontal_span.
3050 * tbl/table.c (table::table): Initialize span_list.
3051 (table::~table): Delete span_list.
3053 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3055 * ps/devps/Makefile: Avoid dependency on GNU make.
3057 * ps/tmac.ps: Check that character does not already exist before
3060 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3061 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3062 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3065 * tty/tmac.tty-char: New file.
3066 * tty/Makefile: Install tmac.tty-char.
3067 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3070 * tty/tmac.tty: Fix definition of \(34.
3072 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3073 bracket-drawing characters onto |. Add *o.
3075 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3076 only if current_field.
3078 * troff/dictionary.c (dictionary::lookup): Free old_table after
3081 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3083 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3084 whose glyphs are identical to glyphs of some Roman character.
3086 * tty/devlatin1/R.proto (bu): Deleted.
3087 * tty/devascii/R.proto (bu): Deleted.
3088 * tty/tmac.tty: Add definition of \(bu.
3090 * eqn/main.c (do_file): Pass FILE as argument.
3091 (main): Automatically load eqnchar. New options -F and -n.
3092 Pass do_file an opened FILE.
3093 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3094 No need to include font.h.
3095 * groff.sh: Likewise. Don't need to use - for standard input.
3096 Prefix files with -- if first file starts with -.
3098 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3100 * troff/env.c (environment::possibly_break_line): Don't set line
3101 to 0 across call to output_line(). Don't call output_line() until
3102 after discarding nodes after break.
3104 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3106 * request.h (macro::empty): Declare it.
3107 * input.c (macro::empty): New method.
3108 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3111 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3113 * troff/env.c (environment::start_field): Decrement space_total
3114 when a space is frozen.
3116 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3118 * macros/tmac.an (R): Delete macro.
3120 * troff/input.c (get_copy, token::next): Support \# (like \" but
3121 newline is ignored).
3123 * troff/input.c (token::next): Fix error message in 'Y' case.
3125 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3127 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3130 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3132 * c++test.c: Include <osfcn.h>.
3134 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3137 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3139 * tbl/table.c (table::divide_span): Don't count column separation
3140 if expand was specified.
3142 * tbl/main.c (process_format): Don't ignore width specs in
3143 continued format. Give warning for changing equal widths or
3144 column separation in continued format.
3145 (process_data): Set column separation, minimum width, equal
3146 columns at end of table.
3148 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3150 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3151 node::add_discretionary_hyphen): Use soft_hyphen_char.
3152 (set_soft_hyphen_char): New function.
3153 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3155 * Makefile (c++tested): Give more helpful message if test fails.
3157 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3159 * troff/input.c (init_charset_table): Translate 0240 to
3160 an unbreakable space.
3162 * troff/token.h (token::hyphen_indicator): New function.
3163 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3165 * troff/input.c (translate): Allow translation to \%.
3166 * troff/node.c (node::add_char): Handle
3167 TRANSLATE_HYPHEN_INDICATOR.
3168 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3170 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3173 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3175 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3177 * groff.c (run_commands): If the last command gets a SIGPIPE send
3178 a SIGPIPE to all children than haven't yet terminated. When
3179 command terminates, set pid field to -1.
3181 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3183 * groff.c (main): Pass an appropriate -filename option to gxditview.
3185 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3187 * Makefile.bd (install): Remove existing program before copying.
3189 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3190 programs which have Unix counterparts to be installed with
3191 user-specified prefix.
3193 * troff/input.c (exit_troff): Don't check if exit_started.
3194 (exit_request): Don't call exit_troff if exit_started.
3196 * Makefile.bd (install.mm): Rename to install.dwbmm.
3198 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3200 * driver/input.c (do_file): Add missing break for '#' case.
3202 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3204 * troff/input.c (input_stack::clear): Clear past any boundaries and
3205 then add the boundaries back.
3207 * troff/input.c (exit_troff): Return immediately if already
3210 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3212 (pg*end-page): If the text has ended and there are no more
3213 footnotes or keeps, exit.
3215 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3217 * troff/input.c (init_charset_table): Make \(rq transparent by
3220 * macros/tmac.an: Define lq and rq strings.
3222 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3224 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3226 * troff/env.c (environment::final_break): New function.
3227 (environment::newline): Set prev_line_interrupted to 2 if
3229 * troff/env.h: Declare environment::final_break.
3230 * troff/input.c (exit_troff): Call environment::final_break()
3231 instead of environment::do_break().
3233 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3234 doesn't already exist.
3235 * macros/man.local: New file.
3236 * macros/tmac.an: Load man.local.
3237 * macros/man.ultrix: New file.
3239 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3241 * troff/input.c (exit_groff): Rename to...
3242 (exit_troff): New function.
3244 * troff/div.c (exit_started, done_end_macro,
3245 seen_last_page_ejector): New global variables.
3246 (began_page_in_end_macro): New static variable.
3247 (exit_flag): Deleted.
3248 (top_level_diversion::top_level_diversion): Initialize
3250 (top_level_diversion): More elaborate test for whether
3251 cleanup_and_exit() should be called.
3252 Set began_page_in_end_macro if the end macro isn't yet finished.
3253 * troff/div.h (top_level_diversion::last_page_count): New data
3255 (top_level_diversion::set_last_page): New function.
3256 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3257 * troff/env.c (do_break): Zero prev_line_interrupted.
3258 * troff/input.c (exit_flag): Delete declaration.
3259 (LAST_PAGE_EJECTOR): New magic cookie.
3260 (token::next): Handle LAST_PAGE_EJECTOR.
3261 (exit_groff): Set exit_started and done_end_macro instead of
3262 exit_flag. Call top_level_diversion::set_last_page. Push a
3263 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3264 another ejection after setting seen_last_page_ejector.
3266 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3268 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3270 * macros/tmac.e (TH): Make sure there's room for the initial
3273 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3274 Set FVS in points rather than units.
3276 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3278 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3279 position of empty slots.
3281 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3283 * ps/devps/S: Fix height and depth of parenrightex.
3284 * ps/devps/symbol.diff: Regenerate.
3286 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3288 * tmac.e (u): Do underlining as in -mgs.
3290 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3292 * tty/tty.c (tty_printer::end_page): If overstriking is
3293 suppressed, still turn overstruck horizontal and vertical lines
3296 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3299 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3301 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3303 * Version 1.05 released.
3305 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3307 * tty/tty.c: Instead of keeping an array of glyphs and then
3308 sorting it, keep a ordered linked list of glyphs for each line.
3310 * driver/driver.h: Include stddef.h.
3312 * tty/tty.c (compare_glyph):
3313 * refer/refer.c (rcompare):
3314 * troff/env.c (compare_ranges): Arguments of qsort comparison
3315 function should be const void *.
3317 * troff/number.c (parse_term):
3318 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3321 * refer/label.y (consider_authors): Don't access variables
3322 constructed under a condition outside that condition: put braces
3323 round for statement containing declaration; redeclare use of same
3326 * pic/pic.y (text_expr): Delete production that allows
3327 parenthesised text_expr.
3328 (expr): Allow a conditional_expr to appear in parentheses.
3329 (conditional_expr): Rename to any_expr.
3331 * mm: Install new version 1.01 from jh.
3333 * lib/font.c (font::get_width): Cache scaled widths.
3334 (font::font): Initialize widths_cache.
3335 (font::~font): Destroy widths_cache.
3336 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3338 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3340 * c++test.c, c++test.ref: New files.
3341 * Makefile: Check that the C++ compiler works.
3343 * ps/tmac.pspic (PSPIC): Do a break.
3345 * ps/tmac.ps: Move definition of PSPIC into...
3346 * ps/tmac.pspic: New file.
3347 (PSPIC): Draw box around picture, but make it invisible to grops.
3348 * ps/tmac.ps: Load tmac.pspic.
3349 * ps/Makefile: Install tmac.pspic.
3351 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3353 * lib/font.c (scale_round): If n is negative,
3354 subtract .5 before truncating floating point result.
3356 * lib/fontfile.c: Include <errno.h>.
3358 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3360 * driver/input.c (get_char): Inline. Don't update current_lineno.
3361 Change callers to up date current_lineno if necessary.
3362 Use get_char() instead of getc(current_file).
3364 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3366 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3368 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3370 * tty/tty.c (tmac.tty): Define \(rg as (R).
3372 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3374 * lib/lib.h: New define a_delete.
3375 * Use a_delete instead of delete when deleting an array of objects
3376 without destructors.
3378 * lib/lib.h: Rename adelete to ad_delete.
3379 * Change uses of adelete.
3381 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3383 * eqn/eqn.y: Include lib.h.
3385 * troff/node.c (grow_font_table): Delete old_font_table.
3387 * mm: Install new version from jh.
3389 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3391 * tbl/table.h (format_type): Make global instead of local to class
3392 entry_format. Prefix enumerators with FORMAT_.
3393 * tbl/table.c, tbl/main.c: Corresponding changes.
3394 * refer/token.h (token_type): Make global. Prefix enumerators
3396 * refer/token.[ch]: Corresponding changes.
3397 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3399 * troff/div.c (node::set_vertical_size): Don't name argument.
3401 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3403 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3404 * lib/lib.h: Define adelete accordingly.
3405 * pic/object.c (graphic_object::graphic_object):
3406 * tbl/main.c (format::~format):
3407 * tbl/table.c (table::~table):
3408 * refer/ref.c (reference::~reference, reference::merge,
3409 reference::insert_field, reference::delete_field): Use adelete.
3411 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3413 * tbl/table.h: Corresponding changes.
3415 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3416 Ensure total_angle is positive.
3418 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3420 * refer/ref.c (reference::merge, reference::insert_field,
3421 reference::delete_field): Avoid delete[0].
3423 * refer/token.c (init_special_chars): Move calls to cmupper
3424 outside calls to init_two_char_letter to work around bug in gcc
3427 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3429 * lib/new.c (operator new): Use __builtin_new for g++.
3431 * pic/object.c (graphic_object::~graphic_object): Don't use
3434 * pic/object.c (output::compute_scale): Initialize max_width and
3437 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3439 * troff/input.c (write_request): Call fflush.
3441 * troff/node.h (class composite_node): Move declaration to node.c
3442 * troff/input.c (charinfo_to_node): Rename to ...
3443 (charinfo_to_node_list): Return node list rather than composite
3445 * troff/node.c (make_composite_node): New function.
3446 (make_node, add_char): Call make_composite_node instead of
3448 (class composite_node): Add a tfont * member. Delete font_size
3450 (composite_node::composite_node, composite_node::copy,
3451 composite_node::size): Corresponding changes.
3452 (composite_node::tprint): Provide constant spacing, emboldening
3453 and track kerning as specified in tfont.
3454 (composite_node::width): Change width calculation accordingly.
3455 * troff/env.h (environment::composite): New member.
3456 (environment::is_composite, environment::set_composite): New
3458 * troff/env.c (environment::environment): Initialize composite.
3459 * troff/input.c (charinfo_to_node): Call
3460 environment::set_composite.
3461 * troff/node.c (make_composite_node, make_glyph_node): Use the
3462 plain version of the tfont if the environment is composite.
3464 * troff/node.c (font_info::get_space_width): Additional argument
3465 giving space_size. Handle constant space correctly. Scale by
3466 space_size unless constant spaced.
3467 (env_sentence_space_width): New function.
3468 * troff/node.h: Declare it.
3469 * troff/env.h (environment::get_space_size,
3470 environment::get_sentence_space_size,
3471 environment::get_narrow_space_width,
3472 environment::get_half_narrow_space_width): Make inline.
3473 (environment::get_space_width): Make inline. Just call
3475 * troff/env.c: Delete definitions for funtions made inline.
3476 (environment::space_newline, environment::space): Use
3477 env_sentence_space_width(). Don't scale by space_size.
3478 * troff/node.h: Move declarations of env*space_width() functions
3481 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3483 * macros/tmac.s (PS): Don't try to set negative indent.
3485 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3487 * pic/pic.y: Fix min function.
3489 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3491 * man/mdate.sh: Clear LANGUAGE.
3493 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3495 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3496 * pic/lex.c: New COMMAND keyword.
3497 * pic/pic.y (print_args, print_arg): New rules.
3498 (placeless_element): Use print_args for PRINT.
3499 New COMMAND element.
3501 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3503 * troff/input.c (terminal): Handle missing argument correctly.
3505 * pic/pic.y (text_expr): New rule.
3507 * pic/pic.y: Implement := operator.
3509 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3511 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3514 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3516 * ps/devps/dingbatsrmap: Include this in the distribution.
3518 * macros/tmac.doc: Replace with new version from 2nd Networking
3519 Release. Fix loading of doc-* files.
3520 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3521 * macros/tmac.doc.old: New file. Apply fixes that had been
3522 applied to old tmac.doc.
3523 * macros/tmac.andoc: Check that we're running under groff.
3524 * macros/Makefile: Rework.
3526 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3528 * tbl/table.h (format_type):
3529 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3530 typedef to make these types visible at file scope.
3531 * Makefile: Add NESTED_TYPES configuration option.
3533 * troff/div.c (mark): At the top level use the value of
3534 nl_reg_contents rather than the current vertical position.
3536 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3538 * tty/tty.c: Implement \D for horizontal or vertical lines.
3539 (tty_printer::set_char): Use vec_used+2 as serial number.
3540 Don't allow size of vector to exceed USHRT_MAX-2.
3541 Split off part into...
3542 (tty_printer::add_char): New function.
3543 (tty_printer::draw): New function.
3544 (compare_glyph): Handle equal serial numbers.
3545 (tty_printer::end_page): Handle overstruck characters from \D.
3546 (main, usage): Implement -d option.
3548 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3550 * tbl/main.c (process_format):
3551 * eqn/text.c (split_text):
3552 * troff/input.c (token::next): Use inner block for declarations
3553 with initializers in switch statement.
3555 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3557 * pic/common.c (common_output::dash_line): Cope with zero-length
3560 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3562 * Version 1.04 released.
3564 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3566 * macros/tmac.an (TH): Define a macro an-init to define variables
3567 based on command line arguments.
3568 (an-header): Call it.
3570 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3572 * Makefile (install.mm): Rename to install.dwbmm.
3574 * Makefile: Integrate mm.
3575 * mm: New directory.
3577 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3579 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3582 * pic/troff.c (troff_output::simple_spline,
3583 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3584 shadowing parameter.
3586 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3588 * lib/ptable.h: Add explicit casts when converting from unsigned
3591 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3592 * dvi/devdvi/Makefile: Install SA, SB.
3594 * refer/indxbib.c: Add declaration of mktemp.
3596 * refer/lookbib.c: Add declaration of isatty.
3598 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3600 * pic/lex.c (interpolate_macro_with_args): While collecting
3601 arguments, keep track of whether we're in a string.
3603 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3605 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3606 down with \v, so as to avoid problems with top of page trap
3607 setting no space mode.
3609 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3611 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3613 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3615 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3616 Improve error message.
3618 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3620 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3623 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3625 * groff.c (possible_command::execp): Always use _exit() after a
3628 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3629 NO_SYS_WAIT_H configuration options.
3630 * groff.c: Use these options. Use POSIX-style macros to extract
3631 fields from the status returned by wait().
3633 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3635 * tbl/table.c (table::compute_separation_factor): Allow the
3636 separation factor to drop to 0.
3638 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3640 * refer/search.c: Include <errno.h>.
3642 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3644 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3646 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3649 * pic/lex.c (input_stack::bol): Move definition out of class body.
3651 * pic/main.c: On MSDOS munge argv[0].
3653 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3655 * lib/ptable.c (hash_string): Use unsigned long rather than
3657 (next_ptable_size): Use unsigned rather than int. Give an error
3658 message if we've hit the largest table size.
3659 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3662 * pic/object.h (object_spec): Make flags unsigned long. Declare
3663 flags as const unisgned long rather than as enums.
3665 * pic/output.c: Deleted.
3667 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3669 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3670 Add additional argument.
3671 (line_entry::note_double_vrule_on_{left,right}): Set value of
3672 douvle_vrule_on_{right,left} flag according to argument.
3673 (simple_line_entry::simple_print,
3674 simple_line_entry::double_line_print): If adjacent to double vrule
3675 on a corner extend rather than shorten the rule by half the double
3678 * troff/number.c (parse_term): In checking for overflow, handle the
3679 case where the current horizontal position is negative.
3681 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3683 * pic/object.c (draw_arrow): Check for object having zero length.
3685 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3687 * eqn/main.c (do_file): Split off inline equation handling into...
3688 (inline_equation): New function. Search for starting delimiter
3690 (delim_search): New function. Don't recognize a delimiter that
3691 occurs in the name of an escape sequence, number register, string
3694 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3696 * eqn/delim.c (delim_box::compute_metrics): Don't call
3697 define_extensible_string if left is 0.
3698 (delim_box::output): Don't print the left delimiter if left is 0.
3699 (delim_box::debug_print): Check for left == 0 before calling printf.
3701 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3703 * troff/Makefile (majorminor.c): Include only digits in
3706 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3708 * refer/dirnamemax.c: new file.
3709 * refer/genlimits.c: Deleted.
3710 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3711 Don't check path length.
3712 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3713 * Makefile: Add PATHCONF_MISSING option.
3715 * refer/indxbib.c (get_cwd): New function.
3716 (main): Use get_cwd().
3717 * lib/getcwd.c: New file.
3718 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3720 * lib/Makefile: Compile getcwd.o.
3722 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3725 * refer/indxbib.c (main): Check success of mktemp.
3727 * lib/tmpfile.c: New file.
3728 * lib/Makefile: Add tmpfile.c.
3729 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3730 * ps/ps.h: Delete declaration of mktemp().
3731 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3732 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3733 * driver/driver.h: No need now to include errno.h.
3735 * everywhere: Set errno to 0 before calling fopen().
3737 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3738 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3739 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3741 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3743 * troff/env.h (translate_space_to_dummy): Declare it.
3744 * troff/env.c (environment::space_newline, environment::space):
3745 If translate_space_to_dummy is set then make the width of spaces 0.
3746 * troff/input.c (translate): If the second character of a
3747 translation is a space, translate to unbreakable space. If the
3748 first character is a space, set or clear translate_space_to_dummy
3749 according to whether the second character is \&. Weird!
3751 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3753 * groff.c (run_commands): Don't use non-zero exit code because a
3754 command gets SIGPIPE.
3756 * groff.c, groff.sh: Use -mXps with -TXps.
3758 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3759 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3760 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3761 (ps_printer::special): New specials invis and endinvis.
3762 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3763 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3764 (ps_printer::end_page): Check that invis_count == 0.
3765 (ps_printer::invis_count): New member.
3766 (ps_printer::ps_printer): Initialize invis_count to 0.
3768 * troff/env.c (environment::hyphenate_line): Hyphenation
3769 indicator at beginning of word inhibits splitting after -, \(em
3772 * pic/pic.y (element): Allow another element to follow } without
3773 any intervening separator.
3775 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
3777 * pic/lex.c (get_delimited): Allow tabs before delimiter.
3779 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
3781 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
3782 declaration of wait() in header files.
3783 * Makefile: Get rid of -DHAVE_UNION_WAIT.
3785 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3787 * lib/lib.h: Declare return type of strerror as char *.
3789 * man/Makefile: Add g flag to sed substitutions.
3790 * Makefile (shgroff, bindist): Likewise.
3792 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
3794 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3795 * ps/devps/prologue (PBEGIN): Define showpage after pushing
3798 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
3800 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3803 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
3805 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3808 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
3810 * troff/input.c (define_number_reg): If currently undefined,
3811 don't define it if the argument is an invalid expression.
3813 * Makefile: Ignore return value of `if' commands without `else'
3816 * Makefile: Split up CPPDEFINES into a series of separate
3817 configuration options.
3819 * troff/input.c (init_registers): Use time_t instead of long
3820 unless LONG_FOR_TIME_T is defined. Use returned result rather
3821 than passing pointer.
3822 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3824 * lib/Makefile (fontpath.h): Use gendef.
3826 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
3828 * troff/input.c (input_iterator::shift): Delete argument name.
3829 * troff/node.c (suppress_output_file::really_begin_page,
3830 suppress_output_file::really_transparent_char, node::ascii_print,
3831 node::tprint): Delete names of unused arguments.
3833 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
3835 * refer/label.y (string): Pass $4 to command_error.
3837 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
3839 * Version 1.03 released.
3841 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
3843 * Makefile: Pass definition of SHELL in SUBFLAGS.
3846 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3847 ps/Makefile: Use gendef to construct header files that are
3848 constructed from the Makefile.
3850 * macros/Makefile: make all should build stripped version of tmac.e.
3852 * refer/Makefile (clean): Remove y.output.
3854 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
3856 * ps/pfbtops.c (main): Add -v option which prints out a version
3858 * ps/Makefile (pfbtops): Link with libgroff.a.
3860 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
3862 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3863 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3865 * refer/lkbib.c (main): Always terminate reference with blank
3867 * refer/lookbib.c (main): Likewise.
3869 * refer/linear.c (file_buffer::load): Check that the file is not a
3872 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3873 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3874 Delete second inclusion of <sys/param.h>.
3876 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
3878 * troff/token.h (token::special): Deleted.
3880 * tbl/main.c (process_format): Rework so that opt->tab_char is
3881 recognized only when appropriate.
3883 * ps/Makefile (clean): Remove pfbtops.
3885 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
3887 * lib/font.c (text_file::next): Don't return if we have got a
3890 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
3892 * refer/refer.c (store_reference): Get hash code from old_table[i]
3893 when rehashing the table.
3895 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
3897 * eqn/box.c (box::top_level): Save size and prev size using \R and
3898 restore it afterwards. Set the size to the size at the beginning
3900 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3901 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3903 * refer/Makefile (limits.h): Use ./genlimits.
3905 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
3907 * refer/index.c: Delete declarations of stat() and fstat().
3909 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
3911 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3913 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
3915 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3917 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
3919 * troff/input.c (token::get_char): Handle \e.
3921 * refer/linear.c: Delete declarations of fstat() and stat().
3923 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
3925 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3926 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3928 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
3930 * troff/input.c (do_define_macro): Improve error handling for end
3931 of file while defining macro.
3933 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
3935 * eqn/box.h: Fix declaration of set_gsize.
3936 * eqn/box.c (set_gsize): Make argument const char *.
3937 (gsize): Declare as char *.
3938 * eqn/main.c (main): Don't convert gsize to int.
3939 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3941 * Version 1.02 released.
3943 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
3945 * macros/tmac.andoc: New file.
3946 * macros/Makefile: Install tmac.andoc.
3948 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3949 operator new and delete on OP_DELETE_BROKEN not being defined.
3950 * Makefile: Mention OP_DELETE_BROKEN.
3952 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
3954 * Makefile (bindist): Pass SUBFLAGS.
3956 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
3958 * Makefile, groff.c: Pass definitions to groff.c via device.h.
3960 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
3963 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
3965 * ps/ps.h, ps/psrm.c: Make comment_table and
3966 header_comment_table local to resource_manager::process_file.
3968 * groff.sh: With -TXps pass -printCommand option to gxditview.
3970 * groff.c (possible_command::print): Implement using
3971 append_arg_to_string.
3973 * xditview: Merge in new implementation with own ChangeLog.
3975 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
3977 * groff.c (main): Implement PRINT_OPTION.
3978 (append_arg_to_string): New command.
3979 (device_table): Set PRINT_OPTION flag for Xps.
3981 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
3983 * troff/groff.h: Rename to troff.h.
3985 * pic/lex.c (lookup_keyword, docmp): New functions.
3986 (get_token): Use new lookup_keyword.
3987 Don't include key.h.
3988 * pic/key.[ch], pic/pic.gperf: Deleted.
3989 * pic/Makefile: Remove gperf stuff.
3991 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
3993 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
3995 * troff/Makefile, troff/node.c: Move definition of
3996 STORE_WIDTH into node.c.
3998 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4000 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4002 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4003 dvi/devdvi/texb.map: Add lq and rq.
4004 dvi/devdvi: Regenerate fonts.
4005 * ps/devps/textmap: Add lq and rq.
4006 * ps/devps: Regenerate fonts.
4007 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4008 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4010 * pic/object.c (position_rectangle): When checking radius
4011 cope with possiblity that width or height is negative.
4012 (box_object::box_object): Have separate xrad and yrad with
4013 signs matching signs of dim components.
4014 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4015 (box_object::print): With rounded boxes use absolute values
4016 for dim and rad arguments.
4018 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4021 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4023 * various files: Add explicit destructors to keep Saber CC +d
4026 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4028 * eqn/box.c (box::top_level): Restore fonts correctly after
4029 font changes in line containing inline equation. Also
4030 restore previous font as well as current font.
4031 * eqn/pbox.h: Define necessary string and register names.
4033 * troff/input.c (token::next): Case 'R' calls do_register.
4034 (do_register): New function.
4036 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4038 * groff.c, groff.sh: Support Xps device. Allow each device
4039 to have a pseudo_name and a real_name.
4041 * groff.c (run_commands): Don't print `Broken pipe' messages.
4043 * ps/pfbtops.c: New file.
4044 * ps/Makefile: Add pfbtops.
4046 * troff/number.c (parse_term): Improved error message.
4048 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4050 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4052 * Makefile: Integrate refer.
4053 * refer: New directory.
4054 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4055 man/lkbib.man: New files.
4056 * man/Makefile: Support refer man pages.
4058 * lib/lib.h: Declare is_prime.
4059 * lib/prime.c: New file.
4061 * troff/input.c (macro_source): New function.
4062 (init_input_requests): Bind "mso" to macro_source.
4064 * troff/env.c (environment::possibly_break_line): Maintain
4065 pointer to pointer to node to be split in ndp so as to avoid
4066 using address of freed node.
4068 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4069 pointer to first node to be hyphenated in startp so as to
4070 avoid using address of freed node.
4072 * troff/env.c (class trie, class hyphen_trie): Make the
4073 elements of the trie be of type char not unsigned char.
4074 Declare arguments to be const char* instead of unsigned char *.
4076 * troff/env.c (hyphenate): Initialize hbuf[0].
4078 * troff/input.c (set_string): Declare p to be char * and cast
4079 *p to unsigned char when necessary.
4081 * troff/input.c (do_define_macro): Declare s to be const
4082 char*. Cast element to unisgned char when necessary, Declare
4083 d to be an int. Handle EOF better.
4085 * troff/Makefile, troff/input.c: Different scheme for passing
4086 definitions of MACROPATH, HYPHENFILE and DEVICE.
4088 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4090 * tty/devascii/R.proto: Delete entry for em.
4091 * tty/devlatin1/R.proto: Likewise.
4093 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4095 * troff/input.c (translate): Stop when we get a space. Treat eof
4098 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4100 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4102 * tbl/main.c (process_format): A font name following a `f'
4103 modifier that starts with a digit can be only one character long.
4104 Also deal with EOF on the second character of the font name.
4106 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4108 * troff/input.c (token::next): Turn \~ into an
4109 unbreakable_space_node.
4110 * troff/node.c (unbreakable_space_node): New class.
4111 * troff/node.h: Declare it.
4113 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4115 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4116 it's >= 0, before outputting it as a single byte.
4118 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4120 * lib/font.c: Make font_char_metric::code an int.
4121 (font::get_code): Change return type to int.
4122 (font::load): Allow code to be arbitrary integer.
4123 * lib/font.h (font::get_code): Change return type to int.
4124 (font::number_to_index): Change argument type to int.
4125 * troff/input.c (token::next): In case 'N', allow any value.
4126 Store value in token::val.
4127 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4128 (token::get_char, token::add_to_node_list, token::process): Get
4130 (charinfo::set_number): Change argument to int.
4131 (charinfo::get_number): Require that NUMBERED flag be set.
4132 (get_charinfo_by_number): Store numbered characters not between 0
4133 and 255 in a dictionary.
4134 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4136 (charinfo::number): Change type to int.
4137 (charinfo::set_number): Change type of set_number to int.
4138 * troff/node.c (troff_output_file::put_char_width,
4139 troff_output_file::put_char): Test whether character is numbered
4140 using charinfo::numbered().
4141 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4143 * lib/nametoindex.c: New implementation to cope with arbitrary
4146 * troff/input.c (token::operator==): Test val for
4147 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4150 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4151 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4153 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4155 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4158 * all Makefiles: rm targets of cp and >.
4160 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4163 * eqn/lex.c (def_table): Add dollar.
4165 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4167 * troff/input.c (do_width): Push back newline before closing delim
4170 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4172 * groff.c (possible_command::prepend_arg): New function.
4173 (main): Prepend device -m option.
4174 * groff.sh: Put device -m options before command-line options.
4176 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4178 * macros/tmac.an (IP): Quote argument to TP.
4180 * ps/ps.c (main): New option -b, which sets...
4181 (broken_flags): New variable.
4182 (ps_printer::~ps_printer): Incorporate the setup section in the
4183 prolog if (broken_flags & NO_SETUP_SECTION).
4184 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4185 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4186 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4187 ps_printer::print_needed_font_comment,
4188 ps_printer::print_supplied_font_comment,
4189 ps_printer::print_include_font_comments,
4190 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4191 ps_printer::read_download_file, read_document_fonts, add_font,
4192 skip_line, parse_fonts_arg, document_font::document_font,
4193 document_font::~document_font, document_font::download,
4194 ps_output::include_file): Deleted.
4195 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4196 rather than %!PS-Adobe-2.0. Make calls to
4197 resource_manager::need_font for each font that we used. Replace
4198 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4199 print_supplied_font_comment, print_needed_font_comment by call to
4200 resource_manager::print_header_comments. Output %%Orientation
4201 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4202 Don't output the prolog directly. Instead call
4203 resource_manager::output_prolog. Only define #copies when ncopies
4204 > 1. Delete calls to print_include_font_comments and
4205 download_fonts. Add call to resource_manager::document_setup.
4206 (ps_printer::do_file): Call resource_manager::import_file instead
4207 of including it ourselves.
4208 (ps_printer::do_import): Likewise. Also don't call
4209 merge_import_fonts. Push userdict on the dictionary stack before
4210 and pop it afterwards.
4211 Move declaration of ps_output into ps.h.
4212 * ps/psrm.c: New file implementing resource_manager class.
4213 * ps/ps.h: New file declaring ps_output and resource_manager
4215 * ps/devps/zapfdr.ps:
4216 * ps/devps/symbolsl.ps:
4217 * ps/devps/prologue: Use 3.0 conventions.
4218 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4219 Add default definition of BROKEN_SPOOLER_FLAGS.
4220 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4221 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4223 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4225 * etc/grog.pl: New file.
4226 * Makefile (GROG): New variable.
4227 Add GROG to SUBFLAGS.
4228 * etc/Makefile (GROG): New variable.
4229 (install.nobin): Install $(GROG) rather than grog.sh.
4231 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4233 * eqn/special.c (special_box::compute_metrics): Make the input and
4234 output strings the same. Get the new height and depth from the
4235 predefined height and depth registers. Also make subscript kern
4237 (special_box::compute_subscript_kern, special_box::compute_skew):
4240 * eqn/box.c (pointer_box::compute_skew,
4241 simple_box::compute_metrics, box::top_level)
4242 * eqn/text.c (prime_box::compute_metrics,
4243 prime_box::comput_subscript_kern)
4244 * eqn/limit.c (limit_box::compute_metrics):
4245 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4246 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4247 negative numbers in `nr' requests with a leading 0.
4249 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4251 * eqn/special.c: New file.
4252 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4253 Add new rule for simple.
4254 * eqn/lex.c (token_table): Add SPECIAL.
4255 * eqn/box.h: Declare make_special_box.
4256 * eqn/Makefile: Add special.[co].
4258 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4260 * ps/devps/prologue: Possibly set packing to true while defining.
4261 Create grops dictionary here. Initialize local variables before
4262 defining procedures.
4263 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4264 the dictionary stack. Set strokeadjust and overprint to false if
4265 the relevant operators are defined.
4266 (PEND): New procedure.
4267 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4268 prologue. Do everything else in the setup section.
4269 (ps_printer::do_import): Just call PBEGIN and PEND around the
4270 picture. Also push userdict before, and pop it afterwards.
4272 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4274 * troff/node.c (bracket_node::tprint): Brackets were being printed
4277 * macros/tmac.an (SH, SS): Set fill mode.
4279 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4281 * troff/div.c (top_level_diversion::begin_page): Set
4282 high_water_mark to 0.
4284 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4286 * man/mdate.sh: New file.
4287 * man/mdate.c: Deleted.
4288 * man/Makefile: Use mdate.sh instead of mdate.
4291 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4293 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4295 * man/mdate.c: New file.
4296 * man/*.man: Replace modification date by @MDATE@.
4297 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4298 (mdate): New target.
4300 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4301 Remove illegal input characters.
4303 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4305 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4307 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4309 * troff/div.c (begin_page): Change behaviour when
4310 !first_page_begun and !break_flag.
4312 * troff/input.c (do_name_test): Return 0 if argument is empty.
4314 * troff/input.c (read_long_escape_name): Require closing ] to be
4315 at same input level as opening [.
4317 * troff/input.c (read_increment_and_escape_name): New function.
4318 (get_copy, process_input_stack): Use this for \n.
4320 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4322 * troff/div.c (top_level_diversion::begin_page): Ignore the
4323 current value of page_number if !first_page_begun.
4325 * groff.c (main): Fix declaration of buf.
4327 * troff/input.c (do_name_test): New function.
4328 (token::next): Implement \A.
4329 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4330 (token::description, token::add_to_node_list, token::process):
4331 Handle TOKEN_ESCAPE.
4332 * troff/token.h: New token TOKEN_ESCAPE.
4334 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4336 * pic/main.c (do_picture): Allow space before and after filename
4337 following `<'. Check that the filename is not empty.
4339 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4341 * Version 1.01 released.
4343 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4345 * dvi/tmac.dvi: ftr HR to H.
4347 * macros/tmac.e: Round up computation of $r.
4349 * xditview/tmac.X: Don't give up completely in compatibility mode.
4350 Use \n(.s instead of \n[.s].
4352 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4353 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4354 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4355 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4356 short names in the char definitions.
4358 * ps/tmac.ps: Don't give up completely in compatibility mode.
4359 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4360 quote in front of \n(.s. Add u to factors inside \s[...].
4362 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4364 * tty/tmac.tty: Call the nroff request.
4366 * macros/tmac.e ((x, )x): Better definitions that work properly
4368 (@0, @1): Helper macros for (x.
4370 * macros/tmac.e ($s, hl): Use \l rather than \D.
4372 * tty/tmac.tty: Make it work better in compatibility mode.
4373 (pchar): Rename to tty-char.
4375 * macros/tmac.e (@E): New macro.
4376 (r, i, b, rb, bi): Use @E.
4378 * macros/tmac.e (@F): Don't use (;...) syntax.
4380 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4381 it was modified for groff.
4383 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4385 * macros/tmac.e (<., .>): Removed.
4386 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4388 * macros/tmac.e: Remove check that groff is being used.
4390 * macros/tmac.e (@C): Change families only if using groff; turn
4391 compatibility mode off while changing familes. Save compatibility
4392 mode before changing families and restore it afterwards.
4394 * macros/tmac.e (@h): Remove test for offset + line length.
4396 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4397 (lo, th, ac): Define to call @S instead of using als.
4399 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4400 the ratio of the vertical spacing to the point size in units
4401 expressed as a percentage. Use these instead of $10r and $10R,
4402 Delete $10r and $10R.
4404 * lib/font.c (font::load): In default computation of space_width,
4405 divide by sizescale. Use scale_round.
4407 * macros/tmac.an (TP): Don't call `nf'.
4408 (an-do-tag): Don't call `fi'.
4410 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4412 * troff/input.c (process_input_stack): Handle the case where
4413 spaces at the beginning of an input line are followed by a
4416 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4418 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4419 * groff.sh: Use pic -x with the dvi device.
4421 * dvi/devdvi/FontMakefile (H): Don't use -s.
4423 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4424 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4425 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4428 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4430 * ps/psfig.diff: New file.
4431 * ps/tmac.psfig: New file.
4433 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4435 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4436 (]-): Don't call ref*do-tl.
4438 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4440 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4441 (fn@do-FS): Rename to fn*do-FS.
4443 * troff/input.c (transparent_translate): New function.
4444 (process_input_stack): Apply transparent_translate before calling
4445 diversion::transparent_output(unsigned char).
4447 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4449 * troff/input.c (do_define_macro): Define the macro before calling
4452 * xditview/Makefile: Add DEVICES variable. Change install target
4455 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4457 * groff.c (run_commands): Handle the possibility that there are
4458 child processes other than those forked by us.
4460 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4462 * lib/string.c (string::append): New function.
4463 * lib/stringclass.h: Declare it.
4465 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4467 * eqn/main.c (main): New option -N which sets
4468 no_newline_in_delim_flag.
4469 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4471 * groff.c (main): Pass -N on to eqn.
4472 (help, synopsis): Mention -N.
4473 * groff.sh: Implement -N.
4475 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4477 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4478 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4479 (XP): Allow as initializer.
4481 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4483 * troff/env.c (environment::wrap_up_field): If field_spaces are
4484 non-zero and we have a current_tab, subtract padding from
4485 tab_distance. If this makes tab_distance <= 0, use the next tab
4486 stop instead. If there isn't any next tab or it's a left tab,
4487 wrap up the current tab.
4488 (environment::start_field): Initialize tab_precedes_field.
4489 (environment::wrap_up_tab): If there's a current field, update
4490 pre_field_width, field_distance and tab_precedes_field.
4491 * troff/env.h (environment::tab_precedes_field): New member.
4493 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4495 * ps/ps.c (ps_printer::do_file): New function.
4496 (ps_printer::special): Bind to `file' special.
4497 (ps_printer::do_exec): Set ndefined_styles to 0.
4499 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4501 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4502 Avoid stripping first character from the start of unrecognized
4503 escapes. Use lex_error instead of error to report errors.
4504 * eqn/lex.c (get_token): Rework handling of escapes.
4505 (lex_error): Move declaration into...
4508 * xditview/xditview.c (main): Make -page option work.
4510 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4512 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4514 * macros/tmac.s (B2): Correct size of box.
4516 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4518 * macros/tmac.s (B2): Postpone drawing the box until in the
4519 top-level diversion.
4521 * tty/tmac.tty: Add font translations for C, CR, CW.
4523 * groff.c (synopsis, help): Document -i.
4524 * groff.sh: Implement -i.
4526 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4527 Simplify the construction of SN.
4529 * troff/number.c (parse_term): Give `|' a higher precedence.
4530 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4533 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4535 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4537 * lib/string.c (string::move): New function.
4538 * lib/stringclass.h: Declare it.
4540 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4542 * troff/env.c (distribute_space): Add optional argument
4544 (environment::wrap_up_field): Call distribute_space with
4545 `force_forward' argument of 1.
4547 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4549 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4550 Inline it. Move reallocation into...
4551 (string::grow1): New function.
4552 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4553 dependencies to include library header files.
4554 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4556 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4558 * macros/tmac.s (@NH): Use the same number registers than -ms does
4559 for the heading level counters. Use the same string that -ms does
4560 for the number for this heading.
4562 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4564 * lib/new.c (operator new): Cast result of malloc to char *.
4566 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4569 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4571 * groff.c (main): Support -i.
4573 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4575 * pic/pic.h: Include <osfcn.h>.
4577 * ps/ps.c: Add declaration of mktemp.
4579 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4580 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4581 argument as union wait *.
4582 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4583 argument to union wait *.
4585 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4587 * tty/tmac.tty: Add definition of \(co.
4589 * pic/object.c (make_arc): Only increase radius when radius
4590 strictly less than d.
4591 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4594 * troff/env.c (environment::environment(symbol),
4595 environment::environment(const environment *)): Initialize
4598 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4600 * tbl/main.c (main): Add exit(0).
4602 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4604 * pic/main.c (main):
4605 * eqn/main.c (main):
4606 * tbl/main.c (main):
4607 * etc/soelim.c (main):
4608 * driver/printer.c (printer::~printer):
4609 * troff/node.c (real_output_file::~real_output_file,
4610 real_output_file::flush): Check for errors on stdout.
4612 * most files: Add 1991 to copyright notice.
4614 * macros/tmac.s: Don't test \n(.x and \n(.y.
4616 * troff/input.c (token::next): Rename `escape_char' label to
4617 `handle_escape_char' and `normal_char' label to
4618 `handle_normal_char'.
4620 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4622 * groff.c (main, synopsis, help): Support -a option.
4623 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4624 to trflags while parsing options.
4626 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4628 * troff/number.c (parse_term): With `m', `M' and `n' scale
4629 indicators, convert scale factor to hunits before scaling.
4631 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4633 * lib/font.c (scale_round): Better test for overflow when n is
4636 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4638 * tbl/main.c (process_format): Add second argument of type
4639 options*. Change callers. Allow opt->tab_char as well as '\t'
4640 between format items.
4642 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4644 * macros/tmac.an (PD): With no arguments, make sure register PD is
4646 (TH): Call PD with no argument, instead of setting register PD
4649 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4651 * Version 1.00 released.
4653 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4655 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4657 * dvi/devdvi/DESC: Mount CW instead of CR.
4659 * dvi/tmac.dvi: Add definition of \(tm.
4661 * dvi/devdvi/texsy.map: Add lh, and rh.
4662 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4663 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4665 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4666 * dvi/devdvi/Makefile: Install H.
4667 * dvi/devdvi/H: New file.
4669 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4671 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4674 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4676 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4678 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4680 * macros/tmac.s (@EN): Handle the case where the equation is empty
4681 but the label is not.
4683 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4685 * troff/groff.h: New warning category WARN_SPACE.
4686 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4687 WARN_SPACE to warning_table.
4688 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4689 is longer than two characters and is not defined, but the first
4690 two characters do make a defined name.
4692 * PROBLEMS: New file.
4694 * CHANGES: New file.
4695 * README-0.6, README-1.00: Deleted.
4697 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4698 * xditview/devX75/Makefile: Make devX75-12.
4699 * xditview/devX100/Makefile: Make devX100-12.
4701 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4702 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4704 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4706 * README-0.7: Rename to README-1.00.
4708 * macros/tmac.pic: New file.
4709 * macros/Makefile (install.nobin): Install tmac.pic.
4711 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4713 * troff/env.c (hyphen_word): Correct the test for whether the
4714 token is a hyphen. Reset npos to 0.
4716 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4718 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4720 * macros/tmac.s (ds*common-end): Call par*reset.
4722 (par@reset-indent): Deleted.
4724 * macros/tmac.s (@IP): Divert the label.
4726 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4728 * xditview/draw.c (setGC): Use a line width of .1m rather than
4729 .04m by default; round rather than truncate value.
4731 * tbl/table.c (class empty_entry): New class.
4732 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4733 (table::add_entry): Represent empty entries by objects of type
4735 (table_entry::line_type): Return -1.
4736 (table::determine_row_type): Ignore entries with line_type 0.
4737 Treat type -1 as non-lines.
4739 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4741 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4742 macros/tmac.s: Rename \(-d to \(Sd.
4744 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4746 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4747 * xditview/libXdvi/DviChar.c: Likewise.
4748 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4750 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4752 * troff/div.c (top_level_diversion::begin_page): Call
4753 init_output() if the_output is 0.
4755 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4757 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4759 (get_copy): Turn \E into ESCAPE_E.
4760 (token::process, asciify): Handle ESCAPE_E.
4762 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4764 (DS): Implement `.DS R'.
4766 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4768 * macros/tmac.s (FS): New macro.
4770 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4772 * macros/tmac.s (cov*tl-init): Remove after first execution
4773 instead of aliasing to @nop. Call top of page macro explicitly
4774 instead of setting trap; call @init first. Set pg@top as top of
4776 (cov*auto-init): Deleted. Set cov*tl-init instead of
4777 cov*auto-init as top of page trap.
4778 (TL, LP): Do a break instead of calling cov*tl-init.
4779 (cov*print): With RP format but no TL, alias FS and FE to @FS and
4780 @FE; in this case also give a warning and always start another
4781 page. No need to set pg@top here.
4782 (cov*tl-init): Rename to cov*first-page-init.
4784 * macros/tmac.s (RP): Do `.pn 0'.
4785 (cov*tl-init): With RP format don't do `.pn 0'.
4787 * macros/tmac.s (pg@cs-top): Set no space mode.
4789 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4790 (cov*ab-init): Alias TL, AU and AI to these.
4792 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
4794 * macros/tmac.s (@EQ): Move the space before the equation into @EN
4795 (@EN): Do nothing unless \n[dl] is > 0.
4797 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
4799 * pic/object.c (ellipse_object::radius): New function.
4801 * VERSION: Change version to 0.7.
4803 * tbl/table.c (block_entry::do_divert): Declare return type as
4805 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4807 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
4809 * troff/column.c: New file.
4810 * troff/Makefile: Corresponding changes.
4812 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
4815 * troff/div.c (top_level_diversion::space): If the space causes
4816 the first-page transition and springs a trap, truncate the space
4819 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
4821 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4824 * pic/troff.c (troff_output::line_thickness,
4825 troff_output::set_fill): Do a horizontal motion to compensate for
4826 the width of the \D escape sequence.
4828 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
4830 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4833 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
4836 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4837 Supply empty definition.
4838 (text_entry::simple_print, simple_text_entry::simple_print):
4839 Delete declarations.
4840 (table::add_entry): Represent empty entries by objects of type
4843 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
4845 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4847 * tbl/table.c (left_text_entry::add_tab): New function.
4849 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
4852 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
4854 * troff/env.c (environment::start_field): Give an error message if
4855 there is no next tab.
4857 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
4859 * troff/env.c (hyphenate): Skip initial elements with zero
4862 * macros/tmac.s (par@init): Keep VS in points rather than units.
4864 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
4866 * pic/main.c (main): Implement `-c' option.
4867 * pic/output.h: Declare make_tpic_output().
4868 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4870 (tpic_output): New class.
4871 (tpic_output::tpic_output, tpic_output::set_pen_size,
4872 tpic_output::command, make_tpic_output): New functions.
4874 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
4876 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
4877 if they're not already defined.
4878 * tbl/table.c (init_output): Don't test \n(.g.
4880 * troff/input.c (do_if_request): Delete `g' condition. Recognize
4881 `d', `r' and `c' conditions even in compatibility mode.
4883 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
4885 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4888 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
4890 * troff/env.h (environment::prev_line_interrupted): New member.
4891 (environment::get_prev_line_interrupted): New function.
4892 * troff/env.c (environment::newline): Set prev_line_interrupted.
4893 (environment::environment(const environment *),
4894 environment::environment(symbol)): Initialize
4895 prev_line_interrupted.
4896 * troff/input.c (process_input_stack): Don't give special
4897 treatment to space and newline at the beginning of the line if the
4898 previous line was interrupted.
4900 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
4902 * eqn/eqn.y: Disallow PRIME by itself.
4903 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4905 (def_table): Remove definition of '. Define prime to be `.
4907 * eqn/eqn.y: Split off part of rule `script' into a new rule
4910 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
4912 * macros/tmac.s ({, }): New string aliases.
4914 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
4916 * README-0.7: New file.
4918 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
4920 * macros/tmac.s: New file.
4921 * man/groff_ms.man: New file.
4922 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4923 * Makefile.bd: Similarily.
4924 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4925 definition of TMAC_S.
4926 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4927 * macros/TODO: New file.
4929 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
4931 * troff/env.c (right_justify): New function.
4932 (init_env_requests): Bind this to request "rj".
4933 (center_lines): Set right_justify_lines to 0. If we get a bad
4934 integer, center 1 line.
4935 (environment::environment(symbol), environment::environment(const
4936 environment *)): Initialize right_justify_lines.
4937 (environment::get_right_justify_lines): New function.
4938 (init_env_requests): Bind this to number_register ".rj".
4940 * troff/env.c (environment::choose_breakpoint): Implement
4941 hyphenation_margin and hyphenation_space.
4942 (environment::get_hyphenation_space,
4943 environment::get_hyphenation_margin): New functions.
4944 (init_env_requests): Bind these to .hys and .hym.
4945 (hyphenation_space_request, hyphenation_margin_request): New
4947 (init_env_requests): Bind these to hys and hym.
4948 (environment::environment(symbol), environment::environment(const
4949 environment *)): Initialize hyphenation_margin and
4951 * troff/env.h: Corresponding changes to class environment.
4953 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
4955 * troff/div.c (blank_line): Always do a break.
4957 * eqn/box.c (do_text): Turn off escapes while appending text to
4960 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
4962 * troff/input.c (while_break_request, while_continue_request): New
4964 (init_input_requests): Bind these to "break" and "continue".
4965 (while_depth, while_break_flag): New variables.
4966 (while_request): Update while_depth. Break out of loop if
4967 while_break_flag is set.
4969 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
4971 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
4974 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
4976 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
4978 * stringify: New file.
4979 * Makefile (groff.o): Use stringify.
4981 * xditview/tmac.X: Remove definition of \(rn.
4982 * xditview/libXdvi/DviChar.c: Remove radicalex from
4985 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
4987 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
4988 (alphabetic_block_entry::alphabetic_block_entry,
4989 alphabetic_block_entry::divert, alphabetic_block_entry::print):
4991 (block_entry::divert): Split off body into ...
4992 (block_entry::do_divert): If the block is alphabetic, subtract 2n
4993 from the line length; also update the span width to dl+2n, and the
4994 alphabetic span width to dl.
4996 * driver/input.c (do_file): While reading argument to D command,
4997 when expanding buffer, multiply szp by sizeof(int) rather than 2
4998 in the argument to memcpy.
5000 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5001 width of alphabetic columns.
5003 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5005 * troff/node.c (lookup_family): Supply second argument to lookup.
5007 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5008 search, return immediately if v is 0.
5010 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5011 (troff_output::start_picture): Set this reg.
5012 (troff_output::end_picture): Remove this reg
5013 * eqn/box.c (box::extra_space): Don't produce `\x's if
5014 EQN_NO_EXTRA_SPACE_REG is defined.
5016 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5017 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5020 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5022 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5025 * troff/div.c (top_level_diversion::top_level_diversion):
5026 Initialize page_number to 0.
5028 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5030 * groff/troff (environment::environment(const environment *)):
5031 Initialize name to e->name, rather than "anonymous".
5033 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5035 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5036 requested_page. Split middle part into ...
5037 (FindPage): New function.
5038 (SetValues): If we don't yet know the last page, and the requested
5039 page is greater than the current page, call FindPage.
5040 Update the font_map_string before doing this.
5042 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5043 Translate \(lh and \(rh into left and right double arrows.
5045 * troff/node.c (class hyphen_inhibitor_node): New class.
5046 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5047 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5048 hyphen_inhibitor_node::type,
5049 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5050 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5051 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5054 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5056 * troff/node.h (dummy_node::get_hyphenation_type,
5057 transparent_dummy_node::get_hyphenation_type): Declare them.
5058 * troff/node.c: (dummy_node::get_hyphenation_type,
5059 transparent_dummy_node::get_hyphenation_type): New functions.
5061 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5063 * xditview/libXdvi/draw.c: If M_PI not defined after including
5064 math.h, then define it.
5066 * xditview/Makefile: Add definition of AR. Pass it to the submake
5068 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5070 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5072 * troff/dictionary.h (object_dictionary::alias): Declare return
5074 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5075 if the old name was defined.
5076 * troff/input.c (alias_macro): Give a warning if the old name was
5078 * troff/reg.c (alias_reg): Likewise.
5080 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5082 * troff/input.c (token::next): Delete implementation of \R.
5084 * macros/Makefile: Strip comments from tmac.e while installing it.
5086 * troff/input.c: New variable `nroff_mode'.
5087 (troff_request, nroff_request): New functions.
5088 (init_input_requests): Bind `troff' and `nroff' to troff_request
5090 (do_if_request): Compute results of t and n conditions from
5093 * text/text.c (split_text): Fix typo in >=.
5095 * eqn/lex.c: Add definition of `==' to def_table.
5097 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5099 * pic/tex.c (tex_output::start_picture): Change the definitions of
5100 \graph and \graphtemp so that they work properly with Plain TeX.
5102 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5103 argument to `ar' is not less than the first.
5105 * pic/pic.y: Allow a comma between elements of the variable list
5106 in the argument to `reset'.
5108 * pic/object.c (arc_object::arc_object): Fix computation of
5111 * eqn/main.c (main): Add exit(0).
5113 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5115 * troff/div.c (begin_page): Test no_space_mode after doing the
5116 break, but still push the page ejector cookie before doing the
5117 break. Also set the next page number after doing the break.
5119 * xditview/xditview.c (NewFile): Don't set the title and icon name
5120 if this is the first file and its name is `-'.
5121 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5122 the X75 and X100 devices.
5123 (main): If a device has the XT_OPTION flag set and there's exactly
5124 one file argument, pass the driver -xrm and -title options to set
5125 the icon name and window title to the name of the file.
5127 * troff/env.c (environment_switch): If there was an argument but
5128 it wasn't a valid number or name, then pop an environment but
5129 don't give an error message on underflow.
5131 * troff/number.c (start_number): Correct spelling in error message.
5133 * troff/input.c (token::delimiter): Don't print an error message
5136 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5137 ParseDrawFunction if dw->display_enable is true.
5139 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5141 * pic/pic.y: Parse text positioning like normal attributes, so as
5142 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5143 positioning attribute.
5145 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5147 * tbl/main.c (process_data): When in state START while reading a
5148 text block, don't change to state MIDDLE if c is a newline.
5150 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5152 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5153 so as to avoid shadowing parameter.
5155 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5157 * tbl/table.c (trim_space): Deleted.
5158 (table::add_entry): Don't call trim_space.
5160 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5162 * VERSION: Change version to 0.6.
5164 * troff/number.c (parse_expr): Make == work.
5166 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5168 * man/grog.man: New file.
5169 * man/Makefile: Add grog.n to MAN1PAGES.
5170 * etc/grog.sh: New file.
5171 * etc/Makefile: Install grog.sh as grog.
5173 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5175 * troff/input.c (token::next): Implement \E.
5177 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5179 * xditview/tmac.X: Change font translations to match tmac.ps.
5181 * troff/input.c (non_empty_name_warning): Don't give a warning if
5182 `\{' terminates the name.
5184 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5186 * ps/devps/symbol.diff: New file.
5187 * ps/devps/FontMakefile: Mention symbol.diff.
5189 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5191 * troff/node.c (font_position): Use get_long_name to read the
5194 * troff/env.c (environment_switch): If we get a number that's < 0
5195 or >= NENVIRONMENTS, treat it like a name.
5196 Change NENVIRONMENTS to 10.
5198 * troff/groff.h: Remove definition of FONTS_MAX.
5199 * troff/node.h (class font_family): Make map a pointer instead of
5200 an array. Add a map_size member. Make it a class. Make nm const
5201 and public. Make invalidate_fontno a friend.
5202 * troff/node.c: Define font_table_size. Make font_info a pointer
5203 rather than an array.
5204 (class troff_output_file): Allocate font_position dynamically. Add
5205 nfont_positions member.
5206 (troff_output_file::set_font): Grow font_position if necessary.
5207 (troff_output_file::~troff_output_file): Delete font_position.
5208 (troff_output_file::troff_output_file): Allocate font_position.
5209 (grow_font_table): New function.
5210 (troff_output_file::really_begin_page,
5211 troff_output_file:really_copy_page): Use nfont_positions rather
5213 (mount_font_no_translate, mount_style): Call grow_font_table if
5215 (font_family::font_family): Allocate map.
5216 (font_family::make_definite): Grow map if necessary. Use
5217 font_table_size instead of FONTS_MAX.
5218 (font_family::~font_family): New function.
5219 (invalidate_fontno): Use font_family::map_size.
5220 (get_fontno, env_space_width, env_half_narrow_space_width,
5221 env_narrow_space_width, symbol_fotno, is_good_fontno,
5222 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5224 (next_available_font_position): Never return 0.
5226 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5228 * ps/tmac.ps: Add font translations for compatibility with dpost.
5230 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5232 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5233 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5234 Move definitions baseline_sep, shift_down, column_sep,
5235 matrix_side_sep into...
5236 * eqn/box.c: Add them to param_table.
5237 * eqn/pbox.h: Add declarations to pbox.h.
5239 * troff/input.c (set_string): Cast value to unsigned char *.
5241 * troff/token.h (process_input_stack): Declare it static before
5242 declaring it a friend.
5244 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5246 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5248 * dvi/devdvi/EX: Regenerate.
5250 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5253 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5255 * eqn/lex.c: In defaults_table, make definition of `dot' call
5256 `dot_def'. Don't explicitly make it roman. Similarily for other
5259 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5261 (for_input::get, for_input::peek): Use this.
5262 (do_for): Add by_is_multiplicative argument.
5263 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5264 Change semantic value of optional_by to be a double plus a flag
5265 saying whethet the by clause is multiplicative.
5267 * eqn/lex.c (get_delimited_text): Remember location of start of
5268 definition. Improve error handling when EOF is encountered.
5270 * lib/font.h: Rename handle_x_command to
5271 handle_unknown_font_command.
5272 * lib/font.c (font::load): Call handle_unknown_font_command for
5273 any unknown command in the font description file. Don't call
5274 handle_x_command. Include the name of the command in the argv.
5275 Improve message for unknown command after kernpairs or charset
5277 * ps/ps.c (ps_font::handle_x_command): Rename to
5278 handle_unknown_font_command. Remove message about `x download'
5279 command. Give error message for wrong number of arguments.
5280 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5281 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5282 handle_unknown_font_command. Give an error message for wrong
5283 number of arguments. Rename design_size to designsize.
5284 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5285 checksum', `designsize' instead of `design_size'.
5287 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5289 * eqn/*.[chy]: Change underaccent to uaccent.
5291 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5292 give it the same precedence as ACCENT.
5293 * eqn/other.c (make_underaccent_box): New function.
5294 * eqn/box.h: Declare it.
5295 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5298 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5300 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5301 (parse_init): Call reset_all.
5302 (define_variable): When defining scale reset only those
5303 pre-defined variables that are scaled.
5304 (defaults_table): Add `scale' as non-scaled value.
5306 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5307 together with the text; allow any number of positioning words;
5308 allow center as a positioning word.
5310 * pic/object.c (output::compute_scale): Get picture maximum height
5311 and width from variables called maxpswid and maxpsht.
5312 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5314 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5316 * pic/object.c (object_spec::make_text): Multiply textht by number
5319 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5321 (do_sprintf): New function.
5322 (pic.gperf): Add sprintf token.
5323 (text, sprintf): New rules.
5325 * pic/pic.y: `rand()' with no arguments returns a random number
5328 * pic/pic.y: Allow a bare expression to be an attribute: change
5329 precedences to support this. Change optional_ordinal rule to
5330 optional_ordinal_last to avoid reduce/reduce conflict.
5331 * pic/object.c (object_spec::object_spec): Initialize direction.
5333 * pic/pic.y: Implement ^ operator meaning exponentiation.
5335 * troff/node.h: Add default argument to mount_font.
5336 * troff/node.c (font_position): Read an optional third argument
5337 giving the external_name.
5338 (mount_font): Add optional argument giving the external_name.
5339 (mount_font_not_translate): Have additional argument giving
5340 external name. Use this name to load the font. Pass both names
5341 to font_info::font_info.
5342 (font_info::font_info): Have additional argument giving
5344 (class tfont): New member external_name.
5345 (font_info::get_tfont): Use external name to construct tfont_spec.
5347 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5349 * eqn/lex.c (init_table): Add argument giving device. Define
5350 name of device to be "1".
5351 (do_ifdef): Counts as true if the argument has been defined with
5353 * eqn/main.c (main): Call init_table with device argument. Make
5354 device local to main.
5355 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5358 * pic/lex.c (get_delimited): Allow text to be delimited by
5359 matching {}s. Don't recognize ending delimiter within a string.
5361 * troff/input.c (get_delim_name): New function.
5362 (token::next): Implement \C.
5364 * lib/font.c (font::load): Grok ---. Add an alias for each
5365 character based on its code.
5366 (font::get_code_width): Deleted.
5367 * lib/font.h (class font): Declare font::number_to_index().
5368 Remove declaration of font::get_code_width.
5369 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5370 to indices of named characters.
5371 (font::number_to_index): New function.
5372 * troff/input.c (font::number_to_index): New function.
5373 (get_charinfo_by_number, charinfo::get_number,
5374 charinfo::set_number): New functions.
5375 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5376 (token::process, token::description, token::get_char,
5377 token::add_to_node_list, token::operator==): Handle
5378 TOKEN_NUMBERED_CHAR.
5379 * troff/charinfo.h: Declare get_charinfo_by_number,
5380 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5382 (charinfo::numbered): New function.
5383 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5384 * troff/env.h (class environment): Remove declaration of ...
5385 * troff/env.c (environment::make_numbered_char_node): Deleted.
5386 * troff/node.c (make_numbered_node): Deleted.
5387 (class numbered_glyph_node): Remove.
5388 (troff_output_file::put_char_width, troff_output_file::put_char):
5389 Handle numbered chars.
5390 (troff_output_file::numbered_char): Removed.
5391 (tfont::get_code_width): Removed.
5392 (make_glyph_node): Don't search special fonts for numbered
5394 * troff/node.h: Remove declaration of make_numbered_node.
5395 * driver/input.c (do_file): Handle N command.
5396 * driver/printer.h: Add declaration of ...
5397 * driver/printer.c (printer::set_numbered_char): New function.
5398 * dvi/tfmtodit.c (main): Generate unnamed entries.
5399 * ps/devps/afmtodit: Likewise.
5400 * xditview/xtotroff.c (MapFont): Likewise.
5401 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5403 * tbl/main.c (process_format): If multiple widths are specified
5404 for a column but all the widths are the same, don't give an error
5407 * tbl/table.c (table::do_row): If the current row is all lines and
5408 the stuff doesn't contains a line, mark the top of the row after
5409 printing stuff before the row. If the current row is not all
5410 lines and the stuff doesn't contain a line, don't unnecessarily
5411 mark the top of the row before printing the stuff.
5413 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5415 * troff/groff.h: Remove MAX_PATH.
5416 * troff/input.c (open_file): Dynamically allocate space for the
5418 (open_mac_file, process_macro_file): Corresponding changes.
5420 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5422 * troff/node.h (class output_file): Make copy_file pure. Add
5423 vspace method ifdef COLUMN. Add is_printing method.
5424 * troff/node.c: Add class printing_reg. Add class
5425 real_output_file. Derive other output_file classes from
5426 real_output_file; in these classes rename begin_page to
5427 really_begin_page, print_line to really_print_line, copy_file to
5428 really_copy_file, transparent_char to really_transparent_char.
5429 Move output_file::flush to real_output_file. Add printing member
5430 to class output_file.
5431 * troff/div.h: Remove printing member from top_level_diversion.
5432 Add vspace member function to class diversion ifdef COLUMN. Add
5433 some declarations ifdef COLUMN.
5434 * troff/div.c (top_level_diversion::copy_file,
5435 top_level_diversion::transparent_output,
5436 top_level_diversion::output): Don't test printing member before
5438 * troff/input.c: Handle initial variable_space_request ifdef
5440 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5443 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5445 * troff/div.c (diversion::need): Make any space forced. If we
5446 sprung a trap, set truncated_space to minus the distance to the
5447 trap and set needed_space to the amount that was needed.
5448 (top_level_diversion::space): A forced space turns no_space_mode
5450 (class constant_vunits_reg): New class.
5451 (init_div_requests): Implement number registers .trunc and .ne
5452 using constant_vunits_reg.
5453 (class truncated_space_reg): Deleted.
5455 * troff/div.h: Don't have a no_space_mode member in diversion.
5456 Instead have it in top_level_diversion.
5457 * troff/div.c (diversion::diversion): Don't initialize
5459 (top_level_diversion::top_level_diversion): Initialize
5461 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5462 (macro_diversion::output): Don't clear no_space_mode.
5464 * troff/input.c (diverted_space_node::reread): Don't call
5465 environment::do_break. In fill mode, act like a blank line.
5466 (diverted_copy_file_node::reread): Don't call
5467 environment::do_break.
5469 * troff/div.c (blank_line): New function.
5470 * troff/div.h: Declare it.
5471 * troff/input.c (process_input_stack): Call it.
5473 * troff/div.c (truncated_space_reg::get_string): New function.
5474 (init_div_requests): Bind to .trunc.
5475 (space_request, top_level_diversion::space,
5476 top_level_diversion::output, macro_diversion::space,
5477 macro_diversion::output): Update truncated_space.
5478 (macro_diversion::output): Redo calculations when trap sprung.
5479 (macro_diversion::output, macro_diversion::space): No need for
5482 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5483 after truncating post line spacing.
5485 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5487 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5488 defined as a procedure rather than as an operator.
5490 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5492 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5494 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5496 * troff/div.c (top_level_diversion::output): Merge
5497 output_file::print_line and output_file::end_of_line member
5499 * troff/div.h (class output_file):
5500 * troff/node.c (troff_output_file::print_line,
5501 troff_output_file::end_of_line, output_file::end_of_line,
5502 ascii_output_file::print_line, suppress_output_file::print_line):
5503 Corresponding changes.
5505 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5507 * troff/input.c (token::next): Don't give a warning for `\.'.
5509 * troff/env.c (environment::get_center_lines): New function.
5510 (init_env_requests): Bind number register .ce to it.
5511 * troff/env.h: Declare it.
5512 * tbl/table.c (table::init_output): Define reset macro to restore
5513 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5515 (table::print): If center option not given, then imply center
5516 option if SAVED_CENTER_REG > 0.
5518 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5520 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5521 Troff.ps from DOWNLOAD.
5523 * troff/Makefile: Change comment in DEFINES to avoid confusing
5526 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5527 code. Don't try to catch errors with stopped.
5528 (check_line_lengths): New function.
5529 * ps/devps/prologue (EXEC): Deleted.
5530 (EBEGIN, EEND): New procedures.
5532 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5534 * troff/input.c: Include request.h before node.h.
5535 * troff/node.c: Likewise.
5536 * troff/env.c: Likewise.
5537 * troff/div.c: Likewise.
5538 * troff/node.h (class special_node): Store argument as a macro
5539 rather than a char *.
5540 * troff/node.c (special_node::special_node, special_node::copy):
5542 (special_node::~special_node): Deleted.
5543 (special_node::tprint): Deleted.
5544 (special_node::tprint_start, special_node::tprint_end,
5545 special_node::tprint_char): New functions.
5546 (troff_output_file::special): Deleted.
5547 (troff_output_file::start_special, troff_output_file::end_special,
5548 troff_output_file::special_char): New functions.
5549 * troff/input.c (special_node::tprint): New function.
5550 (do_special): Use macro not char *.
5551 (do_transparent_macro): Deleted.
5552 (token::next): Don't call do_transparent_macro.
5554 * troff/input.c (token::next): Add 'Y' case.
5555 (do_transparent_macro): New function.
5556 * troff/node.c (troff_output_file::special): Handle newlines with
5557 argument using new continuation convention.
5558 * driver/input.c (get_string): Cope with continuation convention.
5559 (do_file): Don't call skip_line after calling get_string(1).
5560 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5561 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5563 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5566 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5568 * troff/input.c (asciify): By default, illegal input characters
5569 should return empty string.
5571 * troff/input.c (copy_file): Handle first page transition like title.
5572 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5574 * troff/input.c (token::next): Improve error message for EOF after
5576 (input_char_description): New function.
5577 (get_char_for_escape_name): Use input_char_description.
5578 (token::next): Warn about unrecognized escape sequences.
5579 (warning_table): Add WARN_ESCAPE.
5580 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5583 * troff/token.h: Remove declaration of process_input_stack.
5585 * troff/input.c: Remove declaration of init_hyphen_requests.
5586 * troff/request.h: Correct spelling in declaration of same.
5588 * troff/input.c (token::next): Check whether escape_char is 0.
5590 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5592 * groff.c (main, usage, help): Implement -P and -L options.
5593 * groff.sh: Likewise.
5595 * troff/input.c (token::next): Use some gotos to avoid code
5598 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5599 Avoid calling symbol::symbol if name empty.
5601 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5603 * troff/input.c (init_input_requests): Make \n(.x return the major
5604 version number and \n(.y return the minor version number.
5605 * troff/Makefile: Construct file majorminor.c defining
5606 major_version and minor_version automatically from ../VERSION.
5608 * troff/node.c (class glyph_node): Make operator new and operator
5610 (class ligature_node): Similarily.
5612 * troff/input.c (operator==(const macro &, const macro &)): New
5614 (non_interpreted_node::same): Use this.
5615 (string_iterator::string_iterator): Make macro& argument const.
5617 * troff/input.c (input_iterator::get): New function. Don't make
5618 asciify_macro or class non_interpreted_node friends of class
5620 (non_interpreted_node::interpret): Use input_iterator::get.
5621 (asciify_macro): Likewise.
5623 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5624 ~non_interpreted_node): Deleted.
5625 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5628 * troff/symbol.h: Make all symbol member functions const.
5630 * lib/strtol.c: New file.
5631 * lib/Makefile: Add strtol.c.
5632 * Makefile: Define STRTOL as strtol.o to include strtol in
5635 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5637 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5639 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5641 * troff/input.c (do_special): Use input_level.
5643 * troff/token.h (TOKEN_BACKSPACE): New token.
5644 (token::backspace): New function.
5645 * troff/input.c (token::description, token::next, token::process):
5646 Grok TOKEN_BACKSPACE.
5647 (do_special): Turn TOKEN_BACKSPACE back into \b.
5649 * troff/token.h (token::leader): New function.
5650 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5652 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5654 * troff/input.c (do_special): Use token::description in error
5657 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5659 * troff/input.c (decode_args): Combine quoted and
5660 quote_input_level variables. Make it a for (;;) loop.
5662 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5664 * troff/input.c (read_long_escape_name): The test for whether to
5665 expand buffer was off by 1.
5666 (read_string): Similarily.
5668 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5670 * troff/input.c: Use `const int' rather than `static const int'.
5672 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5673 (macro_diversion::copy_file): New function.
5674 * troff/node.h: New class diverted_copy_file_node.
5675 * troff/node.c: Implement it.
5676 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5677 first page transition by pushing a diverted_copy_file_node.
5678 * troff/input.c (token::next, process_input_stack): Don't handle
5681 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5683 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5684 whether space widths need adjusting.
5686 * troff/charinfo.h: Generalize translated_to_space to
5687 special_translation so as to allow translation to \&.
5688 * troff/input.c (translate): Allow translation to \&.
5689 (charinfo::*): Corresponding changes.
5690 * troff/node.c (make_node, node::add_char): Corresponding changes.
5691 * troff/node.h (dummy_node::dummy_node): Allow optional first
5694 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5695 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5697 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5698 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5699 (token::process): Grok that.
5700 * troff/input.c (copy_file): Handle first page transition like
5701 title by pushing a COPY_FILE_REQUEST cookie.
5702 (token::next, process_input_stack): Grok that.
5703 * troff/node.h (output_file::copy_file): Add x and y arguments.
5705 * troff/div.c (top_level_diversion::copy_file): Supply them.
5706 * troff/node.c (troff_output_file::copy_file): Add x and y
5707 arguments; moveto specified position. Invalidate font_position
5708 array after copying file.
5709 (output_file::copy_file): New function.
5710 (suppressed_output_file::copy_file, ascii_output::copy_file):
5712 * troff/input.c (transparent_file): New function.
5713 (init_input_requests): Bind to "trf".
5714 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5715 (process_input_stack): Likewise.
5717 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5719 * troff/node.c (init_node_requests): New number registers .kern
5720 pointing to global_kern_mode, and .lg pointing to
5721 global_ligature_mode.
5723 * troff/node.c (ligature): Don't change it if we get a bad
5726 * troff/input.c (do_define_string): Don't strip tabs.
5728 * troff/input.c (asciify_macro): Make the string_iterator auto.
5730 * troff/node.c (init_font_requests): Rename to...
5731 (init_node_requests):
5732 * troff/node.h: Change declaration.
5733 * troff/input.c (main): Change call.
5735 * troff/input.c (node::reread, diverted_space_node::reread): New
5737 (process_input_stack): Call reread rather than
5738 get_diverted_space_node.
5739 * troff/node.c (node::get_diverted_space_node,
5740 diverted_space_node::get_diverted_space_node): Removed.
5741 * troff/node.h: Declare reread methods instead of
5742 get_diverted_space_node methods. Make `n' member private.
5743 * troff/input.c: (token::diverted_space): Removed.
5744 * troff/token.h: Removed declaration.
5747 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5749 * eqn/script.c (script_box::compute_metrics): Don't let
5750 SUP_RAISE_FORMAT become negative.
5752 * tbl/table.c (table::do_row): Entries that don't end in the
5753 this row shouldn't make the row non-blank.
5755 * tbl/table.c (table::make_columns_equal): Only set the width of
5756 columns which are marked as equal.
5758 * tbl/main.c (process_data): Before issuing excess data error,
5759 if last character was a newline unget it; then get it again after
5760 the error. Also include the contents of the entry in the message.
5762 * groff.c: New file.
5763 * Makefile: Build groff from groff.c. Make it possible to use
5764 either groff.sh or groff.c as groff.
5765 * Makefile.bd: Similarily.
5767 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5769 * groff.sh: Don't delay expansion of $@ in assignment to files.
5770 Remove occurrences of \".
5772 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
5774 * all Makefiles: Simplify and rearrange.
5776 * Makefile: Handle fmod like malloc.
5777 * lib/Makefile: Similarily.
5778 * lib/fmod.c: Remove #ifdef NEED_FMOD.
5780 * Makefile: Rename OPTIMISE to OPTIMIZE.
5782 * groff.sh: Remove assignment to PATH.
5783 * Makefile: Remove SHPATH variable.
5784 * Makefile.bd: Similarily.
5786 * groff.sh: Add -V option to print the pipeline instead of
5789 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
5791 * lib/font.c: Split off file searching into ...
5792 * lib/fontfile.c: New file.
5794 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5796 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
5798 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5799 Also change misleading comment.
5800 (table::do_vspan): Change similarily misleading comment.
5801 * tbl/main.c (process_data): A format row with an explicit `s'
5802 uses up a data line, even if all the other columns are `_' or `='.
5804 * troff/input.c (token::description): Fix description of
5805 TOKEN_DUMMY and TOKEN_EMPTY.
5807 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
5809 * groff.sh: Fix description of -Z in help message.
5811 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
5813 * pic/object.c (object_spec::make_object): Allow negative and zero
5815 * pic/pic.y: Give linethick default value of -1.0.
5816 * pic/troff.c (troff_output::troff_output): Initialize
5817 last_line_thickness to BAD_THICKNESS.
5818 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5819 (troff_output::line_thickness): Canonicalize negative thicknesses
5820 to RELATIVE_THICKNESS.
5821 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5822 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5824 (tex_output::start_picture): Set pen_size to -2.0.
5826 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5827 0, then use 0 linewidth.
5828 (ps_printer::ps_printer): Initialize line_thickness to -1.
5830 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5832 * ps/devps/symbolchars: Remove `or'.
5833 * ps/tmac.ps: Implement \(or with .char.
5835 * ps/devps/symbolchars: Move most characters into textmap.
5836 * ps/devps/textmap: Add names for troff bracket characters. Remove
5839 * ps/devps/TSymbol.ps: Removed.
5840 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5841 * ps/tmac.ps: Do with .char what TSymbol did.
5842 * ps/devps/download: Remove TSymbol.
5844 * ps/devps/T: Removed.
5845 * ps/devps/Troff.ps: Removed.
5846 * ps/devps/Troff.afm: Removed.
5847 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5848 * ps/devps/download: Remove Troff.
5849 * ps/devps/FontMakefile: Remove T target.
5850 * ps/devps/DESC-A4: Remove T from font list.
5851 * ps/devps/DESC-letter: Likewise.
5853 * troff/input.c (macro_to_node): Rename to ...
5854 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
5855 character's definition while processing it.
5856 * troff/node.c (node::add_char, make_node): Change calls to
5857 macro_to_node accordingly.
5859 * troff/input.c (token::next): Translate \_ to \(ul.
5861 * tty/devascii/R.proto: Add `|'.
5862 * tty/devlatin1/R.proto: Likewise.
5864 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
5866 * man: Put the version number in all the man pages.
5868 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
5870 * Makefile.bd: New file.
5871 * README.bd: New file.
5873 * VERSION: New file.
5874 * lib/version.c: Removed.
5875 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5878 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5879 environment variable.
5881 * all Makefiles: Split install target into install.bin for
5882 binaries, and install.nobin for everything else.
5883 * Makefile: Add bindist target.
5885 * man/afmtodit.man: New file.
5886 * man/Makefile: Add afmtodit.n to MAN1PAGES.
5887 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5889 * ps/Makefile: Pass BINDIR to make install in devps.
5891 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5892 the space character.
5894 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5896 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
5898 * ps/ps.c: Redo font downloading.
5899 * ps/devps/download: New file.
5900 * ps/devps/Makefile: Add download to DEVICEFILES.
5901 * ps/devps/afmtodit: Remove -d option.
5902 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5903 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5904 * ps/devps/zapfdr.ps: Likewise.
5905 * ps/devps/TSymbol.ps: Likewise.
5907 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
5909 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5911 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
5913 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5914 then strip the first line if it starts with %.
5915 * Makefile: Add a comment about this.
5917 * man/tfmtodit.man: New file.
5918 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5919 * dvi/Makefile: Install tfmtodit in BINDIR.
5921 * dvi/tfmtodit.c (usage): Mention -v option.
5923 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
5925 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5926 * troff/node.c (troff_output_file::transparent_char): Don't call
5929 * eqn: Add check_tabs method to most box classes.
5930 * eqn/box.c (box::top_level): Call check_tabs.
5932 * eqn/script.c (script_box::output): Use \Z.
5933 * eqn/limit.c (limit_box::output): Use \Z.
5935 * eqn/box.c (box::top_level): Use itoa.
5937 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
5939 * dvi/tmac.dvi: Add font translations for CR, C, TT.
5940 * dvi/devdvi/Makefile: Don't make links to CW.
5942 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5944 * xditview/tmac.X: Likewise.
5946 * troff/node.c: Add font translation feature.
5947 (get_font_translation): New function.
5948 (symbol_fontno): Translate the font name.
5949 (mount_font_no_translate): Rename to mount_font to this.
5950 (mount_font): New function.
5951 (font_family::make_definite): Call mount_font_no_translate instead
5953 (mount_style): Translate the font name.
5954 (font_translate): New function.
5955 (init_font_requests): Bind "ftr" to font_translate.
5957 * ps/devps/prologue (SN): New procedure that rounds a position to
5958 the nearest (pixel + (.25,.25)).
5959 (DL): Use SN to round endpoints.
5961 * lib/version.c: Changed version to 0.5.
5963 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
5965 * Makefile: Move definition of PAGE to the very beginning, so that
5966 people are less likely to miss it.
5968 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
5970 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
5972 * troff/env.c (environment::choose_breakpoint): Make `can't find
5973 breakpoint' error a warning of type WARN_BREAK. Change message to
5975 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
5977 * troff/input.c: Add WARN_BREAK to warning_table. Include
5978 WARN_BREAK in DEFAULT_WARNING_MASK.
5980 * tty/tmac.tty: Add definition of \(+-.
5982 * groff.sh: Remove `--' option to set command.
5984 * dvi/devdvi/texsy.map: Remove duplicate md entry.
5986 * ps/devps/eqnchar: Better definition of cdot using md.
5987 * dvi/devdvi/eqnchar: Likewise.
5988 * xditview/devX100/eqnchar: Likewise.
5989 * xditview/devX75/eqnchar: Likewise.
5990 * eqn/lex.c: Add definition of cdot.
5992 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
5994 * troff/input.c (get_optional_char): New function.
5995 * troff/input.c (set_page_character): Use get_optional_char(),
5996 rather than has_arg() and tok.get_char(1).
5997 * troff/env.c (tab_character, leader_character, hyphen_char,
5998 field_characters): Likewise.
5999 (margin_character): Likewise. Also always delete the
6000 margin_character_node.
6002 * troff/input.c (token::get_char): Use token::description.
6004 * troff/input.c (has_arg): Don't skip over tab and \}.
6005 * troff/number.c (start_number): Give a warning if the number
6006 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6008 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6010 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6012 (get_name, get_long_name): Use these. Rename `warn' argument to
6015 * troff/node.c (get_fontno): Test that the symbol is not null.
6017 * troff/input.c (token::description): New function.
6018 * troff/number.c (parse_term): Use token::description in `numeric
6019 expression expected' message.
6020 * troff/groff.h: Add WARN_MISSING.
6021 * troff/number.c (start_number): New function.
6022 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6023 get_incr_number): Use start_number().
6024 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6026 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6027 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6029 * troff/input.c (token::get_char): Use WARN_MISSING.
6030 * troff/input.c (token::delimiter): Use token::description.
6031 * troff/env.c (environment_switch): Back out Aug 3 change.
6032 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6034 * troff/token.h (token::tab): New function.
6035 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6036 * troff/reg.c (alter_format): Likewise.
6037 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6039 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6041 * troff (most files): Redo warnings. Divide warnings into various
6042 categories; warning() has an additional first argument indicating
6043 the category it falls into.
6044 * troff/input.c (main): -w now takes an argument. New option -W.
6045 (enable_warning, disable_warning): New functions.
6047 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6048 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6050 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6052 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6053 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6054 * xditview/devX75/eqnchar: Likewise.
6055 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6057 * eqn/other.c: When bar or over applies to a single character
6058 don't produce an overline_box or an underline_box. Instead produce
6059 an accent_box or an underaccent_box, with the accent a line
6060 whose width is accent_width. New classes underaccent_box,
6061 overline_char_box and underline_char_box.
6062 * eqn/box.h: Move overline_box, underline_box, accent_box class
6063 declarations into eqn/other.c. Add declarations of
6064 make_underline_box, make_overline_box, make_accent_box.
6065 * eqn/eqn.y: Call make_overline_box, make_underline_box
6066 make_accent_box instead of constructors.
6067 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6069 * eqn/other.c: Add accent_box::~accent_box.
6070 * eqn/box.h: Declare it.
6072 * groff.sh: With -Tps, use eqn -D.
6074 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6076 (underline_box::output): Similarily.
6077 (accent_box::output): Use \Z.
6079 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6082 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6084 * troff/div.c (top_level_diversion::transparent_output(unsigned
6085 char)): Use asciify.
6086 * troff/input.c (asciify): Don't make it static.
6087 * troff/token.h (asciify): Declare it.
6089 * troff/input.c (get_name, get_long_name, token::get_char,
6090 token::delimiter): Add an extra default argument which says
6091 whether a warning should be printed.
6092 * troff: Pass a non-zero argument to one of these rather than
6093 printing a warning directly.
6095 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6097 * troff: Consistently use symbol::is_null.
6099 * troff/dictionary.h: Move some inline functions into
6102 * troff/request.h: Move inline functions into input.c.
6103 (request_or_macro::invoke): Make it pure.
6105 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6106 * troff/input.c (init_input_requests): Use class constant_int_reg.
6107 (class compatible_reg): Deleted.
6108 * troff/div.c (init_div_requests): Use class constant_int_reg.
6109 (class last_post_line_extra_space_reg): Deleted.
6111 * troff/env.c (tab_character): Don't change the tab character if
6112 we get an invalid argument.
6113 (hyphen_char): Similarily.
6115 * troff/reg.c (alter_format): Check that nm is not null.
6117 * Makefile, groff.sh: Make it possible to customize the commands
6118 used for printing PostScript and dvi files. Also make it possible
6119 to customize the path used by groff.sh.
6121 * eqn/eqn.y: Make `left' right associative.
6123 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6125 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6128 * pic/pic.h: Removed definition of INT_MAX.
6130 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6133 * troff/input.c (token::next): Handle \R like \n.
6135 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6137 * ps/tmac.pc (PSPIC): Simplify.
6139 * troff/env.c (tab_stops::to_string):
6140 * pic/pic.y (object_type_name):
6141 * pic/troff.c (simple_output::line):
6142 * pic/tex.c (tex_output::spline):
6143 * pic/object.c (object_spec::make_object):
6144 * tbl/main.c (process_data): Add cases to switch statements to
6145 avoid cfront warnings. (Some of these are spurious, since the
6146 switch already has a default case.)
6148 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6149 `ps-'. Don't test systat; instead check number of arguments to
6152 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6154 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6156 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6157 Unlink the file as soon as we have opened it, so that we don't
6158 have to bother with signal handlers.
6160 (fatal_error_exit): Deleted.
6161 (main): Don't call signal.
6163 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6165 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6167 * pic/pic.y: If there is a label, or an nth construction before
6168 the first `.' in the argument to `with', ignore it and generate a
6170 * pic/lex.c (lex_warning): New function.
6172 * tbl/table.c (table::init_output): In section keep and release
6173 macro, use 0 indent when diverting and the correct indent when
6176 * troff/input.c (interpolate_number_format): Do not interpolate
6177 anything if the number register is not defined.
6179 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6181 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6183 * ps/devps/prologue (PICTURE): Set components of graphics state to
6184 their default values.
6186 * ps/devps/text.enc: Add trademark
6187 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6188 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6189 * ps/devps/symbolchars: Add names for summation and product.
6191 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6192 suchthat. Add pp. Add upper-case letters.
6194 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6195 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6198 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6199 rA (right angle bracket) to ra. Introduce names for double-headed
6200 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6201 * ps/devps/textmap: Likewise for ps device.
6202 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6203 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6204 * tty/devascii/R.proto: Likewise.
6205 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6207 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6209 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6211 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6214 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6216 * troff/div.c (when_request): Use symbol::is_null rather than
6217 has_arg to determine whether we have an argument.
6218 (change_trap): Remove the trap if we get an invalid number. Give
6219 an error if we don't get at least the macro name.
6220 (diversion_trap): Remove trap if we get an invalid name or number.
6222 * troff/env.c (environment_switch): Pop if we get an invalid
6223 symbol or numeric expression.
6225 * troff/input.c (do_define_macro): If EOF is encoutered while
6226 defining the macro, do tok.next() before returning.
6228 * troff/token.h (has_arg): Move definition from here, to ...
6229 * troff/input.c (has_arg): ... here
6231 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6232 * troff/input.c (shift): Likewise.
6234 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6237 * pic/troff.c (troff_output::start_picture): Comment out calls to
6240 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6241 interpret_lf_args succeeds.
6243 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6244 \\. This avoids problems with \$N.
6246 * groff.sh: Pass -C to preprocessors.
6248 * lib/lf.c (interpret_lf_args): Be more flexible.
6250 * tbl/main.c (main): Add -C option.
6251 (table_input::get): Do not recognize TE if followed by character
6252 other than a space or newline unless -C option given.
6253 (process_input_file): Likewise for lf, TS.
6254 (process_data): Likewise for lf in text blocks.
6256 * eqn/main.c (main): Add -C option.
6257 (do_file): Don't recognize EQ, EN or lf if followed by character
6258 other than space or newline unless -C option given.
6259 * eqn/lex.c (file_input::read_line): Similarily.
6260 * eqn/eqn.h: Declare compatible_flag.
6262 * etc/soelim.c (main): Add -C option.
6263 (interpret_lf_args): Use version in libgroff.
6266 * pic/main.c (main): Add -C option, which sets compatible_flag.
6267 (top_input::get), (top_input::peek): If -C option not given,
6268 do not recognize .PS/.PE/.PF/.lf if followed by a character
6269 other than space or newline.
6270 * pic/lex.c (file_input::read_line): Similarily.
6271 * pic/pic.h: Add declaration of compatible_flag.
6273 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6275 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6277 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6278 derived from node. New class space_char_hmotion_node.
6279 * troff/input.c (asciify_macro): New function.
6280 * troff/input.c (init_input_requests): New request `asciify' bound
6282 * macros/mm.diff: New file.
6283 * Makefile: In install.mm target use `patch' to apply
6286 * troff/input.c (macro::print_size): Just print the size in bytes.
6288 * troff/div.c (return_request): Correct the argument
6291 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6293 * troff/node.h (class composite_node): Add sz member.
6294 * troff/node.c (composite_node::size): Return sz.
6295 * troff/input.c (macro_to_node): Use the initial size in the
6296 environment as the size of the composite_node.
6298 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6301 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6303 * troff/div.c (change_trap): If we get a bad number expression,
6306 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6308 * lib/matherr.c (matherr): Define this only if math.h defines
6311 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6313 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6314 no diversion trap return vunits(INT_MAX - vresolution).
6316 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6318 * troff/input.c (do_zero_width): New implementation that doesn't
6319 use a temporary environment. Use instead:
6320 (token::add_to_node_list): New function.
6321 * troff/env.c (environment::get_prev_char_height),
6322 (environment::get_prev_char_height),
6323 (environment::get_prev_char_skew): New functions.
6324 (environment::get_prev_char): New function.
6325 (environment::get_prev_char_width): Change to use get_prev_char.
6326 (init_env_request): Implement new registers .cht, .cdp, .csk.
6327 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6328 \Z being processed in a separate environment.
6330 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6332 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6334 * tbl/table.c (table::init_output): In the section release macro,
6335 give a warning message if the section won't fit on one page.
6337 * tbl/table.c (table::do_top): Emit table keep only if table is
6339 (table::do_bottom): Likewise for table release.
6340 (table::table), (table::add_vertical_rule): Remove reference to
6342 * tbl/table.h: Remove keep member.
6344 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6345 SECTION_RELEASE_MACRO, if there's not enough space before the next
6346 trap to output the diversion, call T# ourselves, set
6347 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6348 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6349 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6350 vertical position and return to it before turning traps on again.
6352 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6354 * troff/node.c, troff/node.h: In classes derived from node,
6355 replace prev_char_width method by last_char_node method.
6356 * troff/env.c (environment::get_prev_char_width): Use
6357 node::last_char_node rather than node::get_prev_char_width.
6359 * Makefile: Added comment about -fno-inline on 68030-based
6362 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6363 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6364 expressions using sizeof to int.
6365 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6367 * macros/tmac.e (TS): Don't move @f back past the current
6370 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6372 * ps/ps.c (main): Buffer stderr.
6373 * dvi/dvi.c (main): Likewise.
6374 * tty/tty.c (main): Likewise.
6376 * ps/ps.c (ps_printer::do_import): Improve error handling.
6378 * troff/input.c (abort_request): Use asciify.
6380 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6381 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6382 type of first argument int rather than char. This works around a
6383 bug on the 68030 based Apollo using g++ 1.37.1.
6385 * tbl/table.h (class table): Add `keep' member.
6386 * tbl/table.c (table::table): Initialize `keep'.
6387 (table::add_vertical_rule): Set `keep' to 1.
6388 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6389 (table::do_bottom): Likewise for table release macro.
6390 (table::do_row): Emit section keep macro even if the row is 0.
6392 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6394 * macros/tmac.e (@C): Preserve the font family across the change
6397 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6399 * lib/font.c: Initialize font::hor and font::vert to 1.
6400 (font::load_desc): Check the values of font::hor and font::vert.
6402 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6403 be included in a C compilation.
6404 (iftoa): Use INT_DIGITS. Include lib.h.
6406 (as_string): Likewise.
6407 * tbl/table.c: Removed definition of INT_DIGITS.
6408 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6409 * troff/input.c (input_input_requests): Likewise.
6410 * ps/ps.c (make_encoding_name): Likewise.
6411 (ps_printer::set_style): Likewise.
6412 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6414 * tty/devascii/R.proto: Map fm onto '.
6415 * tty/devlatin1/R.proto: Likewise.
6417 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6419 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6420 argument to \w is at a different input level.
6422 * tbl/table.c (table::init_output): Define a new macro
6423 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6424 transparently outputs itself.
6425 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6427 (table::do_row): Likewise.
6429 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6430 TRANSPARENT_STRING_NAME.
6432 * tbl/table.c (table::init_output): In the table release macro
6433 print an error message and don't produce any output if after
6434 issuing the need request the table still will not fit. Also
6435 remove the diversion after bringing it back.
6437 * tbl/table.c (table::init_output): Define a new macro
6438 REPEATED_MARK_MACRO, like mk but if in a diversion also
6439 transparently outputs itself.
6440 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6441 is necessary because .TH might not call .T#.
6442 (table::do_top): Likewise TOP_REG.
6443 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6444 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6445 table header might contain just the two top rules.
6447 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6449 * troff/div.c: Implement new request `ptr' to print all traps.
6451 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6452 init_string_env_reg.
6453 * troff/env.c (class tab_reg): Deleted.
6455 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6457 * troff/div.c: New number register .pn returns the number of the
6458 next page as set by the pn request.
6460 * macros/tmac.an: Redid headers and footers. Number each manual
6461 entry starting from 1 unless \nC is > 0, like Sun. Added an
6462 optional 5th argument to .TH which specifies the manual name and
6463 appears in the center of the header. Understand the X, P and D
6466 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6468 * troff/env.c (init_env_requests): New number register `.lt' to
6469 return the title length.
6471 * troff/node.h (class transparent_dummy_node): New class.
6472 * troff/node.c (class transparent_dummy_node): Provide member
6474 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6477 * troff/input.c (token::next): New escape sequence \).
6478 * troff/input.c (get_copy): Recognize \) in copy mode.
6480 * troff/input.c (input_stack::clear): New function.
6481 * troff/input.c (exit_request): Use input_stack::clear.
6483 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6484 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6486 * troff/env.c: Move set_page_character to input.c. Move
6487 page_character to input.c also.
6488 * troff/env.c (title): Split off the reading of the parts of the
6489 title into read_title_parts.
6490 * troff/input.c (read_title_parts): New function. Check the
6491 input_level when testing whether a token matches the delimiter.
6493 * troff/input.c (exit_request): New function.
6494 * troff/input.c (init_input_requests): Bind ex request to
6495 exit_request rather than exit_groff.
6497 * troff/input.c (exit_groff): Call tok.next() before
6498 process_input_stack().
6500 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6502 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6503 * troff/env.h: ditto.
6504 * troff/input.c: ditto.
6506 * troff/env.c (environment::is_empty): Test pending_lines.
6508 * troff/env.c (environment::have_pending_lines): Removed.
6510 * troff/input.c: Add request to flush pending lines from the
6513 * troff/env.c, troff/env.h: Add automatic widow control feature.
6515 * troff/input.c (exit_groff): Do process_input_stack() after
6516 do_break() but before setting exit_flag to 2.
6518 * troff/input.c: Remove FLUSH_PENDING_LINES and
6519 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6520 environment after END_TRAP token seen, but only if there aren't
6521 any more traps still unfinished.
6522 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6524 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6526 * troff/env.c: Rename the `retain_size' member of class
6527 pending_output_line to `no_fill'.
6529 * troff/env.c (title): When the line is output, make the
6530 retain_size argument !fill.
6532 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6533 * troff/node.c (space_node::get_breakpoints),
6534 (dbreak_node::get_breakpoints): Fill this in.
6535 * troff/env.c: Allow specification of maximum number of
6536 consecutive hyphenated lines.
6538 * troff/env.c (environment::is_empty): Add test for !current_tab.
6540 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6542 * troff/env.c (environment::hyphenate_line): Don't completely give
6543 up if the word is not to be hyphenated; continue so that breaks
6544 can be made at break_char_node's.
6546 * lib/lib.h: Only define INT_MAX if it's not already defined;
6547 undef INT_MIN if it's already defined.
6549 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6551 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6552 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6555 * macros/tmac.an (an-header): Set no-space mode.
6557 * macros/tmac.an (TH): Start a new page if necessary.
6559 * Started using ChangeLog at version 0.4.
6562 version-control: never