1 2000-12-21 Werner LEMBERG <wl@gnu.org>
3 Ignore `.ss' request if in compatibility mode.
5 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
6 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7 * src/roff/troff/env.cc (space_size): Use it.
9 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10 `.ss' request in nroff mode.
12 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
15 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
17 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
19 2000-12-13 Werner LEMBERG <wl@gnu.org>
21 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
22 * src/preproc/eqn/neqn.man: Small fixes and additions.
24 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
26 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
29 * src/preproc/eqn/neqn.man: New file.
31 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
34 * tmac/e.tmac: Add `.T&' macro.
35 Fix `indent cannot be negative' warning.
36 * tmac/s.tmac: Fix `indent cannot be negative' warning.
38 2000-12-07 Werner LEMBERG <wl@gnu.org>
40 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
42 2000-12-06 Werner LEMBERG <wl@gnu.org>
44 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
47 * MORE.STUFF: Added info about deroff for djgpp.
49 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
50 documentation of -rcR switch.
52 2000-12-03 Werner LEMBERG <wl@gnu.org>
54 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
55 if -rcR=1 (which is now the default in nroff mode), a single, very
56 long page is created instead of multiple pages: All `.ne' and `.wh'
57 requests are put into conditionals; a new macro `an-end' is added to
60 Some other minor cleanups.
62 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
64 2000-12-02 Werner LEMBERG <wl@gnu.org>
66 Fixing a bug which prevented hyphenation in words followed
67 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
69 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
70 Adding possibly_break_line().
71 * src/roff/troff/env.h (environment): Make possibly_break_line()
74 Make `\~' usable in .tr request.
76 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
77 (token): Add stretchable_space().
78 * src/roff/troff/input.cc (token::next, token::delimiter,
79 token::description, process_input_stack, do_translate,
80 add_to_node_list, token::process): Use it.
81 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
82 for adjusting the space.
83 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
84 for stretchable space.
85 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
86 (make_node): Add code for stretchable space.
87 * src/roff/troff/env.cc (environment::add_char): Use it.
88 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
89 (get_copy, token::next, transparent_translate, asciify): Use it.
91 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
92 doc/groff.texinfo: Updated.
93 * man/groff.man: Small reorderings.
95 2000-11-23 Werner LEMBERG <wl@gnu.org>
98 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
100 * src/roff/troff/input.cc (main): Add `config_macro_path' and
101 `safer_macro_path' to -M option.
102 * src/roff/troff/troff.man: Fixes.
104 2000-11-22 Werner LEMBERG <wl@gnu.org>
106 Use safer path (except for config files) if -U isn't specified. Add
107 a special macro path (without home and current directory) for config
108 files. Add home directory to unsafe path for consistency. Don't
109 include the home directory in the font path.
111 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
113 * src/include/macropath.h: Add `config_macrp_path'.
114 * src/lib/libgroff/fontfile.cc: Fix font path.
115 * src/roff/troff/input.cc (process_startup_file): Use
117 (main): Select unsafe path if -U is given.
119 * src/preproc/eqn/main.cc (main): Fixing search path for
121 * src/preproc/eqn/eqn.man: Updated.
123 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
126 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
127 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
128 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
129 src/devices/grotty/grotty.man: Updated.
131 * Makefile.in: Fix comments.
133 2000-11-17 Werner LEMBERG <wl@gnu.org>
135 * tmac/safer.tmac: Empty file added (again) for compatibility
137 * tmac/Makefile.sub: Updated.
139 2000-11-16 Werner LEMBERG <wl@gnu.org>
141 * src/devices/grodvi/dvi.cc (main),
142 src/devices/grohtml2/post-html.cc (main),
143 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
144 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
145 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
146 (main), src/preproc/html2/pre-html.cc (main),
147 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
148 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
149 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
150 (main), src/utils/hpftodit/hpftodit.cc (main),
151 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
152 (main), src/utils/lookbib/lookbib.cc (main),
153 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
154 (main): Use stdout for -v.
155 * src/roff/groff/groff.cc (run_commands),
156 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
157 to make direct printing to stdout possible.
158 * src/roff/groff/pipeline.h: Updated.
160 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
161 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
162 * src/utils/afmtodit/afmtodit.man: Updated.
164 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
165 (version): New function.
167 * src/utils/addftinfo/addftinfo.man: Updated.
169 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
170 Fixing copyright dates.
172 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
175 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
178 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
180 2000-11-15 Werner LEMBERG <wl@gnu.org>
182 In all programs, make -v return immediately with exit status 0 to
183 be compliant with the GNU standard.
185 * src/devices/grodvi/dvi.cc (main),
186 src/devices/grohtml2/post-html.cc (main),
187 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
188 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
189 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
190 (main), src/preproc/html2/pre-html.cc (main),
191 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
192 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
193 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
194 (main): Implement it.
197 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
198 and postprocessors to the -v option.
200 * src/roff/grog/grog.pl: Implement -v.
201 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
202 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
204 * src/roff/nroff/nroff.sh: Implement -v.
205 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
206 * src/roff/nroff/nroff.man: Updated.
208 * src/preproc/eqn/main.cc (main): Fix comment typo.
210 * MORE.STUFF: Added info about djgpp port of grap.
212 2000-11-14 Werner LEMBERG <wl@gnu.org>
214 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
215 mode (or rather, implemented non-compatibility mode).
216 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
218 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
219 replacing it -- we don't find gxditview otherwise.
220 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
222 * src/preproc/pic/depend: Removed. Unnecessary.
224 Implemented dummy keyword `solid' in pic for compatibility with
227 * lex.cc (lookup_keyword): Added `solid'.
228 * pic.y: Added SOLID with dummy rule.
229 * pic.cc, pic_tab.h: Regenerated.
230 * doc/pic.ms: Updated.
232 2000-11-13 Werner LEMBERG <wl@gnu.org>
234 For security reasons, don't use the current directory but the home
235 directory while searching and scanning troffrc and troffrc-end.
236 Similarly, replace the current directory with the home directory
239 * Makefile.in (fontpath, tmacpath): Remove current directory.
241 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
242 two parameters `add_home' and `add_current'.
243 (search_path::~search_path, search_path::command_line_dir,
244 search_path::open_file): Remove tests for `dirs' being zero.
245 * src/include/searchpath.h: Adjust.
246 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
248 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
250 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
251 * src/roff/troff/input.cc: Use `mac_path', initialized with
253 (process_startup_file): Set `mac_path' to `safer_macro_path'.
254 * src/roff/troff/env.cc: Use `mac_path'.
256 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
258 * NEWS, man/roff.man, src/roff/troff/troff.man,
259 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
262 2000-11-12 Werner LEMBERG <wl@gnu.org>
264 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
266 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
267 * configure.in: Fix typo in comment.
268 * configure: Regenerated.
270 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
273 2000-11-08 Werner LEMBERG <wl@gnu.org>
275 Add system tmac directory (/usr/local/lib/groff/site-tmac).
277 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
278 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
281 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
282 * tmac/Makefile.sub (install_data): Create
283 $(systemtmacdir) and $(localtmacdir).
284 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
285 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
286 NEWS, doc/groff.texinfo: Updated and minor fixes.
288 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
289 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
290 $(systemtmacdir) since the wrapper files are platform-dependent.
292 2000-11-01 Werner LEMBERG <wl@gnu.org>
294 * doc/groff.texinfo: Fix typo.
296 2000-10-26 Werner LEMBERG <wl@gnu.org>
298 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
299 tmac.doc.old -> doc-old.tmac
300 tmac.an.old -> an-old.tmac
302 * tmac/tmac.*: Moved to ...
304 * tmac/man.local: Fix comment.
305 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
306 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
307 Added some `FILES' sections. More use of @...@ directives. Other
309 * arch/djgpp/README, font/devutf8/NOTES: Updated.
310 * doc/homepage.ms, doc/groff.texinfo: Updated.
311 * man/groff.man, man/roff.man: Updated.
312 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
313 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
314 src/devices/grotty/grotty.man: Updated.
315 * src/preproc/pic/pic.man: Updated.
316 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
317 instead of -mdoc.old.
318 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
319 * src/roff/nroff/nroff.man: Updated.
322 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
324 * tmac/mm.diff: Removed -- it has no use now since the mm package
327 * tmac/*: Removed trailing spaces.
329 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
330 the tmac subdirectory also).
332 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
333 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
334 stuff since it is no longer needed.
336 * README, PROBLEMS: Updated.
338 2000-10-25 Werner LEMBERG <wl@gnu.org>
340 Invert current behaviour: Search first FOOBAR.tmac, then
343 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
344 (open_mac_file, macro_source): Implement it.
345 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
346 doc/groff.texinfo, NEWS: Document it.
348 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
349 Small documentation improvements.
351 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
354 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
356 2000-10-24 Werner LEMBERG <wl@gnu.org>
358 Add local tmac directory (groff/site-tmac).
360 * Makefile.in: Add $(localtmacdir).
361 (uninstall_dirs): Add $(localtmacdir).
362 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
363 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
364 in $(localtmacdir). Create $(localtmacdir).
365 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
366 Updated and minor fixes.
368 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
370 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
372 2000-10-23 Werner LEMBERG <wl@gnu.org>
374 Move hyphen.us to tmac directory.
376 * src/roff/troff/hyphen.us: Removed.
377 * src/tmac/hyphen.us: Added.
378 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
380 Change installation structure for data files from .../groff/... to
381 .../groff/<version><revision>/... to be conform with other GNU
384 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
385 doc/Makefile: Implement it.
386 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
387 * configure: Updated.
388 * arch/djgpp/README, font/devutf8/NOTES: Use it.
390 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
391 @MACRODIR@ instead of hard-coded directories.
393 2000-10-22 Werner LEMBERG <wl@gnu.org>
395 Implement $GROFF_BIN_PATH environment variable (which defaults to
396 $bindir) used for child programs of groff and similar wrappers.
398 * gendefs.sh: Improve documentation.
399 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
400 src/preproc/eqn/Makefile.sub (neqn),
401 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
402 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
404 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
405 $GROFF_PATH__ (the latter for communication with troff).
406 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
408 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
409 doc/groff.texinfo: Document it.
411 * doc/groff.texinfo: Improve documentation of troff's -a option.
413 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
415 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
416 non-intrusive eol marker.
417 (troff_output_file::determine_line_limits): New function.
418 (troff_output_file::draw): Use it.
419 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
420 output_pending_lines() instead of output_line().
421 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
422 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
423 createImage): Small fixes.
425 2000-10-14 Werner LEMBERG <wl@gnu.org>
427 Replace tmac.safer with a real secure solution.
429 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
430 system_request, pipe_output): Disable requests if in safer mode.
431 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
432 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
433 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
434 doc/groff.texinfo, src/roff/groff/groff.man,
435 src/roff/troff/troff.man, arch/djgpp/README: Updated.
437 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
438 (resource_manager::output_prolog): Replace setenv() with putenv().
440 2000-10-09 Werner LEMBERG <wl@gnu.org>
442 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
443 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
444 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
445 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
446 compilation errors with some compilers. It seems that this code
447 is no longer necessary -- if yes, it is easy to add some #ifdef's
448 for that particular old-fashioned compiler.
450 * MORE.STUFF: Added info about Meta-tbl.
452 * doc/groff.texinfo: Added more info about `.if "..."..."'.
454 2000-10-07 Werner LEMBERG <wl@gnu.org>
456 Adding a new escape sequence \B'...': If the string between
457 the delimiters is a valid numeric expression, return the character
458 `1', and `0' otherwise. This is an analogon to \A.
460 * src/roff/troff/input.cc (do_expr_test): Implement it.
461 (token::next): Use it.
462 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
464 * tmac/tmac.trace: Made independent from escape character.
466 2000-10-06 Werner LEMBERG <wl@gnu.org>
468 Adding a new request .dei: define indirect. The first and second
469 parameter of .dei are taken from string registers instead directly;
470 this very special request is needed to make tmac.trace independent
471 from the escape character (which might even be disabled).
473 * src/roff/troff/input.cc (do_define_macro): Implement it.
474 (define_macro_indirect): New function.
475 (init_input_requests): Use it.
477 Adding two requests .ecs and .ecr: Save and restore the escape
478 character. These two requests are needed to make tmac.trace
479 independent from the escape character (which might even be
482 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
484 (init_input_requests): Use it.
486 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
488 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
490 Adding a new option -P and new environment variable GROPS_PROLOGUE
491 to grops, selecting a different prologue file (minor modifications
494 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
495 src/devices/grops/ps.cc (main): Implement it.
496 * src/devices/grops/grops.man, NEWS: Document it.
498 2000-09-22 Werner LEMBERG <wl@gnu.org>
500 * INSTALL: Add info about selecting paper format.
502 2000-09-21 Werner LEMBERG <wl@gnu.org>
504 * src/roff/troff/input.cc (main): Fixing compiler warning.
505 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
506 strings.h from the former to the latter.
507 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
508 stuff from the former to the latter.
510 2000-09-11 Werner LEMBERG <wl@gnu.org>
512 Implementing two new requests .tm1 and .tmc: The former is similar
513 to .tm but can output leading spaces; its syntax is similar to
514 defining a string, i.e., a `"' can be used to mark the beginning of
515 the string to be written to stderr: `.tm1 " test'. The latter is
516 similar to .tm1 but doesn't write out a final newline character.
518 * src/roff/troff/input.cc (terminal1, terminal_continue,
519 do_terminal): New functions.
520 (init_input_requests): Use them.
521 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
523 2000-09-09 Werner LEMBERG <wl@gnu.org>
525 * tmac/groff_mdoc.samples.man: Small fixes.
527 2000-09-08 Werner LEMBERG <wl@gnu.org>
529 * tmac/groff_mdoc.man: Fixing typo.
531 2000-09-02 Werner LEMBERG <wl@gnu.org>
533 Implementing a .nop request which does nothing.
535 * src/roff/troff/input.cc (nop_request): New function.
536 (init_input_requests): Use it.
537 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
539 2000-09-01 Werner LEMBERG <wl@gnu.org>
541 * doc/groff.texinfo: Added some comments.
543 2000-08-30 Werner LEMBERG <wl@gnu.org>
545 * src/roff/troff/TODO: Updated.
547 2000-08-28 Bruno Haible <haible@clisp.cons.org>
549 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
552 2000-08-25 Werner LEMBERG <wl@gnu.org>
554 * doc/groff.texinfo: Fix comment how to compile the DVI file.
556 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
558 * font/devps/generate/Makefile (SHELL): Define explicitly to
559 "/bin/sh", for non-Unix platforms.
560 (extraclean): Use a more portable "" quoting instead of a
561 backslash (which doesn't work on DOS/Windows).
563 * font/devlj4/generate/Makefile (extraclean): Ditto.
565 * font/devdvi/generate/Makefile (extraclean): Ditto.
567 2000-08-25 Werner LEMBERG <wl@gnu.org>
569 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
570 src/roff/troff/troff.man: Document Eli's latest changes.
572 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
574 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
575 macro file names of the form NAME.tmac as well as tmac.NAME.
577 2000-08-25 Werner LEMBERG <wl@gnu.org>
579 * src/include/posix.h: Remove definition of FILENAME_MAX.
581 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
582 `sys_fatal' and `stop' function().
584 * test-groff: Updated.
586 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
588 Added the new troff command .output <arg> to suppress output (while
589 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
590 registers (for passing the output dimensions to the output device).
592 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
594 * src/roff/troff/node.h, src/roff/troff/node.cc
595 (troff_output_file::really_print_line,
596 ascii_output_file::really_print_line,
597 supress_output_file::really_print_line): Use `width' parameter.
598 (troff_output_file::really_on, troff_output_file::really_off,
599 output_file::on, output_file::off, real_output_file::on,
600 real_output_file::off, real_output_file::really_on,
601 real_output_file::really_off): New functions.
602 (real_output_file:public output_file): New variable `output_on'.
603 (real_output_file::begin_page, real_output_file::copy_file,
604 real_output_file::transparent_char, real_output_file::print_line):
606 (real_output_file::print_line): Use check_output_limits.
607 * src/roff/troff/reg.h, src/roff/troff/request.h,
608 src/roff/troff/input.cc (assign_registers): New function to remove
610 (do_ps_file): Use it.
611 (check_output_limits, reset_output_registers, output_request,
612 init_output_requests): New functions.
613 (init_input_requests): Updated.
615 Added new grohtml2 device and html2 preprocessor (coding
616 not yet finished) which will eventually replace grohtml.
618 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
620 * src/include/htmlindicate.h, src/include/htmlindicate
621 (html_begin_suppress, html_end_suppress): New functions.
622 * src/preproc/tbl/main.cc: Use it.
623 * src/roff/groff/groff.cc: Add support for html2 device (which will
624 automatically invoke the html2 preprocessor).
625 * src/roff/troff/input.cc (is_html2): New variable.
626 * src/roff/troff/troff.h, src/roff/troff/env.h,
627 src/roff/troff/env.cc (environment::add_html_tag): New function
629 (environment::do_break): Use it.
630 * font/devhtml2/*: New files.
631 * src/devices/grohtml2: New device.
632 * src/preproc/html2: New preprocessor.
633 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
635 2000-08-23 Werner LEMBERG <wl@gnu.org>
637 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
639 2000-08-22 Werner LEMBERG <wl@gnu.org>
641 * src/include/lib.h: Provide a fix for IRIX to not include
644 2000-08-18 Werner LEMBERG <wl@gnu.org>
646 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
647 since some non-GNU sed programs can't handle null regexps.
648 * configure, src/preproc/eqn/Makefile.sub,
649 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
651 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
652 bug (string.h and strings.h are both needed according to latest
655 * MORE.STUFF: Added info about unroff and troffcvt.
657 2000-08-08 Werner LEMBERG <wl@gnu.org>
659 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
662 * tmac/tmac.man.old: Remove unused number register.
664 * tmac.doc: Minor documentation fix.
666 2000-08-07 Paul Eggert <eggert@twinsun.com>
668 * src/roff/groff/pipeline.c (is_system_shell):
669 Fix typo: "monocased_shell" no longer exists.
671 2000-08-07 Paul Eggert <eggert@twinsun.com>
673 Remove FILENAME_MAX limits.
675 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
676 that the argument length is less than FILENAME_MAX.
677 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
678 Use struct hack to allocate and free file name.
679 (struct xtmpfile_list): fname is now part of the structure,
680 not a pointer to another string.
682 2000-08-07 Tom Schmidt <tschmidt@micron.com>
684 * src/include/posix.h: Add a default value for FILENAME_MAX.
686 2000-08-06 Paul Eggert <eggert@twinsun.com>
688 Add support for new BSD-style man pages (with ".Dd" instead of
689 ".TH"), so that "groff -man" understands both styles, even
690 when running "groff -man" on a host whose system man page
691 macros don't support ".Dd".
693 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
694 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
695 in case the system man macros don't define Dd or TH.
697 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
698 * tmac/tmac.an: New one-line file.
699 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
701 2000-08-06 Werner LEMBERG <wl@gnu.org>
703 * src/roff/troff/troff.man: Fixing typos.
705 Version 1.16.1 released
706 =======================
708 2000-07-31 Werner LEMBERG <wl@gnu.org>
710 Preparing release 1.16.1.
712 * REVISION: Revision number set to 1.
713 * MORE.STUFF: Added info about port to DOS.
714 * NEWS, win32-diffs: Updated.
716 * src/include/nonposix.h: Remove first line -- this file is used
719 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
722 2000-07-30 Werner LEMBERG <wl@gnu.org>
724 * doc/texinfo.tex: Update to latest version.
726 2000-06-28 Paul Eggert <eggert@twinsun.com>
728 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
729 commands that fail. Don't assume that "export a=b" is valid shell
730 syntax. This is needed for Solaris 2.5.1.
732 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
733 comment about missing Solaris headers.
735 * PROBLEMS: Add section about problems with Sun Make and VPATH.
737 2000-06-25 Werner LEMBERG <wl@gnu.org>
739 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
742 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
744 * win32-diffs: Updated.
745 * README.WIN32: Added CRs to make all Windows editors happy.
747 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
748 src/roff/groff/pipeline.c).
750 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
752 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
753 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
755 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
757 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
758 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
760 (main): Support non-Posix systems with several different styles of
761 slash characters in file names.
763 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
764 (main) [SET_BINARY]: Switch stdin into binary mode.
766 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
767 (main): Support file names with several possible slash-type
768 characters, as given by DIR_SEPS[] in nonposix.h.
769 (main) [__MSDOS__]: If renaming the temporary index file fails
770 because it has more than one dot in its trunk, replace the dot
771 with an underscore and try again.
772 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
774 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
776 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
777 (File::File): Open the input file in binary mode. Strip CR
778 characters from each CR-LF pair.
779 (xbasename): Support file names with several possible slash-type
780 characters, as given by DIR_SEPS[] in nonposix.h.
782 * src/include/Makefile.sub (HDRS): Add nonposix.h.
784 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
785 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
786 [!_POSIX_VERSION]: Define for traditional Unix systems.
787 (real_output_file::real_output_file): Remove the MSVC-specific
788 call to popen, use instead POPEN_WT, appropriately defined on
789 nonposix.h. #include nonposix.h.
790 (real_output_file::~real_output_file): Remove the MSVC-specific
791 call to pclose, a suitable macro is now defined on nonposix.h.
792 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
793 and WEXITSTATUS instead of assuming traditional Unix
794 interpretation of the status returned by pclose.
796 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
797 call to popen, use POPEN_RT instead (appropriately defined on
798 nonposix.h). #include nonposix.h.
799 (ps_bbox_request): Open the PostScript file in binary mode.
800 Close the file after processing it.
801 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
804 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
805 A version of run_pipeline that doesn't use `fork'.
806 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
807 (system_shell_name, system_shell_dash_c)
808 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
809 the ugliness of testing DOS/Windows file names for equality, and
810 support both stock shells and ports of Unix shells.
812 * src/roff/groff/groff.cc: #include nonposix.h.
813 (BSHELL): Definition moved to nonposix.h.
814 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
815 instead of a literal "-c".
816 (xbasename): Support file names with several possible slash-type
817 characters, as given by DIR_SEPS[] in nonposix.h.
818 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
821 * src/preproc/soelim/soelim.cc: #include nonposix.h.
822 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
824 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
827 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
829 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
832 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
834 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
835 P_tmpdir is defined, use it instead of the literal "/tmp".
836 (remove_tmp_files, add_tmp_file): New functions.
837 (xtmpfile): Record temporary files and register an atexit function
838 to delete them explicitly, instead of relying on the OS to do
839 that, which doesn't work on non-Unix systems.
841 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
842 (search_path::search_path): Use PATH_SEP instead of a literal
844 (search_path::command_line_dir): Ditto.
845 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
846 to support non-Posix systems.
848 * src/libc/libbib/search.cc: #include nonposix.h.
849 (search_list::add_file): Open the file in binary mode.
851 * src/libs/libbib/linear.cc: #include nonposix.h.
852 (file_buffer::load): Remove \r characters preceding \n from the
855 * src/libs/libbib/index.cc: #include nonposix.h.
856 (make_index_search_item): Open index_filename in O_BINARY mode.
857 (index_search_item_iterator::get_tag): Ditto. Remove \r
858 characters before \n characters.
859 (index_search_item::check_files): Open files in binary mode.
860 (index_search_item::munge_filename): Support DOS-style file names
861 with backslashes and drive letters, use IS_ABSOLUTE.
863 * src/devices/grops/ps.cc: #include nonposix.h.
864 (main) [SET_BINARY]: Switch stdout to binary mode.
866 * src/devices/grolj4/lj4.cc: #include nonposix.h.
867 (main) [SET_BINARY]: Switch stdout to binary mode.
869 * src/devices/grolbp/lbp.cc: #include nonposix.h
870 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
872 * src/devices/grodvi/dvi.cc: #include nonposix.h.
873 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
875 (main) [SET_BINARY]: Switch stdout to binary mode.
876 [_MSC_VER]: Remove an explicit call to _setmode.
878 * src/include/nonposix.h: New file.
880 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
881 operation when building with DJGPP.
882 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
883 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
886 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
888 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
889 etc. can include a semi-colon on DOS/Windows.
890 (depend.temp): Use depend1.temp instead of depend.temp1, to
891 prevent files from overerwiting each other on 8+3 filesystems.
893 * gendef.sh (t): Change definition to work with DOS/Windows.
895 doc/groff.texinfo: Apart of some typo corrections, I also changed
896 some index entris, to make them more non-ambiguous, and also put
897 @ignore around some parts that are not yet written, to allow the
898 Info output be readable.
900 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
902 Replaced specific checks for function declarations with a generic
903 routine taken from GNU bfd.
905 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
906 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
907 * configure.in: Use it.
908 * src/devices/grolbp/lbp.cc, src/include/lib.h,
909 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
910 src/roff/groff/groff.cc: Use it.
911 * Makefile.in, configure: Updated.
913 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
915 * src/devides/grolbp/lbp.h: Removed unused variables.
917 2000-05-31 Keith Thompson <kst@sdsc.edu>
919 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
922 2000-05-31 Werner LEMBERG <wl@gnu.org>
924 * aclocal.m4 (GROFF_SRAND): New function to test the return value
925 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
926 * configure.in: Use it.
927 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
928 * configure, Makefile.in: Updated.
930 * configure.in: Add test for strncasecmp().
931 * src/include/lib.h: Use it.
933 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
935 * src/preproc/grn/Makefile.sub: Add MLIB.
937 2000-05-29 Nix <nix@esperi.demon.co.uk>
939 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
941 2000-05-29 Werner LEMBERG <wl@gnu.org>
943 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
945 * PROBLEMS: Small update.
947 * src/devices/grolbp/lbp.cc: Various small fixes.
949 2000-05-28 Keith Thompson <kst@sdsc.edu>
951 * src/roff/nroff/nroff.sh: Fix main loop syntax.
953 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
955 2000-05-25 Werner LEMBERG <wl@gnu.org>
957 * man/roff.man: Removed unused macro.
959 2000-05-24 Werner LEMBERG <wl@gnu.org>
961 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
962 This is needed e.g. if you do
963 `make distclean; ./configure; make dist'.
965 Version 1.16 released
966 =====================
968 2000-05-23 Werner LEMBERG <wl@gnu.org>
970 Adding font CWI (constant width italic) to devdvi.
972 * font/devdvi/CWI: New file.
973 * font/devdvi/generate/Makefile: Add generating rule.
974 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
975 tmac/tmac.dvi: Use it.
978 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
979 * font/devlj4/generate/Makefile: Cosmetic changes only.
981 * man/groff.man: Removed most of the redundant description of
982 special characters (which is in groff_char.man). Added font
983 translation CB->CR for devdvi. Other minor fixes.
985 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
986 (registered) symbols.
988 2000-05-22 Werner LEMBERG <wl@gnu.org>
990 * doc/Makefile: Added rule for creating info files.
992 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
994 * font/devdvi/generate/Makefile: Fixed dependencies.
996 * font/devps/*: Regenerated. Heavy changes for Bookman and
997 NewCentury Schoolbook!
998 * font/devps/generate/afmname: Will now run with GNU awk.
999 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
1000 * font/devps/generate/Makefile: Cosmetic changes only.
1002 2000-05-21 Werner LEMBERG <wl@gnu.org>
1004 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
1005 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
1006 `.SS' now produces a heading with a smaller size than `.SH'.
1007 Completely formatted.
1008 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
1010 * man/groff.man: Improved table appearance. Use of `eo' request
1011 to reduce number of doubled backslashes in macro definitions.
1012 Replacing `\e' with `\(rs'. Other minor fixes.
1014 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
1015 to have correct line number.
1017 * INSTALL: Small improvement.
1019 2000-05-20 Bernd Warken <bwarken@mayn.de>
1021 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
1024 2000-05-19 Bernd Warken <bwarken@mayn.de>
1026 * man/groff.man: Complete update (with a lot of corrections by WL).
1028 2000-05-18 Werner LEMBERG <wl@gnu.org>
1030 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
1032 * font/*/*: Implement it.
1033 * man/groff_char.man, NEWS: Document it.
1035 * src/include/unix.h: Removed. It isn't used.
1037 * doc/groff.texinfo: Slight improvements.
1039 2000-05-17 Werner LEMBERG <wl@gnu.org>
1041 * README, win32-diffs: Small fixes and improvements.
1043 2000-05-16 Werner LEMBERG <wl@gnu.org>
1045 * FDL: New file (the Free Documentation License version 1.1).
1047 * doc/groff.texinfo: Added many start-up values for gtroff.
1048 Some structural improvements of the source code.
1050 2000-05-15 Werner LEMBERG <wl@gnu.org>
1052 * src/roff/troff/input.cc: Added small comment about troffrc-end.
1053 * src/roff/troff/troff.man: Added info about troffrc-end.
1055 2000-05-14 Werner LEMBERG <wl@gnu.org>
1057 * Makefile.in (EXTRADIRS): Fix typos.
1058 (dist): Handle deletion of old .tar.gz file correctly.
1059 (DISTDIRS): Include all tty output devices.
1061 * doc/groff.texinfo: Adding more cross references; countless other
1064 2000-05-13 Werner LEMBERG <wl@gnu.org>
1066 * MORE.STUFF: Added Robert Marks's utilities.
1068 2000-05-12 Werner LEMBERG <wl@gnu.org>
1070 Added win32 port contributed by Blake McBride
1071 <blake@florida-software.com>.
1073 * README.WIN32, win32-diffs: New files.
1076 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
1077 (tmove, tmove2): Added parentheses to avoid compiler warnings.
1078 (change): Removed unused variables.
1080 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
1081 (savebounds): Changed return value from `int' to `void'.
1082 * src/preproc/grn/hdb.cc: Ditto.
1084 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
1085 final backslash in comment to avoid compiler warning.
1087 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
1089 * doc/groff.texinfo: More fixes.
1091 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
1093 * tmac/tmac.doc: Documentation fix.
1095 2000-05-11 Werner LEMBERG <wl@gnu.org>
1097 * doc/groff.texinfo: Reading the source code shows up a lot of
1098 omissions and incorrect data... More conversion to @Deffn macros.
1100 2000-05-10 Werner LEMBERG <wl@gnu.org>
1102 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
1105 * src/roff/troff/request.h: Removing unused `no_break_flag'.
1107 2000-05-09 Werner LEMBERG <wl@gnu.org>
1109 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
1112 * doc/groff.texinfo: Extended history section. More conversion to
1113 @Deffn macros. More .tr documentation.
1115 2000-05-07 Werner LEMBERG <wl@gnu.org>
1117 * doc/groff.texinfo: Completed tab section. Added info about
1120 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
1122 * PROBLEMS: Describe configure script fix for OS/390 Unix.
1124 2000-05-05 Werner LEMBERG <wl@gnu.org>
1126 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
1128 * NEWS: Document it.
1130 * man/troff.man: Minor optical improvements.
1132 2000-05-03 Werner LEMBERG <wl@gnu.org>
1134 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
1136 * font/*/*: Implement it.
1137 * man/groff_char.man, NEWS: Document it.
1139 2000-05-02 Werner LEMBERG <wl@gnu.org>
1141 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
1143 * NEWS: Document the three new man pages.
1145 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
1146 * configure: Updated.
1148 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
1150 2000-05-01 Werner LEMBERG <wl@gnu.org>
1152 Added grap support to grog.
1154 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
1155 * src/roff/grog/grog.man: Document it.
1157 * doc/groff.texinfo, NEWS: Add info about grap support.
1159 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
1160 (with slight fixes by me).
1162 * tmac/groff_tmac.man: New file documenting tmac mechanism.
1163 * tmac/Makefile.sub: Add groff_tmac.man.
1164 * man/roff.man: New file giving overview of roff system.
1165 * man/troff.man: A short reference of troff.
1166 * man/Makefile.sub: Add roff.man and troff.man.
1168 2000-04-30 Werner LEMBERG <wl@gnu.org>
1170 Added grap support to groff.
1172 * src/roff/groff/groff.cc: Implement it.
1173 * src/roff/groff/groff.man: Document it.
1175 * src/devices/grotty/grotty.man: Add cp1047 device.
1176 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
1178 * src/roff/groff/groff.man: Ditto.
1179 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
1180 * doc/groff.texinfo: Ditto.
1182 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
1185 2000-04-29 Werner LEMBERG <wl@gnu.org>
1187 * man/groff_char.man: Add `pc' glyph.
1188 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
1189 * tmac/tmac.tty: Add `pc' glyph.
1190 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
1191 we use cp1047 output device.
1193 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
1194 there are still hardcoded latin1->unicode values in utf8's font
1196 * configure: Updated.
1197 * NEWS: Minor clarification. Updated.
1199 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
1202 2000-04-28 Werner LEMBERG <wl@gnu.org>
1204 Adding EBCDIC code page 1047.
1206 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
1207 font/devcp1047/DESC.proto: New files.
1209 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
1210 either ascii/latin1 or cp1047.
1211 * Makefile.in: Use it.
1212 * configure: Updated.
1214 Replacing and/or adding `md' (mathdot) glyph with `pc'
1215 (periodcentered) in all text fonts.
1217 * font/*/*: Change it.
1219 2000-04-27 Werner LEMBERG <wl@gnu.org>
1221 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
1223 * configure.in: Add check for strings.h.
1224 * src/include/driver.h: Use HAVE_STRINGS_H.
1225 * src/devices/grolbp/lpb.cc: Remove string.h.
1227 * src/include/groff-getopt.h: New file. It will be used instead of
1228 getopt.h (to be included in lib.h) to avoid endless problems with
1229 picky C++ compilers.
1230 * src/include/lib.h: Use groff-getopt.h.
1231 * src/include/Makefile.sub: Updated.
1233 * configure: Updated.
1234 * Makefile.in: Updated.
1236 * NEWS: Mention EBCDIC support.
1238 2000-04-26 Werner LEMBERG <wl@gnu.org>
1240 * TODO: Some additions.
1242 2000-04-25 Werner LEMBERG <wl@gnu.org>
1244 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
1247 2000-04-23 Werner LEMBERG <wl@gnu.org>
1249 * src/roff/troff/troff.man: Minor fixes.
1251 2000-04-22 Werner LEMBERG <wl@gnu.org>
1253 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
1254 `.T' string register and the incompatible definition of the `.T'
1255 number register (compared to Unix troff).
1257 * man/groff_char.man: Add some missing characters.
1258 * font/devutf8/NOTES: Update.
1260 2000-04-21 Werner LEMBERG <wl@gnu.org>
1262 * src/include/htmlindicate.h, src/include/lib.h,
1263 src/include/posix.h: Fix copyright.
1265 * src/include/Makefile.sub: Update.
1267 2000-04-20 Werner LEMBERG <wl@gnu.org>
1269 * src/roff/troff/input.cc (input_char_description): Removing
1270 superfluous space char.
1272 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
1274 * doc/groff.texinfo: Document EBCDIC.
1276 2000-04-19 Werner LEMBERG <wl@gnu.org>
1278 Introducing `shc' as the glyph name for the soft hyphen character.
1280 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
1281 font/devlatin1/R.proto: Use it.
1285 2000-04-18 Werner LEMBERG <wl@gnu.org>
1287 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
1288 dependency on ASCII order.
1290 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
1292 * src/libs/libgroff/illegal.c: Added EBCDIC table.
1293 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
1295 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
1296 to increase portability.
1298 2000-04-15 Werner LEMBERG <wl@gnu.org>
1300 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
1301 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
1302 the generic `\n' if under OS/390 Unix.
1304 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
1306 * configure: Regenerated.
1308 2000-04-14 Werner LEMBERG <wl@gnu.org>
1310 * doc/groff.texinfo: More conversions to @Deffn.
1312 2000-04-12 Werner LEMBERG <wl@gnu.org>
1314 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
1317 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
1319 2000-04-10 Werner LEMBERG <wl@gnu.org>
1321 * doc/groff.texinfo: More conversions to @Deffn.
1323 2000-04-08 Werner LEMBERG <wl@gnu.org>
1325 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
1326 Updated to latest version (glibc 2.1.3).
1328 2000-04-07 Werner LEMBERG <wl@gnu.org>
1330 * doc/Makefile (clean): Include more index files.
1331 Add rule texinfo->dvi.
1333 2000-04-05 Werner LEMBERG <wl@gnu.org>
1335 * doc/groff.texinfo: Added new index `op' for operators. More
1336 info on end of sentence characters. More use of @Deffn.
1338 2000-03-30 Werner LEMBERG <wl@gnu.org>
1340 * */*.man: Adding a note that a whitespace can be inserted between
1341 a command line option and its parameter -- we are using GNU getopt.
1343 * src/roff/groff/groff.man: Add example of `-m mandoc'.
1345 2000-03-28 Werner LEMBERG <wl@gnu.org>
1347 Correct anachronism of calling the man macro file with `-man'
1348 instead of `-m man' etc.
1350 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
1351 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
1352 load tmac.<package>.
1354 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
1358 * doc/groff.texinfo: Updated.
1360 * tmac/groff_man.man: Copyright added.
1362 2000-03-27 Werner LEMBERG <wl@gnu.org>
1364 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
1365 typeset the request resp. escape name with a tt font -- due to a
1366 bug in texinfo.tex it is necessary to use the `-e' switch with
1369 Improving info about usage of groff units.
1373 2000-03-20 Werner LEMBERG <wl@gnu.org>
1375 * doc/groff.texinfo: Added section about man macro package
1376 (I've basically taken groff_man.man). Introducing new indices `ma'
1377 for macros/strings and `gl' for glyph names. Other minor fixes.
1379 * tmac/groff_man.man: Fixed some typos.
1381 2000-03-19 Werner LEMBERG <wl@gnu.org>
1383 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
1386 * doc/texinfo.tex: New file.
1388 2000-03-18 Werner LEMBERG <wl@gnu.org>
1390 * doc/groff.texinfo: Improved section on number registers. Other
1393 2000-03-16 Werner LEMBERG <wl@gnu.org>
1395 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
1398 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
1399 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
1400 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
1401 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
1403 * src/preproc/grn/grn.man: Better synopsis; added copyright.
1405 * src/roff/grog/grog.man: Updated copyright date.
1407 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
1409 * configure.in: Added test for strdup.
1411 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
1414 Replaced dynamic allocation of arrays `[...]' with `new' operator.
1418 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
1420 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
1422 2000-03-11 Werner LEMBERG <wl@gnu.org>
1424 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
1426 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
1427 * src/include/lib.h: Remove some spaces.
1429 2000-03-10 Werner LEMBERG <wl@gnu.org>
1431 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
1432 initializers from arguments (some compilers don't like this).
1434 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
1436 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
1437 used by pic and eqn to tell grohtml where the graphic regions start
1439 * src/libs/libgroff/Makefile.sub: Use it.
1440 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
1441 graphic_start() and graphic_end() from htmlindicate.cc.
1443 2000-03-09 Werner LEMBERG <wl@gnu.org>
1445 * tmac/tmac.safer: Will now work correctly in compatibility mode.
1446 * tmac/groff_man.man: More fixes.
1448 2000-03-08 Werner LEMBERG <wl@gnu.org>
1450 * doc/Makefile: Added texput.log to the `clean' target.
1451 * doc/groff.texinfo: Added info about delimiters for escapes.
1453 2000-03-08 Bernd Warken <bwarken@mayn.de>
1455 * src/preproc/pic/pic.man: Add info on conversion of pic images to
1456 other graphic formats.
1458 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
1460 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
1461 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
1462 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
1465 2000-03-07 Werner LEMBERG <wl@gnu.org>
1467 * doc/groff.texinfo: Spelling fixes.
1469 2000-03-06 Werner LEMBERG <wl@gnu.org>
1471 * tmac/groff_man.man: Completely revised to cover everything in
1474 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
1475 Other minor fixings.
1476 * src/roff/troff/env.cc (environment_copy): Improve error message and
1478 * src/roff/troff/TODO: Updated.
1480 * doc/Makefile: Bug fixes -- this is still provisional, though...
1482 * tmac/eqnrc: Small fixes.
1484 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
1486 Adding a request `evc' to copy environments.
1488 * src/roff/troff/env.cc (environment::copy, environment_copy):
1490 * src/roff/troff/env.h: Add prototype.
1492 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
1494 Adding strsep() -- Solaris 8 doesn't have it.
1496 * configure.in: Test it.
1497 * src/devices/grolbp/lbp.cc: Add code.
1499 2000-03-05 Werner LEMBERG <wl@gnu.org>
1501 * src/roff/troff/div.cc (macro_diversion::output,
1502 top_level_diversion::output): Fixing an incompatibility with
1503 original troff: \x'0' updates the .a register also. Thanks to
1504 <Andries.Brouwer@cwi.nl> for pointing this out.
1505 * doc/groff.texinfo: Document it.
1507 * Makefile.in: Create Makefile.dep if necessary before calling the
1508 submake process to avoid warning about nonexistent file.
1510 * NEWS, PROJECTS: Updated.
1512 2000-03-04 Werner LEMBERG <wl@gnu.org>
1514 * tmac/troffrc: Add tmac.lbp.
1516 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
1518 * tmac/tmac.lbp: New file.
1519 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
1522 2000-03-03 Werner LEMBERG <wl@gnu.org>
1524 * Makefile.in: Fixing $(subdir).
1526 * README, NEWS: Small fixes.
1528 * test-groff: Adding path to grolbp.
1530 * configure.in: The (new) file src/xditview/Imakefile.in will be
1531 also configured -- it is now possible to build gxditview in a
1532 directory different from $srcdir.
1534 2000-03-02 Blake McBride <blake@florida-software.com>
1536 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
1538 * MORE.STUFF: Added website of bell labs and info about plot2dev.
1540 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
1542 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
1545 2000-02-29 Werner LEMBERG <wl@gnu.org>
1547 Adding GNU getopt to the groff distribution.
1549 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
1551 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
1552 * aclocal.a4: Remove GROFF_GETOPT function.
1553 * configure.in, Makefile.in, PROBLEMS: Update.
1554 * src/include/lib.h: Replace getopt tests with getopt.h.
1555 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
1557 * doc/groff.texinfo: Further checking/updating. Adding more index
1560 * man/groff_out.man: Fix nroff mode activation (for emacs).
1561 * man/groff_font.man: Add missing ligature.
1563 2000-02-28 Werner LEMBERG <wl@gnu.org>
1565 * doc/groff.texinfo: Further checking/updating. Adding more index
1568 * src/devices/grolbp/grolbp.man: Added a comment line at the
1569 beginning of the file (similar to shell scripts) which indicates
1570 that `tbl' should be used as a preprocessor.
1572 2000-02-27 Blake McBride <blake@florida-software.com>
1574 Adapting groff to MS Visual C++ 6.0 compiler (tested with
1575 Windows NT 4.0). Uses _MSC_VER define where necessary.
1577 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
1578 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
1579 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
1580 src/include/lib.h, src/libs/libgroff/errarg.cc,
1581 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
1582 src/preproc/refer/label.y, src/preproc/refer/label.cc,
1583 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
1584 src/roff/troff/div.cc, src/roff/troff/env.cc,
1585 src/roff/troff/input.cc, src/roff/troff/node.cc,
1586 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
1587 if_to_a() to avoid name clashes.
1588 * src/include/posix.h: Don't use unistd.h.
1589 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
1590 clause for integrating non-Unix xtmpfile() code.
1591 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
1592 structure; use "rt" for popen() in pipe_source(); add getpid()
1594 * src/roff/troff/node.cc: Use special versions of popen() in
1595 real_output_file() and pclose() in ~real_output_file().
1597 2000-02-27 Werner LEMBERG <wl@gnu.org>
1599 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
1600 LBP-8 series laser printers). This code has been contributed by
1601 Francisco Andres Verdu <pandres@dragonet.es>.
1603 * src/devices/grolbp/*: The grolbp output device.
1604 * font/devlpb/*: The font description files.
1605 * Makefile.in: Add grolpb and devlbp subdirectories.
1607 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
1608 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
1611 * doc/groff.texinfo: Further checking/updating. Adding more index
1616 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
1618 * man/groff_font.man: Adding info about obsolete DESC keywords.
1619 * src/devices/grolj4/grolj4.man: Documenting additional DESC
1622 2000-02-26 Werner LEMBERG <wl@gnu.org>
1624 * src/preproc/grn/grn.man: Added info about the gremlin file format
1625 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
1627 2000-02-25 Werner LEMBERG <wl@gnu.org>
1629 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
1630 friends to be non-integer.
1632 * src/preproc/grn/grn.man: Document it.
1634 * doc/groff.texinfo: Further checking/updating. Adding more index
1637 2000-02-24 Werner LEMBERG <wl@gnu.org>
1639 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
1640 line thicknesses to be integer multiples of this value.
1642 * src/preproc/grn/grn.man: Commenting out the -s option -- the
1643 corresponding code doesn't work (yet).
1645 * doc/groff.texinfo: Further checking/updating. Adding more index
1648 2000-02-23 Werner LEMBERG <wl@gnu.org>
1650 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
1651 specify line thickness instead of base units. The new default
1652 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
1653 thick lines respectively.
1655 Removed unused variable `prevval'.
1657 * src/preproc/grn/grn.man: Updated.
1659 2000-02-22 Werner LEMBERG <wl@gnu.org>
1661 * src/preproc/grn/main.cc: Slight formatting.
1663 * src/roff/groff/groff.man: Formatting fix.
1664 * src/preproc/grn/grn.man: Ditto.
1666 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
1668 * doc/groff.texinfo: Further checking/updating.
1670 2000-02-21 Werner LEMBERG <wl@gnu.org>
1672 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
1674 * test-groff: Added grn subdir to path.
1676 * doc/groff.texinfo: Some restructing and other small improvements.
1678 * src/roff/groff/groff.cc (help): Fixed info string.
1680 2000-02-20 Werner LEMBERG <wl@gnu.org>
1682 * doc/meref.me: Fix description of .GS request.
1684 * src/roff/troff/troff.man: Fixing typo.
1686 Adding the `grn' preprocessor for gremlin graphic files.
1688 * src/preproc/grn/*: This is the Berkeley distribution written by
1689 David Slattengren and Barry Roitblat, adapted to groff by Daniel
1690 Senderowicz and Werner Lemberg.
1692 * doc/grnexampl.{me,g}: A sample for grn.
1694 * Makefile.in: Added subdirectory entry for grn.
1696 * src/roff/groff/groff.cc: Added support for grn. It can be now
1697 called with the switch `-g'.
1699 * src/roff/groff/groff.man: Updated.
1701 * src/roff/grog/grog.{man,pl,sh}: Updated.
1705 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
1707 * src/include/lib.h: Added xtmptemplate and made xtmpfile
1708 parametrically polymorphic.
1710 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
1711 and the alterations to xtmpfile.
1712 xtmpfile can be requested to return the filename created
1713 and asked not to unlink the temp file. The default behaviour
1714 if parameters are absent is exactly the same as before.
1716 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
1718 A new request `length' is available which returns the length of a
1719 string in a number register:
1721 * src/roff/troff/input.cc (length_macro): Implement it.
1722 * src/roff/troff/input.cc (init_input_requests): Register it.
1724 2000-02-11 Werner LEMBERG <wl@gnu.org>
1726 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1727 of the `substring' request.
1729 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1732 * src/roff/troff/TODO, NEWS: Updated.
1734 2000-02-09 Werner LEMBERG <wl@gnu.org>
1736 * src/roff/groff/groff.man: Added an example.
1738 2000-02-06 Werner LEMBERG <wl@gnu.org>
1740 I've considerably modified the directory structure of the
1741 distribution to get a more vertical layout. For example, the number
1742 of top level directories has been reduced from 42 to 6.
1744 As a consequence, many changes, especially to the makefiles, were
1747 * The makefile variables `top_builddir' and `top_srcdir' have been
1748 introduced. Virtually all relative paths have been replaced with
1749 absolute ones using these two variables.
1751 * Dependencies (in the files `Makefile.dep') are no longer part of
1752 the distribution. Instead, they are created during a `make install'
1753 in the build directory.
1755 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1756 make `top_srcdir' and `top_builddir' absolute.
1760 * Man pages no depend on the files `VERSION' and `REVISION'.
1762 * The added shell script `mkinstalldirs' will replace `mkdir' in
1765 * VERSION: Version number increased to 1.16.
1767 2000-02-04 Werner LEMBERG <wl@gnu.org>
1769 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1771 * Makefile.in: Removed $(tmac_m) since it is no longer needed
1772 (after an update of the mm stuff).
1774 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1776 2000-02-03 Werner LEMBERG <wl@gnu.org>
1778 The .psbb request will now also accept Mac PS images (i.e. using LF
1779 as the EOL character).
1781 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1782 (with slight modifications).
1783 * troff/input.cc (do_ps_file): Use it.
1785 * test-groff: Add grohtml and grolj4 output devices to PATH.
1787 2000-01-30 Werner LEMBERG <wl@gnu.org>
1789 * NEWS, MORE.STUFF: Updated.
1791 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
1793 Add the `srand' command to pic.
1795 * pic/lex.cc, pic/pic.y: Implement it.
1796 * pic/pic.man: Document it.
1797 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1799 2000-01-30 Werner LEMBERG <wl@gnu.org>
1801 Add a new request `.psbb'. This does exactly what the external
1802 program psbb did. It scans a PostScript image file for a
1803 %%BoundingBox comment and extracts the bounding box values (in
1804 PostScript units) which are then stored in the four new (read-only)
1805 number registers `llx', `lly', `urx', and `ury'.
1807 This will allow the usage of the .PSPIC macro without worrying
1808 about unsafe behaviour of groff, i.e., it will work without the
1809 `-U' switch of groff.
1811 * troff/input.cc: Implement it.
1812 * tmac/tmac.pspic: Use it.
1813 * troff/troff.man, grops/grops.man, NEWS: Document it.
1814 * psbb/*, Makefile.in: Remove it since it is no longer needed.
1816 This is bloody C code simply adapted from psbb.c! Any improvements
1819 2000-01-29 Werner LEMBERG <wl@gnu.org>
1821 * man/groff_font.man: Minor clarifications.
1825 2000-01-28 Werner LEMBERG <wl@gnu.org>
1827 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1829 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
1831 * man/groff_font.man: Brought up to date regarding tcommand
1833 * libgroff/font.cc: Handle everything after `--' as a comment
1835 * devps/*: Added comment delimiter inside devps font files.
1837 2000-01-28 Werner LEMBERG <wl@gnu.org>
1839 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1840 \fC...\fP (which now works as expected).
1842 * troff/troff.man: Fix typo.
1844 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
1846 Completed the pass_filenames implementation in troff.
1848 * libdriver/input.cc: Will read the new `F' tcommand.
1849 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1850 * troff/input.cc: Use it.
1852 2000-01-26 Werner LEMBERG <wl@gnu.org>
1854 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
1855 font will now be updated even if an invalid font is selected.
1857 2000-01-24 Werner LEMBERG <wl@gnu.org>
1859 * doc/homepage.ms: Updated for new tmac.arkup.
1861 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1863 * tmac/tmac.arkup: Cleanup.
1865 Added `\&' to .HTML macro to `leave vertical mode', so to say.
1867 Removed obsolete .LINK macro completely.
1869 The macros .URL, .FTP, and .MAILTO now accept a third argument which
1870 will be immediately appended to the second argument (to be used with
1871 punctuation, for example).
1873 Disabled .CDFTP macro temporarily for security reasons.
1875 * tmac/groff_markup.man: Complete revision for latest changes in
1876 tmac.arkup -- note that it does not yet format correctly with
1879 2000-01-23 Bruno Haible <haible@clisp.cons.org>
1881 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1882 * devutf8/R.proto: Add mappings for wp, lh, rh.
1883 * devutf8/NOTES: Updated.
1885 2000-01-23 Werner LEMBERG <wl@gnu.org>
1887 * doc/groff.texinfo: Updated version/copyright info.
1889 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
1891 Added support for two new directives in device descriptions:
1892 `pass_filenames' (to pass the input file name to the output device)
1893 and `use_charnames_in_special' (to support e.g. accented characters
1894 in the `X' request).
1896 * include/font.h, troff/charinfo.h: Declare it.
1898 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1900 * devhtml/DESC: Use it.
1902 * troff/input.cc: New function encoded_char.
1904 * troff/token.h: Add test for `specialness'.
1906 2000-01-21 Werner LEMBERG <wl@gnu.org>
1908 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1909 mistake from the list of files to be installed.
1911 2000-01-18 Werner LEMBERG <wl@gnu.org>
1913 * README: Added info how to apply patches.
1915 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
1917 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
1919 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
1921 * troff/input.cc: Add support for troffrc-end.
1923 * tbl/main.cc: Altered to issue table-start and table-end special
1924 characters if using the html device.
1926 * devhtml/*: Modified font files to incorporate html encoding of
1929 * tmac/groff_markup.man: New file documenting tmac.arkup.
1931 * tmac/troffrc-end: New file. This is invoked after all user
1932 specified macros. Currently used by the html device to include
1933 tmac.html. Thus no need for users to specify -mhtml anymore.
1935 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1936 (MAN7): Add groff_markup.man.
1938 * tmac/tmac.an, tmac/tmac.html: Small html updates.
1940 * tmac/troffrc: tmac.arkup will now be called for the html device.
1942 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1943 extra device specific information about fonts.
1945 * doc/homepage.ms: New file. It is an example how an HTML home page
1946 could look like with grohtml.
1948 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
1950 2000-01-12 Bruno Haible <haible@clisp.cons.org>
1952 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
1955 * devutf8/NOTES: Updated.
1957 2000-01-08 Bruno Haible <haible@clisp.cons.org>
1959 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1960 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1961 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1962 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1963 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1964 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1965 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1966 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1969 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1971 2000-01-12 Fabrizio Polacco <fab@prosa.it>
1973 grolj4: Paper size will be searched case-insensitively.
1975 * include/lib.h: Add check for strcasecmp().
1976 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1977 * configure.in: Check for strcasecmp().
1979 2000-01-11 Werner LEMBERG <wl@gnu.org>
1981 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1984 2000-01-10 Werner LEMBERG <wl@gnu.org>
1986 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1989 Add a new read-only register, `.Y', which contains the groff
1992 * troff/input.cc (init_input_requests): Define it.
1993 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1994 * doc/groff.texinfo, troff/troff.man: Document it.
1996 * libgroff/Makefile.sub (version.cc): Add definition of
1997 `Version_string[]', consisting of `<major>.<minor>.<revision>'
1998 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1999 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
2000 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
2001 troff/input.cc, pfbtops/pfbtops.c: Use it.
2003 2000-01-10 Fabrizio Polacco <fab@prosa.it>
2005 Add a revision scheme to the groff package.
2007 * REVISION: New file.
2008 * libgroff/Makefile.sub (version.cc): Use it to define
2009 `revision_string[]'.
2010 * grops/psrm.cc: Use revision_string (converted to an unsigned
2011 integer) in constructor of resource_manager.
2013 2000-01-10 Bruno Haible <haible@clisp.cons.org>
2015 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
2017 * Makefile.in (DEVDIRS): Add devutf8.
2018 * grotty/tty.cc: Include device.h.
2019 (glyph): Change type of `code' to `unsigned int'.
2020 (tty_printer): New field is_utf8. Constructor takes device argument.
2021 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
2022 (tty_printer::add_char): Change type of first arg to `unsigned int'.
2023 (tty_printer::put_char): New function.
2024 (tty_printer::end_page): Use put_char() instead of ::putchar().
2025 (make_printer): Pass device to tty_printer constructor.
2026 * nroff.sh: Determine default device by calling 'locale'. As a
2027 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
2028 Recognize UTF-8 locales.
2029 * tmac/eqnrc: Recognize utf8 like latin1.
2030 * tmac/troffrc: Device utf8 needs tmac.tty.
2032 2000-01-07 Werner LEMBERG <wl@gnu.org>
2034 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
2036 2000-01-07 Paul Eggert <eggert@twinsun.com>
2038 Add a new predefined writeable number register, `year',
2039 which contains the current year.
2041 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
2042 * tmac/tmac.s: Use it.
2043 * troff/input.cc (init_registers): Initialize it.
2045 2000-01-06 Werner LEMBERG <wl@gnu.org>
2047 * PROBLEMS: Fixed typo.
2049 2000-01-04 Paul Eggert <eggert@twinsun.com>
2051 * PROBLEMS: Add Y2k advice for the yr number register.
2053 2000-01-03 Paul Eggert <eggert@twinsun.com>
2055 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
2057 2000-01-02 Werner LEMBERG <wl@gnu.org>
2059 * tmac/tmac.arkup: Slight modification of macros to provide better
2060 appearance for non-HTML formats.
2062 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
2064 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
2065 does not automatically translate to malloc(n) on all OSes
2066 (e.g., SunOS) so do it explicitly. Also, check the returned
2069 2000-01-01 Werner LEMBERG <wl@gnu.org>
2071 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
2073 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
2074 expects this variable
2076 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
2078 * doc/Makefile: Added instructions to create HTML and text
2079 versions of some files.
2081 1999-12-31 Werner LEMBERG <wl@gnu.org>
2083 * Updated INSTALL.gen.
2085 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
2086 better resp. correctly with non-HTML devices.
2088 Version 1.15 released
2089 =====================
2091 1999-12-28 Werner LEMBERG <wl@gnu.org>
2093 * NEWS, VERSION: Changed to 1.15
2095 1999-12-27 Paul Eggert <eggert@twinsun.com>
2097 * nroff/nroff.man: -S is safer, not safe.
2099 * groff/groff.cc (main): Use `safer', not `safe', in variable
2100 names. This does not change the behavior.
2102 * troff/input.cc (main): Likewise.
2104 * nroff/nroff.sh: Likewise.
2106 * troff/input.cc (prepend_string): New function.
2107 (main): Prepend -msafer, so that we check macro libraries for
2110 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
2112 Version 1.14 released
2113 =====================
2115 1999-12-26 Werner LEMBERG <wl@gnu.org>
2117 * NEWS, VERSION: Changed to 1.14.
2119 1999-12-24 Werner LEMBERG <wl@gnu.org>
2121 * refer/refer.cc: Fixing the last fix.
2123 Version 1.13 released
2124 =====================
2126 1999-12-23 Werner LEMBERG <wl@gnu.org>
2128 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
2133 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
2135 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
2136 document conventions, the version number must be a real.
2138 Version 1.12.1 released
2139 =======================
2141 1999-12-22 Werner LEMBERG <wl@gnu.org>
2143 * VERSION: Changed to 1.12.1.
2145 1999-12-22 Alan Rooks <arooks@istar.ca>
2147 * refer/refer.cc (do_file): Slight modification to satisfy the
2148 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
2151 1999-12-20 Werner LEMBERG <wl@gnu.org>
2153 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
2156 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
2157 list of unsafe requests.
2159 * pic/pic.man: Fixed a typo.
2161 * man/groff_out.man: Fixed a typo.
2163 1999-12-18 Werner LEMBERG <wl@gnu.org>
2165 * Makefile.in: Doc fixes.
2167 1999-12-17 Fabrizio Polacco <fab@prosa.it>
2169 * groff/groff.cc: Missing `U' option added to getopt().
2171 * troff/troff.man: Missing `U' option added to synopsis.
2173 Version 1.12 released
2174 =====================
2176 1999-12-14 Werner LEMBERG <wl@gnu.org>
2178 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
2181 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
2182 with the more appropriate terms `safer' and `unsafe'.
2184 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
2185 sys_nerr and sys_errlist[].
2187 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
2189 * pic/pic.y, pic/pic.cc: Added check for fmod().
2191 1999-12-13 Werner LEMBERG <wl@gnu.org>
2193 * VERSION: Changed to 1.12.
2195 Here some patches from various sources; most of them taken from
2196 the Debian distribution.
2198 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
2199 tmac/Makefile.sub: New files copied directly from the NetBSD
2200 distribution. Probably, some additional adaptation later on is
2203 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
2206 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
2207 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
2208 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
2209 (`-S') is now the default.
2211 * README, NEWS: Updated.
2213 1999-12-09 Werner LEMBERG <wl@gnu.org>
2215 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
2217 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
2219 1999-12-06 Werner LEMBERG <wl@gnu.org>
2221 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
2222 grief than relief today. Additionally, it is against the GNU
2225 * configure: Recreated.
2227 1999-12-05 Werner LEMBERG <wl@gnu.org>
2229 * configure.in: Added GROFF_LIBM.
2231 * configure: Recreated.
2233 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
2236 * Makefile.in: Added definition of $(LIBM).
2238 * Makefile.comm (LIBM): Removed.
2240 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
2242 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
2244 * doc/Makefile: Added rule for generation pic.html.
2246 (clean): Files produced by grohtml will be removed also.
2248 * doc/pic.ms: Small fix.
2250 * tmac/tmac.html: Fixed suppression of headers.
2252 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
2254 * tmac/tmac.html: Fixing horizontal arrows.
2256 Turning off hyphenation.
2258 * tmac/tmac.an: Improved support for grohtml; better indentation,
2261 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
2263 * tmac/tmac.arkup: Added CDFTP macro
2265 * tmac/tmac.html: All headers are turned off for ms, me, and mm
2268 * tmac/troffrc: Some additions for HTML stuff.
2270 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
2272 * tmac/tmac.html: Small changes.
2274 1999-09-26 Werner LEMBERG <wl@gnu.org>
2276 * doc/groff.texinfo: Minor fixes.
2278 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
2280 * devhtml/TR: Changed spacewidth to 3.
2282 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
2284 * tmac/tmac.html: Moved markup macros to tmap.arkup.
2286 * tmac/tmac.arkup: New file.
2288 * grohtml/ChangeLog: New file.
2290 1999-09-16 Werner LEMBERG <wl@gnu.org>
2292 * doc/groff.texinfo (Common Features): Added Copying chapter.
2293 Changed format to @smallbook.
2295 1999-09-15 Werner LEMBERG <wl@gnu.org>
2297 * NEWS: Added info about groff.texinfo.
2299 * doc/groff.texinfo: Will now compile (using texi2dvi) without
2302 1999-09-14 Werner LEMBERG <wl@gnu.org>
2304 * groff/groff.man: More updates.
2306 1999-09-13 Werner LEMBERG <wl@gnu.org>
2308 * doc/groff.texinfo: New file. This manual is still very
2309 rudimentary. It has been originally contributed by Trent
2310 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
2313 * INSTALL: Added information about the `doc' subdir
2315 * troff/troff.man: Minor fixes.
2317 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
2320 * troff/input.cc (usage): Added missing `-ffam' to usage message.
2322 * Makefile.in (dist): groff-$(version).tar.gz must be removed
2323 also, otherwise it is included itself in another call of `make
2326 * groff/groff.cc (synopsis): Removed superfluous space.
2328 * PROJECTS, PROBLEMS, NEWS: Updated.
2330 * VERSION: Updated to 1.12beta.
2332 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
2334 * README: Updated: Included documentation about CVS repository,
2335 mailing lists, and daily snapshots.
2337 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
2339 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
2341 * tmac/tmac.an: If the tag didn't fit into the space that the
2342 macro `TP' specifies, the rest of the tag went into the space for
2345 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
2347 * grolj4/lj4.cc: Added duplex printing (option `-d').
2349 * grolj4/grolj4.man: Document duplex printing.
2351 1999-09-12 Werner LEMBERG <wl@gnu.org>
2353 * doc/Makefile (pic.ps): Fixed rule which caused problems with
2354 non-GNUish sed programs.
2356 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
2359 * configure.in (LIBS): Added `-lc'
2361 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
2363 * pic/tex.cc (solid_arc): Casting M_PI to double.
2365 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
2367 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
2368 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
2369 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
2371 * groff/groff_man.man: New file. This manual page was originally
2372 written for the Debian GNU/Linux system by Susan G. Kleinmann
2375 * eqn/list.cc (list_box::compute_metrics,
2376 list_box::compute_sublist_width): Removed variable declaration to
2377 avoid shadowing warnings.
2379 * grops/psrm.cc (resource_manager::process_file): Ditto.
2381 * tfmtodit/tfmtodit.cc (main): Ditto.
2383 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
2384 to avoid shadowing warnings.
2386 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
2387 shadowing loop variable.
2389 * groff/groff.man, troff/troff.man: Added doc about grohtml.
2391 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
2393 New grohtml frontend to convert groff input to html.
2395 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
2397 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
2399 * tmac/eqnrc: Added html device.
2401 * tmac/tmac.html: New file.
2403 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
2404 (troff_output::start_picture, troff_output::finish_picture),
2405 tbl/main.cc (process_input_file):
2406 Surrounded output with `graphics_start' and `graphics_end' so that
2407 the html driver can identify non-text portions.
2409 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
2410 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
2411 grotty/tty.ps (tty_printer::set_char): Additional parameter
2414 * include/printer.h: Class printer: New function
2415 set_char_and_width; new variables (is_char_named, is_named_set,
2416 named_command, named_char_s, named_char_n) to hold information
2417 about named characters -- needed by the html driver.
2419 * libdriver/printer.cc (printer::set_ascii_char,
2420 printer::set_special_char): Use set_char_and_width.
2422 * devhtml/*: New device files for html driver.
2424 * grohtml/*: New driver grohtml.
2426 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
2428 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
2431 1999-09-11 Luke Mewburn <lukem@netbsd.org>
2433 * libgroff/string.cc (search): Small fix to test against NULL
2436 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
2438 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
2439 \b'abc') were stacked in reverse order when processed in a
2442 * troff/node.h: Added `*last' to struct `node' to make the above
2445 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
2446 The default scale for the 'f' and 't' graphics functions were 'm'
2447 rather than 'u' (i.e., no scaling).
2449 1999-09-11 Peter Miller <peterm@jna.com.au>
2451 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
2452 do_file), soelim/soelim.man: Added `-I file' option to soelim,
2453 defining include paths.
2455 * soelim/soelim.cc (include_path_append): New function.
2457 1999-09-11 Larry Jones <larry.jones@sdrc.com>
2459 * tbl/main.cc (process_options): Unix (at least Documenter's
2460 Workbench) tbl allows arbitrary non-alpha characters between
2463 1999-09-11 Paul Eggert <eggert@twinsun.com>
2465 Y2k fixes. Don't assume that the current year precedes 2000.
2467 * doc/meref.me: Add \n(y2, \n(y4.
2469 * tmac/doc-common (Yr): New number register.
2470 (Dd): Don't assume current year precedes 2000.
2472 * tmac/tmac.e (td): Likewise.
2473 (y2, y4): New number registers.
2475 * pic/pic.man: Update reference for pic paper to May, 1991
2478 1999-09-11 Werner LEMBERG <wl@gnu.org>
2480 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2481 Removed quotation marks which prevented correct expansion of
2484 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
2486 1999-09-10 Werner LEMBERG <wl@gnu.org>
2488 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
2491 * Removed configure.old.
2493 1999-08-31 Werner LEMBERG <wl@gnu.org>
2495 * VERSION: Updated to 1.11.1
2497 1999-05-27 Werner LEMBERG <wl@gnu.org>
2499 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
2501 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2502 added quotations around $(tmac_wrap) to avoid syntax error if
2505 * configure: Newly generated using autoconf 2.13.
2507 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
2509 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
2511 * README, PROJECTS, NEWS, INSTALL, VERSION,
2512 doc/Makefile. doc/pic.ms, groff/groff.man:
2513 Prepare for 1.11 release. No code changes.
2514 Documentation for pic added (doc/pic.ms).
2516 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
2518 * Version 1.10 released.
2520 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
2522 * afmtodit/afmtodit.pl: Avoid comment on first line.
2524 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
2526 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
2527 * configure.in: Call it.
2529 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
2530 (distfiles): Doesn't depend on config.log or config.cache.
2532 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
2534 * grog/grog.sh: Use print "" rather than print in END rule.
2536 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
2538 * tbl/main.cc (process_data): Don't give error for excess data
2539 entries that are comments.
2541 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
2543 * tbl/main.cc (process_data): Fix case where new for-scope rules
2544 silently change meaning of code.
2546 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
2548 * troff/env.cc (hyphenate): Loop over all consecutive sequences
2549 of non-zero hyphenation codes.
2551 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
2553 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
2555 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
2557 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
2559 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
2561 * tmac/tmac.andoc: Make it work in compatibility mode.
2563 * refer/token.h (token_info::is_range_sep): New function.
2564 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
2565 * refer/ref.cc (reference::output): More sophisticated check for
2568 * devps/prologue.ps (MANUAL): New procedure.
2569 * grops/ps.cc (main): New -m option.
2570 (usage): Include -m.
2571 (ps_printer::~ps_printer): Implement -m.
2573 * aclocal.m4 (GROFF_G): New macro.
2574 * configure.in: Call it.
2575 * Makefile.in (g): Provided by configure.
2577 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
2579 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
2582 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
2583 (tmac_m, tmac_s): Deleted.
2584 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
2585 tmac_s_prefix): New variables.
2586 (MDEFINES): Change accordingly.
2587 * Makefile.comm (.man.n): Use new TMAC_* variables.
2588 * configure.in (GROFF_TMAC): Call.
2589 * aclocal.m4 (GROFF_TMAC): Define.
2590 * tmac/Makefile.sub (stamp_wrap): New target.
2591 (install_data, uninstall_sub): Handle macro wrapping.
2593 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
2595 * tbl/main.cc (main): Ignore -T option.
2597 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
2599 * devlj4/generate/special.map: Add definition of \(nb.
2601 * tmac/tmac.dvi: Add definition of \(nb.
2603 * troff/dictionary.c (dictionary::dictionary): association::v gets
2604 initialized by association::association.
2606 * tmac/Makefile.sub: Avoid using temporary files when installing.
2608 * troff/env.cc (environment::set_font): Make bad font number a
2611 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
2613 * Makefile.in (datadir): Use share rather than lib.
2615 * groff/groff.cc (basename): Rename to xbasename.
2617 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
2619 * Makefile (CCLIBS): Don't use.
2620 * Makefile.ccpg: Likewise.
2622 * acgroff.m4: Rename to...
2623 * aclocal.m4: Modify extensively for autoconf 2.
2624 * configure.in: Likewise.
2625 * Makefile.in: Likewise.
2627 * groff/pipeline.c (const): Declare as empty if __STDC__ not
2629 (xstrsignal): Check for definition of NSIG. Conditionalize
2630 on SYS_SIGLIST_DECLARED. Make return type const.
2632 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
2634 * troff/input.cc (interpolate_macro): Rephrase missing space
2637 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
2639 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
2640 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
2641 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
2642 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2643 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
2644 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
2645 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
2646 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
2647 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
2648 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
2649 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
2652 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
2654 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
2656 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
2658 (macro_iterator::macro_iterator): Add additional argument.
2660 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
2662 * troff/div.cc (vertical_size::vertical_size): In place of integer
2663 specifying line spacing use cunits specifying post vertical
2665 (macro_diversion::output, top_level_diversion::output): Likewise.
2666 * troff/div.h: Change declarations accordingly.
2667 * troff/env.cc (pending_output_line): Replace ls field by post_vs
2669 (pending_output_line::pending_output_line,
2670 pending_output_line::output, environment::output,
2671 environment::output_line, environment::output_title,
2672 environment::hyphenate_line): In place of
2673 integer specifying line spacing use cunits specifying post vertical
2675 (environment::environment): Add post_vertical_spacing and
2676 prev_post_vertical_spacing arguments.
2677 (environment::get_post_vertical_spacing): New function.
2678 (environment::total_post_vertical_spacing): New function.
2679 (environment::post_vertical_spacing): New function.
2680 (init_env_requests): Initialize pvs request and .pvs register.
2681 * troff/env.h: Change declarations.
2683 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
2685 * tmac/tmac.pspic: Immediately remove the temporary file.
2687 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
2689 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
2690 height is specified.
2692 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
2694 * tbl/table.c (struct vertical rule, class table_entry): Use int
2695 not short for start_row and end_row.
2697 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
2699 * troff/input.cc (trapping_blank_line, blank_line_macro): New
2701 (diverted_space_node::reread, process_input_stack): Call
2702 trapping_blank_line() rather than blank_line().
2703 (init_input_requests): Bind "blm" to blank_line_macro().
2705 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
2707 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
2709 * troff/env.cc (environment::possibly_break_line): Require that
2710 width total excluding width of final space node be greater than
2711 the target text length.
2713 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
2715 * troff/node.cc (kern_pair_node::vertical_extent): New function.
2717 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
2719 * troff/node.cc (charinfo_node): New class.
2720 (glyph_node, composite_node): Derive from charinfo_node. Change
2721 member functions accordingly.
2723 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
2725 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2727 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
2729 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2731 * devps/generate/textmap (notsubset): Add.
2733 * tmac/tmac.a4: New file.
2735 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
2737 * pic/main.cc (had_parse_error): New variable.
2738 (do_picture, do_whole_file): Set had_parse_error if yyparse()
2740 (main): Return 1 if had_parse_error is true.
2742 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
2744 * grolj4/lj4.cc (main): Avoid use of strtoul.
2746 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
2748 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2749 iso_8859_1 or $LESSCHARSET is latin1.
2751 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
2753 * hpftodit: New directory.
2754 * Makefile.in (CCPROGDIRS): Add hpftodit.
2755 * devlj4/generate: New directory.
2757 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
2759 * configure.in: Don't use AC_VFORK.
2760 * groff/pipeline.c (run_pipeline): Use fork() always.
2762 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
2764 * grops/ps.cc (main): Use %1 not %s in error message for -w.
2766 * Makefile.in (CCPROGDIRS): Add grolj4.
2767 (DEVDIRS): Add devlj4.
2768 * grolj4, devlj4: New directories.
2769 * tmac/troffrc: Handle lj4.
2770 * tmac/tmac.lj4: New file.
2772 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
2774 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2776 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
2778 * troff/input.cc (do_if_request): At end of second string, switch
2779 environments before getting next token.
2781 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
2783 * devps/psstrip.sed: Split rule that strips whitespace on either
2786 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
2788 * troff/node.h (font_family::make_definition): Add return value to
2789 declaration. * troff/symbol.h (symbol::operator==,
2790 symbol::operator!=): Likewise.
2792 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
2794 * groff/groff.cc (main, help, synopsis): Handle -S.
2795 (possible_command::insert_arg): New function.
2797 * tmac/tmac.safer: New file.
2798 * tmac/msafer.man: New file.
2799 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2801 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
2803 * pic/pic.h, pic/main.cc (safer_flag): New variable.
2804 * pic/pic.y (placeless_element): Avoid unsafe operations if
2805 `safer_flag' is set.
2806 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2808 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
2810 * eqn/lex.cc (get_token): Put call to add_context() in block to
2811 work around Sun C++ 4.0 bug.
2813 * include/stringclass.h (operator +): Use ?: instead of `if' to
2814 work around Sun C++ 4.0 bug.
2816 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
2818 * tbl/main.cc (process_format): Accept - as a synonym for the _
2821 * libbib/index.cc (minus_one): Don't declare as const.
2823 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
2825 * troff/input.cc (get_char_for_escape_name): Push back a newline.
2827 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
2829 * troff/input.cc (write_macro_request): New function.
2830 (init_input_requests): Bind write_macro_request to writem.
2832 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
2834 * tmac/tmac.s (@EN): Turn filling back on even if there was no
2837 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2839 * tmac/tmac.s (@TS): Renamed from TS.
2840 (TS): Call LP then TS again.
2841 (cov*ab-init): Alias @TS to TS.
2843 * tmac/tmac.s: Allow QP or RS to initialize.
2845 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
2846 Move initializations of PS and LL here.
2847 (par@init): Don't initialize HY. Avoid changing environment 0.
2848 (par*env-init): Don't all par@reset.
2850 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
2852 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2854 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
2856 * Makefile.in (MDEFINES): Add LDFLAGS.
2857 (LDFLAGS): Add definition line.
2859 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
2861 * troff/input.cc (get_optional_char): Split off error check into...
2862 (check_missing_character): New function.
2863 * troff/token.h: Declare it.
2864 * troff/env.cc (margin_character): Don't call get_optional_char.
2865 Only call tok.next() after making the node.
2867 * include/lib.h (getopt): Make 2nd argument char *const *.
2869 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
2871 * nroff/conftest.sh: Deleted.
2873 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
2875 * pic/make-dos-dist: Deleted.
2877 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
2879 * devps/psstrip.sed: Strip comments before stripping trailing
2882 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
2884 * Version 1.09 released.
2886 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
2888 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2890 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
2892 * libgroff/font.cc (font::load_desc): Fix typo in error message.
2894 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
2896 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2897 about returning without a value.
2899 * troff/charinfo.h (charinfo::get_special_translation): Cast
2900 TRANSLATE_NONE to int.
2902 * refer/token.cc (lookup_token, store_token): Remove bogus loop
2903 test. Fix test so that it works with n unsigned.
2905 * pic/pic.y (defaults_table): Fully bracket initializer.
2906 * pic/lex.cc (lookup_keyword): Likewise.
2907 * eqn/lex.cc (token_table, def_table): Likewise.
2908 * eqn/box.cc (param_table): Likewise.
2909 * troff/input.cc (warning_table): Likewise.
2910 * libgroff/font.cc (table): Likewise.
2911 * grops/ps.cc (ps_printer::special): Likewise.
2912 * grops/psrm.cc (resource_manager::process_file): Likewise.
2913 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2914 * refer/command.cc (command_table): Likewise.
2915 * addftinfo/addftinfo.cc (param_table): Likewise.
2917 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2918 about temp's being unused.
2919 (unused): New function.
2921 * groff/pipeline.cc: Declare c_fatal.
2923 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2926 * libbib/index.cc (index_search_item::load): Prevent compiler
2927 warnings about fd_closer's being unused.
2928 (unused): New function.
2930 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
2932 * troff/input.cc (copy_mode_error): Make `prefix' static.
2935 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2937 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2938 HAVE_CC_OSFCN_H and modify accordingly.
2940 * troff/input.cc (init_charset_table): radicalex overlaps
2943 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2944 udodo!hans@relay.NL.net).
2945 * groff/configure.in: Call it.
2947 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2948 * groff/configure.in: Call it.
2949 * include/lib.h: Conditionalize declaration of pclose.
2951 * troff/div.cc (last_page_number): New global variable.
2952 (top_level_diversion::begin_page): Exit if we just printed the
2954 * troff/div.h (last_page_number): Declare it.
2955 * troff/input.cc (parse_output_page_list): Set last_page_number.
2957 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2958 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2959 tmac/tmac.X: Likewise.
2960 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2961 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2963 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
2965 * tmac/doc-ditroff (hK): Remove groff specific code which
2966 prevented page-breaks between separate manual entries. If this is
2967 the first page, don't set the page number to 1.
2969 * acgroff.m4 (GROFF_POSIX): New macro.
2970 * configure.in: Use it.
2972 * troff/node.cc (class real_output_file,
2973 real_output_file::real_output_file,
2974 real_output_file::~real_output_file): Conditionalize use of
2975 popen/pclose on POPEN_MISSING.
2976 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2977 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2978 (pipe_source): Similarily.
2980 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2982 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2983 presence of declarations by trying to compile example with
2984 conflicting declarations. (gcc only gives a warning for missing
2987 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
2989 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2990 (from Ulrich Lauther).
2992 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
2994 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2996 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
2998 * indxbib/indxbib.cc (write_hash_table): Add code for case where
2999 pointers and ints have different sizes.
3001 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
3003 * tmac/tmac.s (par*env-init): Call par@reset.
3005 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
3007 * tmac/tmac.s (@IP): Switch to a new environment when diverting
3009 (par*push-tag-env, par*pop-tag-env): New macros.
3011 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
3013 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
3014 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
3016 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
3017 comment. Include <time.h>.
3019 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
3021 * grops/ps.cc (is_small_h, is_small_v): Deleted.
3022 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
3025 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
3027 * troff/input.cc (read_request): Only print a prompt if reading
3028 from the terminal. Also clearerr on EOF if reading from the
3029 terminal. Declare isatty.
3031 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
3033 * refer/label.y: Rename map_t to map_func and extractor_t to
3036 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
3038 * include/assert.h: Don't use volatile.
3039 * libgroff/assert.cc: Likewise.
3041 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
3043 * troff/input.cc (abort_request): Look at character in tok before
3046 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
3048 * troff/troff.h (NO_RETURN): Deleted.
3049 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
3050 * troff/input.cc (exit_troff): Likewise
3052 * Makefile.in: Remove `Making ...' messages since GNU make now
3055 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3057 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
3059 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
3062 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
3064 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
3066 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
3068 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
3069 MARK_REG if there was no left delimiter.
3071 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
3073 * pic/troff.cc (troff_output::text): Set line thickness to
3074 relative before outputting text.
3076 * tmac/tmac.e (@k): Don't zero ?T.
3079 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
3081 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
3083 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
3085 * troff/input.cc (decode_args): Warn about unquoted tabs (from
3088 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
3090 * troff/input.cc (ignoring): New variable.
3091 (ignore): Set ignoring during call to do_define_macro.
3092 (do_define_macro): Clear ignoring before interpolating terminating
3094 (copy_mode_error): New function.
3095 (get_char_for_escape_name, read_long_escape_name,
3096 interpolate_arg): Use copy_mode_error.
3097 (warning_table): Add WARN_IG.
3098 * troff/troff.h (WARN_IG): Declare.
3099 (WARN_TOTAL): Change accordingly.
3101 * groff/pipeline.c (strsignal): Rename to xstrsignal.
3102 * groff/groff.cc (strsignal): Delete declaration.
3104 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
3106 * troff/div.cc (page_offset): Use 'm' as default scaling.
3108 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
3110 * nroff/nroff.sh: Ignore -u.
3112 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
3114 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
3116 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
3118 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
3120 (B2): With -Tascii, leave additional vertical space before
3121 and after. Ensure that the left and right indent is restored to
3122 what it was even if the point size changes. Don't call
3123 par@finish. Change the indent, line length and title length
3124 directly. With -Tascii, make the width of the box 1n less.
3125 (B1): Remember 1n at the current point size. Don't call
3126 par@reset. Change the indent, line length and title length
3127 directly. Ensure that the temporary indent is preserved.
3128 (par*box-mark-top): Turn off no spacing mode.
3130 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
3132 * Makefile.in (dist): Use .gz suffix.
3134 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
3136 * troff/input.cc (main): Add return 0.
3137 * pic/main.cc (main): Use return instead of exit.
3138 * tbl/main.cc (main): Likewise.
3139 * eqn/main.cc (main): Likewise.
3140 * grops/ps.cc (main): Likewise.
3141 * grotty/tty.cc (main): Likewise.
3142 * groff/groff.cc (main): Likewise.
3143 * grodvi/dvi.cc (main): Likewise.
3144 * refer/refer.cc (main): Likewise.
3145 * indxbib/indxbib.cc (main): Likewise.
3146 * lkbib/lkbib.cc (main): Likewise.
3147 * soelim/soelim.cc (main): Likewise.
3148 * addftinfo/addftinfo.cc (main): Likewise.
3149 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
3150 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
3152 * troff/token.h (process_input_stack): Don't declare as static.
3153 * troff/input.cc: Likewise.
3155 * troff/node.c (invalidate_fontno): Make it a static member of
3156 class font_family. Change callers.
3157 * troff/node.c: Change declaration.
3159 * tbl/main.cc (struct input_entry_format): Add explicit public
3161 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
3162 struct double_hline_stuff): Likewise.
3163 * tbl/table.h (struct entry_format): Likewise.
3164 * pic/object.h (struct saved_state): Likewise.
3166 * include/stringclass.h: Add forward declarations of friend
3167 functions that are later declared as inline. Don't include inline
3168 specifier in friend declaration.
3170 * libgroff/lib.h: Declare popen and pclose.
3171 * acgroff.m4 (GROFF_POPEN): New macro.
3172 * configure.in: Call it.
3174 * include/lib.h (PI): New constant. Undef first if necessary.
3175 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
3176 * grops/ps.cc (degrees, radians): Likewise.
3177 * libgroff/font.cc (font::get_skew): Likewise.
3179 * grops/ps.cc (is_ascii): New function.
3180 (ps_output::put_string): Use is_ascii. Use csprint rather than
3182 (ps_printer::define_encoding): Use csspace.
3183 * libgroff/strtol.c (ISASCII): New macro.
3184 (strtol): Cast arguments to is*() and tolower() to unsigned char.
3185 Use ISASCII rather than isascii.
3186 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
3187 * libgroff/cset.cc: Likewise.
3188 * libdriver/input.cc: Include cset.h.
3189 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
3192 * refer/refer.cc (main): Use %ld rather than %d for longs.
3194 * libbib/index.cc (index_search_item_iterator::get_tag): Use
3197 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
3199 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
3201 * troff/input.cc (hyphenation_code): Skip white space between
3204 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
3206 * tbl/table.h (table::entry_list_tailp): New member.
3207 (table::table): Initialize it.
3208 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
3211 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
3213 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
3214 with negative horizontal positions. Remove casts of glyph::hpos to
3216 (USHRT_MAX): Delete definition.
3217 (SHRT_MAX, SHRT_MIN): New definitions.
3218 (glyph::hpos): Change type to short.
3219 (tty_printer::end_page): Output multiple backspaces if necessary.
3220 Remove casts of glyph::hpos to int.
3222 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
3224 * tmac/tmac.s (@RT): New definition.
3226 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
3228 * refer/refer.cc (do_file): Make sure current_filename is set when
3231 * pic/common.cc (common_output::dot_line): Handle zero length
3234 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
3236 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
3237 (par@init): Initialize \n[HY].
3239 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
3241 * troff/dictionary.cc (dictionary::remove): Continue when
3244 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
3246 * Makefile.com (.y.cc): Avoid ending up with two versions of
3249 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
3251 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
3252 (\(,C): Likewise. Also fix typo.
3254 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
3256 * lib.h: Delete extraneous semi-colon.
3258 * Add pso request: `so' from a pipe.
3259 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
3260 (file_iterator::close): New function.
3261 (file_iterator::~file_iterator, file_iterator::next_file): Use
3262 file_iterator::close.
3263 (file_iterator::backtrace): Say `process' rather than `file' when
3264 the stream is popened.
3265 (pipe_source): New function.
3266 (init_input_requests): Bind ".pso" to pipe_source.
3268 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
3270 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
3272 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
3273 digits in lower case.
3275 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
3277 * Version 1.08 released.
3279 * Makefile.in (dist): Insert || true after ln -s commands that
3282 * mm: Update to mm 1.16.
3284 * acgroff.m4 (GROFF_CSH_HACK): New macro.
3285 * configure.in: Call GROFF_CSH_HACK. Substitute for
3287 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
3289 * nroff/Makefile.sub (nroff): New target.
3290 (install_data): Install nroff.
3291 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
3292 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
3294 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
3296 * eqn/Makefile.sub (neqn): Add chmod +x.
3298 * grog/Makefile.sub (grog): Remove spurious semi-colon.
3300 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
3302 * troff/input.cc (string_iterator::string_iterator()): Initialize
3305 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
3307 * troff/div.cc (macro_diversion::space,
3308 top_level_diversion::space): Don't set high_water_mark.
3309 (macro_diversion::output, top_level_diversion::output): Don't
3310 include post line space in high water mark.
3312 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
3314 * eqn/eqn.y: Don't define YYDEBUG.
3315 * pic/pic.y: Likewise.
3317 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
3319 * tmac/tmac.e ([3): Add space after comma following editors.
3320 Change double spaces to single spaces.
3321 ([4): Change double spaces to single spaces.
3323 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
3324 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
3325 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
3326 after %!PS-Adobe- (for Newsprint).
3328 * troff/div.cc (top_level_diversion::begin_page): When
3329 before_first_page is 1, set page_number to 1.
3331 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
3333 * eqn/box.cc (box::top_level): Protect equation with \&.
3335 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
3337 * groff/groff.cc (possible_command::set_name): Delete old name.
3339 * groff/groff.cc (possible_command::~possible_command): Use
3342 * troff/node.cc (troff_output_file::begun_page): New member.
3343 (troff_output_file::troff_output_file): Initialize it.
3344 (troff_output_file::really_begin_page): Only output V command if a
3345 page has been begun.
3347 * pic/pic.y (placeless_element): Delete argument to PRINT after
3350 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
3352 * Make wrapman work.
3353 * troff/div.h (class top_level_diversion): Replace
3354 first_page_begun by before_first_page (with opposite sense).
3355 * Change first_page_begun to before_first_page inverting sense.
3356 * troff/div.cc (class nl_reg): New class.
3357 (init_div_requests): Use class nl_reg for \n(nl.
3358 (top_level_diversion::begin_page): Don't call
3359 output_file::begin_page if before_first_page is 2;
3360 reset before_first_page afterwards. If have_next_page_number is
3361 false, then always increment page_number.
3362 * tmac/tmac.an: Set traps within TH rather than at the top-level.
3363 Restore compatibility mode after loading, and then disable
3364 compatibility mode in TH.
3366 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
3368 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
3370 * troff/node.h (output_file::trailer): Declare.
3371 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
3372 * troff/node.cc (output_file::trailer): New function.
3373 (troff_output_file::~troff_output_file): Move most code into...
3374 (troff_output_file::trailer): New function.
3375 (class troff_output_file): Delete page_length member. Declare
3377 (troff_output_file::really_begin_page): Use current page length
3378 for final V command.
3380 * tbl/main.cc (struct options): New decimal_point_char member.
3381 (options::options): Initialize this.
3382 (process_options): Implement decimalpoint option.
3383 (process_data): Pass decimal_point_char option to table::table.
3384 * tbl/table.h (class table): New decimal_point_char member.
3385 (table::table): Add additional argument.
3386 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
3387 second argument specifying decimal point character. Use this
3389 (table::table): Initialize decimal_point_char.
3390 (table::add_entry): Change call to find_dot.
3392 * troff/input.cc (get_copy, token::next): Implement \V.
3393 (interpolate_environment_variable): New function.
3395 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
3397 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
3398 * pic/pic.y: Likewise.
3400 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
3402 * refer/ref.cc (reference::insert_field, reference::delete_field):
3404 * troff/number.cc (parse_term): Likewise.
3406 * acgroff.m4 (GROFF_PROG_YACC): New macro.
3407 * configure.in: Use GROFF_PROG_YACC.
3409 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
3411 * Makefile.in (OPTIMIZE): New define.
3412 (DEBUG): Empty by default.
3413 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
3415 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
3416 (GROFF_ARRAY_DELETE): Likewise.
3417 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
3419 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
3421 * devps/psstrip.sed: Use different delimiter on last line (so that
3422 it works with BSD 4.4 sed.)
3424 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
3426 * devps/psstrip.sed: Delete comments.
3428 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
3429 optind, opterr, optarg.
3430 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
3433 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
3435 * Makefile.in (check): Dummy target.
3437 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
3439 * Version 1.07 released.
3441 * Integrate mm 1.11.
3443 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
3444 where start_col was meant.
3446 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
3448 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
3450 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
3452 * troff/input.cc (token::next): Make \z\o'...' and similar things
3455 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
3457 (environment): Add margin_character_flags member.
3458 * env.cc (environment::environment(symbol),
3459 environment::environment(const environment *): Initialize
3460 margin_character_flags.
3461 (margin_character): Rewrite.
3462 (environment::output_line): Add a margin character if
3463 margin_character_flags is non-zero. Turn off the
3464 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
3465 zero, use margin_character_node without copying and then set
3466 margin_character_node to 0.
3468 * devps/DESC.in: Change minimum size to 1000.
3470 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
3472 * troff/symbol.h (symbol::hash): Change return type to unsigned
3474 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
3477 * test-groff: Use -r rather than -x.
3479 * grops/psfig.diff: Include in distribution again.
3481 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
3483 * Makefile.in (dist): Use gzip.
3485 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
3487 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
3488 unistd.h as well as in stdlib.h.
3489 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
3490 defined; otherwise include <sys/types.h> and <unistd.h> if
3491 UNISTD_H_DECLARES_GETOPT is defined.
3493 * configure.in: use builtin(include, ... rather than include(...
3494 * configure: Regenerate with autoconf 1.3.
3496 * libdriver/print.cc (printer::adjust_arc_center): Use new
3497 algorithm suggested by Andy Fyfe.
3499 * libdriver/printer.cc (printer::adjust_arc_center): New function.
3500 * include/printer.h: Declare this.
3501 * grops/ps.cc (ps_printer::draw): Use it.
3502 * grodvi/dvi.cc (dvi_printer::draw): Use it.
3504 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
3506 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
3508 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
3510 * eqn/main.cc (main): Handle "eqn -".
3512 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
3514 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
3516 * mm: Integrate version 1.08.
3518 * pic/troff.cc (troff_output::finish_picture): Set
3519 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
3520 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
3521 if it's not defined. Check whether the register is non-zero rather
3522 than whether it's not defined.
3523 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
3525 * indxbib/indxbib.cc: Move all signal handling into...
3526 * indxbib/signal.c: New file.
3527 * configure.in: Call AC_RETSIGTYPE.
3529 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
3530 * configure.in: Call GROFF_STRUCT_EXCEPTION.
3531 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
3533 * troff/input.cc (token::token, token::operator=): Work round SGI
3535 * pic/object.cc (position::position): Likewise.
3537 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
3539 * pic/pic.h: Move declaration of hypot().
3541 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
3543 * pic/pic.h: Declare hypot().
3545 * pic/pic.h: Define M_PI if necessary.
3547 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
3549 * tmac/tmac.e (re): Add alternative version that doesn't use groff
3552 * devps/prologue.ps (RE): Handle the possibility that the old font
3553 doesn't have a FontName entry.
3555 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
3557 * tmac/tmac.e (fam): Redefine to set family in environment 2.
3558 (@C): Use @fam not fam.
3560 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
3562 * lookbib/lookbib.cc (main): Change type of start to const char *.
3563 * lkbib/lkbib.cc (main): Likewise.
3565 * eqn/lex.cc (definition::definition): Don't use member
3566 initializer syntax for members of anonymous unions.
3568 * troff/input.cc (input_stack::backtrace): Change type of to const
3571 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
3573 * include/stringclass.h (class string): Declare inline friend
3574 functions as inline in class declaration.
3575 * troff/hvunits.h (class hunits, class vunits): Likewise.
3576 * include/refid.h (class reference_id): Likewise
3577 * troff/troff.h (points_to_units(units), scale(units, double)):
3578 Delete declarations.
3579 * libdriver/input.cc (get_char): Delete declaration.
3580 * include/lib.h: Change 2nd argument of getopt from const char **
3582 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
3583 char **' before assigning to a `const char **'.
3584 * tbl/table.cc: Delete extra declarations of prints().
3586 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
3588 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
3589 char **' before assigning to a `const char **'.
3591 * libgroff/errarg.cc (errarg::errarg): Don't use member
3592 initializer syntax for members of anonymous unions.
3594 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
3596 * mm: Integrate version 1.07.
3598 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
3600 * troff/input.c (translate2): Rename to
3601 (translate_no_transparent).
3602 (init_input_requests): Rename tr2 to trnt.
3604 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
3606 * troff/charinfo.h (class charinfo): Add transparent_translate field.
3607 (charinfo::set_translation, charinfo::set_special_translation):
3608 Add second argument that specifies value for
3609 transparent_translate.
3610 (charinfo::get_translation, charinfo::get_special_translation):
3611 Add optional second argument that specifies whether translation is
3612 being used for transparent throughput.
3613 * troff/input.cc (charinfo::set_translation,
3614 charinfo::set_special_translation): Handle second argument.
3615 (charinfo::charinfo): Initialize transparent_translate.
3616 (translate): Split main part off into
3617 (do_translate): New function. Pass argument saying whether
3618 translation applies to transparent throughput.
3619 (translate2): New request.
3620 (init_input_requests): Bind translate2 to `tr2'.
3622 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
3624 * tbl/table.h (class table): Add `nokeep' flag.
3625 * tbl/main.cc (process_options): Handle `nokeep' option.
3626 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
3627 table::do_bottom): Don't output keep/release macro definitions or
3628 calls when `nokeep' option has been specified.
3630 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
3632 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
3634 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
3636 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
3637 block_entry::divert, alphabetic_block_entry::divert): Add extra
3638 argument giving column separation.
3639 (table::compute_widths): Pass column separation to
3640 table_entry::divert().
3641 (block_entry::do_divert): If an entry spans multiple columns and a
3642 minimumum width has been specified for each column, then set the
3643 line length to the sum of the widths (plus possibly the column
3646 * troff/input.cc (set_escape_char): Don't set the escape_char
3647 until after calling has_arg().
3649 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
3651 * tbl/table.cc (table::do_top): Add missing \s0 for double box
3654 * tbl/table.cc (table::print_double_hline): Avoid extra new line
3655 in case where r > nrows - 1.
3657 * tbl/table.cc (BODY_HEIGHT): Deleted.
3658 (LINE_SEP): New definition.
3659 (table::print_single_hline, table::print_double_hline,
3660 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
3661 table::do_row, table::do_top): Use LINE_SEP space before a line
3662 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
3664 * tbl/table.cc (text_entry::print_contents): New function.
3665 (text_string_name, right_text_string_name): Deleted.
3666 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
3667 (simple_text_entry::do_width, numeric_text_entry::do_width,
3668 alphabetic_text_entry::do_width): Don't store the contents of the
3670 (left_text_entry::simple_print, right_text_entry::simple_print,
3671 center_text_entry::simple_print,
3672 alphabetic_text_entry::simple_print,
3673 numeric_text_entry::simple_print): Print the entry directly
3674 instead of using the stored string.
3676 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
3678 * devps/Makefile: Strip PostScript files.
3679 * devps/prologue: Rename to...
3680 * devps/prologue.ps.
3681 * devps/psstrip.sed: New file.
3682 * devps/download: Use .pfa rather than .ps for installed versions
3685 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
3687 * troff/env.cc (input_trap): Give a warning if the argument is out
3690 * troff/env.cc (adjust): Treat negative argument as missing. Round
3691 argument > 5 down to 5.
3693 * troff/env.cc (center, right_justify): Make negative argument zero.
3695 * troff/div.cc (page_offset, vertical_position_traps): Treat
3696 invalid argument as missing.
3697 * troff/env.cc (line_spacing, line_length, title_length, indent,
3698 underline, hyphen_line_max_request, control_char,
3699 no_break_control_char, widow_control_request, adjust, input_trap,
3700 point_size): Likewise.
3701 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
3702 constant_space): Likewise.
3703 * troff/input.cc (compatible, shift, warn_request,
3704 set_escape_char): Likewise.
3706 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
3707 * tbl/table.cc (table::table): Likewise.
3709 * Makefile.dev (install_dev): depends on $(DEVFILES).
3711 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
3713 * devX75, devX75-12, devX100, devX100-12: New directories.
3714 * Makefile.in: Add these to DEVDIRS.
3716 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3717 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3718 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3719 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3721 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3722 (uninstall): New target.
3723 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3724 uninstall_prog, uninstall_dev): New targets.
3726 * troff/div.cc (return_request): Treat an invalid argument as
3729 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
3731 * tmac/tmac.e ((f): Set up the environment even when there's a
3732 current diversion. Transperently throughput a call to @N.
3735 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
3737 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3738 up to vertical resolution.
3740 * tbl/table.cc (table::do_row): Change row number after printing
3743 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3745 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
3747 * Rename CHANGES to NEWS.
3749 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
3751 * libgroff/new.cc (operator new): Avoid calling malloc(0).
3753 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
3755 * man.ultrix: Removed.
3757 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
3759 * Makefile.comm (extraclean): Delete files whose names begin with
3762 * pic/troff.cc (troff_output::text): Fix typo in implementation of
3765 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
3767 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3768 * troff/div.cc (page_length, need_space, space_request): Treat
3769 invalid optional argument as missing.
3770 * troff/env.cc (number_lines): If the first argument is present
3771 but not a number, turn on line numbering, don't change the next
3772 line number and parse the remaining arguments.
3774 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3776 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
3778 * eqn/box.h: Change declaration accordingly.
3779 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
3780 the specified size was bad but don't give an error. Check for
3782 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3783 * eqn/lex (do_size): Likewise.
3785 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
3787 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3790 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
3792 * tbl/table.cc (table::init_output): Improve error message when
3793 table won't fit on one page.
3795 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
3797 * pic/troff.cc (troff_output::start_picture): Generate line
3798 containing a horizontal motion equal to the width of the picture.
3800 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3801 using GROFF_COMMAND_PREFIX environment variable.
3803 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
3805 * mdate.sh: Use $NF rather than $(NF).
3807 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
3809 * pic/main.cc (main): Use %1 not %c in argument to warning.
3811 * eqn/main.cc (main): Output code to check that geqn was given the
3814 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
3816 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3817 `ln -s ../Makefile .; make; rm -f Makefile'.
3819 * troff/hyphen: Rename to...
3821 * troff/input.cc (main): Delete -H option. Don't call
3823 * troff/env.cc: Include searchpath.h and macropath.h.
3824 (exception_dictionary): Deleted.
3826 (read_hyphen_file): Deleted.
3827 (hyphenation_language): New struct.
3828 (class trie, class hyphen_trie): Move declarations up.
3829 (trie_node::~trie_node): Deleted.
3830 (trie::delete_trie_node): New function.
3831 (trie::do_delete): New pure virtual function.
3832 (hyphen_trie::do_delete): New function.
3833 (trie::~trie): New function.
3834 (hyphen_trie::~hyphen_trie): New function.
3835 (trie::clear): No need to chcek that tp is not 0.
3836 (current_language, language_dictionary): New variables.
3837 (hyphen_word): Give an error if no current language. Use
3838 exceptions dictionary in current language.
3839 (hyphen_trie::read_patterns_file): Find file using macro_path.
3840 Allow comments (starting with %) in patterns file. Don't make it
3841 a fatal error if the file can't be found.
3842 (hyphenate): Return if no current language. Get the exceptions
3843 dictionary and the hyphenation patterns from the current language.
3844 (set_hyphenation_language): New variable.
3845 (hyphenation_patterns_file): New function.
3846 (hyphenation_language_reg): New class.
3847 (hyphenation_language_reg::get_string): New function.
3848 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3849 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
3851 * groff/groff.cc (main, help, synopsis): Delete -H option.
3852 * include/Makefile.sub: Don't define HYPHENFILE.
3853 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3854 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3855 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3856 hyphenation patterns.
3858 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
3860 * eqn/neqn.sh: New file.
3861 * eqn/Makefile.sub: Handle neqn.sh.
3863 * eqn/eqn.h: Declare `nroff' variable.
3864 * eqn/box.cc (param_table): Add `nroff' param.
3866 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3868 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3870 * troff/troff.h (WARN_FONT): New warning.
3871 (WARN_TOTAL): Change accordingly.
3872 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3873 (warning_table): Add WARN_FONT.
3874 * troff/node.cc (mount_font_no_translate): Pass argument to
3875 font::load_font. If this is non-zero, give a warning.
3876 Don't give an error message when accessing a font that has already
3877 been found to be invalid.
3878 * include/font.h (font::load, font::load_font): Add additional
3879 optional argument which suppresses error message if the font is
3881 * libgroff/font.cc (font::load_font): Handle additional argument.
3882 (font::load): Add additional argument. If this is non-null, set it
3883 to 1 and don't give error message.
3885 * include/printer.h (printer::end_page): Add argument giving
3887 * libdriver/input.cc (do_file): Pass this.
3888 * grops/ps.cc (ps_printer::end_page): Add argument.
3889 * grodvi/dvi.cc (dvi_printer::end_page,
3890 draw_dvi_printer::end_page): Add argument.
3891 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3892 columns_per_page members. New member nlines.
3893 (DEFAULT_LINES_PER_PAGE): Deleted.
3894 (tty_printer::tty_printer): Don't compute lines_per_page from
3895 font::paperlength. Don't compute columns_per_page from
3897 (tty_printer::add_char): Don't check horizontal position against
3898 columns_per_page. Grow glyphs vector if neccessary.
3899 (tty_printer::end_page): Add argument giving page_length in units.
3900 Discard lines past end of page.
3902 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
3904 * tmac/tmac.tty-char: Fix definition of \(/l.
3906 * tmac/tmac.X: Define \(en.
3908 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
3910 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3911 lpq, then use lp rather than lpr.
3913 * tmac/tmac.s (par@reset): Don't call `ad'.
3914 (par*env-init): Call `ad'.
3916 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
3918 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3921 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3922 * indxbib/indxbib.cc: Likewise.
3924 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
3926 * libgroff/putenv.c: New file.
3927 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3928 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3929 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3930 stdlib.h with AC_HAVE_HEADERS.
3932 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
3934 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3937 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
3939 * eqn/box.cc (gsize): Make it an int.
3940 (set_gsize): Parse argument handling increment or decrement.
3941 (box::top_level): Convert gsize to a string.
3943 * troff/input.cc (exit_troff): Make buf unsigned char [].
3944 Call to make_temp_iterator casts buf to char*.
3946 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3948 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3949 * Makefile.cpg (depend.temp): Likewise.
3951 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3953 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3955 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
3957 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3959 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
3961 * Version 1.06 released.
3963 * Integrate mm 1.04.
3965 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
3967 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3969 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
3971 * afmtodit/afmtodit.pl: Add -n option that disables generation of
3973 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3974 afmtodit. Regenerate.
3976 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3977 @f back past the current position.
3979 * tmac/tmac.e: Change calls to @R so that comments are not part of
3982 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
3984 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3986 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3987 check that we can link a call to a function declared in <stdio.h>.
3988 (GROFF_UNISTD_H): New macro.
3989 * configure.in: Call it.
3990 * Makefile.in: Document it.
3991 * include/posix.h: New file.
3992 * troff/troff.h: Don't include <osfcn.h>
3993 * troff/input.cc: Include posix.h.
3994 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3996 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3997 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3999 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
4000 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
4001 * libbib/search.cc (O_RDONLY): Delete definition.
4002 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
4003 Don't include <osfcn.h>.
4005 * acgroff.m4 (GROFF_TIME_T): New macro.
4006 * configure.in: Call it.
4007 * Makefile.in: Document it.
4009 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
4010 * configure.in: Call it.
4011 * Makefile.in: Document -DTRADITIONAL_CPP.
4012 * include/ptable.h: Don't include generic.h.
4015 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
4016 Afterwards remove [T1 and [T2.
4017 (ref*spec!0, ref*spec!2): Use T1 rather than T.
4018 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
4019 (ref*add-T2): Renamed from ref*add-T.
4020 (ref*add-T1): New macro.
4022 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
4024 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
4026 * libbib/index.cc: Include <fcntl.h>.
4027 (O_RDONLY): Define if necessary.
4028 (make_index_search_item, index_search_item_iterator::get_tag,
4029 index_search_item::check_files): Use O_RDONLY.
4030 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
4031 (O_RDONLY): Define if necessary.
4032 (search_list::add_file): Use O_RDONLY.
4033 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
4035 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
4038 * libbib/index.cc (S_ISREG): Define it if necessary.
4039 (index_search_item::load): Use S_ISREG.
4041 * include/driver.h: Include <errno.h>.
4043 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
4045 * eqn/box.cc (body_height): Increase default value to 85.
4046 (body_depth): Increase default value to 35.
4048 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
4050 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
4051 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
4052 protected from expansion with \E.
4054 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
4056 * Makefile (Makefile): New target.
4058 * Makefile.sub (configure, distfiles): New targets.
4060 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
4063 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
4065 * eqn/box.cc (param_table): Add body_height and body_depth.
4067 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
4069 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
4071 * psbb/Makefile.sub: Don't link with libgroff.a.
4073 * acgroff.m4 (GROFF_PUTENV): New macro.
4074 * configure.in: Call GROFF_PUTENV.
4075 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
4076 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
4079 * troff/env.cc (distribute_space): Rename force_forward argument
4080 to force_reverse. Reverse the list if force_reverse is true.
4082 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
4084 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
4086 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
4087 height or depth to be negative. Guard against SUP_RAISE quantity
4090 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
4092 * devps/generate/textmap: Add `an' (arrowhorizex).
4093 * tmac/tmac.ps: \(an overlaps horizontally.
4094 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
4096 * devps/symbolchars: Add arrowverttp, arrowvertbt.
4097 * devps/textmap: Add arrowvertex.
4098 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
4099 updownarrow delimiters.
4100 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
4102 * tbl/table.cc (simple_entry::position_vertically,
4103 block_entry::position_vertically): For a centered entry, perform
4104 the motion in two stages.
4106 * refer/refer.cc (split_punct): Don't call lookup_token if there
4109 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
4111 * troff/input.cc (token::next): Delete token_node after copying
4114 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
4117 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
4119 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
4121 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
4123 * grops/ps.cc (usage): -b option takes an argument.
4125 * devps/prologue (PLG): New procedure.
4126 * grops/ps.cc (main, usage): New -g option.
4127 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
4130 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
4132 * include/cset.h: Include <limits.h> if we have it.
4134 * libgroff/illegal.cc: New file.
4135 * include/lib.h (illegal_input_char): Use table.
4136 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
4137 * pic/lex.cc (ARG1): Renumber to 14.
4138 * eqn/lex.cc (ARG1: Likewise.
4140 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
4141 (eg 1.05.90) correctly.
4143 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
4145 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
4146 Rename $r and $R registers to $v and $V.
4147 ($r, $R): Initialize to 0.
4148 (@v, @V): New macros.
4152 * troff/input.cc (main, usage): Add -R option that says not to
4154 * eqn/main.cc (main, usage): Rename -n to -R.
4156 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
4158 * devps/DESC.in: Leave font positions 5-9 blank.
4159 * devdvi/DESC.in: Likewise.
4161 * grog/grog.pl: Handle `.PS <file' correctly.
4163 * troff/input.cc (input_stack::push): Improve error message when
4164 input stack limit exceeded.
4166 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
4168 * refer/refer.cc (main): Fix typo in handling of `a' option.
4170 * refer/refer.cc (do_bib): In state START after a newline remain
4173 * groff/groff.sh: Deleted.
4174 * groff/Makefile.sub: Delete handling of groff.sh.
4176 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
4177 to determine whether to use \X'ps:...'.
4178 * tmac/troffrc: Set 0p register to 0.
4179 * tmac/tmac.ps: Set 0p register to 1.
4181 * groff/groff.cc: Support -X option. Give warning for -TXps and
4182 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
4183 * tmac/troffrc: Support -r.X=1.
4185 * pic/troff.cc (troff_output::dot): Don't test
4186 zero_length_line_flag.
4188 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
4190 * include/lib.h: Declare getopt() and friends unless
4191 STDLIB_H_DECLARES_GETOPT is defined.
4193 * doc/chars.tr: Delete.
4194 * man/groff_char.man: New file.
4196 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
4198 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
4199 user has changed register format.
4201 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
4203 * groff/groff.cc: Get rid of device_table. Get postprocessor from
4204 `postpro' command in DESC file. Get spooler command from `print'
4205 command in DESC file. Execute spooler command with /bin/sh.
4207 * groff/groff.cc: Split Unix-specific parts into...
4208 * groff/pipeline.c: New file.
4211 * COPYING: New file.
4212 * all files: Update copyright notices.
4214 * Rearrange files. Redo Makefiles. Use autoconf.
4216 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
4218 * troff/input.c (charinfo_to_node_list): Interpret character
4219 definition with escape_char of `\'.
4221 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
4223 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
4224 Define INT_DIGITS as big enough for 64-bit integer.
4225 * lib/strtol.c: Don't include lib.h.
4226 * lib/lib.h: Delete ifdef __cplusplus stuff.
4228 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
4230 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
4231 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
4232 get DESC from current directory.
4234 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
4236 * tbl/main.c (main): Always reset the line number when reading
4239 * tbl/table.c (table::print_single_hline, table::print_double_hline,
4240 table::define_bottom_macro, table::do_row, table::do_top): Round
4241 vertical spacing up to vertical resolution.
4243 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
4245 * ps/ps.h (enum resource_type): Avoid comma at end of
4247 * dvi/dvi.c (class dvi_printer): Likewise.
4248 * dvi/tfmtodit.c (gf::load): Likewise.
4249 * refer/label.y (struct expression): Likewise.
4250 * refer/refer.c (class label_processing_state): Likewise.
4251 * refer/indxbib.c (do_file): Likewise.
4252 * troff/troff.c (enum warning_type): Likewise.
4253 * tbl/main.c (process_data): Likewise.
4254 * troff/charinfo.h (class charinfo):
4256 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
4258 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
4260 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
4262 * groff.c: Move to new groff subdirectory.
4263 * groff/Makefile: New file.
4264 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
4266 * man/mdate.sh: Use ls -L if supported.
4268 * Consolidate all header files produced by gendef into lib/defs.h.
4269 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
4270 Don't include path.h.
4271 * lib/Makefile (path.h): Don't generate.
4272 * troff/input.c: Include defs.h. Don't include config.h.
4273 * troff/Makefile (config.h): Don't generate.
4274 * refer/index.h: Don't include suffix.h.
4275 * refer/index.c: Include defs.h.
4276 * refer/indxbib.c: Include defs.h.
4277 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
4279 * refer/Makefile (suffix.h, path.h): Don't generate.
4280 * groff.c: Don't include config.h. Include defs.h.
4281 * Makefile (config.h): Don't generate.
4282 (lib/defs.h): Generate.
4283 (topclean): Remove lib/defs.h.
4285 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
4287 * lib/malloc.c, lib/getpagesize.h: Deleted.
4288 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
4290 * lib/Makefile: Delete malloc-related stuff.
4291 * lib/new.c: Workaround COOKIE_BUG if necessary.
4293 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
4294 needed header files directly.
4295 * refer/refer.h: Omit definition of DEFAULT_INDEX.
4296 * Makefile: Include definition of DEFAULT_INDEX in path.h.
4298 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
4300 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
4302 * lib/font (font::load_desc, font::load): Don't split argument of
4304 (font::handle_unknown_font_command): Change type.
4305 * ps/ps.c (ps_font::handle_unknown_font_command,
4306 handle_unknown_desc_command): Change type.
4307 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
4309 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
4311 * lib/font.h (font::handle_unknown_font_command): Add file and
4313 * lib/font.c (font::handle_unknown_font_command):
4314 * ps/ps.c (ps_font::handle_unknown_font_command):
4315 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
4316 lineno arguments. Use _with_file_and_line functions for error
4319 * lib/fontfile.c (font::unknown_desc_command_handler): New static
4321 * lib/font.c (font::set_unknown_desc_command_handler): New
4323 (font::load_desc): For unknown commands, call
4324 unknown_desc_command_handler if not null.
4325 * lib/font.h (class font): Declare them.
4326 (FONT_COMMAND_HANDLER): New typedef.
4327 * ps/ps.c (handle_unknown_desc_command): New function.
4328 (main): Set bflag if we had a -b option. Call
4329 font::set_unknown_desc_command_handler.
4330 (broken.h): Don't include.
4331 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
4333 * ps/devps/Makefile: Add `broken' command to DESC file using
4334 BROKEN_SPOOLER_FLAGS.
4336 * macros/tmac.e ([, ]): Add as synonyms for { and }.
4338 * macros/tmac.e ($p): Only exdent if \$3 > 0.
4340 * macros/tmac.e (@R, @S): New macros.
4341 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
4342 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
4343 Declare $H, $[0-9], .. macros with @S.
4344 Declare |0, |1, |2, |3 strings with @S.
4346 * macros/tmac.e (@S): Rename to @U.
4348 * macros/tmac.e (@z): Define @b and bp as empty instead of
4351 * macros/tmac.e (@m): Deleted.
4352 (@h): Don't call @m.
4353 (@z): Don't set @m trap.
4355 * macros/tmac.e ($h, $f): Define |z as empty string.
4357 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
4360 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
4362 ()f): Likewise for * register.
4364 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
4365 argument is missing, don't change $R. Call sr with three
4366 arguments when initializing.
4368 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
4370 * macros/tmac.e (sr): New macro.
4371 Initialize $r and $R using sr.
4373 * macros/tmac.e (,): Delete \*(#[.
4375 * troff/env.c (set_tabs): Read the tab type even if the position
4376 is bad. Allow the position of the first tab stop to be negative.
4378 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
4380 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
4382 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
4383 rather than -DPATHCONF_MISSING.
4384 * Makefile: Get rid of PATHCONF_MISSING.
4386 * refer/map.c: New file.
4387 * refer/index.c: Interface to mmap through map.c. Rename map_size
4389 * refer/Makefile: Handle map.c.
4390 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
4392 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
4394 * Makefile: RANLIB should be `true' if there is no ranlib.
4395 * lib/Makefile (libgroff.a): Simplify.
4396 * driver/Makefile (libdriver.a): Simplify.
4398 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
4399 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
4402 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
4404 * troff/env.c (compare_ranges): Declare as extern "C".
4406 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
4408 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
4410 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
4412 * pic/troff.c (troff_output::text): Merge in grops_output::text,
4413 but conditionalize use of \X based on \*(.T.
4414 (grops_output::*): Deleted.
4415 * pic/output.h: Delete declaration of make_grops_output.
4416 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
4417 by default. -n sets it to 0.
4418 (usage): Corresponding changes.
4419 * groff.c (main): Don't pass -x or -p to pic.
4420 * groff.sh: Likewise.
4422 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
4425 * ps/devps/afmtodit: Change calculation of asc_boundary and
4426 desc_boundary. Make these bounds inclusive.
4427 * ps/devps: Regenerate font files.
4429 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
4431 * macros/tmac.latin1: New file.
4432 * macros/tmac.tty-char: Use tmac.latin1.
4433 (tmac.tty-tr): Deleted.
4434 * macros/Makefile: Install tmac.latin1.
4435 * macros/tmac.dvi: Use tmac.latin1.
4436 * macros/troffrc: Translate \[char160] onto no-break space here.
4437 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
4439 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
4441 * macros/tmac.Xps: Use `do' request.
4443 * macros/tmac.ps: Use `do' request.
4445 * macros/tmac.e (@C): Use `do' request.
4447 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
4448 * macros/Makefile: Install tmac.X*.
4450 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
4451 * tty/Makefile: Don't install tmac.tty*.
4452 * macros/Makefile: Install tmac.tty*.
4454 * dvi/tmac.dvi: Move to macros.
4455 * dvi/Makefile: Don't install tmac.dvi.
4456 * macros/Makefile: Install tmac.dvi.
4458 * ps/tmac.ps*: Move to macros.
4459 * ps/Makefile: Don't install tmac.ps*.
4460 * macros/Makefile: Install tmac.ps*.
4462 * eqn/box.c: Provide draw_lines parameter corresponding to -D
4464 * macros/eqnrc: Set draw_lines parameter based on device.
4465 * groff.c: Don't pass -D flag to eqn.
4466 * groff.sh: Likewise.
4467 * eqn/main.c: Warn about use of -D.
4469 * troff/input.c (process_startup_file): New function.
4470 (main): Call process_startup_file().
4471 * macros/troffrc: New file.
4472 * macros/Makefile: Install troffrc.
4473 * groff.c (main): Don't pass extra -m option to troff. For a
4474 pseudo device pass the name of the pseudo device to troff using
4476 * groff.sh: Likewise.
4477 * groff.c (possible_command::prepend_arg): Deleted.
4479 * troff/input.c (do_request): New function.
4480 (init_input_requests): Bind "do" to do_request.
4482 * eqn/main.c (main): Instead of loading eqnchar from device directory,
4483 load eqnrc from macro directory.
4484 * macros/eqnrc: New file.
4485 * macros/Makefile: Install eqnrc.
4486 * ps/devps/eqnchar: Deleted.
4487 * ps/devps/Makefile: Don't install eqnchar.
4488 * dvi/devdvi/eqnchar: Deleted.
4489 * dvi/devdvi/Makefile: Don't install eqnchar.
4490 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
4493 * lib/device.[ch]: New files.
4494 * lib/font.h (font::set_device_name, font::get_device_name):
4496 * lib/fontfile.c: Use device.h.
4497 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
4498 * troff/input.c: Delete definition of `device'.
4499 (main): Don't initialize device.
4500 * troff/troff.h: Include device.h rather than declaring device.
4501 * troff/Makefile: No need to handle DEVICE.
4502 * driver/input.c: Include device.h. Don't use
4503 font::{set,get}_device_name.
4504 * groff.c, Makefile: Rename device.h to config.h.
4505 * groff.c: Use library device variable.
4506 * eqn/main.c: Use library device variable.
4507 * eqn/Makefile: No need to handle DEVICE.
4509 * lib/searchpath.[ch]: New files.
4510 * lib/Makefile: Handle searchpath.[ch].
4511 * troff/input.c (open_file, init_dirs): Deleted.
4512 (macro_dirs): Deleted.
4513 (open_mac_file, macro_source): Use class search_path.
4514 (add_string, struct string_list): Move definition.
4515 (main): Change -M option to use macro_path. Delete call to
4517 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
4518 Rewrite to use class search_path.
4519 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
4520 * lib/Makefile: fontfile.c depends on searchpath.h.
4521 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
4523 * lib/macropath.[ch]: New files.
4524 * troff/Makefile: No need to handle MACROPATH.
4526 * troff/input.c: Delete DUMP code.
4527 * lib/fontfile.c, lib/font.h: Delete
4528 font::forget_command_line_font_dirs.
4530 * troff/input.c (push_token): New function.
4531 (handle_first_page_transition): Use push_token().
4532 (process_input_stack): Change handling of a space at the beginning
4535 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
4537 * troff/input.c (font_dirs): Delete unused variable.
4539 * eqn/lex.c (do_set): Correct error messages.
4541 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
4543 * troff/input.c (do_define_string): Allow the string name to be
4544 followed immediately by a tab.
4545 (define_character): Likewise.
4547 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
4549 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
4552 * troff/input.c (input_iterator::is_file): New virtual function.
4553 (file_iterator::is_file): New function.
4554 (input_stack::end_file): New function.
4555 (input_stack::next_file): Handle the situation where there is no
4556 file on the input stack correctly. Avoid making two passes over
4558 (next_file): Make the filename optional; in this case call
4559 input_stack::end_file().
4561 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
4563 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
4564 produce a real _ charater when the current font is CW and _
4567 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
4568 expression to work around gcc 2.2 bug.
4570 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
4572 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
4574 * troff/env.c (environment::add_padding): New function.
4575 (environment::add_char): Use add_padding().
4576 (environment::space): Likewise.
4577 (environment::wrap_up_field): Add some padding if there is none
4578 and there's no current tab.
4579 * troff/env.h: Declare environment::add_padding.
4581 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
4583 * pic/pic.y: undef fmod and rand before declaring them.
4585 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
4587 * troff/input.c (main): If the DESC file specifies a font name of
4588 0, then leave the corresponding font position empty.
4590 * nroff.sh: New file.
4591 * Makefile (install.nobin): Install nroff.sh.
4593 * tty/devlatin1/R.proto: Add ao as synonym for de.
4594 * tty/tmac.tty-char: Define ao as o.
4596 * tty/dev{ascii,latin1}/R.proto: Add aq.
4597 * tty/tmac.tty-char: Delete definition of aq.
4599 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
4601 * troff/input.c (init_charset_table): Don't translate 0240.
4602 * ps/tmac.ps: Translate char160 to space.
4603 * dvi/tmac.dvi: Likewise.
4604 * tty/tmac.tty: Likewise.
4606 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
4608 * dvi/tmac.dvi: Add support for all Latin-1 characters.
4610 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
4611 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
4614 * tty/tmac.tty-char: Add \(ah.
4616 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
4617 No need to define \(FM and \(!/. Conditionalize all character
4620 * ps/devps/lgreekmap: Add +h, +f, +p.
4622 * ps/tmac.psnew: New file.
4623 * ps/Makefile: Install tmac.psnew.
4625 * troff/input.c (charinfo_to_node_list): Don't ever interpret
4626 character definitions in compatible mode.
4628 * troff/input.c (remove_character): New function.
4629 (init_input_requests): Bind remove_character to "rchar".
4631 * ps/tmac.psold: New file.
4632 * ps/Makefile: Install tmac.psold.
4633 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
4634 characters into tmac.psold. Make these definitions unconditional.
4636 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
4638 * ps/tmac.ps: Don't define \('c and \('C.
4640 * ps/devps/textmap: Move Greek characters to...
4641 * ps/devps/symbolchars:
4643 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
4645 * ps/devps/text.enc: Add quotesingle.
4646 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
4647 * tty/tmac.tty-char: Likewise.
4648 * dvi/devdvi/texmi.map: Add +h, +f, +p.
4649 * dvi/devdvi/texi.map: Add Fn.
4650 * dvi/devdvi/msam.map: Add lz.
4651 * dvi/tmac.dvi: Handle Bq, bq, aq.
4653 * pic/lex.c (get_token): Recognize 'th.
4654 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
4656 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
4658 * ps/devps/textmap: Move di, mu, +- to...
4659 * ps/devps/symbolchars:
4661 * macros/tmac.s (@XS): Don't call par@reset or fi.
4662 (XA): Call LP. Turn off adjustment. Reduce line length.
4664 * macros/tmac.s: Initially alias XS to LP.
4665 (XS): Rename to @XS.
4666 (cov*ab-init): Alias XS to @XS.
4668 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
4670 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
4671 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
4672 (token::is_size, token::changes_env): Deleted.
4673 * troff/number.c (parse_term): No need to process \s explicitly.
4674 Call tok.next() only after scale indicator has been processed.
4675 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
4677 (token::next): Handle \s, \f, \S, \H immediately rather than
4678 returning them as tokens.
4679 (token::operator==, token::description, token::add_to_node_list,
4680 token::process): Remove handling of deleted tokens.
4682 * troff/env.c (environment::add_char): When adding padding
4683 indicator character, call start_line() if necessary.
4685 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
4687 * ps/devps/afmtodit: Don't output 0 kerns.
4689 * ps/devps/afmtodit: Remove directory from name of encoding in
4690 font description file.
4692 * ps/devps/afmtodit: Improve error messages.
4694 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
4696 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
4697 * ps/devps/FontMakefile: Deleted.
4698 * ps/devps/afmname: New file.
4700 * ps/devps/symbol.sed: New file.
4701 * ps/devps/symbol.diff: Deleted.
4702 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
4703 Generate zapfdr.afm from zapfd.afm.
4705 * tty/tmac.tty (tty-char): Prefix definition with ".
4707 * macros/tmac.an (TP): Don't start a diversion if one has already
4710 * tty/tmac.tty-char: Add Latin-1 characters.
4712 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4714 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
4716 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4717 Move declaration of struct horizontal_span.
4719 * tbl/table.c (table::table): Initialize span_list.
4720 (table::~table): Delete span_list.
4722 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4724 * ps/devps/Makefile: Avoid dependency on GNU make.
4726 * ps/tmac.ps: Check that character does not already exist before
4729 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4730 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4731 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4734 * tty/tmac.tty-char: New file.
4735 * tty/Makefile: Install tmac.tty-char.
4736 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4739 * tty/tmac.tty: Fix definition of \(34.
4741 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4742 bracket-drawing characters onto |. Add *o.
4744 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4745 only if current_field.
4747 * troff/dictionary.c (dictionary::lookup): Free old_table after
4750 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
4752 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4753 whose glyphs are identical to glyphs of some Roman character.
4755 * tty/devlatin1/R.proto (bu): Deleted.
4756 * tty/devascii/R.proto (bu): Deleted.
4757 * tty/tmac.tty: Add definition of \(bu.
4759 * eqn/main.c (do_file): Pass FILE as argument.
4760 (main): Automatically load eqnchar. New options -F and -n.
4761 Pass do_file an opened FILE.
4762 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4763 No need to include font.h.
4764 * groff.sh: Likewise. Don't need to use - for standard input.
4765 Prefix files with -- if first file starts with -.
4767 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4769 * troff/env.c (environment::possibly_break_line): Don't set line
4770 to 0 across call to output_line(). Don't call output_line() until
4771 after discarding nodes after break.
4773 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
4775 * request.h (macro::empty): Declare it.
4776 * input.c (macro::empty): New method.
4777 (interpolate_macro): Don't give a WARN_SPACE if the two-character
4780 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
4782 * troff/env.c (environment::start_field): Decrement space_total
4783 when a space is frozen.
4785 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
4787 * macros/tmac.an (R): Delete macro.
4789 * troff/input.c (get_copy, token::next): Support \# (like \" but
4790 newline is ignored).
4792 * troff/input.c (token::next): Fix error message in 'Y' case.
4794 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
4796 * eqn/delim.c (define_extensible_string): Recognize any prefix of
4799 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
4801 * c++test.c: Include <osfcn.h>.
4803 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4806 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
4808 * tbl/table.c (table::divide_span): Don't count column separation
4809 if expand was specified.
4811 * tbl/main.c (process_format): Don't ignore width specs in
4812 continued format. Give warning for changing equal widths or
4813 column separation in continued format.
4814 (process_data): Set column separation, minimum width, equal
4815 columns at end of table.
4817 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
4819 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4820 node::add_discretionary_hyphen): Use soft_hyphen_char.
4821 (set_soft_hyphen_char): New function.
4822 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
4824 * Makefile (c++tested): Give more helpful message if test fails.
4826 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
4828 * troff/input.c (init_charset_table): Translate 0240 to
4829 an unbreakable space.
4831 * troff/token.h (token::hyphen_indicator): New function.
4832 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4834 * troff/input.c (translate): Allow translation to \%.
4835 * troff/node.c (node::add_char): Handle
4836 TRANSLATE_HYPHEN_INDICATOR.
4837 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4839 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4842 * tty/devlatin1/R.proto: \(hy and - should print as 055.
4844 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
4846 * groff.c (run_commands): If the last command gets a SIGPIPE send
4847 a SIGPIPE to all children than haven't yet terminated. When
4848 command terminates, set pid field to -1.
4850 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
4852 * groff.c (main): Pass an appropriate -filename option to gxditview.
4854 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
4856 * Makefile.bd (install): Remove existing program before copying.
4858 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4859 programs which have Unix counterparts to be installed with
4860 user-specified prefix.
4862 * troff/input.c (exit_troff): Don't check if exit_started.
4863 (exit_request): Don't call exit_troff if exit_started.
4865 * Makefile.bd (install.mm): Rename to install.dwbmm.
4867 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
4869 * driver/input.c (do_file): Add missing break for '#' case.
4871 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
4873 * troff/input.c (input_stack::clear): Clear past any boundaries and
4874 then add the boundaries back.
4876 * troff/input.c (exit_troff): Return immediately if already
4879 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
4881 (pg*end-page): If the text has ended and there are no more
4882 footnotes or keeps, exit.
4884 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4886 * troff/input.c (init_charset_table): Make \(rq transparent by
4889 * macros/tmac.an: Define lq and rq strings.
4891 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4893 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
4895 * troff/env.c (environment::final_break): New function.
4896 (environment::newline): Set prev_line_interrupted to 2 if
4898 * troff/env.h: Declare environment::final_break.
4899 * troff/input.c (exit_troff): Call environment::final_break()
4900 instead of environment::do_break().
4902 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4903 doesn't already exist.
4904 * macros/man.local: New file.
4905 * macros/tmac.an: Load man.local.
4906 * macros/man.ultrix: New file.
4908 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
4910 * troff/input.c (exit_groff): Rename to...
4911 (exit_troff): New function.
4913 * troff/div.c (exit_started, done_end_macro,
4914 seen_last_page_ejector): New global variables.
4915 (began_page_in_end_macro): New static variable.
4916 (exit_flag): Deleted.
4917 (top_level_diversion::top_level_diversion): Initialize
4919 (top_level_diversion): More elaborate test for whether
4920 cleanup_and_exit() should be called.
4921 Set began_page_in_end_macro if the end macro isn't yet finished.
4922 * troff/div.h (top_level_diversion::last_page_count): New data
4924 (top_level_diversion::set_last_page): New function.
4925 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4926 * troff/env.c (do_break): Zero prev_line_interrupted.
4927 * troff/input.c (exit_flag): Delete declaration.
4928 (LAST_PAGE_EJECTOR): New magic cookie.
4929 (token::next): Handle LAST_PAGE_EJECTOR.
4930 (exit_groff): Set exit_started and done_end_macro instead of
4931 exit_flag. Call top_level_diversion::set_last_page. Push a
4932 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
4933 another ejection after setting seen_last_page_ejector.
4935 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
4937 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4939 * macros/tmac.e (TH): Make sure there's room for the initial
4942 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4943 Set FVS in points rather than units.
4945 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
4947 * troff/div.c (top_level_diversion::add_trap): Don't consider the
4948 position of empty slots.
4950 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
4952 * ps/devps/S: Fix height and depth of parenrightex.
4953 * ps/devps/symbol.diff: Regenerate.
4955 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
4957 * tmac.e (u): Do underlining as in -mgs.
4959 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
4961 * tty/tty.c (tty_printer::end_page): If overstriking is
4962 suppressed, still turn overstruck horizontal and vertical lines
4965 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4968 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4970 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
4972 * Version 1.05 released.
4974 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
4976 * tty/tty.c: Instead of keeping an array of glyphs and then
4977 sorting it, keep a ordered linked list of glyphs for each line.
4979 * driver/driver.h: Include stddef.h.
4981 * tty/tty.c (compare_glyph):
4982 * refer/refer.c (rcompare):
4983 * troff/env.c (compare_ranges): Arguments of qsort comparison
4984 function should be const void *.
4986 * troff/number.c (parse_term):
4987 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4990 * refer/label.y (consider_authors): Don't access variables
4991 constructed under a condition outside that condition: put braces
4992 round for statement containing declaration; redeclare use of same
4995 * pic/pic.y (text_expr): Delete production that allows
4996 parenthesised text_expr.
4997 (expr): Allow a conditional_expr to appear in parentheses.
4998 (conditional_expr): Rename to any_expr.
5000 * mm: Install new version 1.01 from jh.
5002 * lib/font.c (font::get_width): Cache scaled widths.
5003 (font::font): Initialize widths_cache.
5004 (font::~font): Destroy widths_cache.
5005 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
5007 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
5009 * c++test.c, c++test.ref: New files.
5010 * Makefile: Check that the C++ compiler works.
5012 * ps/tmac.pspic (PSPIC): Do a break.
5014 * ps/tmac.ps: Move definition of PSPIC into...
5015 * ps/tmac.pspic: New file.
5016 (PSPIC): Draw box around picture, but make it invisible to grops.
5017 * ps/tmac.ps: Load tmac.pspic.
5018 * ps/Makefile: Install tmac.pspic.
5020 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
5022 * lib/font.c (scale_round): If n is negative,
5023 subtract .5 before truncating floating point result.
5025 * lib/fontfile.c: Include <errno.h>.
5027 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
5029 * driver/input.c (get_char): Inline. Don't update current_lineno.
5030 Change callers to up date current_lineno if necessary.
5031 Use get_char() instead of getc(current_file).
5033 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
5035 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
5037 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
5039 * tty/tty.c (tmac.tty): Define \(rg as (R).
5041 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
5043 * lib/lib.h: New define a_delete.
5044 * Use a_delete instead of delete when deleting an array of objects
5045 without destructors.
5047 * lib/lib.h: Rename adelete to ad_delete.
5048 * Change uses of adelete.
5050 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
5052 * eqn/eqn.y: Include lib.h.
5054 * troff/node.c (grow_font_table): Delete old_font_table.
5056 * mm: Install new version from jh.
5058 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
5060 * tbl/table.h (format_type): Make global instead of local to class
5061 entry_format. Prefix enumerators with FORMAT_.
5062 * tbl/table.c, tbl/main.c: Corresponding changes.
5063 * refer/token.h (token_type): Make global. Prefix enumerators
5065 * refer/token.[ch]: Corresponding changes.
5066 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
5068 * troff/div.c (node::set_vertical_size): Don't name argument.
5070 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
5072 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
5073 * lib/lib.h: Define adelete accordingly.
5074 * pic/object.c (graphic_object::graphic_object):
5075 * tbl/main.c (format::~format):
5076 * tbl/table.c (table::~table):
5077 * refer/ref.c (reference::~reference, reference::merge,
5078 reference::insert_field, reference::delete_field): Use adelete.
5080 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
5082 * tbl/table.h: Corresponding changes.
5084 * common.c (common_output::dashed_arc, common_output::dotted_arc):
5085 Ensure total_angle is positive.
5087 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
5089 * refer/ref.c (reference::merge, reference::insert_field,
5090 reference::delete_field): Avoid delete[0].
5092 * refer/token.c (init_special_chars): Move calls to cmupper
5093 outside calls to init_two_char_letter to work around bug in gcc
5096 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
5098 * lib/new.c (operator new): Use __builtin_new for g++.
5100 * pic/object.c (graphic_object::~graphic_object): Don't use
5103 * pic/object.c (output::compute_scale): Initialize max_width and
5106 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
5108 * troff/input.c (write_request): Call fflush.
5110 * troff/node.h (class composite_node): Move declaration to node.c
5111 * troff/input.c (charinfo_to_node): Rename to ...
5112 (charinfo_to_node_list): Return node list rather than composite
5114 * troff/node.c (make_composite_node): New function.
5115 (make_node, add_char): Call make_composite_node instead of
5117 (class composite_node): Add a tfont * member. Delete font_size
5119 (composite_node::composite_node, composite_node::copy,
5120 composite_node::size): Corresponding changes.
5121 (composite_node::tprint): Provide constant spacing, emboldening
5122 and track kerning as specified in tfont.
5123 (composite_node::width): Change width calculation accordingly.
5124 * troff/env.h (environment::composite): New member.
5125 (environment::is_composite, environment::set_composite): New
5127 * troff/env.c (environment::environment): Initialize composite.
5128 * troff/input.c (charinfo_to_node): Call
5129 environment::set_composite.
5130 * troff/node.c (make_composite_node, make_glyph_node): Use the
5131 plain version of the tfont if the environment is composite.
5133 * troff/node.c (font_info::get_space_width): Additional argument
5134 giving space_size. Handle constant space correctly. Scale by
5135 space_size unless constant spaced.
5136 (env_sentence_space_width): New function.
5137 * troff/node.h: Declare it.
5138 * troff/env.h (environment::get_space_size,
5139 environment::get_sentence_space_size,
5140 environment::get_narrow_space_width,
5141 environment::get_half_narrow_space_width): Make inline.
5142 (environment::get_space_width): Make inline. Just call
5144 * troff/env.c: Delete definitions for funtions made inline.
5145 (environment::space_newline, environment::space): Use
5146 env_sentence_space_width(). Don't scale by space_size.
5147 * troff/node.h: Move declarations of env*space_width() functions
5150 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
5152 * macros/tmac.s (PS): Don't try to set negative indent.
5154 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
5156 * pic/pic.y: Fix min function.
5158 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
5160 * man/mdate.sh: Clear LANGUAGE.
5162 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
5164 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
5165 * pic/lex.c: New COMMAND keyword.
5166 * pic/pic.y (print_args, print_arg): New rules.
5167 (placeless_element): Use print_args for PRINT.
5168 New COMMAND element.
5170 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
5172 * troff/input.c (terminal): Handle missing argument correctly.
5174 * pic/pic.y (text_expr): New rule.
5176 * pic/pic.y: Implement := operator.
5178 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
5180 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
5183 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
5185 * ps/devps/dingbatsrmap: Include this in the distribution.
5187 * macros/tmac.doc: Replace with new version from 2nd Networking
5188 Release. Fix loading of doc-* files.
5189 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
5190 * macros/tmac.doc.old: New file. Apply fixes that had been
5191 applied to old tmac.doc.
5192 * macros/tmac.andoc: Check that we're running under groff.
5193 * macros/Makefile: Rework.
5195 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
5197 * tbl/table.h (format_type):
5198 * refer/token.h (token_type): If NESTED_TYPES is defined, use
5199 typedef to make these types visible at file scope.
5200 * Makefile: Add NESTED_TYPES configuration option.
5202 * troff/div.c (mark): At the top level use the value of
5203 nl_reg_contents rather than the current vertical position.
5205 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
5207 * tty/tty.c: Implement \D for horizontal or vertical lines.
5208 (tty_printer::set_char): Use vec_used+2 as serial number.
5209 Don't allow size of vector to exceed USHRT_MAX-2.
5210 Split off part into...
5211 (tty_printer::add_char): New function.
5212 (tty_printer::draw): New function.
5213 (compare_glyph): Handle equal serial numbers.
5214 (tty_printer::end_page): Handle overstruck characters from \D.
5215 (main, usage): Implement -d option.
5217 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
5219 * tbl/main.c (process_format):
5220 * eqn/text.c (split_text):
5221 * troff/input.c (token::next): Use inner block for declarations
5222 with initializers in switch statement.
5224 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
5226 * pic/common.c (common_output::dash_line): Cope with zero-length
5229 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
5231 * Version 1.04 released.
5233 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
5235 * macros/tmac.an (TH): Define a macro an-init to define variables
5236 based on command line arguments.
5237 (an-header): Call it.
5239 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
5241 * Makefile (install.mm): Rename to install.dwbmm.
5243 * Makefile: Integrate mm.
5244 * mm: New directory.
5246 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
5248 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
5251 * pic/troff.c (troff_output::simple_spline,
5252 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
5253 shadowing parameter.
5255 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
5257 * lib/ptable.h: Add explicit casts when converting from unsigned
5260 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
5261 * dvi/devdvi/Makefile: Install SA, SB.
5263 * refer/indxbib.c: Add declaration of mktemp.
5265 * refer/lookbib.c: Add declaration of isatty.
5267 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
5269 * pic/lex.c (interpolate_macro_with_args): While collecting
5270 arguments, keep track of whether we're in a string.
5272 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
5274 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
5275 down with \v, so as to avoid problems with top of page trap
5276 setting no space mode.
5278 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
5280 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
5282 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
5284 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
5285 Improve error message.
5287 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
5289 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
5292 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
5294 * groff.c (possible_command::execp): Always use _exit() after a
5297 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
5298 NO_SYS_WAIT_H configuration options.
5299 * groff.c: Use these options. Use POSIX-style macros to extract
5300 fields from the status returned by wait().
5302 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
5304 * tbl/table.c (table::compute_separation_factor): Allow the
5305 separation factor to drop to 0.
5307 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
5309 * refer/search.c: Include <errno.h>.
5311 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
5313 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
5315 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
5318 * pic/lex.c (input_stack::bol): Move definition out of class body.
5320 * pic/main.c: On MSDOS munge argv[0].
5322 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
5324 * lib/ptable.c (hash_string): Use unsigned long rather than
5326 (next_ptable_size): Use unsigned rather than int. Give an error
5327 message if we've hit the largest table size.
5328 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
5331 * pic/object.h (object_spec): Make flags unsigned long. Declare
5332 flags as const unisgned long rather than as enums.
5334 * pic/output.c: Deleted.
5336 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
5338 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
5339 Add additional argument.
5340 (line_entry::note_double_vrule_on_{left,right}): Set value of
5341 douvle_vrule_on_{right,left} flag according to argument.
5342 (simple_line_entry::simple_print,
5343 simple_line_entry::double_line_print): If adjacent to double vrule
5344 on a corner extend rather than shorten the rule by half the double
5347 * troff/number.c (parse_term): In checking for overflow, handle the
5348 case where the current horizontal position is negative.
5350 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
5352 * pic/object.c (draw_arrow): Check for object having zero length.
5354 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
5356 * eqn/main.c (do_file): Split off inline equation handling into...
5357 (inline_equation): New function. Search for starting delimiter
5359 (delim_search): New function. Don't recognize a delimiter that
5360 occurs in the name of an escape sequence, number register, string
5363 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
5365 * eqn/delim.c (delim_box::compute_metrics): Don't call
5366 define_extensible_string if left is 0.
5367 (delim_box::output): Don't print the left delimiter if left is 0.
5368 (delim_box::debug_print): Check for left == 0 before calling printf.
5370 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
5372 * troff/Makefile (majorminor.c): Include only digits in
5375 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
5377 * refer/dirnamemax.c: new file.
5378 * refer/genlimits.c: Deleted.
5379 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
5380 Don't check path length.
5381 * refer/Makefile: Add dir_name_max.o; delete genlimits.
5382 * Makefile: Add PATHCONF_MISSING option.
5384 * refer/indxbib.c (get_cwd): New function.
5385 (main): Use get_cwd().
5386 * lib/getcwd.c: New file.
5387 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
5389 * lib/Makefile: Compile getcwd.o.
5391 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
5394 * refer/indxbib.c (main): Check success of mktemp.
5396 * lib/tmpfile.c: New file.
5397 * lib/Makefile: Add tmpfile.c.
5398 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
5399 * ps/ps.h: Delete declaration of mktemp().
5400 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
5401 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
5402 * driver/driver.h: No need now to include errno.h.
5404 * everywhere: Set errno to 0 before calling fopen().
5406 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
5407 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
5408 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
5410 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
5412 * troff/env.h (translate_space_to_dummy): Declare it.
5413 * troff/env.c (environment::space_newline, environment::space):
5414 If translate_space_to_dummy is set then make the width of spaces 0.
5415 * troff/input.c (translate): If the second character of a
5416 translation is a space, translate to unbreakable space. If the
5417 first character is a space, set or clear translate_space_to_dummy
5418 according to whether the second character is \&. Weird!
5420 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
5422 * groff.c (run_commands): Don't use non-zero exit code because a
5423 command gets SIGPIPE.
5425 * groff.c, groff.sh: Use -mXps with -TXps.
5427 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
5428 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
5429 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
5430 (ps_printer::special): New specials invis and endinvis.
5431 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
5432 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
5433 (ps_printer::end_page): Check that invis_count == 0.
5434 (ps_printer::invis_count): New member.
5435 (ps_printer::ps_printer): Initialize invis_count to 0.
5437 * troff/env.c (environment::hyphenate_line): Hyphenation
5438 indicator at beginning of word inhibits splitting after -, \(em
5441 * pic/pic.y (element): Allow another element to follow } without
5442 any intervening separator.
5444 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
5446 * pic/lex.c (get_delimited): Allow tabs before delimiter.
5448 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
5450 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
5451 declaration of wait() in header files.
5452 * Makefile: Get rid of -DHAVE_UNION_WAIT.
5454 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
5456 * lib/lib.h: Declare return type of strerror as char *.
5458 * man/Makefile: Add g flag to sed substitutions.
5459 * Makefile (shgroff, bindist): Likewise.
5461 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
5463 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
5464 * ps/devps/prologue (PBEGIN): Define showpage after pushing
5467 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
5469 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
5472 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
5474 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
5477 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
5479 * troff/input.c (define_number_reg): If currently undefined,
5480 don't define it if the argument is an invalid expression.
5482 * Makefile: Ignore return value of `if' commands without `else'
5485 * Makefile: Split up CPPDEFINES into a series of separate
5486 configuration options.
5488 * troff/input.c (init_registers): Use time_t instead of long
5489 unless LONG_FOR_TIME_T is defined. Use returned result rather
5490 than passing pointer.
5491 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
5493 * lib/Makefile (fontpath.h): Use gendef.
5495 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
5497 * troff/input.c (input_iterator::shift): Delete argument name.
5498 * troff/node.c (suppress_output_file::really_begin_page,
5499 suppress_output_file::really_transparent_char, node::ascii_print,
5500 node::tprint): Delete names of unused arguments.
5502 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
5504 * refer/label.y (string): Pass $4 to command_error.
5506 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
5508 * Version 1.03 released.
5510 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
5512 * Makefile: Pass definition of SHELL in SUBFLAGS.
5515 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
5516 ps/Makefile: Use gendef to construct header files that are
5517 constructed from the Makefile.
5519 * macros/Makefile: make all should build stripped version of tmac.e.
5521 * refer/Makefile (clean): Remove y.output.
5523 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
5525 * ps/pfbtops.c (main): Add -v option which prints out a version
5527 * ps/Makefile (pfbtops): Link with libgroff.a.
5529 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
5531 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
5532 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
5534 * refer/lkbib.c (main): Always terminate reference with blank
5536 * refer/lookbib.c (main): Likewise.
5538 * refer/linear.c (file_buffer::load): Check that the file is not a
5541 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
5542 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
5543 Delete second inclusion of <sys/param.h>.
5545 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
5547 * troff/token.h (token::special): Deleted.
5549 * tbl/main.c (process_format): Rework so that opt->tab_char is
5550 recognized only when appropriate.
5552 * ps/Makefile (clean): Remove pfbtops.
5554 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
5556 * lib/font.c (text_file::next): Don't return if we have got a
5559 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
5561 * refer/refer.c (store_reference): Get hash code from old_table[i]
5562 when rehashing the table.
5564 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
5566 * eqn/box.c (box::top_level): Save size and prev size using \R and
5567 restore it afterwards. Set the size to the size at the beginning
5569 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
5570 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
5572 * refer/Makefile (limits.h): Use ./genlimits.
5574 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
5576 * refer/index.c: Delete declarations of stat() and fstat().
5578 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
5580 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
5582 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
5584 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
5586 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
5588 * troff/input.c (token::get_char): Handle \e.
5590 * refer/linear.c: Delete declarations of fstat() and stat().
5592 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
5594 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
5595 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
5597 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
5599 * troff/input.c (do_define_macro): Improve error handling for end
5600 of file while defining macro.
5602 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
5604 * eqn/box.h: Fix declaration of set_gsize.
5605 * eqn/box.c (set_gsize): Make argument const char *.
5606 (gsize): Declare as char *.
5607 * eqn/main.c (main): Don't convert gsize to int.
5608 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
5610 * Version 1.02 released.
5612 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
5614 * macros/tmac.andoc: New file.
5615 * macros/Makefile: Install tmac.andoc.
5617 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
5618 operator new and delete on OP_DELETE_BROKEN not being defined.
5619 * Makefile: Mention OP_DELETE_BROKEN.
5621 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
5623 * Makefile (bindist): Pass SUBFLAGS.
5625 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
5627 * Makefile, groff.c: Pass definitions to groff.c via device.h.
5629 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
5632 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
5634 * ps/ps.h, ps/psrm.c: Make comment_table and
5635 header_comment_table local to resource_manager::process_file.
5637 * groff.sh: With -TXps pass -printCommand option to gxditview.
5639 * groff.c (possible_command::print): Implement using
5640 append_arg_to_string.
5642 * xditview: Merge in new implementation with own ChangeLog.
5644 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
5646 * groff.c (main): Implement PRINT_OPTION.
5647 (append_arg_to_string): New command.
5648 (device_table): Set PRINT_OPTION flag for Xps.
5650 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
5652 * troff/groff.h: Rename to troff.h.
5654 * pic/lex.c (lookup_keyword, docmp): New functions.
5655 (get_token): Use new lookup_keyword.
5656 Don't include key.h.
5657 * pic/key.[ch], pic/pic.gperf: Deleted.
5658 * pic/Makefile: Remove gperf stuff.
5660 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
5662 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
5664 * troff/Makefile, troff/node.c: Move definition of
5665 STORE_WIDTH into node.c.
5667 * etc/grog.pl, etc/grog.sh: Support -mdoc.
5669 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
5671 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
5672 dvi/devdvi/texb.map: Add lq and rq.
5673 dvi/devdvi: Regenerate fonts.
5674 * ps/devps/textmap: Add lq and rq.
5675 * ps/devps: Regenerate fonts.
5676 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
5677 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
5679 * pic/object.c (position_rectangle): When checking radius
5680 cope with possiblity that width or height is negative.
5681 (box_object::box_object): Have separate xrad and yrad with
5682 signs matching signs of dim components.
5683 (box_object::{north,south}_{east,west}): Use xrad and yrad.
5684 (box_object::print): With rounded boxes use absolute values
5685 for dim and rad arguments.
5687 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
5690 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
5692 * various files: Add explicit destructors to keep Saber CC +d
5695 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
5697 * eqn/box.c (box::top_level): Restore fonts correctly after
5698 font changes in line containing inline equation. Also
5699 restore previous font as well as current font.
5700 * eqn/pbox.h: Define necessary string and register names.
5702 * troff/input.c (token::next): Case 'R' calls do_register.
5703 (do_register): New function.
5705 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
5707 * groff.c, groff.sh: Support Xps device. Allow each device
5708 to have a pseudo_name and a real_name.
5710 * groff.c (run_commands): Don't print `Broken pipe' messages.
5712 * ps/pfbtops.c: New file.
5713 * ps/Makefile: Add pfbtops.
5715 * troff/number.c (parse_term): Improved error message.
5717 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
5719 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5721 * Makefile: Integrate refer.
5722 * refer: New directory.
5723 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5724 man/lkbib.man: New files.
5725 * man/Makefile: Support refer man pages.
5727 * lib/lib.h: Declare is_prime.
5728 * lib/prime.c: New file.
5730 * troff/input.c (macro_source): New function.
5731 (init_input_requests): Bind "mso" to macro_source.
5733 * troff/env.c (environment::possibly_break_line): Maintain
5734 pointer to pointer to node to be split in ndp so as to avoid
5735 using address of freed node.
5737 * troff/env.c (environment::hyphenate_line): Maintain pointer to
5738 pointer to first node to be hyphenated in startp so as to
5739 avoid using address of freed node.
5741 * troff/env.c (class trie, class hyphen_trie): Make the
5742 elements of the trie be of type char not unsigned char.
5743 Declare arguments to be const char* instead of unsigned char *.
5745 * troff/env.c (hyphenate): Initialize hbuf[0].
5747 * troff/input.c (set_string): Declare p to be char * and cast
5748 *p to unsigned char when necessary.
5750 * troff/input.c (do_define_macro): Declare s to be const
5751 char*. Cast element to unisgned char when necessary, Declare
5752 d to be an int. Handle EOF better.
5754 * troff/Makefile, troff/input.c: Different scheme for passing
5755 definitions of MACROPATH, HYPHENFILE and DEVICE.
5757 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
5759 * tty/devascii/R.proto: Delete entry for em.
5760 * tty/devlatin1/R.proto: Likewise.
5762 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
5764 * troff/input.c (translate): Stop when we get a space. Treat eof
5767 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5769 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
5771 * tbl/main.c (process_format): A font name following a `f'
5772 modifier that starts with a digit can be only one character long.
5773 Also deal with EOF on the second character of the font name.
5775 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
5777 * troff/input.c (token::next): Turn \~ into an
5778 unbreakable_space_node.
5779 * troff/node.c (unbreakable_space_node): New class.
5780 * troff/node.h: Declare it.
5782 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
5784 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
5785 it's >= 0, before outputting it as a single byte.
5787 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
5789 * lib/font.c: Make font_char_metric::code an int.
5790 (font::get_code): Change return type to int.
5791 (font::load): Allow code to be arbitrary integer.
5792 * lib/font.h (font::get_code): Change return type to int.
5793 (font::number_to_index): Change argument type to int.
5794 * troff/input.c (token::next): In case 'N', allow any value.
5795 Store value in token::val.
5796 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5797 (token::get_char, token::add_to_node_list, token::process): Get
5799 (charinfo::set_number): Change argument to int.
5800 (charinfo::get_number): Require that NUMBERED flag be set.
5801 (get_charinfo_by_number): Store numbered characters not between 0
5802 and 255 in a dictionary.
5803 * troff/charinfo.h (get_charinfo_by_number): Change argument type
5805 (charinfo::number): Change type to int.
5806 (charinfo::set_number): Change type of set_number to int.
5807 * troff/node.c (troff_output_file::put_char_width,
5808 troff_output_file::put_char): Test whether character is numbered
5809 using charinfo::numbered().
5810 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5812 * lib/nametoindex.c: New implementation to cope with arbitrary
5815 * troff/input.c (token::operator==): Test val for
5816 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5819 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5820 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
5822 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
5824 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
5827 * all Makefiles: rm targets of cp and >.
5829 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5832 * eqn/lex.c (def_table): Add dollar.
5834 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
5836 * troff/input.c (do_width): Push back newline before closing delim
5839 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
5841 * groff.c (possible_command::prepend_arg): New function.
5842 (main): Prepend device -m option.
5843 * groff.sh: Put device -m options before command-line options.
5845 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
5847 * macros/tmac.an (IP): Quote argument to TP.
5849 * ps/ps.c (main): New option -b, which sets...
5850 (broken_flags): New variable.
5851 (ps_printer::~ps_printer): Incorporate the setup section in the
5852 prolog if (broken_flags & NO_SETUP_SECTION).
5853 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5854 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5855 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5856 ps_printer::print_needed_font_comment,
5857 ps_printer::print_supplied_font_comment,
5858 ps_printer::print_include_font_comments,
5859 ps_printer::lookup_doc_font, ps_printer::download_fonts,
5860 ps_printer::read_download_file, read_document_fonts, add_font,
5861 skip_line, parse_fonts_arg, document_font::document_font,
5862 document_font::~document_font, document_font::download,
5863 ps_output::include_file): Deleted.
5864 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5865 rather than %!PS-Adobe-2.0. Make calls to
5866 resource_manager::need_font for each font that we used. Replace
5867 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5868 print_supplied_font_comment, print_needed_font_comment by call to
5869 resource_manager::print_header_comments. Output %%Orientation
5870 comment. Output %%Requirements: numcopies comment if ncopies > 1.
5871 Don't output the prolog directly. Instead call
5872 resource_manager::output_prolog. Only define #copies when ncopies
5873 > 1. Delete calls to print_include_font_comments and
5874 download_fonts. Add call to resource_manager::document_setup.
5875 (ps_printer::do_file): Call resource_manager::import_file instead
5876 of including it ourselves.
5877 (ps_printer::do_import): Likewise. Also don't call
5878 merge_import_fonts. Push userdict on the dictionary stack before
5879 and pop it afterwards.
5880 Move declaration of ps_output into ps.h.
5881 * ps/psrm.c: New file implementing resource_manager class.
5882 * ps/ps.h: New file declaring ps_output and resource_manager
5884 * ps/devps/zapfdr.ps:
5885 * ps/devps/symbolsl.ps:
5886 * ps/devps/prologue: Use 3.0 conventions.
5887 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5888 Add default definition of BROKEN_SPOOLER_FLAGS.
5889 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
5890 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5892 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
5894 * etc/grog.pl: New file.
5895 * Makefile (GROG): New variable.
5896 Add GROG to SUBFLAGS.
5897 * etc/Makefile (GROG): New variable.
5898 (install.nobin): Install $(GROG) rather than grog.sh.
5900 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
5902 * eqn/special.c (special_box::compute_metrics): Make the input and
5903 output strings the same. Get the new height and depth from the
5904 predefined height and depth registers. Also make subscript kern
5906 (special_box::compute_subscript_kern, special_box::compute_skew):
5909 * eqn/box.c (pointer_box::compute_skew,
5910 simple_box::compute_metrics, box::top_level)
5911 * eqn/text.c (prime_box::compute_metrics,
5912 prime_box::comput_subscript_kern)
5913 * eqn/limit.c (limit_box::compute_metrics):
5914 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5915 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5916 negative numbers in `nr' requests with a leading 0.
5918 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
5920 * eqn/special.c: New file.
5921 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
5922 Add new rule for simple.
5923 * eqn/lex.c (token_table): Add SPECIAL.
5924 * eqn/box.h: Declare make_special_box.
5925 * eqn/Makefile: Add special.[co].
5927 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
5929 * ps/devps/prologue: Possibly set packing to true while defining.
5930 Create grops dictionary here. Initialize local variables before
5931 defining procedures.
5932 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5933 the dictionary stack. Set strokeadjust and overprint to false if
5934 the relevant operators are defined.
5935 (PEND): New procedure.
5936 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5937 prologue. Do everything else in the setup section.
5938 (ps_printer::do_import): Just call PBEGIN and PEND around the
5939 picture. Also push userdict before, and pop it afterwards.
5941 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
5943 * troff/node.c (bracket_node::tprint): Brackets were being printed
5946 * macros/tmac.an (SH, SS): Set fill mode.
5948 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
5950 * troff/div.c (top_level_diversion::begin_page): Set
5951 high_water_mark to 0.
5953 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
5955 * man/mdate.sh: New file.
5956 * man/mdate.c: Deleted.
5957 * man/Makefile: Use mdate.sh instead of mdate.
5960 * eqn/lex.c (do_gsize): Supply missing argument to error message.
5962 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
5964 * man/mdate.c: New file.
5965 * man/*.man: Replace modification date by @MDATE@.
5966 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5967 (mdate): New target.
5969 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5970 Remove illegal input characters.
5972 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
5974 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5976 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
5978 * troff/div.c (begin_page): Change behaviour when
5979 !first_page_begun and !break_flag.
5981 * troff/input.c (do_name_test): Return 0 if argument is empty.
5983 * troff/input.c (read_long_escape_name): Require closing ] to be
5984 at same input level as opening [.
5986 * troff/input.c (read_increment_and_escape_name): New function.
5987 (get_copy, process_input_stack): Use this for \n.
5989 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
5991 * troff/div.c (top_level_diversion::begin_page): Ignore the
5992 current value of page_number if !first_page_begun.
5994 * groff.c (main): Fix declaration of buf.
5996 * troff/input.c (do_name_test): New function.
5997 (token::next): Implement \A.
5998 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5999 (token::description, token::add_to_node_list, token::process):
6000 Handle TOKEN_ESCAPE.
6001 * troff/token.h: New token TOKEN_ESCAPE.
6003 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
6005 * pic/main.c (do_picture): Allow space before and after filename
6006 following `<'. Check that the filename is not empty.
6008 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
6010 * Version 1.01 released.
6012 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
6014 * dvi/tmac.dvi: ftr HR to H.
6016 * macros/tmac.e: Round up computation of $r.
6018 * xditview/tmac.X: Don't give up completely in compatibility mode.
6019 Use \n(.s instead of \n[.s].
6021 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
6022 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
6023 Add u to factors inside \s[...]. Rename frac to dvi-frac.
6024 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
6025 short names in the char definitions.
6027 * ps/tmac.ps: Don't give up completely in compatibility mode.
6028 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
6029 quote in front of \n(.s. Add u to factors inside \s[...].
6031 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
6033 * tty/tmac.tty: Call the nroff request.
6035 * macros/tmac.e ((x, )x): Better definitions that work properly
6037 (@0, @1): Helper macros for (x.
6039 * macros/tmac.e ($s, hl): Use \l rather than \D.
6041 * tty/tmac.tty: Make it work better in compatibility mode.
6042 (pchar): Rename to tty-char.
6044 * macros/tmac.e (@E): New macro.
6045 (r, i, b, rb, bi): Use @E.
6047 * macros/tmac.e (@F): Don't use (;...) syntax.
6049 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
6050 it was modified for groff.
6052 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
6054 * macros/tmac.e (<., .>): Removed.
6055 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
6057 * macros/tmac.e: Remove check that groff is being used.
6059 * macros/tmac.e (@C): Change families only if using groff; turn
6060 compatibility mode off while changing familes. Save compatibility
6061 mode before changing families and restore it afterwards.
6063 * macros/tmac.e (@h): Remove test for offset + line length.
6065 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
6066 (lo, th, ac): Define to call @S instead of using als.
6068 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
6069 the ratio of the vertical spacing to the point size in units
6070 expressed as a percentage. Use these instead of $10r and $10R,
6071 Delete $10r and $10R.
6073 * lib/font.c (font::load): In default computation of space_width,
6074 divide by sizescale. Use scale_round.
6076 * macros/tmac.an (TP): Don't call `nf'.
6077 (an-do-tag): Don't call `fi'.
6079 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
6081 * troff/input.c (process_input_stack): Handle the case where
6082 spaces at the beginning of an input line are followed by a
6085 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
6087 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
6088 * groff.sh: Use pic -x with the dvi device.
6090 * dvi/devdvi/FontMakefile (H): Don't use -s.
6092 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
6093 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
6094 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
6097 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
6099 * ps/psfig.diff: New file.
6100 * ps/tmac.psfig: New file.
6102 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
6104 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
6105 (]-): Don't call ref*do-tl.
6107 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
6109 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
6110 (fn@do-FS): Rename to fn*do-FS.
6112 * troff/input.c (transparent_translate): New function.
6113 (process_input_stack): Apply transparent_translate before calling
6114 diversion::transparent_output(unsigned char).
6116 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
6118 * troff/input.c (do_define_macro): Define the macro before calling
6121 * xditview/Makefile: Add DEVICES variable. Change install target
6124 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
6126 * groff.c (run_commands): Handle the possibility that there are
6127 child processes other than those forked by us.
6129 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
6131 * lib/string.c (string::append): New function.
6132 * lib/stringclass.h: Declare it.
6134 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
6136 * eqn/main.c (main): New option -N which sets
6137 no_newline_in_delim_flag.
6138 (do_file): If no_newline_in_delim_flag is set don't allow newlines
6140 * groff.c (main): Pass -N on to eqn.
6141 (help, synopsis): Mention -N.
6142 * groff.sh: Implement -N.
6144 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
6146 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
6147 (]-): Call ref*do-tl if ref*need-tl is non-zero.
6148 (XP): Allow as initializer.
6150 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
6152 * troff/env.c (environment::wrap_up_field): If field_spaces are
6153 non-zero and we have a current_tab, subtract padding from
6154 tab_distance. If this makes tab_distance <= 0, use the next tab
6155 stop instead. If there isn't any next tab or it's a left tab,
6156 wrap up the current tab.
6157 (environment::start_field): Initialize tab_precedes_field.
6158 (environment::wrap_up_tab): If there's a current field, update
6159 pre_field_width, field_distance and tab_precedes_field.
6160 * troff/env.h (environment::tab_precedes_field): New member.
6162 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
6164 * ps/ps.c (ps_printer::do_file): New function.
6165 (ps_printer::special): Bind to `file' special.
6166 (ps_printer::do_exec): Set ndefined_styles to 0.
6168 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
6170 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
6171 Avoid stripping first character from the start of unrecognized
6172 escapes. Use lex_error instead of error to report errors.
6173 * eqn/lex.c (get_token): Rework handling of escapes.
6174 (lex_error): Move declaration into...
6177 * xditview/xditview.c (main): Make -page option work.
6179 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
6181 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
6183 * macros/tmac.s (B2): Correct size of box.
6185 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
6187 * macros/tmac.s (B2): Postpone drawing the box until in the
6188 top-level diversion.
6190 * tty/tmac.tty: Add font translations for C, CR, CW.
6192 * groff.c (synopsis, help): Document -i.
6193 * groff.sh: Implement -i.
6195 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
6196 Simplify the construction of SN.
6198 * troff/number.c (parse_term): Give `|' a higher precedence.
6199 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
6202 * macros/tmac.s (B2): Use par@finish instead of par@reset.
6204 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
6206 * lib/string.c (string::move): New function.
6207 * lib/stringclass.h: Declare it.
6209 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
6211 * troff/env.c (distribute_space): Add optional argument
6213 (environment::wrap_up_field): Call distribute_space with
6214 `force_forward' argument of 1.
6216 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
6218 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
6219 Inline it. Move reallocation into...
6220 (string::grow1): New function.
6221 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
6222 dependencies to include library header files.
6223 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
6225 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
6227 * macros/tmac.s (@NH): Use the same number registers than -ms does
6228 for the heading level counters. Use the same string that -ms does
6229 for the number for this heading.
6231 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
6233 * lib/new.c (operator new): Cast result of malloc to char *.
6235 * troff/input.c (spring_trap, lookup_request): Add assert that nm
6238 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
6240 * groff.c (main): Support -i.
6242 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
6244 * pic/pic.h: Include <osfcn.h>.
6246 * ps/ps.c: Add declaration of mktemp.
6248 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
6249 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
6250 argument as union wait *.
6251 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
6252 argument to union wait *.
6254 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
6256 * tty/tmac.tty: Add definition of \(co.
6258 * pic/object.c (make_arc): Only increase radius when radius
6259 strictly less than d.
6260 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
6263 * troff/env.c (environment::environment(symbol),
6264 environment::environment(const environment *)): Initialize
6267 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
6269 * tbl/main.c (main): Add exit(0).
6271 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
6273 * pic/main.c (main):
6274 * eqn/main.c (main):
6275 * tbl/main.c (main):
6276 * etc/soelim.c (main):
6277 * driver/printer.c (printer::~printer):
6278 * troff/node.c (real_output_file::~real_output_file,
6279 real_output_file::flush): Check for errors on stdout.
6281 * most files: Add 1991 to copyright notice.
6283 * macros/tmac.s: Don't test \n(.x and \n(.y.
6285 * troff/input.c (token::next): Rename `escape_char' label to
6286 `handle_escape_char' and `normal_char' label to
6287 `handle_normal_char'.
6289 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
6291 * groff.c (main, synopsis, help): Support -a option.
6292 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
6293 to trflags while parsing options.
6295 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
6297 * troff/number.c (parse_term): With `m', `M' and `n' scale
6298 indicators, convert scale factor to hunits before scaling.
6300 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
6302 * lib/font.c (scale_round): Better test for overflow when n is
6305 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
6307 * tbl/main.c (process_format): Add second argument of type
6308 options*. Change callers. Allow opt->tab_char as well as '\t'
6309 between format items.
6311 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
6313 * macros/tmac.an (PD): With no arguments, make sure register PD is
6315 (TH): Call PD with no argument, instead of setting register PD
6318 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
6320 * Version 1.00 released.
6322 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
6324 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
6326 * dvi/devdvi/DESC: Mount CW instead of CR.
6328 * dvi/tmac.dvi: Add definition of \(tm.
6330 * dvi/devdvi/texsy.map: Add lh, and rh.
6331 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
6332 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
6334 * dvi/devdvi/FontMakefile: Generate H from cmss10.
6335 * dvi/devdvi/Makefile: Install H.
6336 * dvi/devdvi/H: New file.
6338 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
6340 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
6343 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
6345 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
6347 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
6349 * macros/tmac.s (@EN): Handle the case where the equation is empty
6350 but the label is not.
6352 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
6354 * troff/groff.h: New warning category WARN_SPACE.
6355 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
6356 WARN_SPACE to warning_table.
6357 (interpolate_macro): Give a warning of type WARN_SPACE if the name
6358 is longer than two characters and is not defined, but the first
6359 two characters do make a defined name.
6361 * PROBLEMS: New file.
6363 * CHANGES: New file.
6364 * README-0.6, README-1.00: Deleted.
6366 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
6367 * xditview/devX75/Makefile: Make devX75-12.
6368 * xditview/devX100/Makefile: Make devX100-12.
6370 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
6371 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
6373 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
6375 * README-0.7: Rename to README-1.00.
6377 * macros/tmac.pic: New file.
6378 * macros/Makefile (install.nobin): Install tmac.pic.
6380 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
6382 * troff/env.c (hyphen_word): Correct the test for whether the
6383 token is a hyphen. Reset npos to 0.
6385 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
6387 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
6389 * macros/tmac.s (ds*common-end): Call par*reset.
6391 (par@reset-indent): Deleted.
6393 * macros/tmac.s (@IP): Divert the label.
6395 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
6397 * xditview/draw.c (setGC): Use a line width of .1m rather than
6398 .04m by default; round rather than truncate value.
6400 * tbl/table.c (class empty_entry): New class.
6401 (empty_entry::empty_entry, empty_entry::line_type): New functions.
6402 (table::add_entry): Represent empty entries by objects of type
6404 (table_entry::line_type): Return -1.
6405 (table::determine_row_type): Ignore entries with line_type 0.
6406 Treat type -1 as non-lines.
6408 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
6410 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
6411 macros/tmac.s: Rename \(-d to \(Sd.
6413 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
6415 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
6416 * xditview/libXdvi/DviChar.c: Likewise.
6417 * dvi/devdvi/texsy.map: Add `<<', `>>'.
6419 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
6421 * troff/div.c (top_level_diversion::begin_page): Call
6422 init_output() if the_output is 0.
6424 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
6426 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
6428 (get_copy): Turn \E into ESCAPE_E.
6429 (token::process, asciify): Handle ESCAPE_E.
6431 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
6433 (DS): Implement `.DS R'.
6435 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
6437 * macros/tmac.s (FS): New macro.
6439 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
6441 * macros/tmac.s (cov*tl-init): Remove after first execution
6442 instead of aliasing to @nop. Call top of page macro explicitly
6443 instead of setting trap; call @init first. Set pg@top as top of
6445 (cov*auto-init): Deleted. Set cov*tl-init instead of
6446 cov*auto-init as top of page trap.
6447 (TL, LP): Do a break instead of calling cov*tl-init.
6448 (cov*print): With RP format but no TL, alias FS and FE to @FS and
6449 @FE; in this case also give a warning and always start another
6450 page. No need to set pg@top here.
6451 (cov*tl-init): Rename to cov*first-page-init.
6453 * macros/tmac.s (RP): Do `.pn 0'.
6454 (cov*tl-init): With RP format don't do `.pn 0'.
6456 * macros/tmac.s (pg@cs-top): Set no space mode.
6458 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
6459 (cov*ab-init): Alias TL, AU and AI to these.
6461 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
6463 * macros/tmac.s (@EQ): Move the space before the equation into @EN
6464 (@EN): Do nothing unless \n[dl] is > 0.
6466 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
6468 * pic/object.c (ellipse_object::radius): New function.
6470 * VERSION: Change version to 0.7.
6472 * tbl/table.c (block_entry::do_divert): Declare return type as
6474 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
6476 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
6478 * troff/column.c: New file.
6479 * troff/Makefile: Corresponding changes.
6481 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
6484 * troff/div.c (top_level_diversion::space): If the space causes
6485 the first-page transition and springs a trap, truncate the space
6488 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
6490 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
6493 * pic/troff.c (troff_output::line_thickness,
6494 troff_output::set_fill): Do a horizontal motion to compensate for
6495 the width of the \D escape sequence.
6497 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
6499 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
6502 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
6505 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
6506 Supply empty definition.
6507 (text_entry::simple_print, simple_text_entry::simple_print):
6508 Delete declarations.
6509 (table::add_entry): Represent empty entries by objects of type
6512 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
6514 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
6516 * tbl/table.c (left_text_entry::add_tab): New function.
6518 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
6521 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
6523 * troff/env.c (environment::start_field): Give an error message if
6524 there is no next tab.
6526 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
6528 * troff/env.c (hyphenate): Skip initial elements with zero
6531 * macros/tmac.s (par@init): Keep VS in points rather than units.
6533 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
6535 * pic/main.c (main): Implement `-c' option.
6536 * pic/output.h: Declare make_tpic_output().
6537 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
6539 (tpic_output): New class.
6540 (tpic_output::tpic_output, tpic_output::set_pen_size,
6541 tpic_output::command, make_tpic_output): New functions.
6543 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
6545 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
6546 if they're not already defined.
6547 * tbl/table.c (init_output): Don't test \n(.g.
6549 * troff/input.c (do_if_request): Delete `g' condition. Recognize
6550 `d', `r' and `c' conditions even in compatibility mode.
6552 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
6554 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
6557 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
6559 * troff/env.h (environment::prev_line_interrupted): New member.
6560 (environment::get_prev_line_interrupted): New function.
6561 * troff/env.c (environment::newline): Set prev_line_interrupted.
6562 (environment::environment(const environment *),
6563 environment::environment(symbol)): Initialize
6564 prev_line_interrupted.
6565 * troff/input.c (process_input_stack): Don't give special
6566 treatment to space and newline at the beginning of the line if the
6567 previous line was interrupted.
6569 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
6571 * eqn/eqn.y: Disallow PRIME by itself.
6572 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
6574 (def_table): Remove definition of '. Define prime to be `.
6576 * eqn/eqn.y: Split off part of rule `script' into a new rule
6579 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
6581 * macros/tmac.s ({, }): New string aliases.
6583 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
6585 * README-0.7: New file.
6587 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
6589 * macros/tmac.s: New file.
6590 * man/groff_ms.man: New file.
6591 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
6592 * Makefile.bd: Similarily.
6593 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
6594 definition of TMAC_S.
6595 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
6596 * macros/TODO: New file.
6598 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
6600 * troff/env.c (right_justify): New function.
6601 (init_env_requests): Bind this to request "rj".
6602 (center_lines): Set right_justify_lines to 0. If we get a bad
6603 integer, center 1 line.
6604 (environment::environment(symbol), environment::environment(const
6605 environment *)): Initialize right_justify_lines.
6606 (environment::get_right_justify_lines): New function.
6607 (init_env_requests): Bind this to number_register ".rj".
6609 * troff/env.c (environment::choose_breakpoint): Implement
6610 hyphenation_margin and hyphenation_space.
6611 (environment::get_hyphenation_space,
6612 environment::get_hyphenation_margin): New functions.
6613 (init_env_requests): Bind these to .hys and .hym.
6614 (hyphenation_space_request, hyphenation_margin_request): New
6616 (init_env_requests): Bind these to hys and hym.
6617 (environment::environment(symbol), environment::environment(const
6618 environment *)): Initialize hyphenation_margin and
6620 * troff/env.h: Corresponding changes to class environment.
6622 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
6624 * troff/div.c (blank_line): Always do a break.
6626 * eqn/box.c (do_text): Turn off escapes while appending text to
6629 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
6631 * troff/input.c (while_break_request, while_continue_request): New
6633 (init_input_requests): Bind these to "break" and "continue".
6634 (while_depth, while_break_flag): New variables.
6635 (while_request): Update while_depth. Break out of loop if
6636 while_break_flag is set.
6638 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
6640 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
6643 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
6645 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
6647 * stringify: New file.
6648 * Makefile (groff.o): Use stringify.
6650 * xditview/tmac.X: Remove definition of \(rn.
6651 * xditview/libXdvi/DviChar.c: Remove radicalex from
6654 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
6656 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
6657 (alphabetic_block_entry::alphabetic_block_entry,
6658 alphabetic_block_entry::divert, alphabetic_block_entry::print):
6660 (block_entry::divert): Split off body into ...
6661 (block_entry::do_divert): If the block is alphabetic, subtract 2n
6662 from the line length; also update the span width to dl+2n, and the
6663 alphabetic span width to dl.
6665 * driver/input.c (do_file): While reading argument to D command,
6666 when expanding buffer, multiply szp by sizeof(int) rather than 2
6667 in the argument to memcpy.
6669 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
6670 width of alphabetic columns.
6672 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
6674 * troff/node.c (lookup_family): Supply second argument to lookup.
6676 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
6677 search, return immediately if v is 0.
6679 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
6680 (troff_output::start_picture): Set this reg.
6681 (troff_output::end_picture): Remove this reg
6682 * eqn/box.c (box::extra_space): Don't produce `\x's if
6683 EQN_NO_EXTRA_SPACE_REG is defined.
6685 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
6686 * eqn/text.c (split_text): Map ' to \(fm when it's the first
6689 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
6691 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
6694 * troff/div.c (top_level_diversion::top_level_diversion):
6695 Initialize page_number to 0.
6697 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
6699 * groff/troff (environment::environment(const environment *)):
6700 Initialize name to e->name, rather than "anonymous".
6702 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
6704 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
6705 requested_page. Split middle part into ...
6706 (FindPage): New function.
6707 (SetValues): If we don't yet know the last page, and the requested
6708 page is greater than the current page, call FindPage.
6709 Update the font_map_string before doing this.
6711 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6712 Translate \(lh and \(rh into left and right double arrows.
6714 * troff/node.c (class hyphen_inhibitor_node): New class.
6715 (hyphen_inhibitor_node::hyphen_inhibitor_node,
6716 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6717 hyphen_inhibitor_node::type,
6718 hyphen_inhibitor_node::get_hyphenation_type): New functions.
6719 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6720 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6723 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
6725 * troff/node.h (dummy_node::get_hyphenation_type,
6726 transparent_dummy_node::get_hyphenation_type): Declare them.
6727 * troff/node.c: (dummy_node::get_hyphenation_type,
6728 transparent_dummy_node::get_hyphenation_type): New functions.
6730 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
6732 * xditview/libXdvi/draw.c: If M_PI not defined after including
6733 math.h, then define it.
6735 * xditview/Makefile: Add definition of AR. Pass it to the submake
6737 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6739 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
6741 * troff/dictionary.h (object_dictionary::alias): Declare return
6743 * troff/dictionary.c (object_dictionary::alias): Return non-zero
6744 if the old name was defined.
6745 * troff/input.c (alias_macro): Give a warning if the old name was
6747 * troff/reg.c (alias_reg): Likewise.
6749 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
6751 * troff/input.c (token::next): Delete implementation of \R.
6753 * macros/Makefile: Strip comments from tmac.e while installing it.
6755 * troff/input.c: New variable `nroff_mode'.
6756 (troff_request, nroff_request): New functions.
6757 (init_input_requests): Bind `troff' and `nroff' to troff_request
6759 (do_if_request): Compute results of t and n conditions from
6762 * text/text.c (split_text): Fix typo in >=.
6764 * eqn/lex.c: Add definition of `==' to def_table.
6766 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
6768 * pic/tex.c (tex_output::start_picture): Change the definitions of
6769 \graph and \graphtemp so that they work properly with Plain TeX.
6771 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6772 argument to `ar' is not less than the first.
6774 * pic/pic.y: Allow a comma between elements of the variable list
6775 in the argument to `reset'.
6777 * pic/object.c (arc_object::arc_object): Fix computation of
6780 * eqn/main.c (main): Add exit(0).
6782 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
6784 * troff/div.c (begin_page): Test no_space_mode after doing the
6785 break, but still push the page ejector cookie before doing the
6786 break. Also set the next page number after doing the break.
6788 * xditview/xditview.c (NewFile): Don't set the title and icon name
6789 if this is the first file and its name is `-'.
6790 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
6791 the X75 and X100 devices.
6792 (main): If a device has the XT_OPTION flag set and there's exactly
6793 one file argument, pass the driver -xrm and -title options to set
6794 the icon name and window title to the name of the file.
6796 * troff/env.c (environment_switch): If there was an argument but
6797 it wasn't a valid number or name, then pop an environment but
6798 don't give an error message on underflow.
6800 * troff/number.c (start_number): Correct spelling in error message.
6802 * troff/input.c (token::delimiter): Don't print an error message
6805 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6806 ParseDrawFunction if dw->display_enable is true.
6808 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
6810 * pic/pic.y: Parse text positioning like normal attributes, so as
6811 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
6812 positioning attribute.
6814 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
6816 * tbl/main.c (process_data): When in state START while reading a
6817 text block, don't change to state MIDDLE if c is a newline.
6819 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
6821 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6822 so as to avoid shadowing parameter.
6824 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
6826 * tbl/table.c (trim_space): Deleted.
6827 (table::add_entry): Don't call trim_space.
6829 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
6831 * VERSION: Change version to 0.6.
6833 * troff/number.c (parse_expr): Make == work.
6835 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
6837 * man/grog.man: New file.
6838 * man/Makefile: Add grog.n to MAN1PAGES.
6839 * etc/grog.sh: New file.
6840 * etc/Makefile: Install grog.sh as grog.
6842 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
6844 * troff/input.c (token::next): Implement \E.
6846 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
6848 * xditview/tmac.X: Change font translations to match tmac.ps.
6850 * troff/input.c (non_empty_name_warning): Don't give a warning if
6851 `\{' terminates the name.
6853 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
6855 * ps/devps/symbol.diff: New file.
6856 * ps/devps/FontMakefile: Mention symbol.diff.
6858 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
6860 * troff/node.c (font_position): Use get_long_name to read the
6863 * troff/env.c (environment_switch): If we get a number that's < 0
6864 or >= NENVIRONMENTS, treat it like a name.
6865 Change NENVIRONMENTS to 10.
6867 * troff/groff.h: Remove definition of FONTS_MAX.
6868 * troff/node.h (class font_family): Make map a pointer instead of
6869 an array. Add a map_size member. Make it a class. Make nm const
6870 and public. Make invalidate_fontno a friend.
6871 * troff/node.c: Define font_table_size. Make font_info a pointer
6872 rather than an array.
6873 (class troff_output_file): Allocate font_position dynamically. Add
6874 nfont_positions member.
6875 (troff_output_file::set_font): Grow font_position if necessary.
6876 (troff_output_file::~troff_output_file): Delete font_position.
6877 (troff_output_file::troff_output_file): Allocate font_position.
6878 (grow_font_table): New function.
6879 (troff_output_file::really_begin_page,
6880 troff_output_file:really_copy_page): Use nfont_positions rather
6882 (mount_font_no_translate, mount_style): Call grow_font_table if
6884 (font_family::font_family): Allocate map.
6885 (font_family::make_definite): Grow map if necessary. Use
6886 font_table_size instead of FONTS_MAX.
6887 (font_family::~font_family): New function.
6888 (invalidate_fontno): Use font_family::map_size.
6889 (get_fontno, env_space_width, env_half_narrow_space_width,
6890 env_narrow_space_width, symbol_fotno, is_good_fontno,
6891 get_bold_fontno, make_glyph_node): Use font_table_size rather than
6893 (next_available_font_position): Never return 0.
6895 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
6897 * ps/tmac.ps: Add font translations for compatibility with dpost.
6899 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
6901 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6902 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6903 Move definitions baseline_sep, shift_down, column_sep,
6904 matrix_side_sep into...
6905 * eqn/box.c: Add them to param_table.
6906 * eqn/pbox.h: Add declarations to pbox.h.
6908 * troff/input.c (set_string): Cast value to unsigned char *.
6910 * troff/token.h (process_input_stack): Declare it static before
6911 declaring it a friend.
6913 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
6915 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6917 * dvi/devdvi/EX: Regenerate.
6919 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6922 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
6924 * eqn/lex.c: In defaults_table, make definition of `dot' call
6925 `dot_def'. Don't explicitly make it roman. Similarily for other
6928 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6930 (for_input::get, for_input::peek): Use this.
6931 (do_for): Add by_is_multiplicative argument.
6932 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6933 Change semantic value of optional_by to be a double plus a flag
6934 saying whethet the by clause is multiplicative.
6936 * eqn/lex.c (get_delimited_text): Remember location of start of
6937 definition. Improve error handling when EOF is encountered.
6939 * lib/font.h: Rename handle_x_command to
6940 handle_unknown_font_command.
6941 * lib/font.c (font::load): Call handle_unknown_font_command for
6942 any unknown command in the font description file. Don't call
6943 handle_x_command. Include the name of the command in the argv.
6944 Improve message for unknown command after kernpairs or charset
6946 * ps/ps.c (ps_font::handle_x_command): Rename to
6947 handle_unknown_font_command. Remove message about `x download'
6948 command. Give error message for wrong number of arguments.
6949 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6950 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6951 handle_unknown_font_command. Give an error message for wrong
6952 number of arguments. Rename design_size to designsize.
6953 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6954 checksum', `designsize' instead of `design_size'.
6956 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
6958 * eqn/*.[chy]: Change underaccent to uaccent.
6960 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
6961 give it the same precedence as ACCENT.
6962 * eqn/other.c (make_underaccent_box): New function.
6963 * eqn/box.h: Declare it.
6964 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6967 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
6969 * pic/pic.y (reset_all): New function. Called in rule for RESET.
6970 (parse_init): Call reset_all.
6971 (define_variable): When defining scale reset only those
6972 pre-defined variables that are scaled.
6973 (defaults_table): Add `scale' as non-scaled value.
6975 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6976 together with the text; allow any number of positioning words;
6977 allow center as a positioning word.
6979 * pic/object.c (output::compute_scale): Get picture maximum height
6980 and width from variables called maxpswid and maxpsht.
6981 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6983 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
6985 * pic/object.c (object_spec::make_text): Multiply textht by number
6988 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6990 (do_sprintf): New function.
6991 (pic.gperf): Add sprintf token.
6992 (text, sprintf): New rules.
6994 * pic/pic.y: `rand()' with no arguments returns a random number
6997 * pic/pic.y: Allow a bare expression to be an attribute: change
6998 precedences to support this. Change optional_ordinal rule to
6999 optional_ordinal_last to avoid reduce/reduce conflict.
7000 * pic/object.c (object_spec::object_spec): Initialize direction.
7002 * pic/pic.y: Implement ^ operator meaning exponentiation.
7004 * troff/node.h: Add default argument to mount_font.
7005 * troff/node.c (font_position): Read an optional third argument
7006 giving the external_name.
7007 (mount_font): Add optional argument giving the external_name.
7008 (mount_font_not_translate): Have additional argument giving
7009 external name. Use this name to load the font. Pass both names
7010 to font_info::font_info.
7011 (font_info::font_info): Have additional argument giving
7013 (class tfont): New member external_name.
7014 (font_info::get_tfont): Use external name to construct tfont_spec.
7016 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
7018 * eqn/lex.c (init_table): Add argument giving device. Define
7019 name of device to be "1".
7020 (do_ifdef): Counts as true if the argument has been defined with
7022 * eqn/main.c (main): Call init_table with device argument. Make
7023 device local to main.
7024 * eqn/eqn.h: Change declaration of init_table. Remove declaration
7027 * pic/lex.c (get_delimited): Allow text to be delimited by
7028 matching {}s. Don't recognize ending delimiter within a string.
7030 * troff/input.c (get_delim_name): New function.
7031 (token::next): Implement \C.
7033 * lib/font.c (font::load): Grok ---. Add an alias for each
7034 character based on its code.
7035 (font::get_code_width): Deleted.
7036 * lib/font.h (class font): Declare font::number_to_index().
7037 Remove declaration of font::get_code_width.
7038 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
7039 to indices of named characters.
7040 (font::number_to_index): New function.
7041 * troff/input.c (font::number_to_index): New function.
7042 (get_charinfo_by_number, charinfo::get_number,
7043 charinfo::set_number): New functions.
7044 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
7045 (token::process, token::description, token::get_char,
7046 token::add_to_node_list, token::operator==): Handle
7047 TOKEN_NUMBERED_CHAR.
7048 * troff/charinfo.h: Declare get_charinfo_by_number,
7049 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
7051 (charinfo::numbered): New function.
7052 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
7053 * troff/env.h (class environment): Remove declaration of ...
7054 * troff/env.c (environment::make_numbered_char_node): Deleted.
7055 * troff/node.c (make_numbered_node): Deleted.
7056 (class numbered_glyph_node): Remove.
7057 (troff_output_file::put_char_width, troff_output_file::put_char):
7058 Handle numbered chars.
7059 (troff_output_file::numbered_char): Removed.
7060 (tfont::get_code_width): Removed.
7061 (make_glyph_node): Don't search special fonts for numbered
7063 * troff/node.h: Remove declaration of make_numbered_node.
7064 * driver/input.c (do_file): Handle N command.
7065 * driver/printer.h: Add declaration of ...
7066 * driver/printer.c (printer::set_numbered_char): New function.
7067 * dvi/tfmtodit.c (main): Generate unnamed entries.
7068 * ps/devps/afmtodit: Likewise.
7069 * xditview/xtotroff.c (MapFont): Likewise.
7070 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
7072 * tbl/main.c (process_format): If multiple widths are specified
7073 for a column but all the widths are the same, don't give an error
7076 * tbl/table.c (table::do_row): If the current row is all lines and
7077 the stuff doesn't contains a line, mark the top of the row after
7078 printing stuff before the row. If the current row is not all
7079 lines and the stuff doesn't contain a line, don't unnecessarily
7080 mark the top of the row before printing the stuff.
7082 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
7084 * troff/groff.h: Remove MAX_PATH.
7085 * troff/input.c (open_file): Dynamically allocate space for the
7087 (open_mac_file, process_macro_file): Corresponding changes.
7089 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
7091 * troff/node.h (class output_file): Make copy_file pure. Add
7092 vspace method ifdef COLUMN. Add is_printing method.
7093 * troff/node.c: Add class printing_reg. Add class
7094 real_output_file. Derive other output_file classes from
7095 real_output_file; in these classes rename begin_page to
7096 really_begin_page, print_line to really_print_line, copy_file to
7097 really_copy_file, transparent_char to really_transparent_char.
7098 Move output_file::flush to real_output_file. Add printing member
7099 to class output_file.
7100 * troff/div.h: Remove printing member from top_level_diversion.
7101 Add vspace member function to class diversion ifdef COLUMN. Add
7102 some declarations ifdef COLUMN.
7103 * troff/div.c (top_level_diversion::copy_file,
7104 top_level_diversion::transparent_output,
7105 top_level_diversion::output): Don't test printing member before
7107 * troff/input.c: Handle initial variable_space_request ifdef
7109 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
7112 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
7114 * troff/div.c (diversion::need): Make any space forced. If we
7115 sprung a trap, set truncated_space to minus the distance to the
7116 trap and set needed_space to the amount that was needed.
7117 (top_level_diversion::space): A forced space turns no_space_mode
7119 (class constant_vunits_reg): New class.
7120 (init_div_requests): Implement number registers .trunc and .ne
7121 using constant_vunits_reg.
7122 (class truncated_space_reg): Deleted.
7124 * troff/div.h: Don't have a no_space_mode member in diversion.
7125 Instead have it in top_level_diversion.
7126 * troff/div.c (diversion::diversion): Don't initialize
7128 (top_level_diversion::top_level_diversion): Initialize
7130 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
7131 (macro_diversion::output): Don't clear no_space_mode.
7133 * troff/input.c (diverted_space_node::reread): Don't call
7134 environment::do_break. In fill mode, act like a blank line.
7135 (diverted_copy_file_node::reread): Don't call
7136 environment::do_break.
7138 * troff/div.c (blank_line): New function.
7139 * troff/div.h: Declare it.
7140 * troff/input.c (process_input_stack): Call it.
7142 * troff/div.c (truncated_space_reg::get_string): New function.
7143 (init_div_requests): Bind to .trunc.
7144 (space_request, top_level_diversion::space,
7145 top_level_diversion::output, macro_diversion::space,
7146 macro_diversion::output): Update truncated_space.
7147 (macro_diversion::output): Redo calculations when trap sprung.
7148 (macro_diversion::output, macro_diversion::space): No need for
7151 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
7152 after truncating post line spacing.
7154 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
7156 * ps/devps/prologue (MF, SF): Make them work even if setfont is
7157 defined as a procedure rather than as an operator.
7159 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
7161 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
7163 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
7165 * troff/div.c (top_level_diversion::output): Merge
7166 output_file::print_line and output_file::end_of_line member
7168 * troff/div.h (class output_file):
7169 * troff/node.c (troff_output_file::print_line,
7170 troff_output_file::end_of_line, output_file::end_of_line,
7171 ascii_output_file::print_line, suppress_output_file::print_line):
7172 Corresponding changes.
7174 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
7176 * troff/input.c (token::next): Don't give a warning for `\.'.
7178 * troff/env.c (environment::get_center_lines): New function.
7179 (init_env_requests): Bind number register .ce to it.
7180 * troff/env.h: Declare it.
7181 * tbl/table.c (table::init_output): Define reset macro to restore
7182 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
7184 (table::print): If center option not given, then imply center
7185 option if SAVED_CENTER_REG > 0.
7187 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
7189 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
7190 Troff.ps from DOWNLOAD.
7192 * troff/Makefile: Change comment in DEFINES to avoid confusing
7195 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
7196 code. Don't try to catch errors with stopped.
7197 (check_line_lengths): New function.
7198 * ps/devps/prologue (EXEC): Deleted.
7199 (EBEGIN, EEND): New procedures.
7201 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
7203 * troff/input.c: Include request.h before node.h.
7204 * troff/node.c: Likewise.
7205 * troff/env.c: Likewise.
7206 * troff/div.c: Likewise.
7207 * troff/node.h (class special_node): Store argument as a macro
7208 rather than a char *.
7209 * troff/node.c (special_node::special_node, special_node::copy):
7211 (special_node::~special_node): Deleted.
7212 (special_node::tprint): Deleted.
7213 (special_node::tprint_start, special_node::tprint_end,
7214 special_node::tprint_char): New functions.
7215 (troff_output_file::special): Deleted.
7216 (troff_output_file::start_special, troff_output_file::end_special,
7217 troff_output_file::special_char): New functions.
7218 * troff/input.c (special_node::tprint): New function.
7219 (do_special): Use macro not char *.
7220 (do_transparent_macro): Deleted.
7221 (token::next): Don't call do_transparent_macro.
7223 * troff/input.c (token::next): Add 'Y' case.
7224 (do_transparent_macro): New function.
7225 * troff/node.c (troff_output_file::special): Handle newlines with
7226 argument using new continuation convention.
7227 * driver/input.c (get_string): Cope with continuation convention.
7228 (do_file): Don't call skip_line after calling get_string(1).
7229 * ps/ps.c (ps_printer::special, ps_printer::do_import,
7230 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
7232 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
7235 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
7237 * troff/input.c (asciify): By default, illegal input characters
7238 should return empty string.
7240 * troff/input.c (copy_file): Handle first page transition like title.
7241 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
7243 * troff/input.c (token::next): Improve error message for EOF after
7245 (input_char_description): New function.
7246 (get_char_for_escape_name): Use input_char_description.
7247 (token::next): Warn about unrecognized escape sequences.
7248 (warning_table): Add WARN_ESCAPE.
7249 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
7252 * troff/token.h: Remove declaration of process_input_stack.
7254 * troff/input.c: Remove declaration of init_hyphen_requests.
7255 * troff/request.h: Correct spelling in declaration of same.
7257 * troff/input.c (token::next): Check whether escape_char is 0.
7259 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
7261 * groff.c (main, usage, help): Implement -P and -L options.
7262 * groff.sh: Likewise.
7264 * troff/input.c (token::next): Use some gotos to avoid code
7267 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
7268 Avoid calling symbol::symbol if name empty.
7270 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
7272 * troff/input.c (init_input_requests): Make \n(.x return the major
7273 version number and \n(.y return the minor version number.
7274 * troff/Makefile: Construct file majorminor.c defining
7275 major_version and minor_version automatically from ../VERSION.
7277 * troff/node.c (class glyph_node): Make operator new and operator
7279 (class ligature_node): Similarily.
7281 * troff/input.c (operator==(const macro &, const macro &)): New
7283 (non_interpreted_node::same): Use this.
7284 (string_iterator::string_iterator): Make macro& argument const.
7286 * troff/input.c (input_iterator::get): New function. Don't make
7287 asciify_macro or class non_interpreted_node friends of class
7289 (non_interpreted_node::interpret): Use input_iterator::get.
7290 (asciify_macro): Likewise.
7292 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
7293 ~non_interpreted_node): Deleted.
7294 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
7297 * troff/symbol.h: Make all symbol member functions const.
7299 * lib/strtol.c: New file.
7300 * lib/Makefile: Add strtol.c.
7301 * Makefile: Define STRTOL as strtol.o to include strtol in
7304 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
7306 * pic/troff.c (troff_output::simple_circle): Divide by scale.
7308 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
7310 * troff/input.c (do_special): Use input_level.
7312 * troff/token.h (TOKEN_BACKSPACE): New token.
7313 (token::backspace): New function.
7314 * troff/input.c (token::description, token::next, token::process):
7315 Grok TOKEN_BACKSPACE.
7316 (do_special): Turn TOKEN_BACKSPACE back into \b.
7318 * troff/token.h (token::leader): New function.
7319 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
7321 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
7323 * troff/input.c (do_special): Use token::description in error
7326 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
7328 * troff/input.c (decode_args): Combine quoted and
7329 quote_input_level variables. Make it a for (;;) loop.
7331 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
7333 * troff/input.c (read_long_escape_name): The test for whether to
7334 expand buffer was off by 1.
7335 (read_string): Similarily.
7337 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
7339 * troff/input.c: Use `const int' rather than `static const int'.
7341 * troff/div.h (diversion::copy_file): Declare as pure virtual.
7342 (macro_diversion::copy_file): New function.
7343 * troff/node.h: New class diverted_copy_file_node.
7344 * troff/node.c: Implement it.
7345 * troff/input.c (copy_file): Use diversion::copy_file. Handle
7346 first page transition by pushing a diverted_copy_file_node.
7347 * troff/input.c (token::next, process_input_stack): Don't handle
7350 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
7352 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
7353 whether space widths need adjusting.
7355 * troff/charinfo.h: Generalize translated_to_space to
7356 special_translation so as to allow translation to \&.
7357 * troff/input.c (translate): Allow translation to \&.
7358 (charinfo::*): Corresponding changes.
7359 * troff/node.c (make_node, node::add_char): Corresponding changes.
7360 * troff/node.h (dummy_node::dummy_node): Allow optional first
7363 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
7364 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
7366 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
7367 TOKEN_REQUEST with an argument of TITLE_REQUEST.
7368 (token::process): Grok that.
7369 * troff/input.c (copy_file): Handle first page transition like
7370 title by pushing a COPY_FILE_REQUEST cookie.
7371 (token::next, process_input_stack): Grok that.
7372 * troff/node.h (output_file::copy_file): Add x and y arguments.
7374 * troff/div.c (top_level_diversion::copy_file): Supply them.
7375 * troff/node.c (troff_output_file::copy_file): Add x and y
7376 arguments; moveto specified position. Invalidate font_position
7377 array after copying file.
7378 (output_file::copy_file): New function.
7379 (suppressed_output_file::copy_file, ascii_output::copy_file):
7381 * troff/input.c (transparent_file): New function.
7382 (init_input_requests): Bind to "trf".
7383 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
7384 (process_input_stack): Likewise.
7386 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
7388 * troff/node.c (init_node_requests): New number registers .kern
7389 pointing to global_kern_mode, and .lg pointing to
7390 global_ligature_mode.
7392 * troff/node.c (ligature): Don't change it if we get a bad
7395 * troff/input.c (do_define_string): Don't strip tabs.
7397 * troff/input.c (asciify_macro): Make the string_iterator auto.
7399 * troff/node.c (init_font_requests): Rename to...
7400 (init_node_requests):
7401 * troff/node.h: Change declaration.
7402 * troff/input.c (main): Change call.
7404 * troff/input.c (node::reread, diverted_space_node::reread): New
7406 (process_input_stack): Call reread rather than
7407 get_diverted_space_node.
7408 * troff/node.c (node::get_diverted_space_node,
7409 diverted_space_node::get_diverted_space_node): Removed.
7410 * troff/node.h: Declare reread methods instead of
7411 get_diverted_space_node methods. Make `n' member private.
7412 * troff/input.c: (token::diverted_space): Removed.
7413 * troff/token.h: Removed declaration.
7416 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
7418 * eqn/script.c (script_box::compute_metrics): Don't let
7419 SUP_RAISE_FORMAT become negative.
7421 * tbl/table.c (table::do_row): Entries that don't end in the
7422 this row shouldn't make the row non-blank.
7424 * tbl/table.c (table::make_columns_equal): Only set the width of
7425 columns which are marked as equal.
7427 * tbl/main.c (process_data): Before issuing excess data error,
7428 if last character was a newline unget it; then get it again after
7429 the error. Also include the contents of the entry in the message.
7431 * groff.c: New file.
7432 * Makefile: Build groff from groff.c. Make it possible to use
7433 either groff.sh or groff.c as groff.
7434 * Makefile.bd: Similarily.
7436 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
7438 * groff.sh: Don't delay expansion of $@ in assignment to files.
7439 Remove occurrences of \".
7441 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
7443 * all Makefiles: Simplify and rearrange.
7445 * Makefile: Handle fmod like malloc.
7446 * lib/Makefile: Similarily.
7447 * lib/fmod.c: Remove #ifdef NEED_FMOD.
7449 * Makefile: Rename OPTIMISE to OPTIMIZE.
7451 * groff.sh: Remove assignment to PATH.
7452 * Makefile: Remove SHPATH variable.
7453 * Makefile.bd: Similarily.
7455 * groff.sh: Add -V option to print the pipeline instead of
7458 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
7460 * lib/font.c: Split off file searching into ...
7461 * lib/fontfile.c: New file.
7463 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
7465 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
7467 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
7468 Also change misleading comment.
7469 (table::do_vspan): Change similarily misleading comment.
7470 * tbl/main.c (process_data): A format row with an explicit `s'
7471 uses up a data line, even if all the other columns are `_' or `='.
7473 * troff/input.c (token::description): Fix description of
7474 TOKEN_DUMMY and TOKEN_EMPTY.
7476 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
7478 * groff.sh: Fix description of -Z in help message.
7480 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
7482 * pic/object.c (object_spec::make_object): Allow negative and zero
7484 * pic/pic.y: Give linethick default value of -1.0.
7485 * pic/troff.c (troff_output::troff_output): Initialize
7486 last_line_thickness to BAD_THICKNESS.
7487 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
7488 (troff_output::line_thickness): Canonicalize negative thicknesses
7489 to RELATIVE_THICKNESS.
7490 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
7491 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
7493 (tex_output::start_picture): Set pen_size to -2.0.
7495 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
7496 0, then use 0 linewidth.
7497 (ps_printer::ps_printer): Initialize line_thickness to -1.
7499 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
7501 * ps/devps/symbolchars: Remove `or'.
7502 * ps/tmac.ps: Implement \(or with .char.
7504 * ps/devps/symbolchars: Move most characters into textmap.
7505 * ps/devps/textmap: Add names for troff bracket characters. Remove
7508 * ps/devps/TSymbol.ps: Removed.
7509 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
7510 * ps/tmac.ps: Do with .char what TSymbol did.
7511 * ps/devps/download: Remove TSymbol.
7513 * ps/devps/T: Removed.
7514 * ps/devps/Troff.ps: Removed.
7515 * ps/devps/Troff.afm: Removed.
7516 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
7517 * ps/devps/download: Remove Troff.
7518 * ps/devps/FontMakefile: Remove T target.
7519 * ps/devps/DESC-A4: Remove T from font list.
7520 * ps/devps/DESC-letter: Likewise.
7522 * troff/input.c (macro_to_node): Rename to ...
7523 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
7524 character's definition while processing it.
7525 * troff/node.c (node::add_char, make_node): Change calls to
7526 macro_to_node accordingly.
7528 * troff/input.c (token::next): Translate \_ to \(ul.
7530 * tty/devascii/R.proto: Add `|'.
7531 * tty/devlatin1/R.proto: Likewise.
7533 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
7535 * man: Put the version number in all the man pages.
7537 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
7539 * Makefile.bd: New file.
7540 * README.bd: New file.
7542 * VERSION: New file.
7543 * lib/version.c: Removed.
7544 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
7547 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
7548 environment variable.
7550 * all Makefiles: Split install target into install.bin for
7551 binaries, and install.nobin for everything else.
7552 * Makefile: Add bindist target.
7554 * man/afmtodit.man: New file.
7555 * man/Makefile: Add afmtodit.n to MAN1PAGES.
7556 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
7558 * ps/Makefile: Pass BINDIR to make install in devps.
7560 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
7561 the space character.
7563 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
7565 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
7567 * ps/ps.c: Redo font downloading.
7568 * ps/devps/download: New file.
7569 * ps/devps/Makefile: Add download to DEVICEFILES.
7570 * ps/devps/afmtodit: Remove -d option.
7571 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
7572 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
7573 * ps/devps/zapfdr.ps: Likewise.
7574 * ps/devps/TSymbol.ps: Likewise.
7576 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
7578 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
7580 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
7582 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
7583 then strip the first line if it starts with %.
7584 * Makefile: Add a comment about this.
7586 * man/tfmtodit.man: New file.
7587 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
7588 * dvi/Makefile: Install tfmtodit in BINDIR.
7590 * dvi/tfmtodit.c (usage): Mention -v option.
7592 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
7594 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
7595 * troff/node.c (troff_output_file::transparent_char): Don't call
7598 * eqn: Add check_tabs method to most box classes.
7599 * eqn/box.c (box::top_level): Call check_tabs.
7601 * eqn/script.c (script_box::output): Use \Z.
7602 * eqn/limit.c (limit_box::output): Use \Z.
7604 * eqn/box.c (box::top_level): Use itoa.
7606 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
7608 * dvi/tmac.dvi: Add font translations for CR, C, TT.
7609 * dvi/devdvi/Makefile: Don't make links to CW.
7611 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
7613 * xditview/tmac.X: Likewise.
7615 * troff/node.c: Add font translation feature.
7616 (get_font_translation): New function.
7617 (symbol_fontno): Translate the font name.
7618 (mount_font_no_translate): Rename to mount_font to this.
7619 (mount_font): New function.
7620 (font_family::make_definite): Call mount_font_no_translate instead
7622 (mount_style): Translate the font name.
7623 (font_translate): New function.
7624 (init_font_requests): Bind "ftr" to font_translate.
7626 * ps/devps/prologue (SN): New procedure that rounds a position to
7627 the nearest (pixel + (.25,.25)).
7628 (DL): Use SN to round endpoints.
7630 * lib/version.c: Changed version to 0.5.
7632 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
7634 * Makefile: Move definition of PAGE to the very beginning, so that
7635 people are less likely to miss it.
7637 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
7639 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
7641 * troff/env.c (environment::choose_breakpoint): Make `can't find
7642 breakpoint' error a warning of type WARN_BREAK. Change message to
7644 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
7646 * troff/input.c: Add WARN_BREAK to warning_table. Include
7647 WARN_BREAK in DEFAULT_WARNING_MASK.
7649 * tty/tmac.tty: Add definition of \(+-.
7651 * groff.sh: Remove `--' option to set command.
7653 * dvi/devdvi/texsy.map: Remove duplicate md entry.
7655 * ps/devps/eqnchar: Better definition of cdot using md.
7656 * dvi/devdvi/eqnchar: Likewise.
7657 * xditview/devX100/eqnchar: Likewise.
7658 * xditview/devX75/eqnchar: Likewise.
7659 * eqn/lex.c: Add definition of cdot.
7661 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
7663 * troff/input.c (get_optional_char): New function.
7664 * troff/input.c (set_page_character): Use get_optional_char(),
7665 rather than has_arg() and tok.get_char(1).
7666 * troff/env.c (tab_character, leader_character, hyphen_char,
7667 field_characters): Likewise.
7668 (margin_character): Likewise. Also always delete the
7669 margin_character_node.
7671 * troff/input.c (token::get_char): Use token::description.
7673 * troff/input.c (has_arg): Don't skip over tab and \}.
7674 * troff/number.c (start_number): Give a warning if the number
7675 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
7677 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
7679 * troff/input.c (empty_name_warning, non_empty_name_warning): New
7681 (get_name, get_long_name): Use these. Rename `warn' argument to
7684 * troff/node.c (get_fontno): Test that the symbol is not null.
7686 * troff/input.c (token::description): New function.
7687 * troff/number.c (parse_term): Use token::description in `numeric
7688 expression expected' message.
7689 * troff/groff.h: Add WARN_MISSING.
7690 * troff/number.c (start_number): New function.
7691 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
7692 get_incr_number): Use start_number().
7693 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
7695 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
7696 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
7698 * troff/input.c (token::get_char): Use WARN_MISSING.
7699 * troff/input.c (token::delimiter): Use token::description.
7700 * troff/env.c (environment_switch): Back out Aug 3 change.
7701 * troff/input.c (has_arg): Skip over \}s and tabs but give a
7703 * troff/token.h (token::tab): New function.
7704 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
7705 * troff/reg.c (alter_format): Likewise.
7706 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
7708 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
7710 * troff (most files): Redo warnings. Divide warnings into various
7711 categories; warning() has an additional first argument indicating
7712 the category it falls into.
7713 * troff/input.c (main): -w now takes an argument. New option -W.
7714 (enable_warning, disable_warning): New functions.
7716 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7717 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7719 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
7721 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7722 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7723 * xditview/devX75/eqnchar: Likewise.
7724 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7726 * eqn/other.c: When bar or over applies to a single character
7727 don't produce an overline_box or an underline_box. Instead produce
7728 an accent_box or an underaccent_box, with the accent a line
7729 whose width is accent_width. New classes underaccent_box,
7730 overline_char_box and underline_char_box.
7731 * eqn/box.h: Move overline_box, underline_box, accent_box class
7732 declarations into eqn/other.c. Add declarations of
7733 make_underline_box, make_overline_box, make_accent_box.
7734 * eqn/eqn.y: Call make_overline_box, make_underline_box
7735 make_accent_box instead of constructors.
7736 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7738 * eqn/other.c: Add accent_box::~accent_box.
7739 * eqn/box.h: Declare it.
7741 * groff.sh: With -Tps, use eqn -D.
7743 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7745 (underline_box::output): Similarily.
7746 (accent_box::output): Use \Z.
7748 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7751 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
7753 * troff/div.c (top_level_diversion::transparent_output(unsigned
7754 char)): Use asciify.
7755 * troff/input.c (asciify): Don't make it static.
7756 * troff/token.h (asciify): Declare it.
7758 * troff/input.c (get_name, get_long_name, token::get_char,
7759 token::delimiter): Add an extra default argument which says
7760 whether a warning should be printed.
7761 * troff: Pass a non-zero argument to one of these rather than
7762 printing a warning directly.
7764 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
7766 * troff: Consistently use symbol::is_null.
7768 * troff/dictionary.h: Move some inline functions into
7771 * troff/request.h: Move inline functions into input.c.
7772 (request_or_macro::invoke): Make it pure.
7774 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7775 * troff/input.c (init_input_requests): Use class constant_int_reg.
7776 (class compatible_reg): Deleted.
7777 * troff/div.c (init_div_requests): Use class constant_int_reg.
7778 (class last_post_line_extra_space_reg): Deleted.
7780 * troff/env.c (tab_character): Don't change the tab character if
7781 we get an invalid argument.
7782 (hyphen_char): Similarily.
7784 * troff/reg.c (alter_format): Check that nm is not null.
7786 * Makefile, groff.sh: Make it possible to customize the commands
7787 used for printing PostScript and dvi files. Also make it possible
7788 to customize the path used by groff.sh.
7790 * eqn/eqn.y: Make `left' right associative.
7792 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
7794 * pic/pic.h: Added definition of M_SQRT2 for those systems that
7797 * pic/pic.h: Removed definition of INT_MAX.
7799 * troff/node.c (italic_corrected_node::vertical_extent): Omit
7802 * troff/input.c (token::next): Handle \R like \n.
7804 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
7806 * ps/tmac.pc (PSPIC): Simplify.
7808 * troff/env.c (tab_stops::to_string):
7809 * pic/pic.y (object_type_name):
7810 * pic/troff.c (simple_output::line):
7811 * pic/tex.c (tex_output::spline):
7812 * pic/object.c (object_spec::make_object):
7813 * tbl/main.c (process_data): Add cases to switch statements to
7814 avoid cfront warnings. (Some of these are spurious, since the
7815 switch already has a default case.)
7817 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
7818 `ps-'. Don't test systat; instead check number of arguments to
7821 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
7823 * macros/tmac.e: Do not decrease the page offset by 0.5i.
7825 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7826 Unlink the file as soon as we have opened it, so that we don't
7827 have to bother with signal handlers.
7829 (fatal_error_exit): Deleted.
7830 (main): Don't call signal.
7832 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7834 * dvi/devdvi/Makefile: Use the -k option with S and MI.
7836 * pic/pic.y: If there is a label, or an nth construction before
7837 the first `.' in the argument to `with', ignore it and generate a
7839 * pic/lex.c (lex_warning): New function.
7841 * tbl/table.c (table::init_output): In section keep and release
7842 macro, use 0 indent when diverting and the correct indent when
7845 * troff/input.c (interpolate_number_format): Do not interpolate
7846 anything if the number register is not defined.
7848 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7850 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
7852 * ps/devps/prologue (PICTURE): Set components of graphics state to
7853 their default values.
7855 * ps/devps/text.enc: Add trademark
7856 * ps/devps/textmap: Add names for club, spade, heart, diamond,
7857 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7858 * ps/devps/symbolchars: Add names for summation and product.
7860 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7861 suchthat. Add pp. Add upper-case letters.
7863 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7864 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7867 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7868 rA (right angle bracket) to ra. Introduce names for double-headed
7869 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7870 * ps/devps/textmap: Likewise for ps device.
7871 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7872 * tty/devascii/R.proto: Rename lA to la and rA to ra.
7873 * tty/devascii/R.proto: Likewise.
7874 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7876 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7878 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7880 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7883 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
7885 * troff/div.c (when_request): Use symbol::is_null rather than
7886 has_arg to determine whether we have an argument.
7887 (change_trap): Remove the trap if we get an invalid number. Give
7888 an error if we don't get at least the macro name.
7889 (diversion_trap): Remove trap if we get an invalid name or number.
7891 * troff/env.c (environment_switch): Pop if we get an invalid
7892 symbol or numeric expression.
7894 * troff/input.c (do_define_macro): If EOF is encoutered while
7895 defining the macro, do tok.next() before returning.
7897 * troff/token.h (has_arg): Move definition from here, to ...
7898 * troff/input.c (has_arg): ... here
7900 * troff/env.c (space_size): Do nothing if we get an invalid argument.
7901 * troff/input.c (shift): Likewise.
7903 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
7906 * pic/troff.c (troff_output::start_picture): Comment out calls to
7909 * eqn/main.c (do_file): Subtract 1 from current_lineno if
7910 interpret_lf_args succeeds.
7912 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7913 \\. This avoids problems with \$N.
7915 * groff.sh: Pass -C to preprocessors.
7917 * lib/lf.c (interpret_lf_args): Be more flexible.
7919 * tbl/main.c (main): Add -C option.
7920 (table_input::get): Do not recognize TE if followed by character
7921 other than a space or newline unless -C option given.
7922 (process_input_file): Likewise for lf, TS.
7923 (process_data): Likewise for lf in text blocks.
7925 * eqn/main.c (main): Add -C option.
7926 (do_file): Don't recognize EQ, EN or lf if followed by character
7927 other than space or newline unless -C option given.
7928 * eqn/lex.c (file_input::read_line): Similarily.
7929 * eqn/eqn.h: Declare compatible_flag.
7931 * etc/soelim.c (main): Add -C option.
7932 (interpret_lf_args): Use version in libgroff.
7935 * pic/main.c (main): Add -C option, which sets compatible_flag.
7936 (top_input::get), (top_input::peek): If -C option not given,
7937 do not recognize .PS/.PE/.PF/.lf if followed by a character
7938 other than space or newline.
7939 * pic/lex.c (file_input::read_line): Similarily.
7940 * pic/pic.h: Add declaration of compatible_flag.
7942 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
7944 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7946 * troff/node.c, troff/node.h: Add `asciify' methods to classes
7947 derived from node. New class space_char_hmotion_node.
7948 * troff/input.c (asciify_macro): New function.
7949 * troff/input.c (init_input_requests): New request `asciify' bound
7951 * macros/mm.diff: New file.
7952 * Makefile: In install.mm target use `patch' to apply
7955 * troff/input.c (macro::print_size): Just print the size in bytes.
7957 * troff/div.c (return_request): Correct the argument
7960 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
7962 * troff/node.h (class composite_node): Add sz member.
7963 * troff/node.c (composite_node::size): Return sz.
7964 * troff/input.c (macro_to_node): Use the initial size in the
7965 environment as the size of the composite_node.
7967 * troff/node.c (node::zero_width_tprint): Provide a reasonable
7970 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
7972 * troff/div.c (change_trap): If we get a bad number expression,
7975 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
7977 * lib/matherr.c (matherr): Define this only if math.h defines
7980 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
7982 * troff/div.c (macro_diversion::distance_to_next_trap): If there
7983 no diversion trap return vunits(INT_MAX - vresolution).
7985 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
7987 * troff/input.c (do_zero_width): New implementation that doesn't
7988 use a temporary environment. Use instead:
7989 (token::add_to_node_list): New function.
7990 * troff/env.c (environment::get_prev_char_height),
7991 (environment::get_prev_char_height),
7992 (environment::get_prev_char_skew): New functions.
7993 (environment::get_prev_char): New function.
7994 (environment::get_prev_char_width): Change to use get_prev_char.
7995 (init_env_request): Implement new registers .cht, .cdp, .csk.
7996 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7997 \Z being processed in a separate environment.
7999 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
8001 * tbl/table.c: Removed TABLE_BOTTOM_REG.
8003 * tbl/table.c (table::init_output): In the section release macro,
8004 give a warning message if the section won't fit on one page.
8006 * tbl/table.c (table::do_top): Emit table keep only if table is
8008 (table::do_bottom): Likewise for table release.
8009 (table::table), (table::add_vertical_rule): Remove reference to
8011 * tbl/table.h: Remove keep member.
8013 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
8014 SECTION_RELEASE_MACRO, if there's not enough space before the next
8015 trap to output the diversion, call T# ourselves, set
8016 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
8017 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
8018 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
8019 vertical position and return to it before turning traps on again.
8021 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
8023 * troff/node.c, troff/node.h: In classes derived from node,
8024 replace prev_char_width method by last_char_node method.
8025 * troff/env.c (environment::get_prev_char_width): Use
8026 node::last_char_node rather than node::get_prev_char_width.
8028 * Makefile: Added comment about -fno-inline on 68030-based
8031 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
8032 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
8033 expressions using sizeof to int.
8034 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
8036 * macros/tmac.e (TS): Don't move @f back past the current
8039 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
8041 * ps/ps.c (main): Buffer stderr.
8042 * dvi/dvi.c (main): Likewise.
8043 * tty/tty.c (main): Likewise.
8045 * ps/ps.c (ps_printer::do_import): Improve error handling.
8047 * troff/input.c (abort_request): Use asciify.
8049 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
8050 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
8051 type of first argument int rather than char. This works around a
8052 bug on the 68030 based Apollo using g++ 1.37.1.
8054 * tbl/table.h (class table): Add `keep' member.
8055 * tbl/table.c (table::table): Initialize `keep'.
8056 (table::add_vertical_rule): Set `keep' to 1.
8057 (table::do_top): Only emit table keep macro is `keep' is non-zero.
8058 (table::do_bottom): Likewise for table release macro.
8059 (table::do_row): Emit section keep macro even if the row is 0.
8061 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
8063 * macros/tmac.e (@C): Preserve the font family across the change
8066 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
8068 * lib/font.c: Initialize font::hor and font::vert to 1.
8069 (font::load_desc): Check the values of font::hor and font::vert.
8071 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
8072 be included in a C compilation.
8073 (iftoa): Use INT_DIGITS. Include lib.h.
8075 (as_string): Likewise.
8076 * tbl/table.c: Removed definition of INT_DIGITS.
8077 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
8078 * troff/input.c (input_input_requests): Likewise.
8079 * ps/ps.c (make_encoding_name): Likewise.
8080 (ps_printer::set_style): Likewise.
8081 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
8083 * tty/devascii/R.proto: Map fm onto '.
8084 * tty/devlatin1/R.proto: Likewise.
8086 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
8088 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
8089 argument to \w is at a different input level.
8091 * tbl/table.c (table::init_output): Define a new macro
8092 REPEATED_VPT_MACRO, like vpt but if in a diversion also
8093 transparently outputs itself.
8094 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
8096 (table::do_row): Likewise.
8098 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
8099 TRANSPARENT_STRING_NAME.
8101 * tbl/table.c (table::init_output): In the table release macro
8102 print an error message and don't produce any output if after
8103 issuing the need request the table still will not fit. Also
8104 remove the diversion after bringing it back.
8106 * tbl/table.c (table::init_output): Define a new macro
8107 REPEATED_MARK_MACRO, like mk but if in a diversion also
8108 transparently outputs itself.
8109 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
8110 is necessary because .TH might not call .T#.
8111 (table::do_top): Likewise TOP_REG.
8112 (table::define_bottom_macro): If TOP_REG is no longer valid, use
8113 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
8114 table header might contain just the two top rules.
8116 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
8118 * troff/div.c: Implement new request `ptr' to print all traps.
8120 * troff/env.c (init_env_requests): Implement `.tabs' reg with
8121 init_string_env_reg.
8122 * troff/env.c (class tab_reg): Deleted.
8124 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
8126 * troff/div.c: New number register .pn returns the number of the
8127 next page as set by the pn request.
8129 * macros/tmac.an: Redid headers and footers. Number each manual
8130 entry starting from 1 unless \nC is > 0, like Sun. Added an
8131 optional 5th argument to .TH which specifies the manual name and
8132 appears in the center of the header. Understand the X, P and D
8135 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
8137 * troff/env.c (init_env_requests): New number register `.lt' to
8138 return the title length.
8140 * troff/node.h (class transparent_dummy_node): New class.
8141 * troff/node.c (class transparent_dummy_node): Provide member
8143 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
8146 * troff/input.c (token::next): New escape sequence \).
8147 * troff/input.c (get_copy): Recognize \) in copy mode.
8149 * troff/input.c (input_stack::clear): New function.
8150 * troff/input.c (exit_request): Use input_stack::clear.
8152 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
8153 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
8155 * troff/env.c: Move set_page_character to input.c. Move
8156 page_character to input.c also.
8157 * troff/env.c (title): Split off the reading of the parts of the
8158 title into read_title_parts.
8159 * troff/input.c (read_title_parts): New function. Check the
8160 input_level when testing whether a token matches the delimiter.
8162 * troff/input.c (exit_request): New function.
8163 * troff/input.c (init_input_requests): Bind ex request to
8164 exit_request rather than exit_groff.
8166 * troff/input.c (exit_groff): Call tok.next() before
8167 process_input_stack().
8169 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
8171 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
8172 * troff/env.h: ditto.
8173 * troff/input.c: ditto.
8175 * troff/env.c (environment::is_empty): Test pending_lines.
8177 * troff/env.c (environment::have_pending_lines): Removed.
8179 * troff/input.c: Add request to flush pending lines from the
8182 * troff/env.c, troff/env.h: Add automatic widow control feature.
8184 * troff/input.c (exit_groff): Do process_input_stack() after
8185 do_break() but before setting exit_flag to 2.
8187 * troff/input.c: Remove FLUSH_PENDING_LINES and
8188 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
8189 environment after END_TRAP token seen, but only if there aren't
8190 any more traps still unfinished.
8191 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
8193 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
8195 * troff/env.c: Rename the `retain_size' member of class
8196 pending_output_line to `no_fill'.
8198 * troff/env.c (title): When the line is output, make the
8199 retain_size argument !fill.
8201 * troff/node.h: Add `hyphenated' member to struct breakpoint.
8202 * troff/node.c (space_node::get_breakpoints),
8203 (dbreak_node::get_breakpoints): Fill this in.
8204 * troff/env.c: Allow specification of maximum number of
8205 consecutive hyphenated lines.
8207 * troff/env.c (environment::is_empty): Add test for !current_tab.
8209 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
8211 * troff/env.c (environment::hyphenate_line): Don't completely give
8212 up if the word is not to be hyphenated; continue so that breaks
8213 can be made at break_char_node's.
8215 * lib/lib.h: Only define INT_MAX if it's not already defined;
8216 undef INT_MIN if it's already defined.
8218 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
8220 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
8221 This works around a bug in AT&T C++ 2.0 used with an ANSI C
8224 * macros/tmac.an (an-header): Set no-space mode.
8226 * macros/tmac.an (TH): Start a new page if necessary.
8228 * Started using ChangeLog at version 0.4.
8231 version-control: never