1 2000-05-16 Werner LEMBERG <wl@gnu.org>
3 * FDL: New file (the Free Documentation License version 1.1).
5 * doc/groff.texinfo: Added many start-up values for gtroff.
6 Some structural improvements of the source code.
8 2000-05-15 Werner LEMBERG <wl@gnu.org>
10 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11 * src/roff/troff/troff.man: Added info about troffrc-end.
13 2000-05-14 Werner LEMBERG <wl@gnu.org>
15 * Makefile.in (EXTRADIRS): Fix typos.
16 (dist): Handle deletion of old .tar.gz file correctly.
17 (DISTDIRS): Include all tty output devices.
19 * doc/groff.texinfo: Adding more cross references; countless other
22 2000-05-13 Werner LEMBERG <wl@gnu.org>
24 * MORE.STUFF: Added Robert Marks's utilities.
26 2000-05-12 Werner LEMBERG <wl@gnu.org>
28 Added win32 port contributed by Blake McBride
29 <blake@florida-software.com>.
31 * README.WIN32, win32-diffs: New files.
34 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
35 (tmove, tmove2): Added parentheses to avoid compiler warnings.
36 (change): Removed unused variables.
38 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
39 (savebounds): Changed return value from `int' to `void'.
40 * src/preproc/grn/hdb.cc: Ditto.
42 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
43 final backslash in comment to avoid compiler warning.
45 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
47 * doc/groff.texinfo: More fixes.
49 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
51 * tmac/tmac.doc: Documentation fix.
53 2000-05-11 Werner LEMBERG <wl@gnu.org>
55 * doc/groff.texinfo: Reading the source code shows up a lot of
56 omissions and incorrect data... More conversion to @Deffn macros.
58 2000-05-10 Werner LEMBERG <wl@gnu.org>
60 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
63 * src/roff/troff/request.h: Removing unused `no_break_flag'.
65 2000-05-09 Werner LEMBERG <wl@gnu.org>
67 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
70 * doc/groff.texinfo: Extended history section. More conversion to
71 @Deffn macros. More .tr documentation.
73 2000-05-07 Werner LEMBERG <wl@gnu.org>
75 * doc/groff.texinfo: Completed tab section. Added info about
78 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
80 * PROBLEMS: Describe configure script fix for OS/390 Unix.
82 2000-05-05 Werner LEMBERG <wl@gnu.org>
84 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
88 * man/troff.man: Minor optical improvements.
90 2000-05-03 Werner LEMBERG <wl@gnu.org>
92 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
94 * font/*/*: Implement it.
95 * man/groff_char.man, NEWS: Document it.
97 2000-05-02 Werner LEMBERG <wl@gnu.org>
99 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
101 * NEWS: Document the three new man pages.
103 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
104 * configure: Updated.
106 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
108 2000-05-01 Werner LEMBERG <wl@gnu.org>
110 Added grap support to grog.
112 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
113 * src/roff/grog/grog.man: Document it.
115 * doc/groff.texinfo, NEWS: Add info about grap support.
117 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
118 (with slight fixes by me).
120 * tmac/groff_tmac.man: New file documenting tmac mechanism.
121 * tmac/Makefile.sub: Add groff_tmac.man.
122 * man/roff.man: New file giving overview of roff system.
123 * man/troff.man: A short reference of troff.
124 * man/Makefile.sub: Add roff.man and troff.man.
126 2000-04-30 Werner LEMBERG <wl@gnu.org>
128 Added grap support to groff.
130 * src/roff/groff/groff.cc: Implement it.
131 * src/roff/groff/groff.man: Document it.
133 * src/devices/grotty/grotty.man: Add cp1047 device.
134 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
136 * src/roff/groff/groff.man: Ditto.
137 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
138 * doc/groff.texinfo: Ditto.
140 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
143 2000-04-29 Werner LEMBERG <wl@gnu.org>
145 * man/groff_char.man: Add `pc' glyph.
146 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
147 * tmac/tmac.tty: Add `pc' glyph.
148 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
149 we use cp1047 output device.
151 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
152 there are still hardcoded latin1->unicode values in utf8's font
154 * configure: Updated.
155 * NEWS: Minor clarification. Updated.
157 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
160 2000-04-28 Werner LEMBERG <wl@gnu.org>
162 Adding EBCDIC code page 1047.
164 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
165 font/devcp1047/DESC.proto: New files.
167 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
168 either ascii/latin1 or cp1047.
169 * Makefile.in: Use it.
170 * configure: Updated.
172 Replacing and/or adding `md' (mathdot) glyph with `pc'
173 (periodcentered) in all text fonts.
175 * font/*/*: Change it.
177 2000-04-27 Werner LEMBERG <wl@gnu.org>
179 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
181 * configure.in: Add check for strings.h.
182 * src/include/driver.h: Use HAVE_STRINGS_H.
183 * src/devices/grolbp/lpb.cc: Remove string.h.
185 * src/include/groff-getopt.h: New file. It will be used instead of
186 getopt.h (to be included in lib.h) to avoid endless problems with
188 * src/include/lib.h: Use groff-getopt.h.
189 * src/include/Makefile.sub: Updated.
191 * configure: Updated.
192 * Makefile.in: Updated.
194 * NEWS: Mention EBCDIC support.
196 2000-04-26 Werner LEMBERG <wl@gnu.org>
198 * TODO: Some additions.
200 2000-04-25 Werner LEMBERG <wl@gnu.org>
202 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
205 2000-04-23 Werner LEMBERG <wl@gnu.org>
207 * src/roff/troff/troff.man: Minor fixes.
209 2000-04-22 Werner LEMBERG <wl@gnu.org>
211 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
212 `.T' string register and the incompatible definition of the `.T'
213 number register (compared to Unix troff).
215 * man/groff_char.man: Add some missing characters.
216 * font/devutf8/NOTES: Update.
218 2000-04-21 Werner LEMBERG <wl@gnu.org>
220 * src/include/htmlindicate.h, src/include/lib.h,
221 src/include/posix.h: Fix copyright.
223 * src/include/Makefile.sub: Update.
225 2000-04-20 Werner LEMBERG <wl@gnu.org>
227 * src/roff/troff/input.cc (input_char_description): Removing
228 superfluous space char.
230 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
232 * doc/groff.texinfo: Document EBCDIC.
234 2000-04-19 Werner LEMBERG <wl@gnu.org>
236 Introducing `shc' as the glyph name for the soft hyphen character.
238 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
239 font/devlatin1/R.proto: Use it.
243 2000-04-18 Werner LEMBERG <wl@gnu.org>
245 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
246 dependency on ASCII order.
248 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
250 * src/libs/libgroff/illegal.c: Added EBCDIC table.
251 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
253 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
254 to increase portability.
256 2000-04-15 Werner LEMBERG <wl@gnu.org>
258 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
259 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
260 the generic `\n' if under OS/390 Unix.
262 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
264 * configure: Regenerated.
266 2000-04-14 Werner LEMBERG <wl@gnu.org>
268 * doc/groff.texinfo: More conversions to @Deffn.
270 2000-04-12 Werner LEMBERG <wl@gnu.org>
272 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
275 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
277 2000-04-10 Werner LEMBERG <wl@gnu.org>
279 * doc/groff.texinfo: More conversions to @Deffn.
281 2000-04-08 Werner LEMBERG <wl@gnu.org>
283 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
284 Updated to latest version (glibc 2.1.3).
286 2000-04-07 Werner LEMBERG <wl@gnu.org>
288 * doc/Makefile (clean): Include more index files.
289 Add rule texinfo->dvi.
291 2000-04-05 Werner LEMBERG <wl@gnu.org>
293 * doc/groff.texinfo: Added new index `op' for operators. More
294 info on end of sentence characters. More use of @Deffn.
296 2000-03-30 Werner LEMBERG <wl@gnu.org>
298 * */*.man: Adding a note that a whitespace can be inserted between
299 a command line option and its parameter -- we are using GNU getopt.
301 * src/roff/groff/groff.man: Add example of `-m mandoc'.
303 2000-03-28 Werner LEMBERG <wl@gnu.org>
305 Correct anachronism of calling the man macro file with `-man'
306 instead of `-m man' etc.
308 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
309 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
312 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
316 * doc/groff.texinfo: Updated.
318 * tmac/groff_man.man: Copyright added.
320 2000-03-27 Werner LEMBERG <wl@gnu.org>
322 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
323 typeset the request resp. escape name with a tt font -- due to a
324 bug in texinfo.tex it is necessary to use the `-e' switch with
327 Improving info about usage of groff units.
331 2000-03-20 Werner LEMBERG <wl@gnu.org>
333 * doc/groff.texinfo: Added section about man macro package
334 (I've basically taken groff_man.man). Introducing new indices `ma'
335 for macros/strings and `gl' for glyph names. Other minor fixes.
337 * tmac/groff_man.man: Fixed some typos.
339 2000-03-19 Werner LEMBERG <wl@gnu.org>
341 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
344 * doc/texinfo.tex: New file.
346 2000-03-18 Werner LEMBERG <wl@gnu.org>
348 * doc/groff.texinfo: Improved section on number registers. Other
351 2000-03-16 Werner LEMBERG <wl@gnu.org>
353 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
356 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
357 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
358 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
359 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
361 * src/preproc/grn/grn.man: Better synopsis; added copyright.
363 * src/roff/grog/grog.man: Updated copyright date.
365 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
367 * configure.in: Added test for strdup.
369 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
372 Replaced dynamic allocation of arrays `[...]' with `new' operator.
376 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
378 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
380 2000-03-11 Werner LEMBERG <wl@gnu.org>
382 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
384 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
385 * src/include/lib.h: Remove some spaces.
387 2000-03-10 Werner LEMBERG <wl@gnu.org>
389 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
390 initializers from arguments (some compilers don't like this).
392 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
394 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
395 used by pic and eqn to tell grohtml where the graphic regions start
397 * src/libs/libgroff/Makefile.sub: Use it.
398 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
399 graphic_start() and graphic_end() from htmlindicate.cc.
401 2000-03-09 Werner LEMBERG <wl@gnu.org>
403 * tmac/tmac.safer: Will now work correctly in compatibility mode.
404 * tmac/groff_man.man: More fixes.
406 2000-03-08 Werner LEMBERG <wl@gnu.org>
408 * doc/Makefile: Added texput.log to the `clean' target.
409 * doc/groff.texinfo: Added info about delimiters for escapes.
411 2000-03-08 Bernd Warken <bwarken@mayn.de>
413 * src/preproc/pic/pic.man: Add info on conversion of pic images to
414 other graphic formats.
416 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
418 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
419 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
420 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
423 2000-03-07 Werner LEMBERG <wl@gnu.org>
425 * doc/groff.texinfo: Spelling fixes.
427 2000-03-06 Werner LEMBERG <wl@gnu.org>
429 * tmac/groff_man.man: Completely revised to cover everything in
432 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
434 * src/roff/troff/env.cc (environment_copy): Improve error message and
436 * src/roff/troff/TODO: Updated.
438 * doc/Makefile: Bug fixes -- this is still provisional, though...
440 * tmac/eqnrc: Small fixes.
442 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
444 Adding a request `evc' to copy environments.
446 * src/roff/troff/env.cc (environment::copy, environment_copy):
448 * src/roff/troff/env.h: Add prototype.
450 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
452 Adding strsep() -- Solaris 8 doesn't have it.
454 * configure.in: Test it.
455 * src/devices/grolbp/lbp.cc: Add code.
457 2000-03-05 Werner LEMBERG <wl@gnu.org>
459 * src/roff/troff/div.cc (macro_diversion::output,
460 top_level_diversion::output): Fixing an incompatibility with
461 original troff: \x'0' updates the .a register also. Thanks to
462 <Andries.Brouwer@cwi.nl> for pointing this out.
463 * doc/groff.texinfo: Document it.
465 * Makefile.in: Create Makefile.dep if necessary before calling the
466 submake process to avoid warning about nonexistent file.
468 * NEWS, PROJECTS: Updated.
470 2000-03-04 Werner LEMBERG <wl@gnu.org>
472 * tmac/troffrc: Add tmac.lbp.
474 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
476 * tmac/tmac.lbp: New file.
477 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
480 2000-03-03 Werner LEMBERG <wl@gnu.org>
482 * Makefile.in: Fixing $(subdir).
484 * README, NEWS: Small fixes.
486 * test-groff: Adding path to grolbp.
488 * configure.in: The (new) file src/xditview/Imakefile.in will be
489 also configured -- it is now possible to build gxditview in a
490 directory different from $srcdir.
492 2000-03-02 Blake McBride <blake@florida-software.com>
494 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
496 * MORE.STUFF: Added website of bell labs and info about plot2dev.
498 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
500 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
503 2000-02-29 Werner LEMBERG <wl@gnu.org>
505 Adding GNU getopt to the groff distribution.
507 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
509 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
510 * aclocal.a4: Remove GROFF_GETOPT function.
511 * configure.in, Makefile.in, PROBLEMS: Update.
512 * src/include/lib.h: Replace getopt tests with getopt.h.
513 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
515 * doc/groff.texinfo: Further checking/updating. Adding more index
518 * man/groff_out.man: Fix nroff mode activation (for emacs).
519 * man/groff_font.man: Add missing ligature.
521 2000-02-28 Werner LEMBERG <wl@gnu.org>
523 * doc/groff.texinfo: Further checking/updating. Adding more index
526 * src/devices/grolbp/grolbp.man: Added a comment line at the
527 beginning of the file (similar to shell scripts) which indicates
528 that `tbl' should be used as a preprocessor.
530 2000-02-27 Blake McBride <blake@florida-software.com>
532 Adapting groff to MS Visual C++ 6.0 compiler (tested with
533 Windows NT 4.0). Uses _MSC_VER define where necessary.
535 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
536 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
537 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
538 src/include/lib.h, src/libs/libgroff/errarg.cc,
539 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
540 src/preproc/refer/label.y, src/preproc/refer/label.cc,
541 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
542 src/roff/troff/div.cc, src/roff/troff/env.cc,
543 src/roff/troff/input.cc, src/roff/troff/node.cc,
544 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
545 if_to_a() to avoid name clashes.
546 * src/include/posix.h: Don't use unistd.h.
547 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
548 clause for integrating non-Unix xtmpfile() code.
549 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
550 structure; use "rt" for popen() in pipe_source(); add getpid()
552 * src/roff/troff/node.cc: Use special versions of popen() in
553 real_output_file() and pclose() in ~real_output_file().
555 2000-02-27 Werner LEMBERG <wl@gnu.org>
557 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
558 LBP-8 series laser printers). This code has been contributed by
559 Francisco Andres Verdu <pandres@dragonet.es>.
561 * src/devices/grolbp/*: The grolbp output device.
562 * font/devlpb/*: The font description files.
563 * Makefile.in: Add grolpb and devlbp subdirectories.
565 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
566 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
569 * doc/groff.texinfo: Further checking/updating. Adding more index
574 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
576 * man/groff_font.man: Adding info about obsolete DESC keywords.
577 * src/devices/grolj4/grolj4.man: Documenting additional DESC
580 2000-02-26 Werner LEMBERG <wl@gnu.org>
582 * src/preproc/grn/grn.man: Added info about the gremlin file format
583 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
585 2000-02-25 Werner LEMBERG <wl@gnu.org>
587 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
588 friends to be non-integer.
590 * src/preproc/grn/grn.man: Document it.
592 * doc/groff.texinfo: Further checking/updating. Adding more index
595 2000-02-24 Werner LEMBERG <wl@gnu.org>
597 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
598 line thicknesses to be integer multiples of this value.
600 * src/preproc/grn/grn.man: Commenting out the -s option -- the
601 corresponding code doesn't work (yet).
603 * doc/groff.texinfo: Further checking/updating. Adding more index
606 2000-02-23 Werner LEMBERG <wl@gnu.org>
608 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
609 specify line thickness instead of base units. The new default
610 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
611 thick lines respectively.
613 Removed unused variable `prevval'.
615 * src/preproc/grn/grn.man: Updated.
617 2000-02-22 Werner LEMBERG <wl@gnu.org>
619 * src/preproc/grn/main.cc: Slight formatting.
621 * src/roff/groff/groff.man: Formatting fix.
622 * src/preproc/grn/grn.man: Ditto.
624 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
626 * doc/groff.texinfo: Further checking/updating.
628 2000-02-21 Werner LEMBERG <wl@gnu.org>
630 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
632 * test-groff: Added grn subdir to path.
634 * doc/groff.texinfo: Some restructing and other small improvements.
636 * src/roff/groff/groff.cc (help): Fixed info string.
638 2000-02-20 Werner LEMBERG <wl@gnu.org>
640 * doc/meref.me: Fix description of .GS request.
642 * src/roff/troff/troff.man: Fixing typo.
644 Adding the `grn' preprocessor for gremlin graphic files.
646 * src/preproc/grn/*: This is the Berkeley distribution written by
647 David Slattengren and Barry Roitblat, adapted to groff by Daniel
648 Senderowicz and Werner Lemberg.
650 * doc/grnexampl.{me,g}: A sample for grn.
652 * Makefile.in: Added subdirectory entry for grn.
654 * src/roff/groff/groff.cc: Added support for grn. It can be now
655 called with the switch `-g'.
657 * src/roff/groff/groff.man: Updated.
659 * src/roff/grog/grog.{man,pl,sh}: Updated.
663 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
665 * src/include/lib.h: Added xtmptemplate and made xtmpfile
666 parametrically polymorphic.
668 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
669 and the alterations to xtmpfile.
670 xtmpfile can be requested to return the filename created
671 and asked not to unlink the temp file. The default behaviour
672 if parameters are absent is exactly the same as before.
674 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
676 A new request `length' is available which returns the length of a
677 string in a number register:
679 * src/roff/troff/input.cc (length_macro): Implement it.
680 * src/roff/troff/input.cc (init_input_requests): Register it.
682 2000-02-11 Werner LEMBERG <wl@gnu.org>
684 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
685 of the `substring' request.
687 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
690 * src/roff/troff/TODO, NEWS: Updated.
692 2000-02-09 Werner LEMBERG <wl@gnu.org>
694 * src/roff/groff/groff.man: Added an example.
696 2000-02-06 Werner LEMBERG <wl@gnu.org>
698 I've considerably modified the directory structure of the
699 distribution to get a more vertical layout. For example, the number
700 of top level directories has been reduced from 42 to 6.
702 As a consequence, many changes, especially to the makefiles, were
705 * The makefile variables `top_builddir' and `top_srcdir' have been
706 introduced. Virtually all relative paths have been replaced with
707 absolute ones using these two variables.
709 * Dependencies (in the files `Makefile.dep') are no longer part of
710 the distribution. Instead, they are created during a `make install'
711 in the build directory.
713 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
714 make `top_srcdir' and `top_builddir' absolute.
718 * Man pages no depend on the files `VERSION' and `REVISION'.
720 * The added shell script `mkinstalldirs' will replace `mkdir' in
723 * VERSION: Version number increased to 1.16.
725 2000-02-04 Werner LEMBERG <wl@gnu.org>
727 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
729 * Makefile.in: Removed $(tmac_m) since it is no longer needed
730 (after an update of the mm stuff).
732 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
734 2000-02-03 Werner LEMBERG <wl@gnu.org>
736 The .psbb request will now also accept Mac PS images (i.e. using LF
737 as the EOL character).
739 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
740 (with slight modifications).
741 * troff/input.cc (do_ps_file): Use it.
743 * test-groff: Add grohtml and grolj4 output devices to PATH.
745 2000-01-30 Werner LEMBERG <wl@gnu.org>
747 * NEWS, MORE.STUFF: Updated.
749 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
751 Add the `srand' command to pic.
753 * pic/lex.cc, pic/pic.y: Implement it.
754 * pic/pic.man: Document it.
755 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
757 2000-01-30 Werner LEMBERG <wl@gnu.org>
759 Add a new request `.psbb'. This does exactly what the external
760 program psbb did. It scans a PostScript image file for a
761 %%BoundingBox comment and extracts the bounding box values (in
762 PostScript units) which are then stored in the four new (read-only)
763 number registers `llx', `lly', `urx', and `ury'.
765 This will allow the usage of the .PSPIC macro without worrying
766 about unsafe behaviour of groff, i.e., it will work without the
767 `-U' switch of groff.
769 * troff/input.cc: Implement it.
770 * tmac/tmac.pspic: Use it.
771 * troff/troff.man, grops/grops.man, NEWS: Document it.
772 * psbb/*, Makefile.in: Remove it since it is no longer needed.
774 This is bloody C code simply adapted from psbb.c! Any improvements
777 2000-01-29 Werner LEMBERG <wl@gnu.org>
779 * man/groff_font.man: Minor clarifications.
783 2000-01-28 Werner LEMBERG <wl@gnu.org>
785 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
787 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
789 * man/groff_font.man: Brought up to date regarding tcommand
791 * libgroff/font.cc: Handle everything after `--' as a comment
793 * devps/*: Added comment delimiter inside devps font files.
795 2000-01-28 Werner LEMBERG <wl@gnu.org>
797 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
798 \fC...\fP (which now works as expected).
800 * troff/troff.man: Fix typo.
802 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
804 Completed the pass_filenames implementation in troff.
806 * libdriver/input.cc: Will read the new `F' tcommand.
807 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
808 * troff/input.cc: Use it.
810 2000-01-26 Werner LEMBERG <wl@gnu.org>
812 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
813 font will now be updated even if an invalid font is selected.
815 2000-01-24 Werner LEMBERG <wl@gnu.org>
817 * doc/homepage.ms: Updated for new tmac.arkup.
819 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
821 * tmac/tmac.arkup: Cleanup.
823 Added `\&' to .HTML macro to `leave vertical mode', so to say.
825 Removed obsolete .LINK macro completely.
827 The macros .URL, .FTP, and .MAILTO now accept a third argument which
828 will be immediately appended to the second argument (to be used with
829 punctuation, for example).
831 Disabled .CDFTP macro temporarily for security reasons.
833 * tmac/groff_markup.man: Complete revision for latest changes in
834 tmac.arkup -- note that it does not yet format correctly with
837 2000-01-23 Bruno Haible <haible@clisp.cons.org>
839 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
840 * devutf8/R.proto: Add mappings for wp, lh, rh.
841 * devutf8/NOTES: Updated.
843 2000-01-23 Werner LEMBERG <wl@gnu.org>
845 * doc/groff.texinfo: Updated version/copyright info.
847 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
849 Added support for two new directives in device descriptions:
850 `pass_filenames' (to pass the input file name to the output device)
851 and `use_charnames_in_special' (to support e.g. accented characters
854 * include/font.h, troff/charinfo.h: Declare it.
856 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
858 * devhtml/DESC: Use it.
860 * troff/input.cc: New function encoded_char.
862 * troff/token.h: Add test for `specialness'.
864 2000-01-21 Werner LEMBERG <wl@gnu.org>
866 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
867 mistake from the list of files to be installed.
869 2000-01-18 Werner LEMBERG <wl@gnu.org>
871 * README: Added info how to apply patches.
873 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
875 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
877 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
879 * troff/input.cc: Add support for troffrc-end.
881 * tbl/main.cc: Altered to issue table-start and table-end special
882 characters if using the html device.
884 * devhtml/*: Modified font files to incorporate html encoding of
887 * tmac/groff_markup.man: New file documenting tmac.arkup.
889 * tmac/troffrc-end: New file. This is invoked after all user
890 specified macros. Currently used by the html device to include
891 tmac.html. Thus no need for users to specify -mhtml anymore.
893 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
894 (MAN7): Add groff_markup.man.
896 * tmac/tmac.an, tmac/tmac.html: Small html updates.
898 * tmac/troffrc: tmac.arkup will now be called for the html device.
900 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
901 extra device specific information about fonts.
903 * doc/homepage.ms: New file. It is an example how an HTML home page
904 could look like with grohtml.
906 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
908 2000-01-12 Bruno Haible <haible@clisp.cons.org>
910 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
913 * devutf8/NOTES: Updated.
915 2000-01-08 Bruno Haible <haible@clisp.cons.org>
917 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
918 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
919 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
920 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
921 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
922 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
923 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
924 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
927 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
929 2000-01-12 Fabrizio Polacco <fab@prosa.it>
931 grolj4: Paper size will be searched case-insensitively.
933 * include/lib.h: Add check for strcasecmp().
934 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
935 * configure.in: Check for strcasecmp().
937 2000-01-11 Werner LEMBERG <wl@gnu.org>
939 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
942 2000-01-10 Werner LEMBERG <wl@gnu.org>
944 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
947 Add a new read-only register, `.Y', which contains the groff
950 * troff/input.cc (init_input_requests): Define it.
951 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
952 * doc/groff.texinfo, troff/troff.man: Document it.
954 * libgroff/Makefile.sub (version.cc): Add definition of
955 `Version_string[]', consisting of `<major>.<minor>.<revision>'
956 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
957 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
958 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
959 troff/input.cc, pfbtops/pfbtops.c: Use it.
961 2000-01-10 Fabrizio Polacco <fab@prosa.it>
963 Add a revision scheme to the groff package.
965 * REVISION: New file.
966 * libgroff/Makefile.sub (version.cc): Use it to define
968 * grops/psrm.cc: Use revision_string (converted to an unsigned
969 integer) in constructor of resource_manager.
971 2000-01-10 Bruno Haible <haible@clisp.cons.org>
973 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
975 * Makefile.in (DEVDIRS): Add devutf8.
976 * grotty/tty.cc: Include device.h.
977 (glyph): Change type of `code' to `unsigned int'.
978 (tty_printer): New field is_utf8. Constructor takes device argument.
979 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
980 (tty_printer::add_char): Change type of first arg to `unsigned int'.
981 (tty_printer::put_char): New function.
982 (tty_printer::end_page): Use put_char() instead of ::putchar().
983 (make_printer): Pass device to tty_printer constructor.
984 * nroff.sh: Determine default device by calling 'locale'. As a
985 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
986 Recognize UTF-8 locales.
987 * tmac/eqnrc: Recognize utf8 like latin1.
988 * tmac/troffrc: Device utf8 needs tmac.tty.
990 2000-01-07 Werner LEMBERG <wl@gnu.org>
992 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
994 2000-01-07 Paul Eggert <eggert@twinsun.com>
996 Add a new predefined writeable number register, `year',
997 which contains the current year.
999 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1000 * tmac/tmac.s: Use it.
1001 * troff/input.cc (init_registers): Initialize it.
1003 2000-01-06 Werner LEMBERG <wl@gnu.org>
1005 * PROBLEMS: Fixed typo.
1007 2000-01-04 Paul Eggert <eggert@twinsun.com>
1009 * PROBLEMS: Add Y2k advice for the yr number register.
1011 2000-01-03 Paul Eggert <eggert@twinsun.com>
1013 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1015 2000-01-02 Werner LEMBERG <wl@gnu.org>
1017 * tmac/tmac.arkup: Slight modification of macros to provide better
1018 appearance for non-HTML formats.
1020 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
1022 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1023 does not automatically translate to malloc(n) on all OSes
1024 (e.g., SunOS) so do it explicitly. Also, check the returned
1027 2000-01-01 Werner LEMBERG <wl@gnu.org>
1029 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
1031 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1032 expects this variable
1034 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
1036 * doc/Makefile: Added instructions to create HTML and text
1037 versions of some files.
1039 1999-12-31 Werner LEMBERG <wl@gnu.org>
1041 * Updated INSTALL.gen.
1043 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1044 better resp. correctly with non-HTML devices.
1046 Version 1.15 released
1047 =====================
1049 1999-12-28 Werner LEMBERG <wl@gnu.org>
1051 * NEWS, VERSION: Changed to 1.15
1053 1999-12-27 Paul Eggert <eggert@twinsun.com>
1055 * nroff/nroff.man: -S is safer, not safe.
1057 * groff/groff.cc (main): Use `safer', not `safe', in variable
1058 names. This does not change the behavior.
1060 * troff/input.cc (main): Likewise.
1062 * nroff/nroff.sh: Likewise.
1064 * troff/input.cc (prepend_string): New function.
1065 (main): Prepend -msafer, so that we check macro libraries for
1068 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1070 Version 1.14 released
1071 =====================
1073 1999-12-26 Werner LEMBERG <wl@gnu.org>
1075 * NEWS, VERSION: Changed to 1.14.
1077 1999-12-24 Werner LEMBERG <wl@gnu.org>
1079 * refer/refer.cc: Fixing the last fix.
1081 Version 1.13 released
1082 =====================
1084 1999-12-23 Werner LEMBERG <wl@gnu.org>
1086 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1091 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1093 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1094 document conventions, the version number must be a real.
1096 Version 1.12.1 released
1097 =======================
1099 1999-12-22 Werner LEMBERG <wl@gnu.org>
1101 * VERSION: Changed to 1.12.1.
1103 1999-12-22 Alan Rooks <arooks@istar.ca>
1105 * refer/refer.cc (do_file): Slight modification to satisfy the
1106 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1109 1999-12-20 Werner LEMBERG <wl@gnu.org>
1111 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1114 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1115 list of unsafe requests.
1117 * pic/pic.man: Fixed a typo.
1119 * man/groff_out.man: Fixed a typo.
1121 1999-12-18 Werner LEMBERG <wl@gnu.org>
1123 * Makefile.in: Doc fixes.
1125 1999-12-17 Fabrizio Polacco <fab@prosa.it>
1127 * groff/groff.cc: Missing `U' option added to getopt().
1129 * troff/troff.man: Missing `U' option added to synopsis.
1131 Version 1.12 released
1132 =====================
1134 1999-12-14 Werner LEMBERG <wl@gnu.org>
1136 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1139 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1140 with the more appropriate terms `safer' and `unsafe'.
1142 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1143 sys_nerr and sys_errlist[].
1145 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1147 * pic/pic.y, pic/pic.cc: Added check for fmod().
1149 1999-12-13 Werner LEMBERG <wl@gnu.org>
1151 * VERSION: Changed to 1.12.
1153 Here some patches from various sources; most of them taken from
1154 the Debian distribution.
1156 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1157 tmac/Makefile.sub: New files copied directly from the NetBSD
1158 distribution. Probably, some additional adaptation later on is
1161 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1164 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1165 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1166 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
1167 (`-S') is now the default.
1169 * README, NEWS: Updated.
1171 1999-12-09 Werner LEMBERG <wl@gnu.org>
1173 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1175 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1177 1999-12-06 Werner LEMBERG <wl@gnu.org>
1179 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1180 grief than relief today. Additionally, it is against the GNU
1183 * configure: Recreated.
1185 1999-12-05 Werner LEMBERG <wl@gnu.org>
1187 * configure.in: Added GROFF_LIBM.
1189 * configure: Recreated.
1191 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1194 * Makefile.in: Added definition of $(LIBM).
1196 * Makefile.comm (LIBM): Removed.
1198 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1200 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
1202 * doc/Makefile: Added rule for generation pic.html.
1204 (clean): Files produced by grohtml will be removed also.
1206 * doc/pic.ms: Small fix.
1208 * tmac/tmac.html: Fixed suppression of headers.
1210 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
1212 * tmac/tmac.html: Fixing horizontal arrows.
1214 Turning off hyphenation.
1216 * tmac/tmac.an: Improved support for grohtml; better indentation,
1219 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
1221 * tmac/tmac.arkup: Added CDFTP macro
1223 * tmac/tmac.html: All headers are turned off for ms, me, and mm
1226 * tmac/troffrc: Some additions for HTML stuff.
1228 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
1230 * tmac/tmac.html: Small changes.
1232 1999-09-26 Werner LEMBERG <wl@gnu.org>
1234 * doc/groff.texinfo: Minor fixes.
1236 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
1238 * devhtml/TR: Changed spacewidth to 3.
1240 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1242 * tmac/tmac.html: Moved markup macros to tmap.arkup.
1244 * tmac/tmac.arkup: New file.
1246 * grohtml/ChangeLog: New file.
1248 1999-09-16 Werner LEMBERG <wl@gnu.org>
1250 * doc/groff.texinfo (Common Features): Added Copying chapter.
1251 Changed format to @smallbook.
1253 1999-09-15 Werner LEMBERG <wl@gnu.org>
1255 * NEWS: Added info about groff.texinfo.
1257 * doc/groff.texinfo: Will now compile (using texi2dvi) without
1260 1999-09-14 Werner LEMBERG <wl@gnu.org>
1262 * groff/groff.man: More updates.
1264 1999-09-13 Werner LEMBERG <wl@gnu.org>
1266 * doc/groff.texinfo: New file. This manual is still very
1267 rudimentary. It has been originally contributed by Trent
1268 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1271 * INSTALL: Added information about the `doc' subdir
1273 * troff/troff.man: Minor fixes.
1275 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1278 * troff/input.cc (usage): Added missing `-ffam' to usage message.
1280 * Makefile.in (dist): groff-$(version).tar.gz must be removed
1281 also, otherwise it is included itself in another call of `make
1284 * groff/groff.cc (synopsis): Removed superfluous space.
1286 * PROJECTS, PROBLEMS, NEWS: Updated.
1288 * xditview/Makefile: Removed.
1290 * VERSION: Updated to 1.12beta.
1292 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
1294 * README: Updated: Included documentation about CVS repository,
1295 mailing lists, and daily snapshots.
1297 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1299 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
1301 * tmac/tmac.an: If the tag didn't fit into the space that the
1302 macro `TP' specifies, the rest of the tag went into the space for
1305 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
1307 * grolj4/lj4.cc: Added duplex printing (option `-d').
1309 * grolj4/grolj4.man: Document duplex printing.
1311 1999-09-12 Werner LEMBERG <wl@gnu.org>
1313 * doc/Makefile (pic.ps): Fixed rule which caused problems with
1314 non-GNUish sed programs.
1316 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1319 * configure.in (LIBS): Added `-lc'
1321 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1323 * pic/tex.cc (solid_arc): Casting M_PI to double.
1325 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1327 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1328 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1329 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1331 * groff/groff_man.man: New file. This manual page was originally
1332 written for the Debian GNU/Linux system by Susan G. Kleinmann
1335 * eqn/list.cc (list_box::compute_metrics,
1336 list_box::compute_sublist_width): Removed variable declaration to
1337 avoid shadowing warnings.
1339 * grops/psrm.cc (resource_manager::process_file): Ditto.
1341 * tfmtodit/tfmtodit.cc (main): Ditto.
1343 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1344 to avoid shadowing warnings.
1346 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1347 shadowing loop variable.
1349 * groff/groff.man, troff/troff.man: Added doc about grohtml.
1351 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
1353 New grohtml frontend to convert groff input to html.
1355 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1357 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1359 * tmac/eqnrc: Added html device.
1361 * tmac/tmac.html: New file.
1363 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1364 (troff_output::start_picture, troff_output::finish_picture),
1365 tbl/main.cc (process_input_file):
1366 Surrounded output with `graphics_start' and `graphics_end' so that
1367 the html driver can identify non-text portions.
1369 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1370 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1371 grotty/tty.ps (tty_printer::set_char): Additional parameter
1374 * include/printer.h: Class printer: New function
1375 set_char_and_width; new variables (is_char_named, is_named_set,
1376 named_command, named_char_s, named_char_n) to hold information
1377 about named characters -- needed by the html driver.
1379 * libdriver/printer.cc (printer::set_ascii_char,
1380 printer::set_special_char): Use set_char_and_width.
1382 * devhtml/*: New device files for html driver.
1384 * grohtml/*: New driver grohtml.
1386 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
1388 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1391 1999-09-11 Luke Mewburn <lukem@netbsd.org>
1393 * libgroff/string.cc (search): Small fix to test against NULL
1396 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
1398 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1399 \b'abc') were stacked in reverse order when processed in a
1402 * troff/node.h: Added `*last' to struct `node' to make the above
1405 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1406 The default scale for the 'f' and 't' graphics functions were 'm'
1407 rather than 'u' (i.e., no scaling).
1409 1999-09-11 Peter Miller <peterm@jna.com.au>
1411 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1412 do_file), soelim/soelim.man: Added `-I file' option to soelim,
1413 defining include paths.
1415 * soelim/soelim.cc (include_path_append): New function.
1417 1999-09-11 Larry Jones <larry.jones@sdrc.com>
1419 * tbl/main.cc (process_options): Unix (at least Documenter's
1420 Workbench) tbl allows arbitrary non-alpha characters between
1423 1999-09-11 Paul Eggert <eggert@twinsun.com>
1425 Y2k fixes. Don't assume that the current year precedes 2000.
1427 * doc/meref.me: Add \n(y2, \n(y4.
1429 * tmac/doc-common (Yr): New number register.
1430 (Dd): Don't assume current year precedes 2000.
1432 * tmac/tmac.e (td): Likewise.
1433 (y2, y4): New number registers.
1435 * pic/pic.man: Update reference for pic paper to May, 1991
1438 1999-09-11 Werner LEMBERG <wl@gnu.org>
1440 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1441 Removed quotation marks which prevented correct expansion of
1444 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1446 1999-09-10 Werner LEMBERG <wl@gnu.org>
1448 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1451 * Removed configure.old.
1453 1999-08-31 Werner LEMBERG <wl@gnu.org>
1455 * VERSION: Updated to 1.11.1
1457 1999-05-27 Werner LEMBERG <wl@gnu.org>
1459 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1461 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1462 added quotations around $(tmac_wrap) to avoid syntax error if
1465 * configure: Newly generated using autoconf 2.13.
1467 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1469 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
1471 * README, PROJECTS, NEWS, INSTALL, VERSION,
1472 doc/Makefile. doc/pic.ms, groff/groff.man:
1473 Prepare for 1.11 release. No code changes.
1474 Documentation for pic added (doc/pic.ms).
1476 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
1478 * Version 1.10 released.
1480 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
1482 * afmtodit/afmtodit.pl: Avoid comment on first line.
1484 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
1486 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1487 * configure.in: Call it.
1489 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1490 (distfiles): Doesn't depend on config.log or config.cache.
1492 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
1494 * grog/grog.sh: Use print "" rather than print in END rule.
1496 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
1498 * tbl/main.cc (process_data): Don't give error for excess data
1499 entries that are comments.
1501 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
1503 * tbl/main.cc (process_data): Fix case where new for-scope rules
1504 silently change meaning of code.
1506 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
1508 * troff/env.cc (hyphenate): Loop over all consecutive sequences
1509 of non-zero hyphenation codes.
1511 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
1513 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1515 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
1517 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1519 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
1521 * tmac/tmac.andoc: Make it work in compatibility mode.
1523 * refer/token.h (token_info::is_range_sep): New function.
1524 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1525 * refer/ref.cc (reference::output): More sophisticated check for
1528 * devps/prologue.ps (MANUAL): New procedure.
1529 * grops/ps.cc (main): New -m option.
1530 (usage): Include -m.
1531 (ps_printer::~ps_printer): Implement -m.
1533 * aclocal.m4 (GROFF_G): New macro.
1534 * configure.in: Call it.
1535 * Makefile.in (g): Provided by configure.
1537 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1539 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
1542 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1543 (tmac_m, tmac_s): Deleted.
1544 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1545 tmac_s_prefix): New variables.
1546 (MDEFINES): Change accordingly.
1547 * Makefile.comm (.man.n): Use new TMAC_* variables.
1548 * configure.in (GROFF_TMAC): Call.
1549 * aclocal.m4 (GROFF_TMAC): Define.
1550 * tmac/Makefile.sub (stamp_wrap): New target.
1551 (install_data, uninstall_sub): Handle macro wrapping.
1553 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
1555 * tbl/main.cc (main): Ignore -T option.
1557 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
1559 * devlj4/generate/special.map: Add definition of \(nb.
1561 * tmac/tmac.dvi: Add definition of \(nb.
1563 * troff/dictionary.c (dictionary::dictionary): association::v gets
1564 initialized by association::association.
1566 * tmac/Makefile.sub: Avoid using temporary files when installing.
1568 * troff/env.cc (environment::set_font): Make bad font number a
1571 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1573 * Makefile.in (datadir): Use share rather than lib.
1575 * groff/groff.cc (basename): Rename to xbasename.
1577 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
1579 * Makefile (CCLIBS): Don't use.
1580 * Makefile.ccpg: Likewise.
1582 * acgroff.m4: Rename to...
1583 * aclocal.m4: Modify extensively for autoconf 2.
1584 * configure.in: Likewise.
1585 * Makefile.in: Likewise.
1587 * groff/pipeline.c (const): Declare as empty if __STDC__ not
1589 (xstrsignal): Check for definition of NSIG. Conditionalize
1590 on SYS_SIGLIST_DECLARED. Make return type const.
1592 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
1594 * troff/input.cc (interpolate_macro): Rephrase missing space
1597 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1599 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1600 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1601 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1602 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1603 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1604 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1605 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1606 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1607 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1608 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1609 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1612 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
1614 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1616 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1618 (macro_iterator::macro_iterator): Add additional argument.
1620 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
1622 * troff/div.cc (vertical_size::vertical_size): In place of integer
1623 specifying line spacing use cunits specifying post vertical
1625 (macro_diversion::output, top_level_diversion::output): Likewise.
1626 * troff/div.h: Change declarations accordingly.
1627 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1629 (pending_output_line::pending_output_line,
1630 pending_output_line::output, environment::output,
1631 environment::output_line, environment::output_title,
1632 environment::hyphenate_line): In place of
1633 integer specifying line spacing use cunits specifying post vertical
1635 (environment::environment): Add post_vertical_spacing and
1636 prev_post_vertical_spacing arguments.
1637 (environment::get_post_vertical_spacing): New function.
1638 (environment::total_post_vertical_spacing): New function.
1639 (environment::post_vertical_spacing): New function.
1640 (init_env_requests): Initialize pvs request and .pvs register.
1641 * troff/env.h: Change declarations.
1643 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1645 * tmac/tmac.pspic: Immediately remove the temporary file.
1647 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1649 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1650 height is specified.
1652 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1654 * tbl/table.c (struct vertical rule, class table_entry): Use int
1655 not short for start_row and end_row.
1657 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1659 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1661 (diverted_space_node::reread, process_input_stack): Call
1662 trapping_blank_line() rather than blank_line().
1663 (init_input_requests): Bind "blm" to blank_line_macro().
1665 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1667 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1669 * troff/env.cc (environment::possibly_break_line): Require that
1670 width total excluding width of final space node be greater than
1671 the target text length.
1673 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1675 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1677 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1679 * troff/node.cc (charinfo_node): New class.
1680 (glyph_node, composite_node): Derive from charinfo_node. Change
1681 member functions accordingly.
1683 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1685 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1687 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1689 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1691 * devps/generate/textmap (notsubset): Add.
1693 * tmac/tmac.a4: New file.
1695 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1697 * pic/main.cc (had_parse_error): New variable.
1698 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1700 (main): Return 1 if had_parse_error is true.
1702 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1704 * grolj4/lj4.cc (main): Avoid use of strtoul.
1706 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1708 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1709 iso_8859_1 or $LESSCHARSET is latin1.
1711 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1713 * hpftodit: New directory.
1714 * Makefile.in (CCPROGDIRS): Add hpftodit.
1715 * devlj4/generate: New directory.
1717 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1719 * configure.in: Don't use AC_VFORK.
1720 * groff/pipeline.c (run_pipeline): Use fork() always.
1722 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1724 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1726 * Makefile.in (CCPROGDIRS): Add grolj4.
1727 (DEVDIRS): Add devlj4.
1728 * grolj4, devlj4: New directories.
1729 * tmac/troffrc: Handle lj4.
1730 * tmac/tmac.lj4: New file.
1732 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1734 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1736 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1738 * troff/input.cc (do_if_request): At end of second string, switch
1739 environments before getting next token.
1741 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1743 * devps/psstrip.sed: Split rule that strips whitespace on either
1746 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1748 * troff/node.h (font_family::make_definition): Add return value to
1749 declaration. * troff/symbol.h (symbol::operator==,
1750 symbol::operator!=): Likewise.
1752 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1754 * groff/groff.cc (main, help, synopsis): Handle -S.
1755 (possible_command::insert_arg): New function.
1757 * tmac/tmac.safer: New file.
1758 * tmac/msafer.man: New file.
1759 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1761 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1763 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1764 * pic/pic.y (placeless_element): Avoid unsafe operations if
1765 `safer_flag' is set.
1766 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1768 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1770 * eqn/lex.cc (get_token): Put call to add_context() in block to
1771 work around Sun C++ 4.0 bug.
1773 * include/stringclass.h (operator +): Use ?: instead of `if' to
1774 work around Sun C++ 4.0 bug.
1776 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1778 * tbl/main.cc (process_format): Accept - as a synonym for the _
1781 * libbib/index.cc (minus_one): Don't declare as const.
1783 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1785 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1787 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1789 * troff/input.cc (write_macro_request): New function.
1790 (init_input_requests): Bind write_macro_request to writem.
1792 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1794 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1797 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1799 * tmac/tmac.s (@TS): Renamed from TS.
1800 (TS): Call LP then TS again.
1801 (cov*ab-init): Alias @TS to TS.
1803 * tmac/tmac.s: Allow QP or RS to initialize.
1805 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1806 Move initializations of PS and LL here.
1807 (par@init): Don't initialize HY. Avoid changing environment 0.
1808 (par*env-init): Don't all par@reset.
1810 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1812 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1814 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1816 * Makefile.in (MDEFINES): Add LDFLAGS.
1817 (LDFLAGS): Add definition line.
1819 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1821 * troff/input.cc (get_optional_char): Split off error check into...
1822 (check_missing_character): New function.
1823 * troff/token.h: Declare it.
1824 * troff/env.cc (margin_character): Don't call get_optional_char.
1825 Only call tok.next() after making the node.
1827 * include/lib.h (getopt): Make 2nd argument char *const *.
1829 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1831 * nroff/conftest.sh: Deleted.
1833 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1835 * pic/make-dos-dist: Deleted.
1837 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1839 * devps/psstrip.sed: Strip comments before stripping trailing
1842 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1844 * Version 1.09 released.
1846 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1848 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1850 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1852 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1854 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1856 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1857 about returning without a value.
1859 * troff/charinfo.h (charinfo::get_special_translation): Cast
1860 TRANSLATE_NONE to int.
1862 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1863 test. Fix test so that it works with n unsigned.
1865 * pic/pic.y (defaults_table): Fully bracket initializer.
1866 * pic/lex.cc (lookup_keyword): Likewise.
1867 * eqn/lex.cc (token_table, def_table): Likewise.
1868 * eqn/box.cc (param_table): Likewise.
1869 * troff/input.cc (warning_table): Likewise.
1870 * libgroff/font.cc (table): Likewise.
1871 * grops/ps.cc (ps_printer::special): Likewise.
1872 * grops/psrm.cc (resource_manager::process_file): Likewise.
1873 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1874 * refer/command.cc (command_table): Likewise.
1875 * addftinfo/addftinfo.cc (param_table): Likewise.
1877 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1878 about temp's being unused.
1879 (unused): New function.
1881 * groff/pipeline.cc: Declare c_fatal.
1883 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1886 * libbib/index.cc (index_search_item::load): Prevent compiler
1887 warnings about fd_closer's being unused.
1888 (unused): New function.
1890 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1892 * troff/input.cc (copy_mode_error): Make `prefix' static.
1895 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1897 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1898 HAVE_CC_OSFCN_H and modify accordingly.
1900 * troff/input.cc (init_charset_table): radicalex overlaps
1903 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1904 udodo!hans@relay.NL.net).
1905 * groff/configure.in: Call it.
1907 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1908 * groff/configure.in: Call it.
1909 * include/lib.h: Conditionalize declaration of pclose.
1911 * troff/div.cc (last_page_number): New global variable.
1912 (top_level_diversion::begin_page): Exit if we just printed the
1914 * troff/div.h (last_page_number): Declare it.
1915 * troff/input.cc (parse_output_page_list): Set last_page_number.
1917 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1918 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1919 tmac/tmac.X: Likewise.
1920 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1921 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1923 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1925 * tmac/doc-ditroff (hK): Remove groff specific code which
1926 prevented page-breaks between separate manual entries. If this is
1927 the first page, don't set the page number to 1.
1929 * acgroff.m4 (GROFF_POSIX): New macro.
1930 * configure.in: Use it.
1932 * troff/node.cc (class real_output_file,
1933 real_output_file::real_output_file,
1934 real_output_file::~real_output_file): Conditionalize use of
1935 popen/pclose on POPEN_MISSING.
1936 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1937 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1938 (pipe_source): Similarily.
1940 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1942 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1943 presence of declarations by trying to compile example with
1944 conflicting declarations. (gcc only gives a warning for missing
1947 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1949 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1950 (from Ulrich Lauther).
1952 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1954 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1956 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1958 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1959 pointers and ints have different sizes.
1961 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1963 * tmac/tmac.s (par*env-init): Call par@reset.
1965 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1967 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1969 (par*push-tag-env, par*pop-tag-env): New macros.
1971 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1973 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1974 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1976 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1977 comment. Include <time.h>.
1979 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1981 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1982 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1985 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1987 * troff/input.cc (read_request): Only print a prompt if reading
1988 from the terminal. Also clearerr on EOF if reading from the
1989 terminal. Declare isatty.
1991 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1993 * refer/label.y: Rename map_t to map_func and extractor_t to
1996 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1998 * include/assert.h: Don't use volatile.
1999 * libgroff/assert.cc: Likewise.
2001 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
2003 * troff/input.cc (abort_request): Look at character in tok before
2006 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
2008 * troff/troff.h (NO_RETURN): Deleted.
2009 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
2010 * troff/input.cc (exit_troff): Likewise
2012 * Makefile.in: Remove `Making ...' messages since GNU make now
2015 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2017 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
2019 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2022 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
2024 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2026 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
2028 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2029 MARK_REG if there was no left delimiter.
2031 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
2033 * pic/troff.cc (troff_output::text): Set line thickness to
2034 relative before outputting text.
2036 * tmac/tmac.e (@k): Don't zero ?T.
2039 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
2041 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2043 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
2045 * troff/input.cc (decode_args): Warn about unquoted tabs (from
2048 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
2050 * troff/input.cc (ignoring): New variable.
2051 (ignore): Set ignoring during call to do_define_macro.
2052 (do_define_macro): Clear ignoring before interpolating terminating
2054 (copy_mode_error): New function.
2055 (get_char_for_escape_name, read_long_escape_name,
2056 interpolate_arg): Use copy_mode_error.
2057 (warning_table): Add WARN_IG.
2058 * troff/troff.h (WARN_IG): Declare.
2059 (WARN_TOTAL): Change accordingly.
2061 * groff/pipeline.c (strsignal): Rename to xstrsignal.
2062 * groff/groff.cc (strsignal): Delete declaration.
2064 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
2066 * troff/div.cc (page_offset): Use 'm' as default scaling.
2068 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
2070 * nroff/nroff.sh: Ignore -u.
2072 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
2074 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2076 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
2078 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2080 (B2): With -Tascii, leave additional vertical space before
2081 and after. Ensure that the left and right indent is restored to
2082 what it was even if the point size changes. Don't call
2083 par@finish. Change the indent, line length and title length
2084 directly. With -Tascii, make the width of the box 1n less.
2085 (B1): Remember 1n at the current point size. Don't call
2086 par@reset. Change the indent, line length and title length
2087 directly. Ensure that the temporary indent is preserved.
2088 (par*box-mark-top): Turn off no spacing mode.
2090 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
2092 * Makefile.in (dist): Use .gz suffix.
2094 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
2096 * troff/input.cc (main): Add return 0.
2097 * pic/main.cc (main): Use return instead of exit.
2098 * tbl/main.cc (main): Likewise.
2099 * eqn/main.cc (main): Likewise.
2100 * grops/ps.cc (main): Likewise.
2101 * grotty/tty.cc (main): Likewise.
2102 * groff/groff.cc (main): Likewise.
2103 * grodvi/dvi.cc (main): Likewise.
2104 * refer/refer.cc (main): Likewise.
2105 * indxbib/indxbib.cc (main): Likewise.
2106 * lkbib/lkbib.cc (main): Likewise.
2107 * soelim/soelim.cc (main): Likewise.
2108 * addftinfo/addftinfo.cc (main): Likewise.
2109 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2110 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2112 * troff/token.h (process_input_stack): Don't declare as static.
2113 * troff/input.cc: Likewise.
2115 * troff/node.c (invalidate_fontno): Make it a static member of
2116 class font_family. Change callers.
2117 * troff/node.c: Change declaration.
2119 * tbl/main.cc (struct input_entry_format): Add explicit public
2121 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2122 struct double_hline_stuff): Likewise.
2123 * tbl/table.h (struct entry_format): Likewise.
2124 * pic/object.h (struct saved_state): Likewise.
2126 * include/stringclass.h: Add forward declarations of friend
2127 functions that are later declared as inline. Don't include inline
2128 specifier in friend declaration.
2130 * libgroff/lib.h: Declare popen and pclose.
2131 * acgroff.m4 (GROFF_POPEN): New macro.
2132 * configure.in: Call it.
2134 * include/lib.h (PI): New constant. Undef first if necessary.
2135 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2136 * grops/ps.cc (degrees, radians): Likewise.
2137 * libgroff/font.cc (font::get_skew): Likewise.
2139 * grops/ps.cc (is_ascii): New function.
2140 (ps_output::put_string): Use is_ascii. Use csprint rather than
2142 (ps_printer::define_encoding): Use csspace.
2143 * libgroff/strtol.c (ISASCII): New macro.
2144 (strtol): Cast arguments to is*() and tolower() to unsigned char.
2145 Use ISASCII rather than isascii.
2146 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2147 * libgroff/cset.cc: Likewise.
2148 * libdriver/input.cc: Include cset.h.
2149 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2152 * refer/refer.cc (main): Use %ld rather than %d for longs.
2154 * libbib/index.cc (index_search_item_iterator::get_tag): Use
2157 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2159 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
2161 * troff/input.cc (hyphenation_code): Skip white space between
2164 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
2166 * tbl/table.h (table::entry_list_tailp): New member.
2167 (table::table): Initialize it.
2168 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2171 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
2173 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2174 with negative horizontal positions. Remove casts of glyph::hpos to
2176 (USHRT_MAX): Delete definition.
2177 (SHRT_MAX, SHRT_MIN): New definitions.
2178 (glyph::hpos): Change type to short.
2179 (tty_printer::end_page): Output multiple backspaces if necessary.
2180 Remove casts of glyph::hpos to int.
2182 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
2184 * tmac/tmac.s (@RT): New definition.
2186 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
2188 * refer/refer.cc (do_file): Make sure current_filename is set when
2191 * pic/common.cc (common_output::dot_line): Handle zero length
2194 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
2196 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2197 (par@init): Initialize \n[HY].
2199 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
2201 * troff/dictionary.cc (dictionary::remove): Continue when
2204 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
2206 * Makefile.com (.y.cc): Avoid ending up with two versions of
2209 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
2211 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2212 (\(,C): Likewise. Also fix typo.
2214 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
2216 * lib.h: Delete extraneous semi-colon.
2218 * Add pso request: `so' from a pipe.
2219 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2220 (file_iterator::close): New function.
2221 (file_iterator::~file_iterator, file_iterator::next_file): Use
2222 file_iterator::close.
2223 (file_iterator::backtrace): Say `process' rather than `file' when
2224 the stream is popened.
2225 (pipe_source): New function.
2226 (init_input_requests): Bind ".pso" to pipe_source.
2228 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
2230 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2232 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
2233 digits in lower case.
2235 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
2237 * Version 1.08 released.
2239 * Makefile.in (dist): Insert || true after ln -s commands that
2242 * mm: Update to mm 1.16.
2244 * acgroff.m4 (GROFF_CSH_HACK): New macro.
2245 * configure.in: Call GROFF_CSH_HACK. Substitute for
2247 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
2249 * nroff/Makefile.sub (nroff): New target.
2250 (install_data): Install nroff.
2251 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2252 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2254 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
2256 * eqn/Makefile.sub (neqn): Add chmod +x.
2258 * grog/Makefile.sub (grog): Remove spurious semi-colon.
2260 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
2262 * troff/input.cc (string_iterator::string_iterator()): Initialize
2265 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
2267 * troff/div.cc (macro_diversion::space,
2268 top_level_diversion::space): Don't set high_water_mark.
2269 (macro_diversion::output, top_level_diversion::output): Don't
2270 include post line space in high water mark.
2272 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
2274 * eqn/eqn.y: Don't define YYDEBUG.
2275 * pic/pic.y: Likewise.
2277 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
2279 * tmac/tmac.e ([3): Add space after comma following editors.
2280 Change double spaces to single spaces.
2281 ([4): Change double spaces to single spaces.
2283 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2284 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2285 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2286 after %!PS-Adobe- (for Newsprint).
2288 * troff/div.cc (top_level_diversion::begin_page): When
2289 before_first_page is 1, set page_number to 1.
2291 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
2293 * eqn/box.cc (box::top_level): Protect equation with \&.
2295 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
2297 * groff/groff.cc (possible_command::set_name): Delete old name.
2299 * groff/groff.cc (possible_command::~possible_command): Use
2302 * troff/node.cc (troff_output_file::begun_page): New member.
2303 (troff_output_file::troff_output_file): Initialize it.
2304 (troff_output_file::really_begin_page): Only output V command if a
2305 page has been begun.
2307 * pic/pic.y (placeless_element): Delete argument to PRINT after
2310 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
2312 * Make wrapman work.
2313 * troff/div.h (class top_level_diversion): Replace
2314 first_page_begun by before_first_page (with opposite sense).
2315 * Change first_page_begun to before_first_page inverting sense.
2316 * troff/div.cc (class nl_reg): New class.
2317 (init_div_requests): Use class nl_reg for \n(nl.
2318 (top_level_diversion::begin_page): Don't call
2319 output_file::begin_page if before_first_page is 2;
2320 reset before_first_page afterwards. If have_next_page_number is
2321 false, then always increment page_number.
2322 * tmac/tmac.an: Set traps within TH rather than at the top-level.
2323 Restore compatibility mode after loading, and then disable
2324 compatibility mode in TH.
2326 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
2328 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2330 * troff/node.h (output_file::trailer): Declare.
2331 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2332 * troff/node.cc (output_file::trailer): New function.
2333 (troff_output_file::~troff_output_file): Move most code into...
2334 (troff_output_file::trailer): New function.
2335 (class troff_output_file): Delete page_length member. Declare
2337 (troff_output_file::really_begin_page): Use current page length
2338 for final V command.
2340 * tbl/main.cc (struct options): New decimal_point_char member.
2341 (options::options): Initialize this.
2342 (process_options): Implement decimalpoint option.
2343 (process_data): Pass decimal_point_char option to table::table.
2344 * tbl/table.h (class table): New decimal_point_char member.
2345 (table::table): Add additional argument.
2346 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2347 second argument specifying decimal point character. Use this
2349 (table::table): Initialize decimal_point_char.
2350 (table::add_entry): Change call to find_dot.
2352 * troff/input.cc (get_copy, token::next): Implement \V.
2353 (interpolate_environment_variable): New function.
2355 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
2357 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2358 * pic/pic.y: Likewise.
2360 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2362 * refer/ref.cc (reference::insert_field, reference::delete_field):
2364 * troff/number.cc (parse_term): Likewise.
2366 * acgroff.m4 (GROFF_PROG_YACC): New macro.
2367 * configure.in: Use GROFF_PROG_YACC.
2369 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2371 * Makefile.in (OPTIMIZE): New define.
2372 (DEBUG): Empty by default.
2373 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2375 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2376 (GROFF_ARRAY_DELETE): Likewise.
2377 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2379 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2381 * devps/psstrip.sed: Use different delimiter on last line (so that
2382 it works with BSD 4.4 sed.)
2384 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
2386 * devps/psstrip.sed: Delete comments.
2388 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2389 optind, opterr, optarg.
2390 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2393 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
2395 * Makefile.in (check): Dummy target.
2397 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
2399 * Version 1.07 released.
2401 * Integrate mm 1.11.
2403 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2404 where start_col was meant.
2406 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
2408 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2410 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
2412 * troff/input.cc (token::next): Make \z\o'...' and similar things
2415 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2417 (environment): Add margin_character_flags member.
2418 * env.cc (environment::environment(symbol),
2419 environment::environment(const environment *): Initialize
2420 margin_character_flags.
2421 (margin_character): Rewrite.
2422 (environment::output_line): Add a margin character if
2423 margin_character_flags is non-zero. Turn off the
2424 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
2425 zero, use margin_character_node without copying and then set
2426 margin_character_node to 0.
2428 * devps/DESC.in: Change minimum size to 1000.
2430 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
2432 * troff/symbol.h (symbol::hash): Change return type to unsigned
2434 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2437 * test-groff: Use -r rather than -x.
2439 * grops/psfig.diff: Include in distribution again.
2441 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
2443 * Makefile.in (dist): Use gzip.
2445 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
2447 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2448 unistd.h as well as in stdlib.h.
2449 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2450 defined; otherwise include <sys/types.h> and <unistd.h> if
2451 UNISTD_H_DECLARES_GETOPT is defined.
2453 * configure.in: use builtin(include, ... rather than include(...
2454 * configure: Regenerate with autoconf 1.3.
2456 * libdriver/print.cc (printer::adjust_arc_center): Use new
2457 algorithm suggested by Andy Fyfe.
2459 * libdriver/printer.cc (printer::adjust_arc_center): New function.
2460 * include/printer.h: Declare this.
2461 * grops/ps.cc (ps_printer::draw): Use it.
2462 * grodvi/dvi.cc (dvi_printer::draw): Use it.
2464 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
2466 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2468 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
2470 * eqn/main.cc (main): Handle "eqn -".
2472 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
2474 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2476 * mm: Integrate version 1.08.
2478 * pic/troff.cc (troff_output::finish_picture): Set
2479 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2480 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2481 if it's not defined. Check whether the register is non-zero rather
2482 than whether it's not defined.
2483 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2485 * indxbib/indxbib.cc: Move all signal handling into...
2486 * indxbib/signal.c: New file.
2487 * configure.in: Call AC_RETSIGTYPE.
2489 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2490 * configure.in: Call GROFF_STRUCT_EXCEPTION.
2491 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2493 * troff/input.cc (token::token, token::operator=): Work round SGI
2495 * pic/object.cc (position::position): Likewise.
2497 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
2499 * pic/pic.h: Move declaration of hypot().
2501 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
2503 * pic/pic.h: Declare hypot().
2505 * pic/pic.h: Define M_PI if necessary.
2507 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
2509 * tmac/tmac.e (re): Add alternative version that doesn't use groff
2512 * devps/prologue.ps (RE): Handle the possibility that the old font
2513 doesn't have a FontName entry.
2515 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
2517 * tmac/tmac.e (fam): Redefine to set family in environment 2.
2518 (@C): Use @fam not fam.
2520 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
2522 * lookbib/lookbib.cc (main): Change type of start to const char *.
2523 * lkbib/lkbib.cc (main): Likewise.
2525 * eqn/lex.cc (definition::definition): Don't use member
2526 initializer syntax for members of anonymous unions.
2528 * troff/input.cc (input_stack::backtrace): Change type of to const
2531 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
2533 * include/stringclass.h (class string): Declare inline friend
2534 functions as inline in class declaration.
2535 * troff/hvunits.h (class hunits, class vunits): Likewise.
2536 * include/refid.h (class reference_id): Likewise
2537 * troff/troff.h (points_to_units(units), scale(units, double)):
2538 Delete declarations.
2539 * libdriver/input.cc (get_char): Delete declaration.
2540 * include/lib.h: Change 2nd argument of getopt from const char **
2542 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2543 char **' before assigning to a `const char **'.
2544 * tbl/table.cc: Delete extra declarations of prints().
2546 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
2548 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2549 char **' before assigning to a `const char **'.
2551 * libgroff/errarg.cc (errarg::errarg): Don't use member
2552 initializer syntax for members of anonymous unions.
2554 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
2556 * mm: Integrate version 1.07.
2558 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
2560 * troff/input.c (translate2): Rename to
2561 (translate_no_transparent).
2562 (init_input_requests): Rename tr2 to trnt.
2564 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
2566 * troff/charinfo.h (class charinfo): Add transparent_translate field.
2567 (charinfo::set_translation, charinfo::set_special_translation):
2568 Add second argument that specifies value for
2569 transparent_translate.
2570 (charinfo::get_translation, charinfo::get_special_translation):
2571 Add optional second argument that specifies whether translation is
2572 being used for transparent throughput.
2573 * troff/input.cc (charinfo::set_translation,
2574 charinfo::set_special_translation): Handle second argument.
2575 (charinfo::charinfo): Initialize transparent_translate.
2576 (translate): Split main part off into
2577 (do_translate): New function. Pass argument saying whether
2578 translation applies to transparent throughput.
2579 (translate2): New request.
2580 (init_input_requests): Bind translate2 to `tr2'.
2582 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
2584 * tbl/table.h (class table): Add `nokeep' flag.
2585 * tbl/main.cc (process_options): Handle `nokeep' option.
2586 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2587 table::do_bottom): Don't output keep/release macro definitions or
2588 calls when `nokeep' option has been specified.
2590 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
2592 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2594 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
2596 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2597 block_entry::divert, alphabetic_block_entry::divert): Add extra
2598 argument giving column separation.
2599 (table::compute_widths): Pass column separation to
2600 table_entry::divert().
2601 (block_entry::do_divert): If an entry spans multiple columns and a
2602 minimumum width has been specified for each column, then set the
2603 line length to the sum of the widths (plus possibly the column
2606 * troff/input.cc (set_escape_char): Don't set the escape_char
2607 until after calling has_arg().
2609 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
2611 * tbl/table.cc (table::do_top): Add missing \s0 for double box
2614 * tbl/table.cc (table::print_double_hline): Avoid extra new line
2615 in case where r > nrows - 1.
2617 * tbl/table.cc (BODY_HEIGHT): Deleted.
2618 (LINE_SEP): New definition.
2619 (table::print_single_hline, table::print_double_hline,
2620 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2621 table::do_row, table::do_top): Use LINE_SEP space before a line
2622 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2624 * tbl/table.cc (text_entry::print_contents): New function.
2625 (text_string_name, right_text_string_name): Deleted.
2626 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2627 (simple_text_entry::do_width, numeric_text_entry::do_width,
2628 alphabetic_text_entry::do_width): Don't store the contents of the
2630 (left_text_entry::simple_print, right_text_entry::simple_print,
2631 center_text_entry::simple_print,
2632 alphabetic_text_entry::simple_print,
2633 numeric_text_entry::simple_print): Print the entry directly
2634 instead of using the stored string.
2636 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2638 * devps/Makefile: Strip PostScript files.
2639 * devps/prologue: Rename to...
2640 * devps/prologue.ps.
2641 * devps/psstrip.sed: New file.
2642 * devps/download: Use .pfa rather than .ps for installed versions
2645 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2647 * troff/env.cc (input_trap): Give a warning if the argument is out
2650 * troff/env.cc (adjust): Treat negative argument as missing. Round
2651 argument > 5 down to 5.
2653 * troff/env.cc (center, right_justify): Make negative argument zero.
2655 * troff/div.cc (page_offset, vertical_position_traps): Treat
2656 invalid argument as missing.
2657 * troff/env.cc (line_spacing, line_length, title_length, indent,
2658 underline, hyphen_line_max_request, control_char,
2659 no_break_control_char, widow_control_request, adjust, input_trap,
2660 point_size): Likewise.
2661 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2662 constant_space): Likewise.
2663 * troff/input.cc (compatible, shift, warn_request,
2664 set_escape_char): Likewise.
2666 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2667 * tbl/table.cc (table::table): Likewise.
2669 * Makefile.dev (install_dev): depends on $(DEVFILES).
2671 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2673 * devX75, devX75-12, devX100, devX100-12: New directories.
2674 * Makefile.in: Add these to DEVDIRS.
2676 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2677 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2678 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2679 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2681 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2682 (uninstall): New target.
2683 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2684 uninstall_prog, uninstall_dev): New targets.
2686 * troff/div.cc (return_request): Treat an invalid argument as
2689 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2691 * tmac/tmac.e ((f): Set up the environment even when there's a
2692 current diversion. Transperently throughput a call to @N.
2695 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2697 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2698 up to vertical resolution.
2700 * tbl/table.cc (table::do_row): Change row number after printing
2703 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2705 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2707 * Rename CHANGES to NEWS.
2709 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2711 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2713 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2715 * man.ultrix: Removed.
2717 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2719 * Makefile.comm (extraclean): Delete files whose names begin with
2722 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2725 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2727 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2728 * troff/div.cc (page_length, need_space, space_request): Treat
2729 invalid optional argument as missing.
2730 * troff/env.cc (number_lines): If the first argument is present
2731 but not a number, turn on line numbering, don't change the next
2732 line number and parse the remaining arguments.
2734 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2736 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2738 * eqn/box.h: Change declaration accordingly.
2739 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2740 the specified size was bad but don't give an error. Check for
2742 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2743 * eqn/lex (do_size): Likewise.
2745 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2747 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2750 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2752 * tbl/table.cc (table::init_output): Improve error message when
2753 table won't fit on one page.
2755 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2757 * pic/troff.cc (troff_output::start_picture): Generate line
2758 containing a horizontal motion equal to the width of the picture.
2760 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2761 using GROFF_COMMAND_PREFIX environment variable.
2763 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2765 * mdate.sh: Use $NF rather than $(NF).
2767 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2769 * pic/main.cc (main): Use %1 not %c in argument to warning.
2771 * eqn/main.cc (main): Output code to check that geqn was given the
2774 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2776 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2777 `ln -s ../Makefile .; make; rm -f Makefile'.
2779 * troff/hyphen: Rename to...
2781 * troff/input.cc (main): Delete -H option. Don't call
2783 * troff/env.cc: Include searchpath.h and macropath.h.
2784 (exception_dictionary): Deleted.
2786 (read_hyphen_file): Deleted.
2787 (hyphenation_language): New struct.
2788 (class trie, class hyphen_trie): Move declarations up.
2789 (trie_node::~trie_node): Deleted.
2790 (trie::delete_trie_node): New function.
2791 (trie::do_delete): New pure virtual function.
2792 (hyphen_trie::do_delete): New function.
2793 (trie::~trie): New function.
2794 (hyphen_trie::~hyphen_trie): New function.
2795 (trie::clear): No need to chcek that tp is not 0.
2796 (current_language, language_dictionary): New variables.
2797 (hyphen_word): Give an error if no current language. Use
2798 exceptions dictionary in current language.
2799 (hyphen_trie::read_patterns_file): Find file using macro_path.
2800 Allow comments (starting with %) in patterns file. Don't make it
2801 a fatal error if the file can't be found.
2802 (hyphenate): Return if no current language. Get the exceptions
2803 dictionary and the hyphenation patterns from the current language.
2804 (set_hyphenation_language): New variable.
2805 (hyphenation_patterns_file): New function.
2806 (hyphenation_language_reg): New class.
2807 (hyphenation_language_reg::get_string): New function.
2808 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2809 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2811 * groff/groff.cc (main, help, synopsis): Delete -H option.
2812 * include/Makefile.sub: Don't define HYPHENFILE.
2813 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2814 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2815 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2816 hyphenation patterns.
2818 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2820 * eqn/neqn.sh: New file.
2821 * eqn/Makefile.sub: Handle neqn.sh.
2823 * eqn/eqn.h: Declare `nroff' variable.
2824 * eqn/box.cc (param_table): Add `nroff' param.
2826 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2828 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2830 * troff/troff.h (WARN_FONT): New warning.
2831 (WARN_TOTAL): Change accordingly.
2832 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2833 (warning_table): Add WARN_FONT.
2834 * troff/node.cc (mount_font_no_translate): Pass argument to
2835 font::load_font. If this is non-zero, give a warning.
2836 Don't give an error message when accessing a font that has already
2837 been found to be invalid.
2838 * include/font.h (font::load, font::load_font): Add additional
2839 optional argument which suppresses error message if the font is
2841 * libgroff/font.cc (font::load_font): Handle additional argument.
2842 (font::load): Add additional argument. If this is non-null, set it
2843 to 1 and don't give error message.
2845 * include/printer.h (printer::end_page): Add argument giving
2847 * libdriver/input.cc (do_file): Pass this.
2848 * grops/ps.cc (ps_printer::end_page): Add argument.
2849 * grodvi/dvi.cc (dvi_printer::end_page,
2850 draw_dvi_printer::end_page): Add argument.
2851 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2852 columns_per_page members. New member nlines.
2853 (DEFAULT_LINES_PER_PAGE): Deleted.
2854 (tty_printer::tty_printer): Don't compute lines_per_page from
2855 font::paperlength. Don't compute columns_per_page from
2857 (tty_printer::add_char): Don't check horizontal position against
2858 columns_per_page. Grow glyphs vector if neccessary.
2859 (tty_printer::end_page): Add argument giving page_length in units.
2860 Discard lines past end of page.
2862 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2864 * tmac/tmac.tty-char: Fix definition of \(/l.
2866 * tmac/tmac.X: Define \(en.
2868 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2870 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2871 lpq, then use lp rather than lpr.
2873 * tmac/tmac.s (par@reset): Don't call `ad'.
2874 (par*env-init): Call `ad'.
2876 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2878 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2881 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2882 * indxbib/indxbib.cc: Likewise.
2884 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2886 * libgroff/putenv.c: New file.
2887 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2888 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2889 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2890 stdlib.h with AC_HAVE_HEADERS.
2892 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2894 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2897 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2899 * eqn/box.cc (gsize): Make it an int.
2900 (set_gsize): Parse argument handling increment or decrement.
2901 (box::top_level): Convert gsize to a string.
2903 * troff/input.cc (exit_troff): Make buf unsigned char [].
2904 Call to make_temp_iterator casts buf to char*.
2906 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2908 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2909 * Makefile.cpg (depend.temp): Likewise.
2911 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2913 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2915 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2917 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2919 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2921 * Version 1.06 released.
2923 * Integrate mm 1.04.
2925 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2927 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2929 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2931 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2933 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2934 afmtodit. Regenerate.
2936 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2937 @f back past the current position.
2939 * tmac/tmac.e: Change calls to @R so that comments are not part of
2942 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2944 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2946 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2947 check that we can link a call to a function declared in <stdio.h>.
2948 (GROFF_UNISTD_H): New macro.
2949 * configure.in: Call it.
2950 * Makefile.in: Document it.
2951 * include/posix.h: New file.
2952 * troff/troff.h: Don't include <osfcn.h>
2953 * troff/input.cc: Include posix.h.
2954 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2956 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2957 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2959 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2960 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2961 * libbib/search.cc (O_RDONLY): Delete definition.
2962 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2963 Don't include <osfcn.h>.
2965 * acgroff.m4 (GROFF_TIME_T): New macro.
2966 * configure.in: Call it.
2967 * Makefile.in: Document it.
2969 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2970 * configure.in: Call it.
2971 * Makefile.in: Document -DTRADITIONAL_CPP.
2972 * include/ptable.h: Don't include generic.h.
2975 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2976 Afterwards remove [T1 and [T2.
2977 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2978 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2979 (ref*add-T2): Renamed from ref*add-T.
2980 (ref*add-T1): New macro.
2982 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2984 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2986 * libbib/index.cc: Include <fcntl.h>.
2987 (O_RDONLY): Define if necessary.
2988 (make_index_search_item, index_search_item_iterator::get_tag,
2989 index_search_item::check_files): Use O_RDONLY.
2990 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2991 (O_RDONLY): Define if necessary.
2992 (search_list::add_file): Use O_RDONLY.
2993 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2995 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2998 * libbib/index.cc (S_ISREG): Define it if necessary.
2999 (index_search_item::load): Use S_ISREG.
3001 * include/driver.h: Include <errno.h>.
3003 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
3005 * eqn/box.cc (body_height): Increase default value to 85.
3006 (body_depth): Increase default value to 35.
3008 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
3010 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3011 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3012 protected from expansion with \E.
3014 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3016 * Makefile (Makefile): New target.
3018 * Makefile.sub (configure, distfiles): New targets.
3020 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3023 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
3025 * eqn/box.cc (param_table): Add body_height and body_depth.
3027 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3029 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
3031 * psbb/Makefile.sub: Don't link with libgroff.a.
3033 * acgroff.m4 (GROFF_PUTENV): New macro.
3034 * configure.in: Call GROFF_PUTENV.
3035 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3036 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3039 * troff/env.cc (distribute_space): Rename force_forward argument
3040 to force_reverse. Reverse the list if force_reverse is true.
3042 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
3044 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3046 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3047 height or depth to be negative. Guard against SUP_RAISE quantity
3050 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
3052 * devps/generate/textmap: Add `an' (arrowhorizex).
3053 * tmac/tmac.ps: \(an overlaps horizontally.
3054 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3056 * devps/symbolchars: Add arrowverttp, arrowvertbt.
3057 * devps/textmap: Add arrowvertex.
3058 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3059 updownarrow delimiters.
3060 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3062 * tbl/table.cc (simple_entry::position_vertically,
3063 block_entry::position_vertically): For a centered entry, perform
3064 the motion in two stages.
3066 * refer/refer.cc (split_punct): Don't call lookup_token if there
3069 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
3071 * troff/input.cc (token::next): Delete token_node after copying
3074 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3077 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3079 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3081 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
3083 * grops/ps.cc (usage): -b option takes an argument.
3085 * devps/prologue (PLG): New procedure.
3086 * grops/ps.cc (main, usage): New -g option.
3087 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
3090 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
3092 * include/cset.h: Include <limits.h> if we have it.
3094 * libgroff/illegal.cc: New file.
3095 * include/lib.h (illegal_input_char): Use table.
3096 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3097 * pic/lex.cc (ARG1): Renumber to 14.
3098 * eqn/lex.cc (ARG1: Likewise.
3100 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3101 (eg 1.05.90) correctly.
3103 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
3105 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3106 Rename $r and $R registers to $v and $V.
3107 ($r, $R): Initialize to 0.
3108 (@v, @V): New macros.
3112 * troff/input.cc (main, usage): Add -R option that says not to
3114 * eqn/main.cc (main, usage): Rename -n to -R.
3116 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
3118 * devps/DESC.in: Leave font positions 5-9 blank.
3119 * devdvi/DESC.in: Likewise.
3121 * grog/grog.pl: Handle `.PS <file' correctly.
3123 * troff/input.cc (input_stack::push): Improve error message when
3124 input stack limit exceeded.
3126 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
3128 * refer/refer.cc (main): Fix typo in handling of `a' option.
3130 * refer/refer.cc (do_bib): In state START after a newline remain
3133 * groff/groff.sh: Deleted.
3134 * groff/Makefile.sub: Delete handling of groff.sh.
3136 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3137 to determine whether to use \X'ps:...'.
3138 * tmac/troffrc: Set 0p register to 0.
3139 * tmac/tmac.ps: Set 0p register to 1.
3141 * groff/groff.cc: Support -X option. Give warning for -TXps and
3142 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3143 * tmac/troffrc: Support -r.X=1.
3145 * pic/troff.cc (troff_output::dot): Don't test
3146 zero_length_line_flag.
3148 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
3150 * include/lib.h: Declare getopt() and friends unless
3151 STDLIB_H_DECLARES_GETOPT is defined.
3153 * doc/chars.tr: Delete.
3154 * man/groff_char.man: New file.
3156 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
3158 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3159 user has changed register format.
3161 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
3163 * groff/groff.cc: Get rid of device_table. Get postprocessor from
3164 `postpro' command in DESC file. Get spooler command from `print'
3165 command in DESC file. Execute spooler command with /bin/sh.
3167 * groff/groff.cc: Split Unix-specific parts into...
3168 * groff/pipeline.c: New file.
3171 * COPYING: New file.
3172 * all files: Update copyright notices.
3174 * Rearrange files. Redo Makefiles. Use autoconf.
3176 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
3178 * troff/input.c (charinfo_to_node_list): Interpret character
3179 definition with escape_char of `\'.
3181 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
3183 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3184 Define INT_DIGITS as big enough for 64-bit integer.
3185 * lib/strtol.c: Don't include lib.h.
3186 * lib/lib.h: Delete ifdef __cplusplus stuff.
3188 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
3190 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
3191 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
3192 get DESC from current directory.
3194 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
3196 * tbl/main.c (main): Always reset the line number when reading
3199 * tbl/table.c (table::print_single_hline, table::print_double_hline,
3200 table::define_bottom_macro, table::do_row, table::do_top): Round
3201 vertical spacing up to vertical resolution.
3203 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
3205 * ps/ps.h (enum resource_type): Avoid comma at end of
3207 * dvi/dvi.c (class dvi_printer): Likewise.
3208 * dvi/tfmtodit.c (gf::load): Likewise.
3209 * refer/label.y (struct expression): Likewise.
3210 * refer/refer.c (class label_processing_state): Likewise.
3211 * refer/indxbib.c (do_file): Likewise.
3212 * troff/troff.c (enum warning_type): Likewise.
3213 * tbl/main.c (process_data): Likewise.
3214 * troff/charinfo.h (class charinfo):
3216 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
3218 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
3220 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
3222 * groff.c: Move to new groff subdirectory.
3223 * groff/Makefile: New file.
3224 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3226 * man/mdate.sh: Use ls -L if supported.
3228 * Consolidate all header files produced by gendef into lib/defs.h.
3229 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3230 Don't include path.h.
3231 * lib/Makefile (path.h): Don't generate.
3232 * troff/input.c: Include defs.h. Don't include config.h.
3233 * troff/Makefile (config.h): Don't generate.
3234 * refer/index.h: Don't include suffix.h.
3235 * refer/index.c: Include defs.h.
3236 * refer/indxbib.c: Include defs.h.
3237 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3239 * refer/Makefile (suffix.h, path.h): Don't generate.
3240 * groff.c: Don't include config.h. Include defs.h.
3241 * Makefile (config.h): Don't generate.
3242 (lib/defs.h): Generate.
3243 (topclean): Remove lib/defs.h.
3245 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
3247 * lib/malloc.c, lib/getpagesize.h: Deleted.
3248 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
3250 * lib/Makefile: Delete malloc-related stuff.
3251 * lib/new.c: Workaround COOKIE_BUG if necessary.
3253 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
3254 needed header files directly.
3255 * refer/refer.h: Omit definition of DEFAULT_INDEX.
3256 * Makefile: Include definition of DEFAULT_INDEX in path.h.
3258 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
3260 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3262 * lib/font (font::load_desc, font::load): Don't split argument of
3264 (font::handle_unknown_font_command): Change type.
3265 * ps/ps.c (ps_font::handle_unknown_font_command,
3266 handle_unknown_desc_command): Change type.
3267 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3269 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
3271 * lib/font.h (font::handle_unknown_font_command): Add file and
3273 * lib/font.c (font::handle_unknown_font_command):
3274 * ps/ps.c (ps_font::handle_unknown_font_command):
3275 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3276 lineno arguments. Use _with_file_and_line functions for error
3279 * lib/fontfile.c (font::unknown_desc_command_handler): New static
3281 * lib/font.c (font::set_unknown_desc_command_handler): New
3283 (font::load_desc): For unknown commands, call
3284 unknown_desc_command_handler if not null.
3285 * lib/font.h (class font): Declare them.
3286 (FONT_COMMAND_HANDLER): New typedef.
3287 * ps/ps.c (handle_unknown_desc_command): New function.
3288 (main): Set bflag if we had a -b option. Call
3289 font::set_unknown_desc_command_handler.
3290 (broken.h): Don't include.
3291 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
3293 * ps/devps/Makefile: Add `broken' command to DESC file using
3294 BROKEN_SPOOLER_FLAGS.
3296 * macros/tmac.e ([, ]): Add as synonyms for { and }.
3298 * macros/tmac.e ($p): Only exdent if \$3 > 0.
3300 * macros/tmac.e (@R, @S): New macros.
3301 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3302 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3303 Declare $H, $[0-9], .. macros with @S.
3304 Declare |0, |1, |2, |3 strings with @S.
3306 * macros/tmac.e (@S): Rename to @U.
3308 * macros/tmac.e (@z): Define @b and bp as empty instead of
3311 * macros/tmac.e (@m): Deleted.
3312 (@h): Don't call @m.
3313 (@z): Don't set @m trap.
3315 * macros/tmac.e ($h, $f): Define |z as empty string.
3317 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3320 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3322 ()f): Likewise for * register.
3324 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3325 argument is missing, don't change $R. Call sr with three
3326 arguments when initializing.
3328 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
3330 * macros/tmac.e (sr): New macro.
3331 Initialize $r and $R using sr.
3333 * macros/tmac.e (,): Delete \*(#[.
3335 * troff/env.c (set_tabs): Read the tab type even if the position
3336 is bad. Allow the position of the first tab stop to be negative.
3338 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
3340 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3342 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3343 rather than -DPATHCONF_MISSING.
3344 * Makefile: Get rid of PATHCONF_MISSING.
3346 * refer/map.c: New file.
3347 * refer/index.c: Interface to mmap through map.c. Rename map_size
3349 * refer/Makefile: Handle map.c.
3350 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3352 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
3354 * Makefile: RANLIB should be `true' if there is no ranlib.
3355 * lib/Makefile (libgroff.a): Simplify.
3356 * driver/Makefile (libdriver.a): Simplify.
3358 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3359 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
3362 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
3364 * troff/env.c (compare_ranges): Declare as extern "C".
3366 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3368 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3370 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
3372 * pic/troff.c (troff_output::text): Merge in grops_output::text,
3373 but conditionalize use of \X based on \*(.T.
3374 (grops_output::*): Deleted.
3375 * pic/output.h: Delete declaration of make_grops_output.
3376 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
3377 by default. -n sets it to 0.
3378 (usage): Corresponding changes.
3379 * groff.c (main): Don't pass -x or -p to pic.
3380 * groff.sh: Likewise.
3382 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3385 * ps/devps/afmtodit: Change calculation of asc_boundary and
3386 desc_boundary. Make these bounds inclusive.
3387 * ps/devps: Regenerate font files.
3389 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
3391 * macros/tmac.latin1: New file.
3392 * macros/tmac.tty-char: Use tmac.latin1.
3393 (tmac.tty-tr): Deleted.
3394 * macros/Makefile: Install tmac.latin1.
3395 * macros/tmac.dvi: Use tmac.latin1.
3396 * macros/troffrc: Translate \[char160] onto no-break space here.
3397 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3399 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
3401 * macros/tmac.Xps: Use `do' request.
3403 * macros/tmac.ps: Use `do' request.
3405 * macros/tmac.e (@C): Use `do' request.
3407 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3408 * macros/Makefile: Install tmac.X*.
3410 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3411 * tty/Makefile: Don't install tmac.tty*.
3412 * macros/Makefile: Install tmac.tty*.
3414 * dvi/tmac.dvi: Move to macros.
3415 * dvi/Makefile: Don't install tmac.dvi.
3416 * macros/Makefile: Install tmac.dvi.
3418 * ps/tmac.ps*: Move to macros.
3419 * ps/Makefile: Don't install tmac.ps*.
3420 * macros/Makefile: Install tmac.ps*.
3422 * eqn/box.c: Provide draw_lines parameter corresponding to -D
3424 * macros/eqnrc: Set draw_lines parameter based on device.
3425 * groff.c: Don't pass -D flag to eqn.
3426 * groff.sh: Likewise.
3427 * eqn/main.c: Warn about use of -D.
3429 * troff/input.c (process_startup_file): New function.
3430 (main): Call process_startup_file().
3431 * macros/troffrc: New file.
3432 * macros/Makefile: Install troffrc.
3433 * groff.c (main): Don't pass extra -m option to troff. For a
3434 pseudo device pass the name of the pseudo device to troff using
3436 * groff.sh: Likewise.
3437 * groff.c (possible_command::prepend_arg): Deleted.
3439 * troff/input.c (do_request): New function.
3440 (init_input_requests): Bind "do" to do_request.
3442 * eqn/main.c (main): Instead of loading eqnchar from device directory,
3443 load eqnrc from macro directory.
3444 * macros/eqnrc: New file.
3445 * macros/Makefile: Install eqnrc.
3446 * ps/devps/eqnchar: Deleted.
3447 * ps/devps/Makefile: Don't install eqnchar.
3448 * dvi/devdvi/eqnchar: Deleted.
3449 * dvi/devdvi/Makefile: Don't install eqnchar.
3450 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3453 * lib/device.[ch]: New files.
3454 * lib/font.h (font::set_device_name, font::get_device_name):
3456 * lib/fontfile.c: Use device.h.
3457 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3458 * troff/input.c: Delete definition of `device'.
3459 (main): Don't initialize device.
3460 * troff/troff.h: Include device.h rather than declaring device.
3461 * troff/Makefile: No need to handle DEVICE.
3462 * driver/input.c: Include device.h. Don't use
3463 font::{set,get}_device_name.
3464 * groff.c, Makefile: Rename device.h to config.h.
3465 * groff.c: Use library device variable.
3466 * eqn/main.c: Use library device variable.
3467 * eqn/Makefile: No need to handle DEVICE.
3469 * lib/searchpath.[ch]: New files.
3470 * lib/Makefile: Handle searchpath.[ch].
3471 * troff/input.c (open_file, init_dirs): Deleted.
3472 (macro_dirs): Deleted.
3473 (open_mac_file, macro_source): Use class search_path.
3474 (add_string, struct string_list): Move definition.
3475 (main): Change -M option to use macro_path. Delete call to
3477 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3478 Rewrite to use class search_path.
3479 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3480 * lib/Makefile: fontfile.c depends on searchpath.h.
3481 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3483 * lib/macropath.[ch]: New files.
3484 * troff/Makefile: No need to handle MACROPATH.
3486 * troff/input.c: Delete DUMP code.
3487 * lib/fontfile.c, lib/font.h: Delete
3488 font::forget_command_line_font_dirs.
3490 * troff/input.c (push_token): New function.
3491 (handle_first_page_transition): Use push_token().
3492 (process_input_stack): Change handling of a space at the beginning
3495 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
3497 * troff/input.c (font_dirs): Delete unused variable.
3499 * eqn/lex.c (do_set): Correct error messages.
3501 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
3503 * troff/input.c (do_define_string): Allow the string name to be
3504 followed immediately by a tab.
3505 (define_character): Likewise.
3507 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
3509 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3512 * troff/input.c (input_iterator::is_file): New virtual function.
3513 (file_iterator::is_file): New function.
3514 (input_stack::end_file): New function.
3515 (input_stack::next_file): Handle the situation where there is no
3516 file on the input stack correctly. Avoid making two passes over
3518 (next_file): Make the filename optional; in this case call
3519 input_stack::end_file().
3521 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
3523 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3524 produce a real _ charater when the current font is CW and _
3527 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3528 expression to work around gcc 2.2 bug.
3530 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
3532 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3534 * troff/env.c (environment::add_padding): New function.
3535 (environment::add_char): Use add_padding().
3536 (environment::space): Likewise.
3537 (environment::wrap_up_field): Add some padding if there is none
3538 and there's no current tab.
3539 * troff/env.h: Declare environment::add_padding.
3541 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
3543 * pic/pic.y: undef fmod and rand before declaring them.
3545 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
3547 * troff/input.c (main): If the DESC file specifies a font name of
3548 0, then leave the corresponding font position empty.
3550 * nroff.sh: New file.
3551 * Makefile (install.nobin): Install nroff.sh.
3553 * tty/devlatin1/R.proto: Add ao as synonym for de.
3554 * tty/tmac.tty-char: Define ao as o.
3556 * tty/dev{ascii,latin1}/R.proto: Add aq.
3557 * tty/tmac.tty-char: Delete definition of aq.
3559 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
3561 * troff/input.c (init_charset_table): Don't translate 0240.
3562 * ps/tmac.ps: Translate char160 to space.
3563 * dvi/tmac.dvi: Likewise.
3564 * tty/tmac.tty: Likewise.
3566 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
3568 * dvi/tmac.dvi: Add support for all Latin-1 characters.
3570 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3571 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3574 * tty/tmac.tty-char: Add \(ah.
3576 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3577 No need to define \(FM and \(!/. Conditionalize all character
3580 * ps/devps/lgreekmap: Add +h, +f, +p.
3582 * ps/tmac.psnew: New file.
3583 * ps/Makefile: Install tmac.psnew.
3585 * troff/input.c (charinfo_to_node_list): Don't ever interpret
3586 character definitions in compatible mode.
3588 * troff/input.c (remove_character): New function.
3589 (init_input_requests): Bind remove_character to "rchar".
3591 * ps/tmac.psold: New file.
3592 * ps/Makefile: Install tmac.psold.
3593 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3594 characters into tmac.psold. Make these definitions unconditional.
3596 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3598 * ps/tmac.ps: Don't define \('c and \('C.
3600 * ps/devps/textmap: Move Greek characters to...
3601 * ps/devps/symbolchars:
3603 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
3605 * ps/devps/text.enc: Add quotesingle.
3606 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3607 * tty/tmac.tty-char: Likewise.
3608 * dvi/devdvi/texmi.map: Add +h, +f, +p.
3609 * dvi/devdvi/texi.map: Add Fn.
3610 * dvi/devdvi/msam.map: Add lz.
3611 * dvi/tmac.dvi: Handle Bq, bq, aq.
3613 * pic/lex.c (get_token): Recognize 'th.
3614 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3616 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
3618 * ps/devps/textmap: Move di, mu, +- to...
3619 * ps/devps/symbolchars:
3621 * macros/tmac.s (@XS): Don't call par@reset or fi.
3622 (XA): Call LP. Turn off adjustment. Reduce line length.
3624 * macros/tmac.s: Initially alias XS to LP.
3625 (XS): Rename to @XS.
3626 (cov*ab-init): Alias XS to @XS.
3628 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3630 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3631 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3632 (token::is_size, token::changes_env): Deleted.
3633 * troff/number.c (parse_term): No need to process \s explicitly.
3634 Call tok.next() only after scale indicator has been processed.
3635 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3637 (token::next): Handle \s, \f, \S, \H immediately rather than
3638 returning them as tokens.
3639 (token::operator==, token::description, token::add_to_node_list,
3640 token::process): Remove handling of deleted tokens.
3642 * troff/env.c (environment::add_char): When adding padding
3643 indicator character, call start_line() if necessary.
3645 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3647 * ps/devps/afmtodit: Don't output 0 kerns.
3649 * ps/devps/afmtodit: Remove directory from name of encoding in
3650 font description file.
3652 * ps/devps/afmtodit: Improve error messages.
3654 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3656 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3657 * ps/devps/FontMakefile: Deleted.
3658 * ps/devps/afmname: New file.
3660 * ps/devps/symbol.sed: New file.
3661 * ps/devps/symbol.diff: Deleted.
3662 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3663 Generate zapfdr.afm from zapfd.afm.
3665 * tty/tmac.tty (tty-char): Prefix definition with ".
3667 * macros/tmac.an (TP): Don't start a diversion if one has already
3670 * tty/tmac.tty-char: Add Latin-1 characters.
3672 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3674 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3676 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3677 Move declaration of struct horizontal_span.
3679 * tbl/table.c (table::table): Initialize span_list.
3680 (table::~table): Delete span_list.
3682 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3684 * ps/devps/Makefile: Avoid dependency on GNU make.
3686 * ps/tmac.ps: Check that character does not already exist before
3689 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3690 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3691 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3694 * tty/tmac.tty-char: New file.
3695 * tty/Makefile: Install tmac.tty-char.
3696 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3699 * tty/tmac.tty: Fix definition of \(34.
3701 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3702 bracket-drawing characters onto |. Add *o.
3704 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3705 only if current_field.
3707 * troff/dictionary.c (dictionary::lookup): Free old_table after
3710 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3712 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3713 whose glyphs are identical to glyphs of some Roman character.
3715 * tty/devlatin1/R.proto (bu): Deleted.
3716 * tty/devascii/R.proto (bu): Deleted.
3717 * tty/tmac.tty: Add definition of \(bu.
3719 * eqn/main.c (do_file): Pass FILE as argument.
3720 (main): Automatically load eqnchar. New options -F and -n.
3721 Pass do_file an opened FILE.
3722 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3723 No need to include font.h.
3724 * groff.sh: Likewise. Don't need to use - for standard input.
3725 Prefix files with -- if first file starts with -.
3727 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3729 * troff/env.c (environment::possibly_break_line): Don't set line
3730 to 0 across call to output_line(). Don't call output_line() until
3731 after discarding nodes after break.
3733 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3735 * request.h (macro::empty): Declare it.
3736 * input.c (macro::empty): New method.
3737 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3740 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3742 * troff/env.c (environment::start_field): Decrement space_total
3743 when a space is frozen.
3745 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3747 * macros/tmac.an (R): Delete macro.
3749 * troff/input.c (get_copy, token::next): Support \# (like \" but
3750 newline is ignored).
3752 * troff/input.c (token::next): Fix error message in 'Y' case.
3754 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3756 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3759 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3761 * c++test.c: Include <osfcn.h>.
3763 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3766 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3768 * tbl/table.c (table::divide_span): Don't count column separation
3769 if expand was specified.
3771 * tbl/main.c (process_format): Don't ignore width specs in
3772 continued format. Give warning for changing equal widths or
3773 column separation in continued format.
3774 (process_data): Set column separation, minimum width, equal
3775 columns at end of table.
3777 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3779 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3780 node::add_discretionary_hyphen): Use soft_hyphen_char.
3781 (set_soft_hyphen_char): New function.
3782 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3784 * Makefile (c++tested): Give more helpful message if test fails.
3786 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3788 * troff/input.c (init_charset_table): Translate 0240 to
3789 an unbreakable space.
3791 * troff/token.h (token::hyphen_indicator): New function.
3792 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3794 * troff/input.c (translate): Allow translation to \%.
3795 * troff/node.c (node::add_char): Handle
3796 TRANSLATE_HYPHEN_INDICATOR.
3797 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3799 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3802 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3804 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3806 * groff.c (run_commands): If the last command gets a SIGPIPE send
3807 a SIGPIPE to all children than haven't yet terminated. When
3808 command terminates, set pid field to -1.
3810 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3812 * groff.c (main): Pass an appropriate -filename option to gxditview.
3814 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3816 * Makefile.bd (install): Remove existing program before copying.
3818 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3819 programs which have Unix counterparts to be installed with
3820 user-specified prefix.
3822 * troff/input.c (exit_troff): Don't check if exit_started.
3823 (exit_request): Don't call exit_troff if exit_started.
3825 * Makefile.bd (install.mm): Rename to install.dwbmm.
3827 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3829 * driver/input.c (do_file): Add missing break for '#' case.
3831 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3833 * troff/input.c (input_stack::clear): Clear past any boundaries and
3834 then add the boundaries back.
3836 * troff/input.c (exit_troff): Return immediately if already
3839 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3841 (pg*end-page): If the text has ended and there are no more
3842 footnotes or keeps, exit.
3844 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3846 * troff/input.c (init_charset_table): Make \(rq transparent by
3849 * macros/tmac.an: Define lq and rq strings.
3851 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3853 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3855 * troff/env.c (environment::final_break): New function.
3856 (environment::newline): Set prev_line_interrupted to 2 if
3858 * troff/env.h: Declare environment::final_break.
3859 * troff/input.c (exit_troff): Call environment::final_break()
3860 instead of environment::do_break().
3862 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3863 doesn't already exist.
3864 * macros/man.local: New file.
3865 * macros/tmac.an: Load man.local.
3866 * macros/man.ultrix: New file.
3868 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3870 * troff/input.c (exit_groff): Rename to...
3871 (exit_troff): New function.
3873 * troff/div.c (exit_started, done_end_macro,
3874 seen_last_page_ejector): New global variables.
3875 (began_page_in_end_macro): New static variable.
3876 (exit_flag): Deleted.
3877 (top_level_diversion::top_level_diversion): Initialize
3879 (top_level_diversion): More elaborate test for whether
3880 cleanup_and_exit() should be called.
3881 Set began_page_in_end_macro if the end macro isn't yet finished.
3882 * troff/div.h (top_level_diversion::last_page_count): New data
3884 (top_level_diversion::set_last_page): New function.
3885 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3886 * troff/env.c (do_break): Zero prev_line_interrupted.
3887 * troff/input.c (exit_flag): Delete declaration.
3888 (LAST_PAGE_EJECTOR): New magic cookie.
3889 (token::next): Handle LAST_PAGE_EJECTOR.
3890 (exit_groff): Set exit_started and done_end_macro instead of
3891 exit_flag. Call top_level_diversion::set_last_page. Push a
3892 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3893 another ejection after setting seen_last_page_ejector.
3895 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3897 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3899 * macros/tmac.e (TH): Make sure there's room for the initial
3902 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3903 Set FVS in points rather than units.
3905 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3907 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3908 position of empty slots.
3910 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3912 * ps/devps/S: Fix height and depth of parenrightex.
3913 * ps/devps/symbol.diff: Regenerate.
3915 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3917 * tmac.e (u): Do underlining as in -mgs.
3919 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3921 * tty/tty.c (tty_printer::end_page): If overstriking is
3922 suppressed, still turn overstruck horizontal and vertical lines
3925 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3928 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3930 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3932 * Version 1.05 released.
3934 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3936 * tty/tty.c: Instead of keeping an array of glyphs and then
3937 sorting it, keep a ordered linked list of glyphs for each line.
3939 * driver/driver.h: Include stddef.h.
3941 * tty/tty.c (compare_glyph):
3942 * refer/refer.c (rcompare):
3943 * troff/env.c (compare_ranges): Arguments of qsort comparison
3944 function should be const void *.
3946 * troff/number.c (parse_term):
3947 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3950 * refer/label.y (consider_authors): Don't access variables
3951 constructed under a condition outside that condition: put braces
3952 round for statement containing declaration; redeclare use of same
3955 * pic/pic.y (text_expr): Delete production that allows
3956 parenthesised text_expr.
3957 (expr): Allow a conditional_expr to appear in parentheses.
3958 (conditional_expr): Rename to any_expr.
3960 * mm: Install new version 1.01 from jh.
3962 * lib/font.c (font::get_width): Cache scaled widths.
3963 (font::font): Initialize widths_cache.
3964 (font::~font): Destroy widths_cache.
3965 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3967 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3969 * c++test.c, c++test.ref: New files.
3970 * Makefile: Check that the C++ compiler works.
3972 * ps/tmac.pspic (PSPIC): Do a break.
3974 * ps/tmac.ps: Move definition of PSPIC into...
3975 * ps/tmac.pspic: New file.
3976 (PSPIC): Draw box around picture, but make it invisible to grops.
3977 * ps/tmac.ps: Load tmac.pspic.
3978 * ps/Makefile: Install tmac.pspic.
3980 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3982 * lib/font.c (scale_round): If n is negative,
3983 subtract .5 before truncating floating point result.
3985 * lib/fontfile.c: Include <errno.h>.
3987 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3989 * driver/input.c (get_char): Inline. Don't update current_lineno.
3990 Change callers to up date current_lineno if necessary.
3991 Use get_char() instead of getc(current_file).
3993 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3995 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3997 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3999 * tty/tty.c (tmac.tty): Define \(rg as (R).
4001 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
4003 * lib/lib.h: New define a_delete.
4004 * Use a_delete instead of delete when deleting an array of objects
4005 without destructors.
4007 * lib/lib.h: Rename adelete to ad_delete.
4008 * Change uses of adelete.
4010 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
4012 * eqn/eqn.y: Include lib.h.
4014 * troff/node.c (grow_font_table): Delete old_font_table.
4016 * mm: Install new version from jh.
4018 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
4020 * tbl/table.h (format_type): Make global instead of local to class
4021 entry_format. Prefix enumerators with FORMAT_.
4022 * tbl/table.c, tbl/main.c: Corresponding changes.
4023 * refer/token.h (token_type): Make global. Prefix enumerators
4025 * refer/token.[ch]: Corresponding changes.
4026 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4028 * troff/div.c (node::set_vertical_size): Don't name argument.
4030 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
4032 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4033 * lib/lib.h: Define adelete accordingly.
4034 * pic/object.c (graphic_object::graphic_object):
4035 * tbl/main.c (format::~format):
4036 * tbl/table.c (table::~table):
4037 * refer/ref.c (reference::~reference, reference::merge,
4038 reference::insert_field, reference::delete_field): Use adelete.
4040 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4042 * tbl/table.h: Corresponding changes.
4044 * common.c (common_output::dashed_arc, common_output::dotted_arc):
4045 Ensure total_angle is positive.
4047 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
4049 * refer/ref.c (reference::merge, reference::insert_field,
4050 reference::delete_field): Avoid delete[0].
4052 * refer/token.c (init_special_chars): Move calls to cmupper
4053 outside calls to init_two_char_letter to work around bug in gcc
4056 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
4058 * lib/new.c (operator new): Use __builtin_new for g++.
4060 * pic/object.c (graphic_object::~graphic_object): Don't use
4063 * pic/object.c (output::compute_scale): Initialize max_width and
4066 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
4068 * troff/input.c (write_request): Call fflush.
4070 * troff/node.h (class composite_node): Move declaration to node.c
4071 * troff/input.c (charinfo_to_node): Rename to ...
4072 (charinfo_to_node_list): Return node list rather than composite
4074 * troff/node.c (make_composite_node): New function.
4075 (make_node, add_char): Call make_composite_node instead of
4077 (class composite_node): Add a tfont * member. Delete font_size
4079 (composite_node::composite_node, composite_node::copy,
4080 composite_node::size): Corresponding changes.
4081 (composite_node::tprint): Provide constant spacing, emboldening
4082 and track kerning as specified in tfont.
4083 (composite_node::width): Change width calculation accordingly.
4084 * troff/env.h (environment::composite): New member.
4085 (environment::is_composite, environment::set_composite): New
4087 * troff/env.c (environment::environment): Initialize composite.
4088 * troff/input.c (charinfo_to_node): Call
4089 environment::set_composite.
4090 * troff/node.c (make_composite_node, make_glyph_node): Use the
4091 plain version of the tfont if the environment is composite.
4093 * troff/node.c (font_info::get_space_width): Additional argument
4094 giving space_size. Handle constant space correctly. Scale by
4095 space_size unless constant spaced.
4096 (env_sentence_space_width): New function.
4097 * troff/node.h: Declare it.
4098 * troff/env.h (environment::get_space_size,
4099 environment::get_sentence_space_size,
4100 environment::get_narrow_space_width,
4101 environment::get_half_narrow_space_width): Make inline.
4102 (environment::get_space_width): Make inline. Just call
4104 * troff/env.c: Delete definitions for funtions made inline.
4105 (environment::space_newline, environment::space): Use
4106 env_sentence_space_width(). Don't scale by space_size.
4107 * troff/node.h: Move declarations of env*space_width() functions
4110 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
4112 * macros/tmac.s (PS): Don't try to set negative indent.
4114 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
4116 * pic/pic.y: Fix min function.
4118 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
4120 * man/mdate.sh: Clear LANGUAGE.
4122 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
4124 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4125 * pic/lex.c: New COMMAND keyword.
4126 * pic/pic.y (print_args, print_arg): New rules.
4127 (placeless_element): Use print_args for PRINT.
4128 New COMMAND element.
4130 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
4132 * troff/input.c (terminal): Handle missing argument correctly.
4134 * pic/pic.y (text_expr): New rule.
4136 * pic/pic.y: Implement := operator.
4138 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
4140 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4143 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
4145 * ps/devps/dingbatsrmap: Include this in the distribution.
4147 * macros/tmac.doc: Replace with new version from 2nd Networking
4148 Release. Fix loading of doc-* files.
4149 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4150 * macros/tmac.doc.old: New file. Apply fixes that had been
4151 applied to old tmac.doc.
4152 * macros/tmac.andoc: Check that we're running under groff.
4153 * macros/Makefile: Rework.
4155 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
4157 * tbl/table.h (format_type):
4158 * refer/token.h (token_type): If NESTED_TYPES is defined, use
4159 typedef to make these types visible at file scope.
4160 * Makefile: Add NESTED_TYPES configuration option.
4162 * troff/div.c (mark): At the top level use the value of
4163 nl_reg_contents rather than the current vertical position.
4165 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
4167 * tty/tty.c: Implement \D for horizontal or vertical lines.
4168 (tty_printer::set_char): Use vec_used+2 as serial number.
4169 Don't allow size of vector to exceed USHRT_MAX-2.
4170 Split off part into...
4171 (tty_printer::add_char): New function.
4172 (tty_printer::draw): New function.
4173 (compare_glyph): Handle equal serial numbers.
4174 (tty_printer::end_page): Handle overstruck characters from \D.
4175 (main, usage): Implement -d option.
4177 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
4179 * tbl/main.c (process_format):
4180 * eqn/text.c (split_text):
4181 * troff/input.c (token::next): Use inner block for declarations
4182 with initializers in switch statement.
4184 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
4186 * pic/common.c (common_output::dash_line): Cope with zero-length
4189 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
4191 * Version 1.04 released.
4193 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
4195 * macros/tmac.an (TH): Define a macro an-init to define variables
4196 based on command line arguments.
4197 (an-header): Call it.
4199 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
4201 * Makefile (install.mm): Rename to install.dwbmm.
4203 * Makefile: Integrate mm.
4204 * mm: New directory.
4206 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
4208 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4211 * pic/troff.c (troff_output::simple_spline,
4212 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4213 shadowing parameter.
4215 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4217 * lib/ptable.h: Add explicit casts when converting from unsigned
4220 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4221 * dvi/devdvi/Makefile: Install SA, SB.
4223 * refer/indxbib.c: Add declaration of mktemp.
4225 * refer/lookbib.c: Add declaration of isatty.
4227 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
4229 * pic/lex.c (interpolate_macro_with_args): While collecting
4230 arguments, keep track of whether we're in a string.
4232 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
4234 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4235 down with \v, so as to avoid problems with top of page trap
4236 setting no space mode.
4238 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
4240 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4242 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
4244 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4245 Improve error message.
4247 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
4249 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4252 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
4254 * groff.c (possible_command::execp): Always use _exit() after a
4257 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4258 NO_SYS_WAIT_H configuration options.
4259 * groff.c: Use these options. Use POSIX-style macros to extract
4260 fields from the status returned by wait().
4262 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
4264 * tbl/table.c (table::compute_separation_factor): Allow the
4265 separation factor to drop to 0.
4267 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
4269 * refer/search.c: Include <errno.h>.
4271 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
4273 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4275 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4278 * pic/lex.c (input_stack::bol): Move definition out of class body.
4280 * pic/main.c: On MSDOS munge argv[0].
4282 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4284 * lib/ptable.c (hash_string): Use unsigned long rather than
4286 (next_ptable_size): Use unsigned rather than int. Give an error
4287 message if we've hit the largest table size.
4288 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
4291 * pic/object.h (object_spec): Make flags unsigned long. Declare
4292 flags as const unisgned long rather than as enums.
4294 * pic/output.c: Deleted.
4296 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4298 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4299 Add additional argument.
4300 (line_entry::note_double_vrule_on_{left,right}): Set value of
4301 douvle_vrule_on_{right,left} flag according to argument.
4302 (simple_line_entry::simple_print,
4303 simple_line_entry::double_line_print): If adjacent to double vrule
4304 on a corner extend rather than shorten the rule by half the double
4307 * troff/number.c (parse_term): In checking for overflow, handle the
4308 case where the current horizontal position is negative.
4310 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
4312 * pic/object.c (draw_arrow): Check for object having zero length.
4314 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
4316 * eqn/main.c (do_file): Split off inline equation handling into...
4317 (inline_equation): New function. Search for starting delimiter
4319 (delim_search): New function. Don't recognize a delimiter that
4320 occurs in the name of an escape sequence, number register, string
4323 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
4325 * eqn/delim.c (delim_box::compute_metrics): Don't call
4326 define_extensible_string if left is 0.
4327 (delim_box::output): Don't print the left delimiter if left is 0.
4328 (delim_box::debug_print): Check for left == 0 before calling printf.
4330 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
4332 * troff/Makefile (majorminor.c): Include only digits in
4335 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
4337 * refer/dirnamemax.c: new file.
4338 * refer/genlimits.c: Deleted.
4339 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4340 Don't check path length.
4341 * refer/Makefile: Add dir_name_max.o; delete genlimits.
4342 * Makefile: Add PATHCONF_MISSING option.
4344 * refer/indxbib.c (get_cwd): New function.
4345 (main): Use get_cwd().
4346 * lib/getcwd.c: New file.
4347 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4349 * lib/Makefile: Compile getcwd.o.
4351 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4354 * refer/indxbib.c (main): Check success of mktemp.
4356 * lib/tmpfile.c: New file.
4357 * lib/Makefile: Add tmpfile.c.
4358 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4359 * ps/ps.h: Delete declaration of mktemp().
4360 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4361 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4362 * driver/driver.h: No need now to include errno.h.
4364 * everywhere: Set errno to 0 before calling fopen().
4366 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4367 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4368 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4370 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
4372 * troff/env.h (translate_space_to_dummy): Declare it.
4373 * troff/env.c (environment::space_newline, environment::space):
4374 If translate_space_to_dummy is set then make the width of spaces 0.
4375 * troff/input.c (translate): If the second character of a
4376 translation is a space, translate to unbreakable space. If the
4377 first character is a space, set or clear translate_space_to_dummy
4378 according to whether the second character is \&. Weird!
4380 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
4382 * groff.c (run_commands): Don't use non-zero exit code because a
4383 command gets SIGPIPE.
4385 * groff.c, groff.sh: Use -mXps with -TXps.
4387 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4388 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4389 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4390 (ps_printer::special): New specials invis and endinvis.
4391 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4392 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
4393 (ps_printer::end_page): Check that invis_count == 0.
4394 (ps_printer::invis_count): New member.
4395 (ps_printer::ps_printer): Initialize invis_count to 0.
4397 * troff/env.c (environment::hyphenate_line): Hyphenation
4398 indicator at beginning of word inhibits splitting after -, \(em
4401 * pic/pic.y (element): Allow another element to follow } without
4402 any intervening separator.
4404 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
4406 * pic/lex.c (get_delimited): Allow tabs before delimiter.
4408 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
4410 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
4411 declaration of wait() in header files.
4412 * Makefile: Get rid of -DHAVE_UNION_WAIT.
4414 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4416 * lib/lib.h: Declare return type of strerror as char *.
4418 * man/Makefile: Add g flag to sed substitutions.
4419 * Makefile (shgroff, bindist): Likewise.
4421 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
4423 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4424 * ps/devps/prologue (PBEGIN): Define showpage after pushing
4427 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
4429 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4432 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
4434 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4437 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
4439 * troff/input.c (define_number_reg): If currently undefined,
4440 don't define it if the argument is an invalid expression.
4442 * Makefile: Ignore return value of `if' commands without `else'
4445 * Makefile: Split up CPPDEFINES into a series of separate
4446 configuration options.
4448 * troff/input.c (init_registers): Use time_t instead of long
4449 unless LONG_FOR_TIME_T is defined. Use returned result rather
4450 than passing pointer.
4451 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4453 * lib/Makefile (fontpath.h): Use gendef.
4455 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
4457 * troff/input.c (input_iterator::shift): Delete argument name.
4458 * troff/node.c (suppress_output_file::really_begin_page,
4459 suppress_output_file::really_transparent_char, node::ascii_print,
4460 node::tprint): Delete names of unused arguments.
4462 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
4464 * refer/label.y (string): Pass $4 to command_error.
4466 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
4468 * Version 1.03 released.
4470 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
4472 * Makefile: Pass definition of SHELL in SUBFLAGS.
4475 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4476 ps/Makefile: Use gendef to construct header files that are
4477 constructed from the Makefile.
4479 * macros/Makefile: make all should build stripped version of tmac.e.
4481 * refer/Makefile (clean): Remove y.output.
4483 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
4485 * ps/pfbtops.c (main): Add -v option which prints out a version
4487 * ps/Makefile (pfbtops): Link with libgroff.a.
4489 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
4491 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4492 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4494 * refer/lkbib.c (main): Always terminate reference with blank
4496 * refer/lookbib.c (main): Likewise.
4498 * refer/linear.c (file_buffer::load): Check that the file is not a
4501 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4502 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4503 Delete second inclusion of <sys/param.h>.
4505 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
4507 * troff/token.h (token::special): Deleted.
4509 * tbl/main.c (process_format): Rework so that opt->tab_char is
4510 recognized only when appropriate.
4512 * ps/Makefile (clean): Remove pfbtops.
4514 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
4516 * lib/font.c (text_file::next): Don't return if we have got a
4519 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
4521 * refer/refer.c (store_reference): Get hash code from old_table[i]
4522 when rehashing the table.
4524 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
4526 * eqn/box.c (box::top_level): Save size and prev size using \R and
4527 restore it afterwards. Set the size to the size at the beginning
4529 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4530 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4532 * refer/Makefile (limits.h): Use ./genlimits.
4534 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
4536 * refer/index.c: Delete declarations of stat() and fstat().
4538 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
4540 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4542 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
4544 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4546 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
4548 * troff/input.c (token::get_char): Handle \e.
4550 * refer/linear.c: Delete declarations of fstat() and stat().
4552 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
4554 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4555 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4557 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
4559 * troff/input.c (do_define_macro): Improve error handling for end
4560 of file while defining macro.
4562 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
4564 * eqn/box.h: Fix declaration of set_gsize.
4565 * eqn/box.c (set_gsize): Make argument const char *.
4566 (gsize): Declare as char *.
4567 * eqn/main.c (main): Don't convert gsize to int.
4568 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4570 * Version 1.02 released.
4572 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
4574 * macros/tmac.andoc: New file.
4575 * macros/Makefile: Install tmac.andoc.
4577 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4578 operator new and delete on OP_DELETE_BROKEN not being defined.
4579 * Makefile: Mention OP_DELETE_BROKEN.
4581 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
4583 * Makefile (bindist): Pass SUBFLAGS.
4585 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
4587 * Makefile, groff.c: Pass definitions to groff.c via device.h.
4589 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4592 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4594 * ps/ps.h, ps/psrm.c: Make comment_table and
4595 header_comment_table local to resource_manager::process_file.
4597 * groff.sh: With -TXps pass -printCommand option to gxditview.
4599 * groff.c (possible_command::print): Implement using
4600 append_arg_to_string.
4602 * xditview: Merge in new implementation with own ChangeLog.
4604 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
4606 * groff.c (main): Implement PRINT_OPTION.
4607 (append_arg_to_string): New command.
4608 (device_table): Set PRINT_OPTION flag for Xps.
4610 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
4612 * troff/groff.h: Rename to troff.h.
4614 * pic/lex.c (lookup_keyword, docmp): New functions.
4615 (get_token): Use new lookup_keyword.
4616 Don't include key.h.
4617 * pic/key.[ch], pic/pic.gperf: Deleted.
4618 * pic/Makefile: Remove gperf stuff.
4620 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4622 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4624 * troff/Makefile, troff/node.c: Move definition of
4625 STORE_WIDTH into node.c.
4627 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4629 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4631 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4632 dvi/devdvi/texb.map: Add lq and rq.
4633 dvi/devdvi: Regenerate fonts.
4634 * ps/devps/textmap: Add lq and rq.
4635 * ps/devps: Regenerate fonts.
4636 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4637 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4639 * pic/object.c (position_rectangle): When checking radius
4640 cope with possiblity that width or height is negative.
4641 (box_object::box_object): Have separate xrad and yrad with
4642 signs matching signs of dim components.
4643 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4644 (box_object::print): With rounded boxes use absolute values
4645 for dim and rad arguments.
4647 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4650 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4652 * various files: Add explicit destructors to keep Saber CC +d
4655 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4657 * eqn/box.c (box::top_level): Restore fonts correctly after
4658 font changes in line containing inline equation. Also
4659 restore previous font as well as current font.
4660 * eqn/pbox.h: Define necessary string and register names.
4662 * troff/input.c (token::next): Case 'R' calls do_register.
4663 (do_register): New function.
4665 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4667 * groff.c, groff.sh: Support Xps device. Allow each device
4668 to have a pseudo_name and a real_name.
4670 * groff.c (run_commands): Don't print `Broken pipe' messages.
4672 * ps/pfbtops.c: New file.
4673 * ps/Makefile: Add pfbtops.
4675 * troff/number.c (parse_term): Improved error message.
4677 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4679 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4681 * Makefile: Integrate refer.
4682 * refer: New directory.
4683 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4684 man/lkbib.man: New files.
4685 * man/Makefile: Support refer man pages.
4687 * lib/lib.h: Declare is_prime.
4688 * lib/prime.c: New file.
4690 * troff/input.c (macro_source): New function.
4691 (init_input_requests): Bind "mso" to macro_source.
4693 * troff/env.c (environment::possibly_break_line): Maintain
4694 pointer to pointer to node to be split in ndp so as to avoid
4695 using address of freed node.
4697 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4698 pointer to first node to be hyphenated in startp so as to
4699 avoid using address of freed node.
4701 * troff/env.c (class trie, class hyphen_trie): Make the
4702 elements of the trie be of type char not unsigned char.
4703 Declare arguments to be const char* instead of unsigned char *.
4705 * troff/env.c (hyphenate): Initialize hbuf[0].
4707 * troff/input.c (set_string): Declare p to be char * and cast
4708 *p to unsigned char when necessary.
4710 * troff/input.c (do_define_macro): Declare s to be const
4711 char*. Cast element to unisgned char when necessary, Declare
4712 d to be an int. Handle EOF better.
4714 * troff/Makefile, troff/input.c: Different scheme for passing
4715 definitions of MACROPATH, HYPHENFILE and DEVICE.
4717 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4719 * tty/devascii/R.proto: Delete entry for em.
4720 * tty/devlatin1/R.proto: Likewise.
4722 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4724 * troff/input.c (translate): Stop when we get a space. Treat eof
4727 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4729 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4731 * tbl/main.c (process_format): A font name following a `f'
4732 modifier that starts with a digit can be only one character long.
4733 Also deal with EOF on the second character of the font name.
4735 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4737 * troff/input.c (token::next): Turn \~ into an
4738 unbreakable_space_node.
4739 * troff/node.c (unbreakable_space_node): New class.
4740 * troff/node.h: Declare it.
4742 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4744 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4745 it's >= 0, before outputting it as a single byte.
4747 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4749 * lib/font.c: Make font_char_metric::code an int.
4750 (font::get_code): Change return type to int.
4751 (font::load): Allow code to be arbitrary integer.
4752 * lib/font.h (font::get_code): Change return type to int.
4753 (font::number_to_index): Change argument type to int.
4754 * troff/input.c (token::next): In case 'N', allow any value.
4755 Store value in token::val.
4756 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4757 (token::get_char, token::add_to_node_list, token::process): Get
4759 (charinfo::set_number): Change argument to int.
4760 (charinfo::get_number): Require that NUMBERED flag be set.
4761 (get_charinfo_by_number): Store numbered characters not between 0
4762 and 255 in a dictionary.
4763 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4765 (charinfo::number): Change type to int.
4766 (charinfo::set_number): Change type of set_number to int.
4767 * troff/node.c (troff_output_file::put_char_width,
4768 troff_output_file::put_char): Test whether character is numbered
4769 using charinfo::numbered().
4770 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4772 * lib/nametoindex.c: New implementation to cope with arbitrary
4775 * troff/input.c (token::operator==): Test val for
4776 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4779 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4780 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4782 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4784 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4787 * all Makefiles: rm targets of cp and >.
4789 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4792 * eqn/lex.c (def_table): Add dollar.
4794 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4796 * troff/input.c (do_width): Push back newline before closing delim
4799 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4801 * groff.c (possible_command::prepend_arg): New function.
4802 (main): Prepend device -m option.
4803 * groff.sh: Put device -m options before command-line options.
4805 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4807 * macros/tmac.an (IP): Quote argument to TP.
4809 * ps/ps.c (main): New option -b, which sets...
4810 (broken_flags): New variable.
4811 (ps_printer::~ps_printer): Incorporate the setup section in the
4812 prolog if (broken_flags & NO_SETUP_SECTION).
4813 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4814 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4815 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4816 ps_printer::print_needed_font_comment,
4817 ps_printer::print_supplied_font_comment,
4818 ps_printer::print_include_font_comments,
4819 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4820 ps_printer::read_download_file, read_document_fonts, add_font,
4821 skip_line, parse_fonts_arg, document_font::document_font,
4822 document_font::~document_font, document_font::download,
4823 ps_output::include_file): Deleted.
4824 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4825 rather than %!PS-Adobe-2.0. Make calls to
4826 resource_manager::need_font for each font that we used. Replace
4827 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4828 print_supplied_font_comment, print_needed_font_comment by call to
4829 resource_manager::print_header_comments. Output %%Orientation
4830 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4831 Don't output the prolog directly. Instead call
4832 resource_manager::output_prolog. Only define #copies when ncopies
4833 > 1. Delete calls to print_include_font_comments and
4834 download_fonts. Add call to resource_manager::document_setup.
4835 (ps_printer::do_file): Call resource_manager::import_file instead
4836 of including it ourselves.
4837 (ps_printer::do_import): Likewise. Also don't call
4838 merge_import_fonts. Push userdict on the dictionary stack before
4839 and pop it afterwards.
4840 Move declaration of ps_output into ps.h.
4841 * ps/psrm.c: New file implementing resource_manager class.
4842 * ps/ps.h: New file declaring ps_output and resource_manager
4844 * ps/devps/zapfdr.ps:
4845 * ps/devps/symbolsl.ps:
4846 * ps/devps/prologue: Use 3.0 conventions.
4847 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4848 Add default definition of BROKEN_SPOOLER_FLAGS.
4849 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4850 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4852 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4854 * etc/grog.pl: New file.
4855 * Makefile (GROG): New variable.
4856 Add GROG to SUBFLAGS.
4857 * etc/Makefile (GROG): New variable.
4858 (install.nobin): Install $(GROG) rather than grog.sh.
4860 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4862 * eqn/special.c (special_box::compute_metrics): Make the input and
4863 output strings the same. Get the new height and depth from the
4864 predefined height and depth registers. Also make subscript kern
4866 (special_box::compute_subscript_kern, special_box::compute_skew):
4869 * eqn/box.c (pointer_box::compute_skew,
4870 simple_box::compute_metrics, box::top_level)
4871 * eqn/text.c (prime_box::compute_metrics,
4872 prime_box::comput_subscript_kern)
4873 * eqn/limit.c (limit_box::compute_metrics):
4874 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4875 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4876 negative numbers in `nr' requests with a leading 0.
4878 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4880 * eqn/special.c: New file.
4881 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4882 Add new rule for simple.
4883 * eqn/lex.c (token_table): Add SPECIAL.
4884 * eqn/box.h: Declare make_special_box.
4885 * eqn/Makefile: Add special.[co].
4887 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4889 * ps/devps/prologue: Possibly set packing to true while defining.
4890 Create grops dictionary here. Initialize local variables before
4891 defining procedures.
4892 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4893 the dictionary stack. Set strokeadjust and overprint to false if
4894 the relevant operators are defined.
4895 (PEND): New procedure.
4896 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4897 prologue. Do everything else in the setup section.
4898 (ps_printer::do_import): Just call PBEGIN and PEND around the
4899 picture. Also push userdict before, and pop it afterwards.
4901 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4903 * troff/node.c (bracket_node::tprint): Brackets were being printed
4906 * macros/tmac.an (SH, SS): Set fill mode.
4908 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4910 * troff/div.c (top_level_diversion::begin_page): Set
4911 high_water_mark to 0.
4913 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4915 * man/mdate.sh: New file.
4916 * man/mdate.c: Deleted.
4917 * man/Makefile: Use mdate.sh instead of mdate.
4920 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4922 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4924 * man/mdate.c: New file.
4925 * man/*.man: Replace modification date by @MDATE@.
4926 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4927 (mdate): New target.
4929 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4930 Remove illegal input characters.
4932 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4934 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4936 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4938 * troff/div.c (begin_page): Change behaviour when
4939 !first_page_begun and !break_flag.
4941 * troff/input.c (do_name_test): Return 0 if argument is empty.
4943 * troff/input.c (read_long_escape_name): Require closing ] to be
4944 at same input level as opening [.
4946 * troff/input.c (read_increment_and_escape_name): New function.
4947 (get_copy, process_input_stack): Use this for \n.
4949 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4951 * troff/div.c (top_level_diversion::begin_page): Ignore the
4952 current value of page_number if !first_page_begun.
4954 * groff.c (main): Fix declaration of buf.
4956 * troff/input.c (do_name_test): New function.
4957 (token::next): Implement \A.
4958 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4959 (token::description, token::add_to_node_list, token::process):
4960 Handle TOKEN_ESCAPE.
4961 * troff/token.h: New token TOKEN_ESCAPE.
4963 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4965 * pic/main.c (do_picture): Allow space before and after filename
4966 following `<'. Check that the filename is not empty.
4968 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4970 * Version 1.01 released.
4972 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4974 * dvi/tmac.dvi: ftr HR to H.
4976 * macros/tmac.e: Round up computation of $r.
4978 * xditview/tmac.X: Don't give up completely in compatibility mode.
4979 Use \n(.s instead of \n[.s].
4981 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4982 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4983 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4984 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4985 short names in the char definitions.
4987 * ps/tmac.ps: Don't give up completely in compatibility mode.
4988 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4989 quote in front of \n(.s. Add u to factors inside \s[...].
4991 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4993 * tty/tmac.tty: Call the nroff request.
4995 * macros/tmac.e ((x, )x): Better definitions that work properly
4997 (@0, @1): Helper macros for (x.
4999 * macros/tmac.e ($s, hl): Use \l rather than \D.
5001 * tty/tmac.tty: Make it work better in compatibility mode.
5002 (pchar): Rename to tty-char.
5004 * macros/tmac.e (@E): New macro.
5005 (r, i, b, rb, bi): Use @E.
5007 * macros/tmac.e (@F): Don't use (;...) syntax.
5009 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
5010 it was modified for groff.
5012 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5014 * macros/tmac.e (<., .>): Removed.
5015 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5017 * macros/tmac.e: Remove check that groff is being used.
5019 * macros/tmac.e (@C): Change families only if using groff; turn
5020 compatibility mode off while changing familes. Save compatibility
5021 mode before changing families and restore it afterwards.
5023 * macros/tmac.e (@h): Remove test for offset + line length.
5025 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
5026 (lo, th, ac): Define to call @S instead of using als.
5028 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5029 the ratio of the vertical spacing to the point size in units
5030 expressed as a percentage. Use these instead of $10r and $10R,
5031 Delete $10r and $10R.
5033 * lib/font.c (font::load): In default computation of space_width,
5034 divide by sizescale. Use scale_round.
5036 * macros/tmac.an (TP): Don't call `nf'.
5037 (an-do-tag): Don't call `fi'.
5039 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
5041 * troff/input.c (process_input_stack): Handle the case where
5042 spaces at the beginning of an input line are followed by a
5045 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
5047 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5048 * groff.sh: Use pic -x with the dvi device.
5050 * dvi/devdvi/FontMakefile (H): Don't use -s.
5052 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5053 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5054 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5057 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
5059 * ps/psfig.diff: New file.
5060 * ps/tmac.psfig: New file.
5062 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
5064 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5065 (]-): Don't call ref*do-tl.
5067 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5069 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5070 (fn@do-FS): Rename to fn*do-FS.
5072 * troff/input.c (transparent_translate): New function.
5073 (process_input_stack): Apply transparent_translate before calling
5074 diversion::transparent_output(unsigned char).
5076 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
5078 * troff/input.c (do_define_macro): Define the macro before calling
5081 * xditview/Makefile: Add DEVICES variable. Change install target
5084 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
5086 * groff.c (run_commands): Handle the possibility that there are
5087 child processes other than those forked by us.
5089 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
5091 * lib/string.c (string::append): New function.
5092 * lib/stringclass.h: Declare it.
5094 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
5096 * eqn/main.c (main): New option -N which sets
5097 no_newline_in_delim_flag.
5098 (do_file): If no_newline_in_delim_flag is set don't allow newlines
5100 * groff.c (main): Pass -N on to eqn.
5101 (help, synopsis): Mention -N.
5102 * groff.sh: Implement -N.
5104 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
5106 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5107 (]-): Call ref*do-tl if ref*need-tl is non-zero.
5108 (XP): Allow as initializer.
5110 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
5112 * troff/env.c (environment::wrap_up_field): If field_spaces are
5113 non-zero and we have a current_tab, subtract padding from
5114 tab_distance. If this makes tab_distance <= 0, use the next tab
5115 stop instead. If there isn't any next tab or it's a left tab,
5116 wrap up the current tab.
5117 (environment::start_field): Initialize tab_precedes_field.
5118 (environment::wrap_up_tab): If there's a current field, update
5119 pre_field_width, field_distance and tab_precedes_field.
5120 * troff/env.h (environment::tab_precedes_field): New member.
5122 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
5124 * ps/ps.c (ps_printer::do_file): New function.
5125 (ps_printer::special): Bind to `file' special.
5126 (ps_printer::do_exec): Set ndefined_styles to 0.
5128 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
5130 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5131 Avoid stripping first character from the start of unrecognized
5132 escapes. Use lex_error instead of error to report errors.
5133 * eqn/lex.c (get_token): Rework handling of escapes.
5134 (lex_error): Move declaration into...
5137 * xditview/xditview.c (main): Make -page option work.
5139 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5141 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
5143 * macros/tmac.s (B2): Correct size of box.
5145 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
5147 * macros/tmac.s (B2): Postpone drawing the box until in the
5148 top-level diversion.
5150 * tty/tmac.tty: Add font translations for C, CR, CW.
5152 * groff.c (synopsis, help): Document -i.
5153 * groff.sh: Implement -i.
5155 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5156 Simplify the construction of SN.
5158 * troff/number.c (parse_term): Give `|' a higher precedence.
5159 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5162 * macros/tmac.s (B2): Use par@finish instead of par@reset.
5164 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
5166 * lib/string.c (string::move): New function.
5167 * lib/stringclass.h: Declare it.
5169 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
5171 * troff/env.c (distribute_space): Add optional argument
5173 (environment::wrap_up_field): Call distribute_space with
5174 `force_forward' argument of 1.
5176 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
5178 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5179 Inline it. Move reallocation into...
5180 (string::grow1): New function.
5181 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5182 dependencies to include library header files.
5183 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5185 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
5187 * macros/tmac.s (@NH): Use the same number registers than -ms does
5188 for the heading level counters. Use the same string that -ms does
5189 for the number for this heading.
5191 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
5193 * lib/new.c (operator new): Cast result of malloc to char *.
5195 * troff/input.c (spring_trap, lookup_request): Add assert that nm
5198 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
5200 * groff.c (main): Support -i.
5202 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
5204 * pic/pic.h: Include <osfcn.h>.
5206 * ps/ps.c: Add declaration of mktemp.
5208 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5209 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5210 argument as union wait *.
5211 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5212 argument to union wait *.
5214 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
5216 * tty/tmac.tty: Add definition of \(co.
5218 * pic/object.c (make_arc): Only increase radius when radius
5219 strictly less than d.
5220 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5223 * troff/env.c (environment::environment(symbol),
5224 environment::environment(const environment *)): Initialize
5227 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
5229 * tbl/main.c (main): Add exit(0).
5231 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5233 * pic/main.c (main):
5234 * eqn/main.c (main):
5235 * tbl/main.c (main):
5236 * etc/soelim.c (main):
5237 * driver/printer.c (printer::~printer):
5238 * troff/node.c (real_output_file::~real_output_file,
5239 real_output_file::flush): Check for errors on stdout.
5241 * most files: Add 1991 to copyright notice.
5243 * macros/tmac.s: Don't test \n(.x and \n(.y.
5245 * troff/input.c (token::next): Rename `escape_char' label to
5246 `handle_escape_char' and `normal_char' label to
5247 `handle_normal_char'.
5249 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
5251 * groff.c (main, synopsis, help): Support -a option.
5252 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
5253 to trflags while parsing options.
5255 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
5257 * troff/number.c (parse_term): With `m', `M' and `n' scale
5258 indicators, convert scale factor to hunits before scaling.
5260 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
5262 * lib/font.c (scale_round): Better test for overflow when n is
5265 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
5267 * tbl/main.c (process_format): Add second argument of type
5268 options*. Change callers. Allow opt->tab_char as well as '\t'
5269 between format items.
5271 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
5273 * macros/tmac.an (PD): With no arguments, make sure register PD is
5275 (TH): Call PD with no argument, instead of setting register PD
5278 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
5280 * Version 1.00 released.
5282 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
5284 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5286 * dvi/devdvi/DESC: Mount CW instead of CR.
5288 * dvi/tmac.dvi: Add definition of \(tm.
5290 * dvi/devdvi/texsy.map: Add lh, and rh.
5291 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5292 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5294 * dvi/devdvi/FontMakefile: Generate H from cmss10.
5295 * dvi/devdvi/Makefile: Install H.
5296 * dvi/devdvi/H: New file.
5298 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
5300 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5303 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
5305 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5307 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5309 * macros/tmac.s (@EN): Handle the case where the equation is empty
5310 but the label is not.
5312 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
5314 * troff/groff.h: New warning category WARN_SPACE.
5315 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5316 WARN_SPACE to warning_table.
5317 (interpolate_macro): Give a warning of type WARN_SPACE if the name
5318 is longer than two characters and is not defined, but the first
5319 two characters do make a defined name.
5321 * PROBLEMS: New file.
5323 * CHANGES: New file.
5324 * README-0.6, README-1.00: Deleted.
5326 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5327 * xditview/devX75/Makefile: Make devX75-12.
5328 * xditview/devX100/Makefile: Make devX100-12.
5330 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5331 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5333 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
5335 * README-0.7: Rename to README-1.00.
5337 * macros/tmac.pic: New file.
5338 * macros/Makefile (install.nobin): Install tmac.pic.
5340 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
5342 * troff/env.c (hyphen_word): Correct the test for whether the
5343 token is a hyphen. Reset npos to 0.
5345 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5347 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
5349 * macros/tmac.s (ds*common-end): Call par*reset.
5351 (par@reset-indent): Deleted.
5353 * macros/tmac.s (@IP): Divert the label.
5355 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
5357 * xditview/draw.c (setGC): Use a line width of .1m rather than
5358 .04m by default; round rather than truncate value.
5360 * tbl/table.c (class empty_entry): New class.
5361 (empty_entry::empty_entry, empty_entry::line_type): New functions.
5362 (table::add_entry): Represent empty entries by objects of type
5364 (table_entry::line_type): Return -1.
5365 (table::determine_row_type): Ignore entries with line_type 0.
5366 Treat type -1 as non-lines.
5368 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
5370 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5371 macros/tmac.s: Rename \(-d to \(Sd.
5373 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
5375 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5376 * xditview/libXdvi/DviChar.c: Likewise.
5377 * dvi/devdvi/texsy.map: Add `<<', `>>'.
5379 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
5381 * troff/div.c (top_level_diversion::begin_page): Call
5382 init_output() if the_output is 0.
5384 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
5386 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5388 (get_copy): Turn \E into ESCAPE_E.
5389 (token::process, asciify): Handle ESCAPE_E.
5391 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5393 (DS): Implement `.DS R'.
5395 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
5397 * macros/tmac.s (FS): New macro.
5399 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5401 * macros/tmac.s (cov*tl-init): Remove after first execution
5402 instead of aliasing to @nop. Call top of page macro explicitly
5403 instead of setting trap; call @init first. Set pg@top as top of
5405 (cov*auto-init): Deleted. Set cov*tl-init instead of
5406 cov*auto-init as top of page trap.
5407 (TL, LP): Do a break instead of calling cov*tl-init.
5408 (cov*print): With RP format but no TL, alias FS and FE to @FS and
5409 @FE; in this case also give a warning and always start another
5410 page. No need to set pg@top here.
5411 (cov*tl-init): Rename to cov*first-page-init.
5413 * macros/tmac.s (RP): Do `.pn 0'.
5414 (cov*tl-init): With RP format don't do `.pn 0'.
5416 * macros/tmac.s (pg@cs-top): Set no space mode.
5418 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5419 (cov*ab-init): Alias TL, AU and AI to these.
5421 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
5423 * macros/tmac.s (@EQ): Move the space before the equation into @EN
5424 (@EN): Do nothing unless \n[dl] is > 0.
5426 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
5428 * pic/object.c (ellipse_object::radius): New function.
5430 * VERSION: Change version to 0.7.
5432 * tbl/table.c (block_entry::do_divert): Declare return type as
5434 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5436 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
5438 * troff/column.c: New file.
5439 * troff/Makefile: Corresponding changes.
5441 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
5444 * troff/div.c (top_level_diversion::space): If the space causes
5445 the first-page transition and springs a trap, truncate the space
5448 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
5450 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5453 * pic/troff.c (troff_output::line_thickness,
5454 troff_output::set_fill): Do a horizontal motion to compensate for
5455 the width of the \D escape sequence.
5457 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
5459 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5462 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
5465 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5466 Supply empty definition.
5467 (text_entry::simple_print, simple_text_entry::simple_print):
5468 Delete declarations.
5469 (table::add_entry): Represent empty entries by objects of type
5472 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
5474 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5476 * tbl/table.c (left_text_entry::add_tab): New function.
5478 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
5481 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
5483 * troff/env.c (environment::start_field): Give an error message if
5484 there is no next tab.
5486 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
5488 * troff/env.c (hyphenate): Skip initial elements with zero
5491 * macros/tmac.s (par@init): Keep VS in points rather than units.
5493 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
5495 * pic/main.c (main): Implement `-c' option.
5496 * pic/output.h: Declare make_tpic_output().
5497 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5499 (tpic_output): New class.
5500 (tpic_output::tpic_output, tpic_output::set_pen_size,
5501 tpic_output::command, make_tpic_output): New functions.
5503 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
5505 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
5506 if they're not already defined.
5507 * tbl/table.c (init_output): Don't test \n(.g.
5509 * troff/input.c (do_if_request): Delete `g' condition. Recognize
5510 `d', `r' and `c' conditions even in compatibility mode.
5512 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
5514 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5517 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
5519 * troff/env.h (environment::prev_line_interrupted): New member.
5520 (environment::get_prev_line_interrupted): New function.
5521 * troff/env.c (environment::newline): Set prev_line_interrupted.
5522 (environment::environment(const environment *),
5523 environment::environment(symbol)): Initialize
5524 prev_line_interrupted.
5525 * troff/input.c (process_input_stack): Don't give special
5526 treatment to space and newline at the beginning of the line if the
5527 previous line was interrupted.
5529 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
5531 * eqn/eqn.y: Disallow PRIME by itself.
5532 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5534 (def_table): Remove definition of '. Define prime to be `.
5536 * eqn/eqn.y: Split off part of rule `script' into a new rule
5539 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
5541 * macros/tmac.s ({, }): New string aliases.
5543 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
5545 * README-0.7: New file.
5547 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
5549 * macros/tmac.s: New file.
5550 * man/groff_ms.man: New file.
5551 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5552 * Makefile.bd: Similarily.
5553 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5554 definition of TMAC_S.
5555 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5556 * macros/TODO: New file.
5558 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
5560 * troff/env.c (right_justify): New function.
5561 (init_env_requests): Bind this to request "rj".
5562 (center_lines): Set right_justify_lines to 0. If we get a bad
5563 integer, center 1 line.
5564 (environment::environment(symbol), environment::environment(const
5565 environment *)): Initialize right_justify_lines.
5566 (environment::get_right_justify_lines): New function.
5567 (init_env_requests): Bind this to number_register ".rj".
5569 * troff/env.c (environment::choose_breakpoint): Implement
5570 hyphenation_margin and hyphenation_space.
5571 (environment::get_hyphenation_space,
5572 environment::get_hyphenation_margin): New functions.
5573 (init_env_requests): Bind these to .hys and .hym.
5574 (hyphenation_space_request, hyphenation_margin_request): New
5576 (init_env_requests): Bind these to hys and hym.
5577 (environment::environment(symbol), environment::environment(const
5578 environment *)): Initialize hyphenation_margin and
5580 * troff/env.h: Corresponding changes to class environment.
5582 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
5584 * troff/div.c (blank_line): Always do a break.
5586 * eqn/box.c (do_text): Turn off escapes while appending text to
5589 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
5591 * troff/input.c (while_break_request, while_continue_request): New
5593 (init_input_requests): Bind these to "break" and "continue".
5594 (while_depth, while_break_flag): New variables.
5595 (while_request): Update while_depth. Break out of loop if
5596 while_break_flag is set.
5598 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
5600 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5603 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
5605 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
5607 * stringify: New file.
5608 * Makefile (groff.o): Use stringify.
5610 * xditview/tmac.X: Remove definition of \(rn.
5611 * xditview/libXdvi/DviChar.c: Remove radicalex from
5614 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
5616 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5617 (alphabetic_block_entry::alphabetic_block_entry,
5618 alphabetic_block_entry::divert, alphabetic_block_entry::print):
5620 (block_entry::divert): Split off body into ...
5621 (block_entry::do_divert): If the block is alphabetic, subtract 2n
5622 from the line length; also update the span width to dl+2n, and the
5623 alphabetic span width to dl.
5625 * driver/input.c (do_file): While reading argument to D command,
5626 when expanding buffer, multiply szp by sizeof(int) rather than 2
5627 in the argument to memcpy.
5629 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5630 width of alphabetic columns.
5632 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5634 * troff/node.c (lookup_family): Supply second argument to lookup.
5636 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5637 search, return immediately if v is 0.
5639 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5640 (troff_output::start_picture): Set this reg.
5641 (troff_output::end_picture): Remove this reg
5642 * eqn/box.c (box::extra_space): Don't produce `\x's if
5643 EQN_NO_EXTRA_SPACE_REG is defined.
5645 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5646 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5649 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5651 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5654 * troff/div.c (top_level_diversion::top_level_diversion):
5655 Initialize page_number to 0.
5657 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5659 * groff/troff (environment::environment(const environment *)):
5660 Initialize name to e->name, rather than "anonymous".
5662 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5664 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5665 requested_page. Split middle part into ...
5666 (FindPage): New function.
5667 (SetValues): If we don't yet know the last page, and the requested
5668 page is greater than the current page, call FindPage.
5669 Update the font_map_string before doing this.
5671 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5672 Translate \(lh and \(rh into left and right double arrows.
5674 * troff/node.c (class hyphen_inhibitor_node): New class.
5675 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5676 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5677 hyphen_inhibitor_node::type,
5678 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5679 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5680 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5683 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5685 * troff/node.h (dummy_node::get_hyphenation_type,
5686 transparent_dummy_node::get_hyphenation_type): Declare them.
5687 * troff/node.c: (dummy_node::get_hyphenation_type,
5688 transparent_dummy_node::get_hyphenation_type): New functions.
5690 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5692 * xditview/libXdvi/draw.c: If M_PI not defined after including
5693 math.h, then define it.
5695 * xditview/Makefile: Add definition of AR. Pass it to the submake
5697 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5699 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5701 * troff/dictionary.h (object_dictionary::alias): Declare return
5703 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5704 if the old name was defined.
5705 * troff/input.c (alias_macro): Give a warning if the old name was
5707 * troff/reg.c (alias_reg): Likewise.
5709 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5711 * troff/input.c (token::next): Delete implementation of \R.
5713 * macros/Makefile: Strip comments from tmac.e while installing it.
5715 * troff/input.c: New variable `nroff_mode'.
5716 (troff_request, nroff_request): New functions.
5717 (init_input_requests): Bind `troff' and `nroff' to troff_request
5719 (do_if_request): Compute results of t and n conditions from
5722 * text/text.c (split_text): Fix typo in >=.
5724 * eqn/lex.c: Add definition of `==' to def_table.
5726 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5728 * pic/tex.c (tex_output::start_picture): Change the definitions of
5729 \graph and \graphtemp so that they work properly with Plain TeX.
5731 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5732 argument to `ar' is not less than the first.
5734 * pic/pic.y: Allow a comma between elements of the variable list
5735 in the argument to `reset'.
5737 * pic/object.c (arc_object::arc_object): Fix computation of
5740 * eqn/main.c (main): Add exit(0).
5742 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5744 * troff/div.c (begin_page): Test no_space_mode after doing the
5745 break, but still push the page ejector cookie before doing the
5746 break. Also set the next page number after doing the break.
5748 * xditview/xditview.c (NewFile): Don't set the title and icon name
5749 if this is the first file and its name is `-'.
5750 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5751 the X75 and X100 devices.
5752 (main): If a device has the XT_OPTION flag set and there's exactly
5753 one file argument, pass the driver -xrm and -title options to set
5754 the icon name and window title to the name of the file.
5756 * troff/env.c (environment_switch): If there was an argument but
5757 it wasn't a valid number or name, then pop an environment but
5758 don't give an error message on underflow.
5760 * troff/number.c (start_number): Correct spelling in error message.
5762 * troff/input.c (token::delimiter): Don't print an error message
5765 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5766 ParseDrawFunction if dw->display_enable is true.
5768 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5770 * pic/pic.y: Parse text positioning like normal attributes, so as
5771 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5772 positioning attribute.
5774 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5776 * tbl/main.c (process_data): When in state START while reading a
5777 text block, don't change to state MIDDLE if c is a newline.
5779 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5781 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5782 so as to avoid shadowing parameter.
5784 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5786 * tbl/table.c (trim_space): Deleted.
5787 (table::add_entry): Don't call trim_space.
5789 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5791 * VERSION: Change version to 0.6.
5793 * troff/number.c (parse_expr): Make == work.
5795 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5797 * man/grog.man: New file.
5798 * man/Makefile: Add grog.n to MAN1PAGES.
5799 * etc/grog.sh: New file.
5800 * etc/Makefile: Install grog.sh as grog.
5802 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5804 * troff/input.c (token::next): Implement \E.
5806 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5808 * xditview/tmac.X: Change font translations to match tmac.ps.
5810 * troff/input.c (non_empty_name_warning): Don't give a warning if
5811 `\{' terminates the name.
5813 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5815 * ps/devps/symbol.diff: New file.
5816 * ps/devps/FontMakefile: Mention symbol.diff.
5818 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5820 * troff/node.c (font_position): Use get_long_name to read the
5823 * troff/env.c (environment_switch): If we get a number that's < 0
5824 or >= NENVIRONMENTS, treat it like a name.
5825 Change NENVIRONMENTS to 10.
5827 * troff/groff.h: Remove definition of FONTS_MAX.
5828 * troff/node.h (class font_family): Make map a pointer instead of
5829 an array. Add a map_size member. Make it a class. Make nm const
5830 and public. Make invalidate_fontno a friend.
5831 * troff/node.c: Define font_table_size. Make font_info a pointer
5832 rather than an array.
5833 (class troff_output_file): Allocate font_position dynamically. Add
5834 nfont_positions member.
5835 (troff_output_file::set_font): Grow font_position if necessary.
5836 (troff_output_file::~troff_output_file): Delete font_position.
5837 (troff_output_file::troff_output_file): Allocate font_position.
5838 (grow_font_table): New function.
5839 (troff_output_file::really_begin_page,
5840 troff_output_file:really_copy_page): Use nfont_positions rather
5842 (mount_font_no_translate, mount_style): Call grow_font_table if
5844 (font_family::font_family): Allocate map.
5845 (font_family::make_definite): Grow map if necessary. Use
5846 font_table_size instead of FONTS_MAX.
5847 (font_family::~font_family): New function.
5848 (invalidate_fontno): Use font_family::map_size.
5849 (get_fontno, env_space_width, env_half_narrow_space_width,
5850 env_narrow_space_width, symbol_fotno, is_good_fontno,
5851 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5853 (next_available_font_position): Never return 0.
5855 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5857 * ps/tmac.ps: Add font translations for compatibility with dpost.
5859 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5861 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5862 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5863 Move definitions baseline_sep, shift_down, column_sep,
5864 matrix_side_sep into...
5865 * eqn/box.c: Add them to param_table.
5866 * eqn/pbox.h: Add declarations to pbox.h.
5868 * troff/input.c (set_string): Cast value to unsigned char *.
5870 * troff/token.h (process_input_stack): Declare it static before
5871 declaring it a friend.
5873 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5875 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5877 * dvi/devdvi/EX: Regenerate.
5879 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5882 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5884 * eqn/lex.c: In defaults_table, make definition of `dot' call
5885 `dot_def'. Don't explicitly make it roman. Similarily for other
5888 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5890 (for_input::get, for_input::peek): Use this.
5891 (do_for): Add by_is_multiplicative argument.
5892 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5893 Change semantic value of optional_by to be a double plus a flag
5894 saying whethet the by clause is multiplicative.
5896 * eqn/lex.c (get_delimited_text): Remember location of start of
5897 definition. Improve error handling when EOF is encountered.
5899 * lib/font.h: Rename handle_x_command to
5900 handle_unknown_font_command.
5901 * lib/font.c (font::load): Call handle_unknown_font_command for
5902 any unknown command in the font description file. Don't call
5903 handle_x_command. Include the name of the command in the argv.
5904 Improve message for unknown command after kernpairs or charset
5906 * ps/ps.c (ps_font::handle_x_command): Rename to
5907 handle_unknown_font_command. Remove message about `x download'
5908 command. Give error message for wrong number of arguments.
5909 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5910 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5911 handle_unknown_font_command. Give an error message for wrong
5912 number of arguments. Rename design_size to designsize.
5913 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5914 checksum', `designsize' instead of `design_size'.
5916 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5918 * eqn/*.[chy]: Change underaccent to uaccent.
5920 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5921 give it the same precedence as ACCENT.
5922 * eqn/other.c (make_underaccent_box): New function.
5923 * eqn/box.h: Declare it.
5924 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5927 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5929 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5930 (parse_init): Call reset_all.
5931 (define_variable): When defining scale reset only those
5932 pre-defined variables that are scaled.
5933 (defaults_table): Add `scale' as non-scaled value.
5935 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5936 together with the text; allow any number of positioning words;
5937 allow center as a positioning word.
5939 * pic/object.c (output::compute_scale): Get picture maximum height
5940 and width from variables called maxpswid and maxpsht.
5941 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5943 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5945 * pic/object.c (object_spec::make_text): Multiply textht by number
5948 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5950 (do_sprintf): New function.
5951 (pic.gperf): Add sprintf token.
5952 (text, sprintf): New rules.
5954 * pic/pic.y: `rand()' with no arguments returns a random number
5957 * pic/pic.y: Allow a bare expression to be an attribute: change
5958 precedences to support this. Change optional_ordinal rule to
5959 optional_ordinal_last to avoid reduce/reduce conflict.
5960 * pic/object.c (object_spec::object_spec): Initialize direction.
5962 * pic/pic.y: Implement ^ operator meaning exponentiation.
5964 * troff/node.h: Add default argument to mount_font.
5965 * troff/node.c (font_position): Read an optional third argument
5966 giving the external_name.
5967 (mount_font): Add optional argument giving the external_name.
5968 (mount_font_not_translate): Have additional argument giving
5969 external name. Use this name to load the font. Pass both names
5970 to font_info::font_info.
5971 (font_info::font_info): Have additional argument giving
5973 (class tfont): New member external_name.
5974 (font_info::get_tfont): Use external name to construct tfont_spec.
5976 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5978 * eqn/lex.c (init_table): Add argument giving device. Define
5979 name of device to be "1".
5980 (do_ifdef): Counts as true if the argument has been defined with
5982 * eqn/main.c (main): Call init_table with device argument. Make
5983 device local to main.
5984 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5987 * pic/lex.c (get_delimited): Allow text to be delimited by
5988 matching {}s. Don't recognize ending delimiter within a string.
5990 * troff/input.c (get_delim_name): New function.
5991 (token::next): Implement \C.
5993 * lib/font.c (font::load): Grok ---. Add an alias for each
5994 character based on its code.
5995 (font::get_code_width): Deleted.
5996 * lib/font.h (class font): Declare font::number_to_index().
5997 Remove declaration of font::get_code_width.
5998 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5999 to indices of named characters.
6000 (font::number_to_index): New function.
6001 * troff/input.c (font::number_to_index): New function.
6002 (get_charinfo_by_number, charinfo::get_number,
6003 charinfo::set_number): New functions.
6004 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6005 (token::process, token::description, token::get_char,
6006 token::add_to_node_list, token::operator==): Handle
6007 TOKEN_NUMBERED_CHAR.
6008 * troff/charinfo.h: Declare get_charinfo_by_number,
6009 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
6011 (charinfo::numbered): New function.
6012 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6013 * troff/env.h (class environment): Remove declaration of ...
6014 * troff/env.c (environment::make_numbered_char_node): Deleted.
6015 * troff/node.c (make_numbered_node): Deleted.
6016 (class numbered_glyph_node): Remove.
6017 (troff_output_file::put_char_width, troff_output_file::put_char):
6018 Handle numbered chars.
6019 (troff_output_file::numbered_char): Removed.
6020 (tfont::get_code_width): Removed.
6021 (make_glyph_node): Don't search special fonts for numbered
6023 * troff/node.h: Remove declaration of make_numbered_node.
6024 * driver/input.c (do_file): Handle N command.
6025 * driver/printer.h: Add declaration of ...
6026 * driver/printer.c (printer::set_numbered_char): New function.
6027 * dvi/tfmtodit.c (main): Generate unnamed entries.
6028 * ps/devps/afmtodit: Likewise.
6029 * xditview/xtotroff.c (MapFont): Likewise.
6030 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6032 * tbl/main.c (process_format): If multiple widths are specified
6033 for a column but all the widths are the same, don't give an error
6036 * tbl/table.c (table::do_row): If the current row is all lines and
6037 the stuff doesn't contains a line, mark the top of the row after
6038 printing stuff before the row. If the current row is not all
6039 lines and the stuff doesn't contain a line, don't unnecessarily
6040 mark the top of the row before printing the stuff.
6042 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
6044 * troff/groff.h: Remove MAX_PATH.
6045 * troff/input.c (open_file): Dynamically allocate space for the
6047 (open_mac_file, process_macro_file): Corresponding changes.
6049 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
6051 * troff/node.h (class output_file): Make copy_file pure. Add
6052 vspace method ifdef COLUMN. Add is_printing method.
6053 * troff/node.c: Add class printing_reg. Add class
6054 real_output_file. Derive other output_file classes from
6055 real_output_file; in these classes rename begin_page to
6056 really_begin_page, print_line to really_print_line, copy_file to
6057 really_copy_file, transparent_char to really_transparent_char.
6058 Move output_file::flush to real_output_file. Add printing member
6059 to class output_file.
6060 * troff/div.h: Remove printing member from top_level_diversion.
6061 Add vspace member function to class diversion ifdef COLUMN. Add
6062 some declarations ifdef COLUMN.
6063 * troff/div.c (top_level_diversion::copy_file,
6064 top_level_diversion::transparent_output,
6065 top_level_diversion::output): Don't test printing member before
6067 * troff/input.c: Handle initial variable_space_request ifdef
6069 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6072 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
6074 * troff/div.c (diversion::need): Make any space forced. If we
6075 sprung a trap, set truncated_space to minus the distance to the
6076 trap and set needed_space to the amount that was needed.
6077 (top_level_diversion::space): A forced space turns no_space_mode
6079 (class constant_vunits_reg): New class.
6080 (init_div_requests): Implement number registers .trunc and .ne
6081 using constant_vunits_reg.
6082 (class truncated_space_reg): Deleted.
6084 * troff/div.h: Don't have a no_space_mode member in diversion.
6085 Instead have it in top_level_diversion.
6086 * troff/div.c (diversion::diversion): Don't initialize
6088 (top_level_diversion::top_level_diversion): Initialize
6090 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6091 (macro_diversion::output): Don't clear no_space_mode.
6093 * troff/input.c (diverted_space_node::reread): Don't call
6094 environment::do_break. In fill mode, act like a blank line.
6095 (diverted_copy_file_node::reread): Don't call
6096 environment::do_break.
6098 * troff/div.c (blank_line): New function.
6099 * troff/div.h: Declare it.
6100 * troff/input.c (process_input_stack): Call it.
6102 * troff/div.c (truncated_space_reg::get_string): New function.
6103 (init_div_requests): Bind to .trunc.
6104 (space_request, top_level_diversion::space,
6105 top_level_diversion::output, macro_diversion::space,
6106 macro_diversion::output): Update truncated_space.
6107 (macro_diversion::output): Redo calculations when trap sprung.
6108 (macro_diversion::output, macro_diversion::space): No need for
6111 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6112 after truncating post line spacing.
6114 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
6116 * ps/devps/prologue (MF, SF): Make them work even if setfont is
6117 defined as a procedure rather than as an operator.
6119 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
6121 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6123 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
6125 * troff/div.c (top_level_diversion::output): Merge
6126 output_file::print_line and output_file::end_of_line member
6128 * troff/div.h (class output_file):
6129 * troff/node.c (troff_output_file::print_line,
6130 troff_output_file::end_of_line, output_file::end_of_line,
6131 ascii_output_file::print_line, suppress_output_file::print_line):
6132 Corresponding changes.
6134 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
6136 * troff/input.c (token::next): Don't give a warning for `\.'.
6138 * troff/env.c (environment::get_center_lines): New function.
6139 (init_env_requests): Bind number register .ce to it.
6140 * troff/env.h: Declare it.
6141 * tbl/table.c (table::init_output): Define reset macro to restore
6142 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
6144 (table::print): If center option not given, then imply center
6145 option if SAVED_CENTER_REG > 0.
6147 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
6149 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6150 Troff.ps from DOWNLOAD.
6152 * troff/Makefile: Change comment in DEFINES to avoid confusing
6155 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6156 code. Don't try to catch errors with stopped.
6157 (check_line_lengths): New function.
6158 * ps/devps/prologue (EXEC): Deleted.
6159 (EBEGIN, EEND): New procedures.
6161 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
6163 * troff/input.c: Include request.h before node.h.
6164 * troff/node.c: Likewise.
6165 * troff/env.c: Likewise.
6166 * troff/div.c: Likewise.
6167 * troff/node.h (class special_node): Store argument as a macro
6168 rather than a char *.
6169 * troff/node.c (special_node::special_node, special_node::copy):
6171 (special_node::~special_node): Deleted.
6172 (special_node::tprint): Deleted.
6173 (special_node::tprint_start, special_node::tprint_end,
6174 special_node::tprint_char): New functions.
6175 (troff_output_file::special): Deleted.
6176 (troff_output_file::start_special, troff_output_file::end_special,
6177 troff_output_file::special_char): New functions.
6178 * troff/input.c (special_node::tprint): New function.
6179 (do_special): Use macro not char *.
6180 (do_transparent_macro): Deleted.
6181 (token::next): Don't call do_transparent_macro.
6183 * troff/input.c (token::next): Add 'Y' case.
6184 (do_transparent_macro): New function.
6185 * troff/node.c (troff_output_file::special): Handle newlines with
6186 argument using new continuation convention.
6187 * driver/input.c (get_string): Cope with continuation convention.
6188 (do_file): Don't call skip_line after calling get_string(1).
6189 * ps/ps.c (ps_printer::special, ps_printer::do_import,
6190 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6192 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6195 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
6197 * troff/input.c (asciify): By default, illegal input characters
6198 should return empty string.
6200 * troff/input.c (copy_file): Handle first page transition like title.
6201 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6203 * troff/input.c (token::next): Improve error message for EOF after
6205 (input_char_description): New function.
6206 (get_char_for_escape_name): Use input_char_description.
6207 (token::next): Warn about unrecognized escape sequences.
6208 (warning_table): Add WARN_ESCAPE.
6209 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6212 * troff/token.h: Remove declaration of process_input_stack.
6214 * troff/input.c: Remove declaration of init_hyphen_requests.
6215 * troff/request.h: Correct spelling in declaration of same.
6217 * troff/input.c (token::next): Check whether escape_char is 0.
6219 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
6221 * groff.c (main, usage, help): Implement -P and -L options.
6222 * groff.sh: Likewise.
6224 * troff/input.c (token::next): Use some gotos to avoid code
6227 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6228 Avoid calling symbol::symbol if name empty.
6230 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
6232 * troff/input.c (init_input_requests): Make \n(.x return the major
6233 version number and \n(.y return the minor version number.
6234 * troff/Makefile: Construct file majorminor.c defining
6235 major_version and minor_version automatically from ../VERSION.
6237 * troff/node.c (class glyph_node): Make operator new and operator
6239 (class ligature_node): Similarily.
6241 * troff/input.c (operator==(const macro &, const macro &)): New
6243 (non_interpreted_node::same): Use this.
6244 (string_iterator::string_iterator): Make macro& argument const.
6246 * troff/input.c (input_iterator::get): New function. Don't make
6247 asciify_macro or class non_interpreted_node friends of class
6249 (non_interpreted_node::interpret): Use input_iterator::get.
6250 (asciify_macro): Likewise.
6252 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6253 ~non_interpreted_node): Deleted.
6254 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6257 * troff/symbol.h: Make all symbol member functions const.
6259 * lib/strtol.c: New file.
6260 * lib/Makefile: Add strtol.c.
6261 * Makefile: Define STRTOL as strtol.o to include strtol in
6264 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
6266 * pic/troff.c (troff_output::simple_circle): Divide by scale.
6268 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
6270 * troff/input.c (do_special): Use input_level.
6272 * troff/token.h (TOKEN_BACKSPACE): New token.
6273 (token::backspace): New function.
6274 * troff/input.c (token::description, token::next, token::process):
6275 Grok TOKEN_BACKSPACE.
6276 (do_special): Turn TOKEN_BACKSPACE back into \b.
6278 * troff/token.h (token::leader): New function.
6279 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6281 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6283 * troff/input.c (do_special): Use token::description in error
6286 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
6288 * troff/input.c (decode_args): Combine quoted and
6289 quote_input_level variables. Make it a for (;;) loop.
6291 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6293 * troff/input.c (read_long_escape_name): The test for whether to
6294 expand buffer was off by 1.
6295 (read_string): Similarily.
6297 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
6299 * troff/input.c: Use `const int' rather than `static const int'.
6301 * troff/div.h (diversion::copy_file): Declare as pure virtual.
6302 (macro_diversion::copy_file): New function.
6303 * troff/node.h: New class diverted_copy_file_node.
6304 * troff/node.c: Implement it.
6305 * troff/input.c (copy_file): Use diversion::copy_file. Handle
6306 first page transition by pushing a diverted_copy_file_node.
6307 * troff/input.c (token::next, process_input_stack): Don't handle
6310 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
6312 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6313 whether space widths need adjusting.
6315 * troff/charinfo.h: Generalize translated_to_space to
6316 special_translation so as to allow translation to \&.
6317 * troff/input.c (translate): Allow translation to \&.
6318 (charinfo::*): Corresponding changes.
6319 * troff/node.c (make_node, node::add_char): Corresponding changes.
6320 * troff/node.h (dummy_node::dummy_node): Allow optional first
6323 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6324 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6326 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6327 TOKEN_REQUEST with an argument of TITLE_REQUEST.
6328 (token::process): Grok that.
6329 * troff/input.c (copy_file): Handle first page transition like
6330 title by pushing a COPY_FILE_REQUEST cookie.
6331 (token::next, process_input_stack): Grok that.
6332 * troff/node.h (output_file::copy_file): Add x and y arguments.
6334 * troff/div.c (top_level_diversion::copy_file): Supply them.
6335 * troff/node.c (troff_output_file::copy_file): Add x and y
6336 arguments; moveto specified position. Invalidate font_position
6337 array after copying file.
6338 (output_file::copy_file): New function.
6339 (suppressed_output_file::copy_file, ascii_output::copy_file):
6341 * troff/input.c (transparent_file): New function.
6342 (init_input_requests): Bind to "trf".
6343 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6344 (process_input_stack): Likewise.
6346 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6348 * troff/node.c (init_node_requests): New number registers .kern
6349 pointing to global_kern_mode, and .lg pointing to
6350 global_ligature_mode.
6352 * troff/node.c (ligature): Don't change it if we get a bad
6355 * troff/input.c (do_define_string): Don't strip tabs.
6357 * troff/input.c (asciify_macro): Make the string_iterator auto.
6359 * troff/node.c (init_font_requests): Rename to...
6360 (init_node_requests):
6361 * troff/node.h: Change declaration.
6362 * troff/input.c (main): Change call.
6364 * troff/input.c (node::reread, diverted_space_node::reread): New
6366 (process_input_stack): Call reread rather than
6367 get_diverted_space_node.
6368 * troff/node.c (node::get_diverted_space_node,
6369 diverted_space_node::get_diverted_space_node): Removed.
6370 * troff/node.h: Declare reread methods instead of
6371 get_diverted_space_node methods. Make `n' member private.
6372 * troff/input.c: (token::diverted_space): Removed.
6373 * troff/token.h: Removed declaration.
6376 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
6378 * eqn/script.c (script_box::compute_metrics): Don't let
6379 SUP_RAISE_FORMAT become negative.
6381 * tbl/table.c (table::do_row): Entries that don't end in the
6382 this row shouldn't make the row non-blank.
6384 * tbl/table.c (table::make_columns_equal): Only set the width of
6385 columns which are marked as equal.
6387 * tbl/main.c (process_data): Before issuing excess data error,
6388 if last character was a newline unget it; then get it again after
6389 the error. Also include the contents of the entry in the message.
6391 * groff.c: New file.
6392 * Makefile: Build groff from groff.c. Make it possible to use
6393 either groff.sh or groff.c as groff.
6394 * Makefile.bd: Similarily.
6396 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
6398 * groff.sh: Don't delay expansion of $@ in assignment to files.
6399 Remove occurrences of \".
6401 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
6403 * all Makefiles: Simplify and rearrange.
6405 * Makefile: Handle fmod like malloc.
6406 * lib/Makefile: Similarily.
6407 * lib/fmod.c: Remove #ifdef NEED_FMOD.
6409 * Makefile: Rename OPTIMISE to OPTIMIZE.
6411 * groff.sh: Remove assignment to PATH.
6412 * Makefile: Remove SHPATH variable.
6413 * Makefile.bd: Similarily.
6415 * groff.sh: Add -V option to print the pipeline instead of
6418 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
6420 * lib/font.c: Split off file searching into ...
6421 * lib/fontfile.c: New file.
6423 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6425 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
6427 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6428 Also change misleading comment.
6429 (table::do_vspan): Change similarily misleading comment.
6430 * tbl/main.c (process_data): A format row with an explicit `s'
6431 uses up a data line, even if all the other columns are `_' or `='.
6433 * troff/input.c (token::description): Fix description of
6434 TOKEN_DUMMY and TOKEN_EMPTY.
6436 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
6438 * groff.sh: Fix description of -Z in help message.
6440 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
6442 * pic/object.c (object_spec::make_object): Allow negative and zero
6444 * pic/pic.y: Give linethick default value of -1.0.
6445 * pic/troff.c (troff_output::troff_output): Initialize
6446 last_line_thickness to BAD_THICKNESS.
6447 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6448 (troff_output::line_thickness): Canonicalize negative thicknesses
6449 to RELATIVE_THICKNESS.
6450 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6451 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6453 (tex_output::start_picture): Set pen_size to -2.0.
6455 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6456 0, then use 0 linewidth.
6457 (ps_printer::ps_printer): Initialize line_thickness to -1.
6459 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6461 * ps/devps/symbolchars: Remove `or'.
6462 * ps/tmac.ps: Implement \(or with .char.
6464 * ps/devps/symbolchars: Move most characters into textmap.
6465 * ps/devps/textmap: Add names for troff bracket characters. Remove
6468 * ps/devps/TSymbol.ps: Removed.
6469 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6470 * ps/tmac.ps: Do with .char what TSymbol did.
6471 * ps/devps/download: Remove TSymbol.
6473 * ps/devps/T: Removed.
6474 * ps/devps/Troff.ps: Removed.
6475 * ps/devps/Troff.afm: Removed.
6476 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6477 * ps/devps/download: Remove Troff.
6478 * ps/devps/FontMakefile: Remove T target.
6479 * ps/devps/DESC-A4: Remove T from font list.
6480 * ps/devps/DESC-letter: Likewise.
6482 * troff/input.c (macro_to_node): Rename to ...
6483 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
6484 character's definition while processing it.
6485 * troff/node.c (node::add_char, make_node): Change calls to
6486 macro_to_node accordingly.
6488 * troff/input.c (token::next): Translate \_ to \(ul.
6490 * tty/devascii/R.proto: Add `|'.
6491 * tty/devlatin1/R.proto: Likewise.
6493 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
6495 * man: Put the version number in all the man pages.
6497 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
6499 * Makefile.bd: New file.
6500 * README.bd: New file.
6502 * VERSION: New file.
6503 * lib/version.c: Removed.
6504 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6507 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6508 environment variable.
6510 * all Makefiles: Split install target into install.bin for
6511 binaries, and install.nobin for everything else.
6512 * Makefile: Add bindist target.
6514 * man/afmtodit.man: New file.
6515 * man/Makefile: Add afmtodit.n to MAN1PAGES.
6516 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6518 * ps/Makefile: Pass BINDIR to make install in devps.
6520 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6521 the space character.
6523 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6525 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
6527 * ps/ps.c: Redo font downloading.
6528 * ps/devps/download: New file.
6529 * ps/devps/Makefile: Add download to DEVICEFILES.
6530 * ps/devps/afmtodit: Remove -d option.
6531 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6532 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6533 * ps/devps/zapfdr.ps: Likewise.
6534 * ps/devps/TSymbol.ps: Likewise.
6536 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
6538 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6540 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
6542 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6543 then strip the first line if it starts with %.
6544 * Makefile: Add a comment about this.
6546 * man/tfmtodit.man: New file.
6547 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6548 * dvi/Makefile: Install tfmtodit in BINDIR.
6550 * dvi/tfmtodit.c (usage): Mention -v option.
6552 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
6554 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6555 * troff/node.c (troff_output_file::transparent_char): Don't call
6558 * eqn: Add check_tabs method to most box classes.
6559 * eqn/box.c (box::top_level): Call check_tabs.
6561 * eqn/script.c (script_box::output): Use \Z.
6562 * eqn/limit.c (limit_box::output): Use \Z.
6564 * eqn/box.c (box::top_level): Use itoa.
6566 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
6568 * dvi/tmac.dvi: Add font translations for CR, C, TT.
6569 * dvi/devdvi/Makefile: Don't make links to CW.
6571 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6573 * xditview/tmac.X: Likewise.
6575 * troff/node.c: Add font translation feature.
6576 (get_font_translation): New function.
6577 (symbol_fontno): Translate the font name.
6578 (mount_font_no_translate): Rename to mount_font to this.
6579 (mount_font): New function.
6580 (font_family::make_definite): Call mount_font_no_translate instead
6582 (mount_style): Translate the font name.
6583 (font_translate): New function.
6584 (init_font_requests): Bind "ftr" to font_translate.
6586 * ps/devps/prologue (SN): New procedure that rounds a position to
6587 the nearest (pixel + (.25,.25)).
6588 (DL): Use SN to round endpoints.
6590 * lib/version.c: Changed version to 0.5.
6592 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
6594 * Makefile: Move definition of PAGE to the very beginning, so that
6595 people are less likely to miss it.
6597 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
6599 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6601 * troff/env.c (environment::choose_breakpoint): Make `can't find
6602 breakpoint' error a warning of type WARN_BREAK. Change message to
6604 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6606 * troff/input.c: Add WARN_BREAK to warning_table. Include
6607 WARN_BREAK in DEFAULT_WARNING_MASK.
6609 * tty/tmac.tty: Add definition of \(+-.
6611 * groff.sh: Remove `--' option to set command.
6613 * dvi/devdvi/texsy.map: Remove duplicate md entry.
6615 * ps/devps/eqnchar: Better definition of cdot using md.
6616 * dvi/devdvi/eqnchar: Likewise.
6617 * xditview/devX100/eqnchar: Likewise.
6618 * xditview/devX75/eqnchar: Likewise.
6619 * eqn/lex.c: Add definition of cdot.
6621 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
6623 * troff/input.c (get_optional_char): New function.
6624 * troff/input.c (set_page_character): Use get_optional_char(),
6625 rather than has_arg() and tok.get_char(1).
6626 * troff/env.c (tab_character, leader_character, hyphen_char,
6627 field_characters): Likewise.
6628 (margin_character): Likewise. Also always delete the
6629 margin_character_node.
6631 * troff/input.c (token::get_char): Use token::description.
6633 * troff/input.c (has_arg): Don't skip over tab and \}.
6634 * troff/number.c (start_number): Give a warning if the number
6635 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6637 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6639 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6641 (get_name, get_long_name): Use these. Rename `warn' argument to
6644 * troff/node.c (get_fontno): Test that the symbol is not null.
6646 * troff/input.c (token::description): New function.
6647 * troff/number.c (parse_term): Use token::description in `numeric
6648 expression expected' message.
6649 * troff/groff.h: Add WARN_MISSING.
6650 * troff/number.c (start_number): New function.
6651 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6652 get_incr_number): Use start_number().
6653 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6655 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6656 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6658 * troff/input.c (token::get_char): Use WARN_MISSING.
6659 * troff/input.c (token::delimiter): Use token::description.
6660 * troff/env.c (environment_switch): Back out Aug 3 change.
6661 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6663 * troff/token.h (token::tab): New function.
6664 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6665 * troff/reg.c (alter_format): Likewise.
6666 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6668 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6670 * troff (most files): Redo warnings. Divide warnings into various
6671 categories; warning() has an additional first argument indicating
6672 the category it falls into.
6673 * troff/input.c (main): -w now takes an argument. New option -W.
6674 (enable_warning, disable_warning): New functions.
6676 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6677 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6679 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6681 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6682 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6683 * xditview/devX75/eqnchar: Likewise.
6684 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6686 * eqn/other.c: When bar or over applies to a single character
6687 don't produce an overline_box or an underline_box. Instead produce
6688 an accent_box or an underaccent_box, with the accent a line
6689 whose width is accent_width. New classes underaccent_box,
6690 overline_char_box and underline_char_box.
6691 * eqn/box.h: Move overline_box, underline_box, accent_box class
6692 declarations into eqn/other.c. Add declarations of
6693 make_underline_box, make_overline_box, make_accent_box.
6694 * eqn/eqn.y: Call make_overline_box, make_underline_box
6695 make_accent_box instead of constructors.
6696 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6698 * eqn/other.c: Add accent_box::~accent_box.
6699 * eqn/box.h: Declare it.
6701 * groff.sh: With -Tps, use eqn -D.
6703 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6705 (underline_box::output): Similarily.
6706 (accent_box::output): Use \Z.
6708 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6711 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6713 * troff/div.c (top_level_diversion::transparent_output(unsigned
6714 char)): Use asciify.
6715 * troff/input.c (asciify): Don't make it static.
6716 * troff/token.h (asciify): Declare it.
6718 * troff/input.c (get_name, get_long_name, token::get_char,
6719 token::delimiter): Add an extra default argument which says
6720 whether a warning should be printed.
6721 * troff: Pass a non-zero argument to one of these rather than
6722 printing a warning directly.
6724 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6726 * troff: Consistently use symbol::is_null.
6728 * troff/dictionary.h: Move some inline functions into
6731 * troff/request.h: Move inline functions into input.c.
6732 (request_or_macro::invoke): Make it pure.
6734 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6735 * troff/input.c (init_input_requests): Use class constant_int_reg.
6736 (class compatible_reg): Deleted.
6737 * troff/div.c (init_div_requests): Use class constant_int_reg.
6738 (class last_post_line_extra_space_reg): Deleted.
6740 * troff/env.c (tab_character): Don't change the tab character if
6741 we get an invalid argument.
6742 (hyphen_char): Similarily.
6744 * troff/reg.c (alter_format): Check that nm is not null.
6746 * Makefile, groff.sh: Make it possible to customize the commands
6747 used for printing PostScript and dvi files. Also make it possible
6748 to customize the path used by groff.sh.
6750 * eqn/eqn.y: Make `left' right associative.
6752 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6754 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6757 * pic/pic.h: Removed definition of INT_MAX.
6759 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6762 * troff/input.c (token::next): Handle \R like \n.
6764 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6766 * ps/tmac.pc (PSPIC): Simplify.
6768 * troff/env.c (tab_stops::to_string):
6769 * pic/pic.y (object_type_name):
6770 * pic/troff.c (simple_output::line):
6771 * pic/tex.c (tex_output::spline):
6772 * pic/object.c (object_spec::make_object):
6773 * tbl/main.c (process_data): Add cases to switch statements to
6774 avoid cfront warnings. (Some of these are spurious, since the
6775 switch already has a default case.)
6777 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6778 `ps-'. Don't test systat; instead check number of arguments to
6781 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6783 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6785 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6786 Unlink the file as soon as we have opened it, so that we don't
6787 have to bother with signal handlers.
6789 (fatal_error_exit): Deleted.
6790 (main): Don't call signal.
6792 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6794 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6796 * pic/pic.y: If there is a label, or an nth construction before
6797 the first `.' in the argument to `with', ignore it and generate a
6799 * pic/lex.c (lex_warning): New function.
6801 * tbl/table.c (table::init_output): In section keep and release
6802 macro, use 0 indent when diverting and the correct indent when
6805 * troff/input.c (interpolate_number_format): Do not interpolate
6806 anything if the number register is not defined.
6808 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6810 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6812 * ps/devps/prologue (PICTURE): Set components of graphics state to
6813 their default values.
6815 * ps/devps/text.enc: Add trademark
6816 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6817 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6818 * ps/devps/symbolchars: Add names for summation and product.
6820 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6821 suchthat. Add pp. Add upper-case letters.
6823 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6824 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6827 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6828 rA (right angle bracket) to ra. Introduce names for double-headed
6829 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6830 * ps/devps/textmap: Likewise for ps device.
6831 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6832 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6833 * tty/devascii/R.proto: Likewise.
6834 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6836 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6838 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6840 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6843 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6845 * troff/div.c (when_request): Use symbol::is_null rather than
6846 has_arg to determine whether we have an argument.
6847 (change_trap): Remove the trap if we get an invalid number. Give
6848 an error if we don't get at least the macro name.
6849 (diversion_trap): Remove trap if we get an invalid name or number.
6851 * troff/env.c (environment_switch): Pop if we get an invalid
6852 symbol or numeric expression.
6854 * troff/input.c (do_define_macro): If EOF is encoutered while
6855 defining the macro, do tok.next() before returning.
6857 * troff/token.h (has_arg): Move definition from here, to ...
6858 * troff/input.c (has_arg): ... here
6860 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6861 * troff/input.c (shift): Likewise.
6863 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6866 * pic/troff.c (troff_output::start_picture): Comment out calls to
6869 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6870 interpret_lf_args succeeds.
6872 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6873 \\. This avoids problems with \$N.
6875 * groff.sh: Pass -C to preprocessors.
6877 * lib/lf.c (interpret_lf_args): Be more flexible.
6879 * tbl/main.c (main): Add -C option.
6880 (table_input::get): Do not recognize TE if followed by character
6881 other than a space or newline unless -C option given.
6882 (process_input_file): Likewise for lf, TS.
6883 (process_data): Likewise for lf in text blocks.
6885 * eqn/main.c (main): Add -C option.
6886 (do_file): Don't recognize EQ, EN or lf if followed by character
6887 other than space or newline unless -C option given.
6888 * eqn/lex.c (file_input::read_line): Similarily.
6889 * eqn/eqn.h: Declare compatible_flag.
6891 * etc/soelim.c (main): Add -C option.
6892 (interpret_lf_args): Use version in libgroff.
6895 * pic/main.c (main): Add -C option, which sets compatible_flag.
6896 (top_input::get), (top_input::peek): If -C option not given,
6897 do not recognize .PS/.PE/.PF/.lf if followed by a character
6898 other than space or newline.
6899 * pic/lex.c (file_input::read_line): Similarily.
6900 * pic/pic.h: Add declaration of compatible_flag.
6902 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6904 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6906 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6907 derived from node. New class space_char_hmotion_node.
6908 * troff/input.c (asciify_macro): New function.
6909 * troff/input.c (init_input_requests): New request `asciify' bound
6911 * macros/mm.diff: New file.
6912 * Makefile: In install.mm target use `patch' to apply
6915 * troff/input.c (macro::print_size): Just print the size in bytes.
6917 * troff/div.c (return_request): Correct the argument
6920 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6922 * troff/node.h (class composite_node): Add sz member.
6923 * troff/node.c (composite_node::size): Return sz.
6924 * troff/input.c (macro_to_node): Use the initial size in the
6925 environment as the size of the composite_node.
6927 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6930 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6932 * troff/div.c (change_trap): If we get a bad number expression,
6935 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6937 * lib/matherr.c (matherr): Define this only if math.h defines
6940 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6942 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6943 no diversion trap return vunits(INT_MAX - vresolution).
6945 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6947 * troff/input.c (do_zero_width): New implementation that doesn't
6948 use a temporary environment. Use instead:
6949 (token::add_to_node_list): New function.
6950 * troff/env.c (environment::get_prev_char_height),
6951 (environment::get_prev_char_height),
6952 (environment::get_prev_char_skew): New functions.
6953 (environment::get_prev_char): New function.
6954 (environment::get_prev_char_width): Change to use get_prev_char.
6955 (init_env_request): Implement new registers .cht, .cdp, .csk.
6956 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6957 \Z being processed in a separate environment.
6959 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6961 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6963 * tbl/table.c (table::init_output): In the section release macro,
6964 give a warning message if the section won't fit on one page.
6966 * tbl/table.c (table::do_top): Emit table keep only if table is
6968 (table::do_bottom): Likewise for table release.
6969 (table::table), (table::add_vertical_rule): Remove reference to
6971 * tbl/table.h: Remove keep member.
6973 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6974 SECTION_RELEASE_MACRO, if there's not enough space before the next
6975 trap to output the diversion, call T# ourselves, set
6976 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6977 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6978 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6979 vertical position and return to it before turning traps on again.
6981 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6983 * troff/node.c, troff/node.h: In classes derived from node,
6984 replace prev_char_width method by last_char_node method.
6985 * troff/env.c (environment::get_prev_char_width): Use
6986 node::last_char_node rather than node::get_prev_char_width.
6988 * Makefile: Added comment about -fno-inline on 68030-based
6991 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6992 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6993 expressions using sizeof to int.
6994 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6996 * macros/tmac.e (TS): Don't move @f back past the current
6999 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
7001 * ps/ps.c (main): Buffer stderr.
7002 * dvi/dvi.c (main): Likewise.
7003 * tty/tty.c (main): Likewise.
7005 * ps/ps.c (ps_printer::do_import): Improve error handling.
7007 * troff/input.c (abort_request): Use asciify.
7009 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7010 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7011 type of first argument int rather than char. This works around a
7012 bug on the 68030 based Apollo using g++ 1.37.1.
7014 * tbl/table.h (class table): Add `keep' member.
7015 * tbl/table.c (table::table): Initialize `keep'.
7016 (table::add_vertical_rule): Set `keep' to 1.
7017 (table::do_top): Only emit table keep macro is `keep' is non-zero.
7018 (table::do_bottom): Likewise for table release macro.
7019 (table::do_row): Emit section keep macro even if the row is 0.
7021 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
7023 * macros/tmac.e (@C): Preserve the font family across the change
7026 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
7028 * lib/font.c: Initialize font::hor and font::vert to 1.
7029 (font::load_desc): Check the values of font::hor and font::vert.
7031 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7032 be included in a C compilation.
7033 (iftoa): Use INT_DIGITS. Include lib.h.
7035 (as_string): Likewise.
7036 * tbl/table.c: Removed definition of INT_DIGITS.
7037 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7038 * troff/input.c (input_input_requests): Likewise.
7039 * ps/ps.c (make_encoding_name): Likewise.
7040 (ps_printer::set_style): Likewise.
7041 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7043 * tty/devascii/R.proto: Map fm onto '.
7044 * tty/devlatin1/R.proto: Likewise.
7046 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
7048 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7049 argument to \w is at a different input level.
7051 * tbl/table.c (table::init_output): Define a new macro
7052 REPEATED_VPT_MACRO, like vpt but if in a diversion also
7053 transparently outputs itself.
7054 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7056 (table::do_row): Likewise.
7058 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7059 TRANSPARENT_STRING_NAME.
7061 * tbl/table.c (table::init_output): In the table release macro
7062 print an error message and don't produce any output if after
7063 issuing the need request the table still will not fit. Also
7064 remove the diversion after bringing it back.
7066 * tbl/table.c (table::init_output): Define a new macro
7067 REPEATED_MARK_MACRO, like mk but if in a diversion also
7068 transparently outputs itself.
7069 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7070 is necessary because .TH might not call .T#.
7071 (table::do_top): Likewise TOP_REG.
7072 (table::define_bottom_macro): If TOP_REG is no longer valid, use
7073 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7074 table header might contain just the two top rules.
7076 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
7078 * troff/div.c: Implement new request `ptr' to print all traps.
7080 * troff/env.c (init_env_requests): Implement `.tabs' reg with
7081 init_string_env_reg.
7082 * troff/env.c (class tab_reg): Deleted.
7084 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
7086 * troff/div.c: New number register .pn returns the number of the
7087 next page as set by the pn request.
7089 * macros/tmac.an: Redid headers and footers. Number each manual
7090 entry starting from 1 unless \nC is > 0, like Sun. Added an
7091 optional 5th argument to .TH which specifies the manual name and
7092 appears in the center of the header. Understand the X, P and D
7095 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
7097 * troff/env.c (init_env_requests): New number register `.lt' to
7098 return the title length.
7100 * troff/node.h (class transparent_dummy_node): New class.
7101 * troff/node.c (class transparent_dummy_node): Provide member
7103 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7106 * troff/input.c (token::next): New escape sequence \).
7107 * troff/input.c (get_copy): Recognize \) in copy mode.
7109 * troff/input.c (input_stack::clear): New function.
7110 * troff/input.c (exit_request): Use input_stack::clear.
7112 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7113 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7115 * troff/env.c: Move set_page_character to input.c. Move
7116 page_character to input.c also.
7117 * troff/env.c (title): Split off the reading of the parts of the
7118 title into read_title_parts.
7119 * troff/input.c (read_title_parts): New function. Check the
7120 input_level when testing whether a token matches the delimiter.
7122 * troff/input.c (exit_request): New function.
7123 * troff/input.c (init_input_requests): Bind ex request to
7124 exit_request rather than exit_groff.
7126 * troff/input.c (exit_groff): Call tok.next() before
7127 process_input_stack().
7129 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
7131 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7132 * troff/env.h: ditto.
7133 * troff/input.c: ditto.
7135 * troff/env.c (environment::is_empty): Test pending_lines.
7137 * troff/env.c (environment::have_pending_lines): Removed.
7139 * troff/input.c: Add request to flush pending lines from the
7142 * troff/env.c, troff/env.h: Add automatic widow control feature.
7144 * troff/input.c (exit_groff): Do process_input_stack() after
7145 do_break() but before setting exit_flag to 2.
7147 * troff/input.c: Remove FLUSH_PENDING_LINES and
7148 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7149 environment after END_TRAP token seen, but only if there aren't
7150 any more traps still unfinished.
7151 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7153 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
7155 * troff/env.c: Rename the `retain_size' member of class
7156 pending_output_line to `no_fill'.
7158 * troff/env.c (title): When the line is output, make the
7159 retain_size argument !fill.
7161 * troff/node.h: Add `hyphenated' member to struct breakpoint.
7162 * troff/node.c (space_node::get_breakpoints),
7163 (dbreak_node::get_breakpoints): Fill this in.
7164 * troff/env.c: Allow specification of maximum number of
7165 consecutive hyphenated lines.
7167 * troff/env.c (environment::is_empty): Add test for !current_tab.
7169 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
7171 * troff/env.c (environment::hyphenate_line): Don't completely give
7172 up if the word is not to be hyphenated; continue so that breaks
7173 can be made at break_char_node's.
7175 * lib/lib.h: Only define INT_MAX if it's not already defined;
7176 undef INT_MIN if it's already defined.
7178 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7180 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7181 This works around a bug in AT&T C++ 2.0 used with an ANSI C
7184 * macros/tmac.an (an-header): Set no-space mode.
7186 * macros/tmac.an (TH): Start a new page if necessary.
7188 * Started using ChangeLog at version 0.4.
7191 version-control: never