1 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
3 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
5 2000-12-13 Werner LEMBERG <wl@gnu.org>
7 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8 * src/preproc/eqn/neqn.man: Small fixes and additions.
10 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
12 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
15 * src/preproc/eqn/neqn.man: New file.
17 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
20 * tmac/e.tmac: Add `.T&' macro.
21 Fix `indent cannot be negative' warning.
22 * tmac/s.tmac: Fix `indent cannot be negative' warning.
24 2000-12-07 Werner LEMBERG <wl@gnu.org>
26 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
28 2000-12-06 Werner LEMBERG <wl@gnu.org>
30 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
33 * MORE.STUFF: Added info about deroff for djgpp.
35 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
36 documentation of -rcR switch
38 2000-12-03 Werner LEMBERG <wl@gnu.org>
40 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
41 if -rcR=1 (which is now the default in nroff mode), a single, very
42 long page is created instead of multiple pages: All `.ne' and `.wh'
43 requests are put into conditionals; a new macro `an-end' is added to
46 Some other minor cleanups.
48 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
50 2000-12-02 Werner LEMBERG <wl@gnu.org>
52 Fixing a bug which prevented hyphenation in words followed
53 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
55 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
56 Adding possibly_break_line().
57 * src/roff/troff/env.h (environment): Make possibly_break_line()
60 Make `\~' usable in .tr request.
62 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
63 (token): Add stretchable_space().
64 * src/roff/troff/input.cc (token::next, token::delimiter,
65 token::description, process_input_stack, do_translate,
66 add_to_node_list, token::process): Use it.
67 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
68 for adjusting the space.
69 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
70 for stretchable space.
71 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
72 (make_node): Add code for stretchable space.
73 * src/roff/troff/env.cc (environment::add_char): Use it.
74 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
75 (get_copy, token::next, transparent_translate, asciify): Use it.
77 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
78 doc/groff.texinfo: Updated.
79 * man/groff.man: Small reorderings.
81 2000-11-23 Werner LEMBERG <wl@gnu.org>
84 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
86 * src/roff/troff/input.cc (main): Add `config_macro_path' and
87 `safer_macro_path' to -M option.
88 * src/roff/troff/troff.man: Fixes.
90 2000-11-22 Werner LEMBERG <wl@gnu.org>
92 Use safer path (except for config files) if -U isn't specified. Add
93 a special macro path (without home and current directory) for config
94 files. Add home directory to unsafe path for consistency. Don't
95 include the home directory in the font path.
97 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
99 * src/include/macropath.h: Add `config_macrp_path'.
100 * src/lib/libgroff/fontfile.cc: Fix font path.
101 * src/roff/troff/input.cc (process_startup_file): Use
103 (main): Select unsafe path if -U is given.
105 * src/preproc/eqn/main.cc (main): Fixing search path for
107 * src/preproc/eqn/eqn.man: Updated.
109 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
112 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
113 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
114 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
115 src/devices/grotty/grotty.man: Updated.
117 * Makefile.in: Fix comments.
119 2000-11-17 Werner LEMBERG <wl@gnu.org>
121 * tmac/safer.tmac: Empty file added (again) for compatibility
123 * tmac/Makefile.sub: Updated.
125 2000-11-16 Werner LEMBERG <wl@gnu.org>
127 * src/devices/grodvi/dvi.cc (main),
128 src/devices/grohtml2/post-html.cc (main),
129 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
130 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
131 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
132 (main), src/preproc/html2/pre-html.cc (main),
133 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
134 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
135 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
136 (main), src/utils/hpftodit/hpftodit.cc (main),
137 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
138 (main), src/utils/lookbib/lookbib.cc (main),
139 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
140 (main): Use stdout for -v.
141 * src/roff/groff/groff.cc (run_commands),
142 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
143 to make direct printing to stdout possible.
144 * src/roff/groff/pipeline.h: Updated.
146 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
147 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
148 * src/utils/afmtodit/afmtodit.man: Updated.
150 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
151 (version): New function.
153 * src/utils/addftinfo/addftinfo.man: Updated.
155 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
156 Fixing copyright dates.
158 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
161 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
164 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
166 2000-11-15 Werner LEMBERG <wl@gnu.org>
168 In all programs, make -v return immediately with exit status 0 to
169 be compliant with the GNU standard.
171 * src/devices/grodvi/dvi.cc (main),
172 src/devices/grohtml2/post-html.cc (main),
173 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
174 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
175 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
176 (main), src/preproc/html2/pre-html.cc (main),
177 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
178 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
179 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
180 (main): Implement it.
183 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
184 and postprocessors to the -v option.
186 * src/roff/grog/grog.pl: Implement -v.
187 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
188 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
190 * src/roff/nroff/nroff.sh: Implement -v.
191 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
192 * src/roff/nroff/nroff.man: Updated.
194 * src/preproc/eqn/main.cc (main): Fix comment typo.
196 * MORE.STUFF: Added info about djgpp port of grap.
198 2000-11-14 Werner LEMBERG <wl@gnu.org>
200 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
201 mode (or rather, implemented non-compatibility mode).
202 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
204 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
205 replacing it -- we don't find gxditview otherwise.
206 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
208 * src/preproc/pic/depend: Removed. Unnecessary.
210 Implemented dummy keyword `solid' in pic for compatibility with
213 * lex.cc (lookup_keyword): Added `solid'.
214 * pic.y: Added SOLID with dummy rule.
215 * pic.cc, pic_tab.h: Regenerated.
216 * doc/pic.ms: Updated.
218 2000-11-13 Werner LEMBERG <wl@gnu.org>
220 For security reasons, don't use the current directory but the home
221 directory while searching and scanning troffrc and troffrc-end.
222 Similarly, replace the current directory with the home directory
225 * Makefile.in (fontpath, tmacpath): Remove current directory.
227 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
228 two parameters `add_home' and `add_current'.
229 (search_path::~search_path, search_path::command_line_dir,
230 search_path::open_file): Remove tests for `dirs' being zero.
231 * src/include/searchpath.h: Adjust.
232 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
234 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
236 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
237 * src/roff/troff/input.cc: Use `mac_path', initialized with
239 (process_startup_file): Set `mac_path' to `safer_macro_path'.
240 * src/roff/troff/env.cc: Use `mac_path'.
242 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
244 * NEWS, man/roff.man, src/roff/troff/troff.man,
245 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
248 2000-11-12 Werner LEMBERG <wl@gnu.org>
250 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
252 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
253 * configure.in: Fix typo in comment.
254 * configure: Regenerated.
256 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
259 2000-11-08 Werner LEMBERG <wl@gnu.org>
261 Add system tmac directory (/usr/local/lib/groff/site-tmac).
263 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
264 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
267 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
268 * tmac/Makefile.sub (install_data): Create
269 $(systemtmacdir) and $(localtmacdir).
270 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
271 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
272 NEWS, doc/groff.texinfo: Updated and minor fixes.
274 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
275 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
276 $(systemtmacdir) since the wrapper files are platform-dependent.
278 2000-11-01 Werner LEMBERG <wl@gnu.org>
280 * doc/groff.texinfo: Fix typo.
282 2000-10-26 Werner LEMBERG <wl@gnu.org>
284 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
285 tmac.doc.old -> doc-old.tmac
286 tmac.an.old -> an-old.tmac
288 * tmac/tmac.*: Moved to ...
290 * tmac/man.local: Fix comment.
291 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
292 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
293 Added some `FILES' sections. More use of @...@ directives. Other
295 * arch/djgpp/README, font/devutf8/NOTES: Updated.
296 * doc/homepage.ms, doc/groff.texinfo: Updated.
297 * man/groff.man, man/roff.man: Updated.
298 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
299 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
300 src/devices/grotty/grotty.man: Updated.
301 * src/preproc/pic/pic.man: Updated.
302 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
303 instead of -mdoc.old.
304 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
305 * src/roff/nroff/nroff.man: Updated.
308 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
310 * tmac/mm.diff: Removed -- it has no use now since the mm package
313 * tmac/*: Removed trailing spaces.
315 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
316 the tmac subdirectory also).
318 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
319 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
320 stuff since it is no longer needed.
322 * README, PROBLEMS: Updated.
324 2000-10-25 Werner LEMBERG <wl@gnu.org>
326 Invert current behaviour: Search first FOOBAR.tmac, then
329 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
330 (open_mac_file, macro_source): Implement it.
331 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
332 doc/groff.texinfo, NEWS: Document it.
334 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
335 Small documentation improvements.
337 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
340 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
342 2000-10-24 Werner LEMBERG <wl@gnu.org>
344 Add local tmac directory (groff/site-tmac).
346 * Makefile.in: Add $(localtmacdir).
347 (uninstall_dirs): Add $(localtmacdir).
348 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
349 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
350 in $(localtmacdir). Create $(localtmacdir).
351 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
352 Updated and minor fixes.
354 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
356 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
358 2000-10-23 Werner LEMBERG <wl@gnu.org>
360 Move hyphen.us to tmac directory.
362 * src/roff/troff/hyphen.us: Removed.
363 * src/tmac/hyphen.us: Added.
364 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
366 Change installation structure for data files from .../groff/... to
367 .../groff/<version><revision>/... to be conform with other GNU
370 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
371 doc/Makefile: Implement it.
372 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
373 * configure: Updated.
374 * arch/djgpp/README, font/devutf8/NOTES: Use it.
376 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
377 @MACRODIR@ instead of hard-coded directories.
379 2000-10-22 Werner LEMBERG <wl@gnu.org>
381 Implement $GROFF_BIN_PATH environment variable (which defaults to
382 $bindir) used for child programs of groff and similar wrappers.
384 * gendefs.sh: Improve documentation.
385 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
386 src/preproc/eqn/Makefile.sub (neqn),
387 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
388 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
390 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
391 $GROFF_PATH__ (the latter for communication with troff).
392 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
394 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
395 doc/groff.texinfo: Document it.
397 * doc/groff.texinfo: Improve documentation of troff's -a option.
399 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
401 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
402 non-intrusive eol marker.
403 (troff_output_file::determine_line_limits): New function.
404 (troff_output_file::draw): Use it.
405 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
406 output_pending_lines() instead of output_line().
407 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
408 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
409 createImage): Small fixes.
411 2000-10-14 Werner LEMBERG <wl@gnu.org>
413 Replace tmac.safer with a real secure solution.
415 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
416 system_request, pipe_output): Disable requests if in safer mode.
417 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
418 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
419 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
420 doc/groff.texinfo, src/roff/groff/groff.man,
421 src/roff/troff/troff.man, arch/djgpp/README: Updated.
423 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
424 (resource_manager::output_prolog): Replace setenv() with putenv().
426 2000-10-09 Werner LEMBERG <wl@gnu.org>
428 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
429 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
430 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
431 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
432 compilation errors with some compilers. It seems that this code
433 is no longer necessary -- if yes, it is easy to add some #ifdef's
434 for that particular old-fashioned compiler.
436 * MORE.STUFF: Added info about Meta-tbl.
438 * doc/groff.texinfo: Added more info about `.if "..."..."'.
440 2000-10-07 Werner LEMBERG <wl@gnu.org>
442 Adding a new escape sequence \B'...': If the string between
443 the delimiters is a valid numeric expression, return the character
444 `1', and `0' otherwise. This is an analogon to \A.
446 * src/roff/troff/input.cc (do_expr_test): Implement it.
447 (token::next): Use it.
448 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
450 * tmac/tmac.trace: Made independent from escape character.
452 2000-10-06 Werner LEMBERG <wl@gnu.org>
454 Adding a new request .dei: define indirect. The first and second
455 parameter of .dei are taken from string registers instead directly;
456 this very special request is needed to make tmac.trace independent
457 from the escape character (which might even be disabled).
459 * src/roff/troff/input.cc (do_define_macro): Implement it.
460 (define_macro_indirect): New function.
461 (init_input_requests): Use it.
463 Adding two requests .ecs and .ecr: Save and restore the escape
464 character. These two requests are needed to make tmac.trace
465 independent from the escape character (which might even be
468 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
470 (init_input_requests): Use it.
472 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
474 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
476 Adding a new option -P and new environment variable GROPS_PROLOGUE
477 to grops, selecting a different prologue file (minor modifications
480 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
481 src/devices/grops/ps.cc (main): Implement it.
482 * src/devices/grops/grops.man, NEWS: Document it.
484 2000-09-22 Werner LEMBERG <wl@gnu.org>
486 * INSTALL: Add info about selecting paper format.
488 2000-09-21 Werner LEMBERG <wl@gnu.org>
490 * src/roff/troff/input.cc (main): Fixing compiler warning.
491 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
492 strings.h from the former to the latter.
493 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
494 stuff from the former to the latter.
496 2000-09-11 Werner LEMBERG <wl@gnu.org>
498 Implementing two new requests .tm1 and .tmc: The former is similar
499 to .tm but can output leading spaces; its syntax is similar to
500 defining a string, i.e., a `"' can be used to mark the beginning of
501 the string to be written to stderr: `.tm1 " test'. The latter is
502 similar to .tm1 but doesn't write out a final newline character.
504 * src/roff/troff/input.cc (terminal1, terminal_continue,
505 do_terminal): New functions.
506 (init_input_requests): Use them.
507 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
509 2000-09-09 Werner LEMBERG <wl@gnu.org>
511 * tmac/groff_mdoc.samples.man: Small fixes.
513 2000-09-08 Werner LEMBERG <wl@gnu.org>
515 * tmac/groff_mdoc.man: Fixing typo.
517 2000-09-02 Werner LEMBERG <wl@gnu.org>
519 Implementing a .nop request which does nothing.
521 * src/roff/troff/input.cc (nop_request): New function.
522 (init_input_requests): Use it.
523 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
525 2000-09-01 Werner LEMBERG <wl@gnu.org>
527 * doc/groff.texinfo: Added some comments.
529 2000-08-30 Werner LEMBERG <wl@gnu.org>
531 * src/roff/troff/TODO: Updated.
533 2000-08-28 Bruno Haible <haible@clisp.cons.org>
535 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
538 2000-08-25 Werner LEMBERG <wl@gnu.org>
540 * doc/groff.texinfo: Fix comment how to compile the DVI file.
542 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
544 * font/devps/generate/Makefile (SHELL): Define explicitly to
545 "/bin/sh", for non-Unix platforms.
546 (extraclean): Use a more portable "" quoting instead of a
547 backslash (which doesn't work on DOS/Windows).
549 * font/devlj4/generate/Makefile (extraclean): Ditto.
551 * font/devdvi/generate/Makefile (extraclean): Ditto.
553 2000-08-25 Werner LEMBERG <wl@gnu.org>
555 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
556 src/roff/troff/troff.man: Document Eli's latest changes.
558 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
560 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
561 macro file names of the form NAME.tmac as well as tmac.NAME.
563 2000-08-25 Werner LEMBERG <wl@gnu.org>
565 * src/include/posix.h: Remove definition of FILENAME_MAX.
567 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
568 `sys_fatal' and `stop' function().
570 * test-groff: Updated.
572 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
574 Added the new troff command .output <arg> to suppress output (while
575 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
576 registers (for passing the output dimensions to the output device).
578 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
580 * src/roff/troff/node.h, src/roff/troff/node.cc
581 (troff_output_file::really_print_line,
582 ascii_output_file::really_print_line,
583 supress_output_file::really_print_line): Use `width' parameter.
584 (troff_output_file::really_on, troff_output_file::really_off,
585 output_file::on, output_file::off, real_output_file::on,
586 real_output_file::off, real_output_file::really_on,
587 real_output_file::really_off): New functions.
588 (real_output_file:public output_file): New variable `output_on'.
589 (real_output_file::begin_page, real_output_file::copy_file,
590 real_output_file::transparent_char, real_output_file::print_line):
592 (real_output_file::print_line): Use check_output_limits.
593 * src/roff/troff/reg.h, src/roff/troff/request.h,
594 src/roff/troff/input.cc (assign_registers): New function to remove
596 (do_ps_file): Use it.
597 (check_output_limits, reset_output_registers, output_request,
598 init_output_requests): New functions.
599 (init_input_requests): Updated.
601 Added new grohtml2 device and html2 preprocessor (coding
602 not yet finished) which will eventually replace grohtml.
604 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
606 * src/include/htmlindicate.h, src/include/htmlindicate
607 (html_begin_suppress, html_end_suppress): New functions.
608 * src/preproc/tbl/main.cc: Use it.
609 * src/roff/groff/groff.cc: Add support for html2 device (which will
610 automatically invoke the html2 preprocessor).
611 * src/roff/troff/input.cc (is_html2): New variable.
612 * src/roff/troff/troff.h, src/roff/troff/env.h,
613 src/roff/troff/env.cc (environment::add_html_tag): New function
615 (environment::do_break): Use it.
616 * font/devhtml2/*: New files.
617 * src/devices/grohtml2: New device.
618 * src/preproc/html2: New preprocessor.
619 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
621 2000-08-23 Werner LEMBERG <wl@gnu.org>
623 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
625 2000-08-22 Werner LEMBERG <wl@gnu.org>
627 * src/include/lib.h: Provide a fix for IRIX to not include
630 2000-08-18 Werner LEMBERG <wl@gnu.org>
632 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
633 since some non-GNU sed programs can't handle null regexps.
634 * configure, src/preproc/eqn/Makefile.sub,
635 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
637 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
638 bug (string.h and strings.h are both needed according to latest
641 * MORE.STUFF: Added info about unroff and troffcvt.
643 2000-08-08 Werner LEMBERG <wl@gnu.org>
645 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
648 * tmac/tmac.man.old: Remove unused number register.
650 * tmac.doc: Minor documentation fix.
652 2000-08-07 Paul Eggert <eggert@twinsun.com>
654 * src/roff/groff/pipeline.c (is_system_shell):
655 Fix typo: "monocased_shell" no longer exists.
657 2000-08-07 Paul Eggert <eggert@twinsun.com>
659 Remove FILENAME_MAX limits.
661 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
662 that the argument length is less than FILENAME_MAX.
663 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
664 Use struct hack to allocate and free file name.
665 (struct xtmpfile_list): fname is now part of the structure,
666 not a pointer to another string.
668 2000-08-07 Tom Schmidt <tschmidt@micron.com>
670 * src/include/posix.h: Add a default value for FILENAME_MAX.
672 2000-08-06 Paul Eggert <eggert@twinsun.com>
674 Add support for new BSD-style man pages (with ".Dd" instead of
675 ".TH"), so that "groff -man" understands both styles, even
676 when running "groff -man" on a host whose system man page
677 macros don't support ".Dd".
679 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
680 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
681 in case the system man macros don't define Dd or TH.
683 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
684 * tmac/tmac.an: New one-line file.
685 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
687 2000-08-06 Werner LEMBERG <wl@gnu.org>
689 * src/roff/troff/troff.man: Fixing typos.
691 Version 1.16.1 released
692 =======================
694 2000-07-31 Werner LEMBERG <wl@gnu.org>
696 Preparing release 1.16.1.
698 * REVISION: Revision number set to 1.
699 * MORE.STUFF: Added info about port to DOS.
700 * NEWS, win32-diffs: Updated.
702 * src/include/nonposix.h: Remove first line -- this file is used
705 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
708 2000-07-30 Werner LEMBERG <wl@gnu.org>
710 * doc/texinfo.tex: Update to latest version.
712 2000-06-28 Paul Eggert <eggert@twinsun.com>
714 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
715 commands that fail. Don't assume that "export a=b" is valid shell
716 syntax. This is needed for Solaris 2.5.1.
718 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
719 comment about missing Solaris headers.
721 * PROBLEMS: Add section about problems with Sun Make and VPATH.
723 2000-06-25 Werner LEMBERG <wl@gnu.org>
725 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
728 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
730 * win32-diffs: Updated.
731 * README.WIN32: Added CRs to make all Windows editors happy.
733 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
734 src/roff/groff/pipeline.c).
736 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
738 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
739 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
741 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
743 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
744 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
746 (main): Support non-Posix systems with several different styles of
747 slash characters in file names.
749 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
750 (main) [SET_BINARY]: Switch stdin into binary mode.
752 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
753 (main): Support file names with several possible slash-type
754 characters, as given by DIR_SEPS[] in nonposix.h.
755 (main) [__MSDOS__]: If renaming the temporary index file fails
756 because it has more than one dot in its trunk, replace the dot
757 with an underscore and try again.
758 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
760 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
762 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
763 (File::File): Open the input file in binary mode. Strip CR
764 characters from each CR-LF pair.
765 (xbasename): Support file names with several possible slash-type
766 characters, as given by DIR_SEPS[] in nonposix.h.
768 * src/include/Makefile.sub (HDRS): Add nonposix.h.
770 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
771 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
772 [!_POSIX_VERSION]: Define for traditional Unix systems.
773 (real_output_file::real_output_file): Remove the MSVC-specific
774 call to popen, use instead POPEN_WT, appropriately defined on
775 nonposix.h. #include nonposix.h.
776 (real_output_file::~real_output_file): Remove the MSVC-specific
777 call to pclose, a suitable macro is now defined on nonposix.h.
778 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
779 and WEXITSTATUS instead of assuming traditional Unix
780 interpretation of the status returned by pclose.
782 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
783 call to popen, use POPEN_RT instead (appropriately defined on
784 nonposix.h). #include nonposix.h.
785 (ps_bbox_request): Open the PostScript file in binary mode.
786 Close the file after processing it.
787 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
790 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
791 A version of run_pipeline that doesn't use `fork'.
792 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
793 (system_shell_name, system_shell_dash_c)
794 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
795 the ugliness of testing DOS/Windows file names for equality, and
796 support both stock shells and ports of Unix shells.
798 * src/roff/groff/groff.cc: #include nonposix.h.
799 (BSHELL): Definition moved to nonposix.h.
800 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
801 instead of a literal "-c".
802 (xbasename): Support file names with several possible slash-type
803 characters, as given by DIR_SEPS[] in nonposix.h.
804 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
807 * src/preproc/soelim/soelim.cc: #include nonposix.h.
808 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
810 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
813 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
815 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
818 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
820 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
821 P_tmpdir is defined, use it instead of the literal "/tmp".
822 (remove_tmp_files, add_tmp_file): New functions.
823 (xtmpfile): Record temporary files and register an atexit function
824 to delete them explicitly, instead of relying on the OS to do
825 that, which doesn't work on non-Unix systems.
827 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
828 (search_path::search_path): Use PATH_SEP instead of a literal
830 (search_path::command_line_dir): Ditto.
831 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
832 to support non-Posix systems.
834 * src/libc/libbib/search.cc: #include nonposix.h.
835 (search_list::add_file): Open the file in binary mode.
837 * src/libs/libbib/linear.cc: #include nonposix.h.
838 (file_buffer::load): Remove \r characters preceding \n from the
841 * src/libs/libbib/index.cc: #include nonposix.h.
842 (make_index_search_item): Open index_filename in O_BINARY mode.
843 (index_search_item_iterator::get_tag): Ditto. Remove \r
844 characters before \n characters.
845 (index_search_item::check_files): Open files in binary mode.
846 (index_search_item::munge_filename): Support DOS-style file names
847 with backslashes and drive letters, use IS_ABSOLUTE.
849 * src/devices/grops/ps.cc: #include nonposix.h.
850 (main) [SET_BINARY]: Switch stdout to binary mode.
852 * src/devices/grolj4/lj4.cc: #include nonposix.h.
853 (main) [SET_BINARY]: Switch stdout to binary mode.
855 * src/devices/grolbp/lbp.cc: #include nonposix.h
856 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
858 * src/devices/grodvi/dvi.cc: #include nonposix.h.
859 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
861 (main) [SET_BINARY]: Switch stdout to binary mode.
862 [_MSC_VER]: Remove an explicit call to _setmode.
864 * src/include/nonposix.h: New file.
866 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
867 operation when building with DJGPP.
868 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
869 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
872 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
874 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
875 etc. can include a semi-colon on DOS/Windows.
876 (depend.temp): Use depend1.temp instead of depend.temp1, to
877 prevent files from overerwiting each other on 8+3 filesystems.
879 * gendef.sh (t): Change definition to work with DOS/Windows.
881 doc/groff.texinfo: Apart of some typo corrections, I also changed
882 some index entris, to make them more non-ambiguous, and also put
883 @ignore around some parts that are not yet written, to allow the
884 Info output be readable.
886 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
888 Replaced specific checks for function declarations with a generic
889 routine taken from GNU bfd.
891 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
892 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
893 * configure.in: Use it.
894 * src/devices/grolbp/lbp.cc, src/include/lib.h,
895 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
896 src/roff/groff/groff.cc: Use it.
897 * Makefile.in, configure: Updated.
899 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
901 * src/devides/grolbp/lbp.h: Removed unused variables.
903 2000-05-31 Keith Thompson <kst@sdsc.edu>
905 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
908 2000-05-31 Werner LEMBERG <wl@gnu.org>
910 * aclocal.m4 (GROFF_SRAND): New function to test the return value
911 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
912 * configure.in: Use it.
913 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
914 * configure, Makefile.in: Updated.
916 * configure.in: Add test for strncasecmp().
917 * src/include/lib.h: Use it.
919 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
921 * src/preproc/grn/Makefile.sub: Add MLIB.
923 2000-05-29 Nix <nix@esperi.demon.co.uk>
925 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
927 2000-05-29 Werner LEMBERG <wl@gnu.org>
929 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
931 * PROBLEMS: Small update.
933 * src/devices/grolbp/lbp.cc: Various small fixes.
935 2000-05-28 Keith Thompson <kst@sdsc.edu>
937 * src/roff/nroff/nroff.sh: Fix main loop syntax.
939 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
941 2000-05-25 Werner LEMBERG <wl@gnu.org>
943 * man/roff.man: Removed unused macro.
945 2000-05-24 Werner LEMBERG <wl@gnu.org>
947 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
948 This is needed e.g. if you do
949 `make distclean; ./configure; make dist'.
951 Version 1.16 released
952 =====================
954 2000-05-23 Werner LEMBERG <wl@gnu.org>
956 Adding font CWI (constant width italic) to devdvi.
958 * font/devdvi/CWI: New file.
959 * font/devdvi/generate/Makefile: Add generating rule.
960 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
961 tmac/tmac.dvi: Use it.
964 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
965 * font/devlj4/generate/Makefile: Cosmetic changes only.
967 * man/groff.man: Removed most of the redundant description of
968 special characters (which is in groff_char.man). Added font
969 translation CB->CR for devdvi. Other minor fixes.
971 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
972 (registered) symbols.
974 2000-05-22 Werner LEMBERG <wl@gnu.org>
976 * doc/Makefile: Added rule for creating info files.
978 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
980 * font/devdvi/generate/Makefile: Fixed dependencies.
982 * font/devps/*: Regenerated. Heavy changes for Bookman and
983 NewCentury Schoolbook!
984 * font/devps/generate/afmname: Will now run with GNU awk.
985 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
986 * font/devps/generate/Makefile: Cosmetic changes only.
988 2000-05-21 Werner LEMBERG <wl@gnu.org>
990 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
991 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
992 `.SS' now produces a heading with a smaller size than `.SH'.
993 Completely formatted.
994 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
996 * man/groff.man: Improved table appearance. Use of `eo' request
997 to reduce number of doubled backslashes in macro definitions.
998 Replacing `\e' with `\(rs'. Other minor fixes.
1000 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
1001 to have correct line number.
1003 * INSTALL: Small improvement.
1005 2000-05-20 Bernd Warken <bwarken@mayn.de>
1007 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
1010 2000-05-19 Bernd Warken <bwarken@mayn.de>
1012 * man/groff.man: Complete update (with a lot of corrections by WL).
1014 2000-05-18 Werner LEMBERG <wl@gnu.org>
1016 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
1018 * font/*/*: Implement it.
1019 * man/groff_char.man, NEWS: Document it.
1021 * src/include/unix.h: Removed. It isn't used.
1023 * doc/groff.texinfo: Slight improvements.
1025 2000-05-17 Werner LEMBERG <wl@gnu.org>
1027 * README, win32-diffs: Small fixes and improvements.
1029 2000-05-16 Werner LEMBERG <wl@gnu.org>
1031 * FDL: New file (the Free Documentation License version 1.1).
1033 * doc/groff.texinfo: Added many start-up values for gtroff.
1034 Some structural improvements of the source code.
1036 2000-05-15 Werner LEMBERG <wl@gnu.org>
1038 * src/roff/troff/input.cc: Added small comment about troffrc-end.
1039 * src/roff/troff/troff.man: Added info about troffrc-end.
1041 2000-05-14 Werner LEMBERG <wl@gnu.org>
1043 * Makefile.in (EXTRADIRS): Fix typos.
1044 (dist): Handle deletion of old .tar.gz file correctly.
1045 (DISTDIRS): Include all tty output devices.
1047 * doc/groff.texinfo: Adding more cross references; countless other
1050 2000-05-13 Werner LEMBERG <wl@gnu.org>
1052 * MORE.STUFF: Added Robert Marks's utilities.
1054 2000-05-12 Werner LEMBERG <wl@gnu.org>
1056 Added win32 port contributed by Blake McBride
1057 <blake@florida-software.com>.
1059 * README.WIN32, win32-diffs: New files.
1062 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
1063 (tmove, tmove2): Added parentheses to avoid compiler warnings.
1064 (change): Removed unused variables.
1066 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
1067 (savebounds): Changed return value from `int' to `void'.
1068 * src/preproc/grn/hdb.cc: Ditto.
1070 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
1071 final backslash in comment to avoid compiler warning.
1073 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
1075 * doc/groff.texinfo: More fixes.
1077 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
1079 * tmac/tmac.doc: Documentation fix.
1081 2000-05-11 Werner LEMBERG <wl@gnu.org>
1083 * doc/groff.texinfo: Reading the source code shows up a lot of
1084 omissions and incorrect data... More conversion to @Deffn macros.
1086 2000-05-10 Werner LEMBERG <wl@gnu.org>
1088 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
1091 * src/roff/troff/request.h: Removing unused `no_break_flag'.
1093 2000-05-09 Werner LEMBERG <wl@gnu.org>
1095 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
1098 * doc/groff.texinfo: Extended history section. More conversion to
1099 @Deffn macros. More .tr documentation.
1101 2000-05-07 Werner LEMBERG <wl@gnu.org>
1103 * doc/groff.texinfo: Completed tab section. Added info about
1106 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
1108 * PROBLEMS: Describe configure script fix for OS/390 Unix.
1110 2000-05-05 Werner LEMBERG <wl@gnu.org>
1112 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
1114 * NEWS: Document it.
1116 * man/troff.man: Minor optical improvements.
1118 2000-05-03 Werner LEMBERG <wl@gnu.org>
1120 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
1122 * font/*/*: Implement it.
1123 * man/groff_char.man, NEWS: Document it.
1125 2000-05-02 Werner LEMBERG <wl@gnu.org>
1127 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
1129 * NEWS: Document the three new man pages.
1131 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
1132 * configure: Updated.
1134 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
1136 2000-05-01 Werner LEMBERG <wl@gnu.org>
1138 Added grap support to grog.
1140 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
1141 * src/roff/grog/grog.man: Document it.
1143 * doc/groff.texinfo, NEWS: Add info about grap support.
1145 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
1146 (with slight fixes by me).
1148 * tmac/groff_tmac.man: New file documenting tmac mechanism.
1149 * tmac/Makefile.sub: Add groff_tmac.man.
1150 * man/roff.man: New file giving overview of roff system.
1151 * man/troff.man: A short reference of troff.
1152 * man/Makefile.sub: Add roff.man and troff.man.
1154 2000-04-30 Werner LEMBERG <wl@gnu.org>
1156 Added grap support to groff.
1158 * src/roff/groff/groff.cc: Implement it.
1159 * src/roff/groff/groff.man: Document it.
1161 * src/devices/grotty/grotty.man: Add cp1047 device.
1162 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
1164 * src/roff/groff/groff.man: Ditto.
1165 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
1166 * doc/groff.texinfo: Ditto.
1168 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
1171 2000-04-29 Werner LEMBERG <wl@gnu.org>
1173 * man/groff_char.man: Add `pc' glyph.
1174 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
1175 * tmac/tmac.tty: Add `pc' glyph.
1176 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
1177 we use cp1047 output device.
1179 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
1180 there are still hardcoded latin1->unicode values in utf8's font
1182 * configure: Updated.
1183 * NEWS: Minor clarification. Updated.
1185 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
1188 2000-04-28 Werner LEMBERG <wl@gnu.org>
1190 Adding EBCDIC code page 1047.
1192 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
1193 font/devcp1047/DESC.proto: New files.
1195 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
1196 either ascii/latin1 or cp1047.
1197 * Makefile.in: Use it.
1198 * configure: Updated.
1200 Replacing and/or adding `md' (mathdot) glyph with `pc'
1201 (periodcentered) in all text fonts.
1203 * font/*/*: Change it.
1205 2000-04-27 Werner LEMBERG <wl@gnu.org>
1207 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
1209 * configure.in: Add check for strings.h.
1210 * src/include/driver.h: Use HAVE_STRINGS_H.
1211 * src/devices/grolbp/lpb.cc: Remove string.h.
1213 * src/include/groff-getopt.h: New file. It will be used instead of
1214 getopt.h (to be included in lib.h) to avoid endless problems with
1215 picky C++ compilers.
1216 * src/include/lib.h: Use groff-getopt.h.
1217 * src/include/Makefile.sub: Updated.
1219 * configure: Updated.
1220 * Makefile.in: Updated.
1222 * NEWS: Mention EBCDIC support.
1224 2000-04-26 Werner LEMBERG <wl@gnu.org>
1226 * TODO: Some additions.
1228 2000-04-25 Werner LEMBERG <wl@gnu.org>
1230 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
1233 2000-04-23 Werner LEMBERG <wl@gnu.org>
1235 * src/roff/troff/troff.man: Minor fixes.
1237 2000-04-22 Werner LEMBERG <wl@gnu.org>
1239 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
1240 `.T' string register and the incompatible definition of the `.T'
1241 number register (compared to Unix troff).
1243 * man/groff_char.man: Add some missing characters.
1244 * font/devutf8/NOTES: Update.
1246 2000-04-21 Werner LEMBERG <wl@gnu.org>
1248 * src/include/htmlindicate.h, src/include/lib.h,
1249 src/include/posix.h: Fix copyright.
1251 * src/include/Makefile.sub: Update.
1253 2000-04-20 Werner LEMBERG <wl@gnu.org>
1255 * src/roff/troff/input.cc (input_char_description): Removing
1256 superfluous space char.
1258 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
1260 * doc/groff.texinfo: Document EBCDIC.
1262 2000-04-19 Werner LEMBERG <wl@gnu.org>
1264 Introducing `shc' as the glyph name for the soft hyphen character.
1266 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
1267 font/devlatin1/R.proto: Use it.
1271 2000-04-18 Werner LEMBERG <wl@gnu.org>
1273 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
1274 dependency on ASCII order.
1276 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
1278 * src/libs/libgroff/illegal.c: Added EBCDIC table.
1279 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
1281 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
1282 to increase portability.
1284 2000-04-15 Werner LEMBERG <wl@gnu.org>
1286 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
1287 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
1288 the generic `\n' if under OS/390 Unix.
1290 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
1292 * configure: Regenerated.
1294 2000-04-14 Werner LEMBERG <wl@gnu.org>
1296 * doc/groff.texinfo: More conversions to @Deffn.
1298 2000-04-12 Werner LEMBERG <wl@gnu.org>
1300 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
1303 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
1305 2000-04-10 Werner LEMBERG <wl@gnu.org>
1307 * doc/groff.texinfo: More conversions to @Deffn.
1309 2000-04-08 Werner LEMBERG <wl@gnu.org>
1311 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
1312 Updated to latest version (glibc 2.1.3).
1314 2000-04-07 Werner LEMBERG <wl@gnu.org>
1316 * doc/Makefile (clean): Include more index files.
1317 Add rule texinfo->dvi.
1319 2000-04-05 Werner LEMBERG <wl@gnu.org>
1321 * doc/groff.texinfo: Added new index `op' for operators. More
1322 info on end of sentence characters. More use of @Deffn.
1324 2000-03-30 Werner LEMBERG <wl@gnu.org>
1326 * */*.man: Adding a note that a whitespace can be inserted between
1327 a command line option and its parameter -- we are using GNU getopt.
1329 * src/roff/groff/groff.man: Add example of `-m mandoc'.
1331 2000-03-28 Werner LEMBERG <wl@gnu.org>
1333 Correct anachronism of calling the man macro file with `-man'
1334 instead of `-m man' etc.
1336 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
1337 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
1338 load tmac.<package>.
1340 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
1344 * doc/groff.texinfo: Updated.
1346 * tmac/groff_man.man: Copyright added.
1348 2000-03-27 Werner LEMBERG <wl@gnu.org>
1350 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
1351 typeset the request resp. escape name with a tt font -- due to a
1352 bug in texinfo.tex it is necessary to use the `-e' switch with
1355 Improving info about usage of groff units.
1359 2000-03-20 Werner LEMBERG <wl@gnu.org>
1361 * doc/groff.texinfo: Added section about man macro package
1362 (I've basically taken groff_man.man). Introducing new indices `ma'
1363 for macros/strings and `gl' for glyph names. Other minor fixes.
1365 * tmac/groff_man.man: Fixed some typos.
1367 2000-03-19 Werner LEMBERG <wl@gnu.org>
1369 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
1372 * doc/texinfo.tex: New file.
1374 2000-03-18 Werner LEMBERG <wl@gnu.org>
1376 * doc/groff.texinfo: Improved section on number registers. Other
1379 2000-03-16 Werner LEMBERG <wl@gnu.org>
1381 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
1384 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
1385 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
1386 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
1387 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
1389 * src/preproc/grn/grn.man: Better synopsis; added copyright.
1391 * src/roff/grog/grog.man: Updated copyright date.
1393 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
1395 * configure.in: Added test for strdup.
1397 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
1400 Replaced dynamic allocation of arrays `[...]' with `new' operator.
1404 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
1406 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
1408 2000-03-11 Werner LEMBERG <wl@gnu.org>
1410 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
1412 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
1413 * src/include/lib.h: Remove some spaces.
1415 2000-03-10 Werner LEMBERG <wl@gnu.org>
1417 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
1418 initializers from arguments (some compilers don't like this).
1420 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
1422 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
1423 used by pic and eqn to tell grohtml where the graphic regions start
1425 * src/libs/libgroff/Makefile.sub: Use it.
1426 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
1427 graphic_start() and graphic_end() from htmlindicate.cc.
1429 2000-03-09 Werner LEMBERG <wl@gnu.org>
1431 * tmac/tmac.safer: Will now work correctly in compatibility mode.
1432 * tmac/groff_man.man: More fixes.
1434 2000-03-08 Werner LEMBERG <wl@gnu.org>
1436 * doc/Makefile: Added texput.log to the `clean' target.
1437 * doc/groff.texinfo: Added info about delimiters for escapes.
1439 2000-03-08 Bernd Warken <bwarken@mayn.de>
1441 * src/preproc/pic/pic.man: Add info on conversion of pic images to
1442 other graphic formats.
1444 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
1446 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
1447 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
1448 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
1451 2000-03-07 Werner LEMBERG <wl@gnu.org>
1453 * doc/groff.texinfo: Spelling fixes.
1455 2000-03-06 Werner LEMBERG <wl@gnu.org>
1457 * tmac/groff_man.man: Completely revised to cover everything in
1460 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
1461 Other minor fixings.
1462 * src/roff/troff/env.cc (environment_copy): Improve error message and
1464 * src/roff/troff/TODO: Updated.
1466 * doc/Makefile: Bug fixes -- this is still provisional, though...
1468 * tmac/eqnrc: Small fixes.
1470 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
1472 Adding a request `evc' to copy environments.
1474 * src/roff/troff/env.cc (environment::copy, environment_copy):
1476 * src/roff/troff/env.h: Add prototype.
1478 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
1480 Adding strsep() -- Solaris 8 doesn't have it.
1482 * configure.in: Test it.
1483 * src/devices/grolbp/lbp.cc: Add code.
1485 2000-03-05 Werner LEMBERG <wl@gnu.org>
1487 * src/roff/troff/div.cc (macro_diversion::output,
1488 top_level_diversion::output): Fixing an incompatibility with
1489 original troff: \x'0' updates the .a register also. Thanks to
1490 <Andries.Brouwer@cwi.nl> for pointing this out.
1491 * doc/groff.texinfo: Document it.
1493 * Makefile.in: Create Makefile.dep if necessary before calling the
1494 submake process to avoid warning about nonexistent file.
1496 * NEWS, PROJECTS: Updated.
1498 2000-03-04 Werner LEMBERG <wl@gnu.org>
1500 * tmac/troffrc: Add tmac.lbp.
1502 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
1504 * tmac/tmac.lbp: New file.
1505 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
1508 2000-03-03 Werner LEMBERG <wl@gnu.org>
1510 * Makefile.in: Fixing $(subdir).
1512 * README, NEWS: Small fixes.
1514 * test-groff: Adding path to grolbp.
1516 * configure.in: The (new) file src/xditview/Imakefile.in will be
1517 also configured -- it is now possible to build gxditview in a
1518 directory different from $srcdir.
1520 2000-03-02 Blake McBride <blake@florida-software.com>
1522 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
1524 * MORE.STUFF: Added website of bell labs and info about plot2dev.
1526 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
1528 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
1531 2000-02-29 Werner LEMBERG <wl@gnu.org>
1533 Adding GNU getopt to the groff distribution.
1535 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
1537 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
1538 * aclocal.a4: Remove GROFF_GETOPT function.
1539 * configure.in, Makefile.in, PROBLEMS: Update.
1540 * src/include/lib.h: Replace getopt tests with getopt.h.
1541 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
1543 * doc/groff.texinfo: Further checking/updating. Adding more index
1546 * man/groff_out.man: Fix nroff mode activation (for emacs).
1547 * man/groff_font.man: Add missing ligature.
1549 2000-02-28 Werner LEMBERG <wl@gnu.org>
1551 * doc/groff.texinfo: Further checking/updating. Adding more index
1554 * src/devices/grolbp/grolbp.man: Added a comment line at the
1555 beginning of the file (similar to shell scripts) which indicates
1556 that `tbl' should be used as a preprocessor.
1558 2000-02-27 Blake McBride <blake@florida-software.com>
1560 Adapting groff to MS Visual C++ 6.0 compiler (tested with
1561 Windows NT 4.0). Uses _MSC_VER define where necessary.
1563 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
1564 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
1565 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
1566 src/include/lib.h, src/libs/libgroff/errarg.cc,
1567 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
1568 src/preproc/refer/label.y, src/preproc/refer/label.cc,
1569 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
1570 src/roff/troff/div.cc, src/roff/troff/env.cc,
1571 src/roff/troff/input.cc, src/roff/troff/node.cc,
1572 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
1573 if_to_a() to avoid name clashes.
1574 * src/include/posix.h: Don't use unistd.h.
1575 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
1576 clause for integrating non-Unix xtmpfile() code.
1577 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
1578 structure; use "rt" for popen() in pipe_source(); add getpid()
1580 * src/roff/troff/node.cc: Use special versions of popen() in
1581 real_output_file() and pclose() in ~real_output_file().
1583 2000-02-27 Werner LEMBERG <wl@gnu.org>
1585 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
1586 LBP-8 series laser printers). This code has been contributed by
1587 Francisco Andres Verdu <pandres@dragonet.es>.
1589 * src/devices/grolbp/*: The grolbp output device.
1590 * font/devlpb/*: The font description files.
1591 * Makefile.in: Add grolpb and devlbp subdirectories.
1593 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
1594 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
1597 * doc/groff.texinfo: Further checking/updating. Adding more index
1602 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
1604 * man/groff_font.man: Adding info about obsolete DESC keywords.
1605 * src/devices/grolj4/grolj4.man: Documenting additional DESC
1608 2000-02-26 Werner LEMBERG <wl@gnu.org>
1610 * src/preproc/grn/grn.man: Added info about the gremlin file format
1611 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
1613 2000-02-25 Werner LEMBERG <wl@gnu.org>
1615 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
1616 friends to be non-integer.
1618 * src/preproc/grn/grn.man: Document it.
1620 * doc/groff.texinfo: Further checking/updating. Adding more index
1623 2000-02-24 Werner LEMBERG <wl@gnu.org>
1625 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
1626 line thicknesses to be integer multiples of this value.
1628 * src/preproc/grn/grn.man: Commenting out the -s option -- the
1629 corresponding code doesn't work (yet).
1631 * doc/groff.texinfo: Further checking/updating. Adding more index
1634 2000-02-23 Werner LEMBERG <wl@gnu.org>
1636 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
1637 specify line thickness instead of base units. The new default
1638 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
1639 thick lines respectively.
1641 Removed unused variable `prevval'.
1643 * src/preproc/grn/grn.man: Updated.
1645 2000-02-22 Werner LEMBERG <wl@gnu.org>
1647 * src/preproc/grn/main.cc: Slight formatting.
1649 * src/roff/groff/groff.man: Formatting fix.
1650 * src/preproc/grn/grn.man: Ditto.
1652 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
1654 * doc/groff.texinfo: Further checking/updating.
1656 2000-02-21 Werner LEMBERG <wl@gnu.org>
1658 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
1660 * test-groff: Added grn subdir to path.
1662 * doc/groff.texinfo: Some restructing and other small improvements.
1664 * src/roff/groff/groff.cc (help): Fixed info string.
1666 2000-02-20 Werner LEMBERG <wl@gnu.org>
1668 * doc/meref.me: Fix description of .GS request.
1670 * src/roff/troff/troff.man: Fixing typo.
1672 Adding the `grn' preprocessor for gremlin graphic files.
1674 * src/preproc/grn/*: This is the Berkeley distribution written by
1675 David Slattengren and Barry Roitblat, adapted to groff by Daniel
1676 Senderowicz and Werner Lemberg.
1678 * doc/grnexampl.{me,g}: A sample for grn.
1680 * Makefile.in: Added subdirectory entry for grn.
1682 * src/roff/groff/groff.cc: Added support for grn. It can be now
1683 called with the switch `-g'.
1685 * src/roff/groff/groff.man: Updated.
1687 * src/roff/grog/grog.{man,pl,sh}: Updated.
1691 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
1693 * src/include/lib.h: Added xtmptemplate and made xtmpfile
1694 parametrically polymorphic.
1696 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
1697 and the alterations to xtmpfile.
1698 xtmpfile can be requested to return the filename created
1699 and asked not to unlink the temp file. The default behaviour
1700 if parameters are absent is exactly the same as before.
1702 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
1704 A new request `length' is available which returns the length of a
1705 string in a number register:
1707 * src/roff/troff/input.cc (length_macro): Implement it.
1708 * src/roff/troff/input.cc (init_input_requests): Register it.
1710 2000-02-11 Werner LEMBERG <wl@gnu.org>
1712 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1713 of the `substring' request.
1715 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1718 * src/roff/troff/TODO, NEWS: Updated.
1720 2000-02-09 Werner LEMBERG <wl@gnu.org>
1722 * src/roff/groff/groff.man: Added an example.
1724 2000-02-06 Werner LEMBERG <wl@gnu.org>
1726 I've considerably modified the directory structure of the
1727 distribution to get a more vertical layout. For example, the number
1728 of top level directories has been reduced from 42 to 6.
1730 As a consequence, many changes, especially to the makefiles, were
1733 * The makefile variables `top_builddir' and `top_srcdir' have been
1734 introduced. Virtually all relative paths have been replaced with
1735 absolute ones using these two variables.
1737 * Dependencies (in the files `Makefile.dep') are no longer part of
1738 the distribution. Instead, they are created during a `make install'
1739 in the build directory.
1741 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1742 make `top_srcdir' and `top_builddir' absolute.
1746 * Man pages no depend on the files `VERSION' and `REVISION'.
1748 * The added shell script `mkinstalldirs' will replace `mkdir' in
1751 * VERSION: Version number increased to 1.16.
1753 2000-02-04 Werner LEMBERG <wl@gnu.org>
1755 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1757 * Makefile.in: Removed $(tmac_m) since it is no longer needed
1758 (after an update of the mm stuff).
1760 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1762 2000-02-03 Werner LEMBERG <wl@gnu.org>
1764 The .psbb request will now also accept Mac PS images (i.e. using LF
1765 as the EOL character).
1767 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1768 (with slight modifications).
1769 * troff/input.cc (do_ps_file): Use it.
1771 * test-groff: Add grohtml and grolj4 output devices to PATH.
1773 2000-01-30 Werner LEMBERG <wl@gnu.org>
1775 * NEWS, MORE.STUFF: Updated.
1777 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
1779 Add the `srand' command to pic.
1781 * pic/lex.cc, pic/pic.y: Implement it.
1782 * pic/pic.man: Document it.
1783 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1785 2000-01-30 Werner LEMBERG <wl@gnu.org>
1787 Add a new request `.psbb'. This does exactly what the external
1788 program psbb did. It scans a PostScript image file for a
1789 %%BoundingBox comment and extracts the bounding box values (in
1790 PostScript units) which are then stored in the four new (read-only)
1791 number registers `llx', `lly', `urx', and `ury'.
1793 This will allow the usage of the .PSPIC macro without worrying
1794 about unsafe behaviour of groff, i.e., it will work without the
1795 `-U' switch of groff.
1797 * troff/input.cc: Implement it.
1798 * tmac/tmac.pspic: Use it.
1799 * troff/troff.man, grops/grops.man, NEWS: Document it.
1800 * psbb/*, Makefile.in: Remove it since it is no longer needed.
1802 This is bloody C code simply adapted from psbb.c! Any improvements
1805 2000-01-29 Werner LEMBERG <wl@gnu.org>
1807 * man/groff_font.man: Minor clarifications.
1811 2000-01-28 Werner LEMBERG <wl@gnu.org>
1813 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1815 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
1817 * man/groff_font.man: Brought up to date regarding tcommand
1819 * libgroff/font.cc: Handle everything after `--' as a comment
1821 * devps/*: Added comment delimiter inside devps font files.
1823 2000-01-28 Werner LEMBERG <wl@gnu.org>
1825 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1826 \fC...\fP (which now works as expected).
1828 * troff/troff.man: Fix typo.
1830 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
1832 Completed the pass_filenames implementation in troff.
1834 * libdriver/input.cc: Will read the new `F' tcommand.
1835 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1836 * troff/input.cc: Use it.
1838 2000-01-26 Werner LEMBERG <wl@gnu.org>
1840 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
1841 font will now be updated even if an invalid font is selected.
1843 2000-01-24 Werner LEMBERG <wl@gnu.org>
1845 * doc/homepage.ms: Updated for new tmac.arkup.
1847 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1849 * tmac/tmac.arkup: Cleanup.
1851 Added `\&' to .HTML macro to `leave vertical mode', so to say.
1853 Removed obsolete .LINK macro completely.
1855 The macros .URL, .FTP, and .MAILTO now accept a third argument which
1856 will be immediately appended to the second argument (to be used with
1857 punctuation, for example).
1859 Disabled .CDFTP macro temporarily for security reasons.
1861 * tmac/groff_markup.man: Complete revision for latest changes in
1862 tmac.arkup -- note that it does not yet format correctly with
1865 2000-01-23 Bruno Haible <haible@clisp.cons.org>
1867 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1868 * devutf8/R.proto: Add mappings for wp, lh, rh.
1869 * devutf8/NOTES: Updated.
1871 2000-01-23 Werner LEMBERG <wl@gnu.org>
1873 * doc/groff.texinfo: Updated version/copyright info.
1875 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
1877 Added support for two new directives in device descriptions:
1878 `pass_filenames' (to pass the input file name to the output device)
1879 and `use_charnames_in_special' (to support e.g. accented characters
1880 in the `X' request).
1882 * include/font.h, troff/charinfo.h: Declare it.
1884 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1886 * devhtml/DESC: Use it.
1888 * troff/input.cc: New function encoded_char.
1890 * troff/token.h: Add test for `specialness'.
1892 2000-01-21 Werner LEMBERG <wl@gnu.org>
1894 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1895 mistake from the list of files to be installed.
1897 2000-01-18 Werner LEMBERG <wl@gnu.org>
1899 * README: Added info how to apply patches.
1901 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
1903 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
1905 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
1907 * troff/input.cc: Add support for troffrc-end.
1909 * tbl/main.cc: Altered to issue table-start and table-end special
1910 characters if using the html device.
1912 * devhtml/*: Modified font files to incorporate html encoding of
1915 * tmac/groff_markup.man: New file documenting tmac.arkup.
1917 * tmac/troffrc-end: New file. This is invoked after all user
1918 specified macros. Currently used by the html device to include
1919 tmac.html. Thus no need for users to specify -mhtml anymore.
1921 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1922 (MAN7): Add groff_markup.man.
1924 * tmac/tmac.an, tmac/tmac.html: Small html updates.
1926 * tmac/troffrc: tmac.arkup will now be called for the html device.
1928 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1929 extra device specific information about fonts.
1931 * doc/homepage.ms: New file. It is an example how an HTML home page
1932 could look like with grohtml.
1934 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
1936 2000-01-12 Bruno Haible <haible@clisp.cons.org>
1938 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
1941 * devutf8/NOTES: Updated.
1943 2000-01-08 Bruno Haible <haible@clisp.cons.org>
1945 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1946 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1947 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1948 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1949 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1950 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1951 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1952 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1955 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1957 2000-01-12 Fabrizio Polacco <fab@prosa.it>
1959 grolj4: Paper size will be searched case-insensitively.
1961 * include/lib.h: Add check for strcasecmp().
1962 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1963 * configure.in: Check for strcasecmp().
1965 2000-01-11 Werner LEMBERG <wl@gnu.org>
1967 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1970 2000-01-10 Werner LEMBERG <wl@gnu.org>
1972 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1975 Add a new read-only register, `.Y', which contains the groff
1978 * troff/input.cc (init_input_requests): Define it.
1979 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1980 * doc/groff.texinfo, troff/troff.man: Document it.
1982 * libgroff/Makefile.sub (version.cc): Add definition of
1983 `Version_string[]', consisting of `<major>.<minor>.<revision>'
1984 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1985 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1986 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1987 troff/input.cc, pfbtops/pfbtops.c: Use it.
1989 2000-01-10 Fabrizio Polacco <fab@prosa.it>
1991 Add a revision scheme to the groff package.
1993 * REVISION: New file.
1994 * libgroff/Makefile.sub (version.cc): Use it to define
1995 `revision_string[]'.
1996 * grops/psrm.cc: Use revision_string (converted to an unsigned
1997 integer) in constructor of resource_manager.
1999 2000-01-10 Bruno Haible <haible@clisp.cons.org>
2001 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
2003 * Makefile.in (DEVDIRS): Add devutf8.
2004 * grotty/tty.cc: Include device.h.
2005 (glyph): Change type of `code' to `unsigned int'.
2006 (tty_printer): New field is_utf8. Constructor takes device argument.
2007 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
2008 (tty_printer::add_char): Change type of first arg to `unsigned int'.
2009 (tty_printer::put_char): New function.
2010 (tty_printer::end_page): Use put_char() instead of ::putchar().
2011 (make_printer): Pass device to tty_printer constructor.
2012 * nroff.sh: Determine default device by calling 'locale'. As a
2013 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
2014 Recognize UTF-8 locales.
2015 * tmac/eqnrc: Recognize utf8 like latin1.
2016 * tmac/troffrc: Device utf8 needs tmac.tty.
2018 2000-01-07 Werner LEMBERG <wl@gnu.org>
2020 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
2022 2000-01-07 Paul Eggert <eggert@twinsun.com>
2024 Add a new predefined writeable number register, `year',
2025 which contains the current year.
2027 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
2028 * tmac/tmac.s: Use it.
2029 * troff/input.cc (init_registers): Initialize it.
2031 2000-01-06 Werner LEMBERG <wl@gnu.org>
2033 * PROBLEMS: Fixed typo.
2035 2000-01-04 Paul Eggert <eggert@twinsun.com>
2037 * PROBLEMS: Add Y2k advice for the yr number register.
2039 2000-01-03 Paul Eggert <eggert@twinsun.com>
2041 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
2043 2000-01-02 Werner LEMBERG <wl@gnu.org>
2045 * tmac/tmac.arkup: Slight modification of macros to provide better
2046 appearance for non-HTML formats.
2048 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
2050 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
2051 does not automatically translate to malloc(n) on all OSes
2052 (e.g., SunOS) so do it explicitly. Also, check the returned
2055 2000-01-01 Werner LEMBERG <wl@gnu.org>
2057 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
2059 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
2060 expects this variable
2062 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
2064 * doc/Makefile: Added instructions to create HTML and text
2065 versions of some files.
2067 1999-12-31 Werner LEMBERG <wl@gnu.org>
2069 * Updated INSTALL.gen.
2071 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
2072 better resp. correctly with non-HTML devices.
2074 Version 1.15 released
2075 =====================
2077 1999-12-28 Werner LEMBERG <wl@gnu.org>
2079 * NEWS, VERSION: Changed to 1.15
2081 1999-12-27 Paul Eggert <eggert@twinsun.com>
2083 * nroff/nroff.man: -S is safer, not safe.
2085 * groff/groff.cc (main): Use `safer', not `safe', in variable
2086 names. This does not change the behavior.
2088 * troff/input.cc (main): Likewise.
2090 * nroff/nroff.sh: Likewise.
2092 * troff/input.cc (prepend_string): New function.
2093 (main): Prepend -msafer, so that we check macro libraries for
2096 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
2098 Version 1.14 released
2099 =====================
2101 1999-12-26 Werner LEMBERG <wl@gnu.org>
2103 * NEWS, VERSION: Changed to 1.14.
2105 1999-12-24 Werner LEMBERG <wl@gnu.org>
2107 * refer/refer.cc: Fixing the last fix.
2109 Version 1.13 released
2110 =====================
2112 1999-12-23 Werner LEMBERG <wl@gnu.org>
2114 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
2119 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
2121 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
2122 document conventions, the version number must be a real.
2124 Version 1.12.1 released
2125 =======================
2127 1999-12-22 Werner LEMBERG <wl@gnu.org>
2129 * VERSION: Changed to 1.12.1.
2131 1999-12-22 Alan Rooks <arooks@istar.ca>
2133 * refer/refer.cc (do_file): Slight modification to satisfy the
2134 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
2137 1999-12-20 Werner LEMBERG <wl@gnu.org>
2139 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
2142 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
2143 list of unsafe requests.
2145 * pic/pic.man: Fixed a typo.
2147 * man/groff_out.man: Fixed a typo.
2149 1999-12-18 Werner LEMBERG <wl@gnu.org>
2151 * Makefile.in: Doc fixes.
2153 1999-12-17 Fabrizio Polacco <fab@prosa.it>
2155 * groff/groff.cc: Missing `U' option added to getopt().
2157 * troff/troff.man: Missing `U' option added to synopsis.
2159 Version 1.12 released
2160 =====================
2162 1999-12-14 Werner LEMBERG <wl@gnu.org>
2164 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
2167 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
2168 with the more appropriate terms `safer' and `unsafe'.
2170 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
2171 sys_nerr and sys_errlist[].
2173 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
2175 * pic/pic.y, pic/pic.cc: Added check for fmod().
2177 1999-12-13 Werner LEMBERG <wl@gnu.org>
2179 * VERSION: Changed to 1.12.
2181 Here some patches from various sources; most of them taken from
2182 the Debian distribution.
2184 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
2185 tmac/Makefile.sub: New files copied directly from the NetBSD
2186 distribution. Probably, some additional adaptation later on is
2189 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
2192 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
2193 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
2194 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
2195 (`-S') is now the default.
2197 * README, NEWS: Updated.
2199 1999-12-09 Werner LEMBERG <wl@gnu.org>
2201 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
2203 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
2205 1999-12-06 Werner LEMBERG <wl@gnu.org>
2207 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
2208 grief than relief today. Additionally, it is against the GNU
2211 * configure: Recreated.
2213 1999-12-05 Werner LEMBERG <wl@gnu.org>
2215 * configure.in: Added GROFF_LIBM.
2217 * configure: Recreated.
2219 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
2222 * Makefile.in: Added definition of $(LIBM).
2224 * Makefile.comm (LIBM): Removed.
2226 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
2228 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
2230 * doc/Makefile: Added rule for generation pic.html.
2232 (clean): Files produced by grohtml will be removed also.
2234 * doc/pic.ms: Small fix.
2236 * tmac/tmac.html: Fixed suppression of headers.
2238 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
2240 * tmac/tmac.html: Fixing horizontal arrows.
2242 Turning off hyphenation.
2244 * tmac/tmac.an: Improved support for grohtml; better indentation,
2247 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
2249 * tmac/tmac.arkup: Added CDFTP macro
2251 * tmac/tmac.html: All headers are turned off for ms, me, and mm
2254 * tmac/troffrc: Some additions for HTML stuff.
2256 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
2258 * tmac/tmac.html: Small changes.
2260 1999-09-26 Werner LEMBERG <wl@gnu.org>
2262 * doc/groff.texinfo: Minor fixes.
2264 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
2266 * devhtml/TR: Changed spacewidth to 3.
2268 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
2270 * tmac/tmac.html: Moved markup macros to tmap.arkup.
2272 * tmac/tmac.arkup: New file.
2274 * grohtml/ChangeLog: New file.
2276 1999-09-16 Werner LEMBERG <wl@gnu.org>
2278 * doc/groff.texinfo (Common Features): Added Copying chapter.
2279 Changed format to @smallbook.
2281 1999-09-15 Werner LEMBERG <wl@gnu.org>
2283 * NEWS: Added info about groff.texinfo.
2285 * doc/groff.texinfo: Will now compile (using texi2dvi) without
2288 1999-09-14 Werner LEMBERG <wl@gnu.org>
2290 * groff/groff.man: More updates.
2292 1999-09-13 Werner LEMBERG <wl@gnu.org>
2294 * doc/groff.texinfo: New file. This manual is still very
2295 rudimentary. It has been originally contributed by Trent
2296 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
2299 * INSTALL: Added information about the `doc' subdir
2301 * troff/troff.man: Minor fixes.
2303 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
2306 * troff/input.cc (usage): Added missing `-ffam' to usage message.
2308 * Makefile.in (dist): groff-$(version).tar.gz must be removed
2309 also, otherwise it is included itself in another call of `make
2312 * groff/groff.cc (synopsis): Removed superfluous space.
2314 * PROJECTS, PROBLEMS, NEWS: Updated.
2316 * VERSION: Updated to 1.12beta.
2318 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
2320 * README: Updated: Included documentation about CVS repository,
2321 mailing lists, and daily snapshots.
2323 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
2325 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
2327 * tmac/tmac.an: If the tag didn't fit into the space that the
2328 macro `TP' specifies, the rest of the tag went into the space for
2331 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
2333 * grolj4/lj4.cc: Added duplex printing (option `-d').
2335 * grolj4/grolj4.man: Document duplex printing.
2337 1999-09-12 Werner LEMBERG <wl@gnu.org>
2339 * doc/Makefile (pic.ps): Fixed rule which caused problems with
2340 non-GNUish sed programs.
2342 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
2345 * configure.in (LIBS): Added `-lc'
2347 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
2349 * pic/tex.cc (solid_arc): Casting M_PI to double.
2351 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
2353 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
2354 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
2355 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
2357 * groff/groff_man.man: New file. This manual page was originally
2358 written for the Debian GNU/Linux system by Susan G. Kleinmann
2361 * eqn/list.cc (list_box::compute_metrics,
2362 list_box::compute_sublist_width): Removed variable declaration to
2363 avoid shadowing warnings.
2365 * grops/psrm.cc (resource_manager::process_file): Ditto.
2367 * tfmtodit/tfmtodit.cc (main): Ditto.
2369 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
2370 to avoid shadowing warnings.
2372 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
2373 shadowing loop variable.
2375 * groff/groff.man, troff/troff.man: Added doc about grohtml.
2377 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
2379 New grohtml frontend to convert groff input to html.
2381 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
2383 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
2385 * tmac/eqnrc: Added html device.
2387 * tmac/tmac.html: New file.
2389 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
2390 (troff_output::start_picture, troff_output::finish_picture),
2391 tbl/main.cc (process_input_file):
2392 Surrounded output with `graphics_start' and `graphics_end' so that
2393 the html driver can identify non-text portions.
2395 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
2396 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
2397 grotty/tty.ps (tty_printer::set_char): Additional parameter
2400 * include/printer.h: Class printer: New function
2401 set_char_and_width; new variables (is_char_named, is_named_set,
2402 named_command, named_char_s, named_char_n) to hold information
2403 about named characters -- needed by the html driver.
2405 * libdriver/printer.cc (printer::set_ascii_char,
2406 printer::set_special_char): Use set_char_and_width.
2408 * devhtml/*: New device files for html driver.
2410 * grohtml/*: New driver grohtml.
2412 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
2414 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
2417 1999-09-11 Luke Mewburn <lukem@netbsd.org>
2419 * libgroff/string.cc (search): Small fix to test against NULL
2422 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
2424 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
2425 \b'abc') were stacked in reverse order when processed in a
2428 * troff/node.h: Added `*last' to struct `node' to make the above
2431 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
2432 The default scale for the 'f' and 't' graphics functions were 'm'
2433 rather than 'u' (i.e., no scaling).
2435 1999-09-11 Peter Miller <peterm@jna.com.au>
2437 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
2438 do_file), soelim/soelim.man: Added `-I file' option to soelim,
2439 defining include paths.
2441 * soelim/soelim.cc (include_path_append): New function.
2443 1999-09-11 Larry Jones <larry.jones@sdrc.com>
2445 * tbl/main.cc (process_options): Unix (at least Documenter's
2446 Workbench) tbl allows arbitrary non-alpha characters between
2449 1999-09-11 Paul Eggert <eggert@twinsun.com>
2451 Y2k fixes. Don't assume that the current year precedes 2000.
2453 * doc/meref.me: Add \n(y2, \n(y4.
2455 * tmac/doc-common (Yr): New number register.
2456 (Dd): Don't assume current year precedes 2000.
2458 * tmac/tmac.e (td): Likewise.
2459 (y2, y4): New number registers.
2461 * pic/pic.man: Update reference for pic paper to May, 1991
2464 1999-09-11 Werner LEMBERG <wl@gnu.org>
2466 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2467 Removed quotation marks which prevented correct expansion of
2470 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
2472 1999-09-10 Werner LEMBERG <wl@gnu.org>
2474 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
2477 * Removed configure.old.
2479 1999-08-31 Werner LEMBERG <wl@gnu.org>
2481 * VERSION: Updated to 1.11.1
2483 1999-05-27 Werner LEMBERG <wl@gnu.org>
2485 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
2487 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2488 added quotations around $(tmac_wrap) to avoid syntax error if
2491 * configure: Newly generated using autoconf 2.13.
2493 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
2495 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
2497 * README, PROJECTS, NEWS, INSTALL, VERSION,
2498 doc/Makefile. doc/pic.ms, groff/groff.man:
2499 Prepare for 1.11 release. No code changes.
2500 Documentation for pic added (doc/pic.ms).
2502 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
2504 * Version 1.10 released.
2506 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
2508 * afmtodit/afmtodit.pl: Avoid comment on first line.
2510 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
2512 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
2513 * configure.in: Call it.
2515 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
2516 (distfiles): Doesn't depend on config.log or config.cache.
2518 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
2520 * grog/grog.sh: Use print "" rather than print in END rule.
2522 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
2524 * tbl/main.cc (process_data): Don't give error for excess data
2525 entries that are comments.
2527 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
2529 * tbl/main.cc (process_data): Fix case where new for-scope rules
2530 silently change meaning of code.
2532 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
2534 * troff/env.cc (hyphenate): Loop over all consecutive sequences
2535 of non-zero hyphenation codes.
2537 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
2539 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
2541 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
2543 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
2545 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
2547 * tmac/tmac.andoc: Make it work in compatibility mode.
2549 * refer/token.h (token_info::is_range_sep): New function.
2550 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
2551 * refer/ref.cc (reference::output): More sophisticated check for
2554 * devps/prologue.ps (MANUAL): New procedure.
2555 * grops/ps.cc (main): New -m option.
2556 (usage): Include -m.
2557 (ps_printer::~ps_printer): Implement -m.
2559 * aclocal.m4 (GROFF_G): New macro.
2560 * configure.in: Call it.
2561 * Makefile.in (g): Provided by configure.
2563 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
2565 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
2568 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
2569 (tmac_m, tmac_s): Deleted.
2570 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
2571 tmac_s_prefix): New variables.
2572 (MDEFINES): Change accordingly.
2573 * Makefile.comm (.man.n): Use new TMAC_* variables.
2574 * configure.in (GROFF_TMAC): Call.
2575 * aclocal.m4 (GROFF_TMAC): Define.
2576 * tmac/Makefile.sub (stamp_wrap): New target.
2577 (install_data, uninstall_sub): Handle macro wrapping.
2579 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
2581 * tbl/main.cc (main): Ignore -T option.
2583 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
2585 * devlj4/generate/special.map: Add definition of \(nb.
2587 * tmac/tmac.dvi: Add definition of \(nb.
2589 * troff/dictionary.c (dictionary::dictionary): association::v gets
2590 initialized by association::association.
2592 * tmac/Makefile.sub: Avoid using temporary files when installing.
2594 * troff/env.cc (environment::set_font): Make bad font number a
2597 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
2599 * Makefile.in (datadir): Use share rather than lib.
2601 * groff/groff.cc (basename): Rename to xbasename.
2603 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
2605 * Makefile (CCLIBS): Don't use.
2606 * Makefile.ccpg: Likewise.
2608 * acgroff.m4: Rename to...
2609 * aclocal.m4: Modify extensively for autoconf 2.
2610 * configure.in: Likewise.
2611 * Makefile.in: Likewise.
2613 * groff/pipeline.c (const): Declare as empty if __STDC__ not
2615 (xstrsignal): Check for definition of NSIG. Conditionalize
2616 on SYS_SIGLIST_DECLARED. Make return type const.
2618 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
2620 * troff/input.cc (interpolate_macro): Rephrase missing space
2623 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
2625 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
2626 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
2627 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
2628 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2629 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
2630 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
2631 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
2632 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
2633 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
2634 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
2635 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
2638 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
2640 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
2642 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
2644 (macro_iterator::macro_iterator): Add additional argument.
2646 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
2648 * troff/div.cc (vertical_size::vertical_size): In place of integer
2649 specifying line spacing use cunits specifying post vertical
2651 (macro_diversion::output, top_level_diversion::output): Likewise.
2652 * troff/div.h: Change declarations accordingly.
2653 * troff/env.cc (pending_output_line): Replace ls field by post_vs
2655 (pending_output_line::pending_output_line,
2656 pending_output_line::output, environment::output,
2657 environment::output_line, environment::output_title,
2658 environment::hyphenate_line): In place of
2659 integer specifying line spacing use cunits specifying post vertical
2661 (environment::environment): Add post_vertical_spacing and
2662 prev_post_vertical_spacing arguments.
2663 (environment::get_post_vertical_spacing): New function.
2664 (environment::total_post_vertical_spacing): New function.
2665 (environment::post_vertical_spacing): New function.
2666 (init_env_requests): Initialize pvs request and .pvs register.
2667 * troff/env.h: Change declarations.
2669 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
2671 * tmac/tmac.pspic: Immediately remove the temporary file.
2673 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
2675 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
2676 height is specified.
2678 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
2680 * tbl/table.c (struct vertical rule, class table_entry): Use int
2681 not short for start_row and end_row.
2683 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
2685 * troff/input.cc (trapping_blank_line, blank_line_macro): New
2687 (diverted_space_node::reread, process_input_stack): Call
2688 trapping_blank_line() rather than blank_line().
2689 (init_input_requests): Bind "blm" to blank_line_macro().
2691 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
2693 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
2695 * troff/env.cc (environment::possibly_break_line): Require that
2696 width total excluding width of final space node be greater than
2697 the target text length.
2699 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
2701 * troff/node.cc (kern_pair_node::vertical_extent): New function.
2703 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
2705 * troff/node.cc (charinfo_node): New class.
2706 (glyph_node, composite_node): Derive from charinfo_node. Change
2707 member functions accordingly.
2709 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
2711 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2713 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
2715 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2717 * devps/generate/textmap (notsubset): Add.
2719 * tmac/tmac.a4: New file.
2721 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
2723 * pic/main.cc (had_parse_error): New variable.
2724 (do_picture, do_whole_file): Set had_parse_error if yyparse()
2726 (main): Return 1 if had_parse_error is true.
2728 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
2730 * grolj4/lj4.cc (main): Avoid use of strtoul.
2732 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
2734 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2735 iso_8859_1 or $LESSCHARSET is latin1.
2737 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
2739 * hpftodit: New directory.
2740 * Makefile.in (CCPROGDIRS): Add hpftodit.
2741 * devlj4/generate: New directory.
2743 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
2745 * configure.in: Don't use AC_VFORK.
2746 * groff/pipeline.c (run_pipeline): Use fork() always.
2748 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
2750 * grops/ps.cc (main): Use %1 not %s in error message for -w.
2752 * Makefile.in (CCPROGDIRS): Add grolj4.
2753 (DEVDIRS): Add devlj4.
2754 * grolj4, devlj4: New directories.
2755 * tmac/troffrc: Handle lj4.
2756 * tmac/tmac.lj4: New file.
2758 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
2760 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2762 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
2764 * troff/input.cc (do_if_request): At end of second string, switch
2765 environments before getting next token.
2767 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
2769 * devps/psstrip.sed: Split rule that strips whitespace on either
2772 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
2774 * troff/node.h (font_family::make_definition): Add return value to
2775 declaration. * troff/symbol.h (symbol::operator==,
2776 symbol::operator!=): Likewise.
2778 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
2780 * groff/groff.cc (main, help, synopsis): Handle -S.
2781 (possible_command::insert_arg): New function.
2783 * tmac/tmac.safer: New file.
2784 * tmac/msafer.man: New file.
2785 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2787 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
2789 * pic/pic.h, pic/main.cc (safer_flag): New variable.
2790 * pic/pic.y (placeless_element): Avoid unsafe operations if
2791 `safer_flag' is set.
2792 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2794 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
2796 * eqn/lex.cc (get_token): Put call to add_context() in block to
2797 work around Sun C++ 4.0 bug.
2799 * include/stringclass.h (operator +): Use ?: instead of `if' to
2800 work around Sun C++ 4.0 bug.
2802 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
2804 * tbl/main.cc (process_format): Accept - as a synonym for the _
2807 * libbib/index.cc (minus_one): Don't declare as const.
2809 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
2811 * troff/input.cc (get_char_for_escape_name): Push back a newline.
2813 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
2815 * troff/input.cc (write_macro_request): New function.
2816 (init_input_requests): Bind write_macro_request to writem.
2818 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
2820 * tmac/tmac.s (@EN): Turn filling back on even if there was no
2823 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2825 * tmac/tmac.s (@TS): Renamed from TS.
2826 (TS): Call LP then TS again.
2827 (cov*ab-init): Alias @TS to TS.
2829 * tmac/tmac.s: Allow QP or RS to initialize.
2831 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
2832 Move initializations of PS and LL here.
2833 (par@init): Don't initialize HY. Avoid changing environment 0.
2834 (par*env-init): Don't all par@reset.
2836 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
2838 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2840 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
2842 * Makefile.in (MDEFINES): Add LDFLAGS.
2843 (LDFLAGS): Add definition line.
2845 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
2847 * troff/input.cc (get_optional_char): Split off error check into...
2848 (check_missing_character): New function.
2849 * troff/token.h: Declare it.
2850 * troff/env.cc (margin_character): Don't call get_optional_char.
2851 Only call tok.next() after making the node.
2853 * include/lib.h (getopt): Make 2nd argument char *const *.
2855 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
2857 * nroff/conftest.sh: Deleted.
2859 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
2861 * pic/make-dos-dist: Deleted.
2863 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
2865 * devps/psstrip.sed: Strip comments before stripping trailing
2868 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
2870 * Version 1.09 released.
2872 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
2874 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2876 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
2878 * libgroff/font.cc (font::load_desc): Fix typo in error message.
2880 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
2882 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2883 about returning without a value.
2885 * troff/charinfo.h (charinfo::get_special_translation): Cast
2886 TRANSLATE_NONE to int.
2888 * refer/token.cc (lookup_token, store_token): Remove bogus loop
2889 test. Fix test so that it works with n unsigned.
2891 * pic/pic.y (defaults_table): Fully bracket initializer.
2892 * pic/lex.cc (lookup_keyword): Likewise.
2893 * eqn/lex.cc (token_table, def_table): Likewise.
2894 * eqn/box.cc (param_table): Likewise.
2895 * troff/input.cc (warning_table): Likewise.
2896 * libgroff/font.cc (table): Likewise.
2897 * grops/ps.cc (ps_printer::special): Likewise.
2898 * grops/psrm.cc (resource_manager::process_file): Likewise.
2899 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2900 * refer/command.cc (command_table): Likewise.
2901 * addftinfo/addftinfo.cc (param_table): Likewise.
2903 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2904 about temp's being unused.
2905 (unused): New function.
2907 * groff/pipeline.cc: Declare c_fatal.
2909 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2912 * libbib/index.cc (index_search_item::load): Prevent compiler
2913 warnings about fd_closer's being unused.
2914 (unused): New function.
2916 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
2918 * troff/input.cc (copy_mode_error): Make `prefix' static.
2921 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2923 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2924 HAVE_CC_OSFCN_H and modify accordingly.
2926 * troff/input.cc (init_charset_table): radicalex overlaps
2929 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2930 udodo!hans@relay.NL.net).
2931 * groff/configure.in: Call it.
2933 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2934 * groff/configure.in: Call it.
2935 * include/lib.h: Conditionalize declaration of pclose.
2937 * troff/div.cc (last_page_number): New global variable.
2938 (top_level_diversion::begin_page): Exit if we just printed the
2940 * troff/div.h (last_page_number): Declare it.
2941 * troff/input.cc (parse_output_page_list): Set last_page_number.
2943 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2944 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2945 tmac/tmac.X: Likewise.
2946 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2947 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2949 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
2951 * tmac/doc-ditroff (hK): Remove groff specific code which
2952 prevented page-breaks between separate manual entries. If this is
2953 the first page, don't set the page number to 1.
2955 * acgroff.m4 (GROFF_POSIX): New macro.
2956 * configure.in: Use it.
2958 * troff/node.cc (class real_output_file,
2959 real_output_file::real_output_file,
2960 real_output_file::~real_output_file): Conditionalize use of
2961 popen/pclose on POPEN_MISSING.
2962 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2963 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2964 (pipe_source): Similarily.
2966 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2968 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2969 presence of declarations by trying to compile example with
2970 conflicting declarations. (gcc only gives a warning for missing
2973 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
2975 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2976 (from Ulrich Lauther).
2978 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
2980 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2982 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
2984 * indxbib/indxbib.cc (write_hash_table): Add code for case where
2985 pointers and ints have different sizes.
2987 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
2989 * tmac/tmac.s (par*env-init): Call par@reset.
2991 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
2993 * tmac/tmac.s (@IP): Switch to a new environment when diverting
2995 (par*push-tag-env, par*pop-tag-env): New macros.
2997 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
2999 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
3000 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
3002 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
3003 comment. Include <time.h>.
3005 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
3007 * grops/ps.cc (is_small_h, is_small_v): Deleted.
3008 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
3011 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
3013 * troff/input.cc (read_request): Only print a prompt if reading
3014 from the terminal. Also clearerr on EOF if reading from the
3015 terminal. Declare isatty.
3017 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
3019 * refer/label.y: Rename map_t to map_func and extractor_t to
3022 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
3024 * include/assert.h: Don't use volatile.
3025 * libgroff/assert.cc: Likewise.
3027 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
3029 * troff/input.cc (abort_request): Look at character in tok before
3032 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
3034 * troff/troff.h (NO_RETURN): Deleted.
3035 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
3036 * troff/input.cc (exit_troff): Likewise
3038 * Makefile.in: Remove `Making ...' messages since GNU make now
3041 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3043 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
3045 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
3048 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
3050 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
3052 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
3054 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
3055 MARK_REG if there was no left delimiter.
3057 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
3059 * pic/troff.cc (troff_output::text): Set line thickness to
3060 relative before outputting text.
3062 * tmac/tmac.e (@k): Don't zero ?T.
3065 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
3067 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
3069 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
3071 * troff/input.cc (decode_args): Warn about unquoted tabs (from
3074 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
3076 * troff/input.cc (ignoring): New variable.
3077 (ignore): Set ignoring during call to do_define_macro.
3078 (do_define_macro): Clear ignoring before interpolating terminating
3080 (copy_mode_error): New function.
3081 (get_char_for_escape_name, read_long_escape_name,
3082 interpolate_arg): Use copy_mode_error.
3083 (warning_table): Add WARN_IG.
3084 * troff/troff.h (WARN_IG): Declare.
3085 (WARN_TOTAL): Change accordingly.
3087 * groff/pipeline.c (strsignal): Rename to xstrsignal.
3088 * groff/groff.cc (strsignal): Delete declaration.
3090 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
3092 * troff/div.cc (page_offset): Use 'm' as default scaling.
3094 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
3096 * nroff/nroff.sh: Ignore -u.
3098 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
3100 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
3102 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
3104 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
3106 (B2): With -Tascii, leave additional vertical space before
3107 and after. Ensure that the left and right indent is restored to
3108 what it was even if the point size changes. Don't call
3109 par@finish. Change the indent, line length and title length
3110 directly. With -Tascii, make the width of the box 1n less.
3111 (B1): Remember 1n at the current point size. Don't call
3112 par@reset. Change the indent, line length and title length
3113 directly. Ensure that the temporary indent is preserved.
3114 (par*box-mark-top): Turn off no spacing mode.
3116 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
3118 * Makefile.in (dist): Use .gz suffix.
3120 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
3122 * troff/input.cc (main): Add return 0.
3123 * pic/main.cc (main): Use return instead of exit.
3124 * tbl/main.cc (main): Likewise.
3125 * eqn/main.cc (main): Likewise.
3126 * grops/ps.cc (main): Likewise.
3127 * grotty/tty.cc (main): Likewise.
3128 * groff/groff.cc (main): Likewise.
3129 * grodvi/dvi.cc (main): Likewise.
3130 * refer/refer.cc (main): Likewise.
3131 * indxbib/indxbib.cc (main): Likewise.
3132 * lkbib/lkbib.cc (main): Likewise.
3133 * soelim/soelim.cc (main): Likewise.
3134 * addftinfo/addftinfo.cc (main): Likewise.
3135 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
3136 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
3138 * troff/token.h (process_input_stack): Don't declare as static.
3139 * troff/input.cc: Likewise.
3141 * troff/node.c (invalidate_fontno): Make it a static member of
3142 class font_family. Change callers.
3143 * troff/node.c: Change declaration.
3145 * tbl/main.cc (struct input_entry_format): Add explicit public
3147 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
3148 struct double_hline_stuff): Likewise.
3149 * tbl/table.h (struct entry_format): Likewise.
3150 * pic/object.h (struct saved_state): Likewise.
3152 * include/stringclass.h: Add forward declarations of friend
3153 functions that are later declared as inline. Don't include inline
3154 specifier in friend declaration.
3156 * libgroff/lib.h: Declare popen and pclose.
3157 * acgroff.m4 (GROFF_POPEN): New macro.
3158 * configure.in: Call it.
3160 * include/lib.h (PI): New constant. Undef first if necessary.
3161 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
3162 * grops/ps.cc (degrees, radians): Likewise.
3163 * libgroff/font.cc (font::get_skew): Likewise.
3165 * grops/ps.cc (is_ascii): New function.
3166 (ps_output::put_string): Use is_ascii. Use csprint rather than
3168 (ps_printer::define_encoding): Use csspace.
3169 * libgroff/strtol.c (ISASCII): New macro.
3170 (strtol): Cast arguments to is*() and tolower() to unsigned char.
3171 Use ISASCII rather than isascii.
3172 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
3173 * libgroff/cset.cc: Likewise.
3174 * libdriver/input.cc: Include cset.h.
3175 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
3178 * refer/refer.cc (main): Use %ld rather than %d for longs.
3180 * libbib/index.cc (index_search_item_iterator::get_tag): Use
3183 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
3185 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
3187 * troff/input.cc (hyphenation_code): Skip white space between
3190 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
3192 * tbl/table.h (table::entry_list_tailp): New member.
3193 (table::table): Initialize it.
3194 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
3197 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
3199 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
3200 with negative horizontal positions. Remove casts of glyph::hpos to
3202 (USHRT_MAX): Delete definition.
3203 (SHRT_MAX, SHRT_MIN): New definitions.
3204 (glyph::hpos): Change type to short.
3205 (tty_printer::end_page): Output multiple backspaces if necessary.
3206 Remove casts of glyph::hpos to int.
3208 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
3210 * tmac/tmac.s (@RT): New definition.
3212 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
3214 * refer/refer.cc (do_file): Make sure current_filename is set when
3217 * pic/common.cc (common_output::dot_line): Handle zero length
3220 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
3222 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
3223 (par@init): Initialize \n[HY].
3225 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
3227 * troff/dictionary.cc (dictionary::remove): Continue when
3230 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
3232 * Makefile.com (.y.cc): Avoid ending up with two versions of
3235 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
3237 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
3238 (\(,C): Likewise. Also fix typo.
3240 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
3242 * lib.h: Delete extraneous semi-colon.
3244 * Add pso request: `so' from a pipe.
3245 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
3246 (file_iterator::close): New function.
3247 (file_iterator::~file_iterator, file_iterator::next_file): Use
3248 file_iterator::close.
3249 (file_iterator::backtrace): Say `process' rather than `file' when
3250 the stream is popened.
3251 (pipe_source): New function.
3252 (init_input_requests): Bind ".pso" to pipe_source.
3254 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
3256 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
3258 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
3259 digits in lower case.
3261 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
3263 * Version 1.08 released.
3265 * Makefile.in (dist): Insert || true after ln -s commands that
3268 * mm: Update to mm 1.16.
3270 * acgroff.m4 (GROFF_CSH_HACK): New macro.
3271 * configure.in: Call GROFF_CSH_HACK. Substitute for
3273 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
3275 * nroff/Makefile.sub (nroff): New target.
3276 (install_data): Install nroff.
3277 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
3278 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
3280 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
3282 * eqn/Makefile.sub (neqn): Add chmod +x.
3284 * grog/Makefile.sub (grog): Remove spurious semi-colon.
3286 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
3288 * troff/input.cc (string_iterator::string_iterator()): Initialize
3291 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
3293 * troff/div.cc (macro_diversion::space,
3294 top_level_diversion::space): Don't set high_water_mark.
3295 (macro_diversion::output, top_level_diversion::output): Don't
3296 include post line space in high water mark.
3298 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
3300 * eqn/eqn.y: Don't define YYDEBUG.
3301 * pic/pic.y: Likewise.
3303 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
3305 * tmac/tmac.e ([3): Add space after comma following editors.
3306 Change double spaces to single spaces.
3307 ([4): Change double spaces to single spaces.
3309 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
3310 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
3311 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
3312 after %!PS-Adobe- (for Newsprint).
3314 * troff/div.cc (top_level_diversion::begin_page): When
3315 before_first_page is 1, set page_number to 1.
3317 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
3319 * eqn/box.cc (box::top_level): Protect equation with \&.
3321 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
3323 * groff/groff.cc (possible_command::set_name): Delete old name.
3325 * groff/groff.cc (possible_command::~possible_command): Use
3328 * troff/node.cc (troff_output_file::begun_page): New member.
3329 (troff_output_file::troff_output_file): Initialize it.
3330 (troff_output_file::really_begin_page): Only output V command if a
3331 page has been begun.
3333 * pic/pic.y (placeless_element): Delete argument to PRINT after
3336 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
3338 * Make wrapman work.
3339 * troff/div.h (class top_level_diversion): Replace
3340 first_page_begun by before_first_page (with opposite sense).
3341 * Change first_page_begun to before_first_page inverting sense.
3342 * troff/div.cc (class nl_reg): New class.
3343 (init_div_requests): Use class nl_reg for \n(nl.
3344 (top_level_diversion::begin_page): Don't call
3345 output_file::begin_page if before_first_page is 2;
3346 reset before_first_page afterwards. If have_next_page_number is
3347 false, then always increment page_number.
3348 * tmac/tmac.an: Set traps within TH rather than at the top-level.
3349 Restore compatibility mode after loading, and then disable
3350 compatibility mode in TH.
3352 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
3354 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
3356 * troff/node.h (output_file::trailer): Declare.
3357 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
3358 * troff/node.cc (output_file::trailer): New function.
3359 (troff_output_file::~troff_output_file): Move most code into...
3360 (troff_output_file::trailer): New function.
3361 (class troff_output_file): Delete page_length member. Declare
3363 (troff_output_file::really_begin_page): Use current page length
3364 for final V command.
3366 * tbl/main.cc (struct options): New decimal_point_char member.
3367 (options::options): Initialize this.
3368 (process_options): Implement decimalpoint option.
3369 (process_data): Pass decimal_point_char option to table::table.
3370 * tbl/table.h (class table): New decimal_point_char member.
3371 (table::table): Add additional argument.
3372 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
3373 second argument specifying decimal point character. Use this
3375 (table::table): Initialize decimal_point_char.
3376 (table::add_entry): Change call to find_dot.
3378 * troff/input.cc (get_copy, token::next): Implement \V.
3379 (interpolate_environment_variable): New function.
3381 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
3383 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
3384 * pic/pic.y: Likewise.
3386 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
3388 * refer/ref.cc (reference::insert_field, reference::delete_field):
3390 * troff/number.cc (parse_term): Likewise.
3392 * acgroff.m4 (GROFF_PROG_YACC): New macro.
3393 * configure.in: Use GROFF_PROG_YACC.
3395 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
3397 * Makefile.in (OPTIMIZE): New define.
3398 (DEBUG): Empty by default.
3399 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
3401 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
3402 (GROFF_ARRAY_DELETE): Likewise.
3403 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
3405 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
3407 * devps/psstrip.sed: Use different delimiter on last line (so that
3408 it works with BSD 4.4 sed.)
3410 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
3412 * devps/psstrip.sed: Delete comments.
3414 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
3415 optind, opterr, optarg.
3416 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
3419 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
3421 * Makefile.in (check): Dummy target.
3423 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
3425 * Version 1.07 released.
3427 * Integrate mm 1.11.
3429 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
3430 where start_col was meant.
3432 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
3434 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
3436 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
3438 * troff/input.cc (token::next): Make \z\o'...' and similar things
3441 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
3443 (environment): Add margin_character_flags member.
3444 * env.cc (environment::environment(symbol),
3445 environment::environment(const environment *): Initialize
3446 margin_character_flags.
3447 (margin_character): Rewrite.
3448 (environment::output_line): Add a margin character if
3449 margin_character_flags is non-zero. Turn off the
3450 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
3451 zero, use margin_character_node without copying and then set
3452 margin_character_node to 0.
3454 * devps/DESC.in: Change minimum size to 1000.
3456 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
3458 * troff/symbol.h (symbol::hash): Change return type to unsigned
3460 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
3463 * test-groff: Use -r rather than -x.
3465 * grops/psfig.diff: Include in distribution again.
3467 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
3469 * Makefile.in (dist): Use gzip.
3471 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
3473 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
3474 unistd.h as well as in stdlib.h.
3475 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
3476 defined; otherwise include <sys/types.h> and <unistd.h> if
3477 UNISTD_H_DECLARES_GETOPT is defined.
3479 * configure.in: use builtin(include, ... rather than include(...
3480 * configure: Regenerate with autoconf 1.3.
3482 * libdriver/print.cc (printer::adjust_arc_center): Use new
3483 algorithm suggested by Andy Fyfe.
3485 * libdriver/printer.cc (printer::adjust_arc_center): New function.
3486 * include/printer.h: Declare this.
3487 * grops/ps.cc (ps_printer::draw): Use it.
3488 * grodvi/dvi.cc (dvi_printer::draw): Use it.
3490 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
3492 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
3494 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
3496 * eqn/main.cc (main): Handle "eqn -".
3498 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
3500 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
3502 * mm: Integrate version 1.08.
3504 * pic/troff.cc (troff_output::finish_picture): Set
3505 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
3506 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
3507 if it's not defined. Check whether the register is non-zero rather
3508 than whether it's not defined.
3509 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
3511 * indxbib/indxbib.cc: Move all signal handling into...
3512 * indxbib/signal.c: New file.
3513 * configure.in: Call AC_RETSIGTYPE.
3515 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
3516 * configure.in: Call GROFF_STRUCT_EXCEPTION.
3517 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
3519 * troff/input.cc (token::token, token::operator=): Work round SGI
3521 * pic/object.cc (position::position): Likewise.
3523 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
3525 * pic/pic.h: Move declaration of hypot().
3527 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
3529 * pic/pic.h: Declare hypot().
3531 * pic/pic.h: Define M_PI if necessary.
3533 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
3535 * tmac/tmac.e (re): Add alternative version that doesn't use groff
3538 * devps/prologue.ps (RE): Handle the possibility that the old font
3539 doesn't have a FontName entry.
3541 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
3543 * tmac/tmac.e (fam): Redefine to set family in environment 2.
3544 (@C): Use @fam not fam.
3546 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
3548 * lookbib/lookbib.cc (main): Change type of start to const char *.
3549 * lkbib/lkbib.cc (main): Likewise.
3551 * eqn/lex.cc (definition::definition): Don't use member
3552 initializer syntax for members of anonymous unions.
3554 * troff/input.cc (input_stack::backtrace): Change type of to const
3557 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
3559 * include/stringclass.h (class string): Declare inline friend
3560 functions as inline in class declaration.
3561 * troff/hvunits.h (class hunits, class vunits): Likewise.
3562 * include/refid.h (class reference_id): Likewise
3563 * troff/troff.h (points_to_units(units), scale(units, double)):
3564 Delete declarations.
3565 * libdriver/input.cc (get_char): Delete declaration.
3566 * include/lib.h: Change 2nd argument of getopt from const char **
3568 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
3569 char **' before assigning to a `const char **'.
3570 * tbl/table.cc: Delete extra declarations of prints().
3572 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
3574 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
3575 char **' before assigning to a `const char **'.
3577 * libgroff/errarg.cc (errarg::errarg): Don't use member
3578 initializer syntax for members of anonymous unions.
3580 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
3582 * mm: Integrate version 1.07.
3584 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
3586 * troff/input.c (translate2): Rename to
3587 (translate_no_transparent).
3588 (init_input_requests): Rename tr2 to trnt.
3590 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
3592 * troff/charinfo.h (class charinfo): Add transparent_translate field.
3593 (charinfo::set_translation, charinfo::set_special_translation):
3594 Add second argument that specifies value for
3595 transparent_translate.
3596 (charinfo::get_translation, charinfo::get_special_translation):
3597 Add optional second argument that specifies whether translation is
3598 being used for transparent throughput.
3599 * troff/input.cc (charinfo::set_translation,
3600 charinfo::set_special_translation): Handle second argument.
3601 (charinfo::charinfo): Initialize transparent_translate.
3602 (translate): Split main part off into
3603 (do_translate): New function. Pass argument saying whether
3604 translation applies to transparent throughput.
3605 (translate2): New request.
3606 (init_input_requests): Bind translate2 to `tr2'.
3608 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
3610 * tbl/table.h (class table): Add `nokeep' flag.
3611 * tbl/main.cc (process_options): Handle `nokeep' option.
3612 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
3613 table::do_bottom): Don't output keep/release macro definitions or
3614 calls when `nokeep' option has been specified.
3616 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
3618 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
3620 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
3622 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
3623 block_entry::divert, alphabetic_block_entry::divert): Add extra
3624 argument giving column separation.
3625 (table::compute_widths): Pass column separation to
3626 table_entry::divert().
3627 (block_entry::do_divert): If an entry spans multiple columns and a
3628 minimumum width has been specified for each column, then set the
3629 line length to the sum of the widths (plus possibly the column
3632 * troff/input.cc (set_escape_char): Don't set the escape_char
3633 until after calling has_arg().
3635 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
3637 * tbl/table.cc (table::do_top): Add missing \s0 for double box
3640 * tbl/table.cc (table::print_double_hline): Avoid extra new line
3641 in case where r > nrows - 1.
3643 * tbl/table.cc (BODY_HEIGHT): Deleted.
3644 (LINE_SEP): New definition.
3645 (table::print_single_hline, table::print_double_hline,
3646 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
3647 table::do_row, table::do_top): Use LINE_SEP space before a line
3648 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
3650 * tbl/table.cc (text_entry::print_contents): New function.
3651 (text_string_name, right_text_string_name): Deleted.
3652 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
3653 (simple_text_entry::do_width, numeric_text_entry::do_width,
3654 alphabetic_text_entry::do_width): Don't store the contents of the
3656 (left_text_entry::simple_print, right_text_entry::simple_print,
3657 center_text_entry::simple_print,
3658 alphabetic_text_entry::simple_print,
3659 numeric_text_entry::simple_print): Print the entry directly
3660 instead of using the stored string.
3662 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
3664 * devps/Makefile: Strip PostScript files.
3665 * devps/prologue: Rename to...
3666 * devps/prologue.ps.
3667 * devps/psstrip.sed: New file.
3668 * devps/download: Use .pfa rather than .ps for installed versions
3671 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
3673 * troff/env.cc (input_trap): Give a warning if the argument is out
3676 * troff/env.cc (adjust): Treat negative argument as missing. Round
3677 argument > 5 down to 5.
3679 * troff/env.cc (center, right_justify): Make negative argument zero.
3681 * troff/div.cc (page_offset, vertical_position_traps): Treat
3682 invalid argument as missing.
3683 * troff/env.cc (line_spacing, line_length, title_length, indent,
3684 underline, hyphen_line_max_request, control_char,
3685 no_break_control_char, widow_control_request, adjust, input_trap,
3686 point_size): Likewise.
3687 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
3688 constant_space): Likewise.
3689 * troff/input.cc (compatible, shift, warn_request,
3690 set_escape_char): Likewise.
3692 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
3693 * tbl/table.cc (table::table): Likewise.
3695 * Makefile.dev (install_dev): depends on $(DEVFILES).
3697 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
3699 * devX75, devX75-12, devX100, devX100-12: New directories.
3700 * Makefile.in: Add these to DEVDIRS.
3702 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3703 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3704 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3705 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3707 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3708 (uninstall): New target.
3709 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3710 uninstall_prog, uninstall_dev): New targets.
3712 * troff/div.cc (return_request): Treat an invalid argument as
3715 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
3717 * tmac/tmac.e ((f): Set up the environment even when there's a
3718 current diversion. Transperently throughput a call to @N.
3721 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
3723 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3724 up to vertical resolution.
3726 * tbl/table.cc (table::do_row): Change row number after printing
3729 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3731 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
3733 * Rename CHANGES to NEWS.
3735 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
3737 * libgroff/new.cc (operator new): Avoid calling malloc(0).
3739 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
3741 * man.ultrix: Removed.
3743 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
3745 * Makefile.comm (extraclean): Delete files whose names begin with
3748 * pic/troff.cc (troff_output::text): Fix typo in implementation of
3751 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
3753 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3754 * troff/div.cc (page_length, need_space, space_request): Treat
3755 invalid optional argument as missing.
3756 * troff/env.cc (number_lines): If the first argument is present
3757 but not a number, turn on line numbering, don't change the next
3758 line number and parse the remaining arguments.
3760 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3762 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
3764 * eqn/box.h: Change declaration accordingly.
3765 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
3766 the specified size was bad but don't give an error. Check for
3768 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3769 * eqn/lex (do_size): Likewise.
3771 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
3773 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3776 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
3778 * tbl/table.cc (table::init_output): Improve error message when
3779 table won't fit on one page.
3781 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
3783 * pic/troff.cc (troff_output::start_picture): Generate line
3784 containing a horizontal motion equal to the width of the picture.
3786 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3787 using GROFF_COMMAND_PREFIX environment variable.
3789 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
3791 * mdate.sh: Use $NF rather than $(NF).
3793 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
3795 * pic/main.cc (main): Use %1 not %c in argument to warning.
3797 * eqn/main.cc (main): Output code to check that geqn was given the
3800 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
3802 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3803 `ln -s ../Makefile .; make; rm -f Makefile'.
3805 * troff/hyphen: Rename to...
3807 * troff/input.cc (main): Delete -H option. Don't call
3809 * troff/env.cc: Include searchpath.h and macropath.h.
3810 (exception_dictionary): Deleted.
3812 (read_hyphen_file): Deleted.
3813 (hyphenation_language): New struct.
3814 (class trie, class hyphen_trie): Move declarations up.
3815 (trie_node::~trie_node): Deleted.
3816 (trie::delete_trie_node): New function.
3817 (trie::do_delete): New pure virtual function.
3818 (hyphen_trie::do_delete): New function.
3819 (trie::~trie): New function.
3820 (hyphen_trie::~hyphen_trie): New function.
3821 (trie::clear): No need to chcek that tp is not 0.
3822 (current_language, language_dictionary): New variables.
3823 (hyphen_word): Give an error if no current language. Use
3824 exceptions dictionary in current language.
3825 (hyphen_trie::read_patterns_file): Find file using macro_path.
3826 Allow comments (starting with %) in patterns file. Don't make it
3827 a fatal error if the file can't be found.
3828 (hyphenate): Return if no current language. Get the exceptions
3829 dictionary and the hyphenation patterns from the current language.
3830 (set_hyphenation_language): New variable.
3831 (hyphenation_patterns_file): New function.
3832 (hyphenation_language_reg): New class.
3833 (hyphenation_language_reg::get_string): New function.
3834 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3835 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
3837 * groff/groff.cc (main, help, synopsis): Delete -H option.
3838 * include/Makefile.sub: Don't define HYPHENFILE.
3839 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3840 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3841 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3842 hyphenation patterns.
3844 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
3846 * eqn/neqn.sh: New file.
3847 * eqn/Makefile.sub: Handle neqn.sh.
3849 * eqn/eqn.h: Declare `nroff' variable.
3850 * eqn/box.cc (param_table): Add `nroff' param.
3852 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3854 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3856 * troff/troff.h (WARN_FONT): New warning.
3857 (WARN_TOTAL): Change accordingly.
3858 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3859 (warning_table): Add WARN_FONT.
3860 * troff/node.cc (mount_font_no_translate): Pass argument to
3861 font::load_font. If this is non-zero, give a warning.
3862 Don't give an error message when accessing a font that has already
3863 been found to be invalid.
3864 * include/font.h (font::load, font::load_font): Add additional
3865 optional argument which suppresses error message if the font is
3867 * libgroff/font.cc (font::load_font): Handle additional argument.
3868 (font::load): Add additional argument. If this is non-null, set it
3869 to 1 and don't give error message.
3871 * include/printer.h (printer::end_page): Add argument giving
3873 * libdriver/input.cc (do_file): Pass this.
3874 * grops/ps.cc (ps_printer::end_page): Add argument.
3875 * grodvi/dvi.cc (dvi_printer::end_page,
3876 draw_dvi_printer::end_page): Add argument.
3877 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3878 columns_per_page members. New member nlines.
3879 (DEFAULT_LINES_PER_PAGE): Deleted.
3880 (tty_printer::tty_printer): Don't compute lines_per_page from
3881 font::paperlength. Don't compute columns_per_page from
3883 (tty_printer::add_char): Don't check horizontal position against
3884 columns_per_page. Grow glyphs vector if neccessary.
3885 (tty_printer::end_page): Add argument giving page_length in units.
3886 Discard lines past end of page.
3888 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
3890 * tmac/tmac.tty-char: Fix definition of \(/l.
3892 * tmac/tmac.X: Define \(en.
3894 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
3896 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3897 lpq, then use lp rather than lpr.
3899 * tmac/tmac.s (par@reset): Don't call `ad'.
3900 (par*env-init): Call `ad'.
3902 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
3904 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3907 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3908 * indxbib/indxbib.cc: Likewise.
3910 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
3912 * libgroff/putenv.c: New file.
3913 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3914 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3915 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3916 stdlib.h with AC_HAVE_HEADERS.
3918 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
3920 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3923 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
3925 * eqn/box.cc (gsize): Make it an int.
3926 (set_gsize): Parse argument handling increment or decrement.
3927 (box::top_level): Convert gsize to a string.
3929 * troff/input.cc (exit_troff): Make buf unsigned char [].
3930 Call to make_temp_iterator casts buf to char*.
3932 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3934 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3935 * Makefile.cpg (depend.temp): Likewise.
3937 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3939 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3941 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
3943 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3945 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
3947 * Version 1.06 released.
3949 * Integrate mm 1.04.
3951 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
3953 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3955 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
3957 * afmtodit/afmtodit.pl: Add -n option that disables generation of
3959 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3960 afmtodit. Regenerate.
3962 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3963 @f back past the current position.
3965 * tmac/tmac.e: Change calls to @R so that comments are not part of
3968 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
3970 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3972 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3973 check that we can link a call to a function declared in <stdio.h>.
3974 (GROFF_UNISTD_H): New macro.
3975 * configure.in: Call it.
3976 * Makefile.in: Document it.
3977 * include/posix.h: New file.
3978 * troff/troff.h: Don't include <osfcn.h>
3979 * troff/input.cc: Include posix.h.
3980 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3982 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3983 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3985 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3986 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3987 * libbib/search.cc (O_RDONLY): Delete definition.
3988 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3989 Don't include <osfcn.h>.
3991 * acgroff.m4 (GROFF_TIME_T): New macro.
3992 * configure.in: Call it.
3993 * Makefile.in: Document it.
3995 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3996 * configure.in: Call it.
3997 * Makefile.in: Document -DTRADITIONAL_CPP.
3998 * include/ptable.h: Don't include generic.h.
4001 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
4002 Afterwards remove [T1 and [T2.
4003 (ref*spec!0, ref*spec!2): Use T1 rather than T.
4004 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
4005 (ref*add-T2): Renamed from ref*add-T.
4006 (ref*add-T1): New macro.
4008 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
4010 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
4012 * libbib/index.cc: Include <fcntl.h>.
4013 (O_RDONLY): Define if necessary.
4014 (make_index_search_item, index_search_item_iterator::get_tag,
4015 index_search_item::check_files): Use O_RDONLY.
4016 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
4017 (O_RDONLY): Define if necessary.
4018 (search_list::add_file): Use O_RDONLY.
4019 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
4021 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
4024 * libbib/index.cc (S_ISREG): Define it if necessary.
4025 (index_search_item::load): Use S_ISREG.
4027 * include/driver.h: Include <errno.h>.
4029 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
4031 * eqn/box.cc (body_height): Increase default value to 85.
4032 (body_depth): Increase default value to 35.
4034 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
4036 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
4037 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
4038 protected from expansion with \E.
4040 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
4042 * Makefile (Makefile): New target.
4044 * Makefile.sub (configure, distfiles): New targets.
4046 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
4049 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
4051 * eqn/box.cc (param_table): Add body_height and body_depth.
4053 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
4055 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
4057 * psbb/Makefile.sub: Don't link with libgroff.a.
4059 * acgroff.m4 (GROFF_PUTENV): New macro.
4060 * configure.in: Call GROFF_PUTENV.
4061 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
4062 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
4065 * troff/env.cc (distribute_space): Rename force_forward argument
4066 to force_reverse. Reverse the list if force_reverse is true.
4068 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
4070 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
4072 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
4073 height or depth to be negative. Guard against SUP_RAISE quantity
4076 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
4078 * devps/generate/textmap: Add `an' (arrowhorizex).
4079 * tmac/tmac.ps: \(an overlaps horizontally.
4080 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
4082 * devps/symbolchars: Add arrowverttp, arrowvertbt.
4083 * devps/textmap: Add arrowvertex.
4084 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
4085 updownarrow delimiters.
4086 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
4088 * tbl/table.cc (simple_entry::position_vertically,
4089 block_entry::position_vertically): For a centered entry, perform
4090 the motion in two stages.
4092 * refer/refer.cc (split_punct): Don't call lookup_token if there
4095 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
4097 * troff/input.cc (token::next): Delete token_node after copying
4100 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
4103 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
4105 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
4107 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
4109 * grops/ps.cc (usage): -b option takes an argument.
4111 * devps/prologue (PLG): New procedure.
4112 * grops/ps.cc (main, usage): New -g option.
4113 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
4116 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
4118 * include/cset.h: Include <limits.h> if we have it.
4120 * libgroff/illegal.cc: New file.
4121 * include/lib.h (illegal_input_char): Use table.
4122 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
4123 * pic/lex.cc (ARG1): Renumber to 14.
4124 * eqn/lex.cc (ARG1: Likewise.
4126 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
4127 (eg 1.05.90) correctly.
4129 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
4131 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
4132 Rename $r and $R registers to $v and $V.
4133 ($r, $R): Initialize to 0.
4134 (@v, @V): New macros.
4138 * troff/input.cc (main, usage): Add -R option that says not to
4140 * eqn/main.cc (main, usage): Rename -n to -R.
4142 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
4144 * devps/DESC.in: Leave font positions 5-9 blank.
4145 * devdvi/DESC.in: Likewise.
4147 * grog/grog.pl: Handle `.PS <file' correctly.
4149 * troff/input.cc (input_stack::push): Improve error message when
4150 input stack limit exceeded.
4152 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
4154 * refer/refer.cc (main): Fix typo in handling of `a' option.
4156 * refer/refer.cc (do_bib): In state START after a newline remain
4159 * groff/groff.sh: Deleted.
4160 * groff/Makefile.sub: Delete handling of groff.sh.
4162 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
4163 to determine whether to use \X'ps:...'.
4164 * tmac/troffrc: Set 0p register to 0.
4165 * tmac/tmac.ps: Set 0p register to 1.
4167 * groff/groff.cc: Support -X option. Give warning for -TXps and
4168 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
4169 * tmac/troffrc: Support -r.X=1.
4171 * pic/troff.cc (troff_output::dot): Don't test
4172 zero_length_line_flag.
4174 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
4176 * include/lib.h: Declare getopt() and friends unless
4177 STDLIB_H_DECLARES_GETOPT is defined.
4179 * doc/chars.tr: Delete.
4180 * man/groff_char.man: New file.
4182 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
4184 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
4185 user has changed register format.
4187 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
4189 * groff/groff.cc: Get rid of device_table. Get postprocessor from
4190 `postpro' command in DESC file. Get spooler command from `print'
4191 command in DESC file. Execute spooler command with /bin/sh.
4193 * groff/groff.cc: Split Unix-specific parts into...
4194 * groff/pipeline.c: New file.
4197 * COPYING: New file.
4198 * all files: Update copyright notices.
4200 * Rearrange files. Redo Makefiles. Use autoconf.
4202 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
4204 * troff/input.c (charinfo_to_node_list): Interpret character
4205 definition with escape_char of `\'.
4207 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
4209 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
4210 Define INT_DIGITS as big enough for 64-bit integer.
4211 * lib/strtol.c: Don't include lib.h.
4212 * lib/lib.h: Delete ifdef __cplusplus stuff.
4214 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
4216 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
4217 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
4218 get DESC from current directory.
4220 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
4222 * tbl/main.c (main): Always reset the line number when reading
4225 * tbl/table.c (table::print_single_hline, table::print_double_hline,
4226 table::define_bottom_macro, table::do_row, table::do_top): Round
4227 vertical spacing up to vertical resolution.
4229 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
4231 * ps/ps.h (enum resource_type): Avoid comma at end of
4233 * dvi/dvi.c (class dvi_printer): Likewise.
4234 * dvi/tfmtodit.c (gf::load): Likewise.
4235 * refer/label.y (struct expression): Likewise.
4236 * refer/refer.c (class label_processing_state): Likewise.
4237 * refer/indxbib.c (do_file): Likewise.
4238 * troff/troff.c (enum warning_type): Likewise.
4239 * tbl/main.c (process_data): Likewise.
4240 * troff/charinfo.h (class charinfo):
4242 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
4244 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
4246 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
4248 * groff.c: Move to new groff subdirectory.
4249 * groff/Makefile: New file.
4250 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
4252 * man/mdate.sh: Use ls -L if supported.
4254 * Consolidate all header files produced by gendef into lib/defs.h.
4255 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
4256 Don't include path.h.
4257 * lib/Makefile (path.h): Don't generate.
4258 * troff/input.c: Include defs.h. Don't include config.h.
4259 * troff/Makefile (config.h): Don't generate.
4260 * refer/index.h: Don't include suffix.h.
4261 * refer/index.c: Include defs.h.
4262 * refer/indxbib.c: Include defs.h.
4263 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
4265 * refer/Makefile (suffix.h, path.h): Don't generate.
4266 * groff.c: Don't include config.h. Include defs.h.
4267 * Makefile (config.h): Don't generate.
4268 (lib/defs.h): Generate.
4269 (topclean): Remove lib/defs.h.
4271 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
4273 * lib/malloc.c, lib/getpagesize.h: Deleted.
4274 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
4276 * lib/Makefile: Delete malloc-related stuff.
4277 * lib/new.c: Workaround COOKIE_BUG if necessary.
4279 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
4280 needed header files directly.
4281 * refer/refer.h: Omit definition of DEFAULT_INDEX.
4282 * Makefile: Include definition of DEFAULT_INDEX in path.h.
4284 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
4286 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
4288 * lib/font (font::load_desc, font::load): Don't split argument of
4290 (font::handle_unknown_font_command): Change type.
4291 * ps/ps.c (ps_font::handle_unknown_font_command,
4292 handle_unknown_desc_command): Change type.
4293 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
4295 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
4297 * lib/font.h (font::handle_unknown_font_command): Add file and
4299 * lib/font.c (font::handle_unknown_font_command):
4300 * ps/ps.c (ps_font::handle_unknown_font_command):
4301 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
4302 lineno arguments. Use _with_file_and_line functions for error
4305 * lib/fontfile.c (font::unknown_desc_command_handler): New static
4307 * lib/font.c (font::set_unknown_desc_command_handler): New
4309 (font::load_desc): For unknown commands, call
4310 unknown_desc_command_handler if not null.
4311 * lib/font.h (class font): Declare them.
4312 (FONT_COMMAND_HANDLER): New typedef.
4313 * ps/ps.c (handle_unknown_desc_command): New function.
4314 (main): Set bflag if we had a -b option. Call
4315 font::set_unknown_desc_command_handler.
4316 (broken.h): Don't include.
4317 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
4319 * ps/devps/Makefile: Add `broken' command to DESC file using
4320 BROKEN_SPOOLER_FLAGS.
4322 * macros/tmac.e ([, ]): Add as synonyms for { and }.
4324 * macros/tmac.e ($p): Only exdent if \$3 > 0.
4326 * macros/tmac.e (@R, @S): New macros.
4327 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
4328 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
4329 Declare $H, $[0-9], .. macros with @S.
4330 Declare |0, |1, |2, |3 strings with @S.
4332 * macros/tmac.e (@S): Rename to @U.
4334 * macros/tmac.e (@z): Define @b and bp as empty instead of
4337 * macros/tmac.e (@m): Deleted.
4338 (@h): Don't call @m.
4339 (@z): Don't set @m trap.
4341 * macros/tmac.e ($h, $f): Define |z as empty string.
4343 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
4346 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
4348 ()f): Likewise for * register.
4350 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
4351 argument is missing, don't change $R. Call sr with three
4352 arguments when initializing.
4354 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
4356 * macros/tmac.e (sr): New macro.
4357 Initialize $r and $R using sr.
4359 * macros/tmac.e (,): Delete \*(#[.
4361 * troff/env.c (set_tabs): Read the tab type even if the position
4362 is bad. Allow the position of the first tab stop to be negative.
4364 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
4366 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
4368 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
4369 rather than -DPATHCONF_MISSING.
4370 * Makefile: Get rid of PATHCONF_MISSING.
4372 * refer/map.c: New file.
4373 * refer/index.c: Interface to mmap through map.c. Rename map_size
4375 * refer/Makefile: Handle map.c.
4376 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
4378 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
4380 * Makefile: RANLIB should be `true' if there is no ranlib.
4381 * lib/Makefile (libgroff.a): Simplify.
4382 * driver/Makefile (libdriver.a): Simplify.
4384 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
4385 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
4388 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
4390 * troff/env.c (compare_ranges): Declare as extern "C".
4392 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
4394 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
4396 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
4398 * pic/troff.c (troff_output::text): Merge in grops_output::text,
4399 but conditionalize use of \X based on \*(.T.
4400 (grops_output::*): Deleted.
4401 * pic/output.h: Delete declaration of make_grops_output.
4402 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
4403 by default. -n sets it to 0.
4404 (usage): Corresponding changes.
4405 * groff.c (main): Don't pass -x or -p to pic.
4406 * groff.sh: Likewise.
4408 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
4411 * ps/devps/afmtodit: Change calculation of asc_boundary and
4412 desc_boundary. Make these bounds inclusive.
4413 * ps/devps: Regenerate font files.
4415 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
4417 * macros/tmac.latin1: New file.
4418 * macros/tmac.tty-char: Use tmac.latin1.
4419 (tmac.tty-tr): Deleted.
4420 * macros/Makefile: Install tmac.latin1.
4421 * macros/tmac.dvi: Use tmac.latin1.
4422 * macros/troffrc: Translate \[char160] onto no-break space here.
4423 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
4425 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
4427 * macros/tmac.Xps: Use `do' request.
4429 * macros/tmac.ps: Use `do' request.
4431 * macros/tmac.e (@C): Use `do' request.
4433 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
4434 * macros/Makefile: Install tmac.X*.
4436 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
4437 * tty/Makefile: Don't install tmac.tty*.
4438 * macros/Makefile: Install tmac.tty*.
4440 * dvi/tmac.dvi: Move to macros.
4441 * dvi/Makefile: Don't install tmac.dvi.
4442 * macros/Makefile: Install tmac.dvi.
4444 * ps/tmac.ps*: Move to macros.
4445 * ps/Makefile: Don't install tmac.ps*.
4446 * macros/Makefile: Install tmac.ps*.
4448 * eqn/box.c: Provide draw_lines parameter corresponding to -D
4450 * macros/eqnrc: Set draw_lines parameter based on device.
4451 * groff.c: Don't pass -D flag to eqn.
4452 * groff.sh: Likewise.
4453 * eqn/main.c: Warn about use of -D.
4455 * troff/input.c (process_startup_file): New function.
4456 (main): Call process_startup_file().
4457 * macros/troffrc: New file.
4458 * macros/Makefile: Install troffrc.
4459 * groff.c (main): Don't pass extra -m option to troff. For a
4460 pseudo device pass the name of the pseudo device to troff using
4462 * groff.sh: Likewise.
4463 * groff.c (possible_command::prepend_arg): Deleted.
4465 * troff/input.c (do_request): New function.
4466 (init_input_requests): Bind "do" to do_request.
4468 * eqn/main.c (main): Instead of loading eqnchar from device directory,
4469 load eqnrc from macro directory.
4470 * macros/eqnrc: New file.
4471 * macros/Makefile: Install eqnrc.
4472 * ps/devps/eqnchar: Deleted.
4473 * ps/devps/Makefile: Don't install eqnchar.
4474 * dvi/devdvi/eqnchar: Deleted.
4475 * dvi/devdvi/Makefile: Don't install eqnchar.
4476 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
4479 * lib/device.[ch]: New files.
4480 * lib/font.h (font::set_device_name, font::get_device_name):
4482 * lib/fontfile.c: Use device.h.
4483 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
4484 * troff/input.c: Delete definition of `device'.
4485 (main): Don't initialize device.
4486 * troff/troff.h: Include device.h rather than declaring device.
4487 * troff/Makefile: No need to handle DEVICE.
4488 * driver/input.c: Include device.h. Don't use
4489 font::{set,get}_device_name.
4490 * groff.c, Makefile: Rename device.h to config.h.
4491 * groff.c: Use library device variable.
4492 * eqn/main.c: Use library device variable.
4493 * eqn/Makefile: No need to handle DEVICE.
4495 * lib/searchpath.[ch]: New files.
4496 * lib/Makefile: Handle searchpath.[ch].
4497 * troff/input.c (open_file, init_dirs): Deleted.
4498 (macro_dirs): Deleted.
4499 (open_mac_file, macro_source): Use class search_path.
4500 (add_string, struct string_list): Move definition.
4501 (main): Change -M option to use macro_path. Delete call to
4503 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
4504 Rewrite to use class search_path.
4505 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
4506 * lib/Makefile: fontfile.c depends on searchpath.h.
4507 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
4509 * lib/macropath.[ch]: New files.
4510 * troff/Makefile: No need to handle MACROPATH.
4512 * troff/input.c: Delete DUMP code.
4513 * lib/fontfile.c, lib/font.h: Delete
4514 font::forget_command_line_font_dirs.
4516 * troff/input.c (push_token): New function.
4517 (handle_first_page_transition): Use push_token().
4518 (process_input_stack): Change handling of a space at the beginning
4521 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
4523 * troff/input.c (font_dirs): Delete unused variable.
4525 * eqn/lex.c (do_set): Correct error messages.
4527 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
4529 * troff/input.c (do_define_string): Allow the string name to be
4530 followed immediately by a tab.
4531 (define_character): Likewise.
4533 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
4535 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
4538 * troff/input.c (input_iterator::is_file): New virtual function.
4539 (file_iterator::is_file): New function.
4540 (input_stack::end_file): New function.
4541 (input_stack::next_file): Handle the situation where there is no
4542 file on the input stack correctly. Avoid making two passes over
4544 (next_file): Make the filename optional; in this case call
4545 input_stack::end_file().
4547 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
4549 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
4550 produce a real _ charater when the current font is CW and _
4553 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
4554 expression to work around gcc 2.2 bug.
4556 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
4558 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
4560 * troff/env.c (environment::add_padding): New function.
4561 (environment::add_char): Use add_padding().
4562 (environment::space): Likewise.
4563 (environment::wrap_up_field): Add some padding if there is none
4564 and there's no current tab.
4565 * troff/env.h: Declare environment::add_padding.
4567 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
4569 * pic/pic.y: undef fmod and rand before declaring them.
4571 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
4573 * troff/input.c (main): If the DESC file specifies a font name of
4574 0, then leave the corresponding font position empty.
4576 * nroff.sh: New file.
4577 * Makefile (install.nobin): Install nroff.sh.
4579 * tty/devlatin1/R.proto: Add ao as synonym for de.
4580 * tty/tmac.tty-char: Define ao as o.
4582 * tty/dev{ascii,latin1}/R.proto: Add aq.
4583 * tty/tmac.tty-char: Delete definition of aq.
4585 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
4587 * troff/input.c (init_charset_table): Don't translate 0240.
4588 * ps/tmac.ps: Translate char160 to space.
4589 * dvi/tmac.dvi: Likewise.
4590 * tty/tmac.tty: Likewise.
4592 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
4594 * dvi/tmac.dvi: Add support for all Latin-1 characters.
4596 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
4597 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
4600 * tty/tmac.tty-char: Add \(ah.
4602 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
4603 No need to define \(FM and \(!/. Conditionalize all character
4606 * ps/devps/lgreekmap: Add +h, +f, +p.
4608 * ps/tmac.psnew: New file.
4609 * ps/Makefile: Install tmac.psnew.
4611 * troff/input.c (charinfo_to_node_list): Don't ever interpret
4612 character definitions in compatible mode.
4614 * troff/input.c (remove_character): New function.
4615 (init_input_requests): Bind remove_character to "rchar".
4617 * ps/tmac.psold: New file.
4618 * ps/Makefile: Install tmac.psold.
4619 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
4620 characters into tmac.psold. Make these definitions unconditional.
4622 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
4624 * ps/tmac.ps: Don't define \('c and \('C.
4626 * ps/devps/textmap: Move Greek characters to...
4627 * ps/devps/symbolchars:
4629 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
4631 * ps/devps/text.enc: Add quotesingle.
4632 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
4633 * tty/tmac.tty-char: Likewise.
4634 * dvi/devdvi/texmi.map: Add +h, +f, +p.
4635 * dvi/devdvi/texi.map: Add Fn.
4636 * dvi/devdvi/msam.map: Add lz.
4637 * dvi/tmac.dvi: Handle Bq, bq, aq.
4639 * pic/lex.c (get_token): Recognize 'th.
4640 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
4642 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
4644 * ps/devps/textmap: Move di, mu, +- to...
4645 * ps/devps/symbolchars:
4647 * macros/tmac.s (@XS): Don't call par@reset or fi.
4648 (XA): Call LP. Turn off adjustment. Reduce line length.
4650 * macros/tmac.s: Initially alias XS to LP.
4651 (XS): Rename to @XS.
4652 (cov*ab-init): Alias XS to @XS.
4654 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
4656 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
4657 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
4658 (token::is_size, token::changes_env): Deleted.
4659 * troff/number.c (parse_term): No need to process \s explicitly.
4660 Call tok.next() only after scale indicator has been processed.
4661 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
4663 (token::next): Handle \s, \f, \S, \H immediately rather than
4664 returning them as tokens.
4665 (token::operator==, token::description, token::add_to_node_list,
4666 token::process): Remove handling of deleted tokens.
4668 * troff/env.c (environment::add_char): When adding padding
4669 indicator character, call start_line() if necessary.
4671 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
4673 * ps/devps/afmtodit: Don't output 0 kerns.
4675 * ps/devps/afmtodit: Remove directory from name of encoding in
4676 font description file.
4678 * ps/devps/afmtodit: Improve error messages.
4680 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
4682 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
4683 * ps/devps/FontMakefile: Deleted.
4684 * ps/devps/afmname: New file.
4686 * ps/devps/symbol.sed: New file.
4687 * ps/devps/symbol.diff: Deleted.
4688 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
4689 Generate zapfdr.afm from zapfd.afm.
4691 * tty/tmac.tty (tty-char): Prefix definition with ".
4693 * macros/tmac.an (TP): Don't start a diversion if one has already
4696 * tty/tmac.tty-char: Add Latin-1 characters.
4698 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4700 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
4702 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4703 Move declaration of struct horizontal_span.
4705 * tbl/table.c (table::table): Initialize span_list.
4706 (table::~table): Delete span_list.
4708 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4710 * ps/devps/Makefile: Avoid dependency on GNU make.
4712 * ps/tmac.ps: Check that character does not already exist before
4715 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4716 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4717 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4720 * tty/tmac.tty-char: New file.
4721 * tty/Makefile: Install tmac.tty-char.
4722 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4725 * tty/tmac.tty: Fix definition of \(34.
4727 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4728 bracket-drawing characters onto |. Add *o.
4730 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4731 only if current_field.
4733 * troff/dictionary.c (dictionary::lookup): Free old_table after
4736 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
4738 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4739 whose glyphs are identical to glyphs of some Roman character.
4741 * tty/devlatin1/R.proto (bu): Deleted.
4742 * tty/devascii/R.proto (bu): Deleted.
4743 * tty/tmac.tty: Add definition of \(bu.
4745 * eqn/main.c (do_file): Pass FILE as argument.
4746 (main): Automatically load eqnchar. New options -F and -n.
4747 Pass do_file an opened FILE.
4748 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4749 No need to include font.h.
4750 * groff.sh: Likewise. Don't need to use - for standard input.
4751 Prefix files with -- if first file starts with -.
4753 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4755 * troff/env.c (environment::possibly_break_line): Don't set line
4756 to 0 across call to output_line(). Don't call output_line() until
4757 after discarding nodes after break.
4759 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
4761 * request.h (macro::empty): Declare it.
4762 * input.c (macro::empty): New method.
4763 (interpolate_macro): Don't give a WARN_SPACE if the two-character
4766 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
4768 * troff/env.c (environment::start_field): Decrement space_total
4769 when a space is frozen.
4771 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
4773 * macros/tmac.an (R): Delete macro.
4775 * troff/input.c (get_copy, token::next): Support \# (like \" but
4776 newline is ignored).
4778 * troff/input.c (token::next): Fix error message in 'Y' case.
4780 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
4782 * eqn/delim.c (define_extensible_string): Recognize any prefix of
4785 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
4787 * c++test.c: Include <osfcn.h>.
4789 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4792 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
4794 * tbl/table.c (table::divide_span): Don't count column separation
4795 if expand was specified.
4797 * tbl/main.c (process_format): Don't ignore width specs in
4798 continued format. Give warning for changing equal widths or
4799 column separation in continued format.
4800 (process_data): Set column separation, minimum width, equal
4801 columns at end of table.
4803 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
4805 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4806 node::add_discretionary_hyphen): Use soft_hyphen_char.
4807 (set_soft_hyphen_char): New function.
4808 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
4810 * Makefile (c++tested): Give more helpful message if test fails.
4812 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
4814 * troff/input.c (init_charset_table): Translate 0240 to
4815 an unbreakable space.
4817 * troff/token.h (token::hyphen_indicator): New function.
4818 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4820 * troff/input.c (translate): Allow translation to \%.
4821 * troff/node.c (node::add_char): Handle
4822 TRANSLATE_HYPHEN_INDICATOR.
4823 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4825 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4828 * tty/devlatin1/R.proto: \(hy and - should print as 055.
4830 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
4832 * groff.c (run_commands): If the last command gets a SIGPIPE send
4833 a SIGPIPE to all children than haven't yet terminated. When
4834 command terminates, set pid field to -1.
4836 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
4838 * groff.c (main): Pass an appropriate -filename option to gxditview.
4840 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
4842 * Makefile.bd (install): Remove existing program before copying.
4844 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4845 programs which have Unix counterparts to be installed with
4846 user-specified prefix.
4848 * troff/input.c (exit_troff): Don't check if exit_started.
4849 (exit_request): Don't call exit_troff if exit_started.
4851 * Makefile.bd (install.mm): Rename to install.dwbmm.
4853 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
4855 * driver/input.c (do_file): Add missing break for '#' case.
4857 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
4859 * troff/input.c (input_stack::clear): Clear past any boundaries and
4860 then add the boundaries back.
4862 * troff/input.c (exit_troff): Return immediately if already
4865 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
4867 (pg*end-page): If the text has ended and there are no more
4868 footnotes or keeps, exit.
4870 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4872 * troff/input.c (init_charset_table): Make \(rq transparent by
4875 * macros/tmac.an: Define lq and rq strings.
4877 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4879 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
4881 * troff/env.c (environment::final_break): New function.
4882 (environment::newline): Set prev_line_interrupted to 2 if
4884 * troff/env.h: Declare environment::final_break.
4885 * troff/input.c (exit_troff): Call environment::final_break()
4886 instead of environment::do_break().
4888 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4889 doesn't already exist.
4890 * macros/man.local: New file.
4891 * macros/tmac.an: Load man.local.
4892 * macros/man.ultrix: New file.
4894 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
4896 * troff/input.c (exit_groff): Rename to...
4897 (exit_troff): New function.
4899 * troff/div.c (exit_started, done_end_macro,
4900 seen_last_page_ejector): New global variables.
4901 (began_page_in_end_macro): New static variable.
4902 (exit_flag): Deleted.
4903 (top_level_diversion::top_level_diversion): Initialize
4905 (top_level_diversion): More elaborate test for whether
4906 cleanup_and_exit() should be called.
4907 Set began_page_in_end_macro if the end macro isn't yet finished.
4908 * troff/div.h (top_level_diversion::last_page_count): New data
4910 (top_level_diversion::set_last_page): New function.
4911 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4912 * troff/env.c (do_break): Zero prev_line_interrupted.
4913 * troff/input.c (exit_flag): Delete declaration.
4914 (LAST_PAGE_EJECTOR): New magic cookie.
4915 (token::next): Handle LAST_PAGE_EJECTOR.
4916 (exit_groff): Set exit_started and done_end_macro instead of
4917 exit_flag. Call top_level_diversion::set_last_page. Push a
4918 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
4919 another ejection after setting seen_last_page_ejector.
4921 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
4923 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4925 * macros/tmac.e (TH): Make sure there's room for the initial
4928 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4929 Set FVS in points rather than units.
4931 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
4933 * troff/div.c (top_level_diversion::add_trap): Don't consider the
4934 position of empty slots.
4936 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
4938 * ps/devps/S: Fix height and depth of parenrightex.
4939 * ps/devps/symbol.diff: Regenerate.
4941 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
4943 * tmac.e (u): Do underlining as in -mgs.
4945 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
4947 * tty/tty.c (tty_printer::end_page): If overstriking is
4948 suppressed, still turn overstruck horizontal and vertical lines
4951 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4954 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4956 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
4958 * Version 1.05 released.
4960 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
4962 * tty/tty.c: Instead of keeping an array of glyphs and then
4963 sorting it, keep a ordered linked list of glyphs for each line.
4965 * driver/driver.h: Include stddef.h.
4967 * tty/tty.c (compare_glyph):
4968 * refer/refer.c (rcompare):
4969 * troff/env.c (compare_ranges): Arguments of qsort comparison
4970 function should be const void *.
4972 * troff/number.c (parse_term):
4973 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4976 * refer/label.y (consider_authors): Don't access variables
4977 constructed under a condition outside that condition: put braces
4978 round for statement containing declaration; redeclare use of same
4981 * pic/pic.y (text_expr): Delete production that allows
4982 parenthesised text_expr.
4983 (expr): Allow a conditional_expr to appear in parentheses.
4984 (conditional_expr): Rename to any_expr.
4986 * mm: Install new version 1.01 from jh.
4988 * lib/font.c (font::get_width): Cache scaled widths.
4989 (font::font): Initialize widths_cache.
4990 (font::~font): Destroy widths_cache.
4991 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4993 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
4995 * c++test.c, c++test.ref: New files.
4996 * Makefile: Check that the C++ compiler works.
4998 * ps/tmac.pspic (PSPIC): Do a break.
5000 * ps/tmac.ps: Move definition of PSPIC into...
5001 * ps/tmac.pspic: New file.
5002 (PSPIC): Draw box around picture, but make it invisible to grops.
5003 * ps/tmac.ps: Load tmac.pspic.
5004 * ps/Makefile: Install tmac.pspic.
5006 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
5008 * lib/font.c (scale_round): If n is negative,
5009 subtract .5 before truncating floating point result.
5011 * lib/fontfile.c: Include <errno.h>.
5013 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
5015 * driver/input.c (get_char): Inline. Don't update current_lineno.
5016 Change callers to up date current_lineno if necessary.
5017 Use get_char() instead of getc(current_file).
5019 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
5021 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
5023 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
5025 * tty/tty.c (tmac.tty): Define \(rg as (R).
5027 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
5029 * lib/lib.h: New define a_delete.
5030 * Use a_delete instead of delete when deleting an array of objects
5031 without destructors.
5033 * lib/lib.h: Rename adelete to ad_delete.
5034 * Change uses of adelete.
5036 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
5038 * eqn/eqn.y: Include lib.h.
5040 * troff/node.c (grow_font_table): Delete old_font_table.
5042 * mm: Install new version from jh.
5044 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
5046 * tbl/table.h (format_type): Make global instead of local to class
5047 entry_format. Prefix enumerators with FORMAT_.
5048 * tbl/table.c, tbl/main.c: Corresponding changes.
5049 * refer/token.h (token_type): Make global. Prefix enumerators
5051 * refer/token.[ch]: Corresponding changes.
5052 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
5054 * troff/div.c (node::set_vertical_size): Don't name argument.
5056 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
5058 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
5059 * lib/lib.h: Define adelete accordingly.
5060 * pic/object.c (graphic_object::graphic_object):
5061 * tbl/main.c (format::~format):
5062 * tbl/table.c (table::~table):
5063 * refer/ref.c (reference::~reference, reference::merge,
5064 reference::insert_field, reference::delete_field): Use adelete.
5066 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
5068 * tbl/table.h: Corresponding changes.
5070 * common.c (common_output::dashed_arc, common_output::dotted_arc):
5071 Ensure total_angle is positive.
5073 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
5075 * refer/ref.c (reference::merge, reference::insert_field,
5076 reference::delete_field): Avoid delete[0].
5078 * refer/token.c (init_special_chars): Move calls to cmupper
5079 outside calls to init_two_char_letter to work around bug in gcc
5082 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
5084 * lib/new.c (operator new): Use __builtin_new for g++.
5086 * pic/object.c (graphic_object::~graphic_object): Don't use
5089 * pic/object.c (output::compute_scale): Initialize max_width and
5092 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
5094 * troff/input.c (write_request): Call fflush.
5096 * troff/node.h (class composite_node): Move declaration to node.c
5097 * troff/input.c (charinfo_to_node): Rename to ...
5098 (charinfo_to_node_list): Return node list rather than composite
5100 * troff/node.c (make_composite_node): New function.
5101 (make_node, add_char): Call make_composite_node instead of
5103 (class composite_node): Add a tfont * member. Delete font_size
5105 (composite_node::composite_node, composite_node::copy,
5106 composite_node::size): Corresponding changes.
5107 (composite_node::tprint): Provide constant spacing, emboldening
5108 and track kerning as specified in tfont.
5109 (composite_node::width): Change width calculation accordingly.
5110 * troff/env.h (environment::composite): New member.
5111 (environment::is_composite, environment::set_composite): New
5113 * troff/env.c (environment::environment): Initialize composite.
5114 * troff/input.c (charinfo_to_node): Call
5115 environment::set_composite.
5116 * troff/node.c (make_composite_node, make_glyph_node): Use the
5117 plain version of the tfont if the environment is composite.
5119 * troff/node.c (font_info::get_space_width): Additional argument
5120 giving space_size. Handle constant space correctly. Scale by
5121 space_size unless constant spaced.
5122 (env_sentence_space_width): New function.
5123 * troff/node.h: Declare it.
5124 * troff/env.h (environment::get_space_size,
5125 environment::get_sentence_space_size,
5126 environment::get_narrow_space_width,
5127 environment::get_half_narrow_space_width): Make inline.
5128 (environment::get_space_width): Make inline. Just call
5130 * troff/env.c: Delete definitions for funtions made inline.
5131 (environment::space_newline, environment::space): Use
5132 env_sentence_space_width(). Don't scale by space_size.
5133 * troff/node.h: Move declarations of env*space_width() functions
5136 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
5138 * macros/tmac.s (PS): Don't try to set negative indent.
5140 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
5142 * pic/pic.y: Fix min function.
5144 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
5146 * man/mdate.sh: Clear LANGUAGE.
5148 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
5150 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
5151 * pic/lex.c: New COMMAND keyword.
5152 * pic/pic.y (print_args, print_arg): New rules.
5153 (placeless_element): Use print_args for PRINT.
5154 New COMMAND element.
5156 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
5158 * troff/input.c (terminal): Handle missing argument correctly.
5160 * pic/pic.y (text_expr): New rule.
5162 * pic/pic.y: Implement := operator.
5164 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
5166 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
5169 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
5171 * ps/devps/dingbatsrmap: Include this in the distribution.
5173 * macros/tmac.doc: Replace with new version from 2nd Networking
5174 Release. Fix loading of doc-* files.
5175 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
5176 * macros/tmac.doc.old: New file. Apply fixes that had been
5177 applied to old tmac.doc.
5178 * macros/tmac.andoc: Check that we're running under groff.
5179 * macros/Makefile: Rework.
5181 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
5183 * tbl/table.h (format_type):
5184 * refer/token.h (token_type): If NESTED_TYPES is defined, use
5185 typedef to make these types visible at file scope.
5186 * Makefile: Add NESTED_TYPES configuration option.
5188 * troff/div.c (mark): At the top level use the value of
5189 nl_reg_contents rather than the current vertical position.
5191 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
5193 * tty/tty.c: Implement \D for horizontal or vertical lines.
5194 (tty_printer::set_char): Use vec_used+2 as serial number.
5195 Don't allow size of vector to exceed USHRT_MAX-2.
5196 Split off part into...
5197 (tty_printer::add_char): New function.
5198 (tty_printer::draw): New function.
5199 (compare_glyph): Handle equal serial numbers.
5200 (tty_printer::end_page): Handle overstruck characters from \D.
5201 (main, usage): Implement -d option.
5203 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
5205 * tbl/main.c (process_format):
5206 * eqn/text.c (split_text):
5207 * troff/input.c (token::next): Use inner block for declarations
5208 with initializers in switch statement.
5210 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
5212 * pic/common.c (common_output::dash_line): Cope with zero-length
5215 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
5217 * Version 1.04 released.
5219 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
5221 * macros/tmac.an (TH): Define a macro an-init to define variables
5222 based on command line arguments.
5223 (an-header): Call it.
5225 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
5227 * Makefile (install.mm): Rename to install.dwbmm.
5229 * Makefile: Integrate mm.
5230 * mm: New directory.
5232 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
5234 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
5237 * pic/troff.c (troff_output::simple_spline,
5238 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
5239 shadowing parameter.
5241 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
5243 * lib/ptable.h: Add explicit casts when converting from unsigned
5246 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
5247 * dvi/devdvi/Makefile: Install SA, SB.
5249 * refer/indxbib.c: Add declaration of mktemp.
5251 * refer/lookbib.c: Add declaration of isatty.
5253 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
5255 * pic/lex.c (interpolate_macro_with_args): While collecting
5256 arguments, keep track of whether we're in a string.
5258 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
5260 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
5261 down with \v, so as to avoid problems with top of page trap
5262 setting no space mode.
5264 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
5266 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
5268 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
5270 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
5271 Improve error message.
5273 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
5275 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
5278 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
5280 * groff.c (possible_command::execp): Always use _exit() after a
5283 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
5284 NO_SYS_WAIT_H configuration options.
5285 * groff.c: Use these options. Use POSIX-style macros to extract
5286 fields from the status returned by wait().
5288 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
5290 * tbl/table.c (table::compute_separation_factor): Allow the
5291 separation factor to drop to 0.
5293 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
5295 * refer/search.c: Include <errno.h>.
5297 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
5299 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
5301 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
5304 * pic/lex.c (input_stack::bol): Move definition out of class body.
5306 * pic/main.c: On MSDOS munge argv[0].
5308 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
5310 * lib/ptable.c (hash_string): Use unsigned long rather than
5312 (next_ptable_size): Use unsigned rather than int. Give an error
5313 message if we've hit the largest table size.
5314 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
5317 * pic/object.h (object_spec): Make flags unsigned long. Declare
5318 flags as const unisgned long rather than as enums.
5320 * pic/output.c: Deleted.
5322 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
5324 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
5325 Add additional argument.
5326 (line_entry::note_double_vrule_on_{left,right}): Set value of
5327 douvle_vrule_on_{right,left} flag according to argument.
5328 (simple_line_entry::simple_print,
5329 simple_line_entry::double_line_print): If adjacent to double vrule
5330 on a corner extend rather than shorten the rule by half the double
5333 * troff/number.c (parse_term): In checking for overflow, handle the
5334 case where the current horizontal position is negative.
5336 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
5338 * pic/object.c (draw_arrow): Check for object having zero length.
5340 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
5342 * eqn/main.c (do_file): Split off inline equation handling into...
5343 (inline_equation): New function. Search for starting delimiter
5345 (delim_search): New function. Don't recognize a delimiter that
5346 occurs in the name of an escape sequence, number register, string
5349 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
5351 * eqn/delim.c (delim_box::compute_metrics): Don't call
5352 define_extensible_string if left is 0.
5353 (delim_box::output): Don't print the left delimiter if left is 0.
5354 (delim_box::debug_print): Check for left == 0 before calling printf.
5356 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
5358 * troff/Makefile (majorminor.c): Include only digits in
5361 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
5363 * refer/dirnamemax.c: new file.
5364 * refer/genlimits.c: Deleted.
5365 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
5366 Don't check path length.
5367 * refer/Makefile: Add dir_name_max.o; delete genlimits.
5368 * Makefile: Add PATHCONF_MISSING option.
5370 * refer/indxbib.c (get_cwd): New function.
5371 (main): Use get_cwd().
5372 * lib/getcwd.c: New file.
5373 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
5375 * lib/Makefile: Compile getcwd.o.
5377 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
5380 * refer/indxbib.c (main): Check success of mktemp.
5382 * lib/tmpfile.c: New file.
5383 * lib/Makefile: Add tmpfile.c.
5384 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
5385 * ps/ps.h: Delete declaration of mktemp().
5386 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
5387 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
5388 * driver/driver.h: No need now to include errno.h.
5390 * everywhere: Set errno to 0 before calling fopen().
5392 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
5393 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
5394 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
5396 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
5398 * troff/env.h (translate_space_to_dummy): Declare it.
5399 * troff/env.c (environment::space_newline, environment::space):
5400 If translate_space_to_dummy is set then make the width of spaces 0.
5401 * troff/input.c (translate): If the second character of a
5402 translation is a space, translate to unbreakable space. If the
5403 first character is a space, set or clear translate_space_to_dummy
5404 according to whether the second character is \&. Weird!
5406 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
5408 * groff.c (run_commands): Don't use non-zero exit code because a
5409 command gets SIGPIPE.
5411 * groff.c, groff.sh: Use -mXps with -TXps.
5413 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
5414 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
5415 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
5416 (ps_printer::special): New specials invis and endinvis.
5417 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
5418 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
5419 (ps_printer::end_page): Check that invis_count == 0.
5420 (ps_printer::invis_count): New member.
5421 (ps_printer::ps_printer): Initialize invis_count to 0.
5423 * troff/env.c (environment::hyphenate_line): Hyphenation
5424 indicator at beginning of word inhibits splitting after -, \(em
5427 * pic/pic.y (element): Allow another element to follow } without
5428 any intervening separator.
5430 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
5432 * pic/lex.c (get_delimited): Allow tabs before delimiter.
5434 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
5436 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
5437 declaration of wait() in header files.
5438 * Makefile: Get rid of -DHAVE_UNION_WAIT.
5440 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
5442 * lib/lib.h: Declare return type of strerror as char *.
5444 * man/Makefile: Add g flag to sed substitutions.
5445 * Makefile (shgroff, bindist): Likewise.
5447 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
5449 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
5450 * ps/devps/prologue (PBEGIN): Define showpage after pushing
5453 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
5455 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
5458 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
5460 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
5463 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
5465 * troff/input.c (define_number_reg): If currently undefined,
5466 don't define it if the argument is an invalid expression.
5468 * Makefile: Ignore return value of `if' commands without `else'
5471 * Makefile: Split up CPPDEFINES into a series of separate
5472 configuration options.
5474 * troff/input.c (init_registers): Use time_t instead of long
5475 unless LONG_FOR_TIME_T is defined. Use returned result rather
5476 than passing pointer.
5477 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
5479 * lib/Makefile (fontpath.h): Use gendef.
5481 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
5483 * troff/input.c (input_iterator::shift): Delete argument name.
5484 * troff/node.c (suppress_output_file::really_begin_page,
5485 suppress_output_file::really_transparent_char, node::ascii_print,
5486 node::tprint): Delete names of unused arguments.
5488 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
5490 * refer/label.y (string): Pass $4 to command_error.
5492 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
5494 * Version 1.03 released.
5496 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
5498 * Makefile: Pass definition of SHELL in SUBFLAGS.
5501 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
5502 ps/Makefile: Use gendef to construct header files that are
5503 constructed from the Makefile.
5505 * macros/Makefile: make all should build stripped version of tmac.e.
5507 * refer/Makefile (clean): Remove y.output.
5509 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
5511 * ps/pfbtops.c (main): Add -v option which prints out a version
5513 * ps/Makefile (pfbtops): Link with libgroff.a.
5515 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
5517 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
5518 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
5520 * refer/lkbib.c (main): Always terminate reference with blank
5522 * refer/lookbib.c (main): Likewise.
5524 * refer/linear.c (file_buffer::load): Check that the file is not a
5527 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
5528 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
5529 Delete second inclusion of <sys/param.h>.
5531 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
5533 * troff/token.h (token::special): Deleted.
5535 * tbl/main.c (process_format): Rework so that opt->tab_char is
5536 recognized only when appropriate.
5538 * ps/Makefile (clean): Remove pfbtops.
5540 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
5542 * lib/font.c (text_file::next): Don't return if we have got a
5545 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
5547 * refer/refer.c (store_reference): Get hash code from old_table[i]
5548 when rehashing the table.
5550 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
5552 * eqn/box.c (box::top_level): Save size and prev size using \R and
5553 restore it afterwards. Set the size to the size at the beginning
5555 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
5556 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
5558 * refer/Makefile (limits.h): Use ./genlimits.
5560 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
5562 * refer/index.c: Delete declarations of stat() and fstat().
5564 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
5566 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
5568 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
5570 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
5572 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
5574 * troff/input.c (token::get_char): Handle \e.
5576 * refer/linear.c: Delete declarations of fstat() and stat().
5578 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
5580 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
5581 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
5583 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
5585 * troff/input.c (do_define_macro): Improve error handling for end
5586 of file while defining macro.
5588 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
5590 * eqn/box.h: Fix declaration of set_gsize.
5591 * eqn/box.c (set_gsize): Make argument const char *.
5592 (gsize): Declare as char *.
5593 * eqn/main.c (main): Don't convert gsize to int.
5594 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
5596 * Version 1.02 released.
5598 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
5600 * macros/tmac.andoc: New file.
5601 * macros/Makefile: Install tmac.andoc.
5603 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
5604 operator new and delete on OP_DELETE_BROKEN not being defined.
5605 * Makefile: Mention OP_DELETE_BROKEN.
5607 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
5609 * Makefile (bindist): Pass SUBFLAGS.
5611 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
5613 * Makefile, groff.c: Pass definitions to groff.c via device.h.
5615 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
5618 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
5620 * ps/ps.h, ps/psrm.c: Make comment_table and
5621 header_comment_table local to resource_manager::process_file.
5623 * groff.sh: With -TXps pass -printCommand option to gxditview.
5625 * groff.c (possible_command::print): Implement using
5626 append_arg_to_string.
5628 * xditview: Merge in new implementation with own ChangeLog.
5630 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
5632 * groff.c (main): Implement PRINT_OPTION.
5633 (append_arg_to_string): New command.
5634 (device_table): Set PRINT_OPTION flag for Xps.
5636 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
5638 * troff/groff.h: Rename to troff.h.
5640 * pic/lex.c (lookup_keyword, docmp): New functions.
5641 (get_token): Use new lookup_keyword.
5642 Don't include key.h.
5643 * pic/key.[ch], pic/pic.gperf: Deleted.
5644 * pic/Makefile: Remove gperf stuff.
5646 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
5648 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
5650 * troff/Makefile, troff/node.c: Move definition of
5651 STORE_WIDTH into node.c.
5653 * etc/grog.pl, etc/grog.sh: Support -mdoc.
5655 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
5657 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
5658 dvi/devdvi/texb.map: Add lq and rq.
5659 dvi/devdvi: Regenerate fonts.
5660 * ps/devps/textmap: Add lq and rq.
5661 * ps/devps: Regenerate fonts.
5662 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
5663 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
5665 * pic/object.c (position_rectangle): When checking radius
5666 cope with possiblity that width or height is negative.
5667 (box_object::box_object): Have separate xrad and yrad with
5668 signs matching signs of dim components.
5669 (box_object::{north,south}_{east,west}): Use xrad and yrad.
5670 (box_object::print): With rounded boxes use absolute values
5671 for dim and rad arguments.
5673 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
5676 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
5678 * various files: Add explicit destructors to keep Saber CC +d
5681 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
5683 * eqn/box.c (box::top_level): Restore fonts correctly after
5684 font changes in line containing inline equation. Also
5685 restore previous font as well as current font.
5686 * eqn/pbox.h: Define necessary string and register names.
5688 * troff/input.c (token::next): Case 'R' calls do_register.
5689 (do_register): New function.
5691 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
5693 * groff.c, groff.sh: Support Xps device. Allow each device
5694 to have a pseudo_name and a real_name.
5696 * groff.c (run_commands): Don't print `Broken pipe' messages.
5698 * ps/pfbtops.c: New file.
5699 * ps/Makefile: Add pfbtops.
5701 * troff/number.c (parse_term): Improved error message.
5703 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
5705 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5707 * Makefile: Integrate refer.
5708 * refer: New directory.
5709 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5710 man/lkbib.man: New files.
5711 * man/Makefile: Support refer man pages.
5713 * lib/lib.h: Declare is_prime.
5714 * lib/prime.c: New file.
5716 * troff/input.c (macro_source): New function.
5717 (init_input_requests): Bind "mso" to macro_source.
5719 * troff/env.c (environment::possibly_break_line): Maintain
5720 pointer to pointer to node to be split in ndp so as to avoid
5721 using address of freed node.
5723 * troff/env.c (environment::hyphenate_line): Maintain pointer to
5724 pointer to first node to be hyphenated in startp so as to
5725 avoid using address of freed node.
5727 * troff/env.c (class trie, class hyphen_trie): Make the
5728 elements of the trie be of type char not unsigned char.
5729 Declare arguments to be const char* instead of unsigned char *.
5731 * troff/env.c (hyphenate): Initialize hbuf[0].
5733 * troff/input.c (set_string): Declare p to be char * and cast
5734 *p to unsigned char when necessary.
5736 * troff/input.c (do_define_macro): Declare s to be const
5737 char*. Cast element to unisgned char when necessary, Declare
5738 d to be an int. Handle EOF better.
5740 * troff/Makefile, troff/input.c: Different scheme for passing
5741 definitions of MACROPATH, HYPHENFILE and DEVICE.
5743 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
5745 * tty/devascii/R.proto: Delete entry for em.
5746 * tty/devlatin1/R.proto: Likewise.
5748 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
5750 * troff/input.c (translate): Stop when we get a space. Treat eof
5753 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5755 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
5757 * tbl/main.c (process_format): A font name following a `f'
5758 modifier that starts with a digit can be only one character long.
5759 Also deal with EOF on the second character of the font name.
5761 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
5763 * troff/input.c (token::next): Turn \~ into an
5764 unbreakable_space_node.
5765 * troff/node.c (unbreakable_space_node): New class.
5766 * troff/node.h: Declare it.
5768 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
5770 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
5771 it's >= 0, before outputting it as a single byte.
5773 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
5775 * lib/font.c: Make font_char_metric::code an int.
5776 (font::get_code): Change return type to int.
5777 (font::load): Allow code to be arbitrary integer.
5778 * lib/font.h (font::get_code): Change return type to int.
5779 (font::number_to_index): Change argument type to int.
5780 * troff/input.c (token::next): In case 'N', allow any value.
5781 Store value in token::val.
5782 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5783 (token::get_char, token::add_to_node_list, token::process): Get
5785 (charinfo::set_number): Change argument to int.
5786 (charinfo::get_number): Require that NUMBERED flag be set.
5787 (get_charinfo_by_number): Store numbered characters not between 0
5788 and 255 in a dictionary.
5789 * troff/charinfo.h (get_charinfo_by_number): Change argument type
5791 (charinfo::number): Change type to int.
5792 (charinfo::set_number): Change type of set_number to int.
5793 * troff/node.c (troff_output_file::put_char_width,
5794 troff_output_file::put_char): Test whether character is numbered
5795 using charinfo::numbered().
5796 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5798 * lib/nametoindex.c: New implementation to cope with arbitrary
5801 * troff/input.c (token::operator==): Test val for
5802 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5805 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5806 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
5808 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
5810 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
5813 * all Makefiles: rm targets of cp and >.
5815 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5818 * eqn/lex.c (def_table): Add dollar.
5820 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
5822 * troff/input.c (do_width): Push back newline before closing delim
5825 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
5827 * groff.c (possible_command::prepend_arg): New function.
5828 (main): Prepend device -m option.
5829 * groff.sh: Put device -m options before command-line options.
5831 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
5833 * macros/tmac.an (IP): Quote argument to TP.
5835 * ps/ps.c (main): New option -b, which sets...
5836 (broken_flags): New variable.
5837 (ps_printer::~ps_printer): Incorporate the setup section in the
5838 prolog if (broken_flags & NO_SETUP_SECTION).
5839 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5840 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5841 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5842 ps_printer::print_needed_font_comment,
5843 ps_printer::print_supplied_font_comment,
5844 ps_printer::print_include_font_comments,
5845 ps_printer::lookup_doc_font, ps_printer::download_fonts,
5846 ps_printer::read_download_file, read_document_fonts, add_font,
5847 skip_line, parse_fonts_arg, document_font::document_font,
5848 document_font::~document_font, document_font::download,
5849 ps_output::include_file): Deleted.
5850 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5851 rather than %!PS-Adobe-2.0. Make calls to
5852 resource_manager::need_font for each font that we used. Replace
5853 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5854 print_supplied_font_comment, print_needed_font_comment by call to
5855 resource_manager::print_header_comments. Output %%Orientation
5856 comment. Output %%Requirements: numcopies comment if ncopies > 1.
5857 Don't output the prolog directly. Instead call
5858 resource_manager::output_prolog. Only define #copies when ncopies
5859 > 1. Delete calls to print_include_font_comments and
5860 download_fonts. Add call to resource_manager::document_setup.
5861 (ps_printer::do_file): Call resource_manager::import_file instead
5862 of including it ourselves.
5863 (ps_printer::do_import): Likewise. Also don't call
5864 merge_import_fonts. Push userdict on the dictionary stack before
5865 and pop it afterwards.
5866 Move declaration of ps_output into ps.h.
5867 * ps/psrm.c: New file implementing resource_manager class.
5868 * ps/ps.h: New file declaring ps_output and resource_manager
5870 * ps/devps/zapfdr.ps:
5871 * ps/devps/symbolsl.ps:
5872 * ps/devps/prologue: Use 3.0 conventions.
5873 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5874 Add default definition of BROKEN_SPOOLER_FLAGS.
5875 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
5876 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5878 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
5880 * etc/grog.pl: New file.
5881 * Makefile (GROG): New variable.
5882 Add GROG to SUBFLAGS.
5883 * etc/Makefile (GROG): New variable.
5884 (install.nobin): Install $(GROG) rather than grog.sh.
5886 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
5888 * eqn/special.c (special_box::compute_metrics): Make the input and
5889 output strings the same. Get the new height and depth from the
5890 predefined height and depth registers. Also make subscript kern
5892 (special_box::compute_subscript_kern, special_box::compute_skew):
5895 * eqn/box.c (pointer_box::compute_skew,
5896 simple_box::compute_metrics, box::top_level)
5897 * eqn/text.c (prime_box::compute_metrics,
5898 prime_box::comput_subscript_kern)
5899 * eqn/limit.c (limit_box::compute_metrics):
5900 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5901 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5902 negative numbers in `nr' requests with a leading 0.
5904 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
5906 * eqn/special.c: New file.
5907 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
5908 Add new rule for simple.
5909 * eqn/lex.c (token_table): Add SPECIAL.
5910 * eqn/box.h: Declare make_special_box.
5911 * eqn/Makefile: Add special.[co].
5913 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
5915 * ps/devps/prologue: Possibly set packing to true while defining.
5916 Create grops dictionary here. Initialize local variables before
5917 defining procedures.
5918 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5919 the dictionary stack. Set strokeadjust and overprint to false if
5920 the relevant operators are defined.
5921 (PEND): New procedure.
5922 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5923 prologue. Do everything else in the setup section.
5924 (ps_printer::do_import): Just call PBEGIN and PEND around the
5925 picture. Also push userdict before, and pop it afterwards.
5927 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
5929 * troff/node.c (bracket_node::tprint): Brackets were being printed
5932 * macros/tmac.an (SH, SS): Set fill mode.
5934 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
5936 * troff/div.c (top_level_diversion::begin_page): Set
5937 high_water_mark to 0.
5939 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
5941 * man/mdate.sh: New file.
5942 * man/mdate.c: Deleted.
5943 * man/Makefile: Use mdate.sh instead of mdate.
5946 * eqn/lex.c (do_gsize): Supply missing argument to error message.
5948 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
5950 * man/mdate.c: New file.
5951 * man/*.man: Replace modification date by @MDATE@.
5952 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5953 (mdate): New target.
5955 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5956 Remove illegal input characters.
5958 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
5960 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5962 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
5964 * troff/div.c (begin_page): Change behaviour when
5965 !first_page_begun and !break_flag.
5967 * troff/input.c (do_name_test): Return 0 if argument is empty.
5969 * troff/input.c (read_long_escape_name): Require closing ] to be
5970 at same input level as opening [.
5972 * troff/input.c (read_increment_and_escape_name): New function.
5973 (get_copy, process_input_stack): Use this for \n.
5975 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
5977 * troff/div.c (top_level_diversion::begin_page): Ignore the
5978 current value of page_number if !first_page_begun.
5980 * groff.c (main): Fix declaration of buf.
5982 * troff/input.c (do_name_test): New function.
5983 (token::next): Implement \A.
5984 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5985 (token::description, token::add_to_node_list, token::process):
5986 Handle TOKEN_ESCAPE.
5987 * troff/token.h: New token TOKEN_ESCAPE.
5989 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
5991 * pic/main.c (do_picture): Allow space before and after filename
5992 following `<'. Check that the filename is not empty.
5994 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
5996 * Version 1.01 released.
5998 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
6000 * dvi/tmac.dvi: ftr HR to H.
6002 * macros/tmac.e: Round up computation of $r.
6004 * xditview/tmac.X: Don't give up completely in compatibility mode.
6005 Use \n(.s instead of \n[.s].
6007 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
6008 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
6009 Add u to factors inside \s[...]. Rename frac to dvi-frac.
6010 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
6011 short names in the char definitions.
6013 * ps/tmac.ps: Don't give up completely in compatibility mode.
6014 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
6015 quote in front of \n(.s. Add u to factors inside \s[...].
6017 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
6019 * tty/tmac.tty: Call the nroff request.
6021 * macros/tmac.e ((x, )x): Better definitions that work properly
6023 (@0, @1): Helper macros for (x.
6025 * macros/tmac.e ($s, hl): Use \l rather than \D.
6027 * tty/tmac.tty: Make it work better in compatibility mode.
6028 (pchar): Rename to tty-char.
6030 * macros/tmac.e (@E): New macro.
6031 (r, i, b, rb, bi): Use @E.
6033 * macros/tmac.e (@F): Don't use (;...) syntax.
6035 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
6036 it was modified for groff.
6038 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
6040 * macros/tmac.e (<., .>): Removed.
6041 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
6043 * macros/tmac.e: Remove check that groff is being used.
6045 * macros/tmac.e (@C): Change families only if using groff; turn
6046 compatibility mode off while changing familes. Save compatibility
6047 mode before changing families and restore it afterwards.
6049 * macros/tmac.e (@h): Remove test for offset + line length.
6051 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
6052 (lo, th, ac): Define to call @S instead of using als.
6054 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
6055 the ratio of the vertical spacing to the point size in units
6056 expressed as a percentage. Use these instead of $10r and $10R,
6057 Delete $10r and $10R.
6059 * lib/font.c (font::load): In default computation of space_width,
6060 divide by sizescale. Use scale_round.
6062 * macros/tmac.an (TP): Don't call `nf'.
6063 (an-do-tag): Don't call `fi'.
6065 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
6067 * troff/input.c (process_input_stack): Handle the case where
6068 spaces at the beginning of an input line are followed by a
6071 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
6073 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
6074 * groff.sh: Use pic -x with the dvi device.
6076 * dvi/devdvi/FontMakefile (H): Don't use -s.
6078 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
6079 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
6080 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
6083 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
6085 * ps/psfig.diff: New file.
6086 * ps/tmac.psfig: New file.
6088 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
6090 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
6091 (]-): Don't call ref*do-tl.
6093 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
6095 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
6096 (fn@do-FS): Rename to fn*do-FS.
6098 * troff/input.c (transparent_translate): New function.
6099 (process_input_stack): Apply transparent_translate before calling
6100 diversion::transparent_output(unsigned char).
6102 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
6104 * troff/input.c (do_define_macro): Define the macro before calling
6107 * xditview/Makefile: Add DEVICES variable. Change install target
6110 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
6112 * groff.c (run_commands): Handle the possibility that there are
6113 child processes other than those forked by us.
6115 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
6117 * lib/string.c (string::append): New function.
6118 * lib/stringclass.h: Declare it.
6120 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
6122 * eqn/main.c (main): New option -N which sets
6123 no_newline_in_delim_flag.
6124 (do_file): If no_newline_in_delim_flag is set don't allow newlines
6126 * groff.c (main): Pass -N on to eqn.
6127 (help, synopsis): Mention -N.
6128 * groff.sh: Implement -N.
6130 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
6132 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
6133 (]-): Call ref*do-tl if ref*need-tl is non-zero.
6134 (XP): Allow as initializer.
6136 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
6138 * troff/env.c (environment::wrap_up_field): If field_spaces are
6139 non-zero and we have a current_tab, subtract padding from
6140 tab_distance. If this makes tab_distance <= 0, use the next tab
6141 stop instead. If there isn't any next tab or it's a left tab,
6142 wrap up the current tab.
6143 (environment::start_field): Initialize tab_precedes_field.
6144 (environment::wrap_up_tab): If there's a current field, update
6145 pre_field_width, field_distance and tab_precedes_field.
6146 * troff/env.h (environment::tab_precedes_field): New member.
6148 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
6150 * ps/ps.c (ps_printer::do_file): New function.
6151 (ps_printer::special): Bind to `file' special.
6152 (ps_printer::do_exec): Set ndefined_styles to 0.
6154 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
6156 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
6157 Avoid stripping first character from the start of unrecognized
6158 escapes. Use lex_error instead of error to report errors.
6159 * eqn/lex.c (get_token): Rework handling of escapes.
6160 (lex_error): Move declaration into...
6163 * xditview/xditview.c (main): Make -page option work.
6165 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
6167 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
6169 * macros/tmac.s (B2): Correct size of box.
6171 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
6173 * macros/tmac.s (B2): Postpone drawing the box until in the
6174 top-level diversion.
6176 * tty/tmac.tty: Add font translations for C, CR, CW.
6178 * groff.c (synopsis, help): Document -i.
6179 * groff.sh: Implement -i.
6181 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
6182 Simplify the construction of SN.
6184 * troff/number.c (parse_term): Give `|' a higher precedence.
6185 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
6188 * macros/tmac.s (B2): Use par@finish instead of par@reset.
6190 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
6192 * lib/string.c (string::move): New function.
6193 * lib/stringclass.h: Declare it.
6195 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
6197 * troff/env.c (distribute_space): Add optional argument
6199 (environment::wrap_up_field): Call distribute_space with
6200 `force_forward' argument of 1.
6202 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
6204 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
6205 Inline it. Move reallocation into...
6206 (string::grow1): New function.
6207 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
6208 dependencies to include library header files.
6209 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
6211 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
6213 * macros/tmac.s (@NH): Use the same number registers than -ms does
6214 for the heading level counters. Use the same string that -ms does
6215 for the number for this heading.
6217 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
6219 * lib/new.c (operator new): Cast result of malloc to char *.
6221 * troff/input.c (spring_trap, lookup_request): Add assert that nm
6224 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
6226 * groff.c (main): Support -i.
6228 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
6230 * pic/pic.h: Include <osfcn.h>.
6232 * ps/ps.c: Add declaration of mktemp.
6234 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
6235 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
6236 argument as union wait *.
6237 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
6238 argument to union wait *.
6240 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
6242 * tty/tmac.tty: Add definition of \(co.
6244 * pic/object.c (make_arc): Only increase radius when radius
6245 strictly less than d.
6246 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
6249 * troff/env.c (environment::environment(symbol),
6250 environment::environment(const environment *)): Initialize
6253 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
6255 * tbl/main.c (main): Add exit(0).
6257 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
6259 * pic/main.c (main):
6260 * eqn/main.c (main):
6261 * tbl/main.c (main):
6262 * etc/soelim.c (main):
6263 * driver/printer.c (printer::~printer):
6264 * troff/node.c (real_output_file::~real_output_file,
6265 real_output_file::flush): Check for errors on stdout.
6267 * most files: Add 1991 to copyright notice.
6269 * macros/tmac.s: Don't test \n(.x and \n(.y.
6271 * troff/input.c (token::next): Rename `escape_char' label to
6272 `handle_escape_char' and `normal_char' label to
6273 `handle_normal_char'.
6275 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
6277 * groff.c (main, synopsis, help): Support -a option.
6278 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
6279 to trflags while parsing options.
6281 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
6283 * troff/number.c (parse_term): With `m', `M' and `n' scale
6284 indicators, convert scale factor to hunits before scaling.
6286 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
6288 * lib/font.c (scale_round): Better test for overflow when n is
6291 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
6293 * tbl/main.c (process_format): Add second argument of type
6294 options*. Change callers. Allow opt->tab_char as well as '\t'
6295 between format items.
6297 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
6299 * macros/tmac.an (PD): With no arguments, make sure register PD is
6301 (TH): Call PD with no argument, instead of setting register PD
6304 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
6306 * Version 1.00 released.
6308 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
6310 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
6312 * dvi/devdvi/DESC: Mount CW instead of CR.
6314 * dvi/tmac.dvi: Add definition of \(tm.
6316 * dvi/devdvi/texsy.map: Add lh, and rh.
6317 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
6318 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
6320 * dvi/devdvi/FontMakefile: Generate H from cmss10.
6321 * dvi/devdvi/Makefile: Install H.
6322 * dvi/devdvi/H: New file.
6324 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
6326 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
6329 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
6331 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
6333 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
6335 * macros/tmac.s (@EN): Handle the case where the equation is empty
6336 but the label is not.
6338 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
6340 * troff/groff.h: New warning category WARN_SPACE.
6341 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
6342 WARN_SPACE to warning_table.
6343 (interpolate_macro): Give a warning of type WARN_SPACE if the name
6344 is longer than two characters and is not defined, but the first
6345 two characters do make a defined name.
6347 * PROBLEMS: New file.
6349 * CHANGES: New file.
6350 * README-0.6, README-1.00: Deleted.
6352 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
6353 * xditview/devX75/Makefile: Make devX75-12.
6354 * xditview/devX100/Makefile: Make devX100-12.
6356 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
6357 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
6359 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
6361 * README-0.7: Rename to README-1.00.
6363 * macros/tmac.pic: New file.
6364 * macros/Makefile (install.nobin): Install tmac.pic.
6366 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
6368 * troff/env.c (hyphen_word): Correct the test for whether the
6369 token is a hyphen. Reset npos to 0.
6371 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
6373 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
6375 * macros/tmac.s (ds*common-end): Call par*reset.
6377 (par@reset-indent): Deleted.
6379 * macros/tmac.s (@IP): Divert the label.
6381 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
6383 * xditview/draw.c (setGC): Use a line width of .1m rather than
6384 .04m by default; round rather than truncate value.
6386 * tbl/table.c (class empty_entry): New class.
6387 (empty_entry::empty_entry, empty_entry::line_type): New functions.
6388 (table::add_entry): Represent empty entries by objects of type
6390 (table_entry::line_type): Return -1.
6391 (table::determine_row_type): Ignore entries with line_type 0.
6392 Treat type -1 as non-lines.
6394 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
6396 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
6397 macros/tmac.s: Rename \(-d to \(Sd.
6399 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
6401 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
6402 * xditview/libXdvi/DviChar.c: Likewise.
6403 * dvi/devdvi/texsy.map: Add `<<', `>>'.
6405 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
6407 * troff/div.c (top_level_diversion::begin_page): Call
6408 init_output() if the_output is 0.
6410 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
6412 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
6414 (get_copy): Turn \E into ESCAPE_E.
6415 (token::process, asciify): Handle ESCAPE_E.
6417 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
6419 (DS): Implement `.DS R'.
6421 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
6423 * macros/tmac.s (FS): New macro.
6425 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
6427 * macros/tmac.s (cov*tl-init): Remove after first execution
6428 instead of aliasing to @nop. Call top of page macro explicitly
6429 instead of setting trap; call @init first. Set pg@top as top of
6431 (cov*auto-init): Deleted. Set cov*tl-init instead of
6432 cov*auto-init as top of page trap.
6433 (TL, LP): Do a break instead of calling cov*tl-init.
6434 (cov*print): With RP format but no TL, alias FS and FE to @FS and
6435 @FE; in this case also give a warning and always start another
6436 page. No need to set pg@top here.
6437 (cov*tl-init): Rename to cov*first-page-init.
6439 * macros/tmac.s (RP): Do `.pn 0'.
6440 (cov*tl-init): With RP format don't do `.pn 0'.
6442 * macros/tmac.s (pg@cs-top): Set no space mode.
6444 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
6445 (cov*ab-init): Alias TL, AU and AI to these.
6447 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
6449 * macros/tmac.s (@EQ): Move the space before the equation into @EN
6450 (@EN): Do nothing unless \n[dl] is > 0.
6452 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
6454 * pic/object.c (ellipse_object::radius): New function.
6456 * VERSION: Change version to 0.7.
6458 * tbl/table.c (block_entry::do_divert): Declare return type as
6460 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
6462 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
6464 * troff/column.c: New file.
6465 * troff/Makefile: Corresponding changes.
6467 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
6470 * troff/div.c (top_level_diversion::space): If the space causes
6471 the first-page transition and springs a trap, truncate the space
6474 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
6476 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
6479 * pic/troff.c (troff_output::line_thickness,
6480 troff_output::set_fill): Do a horizontal motion to compensate for
6481 the width of the \D escape sequence.
6483 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
6485 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
6488 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
6491 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
6492 Supply empty definition.
6493 (text_entry::simple_print, simple_text_entry::simple_print):
6494 Delete declarations.
6495 (table::add_entry): Represent empty entries by objects of type
6498 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
6500 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
6502 * tbl/table.c (left_text_entry::add_tab): New function.
6504 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
6507 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
6509 * troff/env.c (environment::start_field): Give an error message if
6510 there is no next tab.
6512 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
6514 * troff/env.c (hyphenate): Skip initial elements with zero
6517 * macros/tmac.s (par@init): Keep VS in points rather than units.
6519 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
6521 * pic/main.c (main): Implement `-c' option.
6522 * pic/output.h: Declare make_tpic_output().
6523 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
6525 (tpic_output): New class.
6526 (tpic_output::tpic_output, tpic_output::set_pen_size,
6527 tpic_output::command, make_tpic_output): New functions.
6529 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
6531 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
6532 if they're not already defined.
6533 * tbl/table.c (init_output): Don't test \n(.g.
6535 * troff/input.c (do_if_request): Delete `g' condition. Recognize
6536 `d', `r' and `c' conditions even in compatibility mode.
6538 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
6540 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
6543 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
6545 * troff/env.h (environment::prev_line_interrupted): New member.
6546 (environment::get_prev_line_interrupted): New function.
6547 * troff/env.c (environment::newline): Set prev_line_interrupted.
6548 (environment::environment(const environment *),
6549 environment::environment(symbol)): Initialize
6550 prev_line_interrupted.
6551 * troff/input.c (process_input_stack): Don't give special
6552 treatment to space and newline at the beginning of the line if the
6553 previous line was interrupted.
6555 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
6557 * eqn/eqn.y: Disallow PRIME by itself.
6558 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
6560 (def_table): Remove definition of '. Define prime to be `.
6562 * eqn/eqn.y: Split off part of rule `script' into a new rule
6565 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
6567 * macros/tmac.s ({, }): New string aliases.
6569 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
6571 * README-0.7: New file.
6573 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
6575 * macros/tmac.s: New file.
6576 * man/groff_ms.man: New file.
6577 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
6578 * Makefile.bd: Similarily.
6579 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
6580 definition of TMAC_S.
6581 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
6582 * macros/TODO: New file.
6584 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
6586 * troff/env.c (right_justify): New function.
6587 (init_env_requests): Bind this to request "rj".
6588 (center_lines): Set right_justify_lines to 0. If we get a bad
6589 integer, center 1 line.
6590 (environment::environment(symbol), environment::environment(const
6591 environment *)): Initialize right_justify_lines.
6592 (environment::get_right_justify_lines): New function.
6593 (init_env_requests): Bind this to number_register ".rj".
6595 * troff/env.c (environment::choose_breakpoint): Implement
6596 hyphenation_margin and hyphenation_space.
6597 (environment::get_hyphenation_space,
6598 environment::get_hyphenation_margin): New functions.
6599 (init_env_requests): Bind these to .hys and .hym.
6600 (hyphenation_space_request, hyphenation_margin_request): New
6602 (init_env_requests): Bind these to hys and hym.
6603 (environment::environment(symbol), environment::environment(const
6604 environment *)): Initialize hyphenation_margin and
6606 * troff/env.h: Corresponding changes to class environment.
6608 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
6610 * troff/div.c (blank_line): Always do a break.
6612 * eqn/box.c (do_text): Turn off escapes while appending text to
6615 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
6617 * troff/input.c (while_break_request, while_continue_request): New
6619 (init_input_requests): Bind these to "break" and "continue".
6620 (while_depth, while_break_flag): New variables.
6621 (while_request): Update while_depth. Break out of loop if
6622 while_break_flag is set.
6624 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
6626 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
6629 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
6631 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
6633 * stringify: New file.
6634 * Makefile (groff.o): Use stringify.
6636 * xditview/tmac.X: Remove definition of \(rn.
6637 * xditview/libXdvi/DviChar.c: Remove radicalex from
6640 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
6642 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
6643 (alphabetic_block_entry::alphabetic_block_entry,
6644 alphabetic_block_entry::divert, alphabetic_block_entry::print):
6646 (block_entry::divert): Split off body into ...
6647 (block_entry::do_divert): If the block is alphabetic, subtract 2n
6648 from the line length; also update the span width to dl+2n, and the
6649 alphabetic span width to dl.
6651 * driver/input.c (do_file): While reading argument to D command,
6652 when expanding buffer, multiply szp by sizeof(int) rather than 2
6653 in the argument to memcpy.
6655 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
6656 width of alphabetic columns.
6658 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
6660 * troff/node.c (lookup_family): Supply second argument to lookup.
6662 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
6663 search, return immediately if v is 0.
6665 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
6666 (troff_output::start_picture): Set this reg.
6667 (troff_output::end_picture): Remove this reg
6668 * eqn/box.c (box::extra_space): Don't produce `\x's if
6669 EQN_NO_EXTRA_SPACE_REG is defined.
6671 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
6672 * eqn/text.c (split_text): Map ' to \(fm when it's the first
6675 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
6677 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
6680 * troff/div.c (top_level_diversion::top_level_diversion):
6681 Initialize page_number to 0.
6683 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
6685 * groff/troff (environment::environment(const environment *)):
6686 Initialize name to e->name, rather than "anonymous".
6688 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
6690 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
6691 requested_page. Split middle part into ...
6692 (FindPage): New function.
6693 (SetValues): If we don't yet know the last page, and the requested
6694 page is greater than the current page, call FindPage.
6695 Update the font_map_string before doing this.
6697 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6698 Translate \(lh and \(rh into left and right double arrows.
6700 * troff/node.c (class hyphen_inhibitor_node): New class.
6701 (hyphen_inhibitor_node::hyphen_inhibitor_node,
6702 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6703 hyphen_inhibitor_node::type,
6704 hyphen_inhibitor_node::get_hyphenation_type): New functions.
6705 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6706 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6709 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
6711 * troff/node.h (dummy_node::get_hyphenation_type,
6712 transparent_dummy_node::get_hyphenation_type): Declare them.
6713 * troff/node.c: (dummy_node::get_hyphenation_type,
6714 transparent_dummy_node::get_hyphenation_type): New functions.
6716 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
6718 * xditview/libXdvi/draw.c: If M_PI not defined after including
6719 math.h, then define it.
6721 * xditview/Makefile: Add definition of AR. Pass it to the submake
6723 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6725 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
6727 * troff/dictionary.h (object_dictionary::alias): Declare return
6729 * troff/dictionary.c (object_dictionary::alias): Return non-zero
6730 if the old name was defined.
6731 * troff/input.c (alias_macro): Give a warning if the old name was
6733 * troff/reg.c (alias_reg): Likewise.
6735 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
6737 * troff/input.c (token::next): Delete implementation of \R.
6739 * macros/Makefile: Strip comments from tmac.e while installing it.
6741 * troff/input.c: New variable `nroff_mode'.
6742 (troff_request, nroff_request): New functions.
6743 (init_input_requests): Bind `troff' and `nroff' to troff_request
6745 (do_if_request): Compute results of t and n conditions from
6748 * text/text.c (split_text): Fix typo in >=.
6750 * eqn/lex.c: Add definition of `==' to def_table.
6752 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
6754 * pic/tex.c (tex_output::start_picture): Change the definitions of
6755 \graph and \graphtemp so that they work properly with Plain TeX.
6757 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6758 argument to `ar' is not less than the first.
6760 * pic/pic.y: Allow a comma between elements of the variable list
6761 in the argument to `reset'.
6763 * pic/object.c (arc_object::arc_object): Fix computation of
6766 * eqn/main.c (main): Add exit(0).
6768 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
6770 * troff/div.c (begin_page): Test no_space_mode after doing the
6771 break, but still push the page ejector cookie before doing the
6772 break. Also set the next page number after doing the break.
6774 * xditview/xditview.c (NewFile): Don't set the title and icon name
6775 if this is the first file and its name is `-'.
6776 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
6777 the X75 and X100 devices.
6778 (main): If a device has the XT_OPTION flag set and there's exactly
6779 one file argument, pass the driver -xrm and -title options to set
6780 the icon name and window title to the name of the file.
6782 * troff/env.c (environment_switch): If there was an argument but
6783 it wasn't a valid number or name, then pop an environment but
6784 don't give an error message on underflow.
6786 * troff/number.c (start_number): Correct spelling in error message.
6788 * troff/input.c (token::delimiter): Don't print an error message
6791 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6792 ParseDrawFunction if dw->display_enable is true.
6794 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
6796 * pic/pic.y: Parse text positioning like normal attributes, so as
6797 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
6798 positioning attribute.
6800 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
6802 * tbl/main.c (process_data): When in state START while reading a
6803 text block, don't change to state MIDDLE if c is a newline.
6805 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
6807 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6808 so as to avoid shadowing parameter.
6810 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
6812 * tbl/table.c (trim_space): Deleted.
6813 (table::add_entry): Don't call trim_space.
6815 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
6817 * VERSION: Change version to 0.6.
6819 * troff/number.c (parse_expr): Make == work.
6821 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
6823 * man/grog.man: New file.
6824 * man/Makefile: Add grog.n to MAN1PAGES.
6825 * etc/grog.sh: New file.
6826 * etc/Makefile: Install grog.sh as grog.
6828 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
6830 * troff/input.c (token::next): Implement \E.
6832 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
6834 * xditview/tmac.X: Change font translations to match tmac.ps.
6836 * troff/input.c (non_empty_name_warning): Don't give a warning if
6837 `\{' terminates the name.
6839 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
6841 * ps/devps/symbol.diff: New file.
6842 * ps/devps/FontMakefile: Mention symbol.diff.
6844 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
6846 * troff/node.c (font_position): Use get_long_name to read the
6849 * troff/env.c (environment_switch): If we get a number that's < 0
6850 or >= NENVIRONMENTS, treat it like a name.
6851 Change NENVIRONMENTS to 10.
6853 * troff/groff.h: Remove definition of FONTS_MAX.
6854 * troff/node.h (class font_family): Make map a pointer instead of
6855 an array. Add a map_size member. Make it a class. Make nm const
6856 and public. Make invalidate_fontno a friend.
6857 * troff/node.c: Define font_table_size. Make font_info a pointer
6858 rather than an array.
6859 (class troff_output_file): Allocate font_position dynamically. Add
6860 nfont_positions member.
6861 (troff_output_file::set_font): Grow font_position if necessary.
6862 (troff_output_file::~troff_output_file): Delete font_position.
6863 (troff_output_file::troff_output_file): Allocate font_position.
6864 (grow_font_table): New function.
6865 (troff_output_file::really_begin_page,
6866 troff_output_file:really_copy_page): Use nfont_positions rather
6868 (mount_font_no_translate, mount_style): Call grow_font_table if
6870 (font_family::font_family): Allocate map.
6871 (font_family::make_definite): Grow map if necessary. Use
6872 font_table_size instead of FONTS_MAX.
6873 (font_family::~font_family): New function.
6874 (invalidate_fontno): Use font_family::map_size.
6875 (get_fontno, env_space_width, env_half_narrow_space_width,
6876 env_narrow_space_width, symbol_fotno, is_good_fontno,
6877 get_bold_fontno, make_glyph_node): Use font_table_size rather than
6879 (next_available_font_position): Never return 0.
6881 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
6883 * ps/tmac.ps: Add font translations for compatibility with dpost.
6885 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
6887 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6888 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6889 Move definitions baseline_sep, shift_down, column_sep,
6890 matrix_side_sep into...
6891 * eqn/box.c: Add them to param_table.
6892 * eqn/pbox.h: Add declarations to pbox.h.
6894 * troff/input.c (set_string): Cast value to unsigned char *.
6896 * troff/token.h (process_input_stack): Declare it static before
6897 declaring it a friend.
6899 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
6901 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6903 * dvi/devdvi/EX: Regenerate.
6905 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6908 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
6910 * eqn/lex.c: In defaults_table, make definition of `dot' call
6911 `dot_def'. Don't explicitly make it roman. Similarily for other
6914 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6916 (for_input::get, for_input::peek): Use this.
6917 (do_for): Add by_is_multiplicative argument.
6918 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6919 Change semantic value of optional_by to be a double plus a flag
6920 saying whethet the by clause is multiplicative.
6922 * eqn/lex.c (get_delimited_text): Remember location of start of
6923 definition. Improve error handling when EOF is encountered.
6925 * lib/font.h: Rename handle_x_command to
6926 handle_unknown_font_command.
6927 * lib/font.c (font::load): Call handle_unknown_font_command for
6928 any unknown command in the font description file. Don't call
6929 handle_x_command. Include the name of the command in the argv.
6930 Improve message for unknown command after kernpairs or charset
6932 * ps/ps.c (ps_font::handle_x_command): Rename to
6933 handle_unknown_font_command. Remove message about `x download'
6934 command. Give error message for wrong number of arguments.
6935 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6936 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6937 handle_unknown_font_command. Give an error message for wrong
6938 number of arguments. Rename design_size to designsize.
6939 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6940 checksum', `designsize' instead of `design_size'.
6942 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
6944 * eqn/*.[chy]: Change underaccent to uaccent.
6946 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
6947 give it the same precedence as ACCENT.
6948 * eqn/other.c (make_underaccent_box): New function.
6949 * eqn/box.h: Declare it.
6950 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6953 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
6955 * pic/pic.y (reset_all): New function. Called in rule for RESET.
6956 (parse_init): Call reset_all.
6957 (define_variable): When defining scale reset only those
6958 pre-defined variables that are scaled.
6959 (defaults_table): Add `scale' as non-scaled value.
6961 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6962 together with the text; allow any number of positioning words;
6963 allow center as a positioning word.
6965 * pic/object.c (output::compute_scale): Get picture maximum height
6966 and width from variables called maxpswid and maxpsht.
6967 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6969 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
6971 * pic/object.c (object_spec::make_text): Multiply textht by number
6974 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6976 (do_sprintf): New function.
6977 (pic.gperf): Add sprintf token.
6978 (text, sprintf): New rules.
6980 * pic/pic.y: `rand()' with no arguments returns a random number
6983 * pic/pic.y: Allow a bare expression to be an attribute: change
6984 precedences to support this. Change optional_ordinal rule to
6985 optional_ordinal_last to avoid reduce/reduce conflict.
6986 * pic/object.c (object_spec::object_spec): Initialize direction.
6988 * pic/pic.y: Implement ^ operator meaning exponentiation.
6990 * troff/node.h: Add default argument to mount_font.
6991 * troff/node.c (font_position): Read an optional third argument
6992 giving the external_name.
6993 (mount_font): Add optional argument giving the external_name.
6994 (mount_font_not_translate): Have additional argument giving
6995 external name. Use this name to load the font. Pass both names
6996 to font_info::font_info.
6997 (font_info::font_info): Have additional argument giving
6999 (class tfont): New member external_name.
7000 (font_info::get_tfont): Use external name to construct tfont_spec.
7002 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
7004 * eqn/lex.c (init_table): Add argument giving device. Define
7005 name of device to be "1".
7006 (do_ifdef): Counts as true if the argument has been defined with
7008 * eqn/main.c (main): Call init_table with device argument. Make
7009 device local to main.
7010 * eqn/eqn.h: Change declaration of init_table. Remove declaration
7013 * pic/lex.c (get_delimited): Allow text to be delimited by
7014 matching {}s. Don't recognize ending delimiter within a string.
7016 * troff/input.c (get_delim_name): New function.
7017 (token::next): Implement \C.
7019 * lib/font.c (font::load): Grok ---. Add an alias for each
7020 character based on its code.
7021 (font::get_code_width): Deleted.
7022 * lib/font.h (class font): Declare font::number_to_index().
7023 Remove declaration of font::get_code_width.
7024 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
7025 to indices of named characters.
7026 (font::number_to_index): New function.
7027 * troff/input.c (font::number_to_index): New function.
7028 (get_charinfo_by_number, charinfo::get_number,
7029 charinfo::set_number): New functions.
7030 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
7031 (token::process, token::description, token::get_char,
7032 token::add_to_node_list, token::operator==): Handle
7033 TOKEN_NUMBERED_CHAR.
7034 * troff/charinfo.h: Declare get_charinfo_by_number,
7035 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
7037 (charinfo::numbered): New function.
7038 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
7039 * troff/env.h (class environment): Remove declaration of ...
7040 * troff/env.c (environment::make_numbered_char_node): Deleted.
7041 * troff/node.c (make_numbered_node): Deleted.
7042 (class numbered_glyph_node): Remove.
7043 (troff_output_file::put_char_width, troff_output_file::put_char):
7044 Handle numbered chars.
7045 (troff_output_file::numbered_char): Removed.
7046 (tfont::get_code_width): Removed.
7047 (make_glyph_node): Don't search special fonts for numbered
7049 * troff/node.h: Remove declaration of make_numbered_node.
7050 * driver/input.c (do_file): Handle N command.
7051 * driver/printer.h: Add declaration of ...
7052 * driver/printer.c (printer::set_numbered_char): New function.
7053 * dvi/tfmtodit.c (main): Generate unnamed entries.
7054 * ps/devps/afmtodit: Likewise.
7055 * xditview/xtotroff.c (MapFont): Likewise.
7056 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
7058 * tbl/main.c (process_format): If multiple widths are specified
7059 for a column but all the widths are the same, don't give an error
7062 * tbl/table.c (table::do_row): If the current row is all lines and
7063 the stuff doesn't contains a line, mark the top of the row after
7064 printing stuff before the row. If the current row is not all
7065 lines and the stuff doesn't contain a line, don't unnecessarily
7066 mark the top of the row before printing the stuff.
7068 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
7070 * troff/groff.h: Remove MAX_PATH.
7071 * troff/input.c (open_file): Dynamically allocate space for the
7073 (open_mac_file, process_macro_file): Corresponding changes.
7075 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
7077 * troff/node.h (class output_file): Make copy_file pure. Add
7078 vspace method ifdef COLUMN. Add is_printing method.
7079 * troff/node.c: Add class printing_reg. Add class
7080 real_output_file. Derive other output_file classes from
7081 real_output_file; in these classes rename begin_page to
7082 really_begin_page, print_line to really_print_line, copy_file to
7083 really_copy_file, transparent_char to really_transparent_char.
7084 Move output_file::flush to real_output_file. Add printing member
7085 to class output_file.
7086 * troff/div.h: Remove printing member from top_level_diversion.
7087 Add vspace member function to class diversion ifdef COLUMN. Add
7088 some declarations ifdef COLUMN.
7089 * troff/div.c (top_level_diversion::copy_file,
7090 top_level_diversion::transparent_output,
7091 top_level_diversion::output): Don't test printing member before
7093 * troff/input.c: Handle initial variable_space_request ifdef
7095 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
7098 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
7100 * troff/div.c (diversion::need): Make any space forced. If we
7101 sprung a trap, set truncated_space to minus the distance to the
7102 trap and set needed_space to the amount that was needed.
7103 (top_level_diversion::space): A forced space turns no_space_mode
7105 (class constant_vunits_reg): New class.
7106 (init_div_requests): Implement number registers .trunc and .ne
7107 using constant_vunits_reg.
7108 (class truncated_space_reg): Deleted.
7110 * troff/div.h: Don't have a no_space_mode member in diversion.
7111 Instead have it in top_level_diversion.
7112 * troff/div.c (diversion::diversion): Don't initialize
7114 (top_level_diversion::top_level_diversion): Initialize
7116 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
7117 (macro_diversion::output): Don't clear no_space_mode.
7119 * troff/input.c (diverted_space_node::reread): Don't call
7120 environment::do_break. In fill mode, act like a blank line.
7121 (diverted_copy_file_node::reread): Don't call
7122 environment::do_break.
7124 * troff/div.c (blank_line): New function.
7125 * troff/div.h: Declare it.
7126 * troff/input.c (process_input_stack): Call it.
7128 * troff/div.c (truncated_space_reg::get_string): New function.
7129 (init_div_requests): Bind to .trunc.
7130 (space_request, top_level_diversion::space,
7131 top_level_diversion::output, macro_diversion::space,
7132 macro_diversion::output): Update truncated_space.
7133 (macro_diversion::output): Redo calculations when trap sprung.
7134 (macro_diversion::output, macro_diversion::space): No need for
7137 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
7138 after truncating post line spacing.
7140 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
7142 * ps/devps/prologue (MF, SF): Make them work even if setfont is
7143 defined as a procedure rather than as an operator.
7145 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
7147 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
7149 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
7151 * troff/div.c (top_level_diversion::output): Merge
7152 output_file::print_line and output_file::end_of_line member
7154 * troff/div.h (class output_file):
7155 * troff/node.c (troff_output_file::print_line,
7156 troff_output_file::end_of_line, output_file::end_of_line,
7157 ascii_output_file::print_line, suppress_output_file::print_line):
7158 Corresponding changes.
7160 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
7162 * troff/input.c (token::next): Don't give a warning for `\.'.
7164 * troff/env.c (environment::get_center_lines): New function.
7165 (init_env_requests): Bind number register .ce to it.
7166 * troff/env.h: Declare it.
7167 * tbl/table.c (table::init_output): Define reset macro to restore
7168 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
7170 (table::print): If center option not given, then imply center
7171 option if SAVED_CENTER_REG > 0.
7173 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
7175 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
7176 Troff.ps from DOWNLOAD.
7178 * troff/Makefile: Change comment in DEFINES to avoid confusing
7181 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
7182 code. Don't try to catch errors with stopped.
7183 (check_line_lengths): New function.
7184 * ps/devps/prologue (EXEC): Deleted.
7185 (EBEGIN, EEND): New procedures.
7187 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
7189 * troff/input.c: Include request.h before node.h.
7190 * troff/node.c: Likewise.
7191 * troff/env.c: Likewise.
7192 * troff/div.c: Likewise.
7193 * troff/node.h (class special_node): Store argument as a macro
7194 rather than a char *.
7195 * troff/node.c (special_node::special_node, special_node::copy):
7197 (special_node::~special_node): Deleted.
7198 (special_node::tprint): Deleted.
7199 (special_node::tprint_start, special_node::tprint_end,
7200 special_node::tprint_char): New functions.
7201 (troff_output_file::special): Deleted.
7202 (troff_output_file::start_special, troff_output_file::end_special,
7203 troff_output_file::special_char): New functions.
7204 * troff/input.c (special_node::tprint): New function.
7205 (do_special): Use macro not char *.
7206 (do_transparent_macro): Deleted.
7207 (token::next): Don't call do_transparent_macro.
7209 * troff/input.c (token::next): Add 'Y' case.
7210 (do_transparent_macro): New function.
7211 * troff/node.c (troff_output_file::special): Handle newlines with
7212 argument using new continuation convention.
7213 * driver/input.c (get_string): Cope with continuation convention.
7214 (do_file): Don't call skip_line after calling get_string(1).
7215 * ps/ps.c (ps_printer::special, ps_printer::do_import,
7216 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
7218 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
7221 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
7223 * troff/input.c (asciify): By default, illegal input characters
7224 should return empty string.
7226 * troff/input.c (copy_file): Handle first page transition like title.
7227 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
7229 * troff/input.c (token::next): Improve error message for EOF after
7231 (input_char_description): New function.
7232 (get_char_for_escape_name): Use input_char_description.
7233 (token::next): Warn about unrecognized escape sequences.
7234 (warning_table): Add WARN_ESCAPE.
7235 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
7238 * troff/token.h: Remove declaration of process_input_stack.
7240 * troff/input.c: Remove declaration of init_hyphen_requests.
7241 * troff/request.h: Correct spelling in declaration of same.
7243 * troff/input.c (token::next): Check whether escape_char is 0.
7245 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
7247 * groff.c (main, usage, help): Implement -P and -L options.
7248 * groff.sh: Likewise.
7250 * troff/input.c (token::next): Use some gotos to avoid code
7253 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
7254 Avoid calling symbol::symbol if name empty.
7256 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
7258 * troff/input.c (init_input_requests): Make \n(.x return the major
7259 version number and \n(.y return the minor version number.
7260 * troff/Makefile: Construct file majorminor.c defining
7261 major_version and minor_version automatically from ../VERSION.
7263 * troff/node.c (class glyph_node): Make operator new and operator
7265 (class ligature_node): Similarily.
7267 * troff/input.c (operator==(const macro &, const macro &)): New
7269 (non_interpreted_node::same): Use this.
7270 (string_iterator::string_iterator): Make macro& argument const.
7272 * troff/input.c (input_iterator::get): New function. Don't make
7273 asciify_macro or class non_interpreted_node friends of class
7275 (non_interpreted_node::interpret): Use input_iterator::get.
7276 (asciify_macro): Likewise.
7278 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
7279 ~non_interpreted_node): Deleted.
7280 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
7283 * troff/symbol.h: Make all symbol member functions const.
7285 * lib/strtol.c: New file.
7286 * lib/Makefile: Add strtol.c.
7287 * Makefile: Define STRTOL as strtol.o to include strtol in
7290 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
7292 * pic/troff.c (troff_output::simple_circle): Divide by scale.
7294 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
7296 * troff/input.c (do_special): Use input_level.
7298 * troff/token.h (TOKEN_BACKSPACE): New token.
7299 (token::backspace): New function.
7300 * troff/input.c (token::description, token::next, token::process):
7301 Grok TOKEN_BACKSPACE.
7302 (do_special): Turn TOKEN_BACKSPACE back into \b.
7304 * troff/token.h (token::leader): New function.
7305 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
7307 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
7309 * troff/input.c (do_special): Use token::description in error
7312 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
7314 * troff/input.c (decode_args): Combine quoted and
7315 quote_input_level variables. Make it a for (;;) loop.
7317 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
7319 * troff/input.c (read_long_escape_name): The test for whether to
7320 expand buffer was off by 1.
7321 (read_string): Similarily.
7323 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
7325 * troff/input.c: Use `const int' rather than `static const int'.
7327 * troff/div.h (diversion::copy_file): Declare as pure virtual.
7328 (macro_diversion::copy_file): New function.
7329 * troff/node.h: New class diverted_copy_file_node.
7330 * troff/node.c: Implement it.
7331 * troff/input.c (copy_file): Use diversion::copy_file. Handle
7332 first page transition by pushing a diverted_copy_file_node.
7333 * troff/input.c (token::next, process_input_stack): Don't handle
7336 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
7338 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
7339 whether space widths need adjusting.
7341 * troff/charinfo.h: Generalize translated_to_space to
7342 special_translation so as to allow translation to \&.
7343 * troff/input.c (translate): Allow translation to \&.
7344 (charinfo::*): Corresponding changes.
7345 * troff/node.c (make_node, node::add_char): Corresponding changes.
7346 * troff/node.h (dummy_node::dummy_node): Allow optional first
7349 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
7350 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
7352 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
7353 TOKEN_REQUEST with an argument of TITLE_REQUEST.
7354 (token::process): Grok that.
7355 * troff/input.c (copy_file): Handle first page transition like
7356 title by pushing a COPY_FILE_REQUEST cookie.
7357 (token::next, process_input_stack): Grok that.
7358 * troff/node.h (output_file::copy_file): Add x and y arguments.
7360 * troff/div.c (top_level_diversion::copy_file): Supply them.
7361 * troff/node.c (troff_output_file::copy_file): Add x and y
7362 arguments; moveto specified position. Invalidate font_position
7363 array after copying file.
7364 (output_file::copy_file): New function.
7365 (suppressed_output_file::copy_file, ascii_output::copy_file):
7367 * troff/input.c (transparent_file): New function.
7368 (init_input_requests): Bind to "trf".
7369 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
7370 (process_input_stack): Likewise.
7372 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
7374 * troff/node.c (init_node_requests): New number registers .kern
7375 pointing to global_kern_mode, and .lg pointing to
7376 global_ligature_mode.
7378 * troff/node.c (ligature): Don't change it if we get a bad
7381 * troff/input.c (do_define_string): Don't strip tabs.
7383 * troff/input.c (asciify_macro): Make the string_iterator auto.
7385 * troff/node.c (init_font_requests): Rename to...
7386 (init_node_requests):
7387 * troff/node.h: Change declaration.
7388 * troff/input.c (main): Change call.
7390 * troff/input.c (node::reread, diverted_space_node::reread): New
7392 (process_input_stack): Call reread rather than
7393 get_diverted_space_node.
7394 * troff/node.c (node::get_diverted_space_node,
7395 diverted_space_node::get_diverted_space_node): Removed.
7396 * troff/node.h: Declare reread methods instead of
7397 get_diverted_space_node methods. Make `n' member private.
7398 * troff/input.c: (token::diverted_space): Removed.
7399 * troff/token.h: Removed declaration.
7402 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
7404 * eqn/script.c (script_box::compute_metrics): Don't let
7405 SUP_RAISE_FORMAT become negative.
7407 * tbl/table.c (table::do_row): Entries that don't end in the
7408 this row shouldn't make the row non-blank.
7410 * tbl/table.c (table::make_columns_equal): Only set the width of
7411 columns which are marked as equal.
7413 * tbl/main.c (process_data): Before issuing excess data error,
7414 if last character was a newline unget it; then get it again after
7415 the error. Also include the contents of the entry in the message.
7417 * groff.c: New file.
7418 * Makefile: Build groff from groff.c. Make it possible to use
7419 either groff.sh or groff.c as groff.
7420 * Makefile.bd: Similarily.
7422 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
7424 * groff.sh: Don't delay expansion of $@ in assignment to files.
7425 Remove occurrences of \".
7427 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
7429 * all Makefiles: Simplify and rearrange.
7431 * Makefile: Handle fmod like malloc.
7432 * lib/Makefile: Similarily.
7433 * lib/fmod.c: Remove #ifdef NEED_FMOD.
7435 * Makefile: Rename OPTIMISE to OPTIMIZE.
7437 * groff.sh: Remove assignment to PATH.
7438 * Makefile: Remove SHPATH variable.
7439 * Makefile.bd: Similarily.
7441 * groff.sh: Add -V option to print the pipeline instead of
7444 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
7446 * lib/font.c: Split off file searching into ...
7447 * lib/fontfile.c: New file.
7449 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
7451 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
7453 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
7454 Also change misleading comment.
7455 (table::do_vspan): Change similarily misleading comment.
7456 * tbl/main.c (process_data): A format row with an explicit `s'
7457 uses up a data line, even if all the other columns are `_' or `='.
7459 * troff/input.c (token::description): Fix description of
7460 TOKEN_DUMMY and TOKEN_EMPTY.
7462 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
7464 * groff.sh: Fix description of -Z in help message.
7466 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
7468 * pic/object.c (object_spec::make_object): Allow negative and zero
7470 * pic/pic.y: Give linethick default value of -1.0.
7471 * pic/troff.c (troff_output::troff_output): Initialize
7472 last_line_thickness to BAD_THICKNESS.
7473 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
7474 (troff_output::line_thickness): Canonicalize negative thicknesses
7475 to RELATIVE_THICKNESS.
7476 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
7477 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
7479 (tex_output::start_picture): Set pen_size to -2.0.
7481 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
7482 0, then use 0 linewidth.
7483 (ps_printer::ps_printer): Initialize line_thickness to -1.
7485 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
7487 * ps/devps/symbolchars: Remove `or'.
7488 * ps/tmac.ps: Implement \(or with .char.
7490 * ps/devps/symbolchars: Move most characters into textmap.
7491 * ps/devps/textmap: Add names for troff bracket characters. Remove
7494 * ps/devps/TSymbol.ps: Removed.
7495 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
7496 * ps/tmac.ps: Do with .char what TSymbol did.
7497 * ps/devps/download: Remove TSymbol.
7499 * ps/devps/T: Removed.
7500 * ps/devps/Troff.ps: Removed.
7501 * ps/devps/Troff.afm: Removed.
7502 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
7503 * ps/devps/download: Remove Troff.
7504 * ps/devps/FontMakefile: Remove T target.
7505 * ps/devps/DESC-A4: Remove T from font list.
7506 * ps/devps/DESC-letter: Likewise.
7508 * troff/input.c (macro_to_node): Rename to ...
7509 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
7510 character's definition while processing it.
7511 * troff/node.c (node::add_char, make_node): Change calls to
7512 macro_to_node accordingly.
7514 * troff/input.c (token::next): Translate \_ to \(ul.
7516 * tty/devascii/R.proto: Add `|'.
7517 * tty/devlatin1/R.proto: Likewise.
7519 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
7521 * man: Put the version number in all the man pages.
7523 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
7525 * Makefile.bd: New file.
7526 * README.bd: New file.
7528 * VERSION: New file.
7529 * lib/version.c: Removed.
7530 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
7533 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
7534 environment variable.
7536 * all Makefiles: Split install target into install.bin for
7537 binaries, and install.nobin for everything else.
7538 * Makefile: Add bindist target.
7540 * man/afmtodit.man: New file.
7541 * man/Makefile: Add afmtodit.n to MAN1PAGES.
7542 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
7544 * ps/Makefile: Pass BINDIR to make install in devps.
7546 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
7547 the space character.
7549 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
7551 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
7553 * ps/ps.c: Redo font downloading.
7554 * ps/devps/download: New file.
7555 * ps/devps/Makefile: Add download to DEVICEFILES.
7556 * ps/devps/afmtodit: Remove -d option.
7557 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
7558 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
7559 * ps/devps/zapfdr.ps: Likewise.
7560 * ps/devps/TSymbol.ps: Likewise.
7562 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
7564 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
7566 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
7568 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
7569 then strip the first line if it starts with %.
7570 * Makefile: Add a comment about this.
7572 * man/tfmtodit.man: New file.
7573 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
7574 * dvi/Makefile: Install tfmtodit in BINDIR.
7576 * dvi/tfmtodit.c (usage): Mention -v option.
7578 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
7580 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
7581 * troff/node.c (troff_output_file::transparent_char): Don't call
7584 * eqn: Add check_tabs method to most box classes.
7585 * eqn/box.c (box::top_level): Call check_tabs.
7587 * eqn/script.c (script_box::output): Use \Z.
7588 * eqn/limit.c (limit_box::output): Use \Z.
7590 * eqn/box.c (box::top_level): Use itoa.
7592 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
7594 * dvi/tmac.dvi: Add font translations for CR, C, TT.
7595 * dvi/devdvi/Makefile: Don't make links to CW.
7597 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
7599 * xditview/tmac.X: Likewise.
7601 * troff/node.c: Add font translation feature.
7602 (get_font_translation): New function.
7603 (symbol_fontno): Translate the font name.
7604 (mount_font_no_translate): Rename to mount_font to this.
7605 (mount_font): New function.
7606 (font_family::make_definite): Call mount_font_no_translate instead
7608 (mount_style): Translate the font name.
7609 (font_translate): New function.
7610 (init_font_requests): Bind "ftr" to font_translate.
7612 * ps/devps/prologue (SN): New procedure that rounds a position to
7613 the nearest (pixel + (.25,.25)).
7614 (DL): Use SN to round endpoints.
7616 * lib/version.c: Changed version to 0.5.
7618 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
7620 * Makefile: Move definition of PAGE to the very beginning, so that
7621 people are less likely to miss it.
7623 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
7625 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
7627 * troff/env.c (environment::choose_breakpoint): Make `can't find
7628 breakpoint' error a warning of type WARN_BREAK. Change message to
7630 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
7632 * troff/input.c: Add WARN_BREAK to warning_table. Include
7633 WARN_BREAK in DEFAULT_WARNING_MASK.
7635 * tty/tmac.tty: Add definition of \(+-.
7637 * groff.sh: Remove `--' option to set command.
7639 * dvi/devdvi/texsy.map: Remove duplicate md entry.
7641 * ps/devps/eqnchar: Better definition of cdot using md.
7642 * dvi/devdvi/eqnchar: Likewise.
7643 * xditview/devX100/eqnchar: Likewise.
7644 * xditview/devX75/eqnchar: Likewise.
7645 * eqn/lex.c: Add definition of cdot.
7647 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
7649 * troff/input.c (get_optional_char): New function.
7650 * troff/input.c (set_page_character): Use get_optional_char(),
7651 rather than has_arg() and tok.get_char(1).
7652 * troff/env.c (tab_character, leader_character, hyphen_char,
7653 field_characters): Likewise.
7654 (margin_character): Likewise. Also always delete the
7655 margin_character_node.
7657 * troff/input.c (token::get_char): Use token::description.
7659 * troff/input.c (has_arg): Don't skip over tab and \}.
7660 * troff/number.c (start_number): Give a warning if the number
7661 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
7663 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
7665 * troff/input.c (empty_name_warning, non_empty_name_warning): New
7667 (get_name, get_long_name): Use these. Rename `warn' argument to
7670 * troff/node.c (get_fontno): Test that the symbol is not null.
7672 * troff/input.c (token::description): New function.
7673 * troff/number.c (parse_term): Use token::description in `numeric
7674 expression expected' message.
7675 * troff/groff.h: Add WARN_MISSING.
7676 * troff/number.c (start_number): New function.
7677 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
7678 get_incr_number): Use start_number().
7679 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
7681 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
7682 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
7684 * troff/input.c (token::get_char): Use WARN_MISSING.
7685 * troff/input.c (token::delimiter): Use token::description.
7686 * troff/env.c (environment_switch): Back out Aug 3 change.
7687 * troff/input.c (has_arg): Skip over \}s and tabs but give a
7689 * troff/token.h (token::tab): New function.
7690 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
7691 * troff/reg.c (alter_format): Likewise.
7692 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
7694 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
7696 * troff (most files): Redo warnings. Divide warnings into various
7697 categories; warning() has an additional first argument indicating
7698 the category it falls into.
7699 * troff/input.c (main): -w now takes an argument. New option -W.
7700 (enable_warning, disable_warning): New functions.
7702 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7703 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7705 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
7707 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7708 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7709 * xditview/devX75/eqnchar: Likewise.
7710 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7712 * eqn/other.c: When bar or over applies to a single character
7713 don't produce an overline_box or an underline_box. Instead produce
7714 an accent_box or an underaccent_box, with the accent a line
7715 whose width is accent_width. New classes underaccent_box,
7716 overline_char_box and underline_char_box.
7717 * eqn/box.h: Move overline_box, underline_box, accent_box class
7718 declarations into eqn/other.c. Add declarations of
7719 make_underline_box, make_overline_box, make_accent_box.
7720 * eqn/eqn.y: Call make_overline_box, make_underline_box
7721 make_accent_box instead of constructors.
7722 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7724 * eqn/other.c: Add accent_box::~accent_box.
7725 * eqn/box.h: Declare it.
7727 * groff.sh: With -Tps, use eqn -D.
7729 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7731 (underline_box::output): Similarily.
7732 (accent_box::output): Use \Z.
7734 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7737 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
7739 * troff/div.c (top_level_diversion::transparent_output(unsigned
7740 char)): Use asciify.
7741 * troff/input.c (asciify): Don't make it static.
7742 * troff/token.h (asciify): Declare it.
7744 * troff/input.c (get_name, get_long_name, token::get_char,
7745 token::delimiter): Add an extra default argument which says
7746 whether a warning should be printed.
7747 * troff: Pass a non-zero argument to one of these rather than
7748 printing a warning directly.
7750 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
7752 * troff: Consistently use symbol::is_null.
7754 * troff/dictionary.h: Move some inline functions into
7757 * troff/request.h: Move inline functions into input.c.
7758 (request_or_macro::invoke): Make it pure.
7760 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7761 * troff/input.c (init_input_requests): Use class constant_int_reg.
7762 (class compatible_reg): Deleted.
7763 * troff/div.c (init_div_requests): Use class constant_int_reg.
7764 (class last_post_line_extra_space_reg): Deleted.
7766 * troff/env.c (tab_character): Don't change the tab character if
7767 we get an invalid argument.
7768 (hyphen_char): Similarily.
7770 * troff/reg.c (alter_format): Check that nm is not null.
7772 * Makefile, groff.sh: Make it possible to customize the commands
7773 used for printing PostScript and dvi files. Also make it possible
7774 to customize the path used by groff.sh.
7776 * eqn/eqn.y: Make `left' right associative.
7778 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
7780 * pic/pic.h: Added definition of M_SQRT2 for those systems that
7783 * pic/pic.h: Removed definition of INT_MAX.
7785 * troff/node.c (italic_corrected_node::vertical_extent): Omit
7788 * troff/input.c (token::next): Handle \R like \n.
7790 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
7792 * ps/tmac.pc (PSPIC): Simplify.
7794 * troff/env.c (tab_stops::to_string):
7795 * pic/pic.y (object_type_name):
7796 * pic/troff.c (simple_output::line):
7797 * pic/tex.c (tex_output::spline):
7798 * pic/object.c (object_spec::make_object):
7799 * tbl/main.c (process_data): Add cases to switch statements to
7800 avoid cfront warnings. (Some of these are spurious, since the
7801 switch already has a default case.)
7803 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
7804 `ps-'. Don't test systat; instead check number of arguments to
7807 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
7809 * macros/tmac.e: Do not decrease the page offset by 0.5i.
7811 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7812 Unlink the file as soon as we have opened it, so that we don't
7813 have to bother with signal handlers.
7815 (fatal_error_exit): Deleted.
7816 (main): Don't call signal.
7818 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7820 * dvi/devdvi/Makefile: Use the -k option with S and MI.
7822 * pic/pic.y: If there is a label, or an nth construction before
7823 the first `.' in the argument to `with', ignore it and generate a
7825 * pic/lex.c (lex_warning): New function.
7827 * tbl/table.c (table::init_output): In section keep and release
7828 macro, use 0 indent when diverting and the correct indent when
7831 * troff/input.c (interpolate_number_format): Do not interpolate
7832 anything if the number register is not defined.
7834 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7836 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
7838 * ps/devps/prologue (PICTURE): Set components of graphics state to
7839 their default values.
7841 * ps/devps/text.enc: Add trademark
7842 * ps/devps/textmap: Add names for club, spade, heart, diamond,
7843 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7844 * ps/devps/symbolchars: Add names for summation and product.
7846 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7847 suchthat. Add pp. Add upper-case letters.
7849 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7850 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7853 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7854 rA (right angle bracket) to ra. Introduce names for double-headed
7855 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7856 * ps/devps/textmap: Likewise for ps device.
7857 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7858 * tty/devascii/R.proto: Rename lA to la and rA to ra.
7859 * tty/devascii/R.proto: Likewise.
7860 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7862 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7864 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7866 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7869 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
7871 * troff/div.c (when_request): Use symbol::is_null rather than
7872 has_arg to determine whether we have an argument.
7873 (change_trap): Remove the trap if we get an invalid number. Give
7874 an error if we don't get at least the macro name.
7875 (diversion_trap): Remove trap if we get an invalid name or number.
7877 * troff/env.c (environment_switch): Pop if we get an invalid
7878 symbol or numeric expression.
7880 * troff/input.c (do_define_macro): If EOF is encoutered while
7881 defining the macro, do tok.next() before returning.
7883 * troff/token.h (has_arg): Move definition from here, to ...
7884 * troff/input.c (has_arg): ... here
7886 * troff/env.c (space_size): Do nothing if we get an invalid argument.
7887 * troff/input.c (shift): Likewise.
7889 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
7892 * pic/troff.c (troff_output::start_picture): Comment out calls to
7895 * eqn/main.c (do_file): Subtract 1 from current_lineno if
7896 interpret_lf_args succeeds.
7898 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7899 \\. This avoids problems with \$N.
7901 * groff.sh: Pass -C to preprocessors.
7903 * lib/lf.c (interpret_lf_args): Be more flexible.
7905 * tbl/main.c (main): Add -C option.
7906 (table_input::get): Do not recognize TE if followed by character
7907 other than a space or newline unless -C option given.
7908 (process_input_file): Likewise for lf, TS.
7909 (process_data): Likewise for lf in text blocks.
7911 * eqn/main.c (main): Add -C option.
7912 (do_file): Don't recognize EQ, EN or lf if followed by character
7913 other than space or newline unless -C option given.
7914 * eqn/lex.c (file_input::read_line): Similarily.
7915 * eqn/eqn.h: Declare compatible_flag.
7917 * etc/soelim.c (main): Add -C option.
7918 (interpret_lf_args): Use version in libgroff.
7921 * pic/main.c (main): Add -C option, which sets compatible_flag.
7922 (top_input::get), (top_input::peek): If -C option not given,
7923 do not recognize .PS/.PE/.PF/.lf if followed by a character
7924 other than space or newline.
7925 * pic/lex.c (file_input::read_line): Similarily.
7926 * pic/pic.h: Add declaration of compatible_flag.
7928 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
7930 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7932 * troff/node.c, troff/node.h: Add `asciify' methods to classes
7933 derived from node. New class space_char_hmotion_node.
7934 * troff/input.c (asciify_macro): New function.
7935 * troff/input.c (init_input_requests): New request `asciify' bound
7937 * macros/mm.diff: New file.
7938 * Makefile: In install.mm target use `patch' to apply
7941 * troff/input.c (macro::print_size): Just print the size in bytes.
7943 * troff/div.c (return_request): Correct the argument
7946 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
7948 * troff/node.h (class composite_node): Add sz member.
7949 * troff/node.c (composite_node::size): Return sz.
7950 * troff/input.c (macro_to_node): Use the initial size in the
7951 environment as the size of the composite_node.
7953 * troff/node.c (node::zero_width_tprint): Provide a reasonable
7956 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
7958 * troff/div.c (change_trap): If we get a bad number expression,
7961 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
7963 * lib/matherr.c (matherr): Define this only if math.h defines
7966 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
7968 * troff/div.c (macro_diversion::distance_to_next_trap): If there
7969 no diversion trap return vunits(INT_MAX - vresolution).
7971 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
7973 * troff/input.c (do_zero_width): New implementation that doesn't
7974 use a temporary environment. Use instead:
7975 (token::add_to_node_list): New function.
7976 * troff/env.c (environment::get_prev_char_height),
7977 (environment::get_prev_char_height),
7978 (environment::get_prev_char_skew): New functions.
7979 (environment::get_prev_char): New function.
7980 (environment::get_prev_char_width): Change to use get_prev_char.
7981 (init_env_request): Implement new registers .cht, .cdp, .csk.
7982 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7983 \Z being processed in a separate environment.
7985 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
7987 * tbl/table.c: Removed TABLE_BOTTOM_REG.
7989 * tbl/table.c (table::init_output): In the section release macro,
7990 give a warning message if the section won't fit on one page.
7992 * tbl/table.c (table::do_top): Emit table keep only if table is
7994 (table::do_bottom): Likewise for table release.
7995 (table::table), (table::add_vertical_rule): Remove reference to
7997 * tbl/table.h: Remove keep member.
7999 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
8000 SECTION_RELEASE_MACRO, if there's not enough space before the next
8001 trap to output the diversion, call T# ourselves, set
8002 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
8003 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
8004 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
8005 vertical position and return to it before turning traps on again.
8007 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
8009 * troff/node.c, troff/node.h: In classes derived from node,
8010 replace prev_char_width method by last_char_node method.
8011 * troff/env.c (environment::get_prev_char_width): Use
8012 node::last_char_node rather than node::get_prev_char_width.
8014 * Makefile: Added comment about -fno-inline on 68030-based
8017 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
8018 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
8019 expressions using sizeof to int.
8020 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
8022 * macros/tmac.e (TS): Don't move @f back past the current
8025 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
8027 * ps/ps.c (main): Buffer stderr.
8028 * dvi/dvi.c (main): Likewise.
8029 * tty/tty.c (main): Likewise.
8031 * ps/ps.c (ps_printer::do_import): Improve error handling.
8033 * troff/input.c (abort_request): Use asciify.
8035 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
8036 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
8037 type of first argument int rather than char. This works around a
8038 bug on the 68030 based Apollo using g++ 1.37.1.
8040 * tbl/table.h (class table): Add `keep' member.
8041 * tbl/table.c (table::table): Initialize `keep'.
8042 (table::add_vertical_rule): Set `keep' to 1.
8043 (table::do_top): Only emit table keep macro is `keep' is non-zero.
8044 (table::do_bottom): Likewise for table release macro.
8045 (table::do_row): Emit section keep macro even if the row is 0.
8047 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
8049 * macros/tmac.e (@C): Preserve the font family across the change
8052 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
8054 * lib/font.c: Initialize font::hor and font::vert to 1.
8055 (font::load_desc): Check the values of font::hor and font::vert.
8057 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
8058 be included in a C compilation.
8059 (iftoa): Use INT_DIGITS. Include lib.h.
8061 (as_string): Likewise.
8062 * tbl/table.c: Removed definition of INT_DIGITS.
8063 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
8064 * troff/input.c (input_input_requests): Likewise.
8065 * ps/ps.c (make_encoding_name): Likewise.
8066 (ps_printer::set_style): Likewise.
8067 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
8069 * tty/devascii/R.proto: Map fm onto '.
8070 * tty/devlatin1/R.proto: Likewise.
8072 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
8074 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
8075 argument to \w is at a different input level.
8077 * tbl/table.c (table::init_output): Define a new macro
8078 REPEATED_VPT_MACRO, like vpt but if in a diversion also
8079 transparently outputs itself.
8080 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
8082 (table::do_row): Likewise.
8084 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
8085 TRANSPARENT_STRING_NAME.
8087 * tbl/table.c (table::init_output): In the table release macro
8088 print an error message and don't produce any output if after
8089 issuing the need request the table still will not fit. Also
8090 remove the diversion after bringing it back.
8092 * tbl/table.c (table::init_output): Define a new macro
8093 REPEATED_MARK_MACRO, like mk but if in a diversion also
8094 transparently outputs itself.
8095 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
8096 is necessary because .TH might not call .T#.
8097 (table::do_top): Likewise TOP_REG.
8098 (table::define_bottom_macro): If TOP_REG is no longer valid, use
8099 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
8100 table header might contain just the two top rules.
8102 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
8104 * troff/div.c: Implement new request `ptr' to print all traps.
8106 * troff/env.c (init_env_requests): Implement `.tabs' reg with
8107 init_string_env_reg.
8108 * troff/env.c (class tab_reg): Deleted.
8110 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
8112 * troff/div.c: New number register .pn returns the number of the
8113 next page as set by the pn request.
8115 * macros/tmac.an: Redid headers and footers. Number each manual
8116 entry starting from 1 unless \nC is > 0, like Sun. Added an
8117 optional 5th argument to .TH which specifies the manual name and
8118 appears in the center of the header. Understand the X, P and D
8121 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
8123 * troff/env.c (init_env_requests): New number register `.lt' to
8124 return the title length.
8126 * troff/node.h (class transparent_dummy_node): New class.
8127 * troff/node.c (class transparent_dummy_node): Provide member
8129 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
8132 * troff/input.c (token::next): New escape sequence \).
8133 * troff/input.c (get_copy): Recognize \) in copy mode.
8135 * troff/input.c (input_stack::clear): New function.
8136 * troff/input.c (exit_request): Use input_stack::clear.
8138 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
8139 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
8141 * troff/env.c: Move set_page_character to input.c. Move
8142 page_character to input.c also.
8143 * troff/env.c (title): Split off the reading of the parts of the
8144 title into read_title_parts.
8145 * troff/input.c (read_title_parts): New function. Check the
8146 input_level when testing whether a token matches the delimiter.
8148 * troff/input.c (exit_request): New function.
8149 * troff/input.c (init_input_requests): Bind ex request to
8150 exit_request rather than exit_groff.
8152 * troff/input.c (exit_groff): Call tok.next() before
8153 process_input_stack().
8155 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
8157 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
8158 * troff/env.h: ditto.
8159 * troff/input.c: ditto.
8161 * troff/env.c (environment::is_empty): Test pending_lines.
8163 * troff/env.c (environment::have_pending_lines): Removed.
8165 * troff/input.c: Add request to flush pending lines from the
8168 * troff/env.c, troff/env.h: Add automatic widow control feature.
8170 * troff/input.c (exit_groff): Do process_input_stack() after
8171 do_break() but before setting exit_flag to 2.
8173 * troff/input.c: Remove FLUSH_PENDING_LINES and
8174 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
8175 environment after END_TRAP token seen, but only if there aren't
8176 any more traps still unfinished.
8177 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
8179 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
8181 * troff/env.c: Rename the `retain_size' member of class
8182 pending_output_line to `no_fill'.
8184 * troff/env.c (title): When the line is output, make the
8185 retain_size argument !fill.
8187 * troff/node.h: Add `hyphenated' member to struct breakpoint.
8188 * troff/node.c (space_node::get_breakpoints),
8189 (dbreak_node::get_breakpoints): Fill this in.
8190 * troff/env.c: Allow specification of maximum number of
8191 consecutive hyphenated lines.
8193 * troff/env.c (environment::is_empty): Add test for !current_tab.
8195 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
8197 * troff/env.c (environment::hyphenate_line): Don't completely give
8198 up if the word is not to be hyphenated; continue so that breaks
8199 can be made at break_char_node's.
8201 * lib/lib.h: Only define INT_MAX if it's not already defined;
8202 undef INT_MIN if it's already defined.
8204 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
8206 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
8207 This works around a bug in AT&T C++ 2.0 used with an ANSI C
8210 * macros/tmac.an (an-header): Set no-space mode.
8212 * macros/tmac.an (TH): Start a new page if necessary.
8214 * Started using ChangeLog at version 0.4.
8217 version-control: never