1 2000-11-08 Werner LEMBERG <wl@gnu.org>
3 Add system tmac directory (/usr/local/lib/groff/site-tmac).
5 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
6 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10 * tmac/Makefile.sub (install_data): Create
11 $(systemtmacdir) and $(localtmacdir).
12 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
13 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
14 NEWS, doc/groff.texinfo: Updated and minor fixes.
16 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
17 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
18 $(systemtmacdir) since the wrapper files are platform-dependent.
20 2000-11-01 Werner LEMBERG <wl@gnu.org>
22 * doc/groff.texinfo: Fix typo.
24 2000-10-26 Werner LEMBERG <wl@gnu.org>
26 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
27 tmac.doc.old -> doc-old.tmac
28 tmac.an.old -> an-old.tmac
30 * tmac/tmac.*: Moved to ...
32 * tmac/man.local: Fix comment.
33 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
34 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
35 Added some `FILES' sections. More use of @...@ directives. Other
37 * arch/djgpp/README, font/devutf8/NOTES: Updated.
38 * doc/homepage.ms, doc/groff.texinfo: Updated.
39 * man/groff.man, man/roff.man: Updated.
40 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
41 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
42 src/devices/grotty/grotty.man: Updated.
43 * src/preproc/pic/pic.man: Updated.
44 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
46 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
47 * src/roff/nroff/nroff.man: Updated.
50 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
52 * tmac/mm.diff: Removed -- it has no use now since the mm package
55 * tmac/*: Removed trailing spaces.
57 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
58 the tmac subdirectory also).
60 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
61 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
62 stuff since it is no longer needed.
64 * README, PROBLEMS: Updated.
66 2000-10-25 Werner LEMBERG <wl@gnu.org>
68 Invert current behaviour: Search first FOOBAR.tmac, then
71 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
72 (open_mac_file, macro_source): Implement it.
73 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
74 doc/groff.texinfo, NEWS: Document it.
76 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
77 Small documentation improvements.
79 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
82 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
84 2000-10-24 Werner LEMBERG <wl@gnu.org>
86 Add local tmac directory (groff/site-tmac).
88 * Makefile.in: Add $(localtmacdir).
89 (uninstall_dirs): Add $(localtmacdir).
90 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
91 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
92 in $(localtmacdir). Create $(localtmacdir).
93 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
94 Updated and minor fixes.
96 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
98 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
100 2000-10-23 Werner LEMBERG <wl@gnu.org>
102 Move hyphen.us to tmac directory.
104 * src/roff/troff/hyphen.us: Removed.
105 * src/tmac/hyphen.us: Added.
106 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
108 Change installation structure for data files from .../groff/... to
109 .../groff/<version><revision>/... to be conform with other GNU
112 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
113 doc/Makefile, src/xditview/Imakefile.in: Implement it.
114 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
115 * configure: Updated.
116 * arch/djgpp/README, font/devutf8/NOTES: Use it.
118 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
119 @MACRODIR@ instead of hard-coded directories.
121 2000-10-22 Werner LEMBERG <wl@gnu.org>
123 Implement $GROFF_BIN_PATH environment variable (which defaults to
124 $bindir) used for child programs of groff and similar wrappers.
126 * gendefs.sh: Improve documentation.
127 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
128 src/preproc/eqn/Makefile.sub (neqn),
129 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
130 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
132 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
133 $GROFF_PATH__ (the latter for communication with troff).
134 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
136 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
137 doc/groff.texinfo: Document it.
139 * doc/groff.texinfo: Improve documentation of troff's -a option.
141 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
143 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
144 non-intrusive eol marker.
145 (troff_output_file::determine_line_limits): New function.
146 (troff_output_file::draw): Use it.
147 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
148 output_pending_lines() instead of output_line().
149 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
150 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
151 createImage): Small fixes.
153 2000-10-14 Werner LEMBERG <wl@gnu.org>
155 Replace tmac.safer with a real secure solution.
157 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
158 system_request, pipe_output): Disable requests if in safer mode.
159 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
160 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
161 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
162 doc/groff.texinfo, src/roff/groff/groff.man,
163 src/roff/troff/troff.man, arch/djgpp/README: Updated.
165 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
166 (resource_manager::output_prolog): Replace setenv() with putenv().
168 2000-10-09 Werner LEMBERG <wl@gnu.org>
170 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
171 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
172 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
173 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
174 compilation errors with some compilers. It seems that this code
175 is no longer necessary -- if yes, it is easy to add some #ifdef's
176 for that particular old-fashioned compiler.
178 * MORE.STUFF: Added info about Meta-tbl.
180 * doc/groff.texinfo: Added more info about `.if "..."..."'.
182 2000-10-07 Werner LEMBERG <wl@gnu.org>
184 Adding a new escape sequence \B'...': If the string between
185 the delimiters is a valid numeric expression, return the character
186 `1', and `0' otherwise. This is an analogon to \A.
188 * src/roff/troff/input.cc (do_expr_test): Implement it.
189 (token::next): Use it.
190 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
192 * tmac/tmac.trace: Made independent from escape character.
194 2000-10-06 Werner LEMBERG <wl@gnu.org>
196 Adding a new request .dei: define indirect. The first and second
197 parameter of .dei are taken from string registers instead directly;
198 this very special request is needed to make tmac.trace independent
199 from the escape character (which might even be disabled).
201 * src/roff/troff/input.cc (do_define_macro): Implement it.
202 (define_macro_indirect): New function.
203 (init_input_requests): Use it.
205 Adding two requests .ecs and .ecr: Save and restore the escape
206 character. These two requests are needed to make tmac.trace
207 independent from the escape character (which might even be
210 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
212 (init_input_requests): Use it.
214 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
216 2000-09-22 Ricardo Soares GuimarĂ£es <ricardo@conectiva.com.br>
218 Adding a new option -P and new environment variable GROPS_PROLOGUE
219 to grops, selecting a different prologue file (minor modifications
222 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
223 src/devices/grops/ps.cc (main): Implement it.
224 * src/devices/grops/grops.man, NEWS: Document it.
226 2000-09-22 Werner LEMBERG <wl@gnu.org>
228 * INSTALL: Add info about selecting paper format.
230 2000-09-21 Werner LEMBERG <wl@gnu.org>
232 * src/roff/troff/input.cc (main): Fixing compiler warning.
233 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
234 strings.h from the former to the latter.
235 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
236 stuff from the former to the latter.
238 2000-09-11 Werner LEMBERG <wl@gnu.org>
240 Implementing two new requests .tm1 and .tmc: The former is similar
241 to .tm but can output leading spaces; its syntax is similar to
242 defining a string, i.e., a `"' can be used to mark the beginning of
243 the string to be written to stderr: `.tm1 " test'. The latter is
244 similar to .tm1 but doesn't write out a final newline character.
246 * src/roff/troff/input.cc (terminal1, terminal_continue,
247 do_terminal): New functions.
248 (init_input_requests): Use them.
249 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
251 2000-09-09 Werner LEMBERG <wl@gnu.org>
253 * tmac/groff_mdoc.samples.man: Small fixes.
255 2000-09-08 Werner LEMBERG <wl@gnu.org>
257 * tmac/groff_mdoc.man: Fixing typo.
259 2000-09-02 Werner LEMBERG <wl@gnu.org>
261 Implementing a .nop request which does nothing.
263 * src/roff/troff/input.cc (nop_request): New function.
264 (init_input_requests): Use it.
265 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
267 2000-09-01 Werner LEMBERG <wl@gnu.org>
269 * doc/groff.texinfo: Added some comments.
271 2000-08-30 Werner LEMBERG <wl@gnu.org>
273 * src/roff/troff/TODO: Updated.
275 2000-08-28 Bruno Haible <haible@clisp.cons.org>
277 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
280 2000-08-25 Werner LEMBERG <wl@gnu.org>
282 * doc/groff.texinfo: Fix comment how to compile the DVI file.
284 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
286 * font/devps/generate/Makefile (SHELL): Define explicitly to
287 "/bin/sh", for non-Unix platforms.
288 (extraclean): Use a more portable "" quoting instead of a
289 backslash (which doesn't work on DOS/Windows).
291 * font/devlj4/generate/Makefile (extraclean): Ditto.
293 * font/devdvi/generate/Makefile (extraclean): Ditto.
295 2000-08-25 Werner LEMBERG <wl@gnu.org>
297 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
298 src/roff/troff/troff.man: Document Eli's latest changes.
300 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
302 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
303 macro file names of the form NAME.tmac as well as tmac.NAME.
305 2000-08-25 Werner LEMBERG <wl@gnu.org>
307 * src/include/posix.h: Remove definition of FILENAME_MAX.
309 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
310 `sys_fatal' and `stop' function().
312 * test-groff: Updated.
314 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
316 Added the new troff command .output <arg> to suppress output (while
317 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
318 registers (for passing the output dimensions to the output device).
320 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
322 * src/roff/troff/node.h, src/roff/troff/node.cc
323 (troff_output_file::really_print_line,
324 ascii_output_file::really_print_line,
325 supress_output_file::really_print_line): Use `width' parameter.
326 (troff_output_file::really_on, troff_output_file::really_off,
327 output_file::on, output_file::off, real_output_file::on,
328 real_output_file::off, real_output_file::really_on,
329 real_output_file::really_off): New functions.
330 (real_output_file:public output_file): New variable `output_on'.
331 (real_output_file::begin_page, real_output_file::copy_file,
332 real_output_file::transparent_char, real_output_file::print_line):
334 (real_output_file::print_line): Use check_output_limits.
335 * src/roff/troff/reg.h, src/roff/troff/request.h,
336 src/roff/troff/input.cc (assign_registers): New function to remove
338 (do_ps_file): Use it.
339 (check_output_limits, reset_output_registers, output_request,
340 init_output_requests): New functions.
341 (init_input_requests): Updated.
343 Added new grohtml2 device and html2 preprocessor (coding
344 not yet finished) which will eventually replace grohtml.
346 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
348 * src/include/htmlindicate.h, src/include/htmlindicate
349 (html_begin_suppress, html_end_suppress): New functions.
350 * src/preproc/tbl/main.cc: Use it.
351 * src/roff/groff/groff.cc: Add support for html2 device (which will
352 automatically invoke the html2 preprocessor).
353 * src/roff/troff/input.cc (is_html2): New variable.
354 * src/roff/troff/troff.h, src/roff/troff/env.h,
355 src/roff/troff/env.cc (environment::add_html_tag): New function
357 (environment::do_break): Use it.
358 * font/devhtml2/*: New files.
359 * src/devices/grohtml2: New device.
360 * src/preproc/html2: New preprocessor.
361 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
363 2000-08-23 Werner LEMBERG <wl@gnu.org>
365 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
367 2000-08-22 Werner LEMBERG <wl@gnu.org>
369 * src/include/lib.h: Provide a fix for IRIX to not include
372 2000-08-18 Werner LEMBERG <wl@gnu.org>
374 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
375 since some non-GNU sed programs can't handle null regexps.
376 * configure, src/preproc/eqn/Makefile.sub,
377 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
379 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
380 bug (string.h and strings.h are both needed according to latest
383 * MORE.STUFF: Added info about unroff and troffcvt.
385 2000-08-08 Werner LEMBERG <wl@gnu.org>
387 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
390 * tmac/tmac.man.old: Remove unused number register.
392 * tmac.doc: Minor documentation fix.
394 2000-08-07 Paul Eggert <eggert@twinsun.com>
396 * src/roff/groff/pipeline.c (is_system_shell):
397 Fix typo: "monocased_shell" no longer exists.
399 2000-08-07 Paul Eggert <eggert@twinsun.com>
401 Remove FILENAME_MAX limits.
403 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
404 that the argument length is less than FILENAME_MAX.
405 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
406 Use struct hack to allocate and free file name.
407 (struct xtmpfile_list): fname is now part of the structure,
408 not a pointer to another string.
410 2000-08-07 Tom Schmidt <tschmidt@micron.com>
412 * src/include/posix.h: Add a default value for FILENAME_MAX.
414 2000-08-06 Paul Eggert <eggert@twinsun.com>
416 Add support for new BSD-style man pages (with ".Dd" instead of
417 ".TH"), so that "groff -man" understands both styles, even
418 when running "groff -man" on a host whose system man page
419 macros don't support ".Dd".
421 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
422 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
423 in case the system man macros don't define Dd or TH.
425 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
426 * tmac/tmac.an: New one-line file.
427 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
429 2000-08-06 Werner LEMBERG <wl@gnu.org>
431 * src/roff/troff/troff.man: Fixing typos.
433 Version 1.16.1 released
434 =======================
436 2000-07-31 Werner LEMBERG <wl@gnu.org>
438 Preparing release 1.16.1.
440 * REVISION: Revision number set to 1.
441 * MORE.STUFF: Added info about port to DOS.
442 * NEWS, win32-diffs: Updated.
444 * src/include/nonposix.h: Remove first line -- this file is used
447 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
450 2000-07-30 Werner LEMBERG <wl@gnu.org>
452 * doc/texinfo.tex: Update to latest version.
454 2000-06-28 Paul Eggert <eggert@twinsun.com>
456 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
457 commands that fail. Don't assume that "export a=b" is valid shell
458 syntax. This is needed for Solaris 2.5.1.
460 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
461 comment about missing Solaris headers.
463 * PROBLEMS: Add section about problems with Sun Make and VPATH.
465 2000-06-25 Werner LEMBERG <wl@gnu.org>
467 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
470 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
472 * win32-diffs: Updated.
473 * README.WIN32: Added CRs to make all Windows editors happy.
475 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
476 src/roff/groff/pipeline.c).
478 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
480 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
481 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
483 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
485 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
486 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
488 (main): Support non-Posix systems with several different styles of
489 slash characters in file names.
491 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
492 (main) [SET_BINARY]: Switch stdin into binary mode.
494 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
495 (main): Support file names with several possible slash-type
496 characters, as given by DIR_SEPS[] in nonposix.h.
497 (main) [__MSDOS__]: If renaming the temporary index file fails
498 because it has more than one dot in its trunk, replace the dot
499 with an underscore and try again.
500 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
502 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
504 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
505 (File::File): Open the input file in binary mode. Strip CR
506 characters from each CR-LF pair.
507 (xbasename): Support file names with several possible slash-type
508 characters, as given by DIR_SEPS[] in nonposix.h.
510 * src/include/Makefile.sub (HDRS): Add nonposix.h.
512 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
513 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
514 [!_POSIX_VERSION]: Define for traditional Unix systems.
515 (real_output_file::real_output_file): Remove the MSVC-specific
516 call to popen, use instead POPEN_WT, appropriately defined on
517 nonposix.h. #include nonposix.h.
518 (real_output_file::~real_output_file): Remove the MSVC-specific
519 call to pclose, a suitable macro is now defined on nonposix.h.
520 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
521 and WEXITSTATUS instead of assuming traditional Unix
522 interpretation of the status returned by pclose.
524 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
525 call to popen, use POPEN_RT instead (appropriately defined on
526 nonposix.h). #include nonposix.h.
527 (ps_bbox_request): Open the PostScript file in binary mode.
528 Close the file after processing it.
529 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
532 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
533 A version of run_pipeline that doesn't use `fork'.
534 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
535 (system_shell_name, system_shell_dash_c)
536 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
537 the ugliness of testing DOS/Windows file names for equality, and
538 support both stock shells and ports of Unix shells.
540 * src/roff/groff/groff.cc: #include nonposix.h.
541 (BSHELL): Definition moved to nonposix.h.
542 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
543 instead of a literal "-c".
544 (xbasename): Support file names with several possible slash-type
545 characters, as given by DIR_SEPS[] in nonposix.h.
546 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
549 * src/preproc/soelim/soelim.cc: #include nonposix.h.
550 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
552 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
555 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
557 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
560 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
562 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
563 P_tmpdir is defined, use it instead of the literal "/tmp".
564 (remove_tmp_files, add_tmp_file): New functions.
565 (xtmpfile): Record temporary files and register an atexit function
566 to delete them explicitly, instead of relying on the OS to do
567 that, which doesn't work on non-Unix systems.
569 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
570 (search_path::search_path): Use PATH_SEP instead of a literal
572 (search_path::command_line_dir): Ditto.
573 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
574 to support non-Posix systems.
576 * src/libc/libbib/search.cc: #include nonposix.h.
577 (search_list::add_file): Open the file in binary mode.
579 * src/libs/libbib/linear.cc: #include nonposix.h.
580 (file_buffer::load): Remove \r characters preceding \n from the
583 * src/libs/libbib/index.cc: #include nonposix.h.
584 (make_index_search_item): Open index_filename in O_BINARY mode.
585 (index_search_item_iterator::get_tag): Ditto. Remove \r
586 characters before \n characters.
587 (index_search_item::check_files): Open files in binary mode.
588 (index_search_item::munge_filename): Support DOS-style file names
589 with backslashes and drive letters, use IS_ABSOLUTE.
591 * src/devices/grops/ps.cc: #include nonposix.h.
592 (main) [SET_BINARY]: Switch stdout to binary mode.
594 * src/devices/grolj4/lj4.cc: #include nonposix.h.
595 (main) [SET_BINARY]: Switch stdout to binary mode.
597 * src/devices/grolbp/lbp.cc: #include nonposix.h
598 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
600 * src/devices/grodvi/dvi.cc: #include nonposix.h.
601 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
603 (main) [SET_BINARY]: Switch stdout to binary mode.
604 [_MSC_VER]: Remove an explicit call to _setmode.
606 * src/include/nonposix.h: New file.
608 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
609 operation when building with DJGPP.
610 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
611 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
614 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
616 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
617 etc. can include a semi-colon on DOS/Windows.
618 (depend.temp): Use depend1.temp instead of depend.temp1, to
619 prevent files from overerwiting each other on 8+3 filesystems.
621 * gendef.sh (t): Change definition to work with DOS/Windows.
623 doc/groff.texinfo: Apart of some typo corrections, I also changed
624 some index entris, to make them more non-ambiguous, and also put
625 @ignore around some parts that are not yet written, to allow the
626 Info output be readable.
628 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
630 Replaced specific checks for function declarations with a generic
631 routine taken from GNU bfd.
633 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
634 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
635 * configure.in: Use it.
636 * src/devices/grolbp/lbp.cc, src/include/lib.h,
637 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
638 src/roff/groff/groff.cc: Use it.
639 * Makefile.in, configure: Updated.
641 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
643 * src/devides/grolbp/lbp.h: Removed unused variables.
645 2000-05-31 Keith Thompson <kst@sdsc.edu>
647 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
650 2000-05-31 Werner LEMBERG <wl@gnu.org>
652 * aclocal.m4 (GROFF_SRAND): New function to test the return value
653 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
654 * configure.in: Use it.
655 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
656 * configure, Makefile.in: Updated.
658 * configure.in: Add test for strncasecmp().
659 * src/include/lib.h: Use it.
661 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
663 * src/preproc/grn/Makefile.sub: Add MLIB.
665 2000-05-29 Nix <nix@esperi.demon.co.uk>
667 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
669 2000-05-29 Werner LEMBERG <wl@gnu.org>
671 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
673 * PROBLEMS: Small update.
675 * src/devices/grolbp/lbp.cc: Various small fixes.
677 2000-05-28 Keith Thompson <kst@sdsc.edu>
679 * src/roff/nroff/nroff.sh: Fix main loop syntax.
681 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
683 2000-05-25 Werner LEMBERG <wl@gnu.org>
685 * man/roff.man: Removed unused macro.
687 2000-05-24 Werner LEMBERG <wl@gnu.org>
689 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
690 This is needed e.g. if you do
691 `make distclean; ./configure; make dist'.
693 Version 1.16 released
694 =====================
696 2000-05-23 Werner LEMBERG <wl@gnu.org>
698 Adding font CWI (constant width italic) to devdvi.
700 * font/devdvi/CWI: New file.
701 * font/devdvi/generate/Makefile: Add generating rule.
702 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
703 tmac/tmac.dvi: Use it.
706 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
707 * font/devlj4/generate/Makefile: Cosmetic changes only.
709 * man/groff.man: Removed most of the redundant description of
710 special characters (which is in groff_char.man). Added font
711 translation CB->CR for devdvi. Other minor fixes.
713 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
714 (registered) symbols.
716 2000-05-22 Werner LEMBERG <wl@gnu.org>
718 * doc/Makefile: Added rule for creating info files.
720 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
722 * font/devdvi/generate/Makefile: Fixed dependencies.
724 * font/devps/*: Regenerated. Heavy changes for Bookman and
725 NewCentury Schoolbook!
726 * font/devps/generate/afmname: Will now run with GNU awk.
727 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
728 * font/devps/generate/Makefile: Cosmetic changes only.
730 2000-05-21 Werner LEMBERG <wl@gnu.org>
732 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
733 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
734 `.SS' now produces a heading with a smaller size than `.SH'.
735 Completely formatted.
736 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
738 * man/groff.man: Improved table appearance. Use of `eo' request
739 to reduce number of doubled backslashes in macro definitions.
740 Replacing `\e' with `\(rs'. Other minor fixes.
742 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
743 to have correct line number.
745 * INSTALL: Small improvement.
747 2000-05-20 Bernd Warken <bwarken@mayn.de>
749 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
752 2000-05-19 Bernd Warken <bwarken@mayn.de>
754 * man/groff.man: Complete update (with a lot of corrections by WL).
756 2000-05-18 Werner LEMBERG <wl@gnu.org>
758 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
760 * font/*/*: Implement it.
761 * man/groff_char.man, NEWS: Document it.
763 * src/include/unix.h: Removed. It isn't used.
765 * doc/groff.texinfo: Slight improvements.
767 2000-05-17 Werner LEMBERG <wl@gnu.org>
769 * README, win32-diffs: Small fixes and improvements.
771 2000-05-16 Werner LEMBERG <wl@gnu.org>
773 * FDL: New file (the Free Documentation License version 1.1).
775 * doc/groff.texinfo: Added many start-up values for gtroff.
776 Some structural improvements of the source code.
778 2000-05-15 Werner LEMBERG <wl@gnu.org>
780 * src/roff/troff/input.cc: Added small comment about troffrc-end.
781 * src/roff/troff/troff.man: Added info about troffrc-end.
783 2000-05-14 Werner LEMBERG <wl@gnu.org>
785 * Makefile.in (EXTRADIRS): Fix typos.
786 (dist): Handle deletion of old .tar.gz file correctly.
787 (DISTDIRS): Include all tty output devices.
789 * doc/groff.texinfo: Adding more cross references; countless other
792 2000-05-13 Werner LEMBERG <wl@gnu.org>
794 * MORE.STUFF: Added Robert Marks's utilities.
796 2000-05-12 Werner LEMBERG <wl@gnu.org>
798 Added win32 port contributed by Blake McBride
799 <blake@florida-software.com>.
801 * README.WIN32, win32-diffs: New files.
804 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
805 (tmove, tmove2): Added parentheses to avoid compiler warnings.
806 (change): Removed unused variables.
808 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
809 (savebounds): Changed return value from `int' to `void'.
810 * src/preproc/grn/hdb.cc: Ditto.
812 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
813 final backslash in comment to avoid compiler warning.
815 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
817 * doc/groff.texinfo: More fixes.
819 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
821 * tmac/tmac.doc: Documentation fix.
823 2000-05-11 Werner LEMBERG <wl@gnu.org>
825 * doc/groff.texinfo: Reading the source code shows up a lot of
826 omissions and incorrect data... More conversion to @Deffn macros.
828 2000-05-10 Werner LEMBERG <wl@gnu.org>
830 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
833 * src/roff/troff/request.h: Removing unused `no_break_flag'.
835 2000-05-09 Werner LEMBERG <wl@gnu.org>
837 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
840 * doc/groff.texinfo: Extended history section. More conversion to
841 @Deffn macros. More .tr documentation.
843 2000-05-07 Werner LEMBERG <wl@gnu.org>
845 * doc/groff.texinfo: Completed tab section. Added info about
848 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
850 * PROBLEMS: Describe configure script fix for OS/390 Unix.
852 2000-05-05 Werner LEMBERG <wl@gnu.org>
854 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
858 * man/troff.man: Minor optical improvements.
860 2000-05-03 Werner LEMBERG <wl@gnu.org>
862 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
864 * font/*/*: Implement it.
865 * man/groff_char.man, NEWS: Document it.
867 2000-05-02 Werner LEMBERG <wl@gnu.org>
869 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
871 * NEWS: Document the three new man pages.
873 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
874 * configure: Updated.
876 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
878 2000-05-01 Werner LEMBERG <wl@gnu.org>
880 Added grap support to grog.
882 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
883 * src/roff/grog/grog.man: Document it.
885 * doc/groff.texinfo, NEWS: Add info about grap support.
887 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
888 (with slight fixes by me).
890 * tmac/groff_tmac.man: New file documenting tmac mechanism.
891 * tmac/Makefile.sub: Add groff_tmac.man.
892 * man/roff.man: New file giving overview of roff system.
893 * man/troff.man: A short reference of troff.
894 * man/Makefile.sub: Add roff.man and troff.man.
896 2000-04-30 Werner LEMBERG <wl@gnu.org>
898 Added grap support to groff.
900 * src/roff/groff/groff.cc: Implement it.
901 * src/roff/groff/groff.man: Document it.
903 * src/devices/grotty/grotty.man: Add cp1047 device.
904 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
906 * src/roff/groff/groff.man: Ditto.
907 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
908 * doc/groff.texinfo: Ditto.
910 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
913 2000-04-29 Werner LEMBERG <wl@gnu.org>
915 * man/groff_char.man: Add `pc' glyph.
916 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
917 * tmac/tmac.tty: Add `pc' glyph.
918 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
919 we use cp1047 output device.
921 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
922 there are still hardcoded latin1->unicode values in utf8's font
924 * configure: Updated.
925 * NEWS: Minor clarification. Updated.
927 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
930 2000-04-28 Werner LEMBERG <wl@gnu.org>
932 Adding EBCDIC code page 1047.
934 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
935 font/devcp1047/DESC.proto: New files.
937 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
938 either ascii/latin1 or cp1047.
939 * Makefile.in: Use it.
940 * configure: Updated.
942 Replacing and/or adding `md' (mathdot) glyph with `pc'
943 (periodcentered) in all text fonts.
945 * font/*/*: Change it.
947 2000-04-27 Werner LEMBERG <wl@gnu.org>
949 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
951 * configure.in: Add check for strings.h.
952 * src/include/driver.h: Use HAVE_STRINGS_H.
953 * src/devices/grolbp/lpb.cc: Remove string.h.
955 * src/include/groff-getopt.h: New file. It will be used instead of
956 getopt.h (to be included in lib.h) to avoid endless problems with
958 * src/include/lib.h: Use groff-getopt.h.
959 * src/include/Makefile.sub: Updated.
961 * configure: Updated.
962 * Makefile.in: Updated.
964 * NEWS: Mention EBCDIC support.
966 2000-04-26 Werner LEMBERG <wl@gnu.org>
968 * TODO: Some additions.
970 2000-04-25 Werner LEMBERG <wl@gnu.org>
972 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
975 2000-04-23 Werner LEMBERG <wl@gnu.org>
977 * src/roff/troff/troff.man: Minor fixes.
979 2000-04-22 Werner LEMBERG <wl@gnu.org>
981 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
982 `.T' string register and the incompatible definition of the `.T'
983 number register (compared to Unix troff).
985 * man/groff_char.man: Add some missing characters.
986 * font/devutf8/NOTES: Update.
988 2000-04-21 Werner LEMBERG <wl@gnu.org>
990 * src/include/htmlindicate.h, src/include/lib.h,
991 src/include/posix.h: Fix copyright.
993 * src/include/Makefile.sub: Update.
995 2000-04-20 Werner LEMBERG <wl@gnu.org>
997 * src/roff/troff/input.cc (input_char_description): Removing
998 superfluous space char.
1000 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
1002 * doc/groff.texinfo: Document EBCDIC.
1004 2000-04-19 Werner LEMBERG <wl@gnu.org>
1006 Introducing `shc' as the glyph name for the soft hyphen character.
1008 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
1009 font/devlatin1/R.proto: Use it.
1013 2000-04-18 Werner LEMBERG <wl@gnu.org>
1015 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
1016 dependency on ASCII order.
1018 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
1020 * src/libs/libgroff/illegal.c: Added EBCDIC table.
1021 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
1023 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
1024 to increase portability.
1026 2000-04-15 Werner LEMBERG <wl@gnu.org>
1028 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
1029 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
1030 the generic `\n' if under OS/390 Unix.
1032 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
1034 * configure: Regenerated.
1036 2000-04-14 Werner LEMBERG <wl@gnu.org>
1038 * doc/groff.texinfo: More conversions to @Deffn.
1040 2000-04-12 Werner LEMBERG <wl@gnu.org>
1042 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
1045 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
1047 2000-04-10 Werner LEMBERG <wl@gnu.org>
1049 * doc/groff.texinfo: More conversions to @Deffn.
1051 2000-04-08 Werner LEMBERG <wl@gnu.org>
1053 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
1054 Updated to latest version (glibc 2.1.3).
1056 2000-04-07 Werner LEMBERG <wl@gnu.org>
1058 * doc/Makefile (clean): Include more index files.
1059 Add rule texinfo->dvi.
1061 2000-04-05 Werner LEMBERG <wl@gnu.org>
1063 * doc/groff.texinfo: Added new index `op' for operators. More
1064 info on end of sentence characters. More use of @Deffn.
1066 2000-03-30 Werner LEMBERG <wl@gnu.org>
1068 * */*.man: Adding a note that a whitespace can be inserted between
1069 a command line option and its parameter -- we are using GNU getopt.
1071 * src/roff/groff/groff.man: Add example of `-m mandoc'.
1073 2000-03-28 Werner LEMBERG <wl@gnu.org>
1075 Correct anachronism of calling the man macro file with `-man'
1076 instead of `-m man' etc.
1078 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
1079 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
1080 load tmac.<package>.
1082 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
1086 * doc/groff.texinfo: Updated.
1088 * tmac/groff_man.man: Copyright added.
1090 2000-03-27 Werner LEMBERG <wl@gnu.org>
1092 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
1093 typeset the request resp. escape name with a tt font -- due to a
1094 bug in texinfo.tex it is necessary to use the `-e' switch with
1097 Improving info about usage of groff units.
1101 2000-03-20 Werner LEMBERG <wl@gnu.org>
1103 * doc/groff.texinfo: Added section about man macro package
1104 (I've basically taken groff_man.man). Introducing new indices `ma'
1105 for macros/strings and `gl' for glyph names. Other minor fixes.
1107 * tmac/groff_man.man: Fixed some typos.
1109 2000-03-19 Werner LEMBERG <wl@gnu.org>
1111 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
1114 * doc/texinfo.tex: New file.
1116 2000-03-18 Werner LEMBERG <wl@gnu.org>
1118 * doc/groff.texinfo: Improved section on number registers. Other
1121 2000-03-16 Werner LEMBERG <wl@gnu.org>
1123 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
1126 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
1127 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
1128 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
1129 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
1131 * src/preproc/grn/grn.man: Better synopsis; added copyright.
1133 * src/roff/grog/grog.man: Updated copyright date.
1135 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
1137 * configure.in: Added test for strdup.
1139 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
1142 Replaced dynamic allocation of arrays `[...]' with `new' operator.
1146 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
1148 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
1150 2000-03-11 Werner LEMBERG <wl@gnu.org>
1152 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
1154 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
1155 * src/include/lib.h: Remove some spaces.
1157 2000-03-10 Werner LEMBERG <wl@gnu.org>
1159 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
1160 initializers from arguments (some compilers don't like this).
1162 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
1164 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
1165 used by pic and eqn to tell grohtml where the graphic regions start
1167 * src/libs/libgroff/Makefile.sub: Use it.
1168 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
1169 graphic_start() and graphic_end() from htmlindicate.cc.
1171 2000-03-09 Werner LEMBERG <wl@gnu.org>
1173 * tmac/tmac.safer: Will now work correctly in compatibility mode.
1174 * tmac/groff_man.man: More fixes.
1176 2000-03-08 Werner LEMBERG <wl@gnu.org>
1178 * doc/Makefile: Added texput.log to the `clean' target.
1179 * doc/groff.texinfo: Added info about delimiters for escapes.
1181 2000-03-08 Bernd Warken <bwarken@mayn.de>
1183 * src/preproc/pic/pic.man: Add info on conversion of pic images to
1184 other graphic formats.
1186 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
1188 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
1189 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
1190 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
1193 2000-03-07 Werner LEMBERG <wl@gnu.org>
1195 * doc/groff.texinfo: Spelling fixes.
1197 2000-03-06 Werner LEMBERG <wl@gnu.org>
1199 * tmac/groff_man.man: Completely revised to cover everything in
1202 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
1203 Other minor fixings.
1204 * src/roff/troff/env.cc (environment_copy): Improve error message and
1206 * src/roff/troff/TODO: Updated.
1208 * doc/Makefile: Bug fixes -- this is still provisional, though...
1210 * tmac/eqnrc: Small fixes.
1212 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
1214 Adding a request `evc' to copy environments.
1216 * src/roff/troff/env.cc (environment::copy, environment_copy):
1218 * src/roff/troff/env.h: Add prototype.
1220 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
1222 Adding strsep() -- Solaris 8 doesn't have it.
1224 * configure.in: Test it.
1225 * src/devices/grolbp/lbp.cc: Add code.
1227 2000-03-05 Werner LEMBERG <wl@gnu.org>
1229 * src/roff/troff/div.cc (macro_diversion::output,
1230 top_level_diversion::output): Fixing an incompatibility with
1231 original troff: \x'0' updates the .a register also. Thanks to
1232 <Andries.Brouwer@cwi.nl> for pointing this out.
1233 * doc/groff.texinfo: Document it.
1235 * Makefile.in: Create Makefile.dep if necessary before calling the
1236 submake process to avoid warning about nonexistent file.
1238 * NEWS, PROJECTS: Updated.
1240 2000-03-04 Werner LEMBERG <wl@gnu.org>
1242 * tmac/troffrc: Add tmac.lbp.
1244 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
1246 * tmac/tmac.lbp: New file.
1247 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
1250 2000-03-03 Werner LEMBERG <wl@gnu.org>
1252 * Makefile.in: Fixing $(subdir).
1254 * README, NEWS: Small fixes.
1256 * test-groff: Adding path to grolbp.
1258 * configure.in: The (new) file src/xditview/Imakefile.in will be
1259 also configured -- it is now possible to build gxditview in a
1260 directory different from $srcdir.
1262 2000-03-02 Blake McBride <blake@florida-software.com>
1264 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
1266 * MORE.STUFF: Added website of bell labs and info about plot2dev.
1268 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
1270 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
1273 2000-02-29 Werner LEMBERG <wl@gnu.org>
1275 Adding GNU getopt to the groff distribution.
1277 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
1279 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
1280 * aclocal.a4: Remove GROFF_GETOPT function.
1281 * configure.in, Makefile.in, PROBLEMS: Update.
1282 * src/include/lib.h: Replace getopt tests with getopt.h.
1283 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
1285 * doc/groff.texinfo: Further checking/updating. Adding more index
1288 * man/groff_out.man: Fix nroff mode activation (for emacs).
1289 * man/groff_font.man: Add missing ligature.
1291 2000-02-28 Werner LEMBERG <wl@gnu.org>
1293 * doc/groff.texinfo: Further checking/updating. Adding more index
1296 * src/devices/grolbp/grolbp.man: Added a comment line at the
1297 beginning of the file (similar to shell scripts) which indicates
1298 that `tbl' should be used as a preprocessor.
1300 2000-02-27 Blake McBride <blake@florida-software.com>
1302 Adapting groff to MS Visual C++ 6.0 compiler (tested with
1303 Windows NT 4.0). Uses _MSC_VER define where necessary.
1305 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
1306 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
1307 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
1308 src/include/lib.h, src/libs/libgroff/errarg.cc,
1309 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
1310 src/preproc/refer/label.y, src/preproc/refer/label.cc,
1311 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
1312 src/roff/troff/div.cc, src/roff/troff/env.cc,
1313 src/roff/troff/input.cc, src/roff/troff/node.cc,
1314 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
1315 if_to_a() to avoid name clashes.
1316 * src/include/posix.h: Don't use unistd.h.
1317 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
1318 clause for integrating non-Unix xtmpfile() code.
1319 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
1320 structure; use "rt" for popen() in pipe_source(); add getpid()
1322 * src/roff/troff/node.cc: Use special versions of popen() in
1323 real_output_file() and pclose() in ~real_output_file().
1325 2000-02-27 Werner LEMBERG <wl@gnu.org>
1327 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
1328 LBP-8 series laser printers). This code has been contributed by
1329 Francisco Andres Verdu <pandres@dragonet.es>.
1331 * src/devices/grolbp/*: The grolbp output device.
1332 * font/devlpb/*: The font description files.
1333 * Makefile.in: Add grolpb and devlbp subdirectories.
1335 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
1336 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
1339 * doc/groff.texinfo: Further checking/updating. Adding more index
1344 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
1346 * man/groff_font.man: Adding info about obsolete DESC keywords.
1347 * src/devices/grolj4/grolj4.man: Documenting additional DESC
1350 2000-02-26 Werner LEMBERG <wl@gnu.org>
1352 * src/preproc/grn/grn.man: Added info about the gremlin file format
1353 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
1355 2000-02-25 Werner LEMBERG <wl@gnu.org>
1357 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
1358 friends to be non-integer.
1360 * src/preproc/grn/grn.man: Document it.
1362 * doc/groff.texinfo: Further checking/updating. Adding more index
1365 2000-02-24 Werner LEMBERG <wl@gnu.org>
1367 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
1368 line thicknesses to be integer multiples of this value.
1370 * src/preproc/grn/grn.man: Commenting out the -s option -- the
1371 corresponding code doesn't work (yet).
1373 * doc/groff.texinfo: Further checking/updating. Adding more index
1376 2000-02-23 Werner LEMBERG <wl@gnu.org>
1378 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
1379 specify line thickness instead of base units. The new default
1380 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
1381 thick lines respectively.
1383 Removed unused variable `prevval'.
1385 * src/preproc/grn/grn.man: Updated.
1387 2000-02-22 Werner LEMBERG <wl@gnu.org>
1389 * src/preproc/grn/main.cc: Slight formatting.
1391 * src/roff/groff/groff.man: Formatting fix.
1392 * src/preproc/grn/grn.man: Ditto.
1394 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
1396 * doc/groff.texinfo: Further checking/updating.
1398 2000-02-21 Werner LEMBERG <wl@gnu.org>
1400 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
1402 * test-groff: Added grn subdir to path.
1404 * doc/groff.texinfo: Some restructing and other small improvements.
1406 * src/roff/groff/groff.cc (help): Fixed info string.
1408 2000-02-20 Werner LEMBERG <wl@gnu.org>
1410 * doc/meref.me: Fix description of .GS request.
1412 * src/roff/troff/troff.man: Fixing typo.
1414 Adding the `grn' preprocessor for gremlin graphic files.
1416 * src/preproc/grn/*: This is the Berkeley distribution written by
1417 David Slattengren and Barry Roitblat, adapted to groff by Daniel
1418 Senderowicz and Werner Lemberg.
1420 * doc/grnexampl.{me,g}: A sample for grn.
1422 * Makefile.in: Added subdirectory entry for grn.
1424 * src/roff/groff/groff.cc: Added support for grn. It can be now
1425 called with the switch `-g'.
1427 * src/roff/groff/groff.man: Updated.
1429 * src/roff/grog/grog.{man,pl,sh}: Updated.
1433 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
1435 * src/include/lib.h: Added xtmptemplate and made xtmpfile
1436 parametrically polymorphic.
1438 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
1439 and the alterations to xtmpfile.
1440 xtmpfile can be requested to return the filename created
1441 and asked not to unlink the temp file. The default behaviour
1442 if parameters are absent is exactly the same as before.
1444 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
1446 A new request `length' is available which returns the length of a
1447 string in a number register:
1449 * src/roff/troff/input.cc (length_macro): Implement it.
1450 * src/roff/troff/input.cc (init_input_requests): Register it.
1452 2000-02-11 Werner LEMBERG <wl@gnu.org>
1454 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1455 of the `substring' request.
1457 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1460 * src/roff/troff/TODO, NEWS: Updated.
1462 2000-02-09 Werner LEMBERG <wl@gnu.org>
1464 * src/roff/groff/groff.man: Added an example.
1466 2000-02-06 Werner LEMBERG <wl@gnu.org>
1468 I've considerably modified the directory structure of the
1469 distribution to get a more vertical layout. For example, the number
1470 of top level directories has been reduced from 42 to 6.
1472 As a consequence, many changes, especially to the makefiles, were
1475 * The makefile variables `top_builddir' and `top_srcdir' have been
1476 introduced. Virtually all relative paths have been replaced with
1477 absolute ones using these two variables.
1479 * Dependencies (in the files `Makefile.dep') are no longer part of
1480 the distribution. Instead, they are created during a `make install'
1481 in the build directory.
1483 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1484 make `top_srcdir' and `top_builddir' absolute.
1488 * Man pages no depend on the files `VERSION' and `REVISION'.
1490 * The added shell script `mkinstalldirs' will replace `mkdir' in
1493 * VERSION: Version number increased to 1.16.
1495 2000-02-04 Werner LEMBERG <wl@gnu.org>
1497 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1499 * Makefile.in: Removed $(tmac_m) since it is no longer needed
1500 (after an update of the mm stuff).
1502 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1504 2000-02-03 Werner LEMBERG <wl@gnu.org>
1506 The .psbb request will now also accept Mac PS images (i.e. using LF
1507 as the EOL character).
1509 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1510 (with slight modifications).
1511 * troff/input.cc (do_ps_file): Use it.
1513 * test-groff: Add grohtml and grolj4 output devices to PATH.
1515 2000-01-30 Werner LEMBERG <wl@gnu.org>
1517 * NEWS, MORE.STUFF: Updated.
1519 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
1521 Add the `srand' command to pic.
1523 * pic/lex.cc, pic/pic.y: Implement it.
1524 * pic/pic.man: Document it.
1525 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1527 2000-01-30 Werner LEMBERG <wl@gnu.org>
1529 Add a new request `.psbb'. This does exactly what the external
1530 program psbb did. It scans a PostScript image file for a
1531 %%BoundingBox comment and extracts the bounding box values (in
1532 PostScript units) which are then stored in the four new (read-only)
1533 number registers `llx', `lly', `urx', and `ury'.
1535 This will allow the usage of the .PSPIC macro without worrying
1536 about unsafe behaviour of groff, i.e., it will work without the
1537 `-U' switch of groff.
1539 * troff/input.cc: Implement it.
1540 * tmac/tmac.pspic: Use it.
1541 * troff/troff.man, grops/grops.man, NEWS: Document it.
1542 * psbb/*, Makefile.in: Remove it since it is no longer needed.
1544 This is bloody C code simply adapted from psbb.c! Any improvements
1547 2000-01-29 Werner LEMBERG <wl@gnu.org>
1549 * man/groff_font.man: Minor clarifications.
1553 2000-01-28 Werner LEMBERG <wl@gnu.org>
1555 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1557 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
1559 * man/groff_font.man: Brought up to date regarding tcommand
1561 * libgroff/font.cc: Handle everything after `--' as a comment
1563 * devps/*: Added comment delimiter inside devps font files.
1565 2000-01-28 Werner LEMBERG <wl@gnu.org>
1567 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1568 \fC...\fP (which now works as expected).
1570 * troff/troff.man: Fix typo.
1572 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
1574 Completed the pass_filenames implementation in troff.
1576 * libdriver/input.cc: Will read the new `F' tcommand.
1577 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1578 * troff/input.cc: Use it.
1580 2000-01-26 Werner LEMBERG <wl@gnu.org>
1582 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
1583 font will now be updated even if an invalid font is selected.
1585 2000-01-24 Werner LEMBERG <wl@gnu.org>
1587 * doc/homepage.ms: Updated for new tmac.arkup.
1589 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1591 * tmac/tmac.arkup: Cleanup.
1593 Added `\&' to .HTML macro to `leave vertical mode', so to say.
1595 Removed obsolete .LINK macro completely.
1597 The macros .URL, .FTP, and .MAILTO now accept a third argument which
1598 will be immediately appended to the second argument (to be used with
1599 punctuation, for example).
1601 Disabled .CDFTP macro temporarily for security reasons.
1603 * tmac/groff_markup.man: Complete revision for latest changes in
1604 tmac.arkup -- note that it does not yet format correctly with
1607 2000-01-23 Bruno Haible <haible@clisp.cons.org>
1609 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1610 * devutf8/R.proto: Add mappings for wp, lh, rh.
1611 * devutf8/NOTES: Updated.
1613 2000-01-23 Werner LEMBERG <wl@gnu.org>
1615 * doc/groff.texinfo: Updated version/copyright info.
1617 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
1619 Added support for two new directives in device descriptions:
1620 `pass_filenames' (to pass the input file name to the output device)
1621 and `use_charnames_in_special' (to support e.g. accented characters
1622 in the `X' request).
1624 * include/font.h, troff/charinfo.h: Declare it.
1626 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1628 * devhtml/DESC: Use it.
1630 * troff/input.cc: New function encoded_char.
1632 * troff/token.h: Add test for `specialness'.
1634 2000-01-21 Werner LEMBERG <wl@gnu.org>
1636 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1637 mistake from the list of files to be installed.
1639 2000-01-18 Werner LEMBERG <wl@gnu.org>
1641 * README: Added info how to apply patches.
1643 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
1645 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
1647 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
1649 * troff/input.cc: Add support for troffrc-end.
1651 * tbl/main.cc: Altered to issue table-start and table-end special
1652 characters if using the html device.
1654 * devhtml/*: Modified font files to incorporate html encoding of
1657 * tmac/groff_markup.man: New file documenting tmac.arkup.
1659 * tmac/troffrc-end: New file. This is invoked after all user
1660 specified macros. Currently used by the html device to include
1661 tmac.html. Thus no need for users to specify -mhtml anymore.
1663 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1664 (MAN7): Add groff_markup.man.
1666 * tmac/tmac.an, tmac/tmac.html: Small html updates.
1668 * tmac/troffrc: tmac.arkup will now be called for the html device.
1670 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1671 extra device specific information about fonts.
1673 * doc/homepage.ms: New file. It is an example how an HTML home page
1674 could look like with grohtml.
1676 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
1678 2000-01-12 Bruno Haible <haible@clisp.cons.org>
1680 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
1683 * devutf8/NOTES: Updated.
1685 2000-01-08 Bruno Haible <haible@clisp.cons.org>
1687 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1688 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1689 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1690 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1691 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1692 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1693 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1694 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1697 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1699 2000-01-12 Fabrizio Polacco <fab@prosa.it>
1701 grolj4: Paper size will be searched case-insensitively.
1703 * include/lib.h: Add check for strcasecmp().
1704 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1705 * configure.in: Check for strcasecmp().
1707 2000-01-11 Werner LEMBERG <wl@gnu.org>
1709 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1712 2000-01-10 Werner LEMBERG <wl@gnu.org>
1714 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1717 Add a new read-only register, `.Y', which contains the groff
1720 * troff/input.cc (init_input_requests): Define it.
1721 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1722 * doc/groff.texinfo, troff/troff.man: Document it.
1724 * libgroff/Makefile.sub (version.cc): Add definition of
1725 `Version_string[]', consisting of `<major>.<minor>.<revision>'
1726 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1727 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1728 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1729 troff/input.cc, pfbtops/pfbtops.c: Use it.
1731 2000-01-10 Fabrizio Polacco <fab@prosa.it>
1733 Add a revision scheme to the groff package.
1735 * REVISION: New file.
1736 * libgroff/Makefile.sub (version.cc): Use it to define
1737 `revision_string[]'.
1738 * grops/psrm.cc: Use revision_string (converted to an unsigned
1739 integer) in constructor of resource_manager.
1741 2000-01-10 Bruno Haible <haible@clisp.cons.org>
1743 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1745 * Makefile.in (DEVDIRS): Add devutf8.
1746 * grotty/tty.cc: Include device.h.
1747 (glyph): Change type of `code' to `unsigned int'.
1748 (tty_printer): New field is_utf8. Constructor takes device argument.
1749 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1750 (tty_printer::add_char): Change type of first arg to `unsigned int'.
1751 (tty_printer::put_char): New function.
1752 (tty_printer::end_page): Use put_char() instead of ::putchar().
1753 (make_printer): Pass device to tty_printer constructor.
1754 * nroff.sh: Determine default device by calling 'locale'. As a
1755 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1756 Recognize UTF-8 locales.
1757 * tmac/eqnrc: Recognize utf8 like latin1.
1758 * tmac/troffrc: Device utf8 needs tmac.tty.
1760 2000-01-07 Werner LEMBERG <wl@gnu.org>
1762 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1764 2000-01-07 Paul Eggert <eggert@twinsun.com>
1766 Add a new predefined writeable number register, `year',
1767 which contains the current year.
1769 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1770 * tmac/tmac.s: Use it.
1771 * troff/input.cc (init_registers): Initialize it.
1773 2000-01-06 Werner LEMBERG <wl@gnu.org>
1775 * PROBLEMS: Fixed typo.
1777 2000-01-04 Paul Eggert <eggert@twinsun.com>
1779 * PROBLEMS: Add Y2k advice for the yr number register.
1781 2000-01-03 Paul Eggert <eggert@twinsun.com>
1783 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1785 2000-01-02 Werner LEMBERG <wl@gnu.org>
1787 * tmac/tmac.arkup: Slight modification of macros to provide better
1788 appearance for non-HTML formats.
1790 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
1792 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1793 does not automatically translate to malloc(n) on all OSes
1794 (e.g., SunOS) so do it explicitly. Also, check the returned
1797 2000-01-01 Werner LEMBERG <wl@gnu.org>
1799 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
1801 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1802 expects this variable
1804 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
1806 * doc/Makefile: Added instructions to create HTML and text
1807 versions of some files.
1809 1999-12-31 Werner LEMBERG <wl@gnu.org>
1811 * Updated INSTALL.gen.
1813 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1814 better resp. correctly with non-HTML devices.
1816 Version 1.15 released
1817 =====================
1819 1999-12-28 Werner LEMBERG <wl@gnu.org>
1821 * NEWS, VERSION: Changed to 1.15
1823 1999-12-27 Paul Eggert <eggert@twinsun.com>
1825 * nroff/nroff.man: -S is safer, not safe.
1827 * groff/groff.cc (main): Use `safer', not `safe', in variable
1828 names. This does not change the behavior.
1830 * troff/input.cc (main): Likewise.
1832 * nroff/nroff.sh: Likewise.
1834 * troff/input.cc (prepend_string): New function.
1835 (main): Prepend -msafer, so that we check macro libraries for
1838 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1840 Version 1.14 released
1841 =====================
1843 1999-12-26 Werner LEMBERG <wl@gnu.org>
1845 * NEWS, VERSION: Changed to 1.14.
1847 1999-12-24 Werner LEMBERG <wl@gnu.org>
1849 * refer/refer.cc: Fixing the last fix.
1851 Version 1.13 released
1852 =====================
1854 1999-12-23 Werner LEMBERG <wl@gnu.org>
1856 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1861 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1863 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1864 document conventions, the version number must be a real.
1866 Version 1.12.1 released
1867 =======================
1869 1999-12-22 Werner LEMBERG <wl@gnu.org>
1871 * VERSION: Changed to 1.12.1.
1873 1999-12-22 Alan Rooks <arooks@istar.ca>
1875 * refer/refer.cc (do_file): Slight modification to satisfy the
1876 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1879 1999-12-20 Werner LEMBERG <wl@gnu.org>
1881 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1884 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1885 list of unsafe requests.
1887 * pic/pic.man: Fixed a typo.
1889 * man/groff_out.man: Fixed a typo.
1891 1999-12-18 Werner LEMBERG <wl@gnu.org>
1893 * Makefile.in: Doc fixes.
1895 1999-12-17 Fabrizio Polacco <fab@prosa.it>
1897 * groff/groff.cc: Missing `U' option added to getopt().
1899 * troff/troff.man: Missing `U' option added to synopsis.
1901 Version 1.12 released
1902 =====================
1904 1999-12-14 Werner LEMBERG <wl@gnu.org>
1906 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1909 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1910 with the more appropriate terms `safer' and `unsafe'.
1912 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1913 sys_nerr and sys_errlist[].
1915 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1917 * pic/pic.y, pic/pic.cc: Added check for fmod().
1919 1999-12-13 Werner LEMBERG <wl@gnu.org>
1921 * VERSION: Changed to 1.12.
1923 Here some patches from various sources; most of them taken from
1924 the Debian distribution.
1926 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1927 tmac/Makefile.sub: New files copied directly from the NetBSD
1928 distribution. Probably, some additional adaptation later on is
1931 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1934 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1935 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1936 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
1937 (`-S') is now the default.
1939 * README, NEWS: Updated.
1941 1999-12-09 Werner LEMBERG <wl@gnu.org>
1943 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1945 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1947 1999-12-06 Werner LEMBERG <wl@gnu.org>
1949 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1950 grief than relief today. Additionally, it is against the GNU
1953 * configure: Recreated.
1955 1999-12-05 Werner LEMBERG <wl@gnu.org>
1957 * configure.in: Added GROFF_LIBM.
1959 * configure: Recreated.
1961 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1964 * Makefile.in: Added definition of $(LIBM).
1966 * Makefile.comm (LIBM): Removed.
1968 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1970 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
1972 * doc/Makefile: Added rule for generation pic.html.
1974 (clean): Files produced by grohtml will be removed also.
1976 * doc/pic.ms: Small fix.
1978 * tmac/tmac.html: Fixed suppression of headers.
1980 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
1982 * tmac/tmac.html: Fixing horizontal arrows.
1984 Turning off hyphenation.
1986 * tmac/tmac.an: Improved support for grohtml; better indentation,
1989 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
1991 * tmac/tmac.arkup: Added CDFTP macro
1993 * tmac/tmac.html: All headers are turned off for ms, me, and mm
1996 * tmac/troffrc: Some additions for HTML stuff.
1998 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
2000 * tmac/tmac.html: Small changes.
2002 1999-09-26 Werner LEMBERG <wl@gnu.org>
2004 * doc/groff.texinfo: Minor fixes.
2006 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
2008 * devhtml/TR: Changed spacewidth to 3.
2010 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
2012 * tmac/tmac.html: Moved markup macros to tmap.arkup.
2014 * tmac/tmac.arkup: New file.
2016 * grohtml/ChangeLog: New file.
2018 1999-09-16 Werner LEMBERG <wl@gnu.org>
2020 * doc/groff.texinfo (Common Features): Added Copying chapter.
2021 Changed format to @smallbook.
2023 1999-09-15 Werner LEMBERG <wl@gnu.org>
2025 * NEWS: Added info about groff.texinfo.
2027 * doc/groff.texinfo: Will now compile (using texi2dvi) without
2030 1999-09-14 Werner LEMBERG <wl@gnu.org>
2032 * groff/groff.man: More updates.
2034 1999-09-13 Werner LEMBERG <wl@gnu.org>
2036 * doc/groff.texinfo: New file. This manual is still very
2037 rudimentary. It has been originally contributed by Trent
2038 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
2041 * INSTALL: Added information about the `doc' subdir
2043 * troff/troff.man: Minor fixes.
2045 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
2048 * troff/input.cc (usage): Added missing `-ffam' to usage message.
2050 * Makefile.in (dist): groff-$(version).tar.gz must be removed
2051 also, otherwise it is included itself in another call of `make
2054 * groff/groff.cc (synopsis): Removed superfluous space.
2056 * PROJECTS, PROBLEMS, NEWS: Updated.
2058 * xditview/Makefile: Removed.
2060 * VERSION: Updated to 1.12beta.
2062 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
2064 * README: Updated: Included documentation about CVS repository,
2065 mailing lists, and daily snapshots.
2067 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
2069 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
2071 * tmac/tmac.an: If the tag didn't fit into the space that the
2072 macro `TP' specifies, the rest of the tag went into the space for
2075 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
2077 * grolj4/lj4.cc: Added duplex printing (option `-d').
2079 * grolj4/grolj4.man: Document duplex printing.
2081 1999-09-12 Werner LEMBERG <wl@gnu.org>
2083 * doc/Makefile (pic.ps): Fixed rule which caused problems with
2084 non-GNUish sed programs.
2086 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
2089 * configure.in (LIBS): Added `-lc'
2091 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
2093 * pic/tex.cc (solid_arc): Casting M_PI to double.
2095 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
2097 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
2098 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
2099 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
2101 * groff/groff_man.man: New file. This manual page was originally
2102 written for the Debian GNU/Linux system by Susan G. Kleinmann
2105 * eqn/list.cc (list_box::compute_metrics,
2106 list_box::compute_sublist_width): Removed variable declaration to
2107 avoid shadowing warnings.
2109 * grops/psrm.cc (resource_manager::process_file): Ditto.
2111 * tfmtodit/tfmtodit.cc (main): Ditto.
2113 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
2114 to avoid shadowing warnings.
2116 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
2117 shadowing loop variable.
2119 * groff/groff.man, troff/troff.man: Added doc about grohtml.
2121 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
2123 New grohtml frontend to convert groff input to html.
2125 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
2127 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
2129 * tmac/eqnrc: Added html device.
2131 * tmac/tmac.html: New file.
2133 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
2134 (troff_output::start_picture, troff_output::finish_picture),
2135 tbl/main.cc (process_input_file):
2136 Surrounded output with `graphics_start' and `graphics_end' so that
2137 the html driver can identify non-text portions.
2139 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
2140 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
2141 grotty/tty.ps (tty_printer::set_char): Additional parameter
2144 * include/printer.h: Class printer: New function
2145 set_char_and_width; new variables (is_char_named, is_named_set,
2146 named_command, named_char_s, named_char_n) to hold information
2147 about named characters -- needed by the html driver.
2149 * libdriver/printer.cc (printer::set_ascii_char,
2150 printer::set_special_char): Use set_char_and_width.
2152 * devhtml/*: New device files for html driver.
2154 * grohtml/*: New driver grohtml.
2156 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
2158 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
2161 1999-09-11 Luke Mewburn <lukem@netbsd.org>
2163 * libgroff/string.cc (search): Small fix to test against NULL
2166 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
2168 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
2169 \b'abc') were stacked in reverse order when processed in a
2172 * troff/node.h: Added `*last' to struct `node' to make the above
2175 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
2176 The default scale for the 'f' and 't' graphics functions were 'm'
2177 rather than 'u' (i.e., no scaling).
2179 1999-09-11 Peter Miller <peterm@jna.com.au>
2181 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
2182 do_file), soelim/soelim.man: Added `-I file' option to soelim,
2183 defining include paths.
2185 * soelim/soelim.cc (include_path_append): New function.
2187 1999-09-11 Larry Jones <larry.jones@sdrc.com>
2189 * tbl/main.cc (process_options): Unix (at least Documenter's
2190 Workbench) tbl allows arbitrary non-alpha characters between
2193 1999-09-11 Paul Eggert <eggert@twinsun.com>
2195 Y2k fixes. Don't assume that the current year precedes 2000.
2197 * doc/meref.me: Add \n(y2, \n(y4.
2199 * tmac/doc-common (Yr): New number register.
2200 (Dd): Don't assume current year precedes 2000.
2202 * tmac/tmac.e (td): Likewise.
2203 (y2, y4): New number registers.
2205 * pic/pic.man: Update reference for pic paper to May, 1991
2208 1999-09-11 Werner LEMBERG <wl@gnu.org>
2210 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2211 Removed quotation marks which prevented correct expansion of
2214 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
2216 1999-09-10 Werner LEMBERG <wl@gnu.org>
2218 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
2221 * Removed configure.old.
2223 1999-08-31 Werner LEMBERG <wl@gnu.org>
2225 * VERSION: Updated to 1.11.1
2227 1999-05-27 Werner LEMBERG <wl@gnu.org>
2229 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
2231 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2232 added quotations around $(tmac_wrap) to avoid syntax error if
2235 * configure: Newly generated using autoconf 2.13.
2237 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
2239 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
2241 * README, PROJECTS, NEWS, INSTALL, VERSION,
2242 doc/Makefile. doc/pic.ms, groff/groff.man:
2243 Prepare for 1.11 release. No code changes.
2244 Documentation for pic added (doc/pic.ms).
2246 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
2248 * Version 1.10 released.
2250 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
2252 * afmtodit/afmtodit.pl: Avoid comment on first line.
2254 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
2256 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
2257 * configure.in: Call it.
2259 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
2260 (distfiles): Doesn't depend on config.log or config.cache.
2262 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
2264 * grog/grog.sh: Use print "" rather than print in END rule.
2266 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
2268 * tbl/main.cc (process_data): Don't give error for excess data
2269 entries that are comments.
2271 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
2273 * tbl/main.cc (process_data): Fix case where new for-scope rules
2274 silently change meaning of code.
2276 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
2278 * troff/env.cc (hyphenate): Loop over all consecutive sequences
2279 of non-zero hyphenation codes.
2281 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
2283 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
2285 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
2287 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
2289 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
2291 * tmac/tmac.andoc: Make it work in compatibility mode.
2293 * refer/token.h (token_info::is_range_sep): New function.
2294 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
2295 * refer/ref.cc (reference::output): More sophisticated check for
2298 * devps/prologue.ps (MANUAL): New procedure.
2299 * grops/ps.cc (main): New -m option.
2300 (usage): Include -m.
2301 (ps_printer::~ps_printer): Implement -m.
2303 * aclocal.m4 (GROFF_G): New macro.
2304 * configure.in: Call it.
2305 * Makefile.in (g): Provided by configure.
2307 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
2309 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
2312 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
2313 (tmac_m, tmac_s): Deleted.
2314 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
2315 tmac_s_prefix): New variables.
2316 (MDEFINES): Change accordingly.
2317 * Makefile.comm (.man.n): Use new TMAC_* variables.
2318 * configure.in (GROFF_TMAC): Call.
2319 * aclocal.m4 (GROFF_TMAC): Define.
2320 * tmac/Makefile.sub (stamp_wrap): New target.
2321 (install_data, uninstall_sub): Handle macro wrapping.
2323 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
2325 * tbl/main.cc (main): Ignore -T option.
2327 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
2329 * devlj4/generate/special.map: Add definition of \(nb.
2331 * tmac/tmac.dvi: Add definition of \(nb.
2333 * troff/dictionary.c (dictionary::dictionary): association::v gets
2334 initialized by association::association.
2336 * tmac/Makefile.sub: Avoid using temporary files when installing.
2338 * troff/env.cc (environment::set_font): Make bad font number a
2341 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
2343 * Makefile.in (datadir): Use share rather than lib.
2345 * groff/groff.cc (basename): Rename to xbasename.
2347 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
2349 * Makefile (CCLIBS): Don't use.
2350 * Makefile.ccpg: Likewise.
2352 * acgroff.m4: Rename to...
2353 * aclocal.m4: Modify extensively for autoconf 2.
2354 * configure.in: Likewise.
2355 * Makefile.in: Likewise.
2357 * groff/pipeline.c (const): Declare as empty if __STDC__ not
2359 (xstrsignal): Check for definition of NSIG. Conditionalize
2360 on SYS_SIGLIST_DECLARED. Make return type const.
2362 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
2364 * troff/input.cc (interpolate_macro): Rephrase missing space
2367 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
2369 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
2370 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
2371 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
2372 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2373 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
2374 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
2375 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
2376 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
2377 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
2378 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
2379 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
2382 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
2384 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
2386 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
2388 (macro_iterator::macro_iterator): Add additional argument.
2390 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
2392 * troff/div.cc (vertical_size::vertical_size): In place of integer
2393 specifying line spacing use cunits specifying post vertical
2395 (macro_diversion::output, top_level_diversion::output): Likewise.
2396 * troff/div.h: Change declarations accordingly.
2397 * troff/env.cc (pending_output_line): Replace ls field by post_vs
2399 (pending_output_line::pending_output_line,
2400 pending_output_line::output, environment::output,
2401 environment::output_line, environment::output_title,
2402 environment::hyphenate_line): In place of
2403 integer specifying line spacing use cunits specifying post vertical
2405 (environment::environment): Add post_vertical_spacing and
2406 prev_post_vertical_spacing arguments.
2407 (environment::get_post_vertical_spacing): New function.
2408 (environment::total_post_vertical_spacing): New function.
2409 (environment::post_vertical_spacing): New function.
2410 (init_env_requests): Initialize pvs request and .pvs register.
2411 * troff/env.h: Change declarations.
2413 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
2415 * tmac/tmac.pspic: Immediately remove the temporary file.
2417 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
2419 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
2420 height is specified.
2422 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
2424 * tbl/table.c (struct vertical rule, class table_entry): Use int
2425 not short for start_row and end_row.
2427 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
2429 * troff/input.cc (trapping_blank_line, blank_line_macro): New
2431 (diverted_space_node::reread, process_input_stack): Call
2432 trapping_blank_line() rather than blank_line().
2433 (init_input_requests): Bind "blm" to blank_line_macro().
2435 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
2437 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
2439 * troff/env.cc (environment::possibly_break_line): Require that
2440 width total excluding width of final space node be greater than
2441 the target text length.
2443 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
2445 * troff/node.cc (kern_pair_node::vertical_extent): New function.
2447 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
2449 * troff/node.cc (charinfo_node): New class.
2450 (glyph_node, composite_node): Derive from charinfo_node. Change
2451 member functions accordingly.
2453 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
2455 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2457 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
2459 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2461 * devps/generate/textmap (notsubset): Add.
2463 * tmac/tmac.a4: New file.
2465 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
2467 * pic/main.cc (had_parse_error): New variable.
2468 (do_picture, do_whole_file): Set had_parse_error if yyparse()
2470 (main): Return 1 if had_parse_error is true.
2472 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
2474 * grolj4/lj4.cc (main): Avoid use of strtoul.
2476 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
2478 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2479 iso_8859_1 or $LESSCHARSET is latin1.
2481 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
2483 * hpftodit: New directory.
2484 * Makefile.in (CCPROGDIRS): Add hpftodit.
2485 * devlj4/generate: New directory.
2487 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
2489 * configure.in: Don't use AC_VFORK.
2490 * groff/pipeline.c (run_pipeline): Use fork() always.
2492 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
2494 * grops/ps.cc (main): Use %1 not %s in error message for -w.
2496 * Makefile.in (CCPROGDIRS): Add grolj4.
2497 (DEVDIRS): Add devlj4.
2498 * grolj4, devlj4: New directories.
2499 * tmac/troffrc: Handle lj4.
2500 * tmac/tmac.lj4: New file.
2502 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
2504 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2506 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
2508 * troff/input.cc (do_if_request): At end of second string, switch
2509 environments before getting next token.
2511 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
2513 * devps/psstrip.sed: Split rule that strips whitespace on either
2516 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
2518 * troff/node.h (font_family::make_definition): Add return value to
2519 declaration. * troff/symbol.h (symbol::operator==,
2520 symbol::operator!=): Likewise.
2522 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
2524 * groff/groff.cc (main, help, synopsis): Handle -S.
2525 (possible_command::insert_arg): New function.
2527 * tmac/tmac.safer: New file.
2528 * tmac/msafer.man: New file.
2529 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2531 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
2533 * pic/pic.h, pic/main.cc (safer_flag): New variable.
2534 * pic/pic.y (placeless_element): Avoid unsafe operations if
2535 `safer_flag' is set.
2536 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2538 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
2540 * eqn/lex.cc (get_token): Put call to add_context() in block to
2541 work around Sun C++ 4.0 bug.
2543 * include/stringclass.h (operator +): Use ?: instead of `if' to
2544 work around Sun C++ 4.0 bug.
2546 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
2548 * tbl/main.cc (process_format): Accept - as a synonym for the _
2551 * libbib/index.cc (minus_one): Don't declare as const.
2553 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
2555 * troff/input.cc (get_char_for_escape_name): Push back a newline.
2557 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
2559 * troff/input.cc (write_macro_request): New function.
2560 (init_input_requests): Bind write_macro_request to writem.
2562 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
2564 * tmac/tmac.s (@EN): Turn filling back on even if there was no
2567 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2569 * tmac/tmac.s (@TS): Renamed from TS.
2570 (TS): Call LP then TS again.
2571 (cov*ab-init): Alias @TS to TS.
2573 * tmac/tmac.s: Allow QP or RS to initialize.
2575 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
2576 Move initializations of PS and LL here.
2577 (par@init): Don't initialize HY. Avoid changing environment 0.
2578 (par*env-init): Don't all par@reset.
2580 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
2582 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2584 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
2586 * Makefile.in (MDEFINES): Add LDFLAGS.
2587 (LDFLAGS): Add definition line.
2589 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
2591 * troff/input.cc (get_optional_char): Split off error check into...
2592 (check_missing_character): New function.
2593 * troff/token.h: Declare it.
2594 * troff/env.cc (margin_character): Don't call get_optional_char.
2595 Only call tok.next() after making the node.
2597 * include/lib.h (getopt): Make 2nd argument char *const *.
2599 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
2601 * nroff/conftest.sh: Deleted.
2603 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
2605 * pic/make-dos-dist: Deleted.
2607 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
2609 * devps/psstrip.sed: Strip comments before stripping trailing
2612 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
2614 * Version 1.09 released.
2616 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
2618 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2620 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
2622 * libgroff/font.cc (font::load_desc): Fix typo in error message.
2624 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
2626 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2627 about returning without a value.
2629 * troff/charinfo.h (charinfo::get_special_translation): Cast
2630 TRANSLATE_NONE to int.
2632 * refer/token.cc (lookup_token, store_token): Remove bogus loop
2633 test. Fix test so that it works with n unsigned.
2635 * pic/pic.y (defaults_table): Fully bracket initializer.
2636 * pic/lex.cc (lookup_keyword): Likewise.
2637 * eqn/lex.cc (token_table, def_table): Likewise.
2638 * eqn/box.cc (param_table): Likewise.
2639 * troff/input.cc (warning_table): Likewise.
2640 * libgroff/font.cc (table): Likewise.
2641 * grops/ps.cc (ps_printer::special): Likewise.
2642 * grops/psrm.cc (resource_manager::process_file): Likewise.
2643 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2644 * refer/command.cc (command_table): Likewise.
2645 * addftinfo/addftinfo.cc (param_table): Likewise.
2647 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2648 about temp's being unused.
2649 (unused): New function.
2651 * groff/pipeline.cc: Declare c_fatal.
2653 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2656 * libbib/index.cc (index_search_item::load): Prevent compiler
2657 warnings about fd_closer's being unused.
2658 (unused): New function.
2660 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
2662 * troff/input.cc (copy_mode_error): Make `prefix' static.
2665 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2667 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2668 HAVE_CC_OSFCN_H and modify accordingly.
2670 * troff/input.cc (init_charset_table): radicalex overlaps
2673 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2674 udodo!hans@relay.NL.net).
2675 * groff/configure.in: Call it.
2677 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2678 * groff/configure.in: Call it.
2679 * include/lib.h: Conditionalize declaration of pclose.
2681 * troff/div.cc (last_page_number): New global variable.
2682 (top_level_diversion::begin_page): Exit if we just printed the
2684 * troff/div.h (last_page_number): Declare it.
2685 * troff/input.cc (parse_output_page_list): Set last_page_number.
2687 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2688 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2689 tmac/tmac.X: Likewise.
2690 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2691 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2693 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
2695 * tmac/doc-ditroff (hK): Remove groff specific code which
2696 prevented page-breaks between separate manual entries. If this is
2697 the first page, don't set the page number to 1.
2699 * acgroff.m4 (GROFF_POSIX): New macro.
2700 * configure.in: Use it.
2702 * troff/node.cc (class real_output_file,
2703 real_output_file::real_output_file,
2704 real_output_file::~real_output_file): Conditionalize use of
2705 popen/pclose on POPEN_MISSING.
2706 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2707 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2708 (pipe_source): Similarily.
2710 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2712 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2713 presence of declarations by trying to compile example with
2714 conflicting declarations. (gcc only gives a warning for missing
2717 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
2719 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2720 (from Ulrich Lauther).
2722 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
2724 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2726 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
2728 * indxbib/indxbib.cc (write_hash_table): Add code for case where
2729 pointers and ints have different sizes.
2731 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
2733 * tmac/tmac.s (par*env-init): Call par@reset.
2735 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
2737 * tmac/tmac.s (@IP): Switch to a new environment when diverting
2739 (par*push-tag-env, par*pop-tag-env): New macros.
2741 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
2743 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2744 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
2746 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2747 comment. Include <time.h>.
2749 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
2751 * grops/ps.cc (is_small_h, is_small_v): Deleted.
2752 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2755 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
2757 * troff/input.cc (read_request): Only print a prompt if reading
2758 from the terminal. Also clearerr on EOF if reading from the
2759 terminal. Declare isatty.
2761 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
2763 * refer/label.y: Rename map_t to map_func and extractor_t to
2766 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
2768 * include/assert.h: Don't use volatile.
2769 * libgroff/assert.cc: Likewise.
2771 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
2773 * troff/input.cc (abort_request): Look at character in tok before
2776 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
2778 * troff/troff.h (NO_RETURN): Deleted.
2779 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
2780 * troff/input.cc (exit_troff): Likewise
2782 * Makefile.in: Remove `Making ...' messages since GNU make now
2785 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2787 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
2789 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2792 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
2794 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2796 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
2798 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2799 MARK_REG if there was no left delimiter.
2801 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
2803 * pic/troff.cc (troff_output::text): Set line thickness to
2804 relative before outputting text.
2806 * tmac/tmac.e (@k): Don't zero ?T.
2809 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
2811 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2813 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
2815 * troff/input.cc (decode_args): Warn about unquoted tabs (from
2818 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
2820 * troff/input.cc (ignoring): New variable.
2821 (ignore): Set ignoring during call to do_define_macro.
2822 (do_define_macro): Clear ignoring before interpolating terminating
2824 (copy_mode_error): New function.
2825 (get_char_for_escape_name, read_long_escape_name,
2826 interpolate_arg): Use copy_mode_error.
2827 (warning_table): Add WARN_IG.
2828 * troff/troff.h (WARN_IG): Declare.
2829 (WARN_TOTAL): Change accordingly.
2831 * groff/pipeline.c (strsignal): Rename to xstrsignal.
2832 * groff/groff.cc (strsignal): Delete declaration.
2834 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
2836 * troff/div.cc (page_offset): Use 'm' as default scaling.
2838 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
2840 * nroff/nroff.sh: Ignore -u.
2842 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
2844 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2846 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
2848 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2850 (B2): With -Tascii, leave additional vertical space before
2851 and after. Ensure that the left and right indent is restored to
2852 what it was even if the point size changes. Don't call
2853 par@finish. Change the indent, line length and title length
2854 directly. With -Tascii, make the width of the box 1n less.
2855 (B1): Remember 1n at the current point size. Don't call
2856 par@reset. Change the indent, line length and title length
2857 directly. Ensure that the temporary indent is preserved.
2858 (par*box-mark-top): Turn off no spacing mode.
2860 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
2862 * Makefile.in (dist): Use .gz suffix.
2864 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
2866 * troff/input.cc (main): Add return 0.
2867 * pic/main.cc (main): Use return instead of exit.
2868 * tbl/main.cc (main): Likewise.
2869 * eqn/main.cc (main): Likewise.
2870 * grops/ps.cc (main): Likewise.
2871 * grotty/tty.cc (main): Likewise.
2872 * groff/groff.cc (main): Likewise.
2873 * grodvi/dvi.cc (main): Likewise.
2874 * refer/refer.cc (main): Likewise.
2875 * indxbib/indxbib.cc (main): Likewise.
2876 * lkbib/lkbib.cc (main): Likewise.
2877 * soelim/soelim.cc (main): Likewise.
2878 * addftinfo/addftinfo.cc (main): Likewise.
2879 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2880 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2882 * troff/token.h (process_input_stack): Don't declare as static.
2883 * troff/input.cc: Likewise.
2885 * troff/node.c (invalidate_fontno): Make it a static member of
2886 class font_family. Change callers.
2887 * troff/node.c: Change declaration.
2889 * tbl/main.cc (struct input_entry_format): Add explicit public
2891 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2892 struct double_hline_stuff): Likewise.
2893 * tbl/table.h (struct entry_format): Likewise.
2894 * pic/object.h (struct saved_state): Likewise.
2896 * include/stringclass.h: Add forward declarations of friend
2897 functions that are later declared as inline. Don't include inline
2898 specifier in friend declaration.
2900 * libgroff/lib.h: Declare popen and pclose.
2901 * acgroff.m4 (GROFF_POPEN): New macro.
2902 * configure.in: Call it.
2904 * include/lib.h (PI): New constant. Undef first if necessary.
2905 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2906 * grops/ps.cc (degrees, radians): Likewise.
2907 * libgroff/font.cc (font::get_skew): Likewise.
2909 * grops/ps.cc (is_ascii): New function.
2910 (ps_output::put_string): Use is_ascii. Use csprint rather than
2912 (ps_printer::define_encoding): Use csspace.
2913 * libgroff/strtol.c (ISASCII): New macro.
2914 (strtol): Cast arguments to is*() and tolower() to unsigned char.
2915 Use ISASCII rather than isascii.
2916 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2917 * libgroff/cset.cc: Likewise.
2918 * libdriver/input.cc: Include cset.h.
2919 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2922 * refer/refer.cc (main): Use %ld rather than %d for longs.
2924 * libbib/index.cc (index_search_item_iterator::get_tag): Use
2927 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2929 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
2931 * troff/input.cc (hyphenation_code): Skip white space between
2934 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
2936 * tbl/table.h (table::entry_list_tailp): New member.
2937 (table::table): Initialize it.
2938 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2941 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
2943 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2944 with negative horizontal positions. Remove casts of glyph::hpos to
2946 (USHRT_MAX): Delete definition.
2947 (SHRT_MAX, SHRT_MIN): New definitions.
2948 (glyph::hpos): Change type to short.
2949 (tty_printer::end_page): Output multiple backspaces if necessary.
2950 Remove casts of glyph::hpos to int.
2952 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
2954 * tmac/tmac.s (@RT): New definition.
2956 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
2958 * refer/refer.cc (do_file): Make sure current_filename is set when
2961 * pic/common.cc (common_output::dot_line): Handle zero length
2964 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
2966 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2967 (par@init): Initialize \n[HY].
2969 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
2971 * troff/dictionary.cc (dictionary::remove): Continue when
2974 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
2976 * Makefile.com (.y.cc): Avoid ending up with two versions of
2979 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
2981 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2982 (\(,C): Likewise. Also fix typo.
2984 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
2986 * lib.h: Delete extraneous semi-colon.
2988 * Add pso request: `so' from a pipe.
2989 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2990 (file_iterator::close): New function.
2991 (file_iterator::~file_iterator, file_iterator::next_file): Use
2992 file_iterator::close.
2993 (file_iterator::backtrace): Say `process' rather than `file' when
2994 the stream is popened.
2995 (pipe_source): New function.
2996 (init_input_requests): Bind ".pso" to pipe_source.
2998 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
3000 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
3002 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
3003 digits in lower case.
3005 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
3007 * Version 1.08 released.
3009 * Makefile.in (dist): Insert || true after ln -s commands that
3012 * mm: Update to mm 1.16.
3014 * acgroff.m4 (GROFF_CSH_HACK): New macro.
3015 * configure.in: Call GROFF_CSH_HACK. Substitute for
3017 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
3019 * nroff/Makefile.sub (nroff): New target.
3020 (install_data): Install nroff.
3021 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
3022 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
3024 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
3026 * eqn/Makefile.sub (neqn): Add chmod +x.
3028 * grog/Makefile.sub (grog): Remove spurious semi-colon.
3030 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
3032 * troff/input.cc (string_iterator::string_iterator()): Initialize
3035 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
3037 * troff/div.cc (macro_diversion::space,
3038 top_level_diversion::space): Don't set high_water_mark.
3039 (macro_diversion::output, top_level_diversion::output): Don't
3040 include post line space in high water mark.
3042 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
3044 * eqn/eqn.y: Don't define YYDEBUG.
3045 * pic/pic.y: Likewise.
3047 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
3049 * tmac/tmac.e ([3): Add space after comma following editors.
3050 Change double spaces to single spaces.
3051 ([4): Change double spaces to single spaces.
3053 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
3054 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
3055 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
3056 after %!PS-Adobe- (for Newsprint).
3058 * troff/div.cc (top_level_diversion::begin_page): When
3059 before_first_page is 1, set page_number to 1.
3061 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
3063 * eqn/box.cc (box::top_level): Protect equation with \&.
3065 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
3067 * groff/groff.cc (possible_command::set_name): Delete old name.
3069 * groff/groff.cc (possible_command::~possible_command): Use
3072 * troff/node.cc (troff_output_file::begun_page): New member.
3073 (troff_output_file::troff_output_file): Initialize it.
3074 (troff_output_file::really_begin_page): Only output V command if a
3075 page has been begun.
3077 * pic/pic.y (placeless_element): Delete argument to PRINT after
3080 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
3082 * Make wrapman work.
3083 * troff/div.h (class top_level_diversion): Replace
3084 first_page_begun by before_first_page (with opposite sense).
3085 * Change first_page_begun to before_first_page inverting sense.
3086 * troff/div.cc (class nl_reg): New class.
3087 (init_div_requests): Use class nl_reg for \n(nl.
3088 (top_level_diversion::begin_page): Don't call
3089 output_file::begin_page if before_first_page is 2;
3090 reset before_first_page afterwards. If have_next_page_number is
3091 false, then always increment page_number.
3092 * tmac/tmac.an: Set traps within TH rather than at the top-level.
3093 Restore compatibility mode after loading, and then disable
3094 compatibility mode in TH.
3096 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
3098 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
3100 * troff/node.h (output_file::trailer): Declare.
3101 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
3102 * troff/node.cc (output_file::trailer): New function.
3103 (troff_output_file::~troff_output_file): Move most code into...
3104 (troff_output_file::trailer): New function.
3105 (class troff_output_file): Delete page_length member. Declare
3107 (troff_output_file::really_begin_page): Use current page length
3108 for final V command.
3110 * tbl/main.cc (struct options): New decimal_point_char member.
3111 (options::options): Initialize this.
3112 (process_options): Implement decimalpoint option.
3113 (process_data): Pass decimal_point_char option to table::table.
3114 * tbl/table.h (class table): New decimal_point_char member.
3115 (table::table): Add additional argument.
3116 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
3117 second argument specifying decimal point character. Use this
3119 (table::table): Initialize decimal_point_char.
3120 (table::add_entry): Change call to find_dot.
3122 * troff/input.cc (get_copy, token::next): Implement \V.
3123 (interpolate_environment_variable): New function.
3125 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
3127 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
3128 * pic/pic.y: Likewise.
3130 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
3132 * refer/ref.cc (reference::insert_field, reference::delete_field):
3134 * troff/number.cc (parse_term): Likewise.
3136 * acgroff.m4 (GROFF_PROG_YACC): New macro.
3137 * configure.in: Use GROFF_PROG_YACC.
3139 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
3141 * Makefile.in (OPTIMIZE): New define.
3142 (DEBUG): Empty by default.
3143 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
3145 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
3146 (GROFF_ARRAY_DELETE): Likewise.
3147 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
3149 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
3151 * devps/psstrip.sed: Use different delimiter on last line (so that
3152 it works with BSD 4.4 sed.)
3154 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
3156 * devps/psstrip.sed: Delete comments.
3158 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
3159 optind, opterr, optarg.
3160 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
3163 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
3165 * Makefile.in (check): Dummy target.
3167 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
3169 * Version 1.07 released.
3171 * Integrate mm 1.11.
3173 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
3174 where start_col was meant.
3176 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
3178 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
3180 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
3182 * troff/input.cc (token::next): Make \z\o'...' and similar things
3185 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
3187 (environment): Add margin_character_flags member.
3188 * env.cc (environment::environment(symbol),
3189 environment::environment(const environment *): Initialize
3190 margin_character_flags.
3191 (margin_character): Rewrite.
3192 (environment::output_line): Add a margin character if
3193 margin_character_flags is non-zero. Turn off the
3194 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
3195 zero, use margin_character_node without copying and then set
3196 margin_character_node to 0.
3198 * devps/DESC.in: Change minimum size to 1000.
3200 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
3202 * troff/symbol.h (symbol::hash): Change return type to unsigned
3204 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
3207 * test-groff: Use -r rather than -x.
3209 * grops/psfig.diff: Include in distribution again.
3211 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
3213 * Makefile.in (dist): Use gzip.
3215 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
3217 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
3218 unistd.h as well as in stdlib.h.
3219 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
3220 defined; otherwise include <sys/types.h> and <unistd.h> if
3221 UNISTD_H_DECLARES_GETOPT is defined.
3223 * configure.in: use builtin(include, ... rather than include(...
3224 * configure: Regenerate with autoconf 1.3.
3226 * libdriver/print.cc (printer::adjust_arc_center): Use new
3227 algorithm suggested by Andy Fyfe.
3229 * libdriver/printer.cc (printer::adjust_arc_center): New function.
3230 * include/printer.h: Declare this.
3231 * grops/ps.cc (ps_printer::draw): Use it.
3232 * grodvi/dvi.cc (dvi_printer::draw): Use it.
3234 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
3236 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
3238 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
3240 * eqn/main.cc (main): Handle "eqn -".
3242 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
3244 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
3246 * mm: Integrate version 1.08.
3248 * pic/troff.cc (troff_output::finish_picture): Set
3249 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
3250 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
3251 if it's not defined. Check whether the register is non-zero rather
3252 than whether it's not defined.
3253 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
3255 * indxbib/indxbib.cc: Move all signal handling into...
3256 * indxbib/signal.c: New file.
3257 * configure.in: Call AC_RETSIGTYPE.
3259 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
3260 * configure.in: Call GROFF_STRUCT_EXCEPTION.
3261 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
3263 * troff/input.cc (token::token, token::operator=): Work round SGI
3265 * pic/object.cc (position::position): Likewise.
3267 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
3269 * pic/pic.h: Move declaration of hypot().
3271 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
3273 * pic/pic.h: Declare hypot().
3275 * pic/pic.h: Define M_PI if necessary.
3277 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
3279 * tmac/tmac.e (re): Add alternative version that doesn't use groff
3282 * devps/prologue.ps (RE): Handle the possibility that the old font
3283 doesn't have a FontName entry.
3285 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
3287 * tmac/tmac.e (fam): Redefine to set family in environment 2.
3288 (@C): Use @fam not fam.
3290 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
3292 * lookbib/lookbib.cc (main): Change type of start to const char *.
3293 * lkbib/lkbib.cc (main): Likewise.
3295 * eqn/lex.cc (definition::definition): Don't use member
3296 initializer syntax for members of anonymous unions.
3298 * troff/input.cc (input_stack::backtrace): Change type of to const
3301 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
3303 * include/stringclass.h (class string): Declare inline friend
3304 functions as inline in class declaration.
3305 * troff/hvunits.h (class hunits, class vunits): Likewise.
3306 * include/refid.h (class reference_id): Likewise
3307 * troff/troff.h (points_to_units(units), scale(units, double)):
3308 Delete declarations.
3309 * libdriver/input.cc (get_char): Delete declaration.
3310 * include/lib.h: Change 2nd argument of getopt from const char **
3312 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
3313 char **' before assigning to a `const char **'.
3314 * tbl/table.cc: Delete extra declarations of prints().
3316 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
3318 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
3319 char **' before assigning to a `const char **'.
3321 * libgroff/errarg.cc (errarg::errarg): Don't use member
3322 initializer syntax for members of anonymous unions.
3324 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
3326 * mm: Integrate version 1.07.
3328 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
3330 * troff/input.c (translate2): Rename to
3331 (translate_no_transparent).
3332 (init_input_requests): Rename tr2 to trnt.
3334 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
3336 * troff/charinfo.h (class charinfo): Add transparent_translate field.
3337 (charinfo::set_translation, charinfo::set_special_translation):
3338 Add second argument that specifies value for
3339 transparent_translate.
3340 (charinfo::get_translation, charinfo::get_special_translation):
3341 Add optional second argument that specifies whether translation is
3342 being used for transparent throughput.
3343 * troff/input.cc (charinfo::set_translation,
3344 charinfo::set_special_translation): Handle second argument.
3345 (charinfo::charinfo): Initialize transparent_translate.
3346 (translate): Split main part off into
3347 (do_translate): New function. Pass argument saying whether
3348 translation applies to transparent throughput.
3349 (translate2): New request.
3350 (init_input_requests): Bind translate2 to `tr2'.
3352 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
3354 * tbl/table.h (class table): Add `nokeep' flag.
3355 * tbl/main.cc (process_options): Handle `nokeep' option.
3356 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
3357 table::do_bottom): Don't output keep/release macro definitions or
3358 calls when `nokeep' option has been specified.
3360 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
3362 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
3364 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
3366 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
3367 block_entry::divert, alphabetic_block_entry::divert): Add extra
3368 argument giving column separation.
3369 (table::compute_widths): Pass column separation to
3370 table_entry::divert().
3371 (block_entry::do_divert): If an entry spans multiple columns and a
3372 minimumum width has been specified for each column, then set the
3373 line length to the sum of the widths (plus possibly the column
3376 * troff/input.cc (set_escape_char): Don't set the escape_char
3377 until after calling has_arg().
3379 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
3381 * tbl/table.cc (table::do_top): Add missing \s0 for double box
3384 * tbl/table.cc (table::print_double_hline): Avoid extra new line
3385 in case where r > nrows - 1.
3387 * tbl/table.cc (BODY_HEIGHT): Deleted.
3388 (LINE_SEP): New definition.
3389 (table::print_single_hline, table::print_double_hline,
3390 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
3391 table::do_row, table::do_top): Use LINE_SEP space before a line
3392 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
3394 * tbl/table.cc (text_entry::print_contents): New function.
3395 (text_string_name, right_text_string_name): Deleted.
3396 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
3397 (simple_text_entry::do_width, numeric_text_entry::do_width,
3398 alphabetic_text_entry::do_width): Don't store the contents of the
3400 (left_text_entry::simple_print, right_text_entry::simple_print,
3401 center_text_entry::simple_print,
3402 alphabetic_text_entry::simple_print,
3403 numeric_text_entry::simple_print): Print the entry directly
3404 instead of using the stored string.
3406 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
3408 * devps/Makefile: Strip PostScript files.
3409 * devps/prologue: Rename to...
3410 * devps/prologue.ps.
3411 * devps/psstrip.sed: New file.
3412 * devps/download: Use .pfa rather than .ps for installed versions
3415 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
3417 * troff/env.cc (input_trap): Give a warning if the argument is out
3420 * troff/env.cc (adjust): Treat negative argument as missing. Round
3421 argument > 5 down to 5.
3423 * troff/env.cc (center, right_justify): Make negative argument zero.
3425 * troff/div.cc (page_offset, vertical_position_traps): Treat
3426 invalid argument as missing.
3427 * troff/env.cc (line_spacing, line_length, title_length, indent,
3428 underline, hyphen_line_max_request, control_char,
3429 no_break_control_char, widow_control_request, adjust, input_trap,
3430 point_size): Likewise.
3431 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
3432 constant_space): Likewise.
3433 * troff/input.cc (compatible, shift, warn_request,
3434 set_escape_char): Likewise.
3436 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
3437 * tbl/table.cc (table::table): Likewise.
3439 * Makefile.dev (install_dev): depends on $(DEVFILES).
3441 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
3443 * devX75, devX75-12, devX100, devX100-12: New directories.
3444 * Makefile.in: Add these to DEVDIRS.
3446 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3447 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3448 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3449 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3451 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3452 (uninstall): New target.
3453 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3454 uninstall_prog, uninstall_dev): New targets.
3456 * troff/div.cc (return_request): Treat an invalid argument as
3459 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
3461 * tmac/tmac.e ((f): Set up the environment even when there's a
3462 current diversion. Transperently throughput a call to @N.
3465 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
3467 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3468 up to vertical resolution.
3470 * tbl/table.cc (table::do_row): Change row number after printing
3473 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3475 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
3477 * Rename CHANGES to NEWS.
3479 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
3481 * libgroff/new.cc (operator new): Avoid calling malloc(0).
3483 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
3485 * man.ultrix: Removed.
3487 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
3489 * Makefile.comm (extraclean): Delete files whose names begin with
3492 * pic/troff.cc (troff_output::text): Fix typo in implementation of
3495 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
3497 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3498 * troff/div.cc (page_length, need_space, space_request): Treat
3499 invalid optional argument as missing.
3500 * troff/env.cc (number_lines): If the first argument is present
3501 but not a number, turn on line numbering, don't change the next
3502 line number and parse the remaining arguments.
3504 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3506 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
3508 * eqn/box.h: Change declaration accordingly.
3509 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
3510 the specified size was bad but don't give an error. Check for
3512 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3513 * eqn/lex (do_size): Likewise.
3515 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
3517 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3520 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
3522 * tbl/table.cc (table::init_output): Improve error message when
3523 table won't fit on one page.
3525 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
3527 * pic/troff.cc (troff_output::start_picture): Generate line
3528 containing a horizontal motion equal to the width of the picture.
3530 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3531 using GROFF_COMMAND_PREFIX environment variable.
3533 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
3535 * mdate.sh: Use $NF rather than $(NF).
3537 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
3539 * pic/main.cc (main): Use %1 not %c in argument to warning.
3541 * eqn/main.cc (main): Output code to check that geqn was given the
3544 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
3546 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3547 `ln -s ../Makefile .; make; rm -f Makefile'.
3549 * troff/hyphen: Rename to...
3551 * troff/input.cc (main): Delete -H option. Don't call
3553 * troff/env.cc: Include searchpath.h and macropath.h.
3554 (exception_dictionary): Deleted.
3556 (read_hyphen_file): Deleted.
3557 (hyphenation_language): New struct.
3558 (class trie, class hyphen_trie): Move declarations up.
3559 (trie_node::~trie_node): Deleted.
3560 (trie::delete_trie_node): New function.
3561 (trie::do_delete): New pure virtual function.
3562 (hyphen_trie::do_delete): New function.
3563 (trie::~trie): New function.
3564 (hyphen_trie::~hyphen_trie): New function.
3565 (trie::clear): No need to chcek that tp is not 0.
3566 (current_language, language_dictionary): New variables.
3567 (hyphen_word): Give an error if no current language. Use
3568 exceptions dictionary in current language.
3569 (hyphen_trie::read_patterns_file): Find file using macro_path.
3570 Allow comments (starting with %) in patterns file. Don't make it
3571 a fatal error if the file can't be found.
3572 (hyphenate): Return if no current language. Get the exceptions
3573 dictionary and the hyphenation patterns from the current language.
3574 (set_hyphenation_language): New variable.
3575 (hyphenation_patterns_file): New function.
3576 (hyphenation_language_reg): New class.
3577 (hyphenation_language_reg::get_string): New function.
3578 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3579 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
3581 * groff/groff.cc (main, help, synopsis): Delete -H option.
3582 * include/Makefile.sub: Don't define HYPHENFILE.
3583 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3584 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3585 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3586 hyphenation patterns.
3588 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
3590 * eqn/neqn.sh: New file.
3591 * eqn/Makefile.sub: Handle neqn.sh.
3593 * eqn/eqn.h: Declare `nroff' variable.
3594 * eqn/box.cc (param_table): Add `nroff' param.
3596 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3598 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3600 * troff/troff.h (WARN_FONT): New warning.
3601 (WARN_TOTAL): Change accordingly.
3602 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3603 (warning_table): Add WARN_FONT.
3604 * troff/node.cc (mount_font_no_translate): Pass argument to
3605 font::load_font. If this is non-zero, give a warning.
3606 Don't give an error message when accessing a font that has already
3607 been found to be invalid.
3608 * include/font.h (font::load, font::load_font): Add additional
3609 optional argument which suppresses error message if the font is
3611 * libgroff/font.cc (font::load_font): Handle additional argument.
3612 (font::load): Add additional argument. If this is non-null, set it
3613 to 1 and don't give error message.
3615 * include/printer.h (printer::end_page): Add argument giving
3617 * libdriver/input.cc (do_file): Pass this.
3618 * grops/ps.cc (ps_printer::end_page): Add argument.
3619 * grodvi/dvi.cc (dvi_printer::end_page,
3620 draw_dvi_printer::end_page): Add argument.
3621 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3622 columns_per_page members. New member nlines.
3623 (DEFAULT_LINES_PER_PAGE): Deleted.
3624 (tty_printer::tty_printer): Don't compute lines_per_page from
3625 font::paperlength. Don't compute columns_per_page from
3627 (tty_printer::add_char): Don't check horizontal position against
3628 columns_per_page. Grow glyphs vector if neccessary.
3629 (tty_printer::end_page): Add argument giving page_length in units.
3630 Discard lines past end of page.
3632 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
3634 * tmac/tmac.tty-char: Fix definition of \(/l.
3636 * tmac/tmac.X: Define \(en.
3638 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
3640 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3641 lpq, then use lp rather than lpr.
3643 * tmac/tmac.s (par@reset): Don't call `ad'.
3644 (par*env-init): Call `ad'.
3646 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
3648 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3651 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3652 * indxbib/indxbib.cc: Likewise.
3654 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
3656 * libgroff/putenv.c: New file.
3657 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3658 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3659 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3660 stdlib.h with AC_HAVE_HEADERS.
3662 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
3664 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3667 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
3669 * eqn/box.cc (gsize): Make it an int.
3670 (set_gsize): Parse argument handling increment or decrement.
3671 (box::top_level): Convert gsize to a string.
3673 * troff/input.cc (exit_troff): Make buf unsigned char [].
3674 Call to make_temp_iterator casts buf to char*.
3676 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3678 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3679 * Makefile.cpg (depend.temp): Likewise.
3681 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3683 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3685 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
3687 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3689 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
3691 * Version 1.06 released.
3693 * Integrate mm 1.04.
3695 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
3697 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3699 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
3701 * afmtodit/afmtodit.pl: Add -n option that disables generation of
3703 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3704 afmtodit. Regenerate.
3706 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3707 @f back past the current position.
3709 * tmac/tmac.e: Change calls to @R so that comments are not part of
3712 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
3714 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3716 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3717 check that we can link a call to a function declared in <stdio.h>.
3718 (GROFF_UNISTD_H): New macro.
3719 * configure.in: Call it.
3720 * Makefile.in: Document it.
3721 * include/posix.h: New file.
3722 * troff/troff.h: Don't include <osfcn.h>
3723 * troff/input.cc: Include posix.h.
3724 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3726 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3727 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3729 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3730 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3731 * libbib/search.cc (O_RDONLY): Delete definition.
3732 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3733 Don't include <osfcn.h>.
3735 * acgroff.m4 (GROFF_TIME_T): New macro.
3736 * configure.in: Call it.
3737 * Makefile.in: Document it.
3739 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3740 * configure.in: Call it.
3741 * Makefile.in: Document -DTRADITIONAL_CPP.
3742 * include/ptable.h: Don't include generic.h.
3745 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3746 Afterwards remove [T1 and [T2.
3747 (ref*spec!0, ref*spec!2): Use T1 rather than T.
3748 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3749 (ref*add-T2): Renamed from ref*add-T.
3750 (ref*add-T1): New macro.
3752 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
3754 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3756 * libbib/index.cc: Include <fcntl.h>.
3757 (O_RDONLY): Define if necessary.
3758 (make_index_search_item, index_search_item_iterator::get_tag,
3759 index_search_item::check_files): Use O_RDONLY.
3760 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3761 (O_RDONLY): Define if necessary.
3762 (search_list::add_file): Use O_RDONLY.
3763 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3765 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3768 * libbib/index.cc (S_ISREG): Define it if necessary.
3769 (index_search_item::load): Use S_ISREG.
3771 * include/driver.h: Include <errno.h>.
3773 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
3775 * eqn/box.cc (body_height): Increase default value to 85.
3776 (body_depth): Increase default value to 35.
3778 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
3780 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3781 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3782 protected from expansion with \E.
3784 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3786 * Makefile (Makefile): New target.
3788 * Makefile.sub (configure, distfiles): New targets.
3790 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3793 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
3795 * eqn/box.cc (param_table): Add body_height and body_depth.
3797 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3799 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
3801 * psbb/Makefile.sub: Don't link with libgroff.a.
3803 * acgroff.m4 (GROFF_PUTENV): New macro.
3804 * configure.in: Call GROFF_PUTENV.
3805 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3806 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3809 * troff/env.cc (distribute_space): Rename force_forward argument
3810 to force_reverse. Reverse the list if force_reverse is true.
3812 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
3814 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3816 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3817 height or depth to be negative. Guard against SUP_RAISE quantity
3820 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
3822 * devps/generate/textmap: Add `an' (arrowhorizex).
3823 * tmac/tmac.ps: \(an overlaps horizontally.
3824 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3826 * devps/symbolchars: Add arrowverttp, arrowvertbt.
3827 * devps/textmap: Add arrowvertex.
3828 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3829 updownarrow delimiters.
3830 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3832 * tbl/table.cc (simple_entry::position_vertically,
3833 block_entry::position_vertically): For a centered entry, perform
3834 the motion in two stages.
3836 * refer/refer.cc (split_punct): Don't call lookup_token if there
3839 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
3841 * troff/input.cc (token::next): Delete token_node after copying
3844 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3847 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3849 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3851 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
3853 * grops/ps.cc (usage): -b option takes an argument.
3855 * devps/prologue (PLG): New procedure.
3856 * grops/ps.cc (main, usage): New -g option.
3857 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
3860 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
3862 * include/cset.h: Include <limits.h> if we have it.
3864 * libgroff/illegal.cc: New file.
3865 * include/lib.h (illegal_input_char): Use table.
3866 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3867 * pic/lex.cc (ARG1): Renumber to 14.
3868 * eqn/lex.cc (ARG1: Likewise.
3870 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3871 (eg 1.05.90) correctly.
3873 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
3875 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3876 Rename $r and $R registers to $v and $V.
3877 ($r, $R): Initialize to 0.
3878 (@v, @V): New macros.
3882 * troff/input.cc (main, usage): Add -R option that says not to
3884 * eqn/main.cc (main, usage): Rename -n to -R.
3886 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
3888 * devps/DESC.in: Leave font positions 5-9 blank.
3889 * devdvi/DESC.in: Likewise.
3891 * grog/grog.pl: Handle `.PS <file' correctly.
3893 * troff/input.cc (input_stack::push): Improve error message when
3894 input stack limit exceeded.
3896 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
3898 * refer/refer.cc (main): Fix typo in handling of `a' option.
3900 * refer/refer.cc (do_bib): In state START after a newline remain
3903 * groff/groff.sh: Deleted.
3904 * groff/Makefile.sub: Delete handling of groff.sh.
3906 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3907 to determine whether to use \X'ps:...'.
3908 * tmac/troffrc: Set 0p register to 0.
3909 * tmac/tmac.ps: Set 0p register to 1.
3911 * groff/groff.cc: Support -X option. Give warning for -TXps and
3912 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3913 * tmac/troffrc: Support -r.X=1.
3915 * pic/troff.cc (troff_output::dot): Don't test
3916 zero_length_line_flag.
3918 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
3920 * include/lib.h: Declare getopt() and friends unless
3921 STDLIB_H_DECLARES_GETOPT is defined.
3923 * doc/chars.tr: Delete.
3924 * man/groff_char.man: New file.
3926 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
3928 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3929 user has changed register format.
3931 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
3933 * groff/groff.cc: Get rid of device_table. Get postprocessor from
3934 `postpro' command in DESC file. Get spooler command from `print'
3935 command in DESC file. Execute spooler command with /bin/sh.
3937 * groff/groff.cc: Split Unix-specific parts into...
3938 * groff/pipeline.c: New file.
3941 * COPYING: New file.
3942 * all files: Update copyright notices.
3944 * Rearrange files. Redo Makefiles. Use autoconf.
3946 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
3948 * troff/input.c (charinfo_to_node_list): Interpret character
3949 definition with escape_char of `\'.
3951 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
3953 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3954 Define INT_DIGITS as big enough for 64-bit integer.
3955 * lib/strtol.c: Don't include lib.h.
3956 * lib/lib.h: Delete ifdef __cplusplus stuff.
3958 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
3960 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
3961 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
3962 get DESC from current directory.
3964 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
3966 * tbl/main.c (main): Always reset the line number when reading
3969 * tbl/table.c (table::print_single_hline, table::print_double_hline,
3970 table::define_bottom_macro, table::do_row, table::do_top): Round
3971 vertical spacing up to vertical resolution.
3973 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
3975 * ps/ps.h (enum resource_type): Avoid comma at end of
3977 * dvi/dvi.c (class dvi_printer): Likewise.
3978 * dvi/tfmtodit.c (gf::load): Likewise.
3979 * refer/label.y (struct expression): Likewise.
3980 * refer/refer.c (class label_processing_state): Likewise.
3981 * refer/indxbib.c (do_file): Likewise.
3982 * troff/troff.c (enum warning_type): Likewise.
3983 * tbl/main.c (process_data): Likewise.
3984 * troff/charinfo.h (class charinfo):
3986 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
3988 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
3990 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
3992 * groff.c: Move to new groff subdirectory.
3993 * groff/Makefile: New file.
3994 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3996 * man/mdate.sh: Use ls -L if supported.
3998 * Consolidate all header files produced by gendef into lib/defs.h.
3999 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
4000 Don't include path.h.
4001 * lib/Makefile (path.h): Don't generate.
4002 * troff/input.c: Include defs.h. Don't include config.h.
4003 * troff/Makefile (config.h): Don't generate.
4004 * refer/index.h: Don't include suffix.h.
4005 * refer/index.c: Include defs.h.
4006 * refer/indxbib.c: Include defs.h.
4007 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
4009 * refer/Makefile (suffix.h, path.h): Don't generate.
4010 * groff.c: Don't include config.h. Include defs.h.
4011 * Makefile (config.h): Don't generate.
4012 (lib/defs.h): Generate.
4013 (topclean): Remove lib/defs.h.
4015 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
4017 * lib/malloc.c, lib/getpagesize.h: Deleted.
4018 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
4020 * lib/Makefile: Delete malloc-related stuff.
4021 * lib/new.c: Workaround COOKIE_BUG if necessary.
4023 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
4024 needed header files directly.
4025 * refer/refer.h: Omit definition of DEFAULT_INDEX.
4026 * Makefile: Include definition of DEFAULT_INDEX in path.h.
4028 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
4030 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
4032 * lib/font (font::load_desc, font::load): Don't split argument of
4034 (font::handle_unknown_font_command): Change type.
4035 * ps/ps.c (ps_font::handle_unknown_font_command,
4036 handle_unknown_desc_command): Change type.
4037 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
4039 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
4041 * lib/font.h (font::handle_unknown_font_command): Add file and
4043 * lib/font.c (font::handle_unknown_font_command):
4044 * ps/ps.c (ps_font::handle_unknown_font_command):
4045 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
4046 lineno arguments. Use _with_file_and_line functions for error
4049 * lib/fontfile.c (font::unknown_desc_command_handler): New static
4051 * lib/font.c (font::set_unknown_desc_command_handler): New
4053 (font::load_desc): For unknown commands, call
4054 unknown_desc_command_handler if not null.
4055 * lib/font.h (class font): Declare them.
4056 (FONT_COMMAND_HANDLER): New typedef.
4057 * ps/ps.c (handle_unknown_desc_command): New function.
4058 (main): Set bflag if we had a -b option. Call
4059 font::set_unknown_desc_command_handler.
4060 (broken.h): Don't include.
4061 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
4063 * ps/devps/Makefile: Add `broken' command to DESC file using
4064 BROKEN_SPOOLER_FLAGS.
4066 * macros/tmac.e ([, ]): Add as synonyms for { and }.
4068 * macros/tmac.e ($p): Only exdent if \$3 > 0.
4070 * macros/tmac.e (@R, @S): New macros.
4071 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
4072 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
4073 Declare $H, $[0-9], .. macros with @S.
4074 Declare |0, |1, |2, |3 strings with @S.
4076 * macros/tmac.e (@S): Rename to @U.
4078 * macros/tmac.e (@z): Define @b and bp as empty instead of
4081 * macros/tmac.e (@m): Deleted.
4082 (@h): Don't call @m.
4083 (@z): Don't set @m trap.
4085 * macros/tmac.e ($h, $f): Define |z as empty string.
4087 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
4090 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
4092 ()f): Likewise for * register.
4094 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
4095 argument is missing, don't change $R. Call sr with three
4096 arguments when initializing.
4098 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
4100 * macros/tmac.e (sr): New macro.
4101 Initialize $r and $R using sr.
4103 * macros/tmac.e (,): Delete \*(#[.
4105 * troff/env.c (set_tabs): Read the tab type even if the position
4106 is bad. Allow the position of the first tab stop to be negative.
4108 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
4110 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
4112 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
4113 rather than -DPATHCONF_MISSING.
4114 * Makefile: Get rid of PATHCONF_MISSING.
4116 * refer/map.c: New file.
4117 * refer/index.c: Interface to mmap through map.c. Rename map_size
4119 * refer/Makefile: Handle map.c.
4120 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
4122 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
4124 * Makefile: RANLIB should be `true' if there is no ranlib.
4125 * lib/Makefile (libgroff.a): Simplify.
4126 * driver/Makefile (libdriver.a): Simplify.
4128 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
4129 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
4132 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
4134 * troff/env.c (compare_ranges): Declare as extern "C".
4136 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
4138 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
4140 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
4142 * pic/troff.c (troff_output::text): Merge in grops_output::text,
4143 but conditionalize use of \X based on \*(.T.
4144 (grops_output::*): Deleted.
4145 * pic/output.h: Delete declaration of make_grops_output.
4146 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
4147 by default. -n sets it to 0.
4148 (usage): Corresponding changes.
4149 * groff.c (main): Don't pass -x or -p to pic.
4150 * groff.sh: Likewise.
4152 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
4155 * ps/devps/afmtodit: Change calculation of asc_boundary and
4156 desc_boundary. Make these bounds inclusive.
4157 * ps/devps: Regenerate font files.
4159 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
4161 * macros/tmac.latin1: New file.
4162 * macros/tmac.tty-char: Use tmac.latin1.
4163 (tmac.tty-tr): Deleted.
4164 * macros/Makefile: Install tmac.latin1.
4165 * macros/tmac.dvi: Use tmac.latin1.
4166 * macros/troffrc: Translate \[char160] onto no-break space here.
4167 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
4169 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
4171 * macros/tmac.Xps: Use `do' request.
4173 * macros/tmac.ps: Use `do' request.
4175 * macros/tmac.e (@C): Use `do' request.
4177 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
4178 * macros/Makefile: Install tmac.X*.
4180 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
4181 * tty/Makefile: Don't install tmac.tty*.
4182 * macros/Makefile: Install tmac.tty*.
4184 * dvi/tmac.dvi: Move to macros.
4185 * dvi/Makefile: Don't install tmac.dvi.
4186 * macros/Makefile: Install tmac.dvi.
4188 * ps/tmac.ps*: Move to macros.
4189 * ps/Makefile: Don't install tmac.ps*.
4190 * macros/Makefile: Install tmac.ps*.
4192 * eqn/box.c: Provide draw_lines parameter corresponding to -D
4194 * macros/eqnrc: Set draw_lines parameter based on device.
4195 * groff.c: Don't pass -D flag to eqn.
4196 * groff.sh: Likewise.
4197 * eqn/main.c: Warn about use of -D.
4199 * troff/input.c (process_startup_file): New function.
4200 (main): Call process_startup_file().
4201 * macros/troffrc: New file.
4202 * macros/Makefile: Install troffrc.
4203 * groff.c (main): Don't pass extra -m option to troff. For a
4204 pseudo device pass the name of the pseudo device to troff using
4206 * groff.sh: Likewise.
4207 * groff.c (possible_command::prepend_arg): Deleted.
4209 * troff/input.c (do_request): New function.
4210 (init_input_requests): Bind "do" to do_request.
4212 * eqn/main.c (main): Instead of loading eqnchar from device directory,
4213 load eqnrc from macro directory.
4214 * macros/eqnrc: New file.
4215 * macros/Makefile: Install eqnrc.
4216 * ps/devps/eqnchar: Deleted.
4217 * ps/devps/Makefile: Don't install eqnchar.
4218 * dvi/devdvi/eqnchar: Deleted.
4219 * dvi/devdvi/Makefile: Don't install eqnchar.
4220 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
4223 * lib/device.[ch]: New files.
4224 * lib/font.h (font::set_device_name, font::get_device_name):
4226 * lib/fontfile.c: Use device.h.
4227 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
4228 * troff/input.c: Delete definition of `device'.
4229 (main): Don't initialize device.
4230 * troff/troff.h: Include device.h rather than declaring device.
4231 * troff/Makefile: No need to handle DEVICE.
4232 * driver/input.c: Include device.h. Don't use
4233 font::{set,get}_device_name.
4234 * groff.c, Makefile: Rename device.h to config.h.
4235 * groff.c: Use library device variable.
4236 * eqn/main.c: Use library device variable.
4237 * eqn/Makefile: No need to handle DEVICE.
4239 * lib/searchpath.[ch]: New files.
4240 * lib/Makefile: Handle searchpath.[ch].
4241 * troff/input.c (open_file, init_dirs): Deleted.
4242 (macro_dirs): Deleted.
4243 (open_mac_file, macro_source): Use class search_path.
4244 (add_string, struct string_list): Move definition.
4245 (main): Change -M option to use macro_path. Delete call to
4247 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
4248 Rewrite to use class search_path.
4249 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
4250 * lib/Makefile: fontfile.c depends on searchpath.h.
4251 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
4253 * lib/macropath.[ch]: New files.
4254 * troff/Makefile: No need to handle MACROPATH.
4256 * troff/input.c: Delete DUMP code.
4257 * lib/fontfile.c, lib/font.h: Delete
4258 font::forget_command_line_font_dirs.
4260 * troff/input.c (push_token): New function.
4261 (handle_first_page_transition): Use push_token().
4262 (process_input_stack): Change handling of a space at the beginning
4265 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
4267 * troff/input.c (font_dirs): Delete unused variable.
4269 * eqn/lex.c (do_set): Correct error messages.
4271 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
4273 * troff/input.c (do_define_string): Allow the string name to be
4274 followed immediately by a tab.
4275 (define_character): Likewise.
4277 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
4279 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
4282 * troff/input.c (input_iterator::is_file): New virtual function.
4283 (file_iterator::is_file): New function.
4284 (input_stack::end_file): New function.
4285 (input_stack::next_file): Handle the situation where there is no
4286 file on the input stack correctly. Avoid making two passes over
4288 (next_file): Make the filename optional; in this case call
4289 input_stack::end_file().
4291 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
4293 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
4294 produce a real _ charater when the current font is CW and _
4297 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
4298 expression to work around gcc 2.2 bug.
4300 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
4302 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
4304 * troff/env.c (environment::add_padding): New function.
4305 (environment::add_char): Use add_padding().
4306 (environment::space): Likewise.
4307 (environment::wrap_up_field): Add some padding if there is none
4308 and there's no current tab.
4309 * troff/env.h: Declare environment::add_padding.
4311 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
4313 * pic/pic.y: undef fmod and rand before declaring them.
4315 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
4317 * troff/input.c (main): If the DESC file specifies a font name of
4318 0, then leave the corresponding font position empty.
4320 * nroff.sh: New file.
4321 * Makefile (install.nobin): Install nroff.sh.
4323 * tty/devlatin1/R.proto: Add ao as synonym for de.
4324 * tty/tmac.tty-char: Define ao as o.
4326 * tty/dev{ascii,latin1}/R.proto: Add aq.
4327 * tty/tmac.tty-char: Delete definition of aq.
4329 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
4331 * troff/input.c (init_charset_table): Don't translate 0240.
4332 * ps/tmac.ps: Translate char160 to space.
4333 * dvi/tmac.dvi: Likewise.
4334 * tty/tmac.tty: Likewise.
4336 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
4338 * dvi/tmac.dvi: Add support for all Latin-1 characters.
4340 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
4341 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
4344 * tty/tmac.tty-char: Add \(ah.
4346 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
4347 No need to define \(FM and \(!/. Conditionalize all character
4350 * ps/devps/lgreekmap: Add +h, +f, +p.
4352 * ps/tmac.psnew: New file.
4353 * ps/Makefile: Install tmac.psnew.
4355 * troff/input.c (charinfo_to_node_list): Don't ever interpret
4356 character definitions in compatible mode.
4358 * troff/input.c (remove_character): New function.
4359 (init_input_requests): Bind remove_character to "rchar".
4361 * ps/tmac.psold: New file.
4362 * ps/Makefile: Install tmac.psold.
4363 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
4364 characters into tmac.psold. Make these definitions unconditional.
4366 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
4368 * ps/tmac.ps: Don't define \('c and \('C.
4370 * ps/devps/textmap: Move Greek characters to...
4371 * ps/devps/symbolchars:
4373 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
4375 * ps/devps/text.enc: Add quotesingle.
4376 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
4377 * tty/tmac.tty-char: Likewise.
4378 * dvi/devdvi/texmi.map: Add +h, +f, +p.
4379 * dvi/devdvi/texi.map: Add Fn.
4380 * dvi/devdvi/msam.map: Add lz.
4381 * dvi/tmac.dvi: Handle Bq, bq, aq.
4383 * pic/lex.c (get_token): Recognize 'th.
4384 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
4386 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
4388 * ps/devps/textmap: Move di, mu, +- to...
4389 * ps/devps/symbolchars:
4391 * macros/tmac.s (@XS): Don't call par@reset or fi.
4392 (XA): Call LP. Turn off adjustment. Reduce line length.
4394 * macros/tmac.s: Initially alias XS to LP.
4395 (XS): Rename to @XS.
4396 (cov*ab-init): Alias XS to @XS.
4398 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
4400 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
4401 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
4402 (token::is_size, token::changes_env): Deleted.
4403 * troff/number.c (parse_term): No need to process \s explicitly.
4404 Call tok.next() only after scale indicator has been processed.
4405 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
4407 (token::next): Handle \s, \f, \S, \H immediately rather than
4408 returning them as tokens.
4409 (token::operator==, token::description, token::add_to_node_list,
4410 token::process): Remove handling of deleted tokens.
4412 * troff/env.c (environment::add_char): When adding padding
4413 indicator character, call start_line() if necessary.
4415 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
4417 * ps/devps/afmtodit: Don't output 0 kerns.
4419 * ps/devps/afmtodit: Remove directory from name of encoding in
4420 font description file.
4422 * ps/devps/afmtodit: Improve error messages.
4424 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
4426 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
4427 * ps/devps/FontMakefile: Deleted.
4428 * ps/devps/afmname: New file.
4430 * ps/devps/symbol.sed: New file.
4431 * ps/devps/symbol.diff: Deleted.
4432 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
4433 Generate zapfdr.afm from zapfd.afm.
4435 * tty/tmac.tty (tty-char): Prefix definition with ".
4437 * macros/tmac.an (TP): Don't start a diversion if one has already
4440 * tty/tmac.tty-char: Add Latin-1 characters.
4442 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4444 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
4446 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4447 Move declaration of struct horizontal_span.
4449 * tbl/table.c (table::table): Initialize span_list.
4450 (table::~table): Delete span_list.
4452 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4454 * ps/devps/Makefile: Avoid dependency on GNU make.
4456 * ps/tmac.ps: Check that character does not already exist before
4459 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4460 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4461 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4464 * tty/tmac.tty-char: New file.
4465 * tty/Makefile: Install tmac.tty-char.
4466 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4469 * tty/tmac.tty: Fix definition of \(34.
4471 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4472 bracket-drawing characters onto |. Add *o.
4474 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4475 only if current_field.
4477 * troff/dictionary.c (dictionary::lookup): Free old_table after
4480 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
4482 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4483 whose glyphs are identical to glyphs of some Roman character.
4485 * tty/devlatin1/R.proto (bu): Deleted.
4486 * tty/devascii/R.proto (bu): Deleted.
4487 * tty/tmac.tty: Add definition of \(bu.
4489 * eqn/main.c (do_file): Pass FILE as argument.
4490 (main): Automatically load eqnchar. New options -F and -n.
4491 Pass do_file an opened FILE.
4492 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4493 No need to include font.h.
4494 * groff.sh: Likewise. Don't need to use - for standard input.
4495 Prefix files with -- if first file starts with -.
4497 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4499 * troff/env.c (environment::possibly_break_line): Don't set line
4500 to 0 across call to output_line(). Don't call output_line() until
4501 after discarding nodes after break.
4503 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
4505 * request.h (macro::empty): Declare it.
4506 * input.c (macro::empty): New method.
4507 (interpolate_macro): Don't give a WARN_SPACE if the two-character
4510 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
4512 * troff/env.c (environment::start_field): Decrement space_total
4513 when a space is frozen.
4515 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
4517 * macros/tmac.an (R): Delete macro.
4519 * troff/input.c (get_copy, token::next): Support \# (like \" but
4520 newline is ignored).
4522 * troff/input.c (token::next): Fix error message in 'Y' case.
4524 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
4526 * eqn/delim.c (define_extensible_string): Recognize any prefix of
4529 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
4531 * c++test.c: Include <osfcn.h>.
4533 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4536 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
4538 * tbl/table.c (table::divide_span): Don't count column separation
4539 if expand was specified.
4541 * tbl/main.c (process_format): Don't ignore width specs in
4542 continued format. Give warning for changing equal widths or
4543 column separation in continued format.
4544 (process_data): Set column separation, minimum width, equal
4545 columns at end of table.
4547 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
4549 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4550 node::add_discretionary_hyphen): Use soft_hyphen_char.
4551 (set_soft_hyphen_char): New function.
4552 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
4554 * Makefile (c++tested): Give more helpful message if test fails.
4556 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
4558 * troff/input.c (init_charset_table): Translate 0240 to
4559 an unbreakable space.
4561 * troff/token.h (token::hyphen_indicator): New function.
4562 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4564 * troff/input.c (translate): Allow translation to \%.
4565 * troff/node.c (node::add_char): Handle
4566 TRANSLATE_HYPHEN_INDICATOR.
4567 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4569 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4572 * tty/devlatin1/R.proto: \(hy and - should print as 055.
4574 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
4576 * groff.c (run_commands): If the last command gets a SIGPIPE send
4577 a SIGPIPE to all children than haven't yet terminated. When
4578 command terminates, set pid field to -1.
4580 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
4582 * groff.c (main): Pass an appropriate -filename option to gxditview.
4584 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
4586 * Makefile.bd (install): Remove existing program before copying.
4588 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4589 programs which have Unix counterparts to be installed with
4590 user-specified prefix.
4592 * troff/input.c (exit_troff): Don't check if exit_started.
4593 (exit_request): Don't call exit_troff if exit_started.
4595 * Makefile.bd (install.mm): Rename to install.dwbmm.
4597 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
4599 * driver/input.c (do_file): Add missing break for '#' case.
4601 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
4603 * troff/input.c (input_stack::clear): Clear past any boundaries and
4604 then add the boundaries back.
4606 * troff/input.c (exit_troff): Return immediately if already
4609 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
4611 (pg*end-page): If the text has ended and there are no more
4612 footnotes or keeps, exit.
4614 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4616 * troff/input.c (init_charset_table): Make \(rq transparent by
4619 * macros/tmac.an: Define lq and rq strings.
4621 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4623 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
4625 * troff/env.c (environment::final_break): New function.
4626 (environment::newline): Set prev_line_interrupted to 2 if
4628 * troff/env.h: Declare environment::final_break.
4629 * troff/input.c (exit_troff): Call environment::final_break()
4630 instead of environment::do_break().
4632 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4633 doesn't already exist.
4634 * macros/man.local: New file.
4635 * macros/tmac.an: Load man.local.
4636 * macros/man.ultrix: New file.
4638 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
4640 * troff/input.c (exit_groff): Rename to...
4641 (exit_troff): New function.
4643 * troff/div.c (exit_started, done_end_macro,
4644 seen_last_page_ejector): New global variables.
4645 (began_page_in_end_macro): New static variable.
4646 (exit_flag): Deleted.
4647 (top_level_diversion::top_level_diversion): Initialize
4649 (top_level_diversion): More elaborate test for whether
4650 cleanup_and_exit() should be called.
4651 Set began_page_in_end_macro if the end macro isn't yet finished.
4652 * troff/div.h (top_level_diversion::last_page_count): New data
4654 (top_level_diversion::set_last_page): New function.
4655 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4656 * troff/env.c (do_break): Zero prev_line_interrupted.
4657 * troff/input.c (exit_flag): Delete declaration.
4658 (LAST_PAGE_EJECTOR): New magic cookie.
4659 (token::next): Handle LAST_PAGE_EJECTOR.
4660 (exit_groff): Set exit_started and done_end_macro instead of
4661 exit_flag. Call top_level_diversion::set_last_page. Push a
4662 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
4663 another ejection after setting seen_last_page_ejector.
4665 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
4667 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4669 * macros/tmac.e (TH): Make sure there's room for the initial
4672 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4673 Set FVS in points rather than units.
4675 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
4677 * troff/div.c (top_level_diversion::add_trap): Don't consider the
4678 position of empty slots.
4680 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
4682 * ps/devps/S: Fix height and depth of parenrightex.
4683 * ps/devps/symbol.diff: Regenerate.
4685 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
4687 * tmac.e (u): Do underlining as in -mgs.
4689 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
4691 * tty/tty.c (tty_printer::end_page): If overstriking is
4692 suppressed, still turn overstruck horizontal and vertical lines
4695 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4698 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4700 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
4702 * Version 1.05 released.
4704 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
4706 * tty/tty.c: Instead of keeping an array of glyphs and then
4707 sorting it, keep a ordered linked list of glyphs for each line.
4709 * driver/driver.h: Include stddef.h.
4711 * tty/tty.c (compare_glyph):
4712 * refer/refer.c (rcompare):
4713 * troff/env.c (compare_ranges): Arguments of qsort comparison
4714 function should be const void *.
4716 * troff/number.c (parse_term):
4717 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4720 * refer/label.y (consider_authors): Don't access variables
4721 constructed under a condition outside that condition: put braces
4722 round for statement containing declaration; redeclare use of same
4725 * pic/pic.y (text_expr): Delete production that allows
4726 parenthesised text_expr.
4727 (expr): Allow a conditional_expr to appear in parentheses.
4728 (conditional_expr): Rename to any_expr.
4730 * mm: Install new version 1.01 from jh.
4732 * lib/font.c (font::get_width): Cache scaled widths.
4733 (font::font): Initialize widths_cache.
4734 (font::~font): Destroy widths_cache.
4735 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4737 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
4739 * c++test.c, c++test.ref: New files.
4740 * Makefile: Check that the C++ compiler works.
4742 * ps/tmac.pspic (PSPIC): Do a break.
4744 * ps/tmac.ps: Move definition of PSPIC into...
4745 * ps/tmac.pspic: New file.
4746 (PSPIC): Draw box around picture, but make it invisible to grops.
4747 * ps/tmac.ps: Load tmac.pspic.
4748 * ps/Makefile: Install tmac.pspic.
4750 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
4752 * lib/font.c (scale_round): If n is negative,
4753 subtract .5 before truncating floating point result.
4755 * lib/fontfile.c: Include <errno.h>.
4757 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
4759 * driver/input.c (get_char): Inline. Don't update current_lineno.
4760 Change callers to up date current_lineno if necessary.
4761 Use get_char() instead of getc(current_file).
4763 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
4765 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4767 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
4769 * tty/tty.c (tmac.tty): Define \(rg as (R).
4771 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
4773 * lib/lib.h: New define a_delete.
4774 * Use a_delete instead of delete when deleting an array of objects
4775 without destructors.
4777 * lib/lib.h: Rename adelete to ad_delete.
4778 * Change uses of adelete.
4780 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
4782 * eqn/eqn.y: Include lib.h.
4784 * troff/node.c (grow_font_table): Delete old_font_table.
4786 * mm: Install new version from jh.
4788 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
4790 * tbl/table.h (format_type): Make global instead of local to class
4791 entry_format. Prefix enumerators with FORMAT_.
4792 * tbl/table.c, tbl/main.c: Corresponding changes.
4793 * refer/token.h (token_type): Make global. Prefix enumerators
4795 * refer/token.[ch]: Corresponding changes.
4796 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4798 * troff/div.c (node::set_vertical_size): Don't name argument.
4800 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
4802 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4803 * lib/lib.h: Define adelete accordingly.
4804 * pic/object.c (graphic_object::graphic_object):
4805 * tbl/main.c (format::~format):
4806 * tbl/table.c (table::~table):
4807 * refer/ref.c (reference::~reference, reference::merge,
4808 reference::insert_field, reference::delete_field): Use adelete.
4810 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4812 * tbl/table.h: Corresponding changes.
4814 * common.c (common_output::dashed_arc, common_output::dotted_arc):
4815 Ensure total_angle is positive.
4817 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
4819 * refer/ref.c (reference::merge, reference::insert_field,
4820 reference::delete_field): Avoid delete[0].
4822 * refer/token.c (init_special_chars): Move calls to cmupper
4823 outside calls to init_two_char_letter to work around bug in gcc
4826 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
4828 * lib/new.c (operator new): Use __builtin_new for g++.
4830 * pic/object.c (graphic_object::~graphic_object): Don't use
4833 * pic/object.c (output::compute_scale): Initialize max_width and
4836 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
4838 * troff/input.c (write_request): Call fflush.
4840 * troff/node.h (class composite_node): Move declaration to node.c
4841 * troff/input.c (charinfo_to_node): Rename to ...
4842 (charinfo_to_node_list): Return node list rather than composite
4844 * troff/node.c (make_composite_node): New function.
4845 (make_node, add_char): Call make_composite_node instead of
4847 (class composite_node): Add a tfont * member. Delete font_size
4849 (composite_node::composite_node, composite_node::copy,
4850 composite_node::size): Corresponding changes.
4851 (composite_node::tprint): Provide constant spacing, emboldening
4852 and track kerning as specified in tfont.
4853 (composite_node::width): Change width calculation accordingly.
4854 * troff/env.h (environment::composite): New member.
4855 (environment::is_composite, environment::set_composite): New
4857 * troff/env.c (environment::environment): Initialize composite.
4858 * troff/input.c (charinfo_to_node): Call
4859 environment::set_composite.
4860 * troff/node.c (make_composite_node, make_glyph_node): Use the
4861 plain version of the tfont if the environment is composite.
4863 * troff/node.c (font_info::get_space_width): Additional argument
4864 giving space_size. Handle constant space correctly. Scale by
4865 space_size unless constant spaced.
4866 (env_sentence_space_width): New function.
4867 * troff/node.h: Declare it.
4868 * troff/env.h (environment::get_space_size,
4869 environment::get_sentence_space_size,
4870 environment::get_narrow_space_width,
4871 environment::get_half_narrow_space_width): Make inline.
4872 (environment::get_space_width): Make inline. Just call
4874 * troff/env.c: Delete definitions for funtions made inline.
4875 (environment::space_newline, environment::space): Use
4876 env_sentence_space_width(). Don't scale by space_size.
4877 * troff/node.h: Move declarations of env*space_width() functions
4880 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
4882 * macros/tmac.s (PS): Don't try to set negative indent.
4884 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
4886 * pic/pic.y: Fix min function.
4888 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
4890 * man/mdate.sh: Clear LANGUAGE.
4892 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
4894 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4895 * pic/lex.c: New COMMAND keyword.
4896 * pic/pic.y (print_args, print_arg): New rules.
4897 (placeless_element): Use print_args for PRINT.
4898 New COMMAND element.
4900 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
4902 * troff/input.c (terminal): Handle missing argument correctly.
4904 * pic/pic.y (text_expr): New rule.
4906 * pic/pic.y: Implement := operator.
4908 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
4910 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4913 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
4915 * ps/devps/dingbatsrmap: Include this in the distribution.
4917 * macros/tmac.doc: Replace with new version from 2nd Networking
4918 Release. Fix loading of doc-* files.
4919 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4920 * macros/tmac.doc.old: New file. Apply fixes that had been
4921 applied to old tmac.doc.
4922 * macros/tmac.andoc: Check that we're running under groff.
4923 * macros/Makefile: Rework.
4925 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
4927 * tbl/table.h (format_type):
4928 * refer/token.h (token_type): If NESTED_TYPES is defined, use
4929 typedef to make these types visible at file scope.
4930 * Makefile: Add NESTED_TYPES configuration option.
4932 * troff/div.c (mark): At the top level use the value of
4933 nl_reg_contents rather than the current vertical position.
4935 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
4937 * tty/tty.c: Implement \D for horizontal or vertical lines.
4938 (tty_printer::set_char): Use vec_used+2 as serial number.
4939 Don't allow size of vector to exceed USHRT_MAX-2.
4940 Split off part into...
4941 (tty_printer::add_char): New function.
4942 (tty_printer::draw): New function.
4943 (compare_glyph): Handle equal serial numbers.
4944 (tty_printer::end_page): Handle overstruck characters from \D.
4945 (main, usage): Implement -d option.
4947 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
4949 * tbl/main.c (process_format):
4950 * eqn/text.c (split_text):
4951 * troff/input.c (token::next): Use inner block for declarations
4952 with initializers in switch statement.
4954 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
4956 * pic/common.c (common_output::dash_line): Cope with zero-length
4959 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
4961 * Version 1.04 released.
4963 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
4965 * macros/tmac.an (TH): Define a macro an-init to define variables
4966 based on command line arguments.
4967 (an-header): Call it.
4969 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
4971 * Makefile (install.mm): Rename to install.dwbmm.
4973 * Makefile: Integrate mm.
4974 * mm: New directory.
4976 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
4978 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4981 * pic/troff.c (troff_output::simple_spline,
4982 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4983 shadowing parameter.
4985 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4987 * lib/ptable.h: Add explicit casts when converting from unsigned
4990 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4991 * dvi/devdvi/Makefile: Install SA, SB.
4993 * refer/indxbib.c: Add declaration of mktemp.
4995 * refer/lookbib.c: Add declaration of isatty.
4997 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
4999 * pic/lex.c (interpolate_macro_with_args): While collecting
5000 arguments, keep track of whether we're in a string.
5002 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
5004 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
5005 down with \v, so as to avoid problems with top of page trap
5006 setting no space mode.
5008 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
5010 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
5012 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
5014 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
5015 Improve error message.
5017 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
5019 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
5022 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
5024 * groff.c (possible_command::execp): Always use _exit() after a
5027 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
5028 NO_SYS_WAIT_H configuration options.
5029 * groff.c: Use these options. Use POSIX-style macros to extract
5030 fields from the status returned by wait().
5032 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
5034 * tbl/table.c (table::compute_separation_factor): Allow the
5035 separation factor to drop to 0.
5037 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
5039 * refer/search.c: Include <errno.h>.
5041 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
5043 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
5045 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
5048 * pic/lex.c (input_stack::bol): Move definition out of class body.
5050 * pic/main.c: On MSDOS munge argv[0].
5052 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
5054 * lib/ptable.c (hash_string): Use unsigned long rather than
5056 (next_ptable_size): Use unsigned rather than int. Give an error
5057 message if we've hit the largest table size.
5058 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
5061 * pic/object.h (object_spec): Make flags unsigned long. Declare
5062 flags as const unisgned long rather than as enums.
5064 * pic/output.c: Deleted.
5066 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
5068 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
5069 Add additional argument.
5070 (line_entry::note_double_vrule_on_{left,right}): Set value of
5071 douvle_vrule_on_{right,left} flag according to argument.
5072 (simple_line_entry::simple_print,
5073 simple_line_entry::double_line_print): If adjacent to double vrule
5074 on a corner extend rather than shorten the rule by half the double
5077 * troff/number.c (parse_term): In checking for overflow, handle the
5078 case where the current horizontal position is negative.
5080 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
5082 * pic/object.c (draw_arrow): Check for object having zero length.
5084 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
5086 * eqn/main.c (do_file): Split off inline equation handling into...
5087 (inline_equation): New function. Search for starting delimiter
5089 (delim_search): New function. Don't recognize a delimiter that
5090 occurs in the name of an escape sequence, number register, string
5093 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
5095 * eqn/delim.c (delim_box::compute_metrics): Don't call
5096 define_extensible_string if left is 0.
5097 (delim_box::output): Don't print the left delimiter if left is 0.
5098 (delim_box::debug_print): Check for left == 0 before calling printf.
5100 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
5102 * troff/Makefile (majorminor.c): Include only digits in
5105 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
5107 * refer/dirnamemax.c: new file.
5108 * refer/genlimits.c: Deleted.
5109 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
5110 Don't check path length.
5111 * refer/Makefile: Add dir_name_max.o; delete genlimits.
5112 * Makefile: Add PATHCONF_MISSING option.
5114 * refer/indxbib.c (get_cwd): New function.
5115 (main): Use get_cwd().
5116 * lib/getcwd.c: New file.
5117 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
5119 * lib/Makefile: Compile getcwd.o.
5121 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
5124 * refer/indxbib.c (main): Check success of mktemp.
5126 * lib/tmpfile.c: New file.
5127 * lib/Makefile: Add tmpfile.c.
5128 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
5129 * ps/ps.h: Delete declaration of mktemp().
5130 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
5131 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
5132 * driver/driver.h: No need now to include errno.h.
5134 * everywhere: Set errno to 0 before calling fopen().
5136 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
5137 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
5138 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
5140 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
5142 * troff/env.h (translate_space_to_dummy): Declare it.
5143 * troff/env.c (environment::space_newline, environment::space):
5144 If translate_space_to_dummy is set then make the width of spaces 0.
5145 * troff/input.c (translate): If the second character of a
5146 translation is a space, translate to unbreakable space. If the
5147 first character is a space, set or clear translate_space_to_dummy
5148 according to whether the second character is \&. Weird!
5150 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
5152 * groff.c (run_commands): Don't use non-zero exit code because a
5153 command gets SIGPIPE.
5155 * groff.c, groff.sh: Use -mXps with -TXps.
5157 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
5158 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
5159 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
5160 (ps_printer::special): New specials invis and endinvis.
5161 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
5162 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
5163 (ps_printer::end_page): Check that invis_count == 0.
5164 (ps_printer::invis_count): New member.
5165 (ps_printer::ps_printer): Initialize invis_count to 0.
5167 * troff/env.c (environment::hyphenate_line): Hyphenation
5168 indicator at beginning of word inhibits splitting after -, \(em
5171 * pic/pic.y (element): Allow another element to follow } without
5172 any intervening separator.
5174 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
5176 * pic/lex.c (get_delimited): Allow tabs before delimiter.
5178 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
5180 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
5181 declaration of wait() in header files.
5182 * Makefile: Get rid of -DHAVE_UNION_WAIT.
5184 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
5186 * lib/lib.h: Declare return type of strerror as char *.
5188 * man/Makefile: Add g flag to sed substitutions.
5189 * Makefile (shgroff, bindist): Likewise.
5191 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
5193 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
5194 * ps/devps/prologue (PBEGIN): Define showpage after pushing
5197 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
5199 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
5202 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
5204 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
5207 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
5209 * troff/input.c (define_number_reg): If currently undefined,
5210 don't define it if the argument is an invalid expression.
5212 * Makefile: Ignore return value of `if' commands without `else'
5215 * Makefile: Split up CPPDEFINES into a series of separate
5216 configuration options.
5218 * troff/input.c (init_registers): Use time_t instead of long
5219 unless LONG_FOR_TIME_T is defined. Use returned result rather
5220 than passing pointer.
5221 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
5223 * lib/Makefile (fontpath.h): Use gendef.
5225 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
5227 * troff/input.c (input_iterator::shift): Delete argument name.
5228 * troff/node.c (suppress_output_file::really_begin_page,
5229 suppress_output_file::really_transparent_char, node::ascii_print,
5230 node::tprint): Delete names of unused arguments.
5232 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
5234 * refer/label.y (string): Pass $4 to command_error.
5236 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
5238 * Version 1.03 released.
5240 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
5242 * Makefile: Pass definition of SHELL in SUBFLAGS.
5245 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
5246 ps/Makefile: Use gendef to construct header files that are
5247 constructed from the Makefile.
5249 * macros/Makefile: make all should build stripped version of tmac.e.
5251 * refer/Makefile (clean): Remove y.output.
5253 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
5255 * ps/pfbtops.c (main): Add -v option which prints out a version
5257 * ps/Makefile (pfbtops): Link with libgroff.a.
5259 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
5261 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
5262 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
5264 * refer/lkbib.c (main): Always terminate reference with blank
5266 * refer/lookbib.c (main): Likewise.
5268 * refer/linear.c (file_buffer::load): Check that the file is not a
5271 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
5272 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
5273 Delete second inclusion of <sys/param.h>.
5275 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
5277 * troff/token.h (token::special): Deleted.
5279 * tbl/main.c (process_format): Rework so that opt->tab_char is
5280 recognized only when appropriate.
5282 * ps/Makefile (clean): Remove pfbtops.
5284 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
5286 * lib/font.c (text_file::next): Don't return if we have got a
5289 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
5291 * refer/refer.c (store_reference): Get hash code from old_table[i]
5292 when rehashing the table.
5294 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
5296 * eqn/box.c (box::top_level): Save size and prev size using \R and
5297 restore it afterwards. Set the size to the size at the beginning
5299 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
5300 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
5302 * refer/Makefile (limits.h): Use ./genlimits.
5304 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
5306 * refer/index.c: Delete declarations of stat() and fstat().
5308 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
5310 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
5312 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
5314 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
5316 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
5318 * troff/input.c (token::get_char): Handle \e.
5320 * refer/linear.c: Delete declarations of fstat() and stat().
5322 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
5324 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
5325 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
5327 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
5329 * troff/input.c (do_define_macro): Improve error handling for end
5330 of file while defining macro.
5332 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
5334 * eqn/box.h: Fix declaration of set_gsize.
5335 * eqn/box.c (set_gsize): Make argument const char *.
5336 (gsize): Declare as char *.
5337 * eqn/main.c (main): Don't convert gsize to int.
5338 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
5340 * Version 1.02 released.
5342 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
5344 * macros/tmac.andoc: New file.
5345 * macros/Makefile: Install tmac.andoc.
5347 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
5348 operator new and delete on OP_DELETE_BROKEN not being defined.
5349 * Makefile: Mention OP_DELETE_BROKEN.
5351 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
5353 * Makefile (bindist): Pass SUBFLAGS.
5355 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
5357 * Makefile, groff.c: Pass definitions to groff.c via device.h.
5359 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
5362 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
5364 * ps/ps.h, ps/psrm.c: Make comment_table and
5365 header_comment_table local to resource_manager::process_file.
5367 * groff.sh: With -TXps pass -printCommand option to gxditview.
5369 * groff.c (possible_command::print): Implement using
5370 append_arg_to_string.
5372 * xditview: Merge in new implementation with own ChangeLog.
5374 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
5376 * groff.c (main): Implement PRINT_OPTION.
5377 (append_arg_to_string): New command.
5378 (device_table): Set PRINT_OPTION flag for Xps.
5380 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
5382 * troff/groff.h: Rename to troff.h.
5384 * pic/lex.c (lookup_keyword, docmp): New functions.
5385 (get_token): Use new lookup_keyword.
5386 Don't include key.h.
5387 * pic/key.[ch], pic/pic.gperf: Deleted.
5388 * pic/Makefile: Remove gperf stuff.
5390 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
5392 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
5394 * troff/Makefile, troff/node.c: Move definition of
5395 STORE_WIDTH into node.c.
5397 * etc/grog.pl, etc/grog.sh: Support -mdoc.
5399 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
5401 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
5402 dvi/devdvi/texb.map: Add lq and rq.
5403 dvi/devdvi: Regenerate fonts.
5404 * ps/devps/textmap: Add lq and rq.
5405 * ps/devps: Regenerate fonts.
5406 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
5407 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
5409 * pic/object.c (position_rectangle): When checking radius
5410 cope with possiblity that width or height is negative.
5411 (box_object::box_object): Have separate xrad and yrad with
5412 signs matching signs of dim components.
5413 (box_object::{north,south}_{east,west}): Use xrad and yrad.
5414 (box_object::print): With rounded boxes use absolute values
5415 for dim and rad arguments.
5417 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
5420 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
5422 * various files: Add explicit destructors to keep Saber CC +d
5425 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
5427 * eqn/box.c (box::top_level): Restore fonts correctly after
5428 font changes in line containing inline equation. Also
5429 restore previous font as well as current font.
5430 * eqn/pbox.h: Define necessary string and register names.
5432 * troff/input.c (token::next): Case 'R' calls do_register.
5433 (do_register): New function.
5435 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
5437 * groff.c, groff.sh: Support Xps device. Allow each device
5438 to have a pseudo_name and a real_name.
5440 * groff.c (run_commands): Don't print `Broken pipe' messages.
5442 * ps/pfbtops.c: New file.
5443 * ps/Makefile: Add pfbtops.
5445 * troff/number.c (parse_term): Improved error message.
5447 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
5449 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5451 * Makefile: Integrate refer.
5452 * refer: New directory.
5453 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5454 man/lkbib.man: New files.
5455 * man/Makefile: Support refer man pages.
5457 * lib/lib.h: Declare is_prime.
5458 * lib/prime.c: New file.
5460 * troff/input.c (macro_source): New function.
5461 (init_input_requests): Bind "mso" to macro_source.
5463 * troff/env.c (environment::possibly_break_line): Maintain
5464 pointer to pointer to node to be split in ndp so as to avoid
5465 using address of freed node.
5467 * troff/env.c (environment::hyphenate_line): Maintain pointer to
5468 pointer to first node to be hyphenated in startp so as to
5469 avoid using address of freed node.
5471 * troff/env.c (class trie, class hyphen_trie): Make the
5472 elements of the trie be of type char not unsigned char.
5473 Declare arguments to be const char* instead of unsigned char *.
5475 * troff/env.c (hyphenate): Initialize hbuf[0].
5477 * troff/input.c (set_string): Declare p to be char * and cast
5478 *p to unsigned char when necessary.
5480 * troff/input.c (do_define_macro): Declare s to be const
5481 char*. Cast element to unisgned char when necessary, Declare
5482 d to be an int. Handle EOF better.
5484 * troff/Makefile, troff/input.c: Different scheme for passing
5485 definitions of MACROPATH, HYPHENFILE and DEVICE.
5487 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
5489 * tty/devascii/R.proto: Delete entry for em.
5490 * tty/devlatin1/R.proto: Likewise.
5492 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
5494 * troff/input.c (translate): Stop when we get a space. Treat eof
5497 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5499 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
5501 * tbl/main.c (process_format): A font name following a `f'
5502 modifier that starts with a digit can be only one character long.
5503 Also deal with EOF on the second character of the font name.
5505 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
5507 * troff/input.c (token::next): Turn \~ into an
5508 unbreakable_space_node.
5509 * troff/node.c (unbreakable_space_node): New class.
5510 * troff/node.h: Declare it.
5512 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
5514 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
5515 it's >= 0, before outputting it as a single byte.
5517 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
5519 * lib/font.c: Make font_char_metric::code an int.
5520 (font::get_code): Change return type to int.
5521 (font::load): Allow code to be arbitrary integer.
5522 * lib/font.h (font::get_code): Change return type to int.
5523 (font::number_to_index): Change argument type to int.
5524 * troff/input.c (token::next): In case 'N', allow any value.
5525 Store value in token::val.
5526 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5527 (token::get_char, token::add_to_node_list, token::process): Get
5529 (charinfo::set_number): Change argument to int.
5530 (charinfo::get_number): Require that NUMBERED flag be set.
5531 (get_charinfo_by_number): Store numbered characters not between 0
5532 and 255 in a dictionary.
5533 * troff/charinfo.h (get_charinfo_by_number): Change argument type
5535 (charinfo::number): Change type to int.
5536 (charinfo::set_number): Change type of set_number to int.
5537 * troff/node.c (troff_output_file::put_char_width,
5538 troff_output_file::put_char): Test whether character is numbered
5539 using charinfo::numbered().
5540 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5542 * lib/nametoindex.c: New implementation to cope with arbitrary
5545 * troff/input.c (token::operator==): Test val for
5546 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5549 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5550 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
5552 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
5554 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
5557 * all Makefiles: rm targets of cp and >.
5559 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5562 * eqn/lex.c (def_table): Add dollar.
5564 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
5566 * troff/input.c (do_width): Push back newline before closing delim
5569 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
5571 * groff.c (possible_command::prepend_arg): New function.
5572 (main): Prepend device -m option.
5573 * groff.sh: Put device -m options before command-line options.
5575 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
5577 * macros/tmac.an (IP): Quote argument to TP.
5579 * ps/ps.c (main): New option -b, which sets...
5580 (broken_flags): New variable.
5581 (ps_printer::~ps_printer): Incorporate the setup section in the
5582 prolog if (broken_flags & NO_SETUP_SECTION).
5583 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5584 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5585 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5586 ps_printer::print_needed_font_comment,
5587 ps_printer::print_supplied_font_comment,
5588 ps_printer::print_include_font_comments,
5589 ps_printer::lookup_doc_font, ps_printer::download_fonts,
5590 ps_printer::read_download_file, read_document_fonts, add_font,
5591 skip_line, parse_fonts_arg, document_font::document_font,
5592 document_font::~document_font, document_font::download,
5593 ps_output::include_file): Deleted.
5594 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5595 rather than %!PS-Adobe-2.0. Make calls to
5596 resource_manager::need_font for each font that we used. Replace
5597 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5598 print_supplied_font_comment, print_needed_font_comment by call to
5599 resource_manager::print_header_comments. Output %%Orientation
5600 comment. Output %%Requirements: numcopies comment if ncopies > 1.
5601 Don't output the prolog directly. Instead call
5602 resource_manager::output_prolog. Only define #copies when ncopies
5603 > 1. Delete calls to print_include_font_comments and
5604 download_fonts. Add call to resource_manager::document_setup.
5605 (ps_printer::do_file): Call resource_manager::import_file instead
5606 of including it ourselves.
5607 (ps_printer::do_import): Likewise. Also don't call
5608 merge_import_fonts. Push userdict on the dictionary stack before
5609 and pop it afterwards.
5610 Move declaration of ps_output into ps.h.
5611 * ps/psrm.c: New file implementing resource_manager class.
5612 * ps/ps.h: New file declaring ps_output and resource_manager
5614 * ps/devps/zapfdr.ps:
5615 * ps/devps/symbolsl.ps:
5616 * ps/devps/prologue: Use 3.0 conventions.
5617 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5618 Add default definition of BROKEN_SPOOLER_FLAGS.
5619 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
5620 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5622 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
5624 * etc/grog.pl: New file.
5625 * Makefile (GROG): New variable.
5626 Add GROG to SUBFLAGS.
5627 * etc/Makefile (GROG): New variable.
5628 (install.nobin): Install $(GROG) rather than grog.sh.
5630 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
5632 * eqn/special.c (special_box::compute_metrics): Make the input and
5633 output strings the same. Get the new height and depth from the
5634 predefined height and depth registers. Also make subscript kern
5636 (special_box::compute_subscript_kern, special_box::compute_skew):
5639 * eqn/box.c (pointer_box::compute_skew,
5640 simple_box::compute_metrics, box::top_level)
5641 * eqn/text.c (prime_box::compute_metrics,
5642 prime_box::comput_subscript_kern)
5643 * eqn/limit.c (limit_box::compute_metrics):
5644 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5645 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5646 negative numbers in `nr' requests with a leading 0.
5648 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
5650 * eqn/special.c: New file.
5651 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
5652 Add new rule for simple.
5653 * eqn/lex.c (token_table): Add SPECIAL.
5654 * eqn/box.h: Declare make_special_box.
5655 * eqn/Makefile: Add special.[co].
5657 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
5659 * ps/devps/prologue: Possibly set packing to true while defining.
5660 Create grops dictionary here. Initialize local variables before
5661 defining procedures.
5662 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5663 the dictionary stack. Set strokeadjust and overprint to false if
5664 the relevant operators are defined.
5665 (PEND): New procedure.
5666 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5667 prologue. Do everything else in the setup section.
5668 (ps_printer::do_import): Just call PBEGIN and PEND around the
5669 picture. Also push userdict before, and pop it afterwards.
5671 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
5673 * troff/node.c (bracket_node::tprint): Brackets were being printed
5676 * macros/tmac.an (SH, SS): Set fill mode.
5678 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
5680 * troff/div.c (top_level_diversion::begin_page): Set
5681 high_water_mark to 0.
5683 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
5685 * man/mdate.sh: New file.
5686 * man/mdate.c: Deleted.
5687 * man/Makefile: Use mdate.sh instead of mdate.
5690 * eqn/lex.c (do_gsize): Supply missing argument to error message.
5692 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
5694 * man/mdate.c: New file.
5695 * man/*.man: Replace modification date by @MDATE@.
5696 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5697 (mdate): New target.
5699 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5700 Remove illegal input characters.
5702 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
5704 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5706 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
5708 * troff/div.c (begin_page): Change behaviour when
5709 !first_page_begun and !break_flag.
5711 * troff/input.c (do_name_test): Return 0 if argument is empty.
5713 * troff/input.c (read_long_escape_name): Require closing ] to be
5714 at same input level as opening [.
5716 * troff/input.c (read_increment_and_escape_name): New function.
5717 (get_copy, process_input_stack): Use this for \n.
5719 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
5721 * troff/div.c (top_level_diversion::begin_page): Ignore the
5722 current value of page_number if !first_page_begun.
5724 * groff.c (main): Fix declaration of buf.
5726 * troff/input.c (do_name_test): New function.
5727 (token::next): Implement \A.
5728 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5729 (token::description, token::add_to_node_list, token::process):
5730 Handle TOKEN_ESCAPE.
5731 * troff/token.h: New token TOKEN_ESCAPE.
5733 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
5735 * pic/main.c (do_picture): Allow space before and after filename
5736 following `<'. Check that the filename is not empty.
5738 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
5740 * Version 1.01 released.
5742 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5744 * dvi/tmac.dvi: ftr HR to H.
5746 * macros/tmac.e: Round up computation of $r.
5748 * xditview/tmac.X: Don't give up completely in compatibility mode.
5749 Use \n(.s instead of \n[.s].
5751 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5752 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5753 Add u to factors inside \s[...]. Rename frac to dvi-frac.
5754 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5755 short names in the char definitions.
5757 * ps/tmac.ps: Don't give up completely in compatibility mode.
5758 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5759 quote in front of \n(.s. Add u to factors inside \s[...].
5761 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
5763 * tty/tmac.tty: Call the nroff request.
5765 * macros/tmac.e ((x, )x): Better definitions that work properly
5767 (@0, @1): Helper macros for (x.
5769 * macros/tmac.e ($s, hl): Use \l rather than \D.
5771 * tty/tmac.tty: Make it work better in compatibility mode.
5772 (pchar): Rename to tty-char.
5774 * macros/tmac.e (@E): New macro.
5775 (r, i, b, rb, bi): Use @E.
5777 * macros/tmac.e (@F): Don't use (;...) syntax.
5779 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
5780 it was modified for groff.
5782 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5784 * macros/tmac.e (<., .>): Removed.
5785 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5787 * macros/tmac.e: Remove check that groff is being used.
5789 * macros/tmac.e (@C): Change families only if using groff; turn
5790 compatibility mode off while changing familes. Save compatibility
5791 mode before changing families and restore it afterwards.
5793 * macros/tmac.e (@h): Remove test for offset + line length.
5795 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
5796 (lo, th, ac): Define to call @S instead of using als.
5798 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5799 the ratio of the vertical spacing to the point size in units
5800 expressed as a percentage. Use these instead of $10r and $10R,
5801 Delete $10r and $10R.
5803 * lib/font.c (font::load): In default computation of space_width,
5804 divide by sizescale. Use scale_round.
5806 * macros/tmac.an (TP): Don't call `nf'.
5807 (an-do-tag): Don't call `fi'.
5809 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
5811 * troff/input.c (process_input_stack): Handle the case where
5812 spaces at the beginning of an input line are followed by a
5815 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
5817 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5818 * groff.sh: Use pic -x with the dvi device.
5820 * dvi/devdvi/FontMakefile (H): Don't use -s.
5822 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5823 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5824 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5827 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
5829 * ps/psfig.diff: New file.
5830 * ps/tmac.psfig: New file.
5832 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
5834 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5835 (]-): Don't call ref*do-tl.
5837 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5839 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5840 (fn@do-FS): Rename to fn*do-FS.
5842 * troff/input.c (transparent_translate): New function.
5843 (process_input_stack): Apply transparent_translate before calling
5844 diversion::transparent_output(unsigned char).
5846 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
5848 * troff/input.c (do_define_macro): Define the macro before calling
5851 * xditview/Makefile: Add DEVICES variable. Change install target
5854 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
5856 * groff.c (run_commands): Handle the possibility that there are
5857 child processes other than those forked by us.
5859 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
5861 * lib/string.c (string::append): New function.
5862 * lib/stringclass.h: Declare it.
5864 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
5866 * eqn/main.c (main): New option -N which sets
5867 no_newline_in_delim_flag.
5868 (do_file): If no_newline_in_delim_flag is set don't allow newlines
5870 * groff.c (main): Pass -N on to eqn.
5871 (help, synopsis): Mention -N.
5872 * groff.sh: Implement -N.
5874 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
5876 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5877 (]-): Call ref*do-tl if ref*need-tl is non-zero.
5878 (XP): Allow as initializer.
5880 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
5882 * troff/env.c (environment::wrap_up_field): If field_spaces are
5883 non-zero and we have a current_tab, subtract padding from
5884 tab_distance. If this makes tab_distance <= 0, use the next tab
5885 stop instead. If there isn't any next tab or it's a left tab,
5886 wrap up the current tab.
5887 (environment::start_field): Initialize tab_precedes_field.
5888 (environment::wrap_up_tab): If there's a current field, update
5889 pre_field_width, field_distance and tab_precedes_field.
5890 * troff/env.h (environment::tab_precedes_field): New member.
5892 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
5894 * ps/ps.c (ps_printer::do_file): New function.
5895 (ps_printer::special): Bind to `file' special.
5896 (ps_printer::do_exec): Set ndefined_styles to 0.
5898 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
5900 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5901 Avoid stripping first character from the start of unrecognized
5902 escapes. Use lex_error instead of error to report errors.
5903 * eqn/lex.c (get_token): Rework handling of escapes.
5904 (lex_error): Move declaration into...
5907 * xditview/xditview.c (main): Make -page option work.
5909 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5911 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
5913 * macros/tmac.s (B2): Correct size of box.
5915 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
5917 * macros/tmac.s (B2): Postpone drawing the box until in the
5918 top-level diversion.
5920 * tty/tmac.tty: Add font translations for C, CR, CW.
5922 * groff.c (synopsis, help): Document -i.
5923 * groff.sh: Implement -i.
5925 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5926 Simplify the construction of SN.
5928 * troff/number.c (parse_term): Give `|' a higher precedence.
5929 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5932 * macros/tmac.s (B2): Use par@finish instead of par@reset.
5934 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
5936 * lib/string.c (string::move): New function.
5937 * lib/stringclass.h: Declare it.
5939 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
5941 * troff/env.c (distribute_space): Add optional argument
5943 (environment::wrap_up_field): Call distribute_space with
5944 `force_forward' argument of 1.
5946 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
5948 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5949 Inline it. Move reallocation into...
5950 (string::grow1): New function.
5951 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5952 dependencies to include library header files.
5953 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5955 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
5957 * macros/tmac.s (@NH): Use the same number registers than -ms does
5958 for the heading level counters. Use the same string that -ms does
5959 for the number for this heading.
5961 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
5963 * lib/new.c (operator new): Cast result of malloc to char *.
5965 * troff/input.c (spring_trap, lookup_request): Add assert that nm
5968 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
5970 * groff.c (main): Support -i.
5972 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
5974 * pic/pic.h: Include <osfcn.h>.
5976 * ps/ps.c: Add declaration of mktemp.
5978 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5979 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5980 argument as union wait *.
5981 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5982 argument to union wait *.
5984 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
5986 * tty/tmac.tty: Add definition of \(co.
5988 * pic/object.c (make_arc): Only increase radius when radius
5989 strictly less than d.
5990 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5993 * troff/env.c (environment::environment(symbol),
5994 environment::environment(const environment *)): Initialize
5997 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
5999 * tbl/main.c (main): Add exit(0).
6001 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
6003 * pic/main.c (main):
6004 * eqn/main.c (main):
6005 * tbl/main.c (main):
6006 * etc/soelim.c (main):
6007 * driver/printer.c (printer::~printer):
6008 * troff/node.c (real_output_file::~real_output_file,
6009 real_output_file::flush): Check for errors on stdout.
6011 * most files: Add 1991 to copyright notice.
6013 * macros/tmac.s: Don't test \n(.x and \n(.y.
6015 * troff/input.c (token::next): Rename `escape_char' label to
6016 `handle_escape_char' and `normal_char' label to
6017 `handle_normal_char'.
6019 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
6021 * groff.c (main, synopsis, help): Support -a option.
6022 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
6023 to trflags while parsing options.
6025 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
6027 * troff/number.c (parse_term): With `m', `M' and `n' scale
6028 indicators, convert scale factor to hunits before scaling.
6030 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
6032 * lib/font.c (scale_round): Better test for overflow when n is
6035 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
6037 * tbl/main.c (process_format): Add second argument of type
6038 options*. Change callers. Allow opt->tab_char as well as '\t'
6039 between format items.
6041 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
6043 * macros/tmac.an (PD): With no arguments, make sure register PD is
6045 (TH): Call PD with no argument, instead of setting register PD
6048 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
6050 * Version 1.00 released.
6052 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
6054 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
6056 * dvi/devdvi/DESC: Mount CW instead of CR.
6058 * dvi/tmac.dvi: Add definition of \(tm.
6060 * dvi/devdvi/texsy.map: Add lh, and rh.
6061 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
6062 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
6064 * dvi/devdvi/FontMakefile: Generate H from cmss10.
6065 * dvi/devdvi/Makefile: Install H.
6066 * dvi/devdvi/H: New file.
6068 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
6070 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
6073 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
6075 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
6077 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
6079 * macros/tmac.s (@EN): Handle the case where the equation is empty
6080 but the label is not.
6082 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
6084 * troff/groff.h: New warning category WARN_SPACE.
6085 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
6086 WARN_SPACE to warning_table.
6087 (interpolate_macro): Give a warning of type WARN_SPACE if the name
6088 is longer than two characters and is not defined, but the first
6089 two characters do make a defined name.
6091 * PROBLEMS: New file.
6093 * CHANGES: New file.
6094 * README-0.6, README-1.00: Deleted.
6096 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
6097 * xditview/devX75/Makefile: Make devX75-12.
6098 * xditview/devX100/Makefile: Make devX100-12.
6100 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
6101 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
6103 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
6105 * README-0.7: Rename to README-1.00.
6107 * macros/tmac.pic: New file.
6108 * macros/Makefile (install.nobin): Install tmac.pic.
6110 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
6112 * troff/env.c (hyphen_word): Correct the test for whether the
6113 token is a hyphen. Reset npos to 0.
6115 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
6117 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
6119 * macros/tmac.s (ds*common-end): Call par*reset.
6121 (par@reset-indent): Deleted.
6123 * macros/tmac.s (@IP): Divert the label.
6125 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
6127 * xditview/draw.c (setGC): Use a line width of .1m rather than
6128 .04m by default; round rather than truncate value.
6130 * tbl/table.c (class empty_entry): New class.
6131 (empty_entry::empty_entry, empty_entry::line_type): New functions.
6132 (table::add_entry): Represent empty entries by objects of type
6134 (table_entry::line_type): Return -1.
6135 (table::determine_row_type): Ignore entries with line_type 0.
6136 Treat type -1 as non-lines.
6138 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
6140 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
6141 macros/tmac.s: Rename \(-d to \(Sd.
6143 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
6145 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
6146 * xditview/libXdvi/DviChar.c: Likewise.
6147 * dvi/devdvi/texsy.map: Add `<<', `>>'.
6149 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
6151 * troff/div.c (top_level_diversion::begin_page): Call
6152 init_output() if the_output is 0.
6154 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
6156 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
6158 (get_copy): Turn \E into ESCAPE_E.
6159 (token::process, asciify): Handle ESCAPE_E.
6161 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
6163 (DS): Implement `.DS R'.
6165 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
6167 * macros/tmac.s (FS): New macro.
6169 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
6171 * macros/tmac.s (cov*tl-init): Remove after first execution
6172 instead of aliasing to @nop. Call top of page macro explicitly
6173 instead of setting trap; call @init first. Set pg@top as top of
6175 (cov*auto-init): Deleted. Set cov*tl-init instead of
6176 cov*auto-init as top of page trap.
6177 (TL, LP): Do a break instead of calling cov*tl-init.
6178 (cov*print): With RP format but no TL, alias FS and FE to @FS and
6179 @FE; in this case also give a warning and always start another
6180 page. No need to set pg@top here.
6181 (cov*tl-init): Rename to cov*first-page-init.
6183 * macros/tmac.s (RP): Do `.pn 0'.
6184 (cov*tl-init): With RP format don't do `.pn 0'.
6186 * macros/tmac.s (pg@cs-top): Set no space mode.
6188 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
6189 (cov*ab-init): Alias TL, AU and AI to these.
6191 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
6193 * macros/tmac.s (@EQ): Move the space before the equation into @EN
6194 (@EN): Do nothing unless \n[dl] is > 0.
6196 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
6198 * pic/object.c (ellipse_object::radius): New function.
6200 * VERSION: Change version to 0.7.
6202 * tbl/table.c (block_entry::do_divert): Declare return type as
6204 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
6206 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
6208 * troff/column.c: New file.
6209 * troff/Makefile: Corresponding changes.
6211 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
6214 * troff/div.c (top_level_diversion::space): If the space causes
6215 the first-page transition and springs a trap, truncate the space
6218 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
6220 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
6223 * pic/troff.c (troff_output::line_thickness,
6224 troff_output::set_fill): Do a horizontal motion to compensate for
6225 the width of the \D escape sequence.
6227 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
6229 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
6232 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
6235 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
6236 Supply empty definition.
6237 (text_entry::simple_print, simple_text_entry::simple_print):
6238 Delete declarations.
6239 (table::add_entry): Represent empty entries by objects of type
6242 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
6244 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
6246 * tbl/table.c (left_text_entry::add_tab): New function.
6248 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
6251 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
6253 * troff/env.c (environment::start_field): Give an error message if
6254 there is no next tab.
6256 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
6258 * troff/env.c (hyphenate): Skip initial elements with zero
6261 * macros/tmac.s (par@init): Keep VS in points rather than units.
6263 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
6265 * pic/main.c (main): Implement `-c' option.
6266 * pic/output.h: Declare make_tpic_output().
6267 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
6269 (tpic_output): New class.
6270 (tpic_output::tpic_output, tpic_output::set_pen_size,
6271 tpic_output::command, make_tpic_output): New functions.
6273 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
6275 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
6276 if they're not already defined.
6277 * tbl/table.c (init_output): Don't test \n(.g.
6279 * troff/input.c (do_if_request): Delete `g' condition. Recognize
6280 `d', `r' and `c' conditions even in compatibility mode.
6282 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
6284 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
6287 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
6289 * troff/env.h (environment::prev_line_interrupted): New member.
6290 (environment::get_prev_line_interrupted): New function.
6291 * troff/env.c (environment::newline): Set prev_line_interrupted.
6292 (environment::environment(const environment *),
6293 environment::environment(symbol)): Initialize
6294 prev_line_interrupted.
6295 * troff/input.c (process_input_stack): Don't give special
6296 treatment to space and newline at the beginning of the line if the
6297 previous line was interrupted.
6299 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
6301 * eqn/eqn.y: Disallow PRIME by itself.
6302 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
6304 (def_table): Remove definition of '. Define prime to be `.
6306 * eqn/eqn.y: Split off part of rule `script' into a new rule
6309 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
6311 * macros/tmac.s ({, }): New string aliases.
6313 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
6315 * README-0.7: New file.
6317 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
6319 * macros/tmac.s: New file.
6320 * man/groff_ms.man: New file.
6321 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
6322 * Makefile.bd: Similarily.
6323 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
6324 definition of TMAC_S.
6325 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
6326 * macros/TODO: New file.
6328 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
6330 * troff/env.c (right_justify): New function.
6331 (init_env_requests): Bind this to request "rj".
6332 (center_lines): Set right_justify_lines to 0. If we get a bad
6333 integer, center 1 line.
6334 (environment::environment(symbol), environment::environment(const
6335 environment *)): Initialize right_justify_lines.
6336 (environment::get_right_justify_lines): New function.
6337 (init_env_requests): Bind this to number_register ".rj".
6339 * troff/env.c (environment::choose_breakpoint): Implement
6340 hyphenation_margin and hyphenation_space.
6341 (environment::get_hyphenation_space,
6342 environment::get_hyphenation_margin): New functions.
6343 (init_env_requests): Bind these to .hys and .hym.
6344 (hyphenation_space_request, hyphenation_margin_request): New
6346 (init_env_requests): Bind these to hys and hym.
6347 (environment::environment(symbol), environment::environment(const
6348 environment *)): Initialize hyphenation_margin and
6350 * troff/env.h: Corresponding changes to class environment.
6352 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
6354 * troff/div.c (blank_line): Always do a break.
6356 * eqn/box.c (do_text): Turn off escapes while appending text to
6359 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
6361 * troff/input.c (while_break_request, while_continue_request): New
6363 (init_input_requests): Bind these to "break" and "continue".
6364 (while_depth, while_break_flag): New variables.
6365 (while_request): Update while_depth. Break out of loop if
6366 while_break_flag is set.
6368 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
6370 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
6373 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
6375 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
6377 * stringify: New file.
6378 * Makefile (groff.o): Use stringify.
6380 * xditview/tmac.X: Remove definition of \(rn.
6381 * xditview/libXdvi/DviChar.c: Remove radicalex from
6384 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
6386 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
6387 (alphabetic_block_entry::alphabetic_block_entry,
6388 alphabetic_block_entry::divert, alphabetic_block_entry::print):
6390 (block_entry::divert): Split off body into ...
6391 (block_entry::do_divert): If the block is alphabetic, subtract 2n
6392 from the line length; also update the span width to dl+2n, and the
6393 alphabetic span width to dl.
6395 * driver/input.c (do_file): While reading argument to D command,
6396 when expanding buffer, multiply szp by sizeof(int) rather than 2
6397 in the argument to memcpy.
6399 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
6400 width of alphabetic columns.
6402 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
6404 * troff/node.c (lookup_family): Supply second argument to lookup.
6406 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
6407 search, return immediately if v is 0.
6409 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
6410 (troff_output::start_picture): Set this reg.
6411 (troff_output::end_picture): Remove this reg
6412 * eqn/box.c (box::extra_space): Don't produce `\x's if
6413 EQN_NO_EXTRA_SPACE_REG is defined.
6415 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
6416 * eqn/text.c (split_text): Map ' to \(fm when it's the first
6419 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
6421 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
6424 * troff/div.c (top_level_diversion::top_level_diversion):
6425 Initialize page_number to 0.
6427 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
6429 * groff/troff (environment::environment(const environment *)):
6430 Initialize name to e->name, rather than "anonymous".
6432 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
6434 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
6435 requested_page. Split middle part into ...
6436 (FindPage): New function.
6437 (SetValues): If we don't yet know the last page, and the requested
6438 page is greater than the current page, call FindPage.
6439 Update the font_map_string before doing this.
6441 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6442 Translate \(lh and \(rh into left and right double arrows.
6444 * troff/node.c (class hyphen_inhibitor_node): New class.
6445 (hyphen_inhibitor_node::hyphen_inhibitor_node,
6446 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6447 hyphen_inhibitor_node::type,
6448 hyphen_inhibitor_node::get_hyphenation_type): New functions.
6449 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6450 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6453 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
6455 * troff/node.h (dummy_node::get_hyphenation_type,
6456 transparent_dummy_node::get_hyphenation_type): Declare them.
6457 * troff/node.c: (dummy_node::get_hyphenation_type,
6458 transparent_dummy_node::get_hyphenation_type): New functions.
6460 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
6462 * xditview/libXdvi/draw.c: If M_PI not defined after including
6463 math.h, then define it.
6465 * xditview/Makefile: Add definition of AR. Pass it to the submake
6467 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6469 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
6471 * troff/dictionary.h (object_dictionary::alias): Declare return
6473 * troff/dictionary.c (object_dictionary::alias): Return non-zero
6474 if the old name was defined.
6475 * troff/input.c (alias_macro): Give a warning if the old name was
6477 * troff/reg.c (alias_reg): Likewise.
6479 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
6481 * troff/input.c (token::next): Delete implementation of \R.
6483 * macros/Makefile: Strip comments from tmac.e while installing it.
6485 * troff/input.c: New variable `nroff_mode'.
6486 (troff_request, nroff_request): New functions.
6487 (init_input_requests): Bind `troff' and `nroff' to troff_request
6489 (do_if_request): Compute results of t and n conditions from
6492 * text/text.c (split_text): Fix typo in >=.
6494 * eqn/lex.c: Add definition of `==' to def_table.
6496 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
6498 * pic/tex.c (tex_output::start_picture): Change the definitions of
6499 \graph and \graphtemp so that they work properly with Plain TeX.
6501 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6502 argument to `ar' is not less than the first.
6504 * pic/pic.y: Allow a comma between elements of the variable list
6505 in the argument to `reset'.
6507 * pic/object.c (arc_object::arc_object): Fix computation of
6510 * eqn/main.c (main): Add exit(0).
6512 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
6514 * troff/div.c (begin_page): Test no_space_mode after doing the
6515 break, but still push the page ejector cookie before doing the
6516 break. Also set the next page number after doing the break.
6518 * xditview/xditview.c (NewFile): Don't set the title and icon name
6519 if this is the first file and its name is `-'.
6520 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
6521 the X75 and X100 devices.
6522 (main): If a device has the XT_OPTION flag set and there's exactly
6523 one file argument, pass the driver -xrm and -title options to set
6524 the icon name and window title to the name of the file.
6526 * troff/env.c (environment_switch): If there was an argument but
6527 it wasn't a valid number or name, then pop an environment but
6528 don't give an error message on underflow.
6530 * troff/number.c (start_number): Correct spelling in error message.
6532 * troff/input.c (token::delimiter): Don't print an error message
6535 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6536 ParseDrawFunction if dw->display_enable is true.
6538 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
6540 * pic/pic.y: Parse text positioning like normal attributes, so as
6541 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
6542 positioning attribute.
6544 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
6546 * tbl/main.c (process_data): When in state START while reading a
6547 text block, don't change to state MIDDLE if c is a newline.
6549 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
6551 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6552 so as to avoid shadowing parameter.
6554 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
6556 * tbl/table.c (trim_space): Deleted.
6557 (table::add_entry): Don't call trim_space.
6559 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
6561 * VERSION: Change version to 0.6.
6563 * troff/number.c (parse_expr): Make == work.
6565 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
6567 * man/grog.man: New file.
6568 * man/Makefile: Add grog.n to MAN1PAGES.
6569 * etc/grog.sh: New file.
6570 * etc/Makefile: Install grog.sh as grog.
6572 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
6574 * troff/input.c (token::next): Implement \E.
6576 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
6578 * xditview/tmac.X: Change font translations to match tmac.ps.
6580 * troff/input.c (non_empty_name_warning): Don't give a warning if
6581 `\{' terminates the name.
6583 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
6585 * ps/devps/symbol.diff: New file.
6586 * ps/devps/FontMakefile: Mention symbol.diff.
6588 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
6590 * troff/node.c (font_position): Use get_long_name to read the
6593 * troff/env.c (environment_switch): If we get a number that's < 0
6594 or >= NENVIRONMENTS, treat it like a name.
6595 Change NENVIRONMENTS to 10.
6597 * troff/groff.h: Remove definition of FONTS_MAX.
6598 * troff/node.h (class font_family): Make map a pointer instead of
6599 an array. Add a map_size member. Make it a class. Make nm const
6600 and public. Make invalidate_fontno a friend.
6601 * troff/node.c: Define font_table_size. Make font_info a pointer
6602 rather than an array.
6603 (class troff_output_file): Allocate font_position dynamically. Add
6604 nfont_positions member.
6605 (troff_output_file::set_font): Grow font_position if necessary.
6606 (troff_output_file::~troff_output_file): Delete font_position.
6607 (troff_output_file::troff_output_file): Allocate font_position.
6608 (grow_font_table): New function.
6609 (troff_output_file::really_begin_page,
6610 troff_output_file:really_copy_page): Use nfont_positions rather
6612 (mount_font_no_translate, mount_style): Call grow_font_table if
6614 (font_family::font_family): Allocate map.
6615 (font_family::make_definite): Grow map if necessary. Use
6616 font_table_size instead of FONTS_MAX.
6617 (font_family::~font_family): New function.
6618 (invalidate_fontno): Use font_family::map_size.
6619 (get_fontno, env_space_width, env_half_narrow_space_width,
6620 env_narrow_space_width, symbol_fotno, is_good_fontno,
6621 get_bold_fontno, make_glyph_node): Use font_table_size rather than
6623 (next_available_font_position): Never return 0.
6625 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
6627 * ps/tmac.ps: Add font translations for compatibility with dpost.
6629 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
6631 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6632 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6633 Move definitions baseline_sep, shift_down, column_sep,
6634 matrix_side_sep into...
6635 * eqn/box.c: Add them to param_table.
6636 * eqn/pbox.h: Add declarations to pbox.h.
6638 * troff/input.c (set_string): Cast value to unsigned char *.
6640 * troff/token.h (process_input_stack): Declare it static before
6641 declaring it a friend.
6643 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
6645 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6647 * dvi/devdvi/EX: Regenerate.
6649 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6652 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
6654 * eqn/lex.c: In defaults_table, make definition of `dot' call
6655 `dot_def'. Don't explicitly make it roman. Similarily for other
6658 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6660 (for_input::get, for_input::peek): Use this.
6661 (do_for): Add by_is_multiplicative argument.
6662 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6663 Change semantic value of optional_by to be a double plus a flag
6664 saying whethet the by clause is multiplicative.
6666 * eqn/lex.c (get_delimited_text): Remember location of start of
6667 definition. Improve error handling when EOF is encountered.
6669 * lib/font.h: Rename handle_x_command to
6670 handle_unknown_font_command.
6671 * lib/font.c (font::load): Call handle_unknown_font_command for
6672 any unknown command in the font description file. Don't call
6673 handle_x_command. Include the name of the command in the argv.
6674 Improve message for unknown command after kernpairs or charset
6676 * ps/ps.c (ps_font::handle_x_command): Rename to
6677 handle_unknown_font_command. Remove message about `x download'
6678 command. Give error message for wrong number of arguments.
6679 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6680 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6681 handle_unknown_font_command. Give an error message for wrong
6682 number of arguments. Rename design_size to designsize.
6683 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6684 checksum', `designsize' instead of `design_size'.
6686 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
6688 * eqn/*.[chy]: Change underaccent to uaccent.
6690 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
6691 give it the same precedence as ACCENT.
6692 * eqn/other.c (make_underaccent_box): New function.
6693 * eqn/box.h: Declare it.
6694 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6697 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
6699 * pic/pic.y (reset_all): New function. Called in rule for RESET.
6700 (parse_init): Call reset_all.
6701 (define_variable): When defining scale reset only those
6702 pre-defined variables that are scaled.
6703 (defaults_table): Add `scale' as non-scaled value.
6705 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6706 together with the text; allow any number of positioning words;
6707 allow center as a positioning word.
6709 * pic/object.c (output::compute_scale): Get picture maximum height
6710 and width from variables called maxpswid and maxpsht.
6711 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6713 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
6715 * pic/object.c (object_spec::make_text): Multiply textht by number
6718 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6720 (do_sprintf): New function.
6721 (pic.gperf): Add sprintf token.
6722 (text, sprintf): New rules.
6724 * pic/pic.y: `rand()' with no arguments returns a random number
6727 * pic/pic.y: Allow a bare expression to be an attribute: change
6728 precedences to support this. Change optional_ordinal rule to
6729 optional_ordinal_last to avoid reduce/reduce conflict.
6730 * pic/object.c (object_spec::object_spec): Initialize direction.
6732 * pic/pic.y: Implement ^ operator meaning exponentiation.
6734 * troff/node.h: Add default argument to mount_font.
6735 * troff/node.c (font_position): Read an optional third argument
6736 giving the external_name.
6737 (mount_font): Add optional argument giving the external_name.
6738 (mount_font_not_translate): Have additional argument giving
6739 external name. Use this name to load the font. Pass both names
6740 to font_info::font_info.
6741 (font_info::font_info): Have additional argument giving
6743 (class tfont): New member external_name.
6744 (font_info::get_tfont): Use external name to construct tfont_spec.
6746 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
6748 * eqn/lex.c (init_table): Add argument giving device. Define
6749 name of device to be "1".
6750 (do_ifdef): Counts as true if the argument has been defined with
6752 * eqn/main.c (main): Call init_table with device argument. Make
6753 device local to main.
6754 * eqn/eqn.h: Change declaration of init_table. Remove declaration
6757 * pic/lex.c (get_delimited): Allow text to be delimited by
6758 matching {}s. Don't recognize ending delimiter within a string.
6760 * troff/input.c (get_delim_name): New function.
6761 (token::next): Implement \C.
6763 * lib/font.c (font::load): Grok ---. Add an alias for each
6764 character based on its code.
6765 (font::get_code_width): Deleted.
6766 * lib/font.h (class font): Declare font::number_to_index().
6767 Remove declaration of font::get_code_width.
6768 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6769 to indices of named characters.
6770 (font::number_to_index): New function.
6771 * troff/input.c (font::number_to_index): New function.
6772 (get_charinfo_by_number, charinfo::get_number,
6773 charinfo::set_number): New functions.
6774 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6775 (token::process, token::description, token::get_char,
6776 token::add_to_node_list, token::operator==): Handle
6777 TOKEN_NUMBERED_CHAR.
6778 * troff/charinfo.h: Declare get_charinfo_by_number,
6779 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
6781 (charinfo::numbered): New function.
6782 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6783 * troff/env.h (class environment): Remove declaration of ...
6784 * troff/env.c (environment::make_numbered_char_node): Deleted.
6785 * troff/node.c (make_numbered_node): Deleted.
6786 (class numbered_glyph_node): Remove.
6787 (troff_output_file::put_char_width, troff_output_file::put_char):
6788 Handle numbered chars.
6789 (troff_output_file::numbered_char): Removed.
6790 (tfont::get_code_width): Removed.
6791 (make_glyph_node): Don't search special fonts for numbered
6793 * troff/node.h: Remove declaration of make_numbered_node.
6794 * driver/input.c (do_file): Handle N command.
6795 * driver/printer.h: Add declaration of ...
6796 * driver/printer.c (printer::set_numbered_char): New function.
6797 * dvi/tfmtodit.c (main): Generate unnamed entries.
6798 * ps/devps/afmtodit: Likewise.
6799 * xditview/xtotroff.c (MapFont): Likewise.
6800 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6802 * tbl/main.c (process_format): If multiple widths are specified
6803 for a column but all the widths are the same, don't give an error
6806 * tbl/table.c (table::do_row): If the current row is all lines and
6807 the stuff doesn't contains a line, mark the top of the row after
6808 printing stuff before the row. If the current row is not all
6809 lines and the stuff doesn't contain a line, don't unnecessarily
6810 mark the top of the row before printing the stuff.
6812 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
6814 * troff/groff.h: Remove MAX_PATH.
6815 * troff/input.c (open_file): Dynamically allocate space for the
6817 (open_mac_file, process_macro_file): Corresponding changes.
6819 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
6821 * troff/node.h (class output_file): Make copy_file pure. Add
6822 vspace method ifdef COLUMN. Add is_printing method.
6823 * troff/node.c: Add class printing_reg. Add class
6824 real_output_file. Derive other output_file classes from
6825 real_output_file; in these classes rename begin_page to
6826 really_begin_page, print_line to really_print_line, copy_file to
6827 really_copy_file, transparent_char to really_transparent_char.
6828 Move output_file::flush to real_output_file. Add printing member
6829 to class output_file.
6830 * troff/div.h: Remove printing member from top_level_diversion.
6831 Add vspace member function to class diversion ifdef COLUMN. Add
6832 some declarations ifdef COLUMN.
6833 * troff/div.c (top_level_diversion::copy_file,
6834 top_level_diversion::transparent_output,
6835 top_level_diversion::output): Don't test printing member before
6837 * troff/input.c: Handle initial variable_space_request ifdef
6839 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6842 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
6844 * troff/div.c (diversion::need): Make any space forced. If we
6845 sprung a trap, set truncated_space to minus the distance to the
6846 trap and set needed_space to the amount that was needed.
6847 (top_level_diversion::space): A forced space turns no_space_mode
6849 (class constant_vunits_reg): New class.
6850 (init_div_requests): Implement number registers .trunc and .ne
6851 using constant_vunits_reg.
6852 (class truncated_space_reg): Deleted.
6854 * troff/div.h: Don't have a no_space_mode member in diversion.
6855 Instead have it in top_level_diversion.
6856 * troff/div.c (diversion::diversion): Don't initialize
6858 (top_level_diversion::top_level_diversion): Initialize
6860 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6861 (macro_diversion::output): Don't clear no_space_mode.
6863 * troff/input.c (diverted_space_node::reread): Don't call
6864 environment::do_break. In fill mode, act like a blank line.
6865 (diverted_copy_file_node::reread): Don't call
6866 environment::do_break.
6868 * troff/div.c (blank_line): New function.
6869 * troff/div.h: Declare it.
6870 * troff/input.c (process_input_stack): Call it.
6872 * troff/div.c (truncated_space_reg::get_string): New function.
6873 (init_div_requests): Bind to .trunc.
6874 (space_request, top_level_diversion::space,
6875 top_level_diversion::output, macro_diversion::space,
6876 macro_diversion::output): Update truncated_space.
6877 (macro_diversion::output): Redo calculations when trap sprung.
6878 (macro_diversion::output, macro_diversion::space): No need for
6881 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6882 after truncating post line spacing.
6884 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
6886 * ps/devps/prologue (MF, SF): Make them work even if setfont is
6887 defined as a procedure rather than as an operator.
6889 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
6891 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6893 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
6895 * troff/div.c (top_level_diversion::output): Merge
6896 output_file::print_line and output_file::end_of_line member
6898 * troff/div.h (class output_file):
6899 * troff/node.c (troff_output_file::print_line,
6900 troff_output_file::end_of_line, output_file::end_of_line,
6901 ascii_output_file::print_line, suppress_output_file::print_line):
6902 Corresponding changes.
6904 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
6906 * troff/input.c (token::next): Don't give a warning for `\.'.
6908 * troff/env.c (environment::get_center_lines): New function.
6909 (init_env_requests): Bind number register .ce to it.
6910 * troff/env.h: Declare it.
6911 * tbl/table.c (table::init_output): Define reset macro to restore
6912 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
6914 (table::print): If center option not given, then imply center
6915 option if SAVED_CENTER_REG > 0.
6917 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
6919 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6920 Troff.ps from DOWNLOAD.
6922 * troff/Makefile: Change comment in DEFINES to avoid confusing
6925 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6926 code. Don't try to catch errors with stopped.
6927 (check_line_lengths): New function.
6928 * ps/devps/prologue (EXEC): Deleted.
6929 (EBEGIN, EEND): New procedures.
6931 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
6933 * troff/input.c: Include request.h before node.h.
6934 * troff/node.c: Likewise.
6935 * troff/env.c: Likewise.
6936 * troff/div.c: Likewise.
6937 * troff/node.h (class special_node): Store argument as a macro
6938 rather than a char *.
6939 * troff/node.c (special_node::special_node, special_node::copy):
6941 (special_node::~special_node): Deleted.
6942 (special_node::tprint): Deleted.
6943 (special_node::tprint_start, special_node::tprint_end,
6944 special_node::tprint_char): New functions.
6945 (troff_output_file::special): Deleted.
6946 (troff_output_file::start_special, troff_output_file::end_special,
6947 troff_output_file::special_char): New functions.
6948 * troff/input.c (special_node::tprint): New function.
6949 (do_special): Use macro not char *.
6950 (do_transparent_macro): Deleted.
6951 (token::next): Don't call do_transparent_macro.
6953 * troff/input.c (token::next): Add 'Y' case.
6954 (do_transparent_macro): New function.
6955 * troff/node.c (troff_output_file::special): Handle newlines with
6956 argument using new continuation convention.
6957 * driver/input.c (get_string): Cope with continuation convention.
6958 (do_file): Don't call skip_line after calling get_string(1).
6959 * ps/ps.c (ps_printer::special, ps_printer::do_import,
6960 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6962 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6965 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
6967 * troff/input.c (asciify): By default, illegal input characters
6968 should return empty string.
6970 * troff/input.c (copy_file): Handle first page transition like title.
6971 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6973 * troff/input.c (token::next): Improve error message for EOF after
6975 (input_char_description): New function.
6976 (get_char_for_escape_name): Use input_char_description.
6977 (token::next): Warn about unrecognized escape sequences.
6978 (warning_table): Add WARN_ESCAPE.
6979 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6982 * troff/token.h: Remove declaration of process_input_stack.
6984 * troff/input.c: Remove declaration of init_hyphen_requests.
6985 * troff/request.h: Correct spelling in declaration of same.
6987 * troff/input.c (token::next): Check whether escape_char is 0.
6989 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
6991 * groff.c (main, usage, help): Implement -P and -L options.
6992 * groff.sh: Likewise.
6994 * troff/input.c (token::next): Use some gotos to avoid code
6997 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6998 Avoid calling symbol::symbol if name empty.
7000 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
7002 * troff/input.c (init_input_requests): Make \n(.x return the major
7003 version number and \n(.y return the minor version number.
7004 * troff/Makefile: Construct file majorminor.c defining
7005 major_version and minor_version automatically from ../VERSION.
7007 * troff/node.c (class glyph_node): Make operator new and operator
7009 (class ligature_node): Similarily.
7011 * troff/input.c (operator==(const macro &, const macro &)): New
7013 (non_interpreted_node::same): Use this.
7014 (string_iterator::string_iterator): Make macro& argument const.
7016 * troff/input.c (input_iterator::get): New function. Don't make
7017 asciify_macro or class non_interpreted_node friends of class
7019 (non_interpreted_node::interpret): Use input_iterator::get.
7020 (asciify_macro): Likewise.
7022 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
7023 ~non_interpreted_node): Deleted.
7024 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
7027 * troff/symbol.h: Make all symbol member functions const.
7029 * lib/strtol.c: New file.
7030 * lib/Makefile: Add strtol.c.
7031 * Makefile: Define STRTOL as strtol.o to include strtol in
7034 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
7036 * pic/troff.c (troff_output::simple_circle): Divide by scale.
7038 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
7040 * troff/input.c (do_special): Use input_level.
7042 * troff/token.h (TOKEN_BACKSPACE): New token.
7043 (token::backspace): New function.
7044 * troff/input.c (token::description, token::next, token::process):
7045 Grok TOKEN_BACKSPACE.
7046 (do_special): Turn TOKEN_BACKSPACE back into \b.
7048 * troff/token.h (token::leader): New function.
7049 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
7051 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
7053 * troff/input.c (do_special): Use token::description in error
7056 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
7058 * troff/input.c (decode_args): Combine quoted and
7059 quote_input_level variables. Make it a for (;;) loop.
7061 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
7063 * troff/input.c (read_long_escape_name): The test for whether to
7064 expand buffer was off by 1.
7065 (read_string): Similarily.
7067 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
7069 * troff/input.c: Use `const int' rather than `static const int'.
7071 * troff/div.h (diversion::copy_file): Declare as pure virtual.
7072 (macro_diversion::copy_file): New function.
7073 * troff/node.h: New class diverted_copy_file_node.
7074 * troff/node.c: Implement it.
7075 * troff/input.c (copy_file): Use diversion::copy_file. Handle
7076 first page transition by pushing a diverted_copy_file_node.
7077 * troff/input.c (token::next, process_input_stack): Don't handle
7080 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
7082 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
7083 whether space widths need adjusting.
7085 * troff/charinfo.h: Generalize translated_to_space to
7086 special_translation so as to allow translation to \&.
7087 * troff/input.c (translate): Allow translation to \&.
7088 (charinfo::*): Corresponding changes.
7089 * troff/node.c (make_node, node::add_char): Corresponding changes.
7090 * troff/node.h (dummy_node::dummy_node): Allow optional first
7093 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
7094 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
7096 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
7097 TOKEN_REQUEST with an argument of TITLE_REQUEST.
7098 (token::process): Grok that.
7099 * troff/input.c (copy_file): Handle first page transition like
7100 title by pushing a COPY_FILE_REQUEST cookie.
7101 (token::next, process_input_stack): Grok that.
7102 * troff/node.h (output_file::copy_file): Add x and y arguments.
7104 * troff/div.c (top_level_diversion::copy_file): Supply them.
7105 * troff/node.c (troff_output_file::copy_file): Add x and y
7106 arguments; moveto specified position. Invalidate font_position
7107 array after copying file.
7108 (output_file::copy_file): New function.
7109 (suppressed_output_file::copy_file, ascii_output::copy_file):
7111 * troff/input.c (transparent_file): New function.
7112 (init_input_requests): Bind to "trf".
7113 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
7114 (process_input_stack): Likewise.
7116 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
7118 * troff/node.c (init_node_requests): New number registers .kern
7119 pointing to global_kern_mode, and .lg pointing to
7120 global_ligature_mode.
7122 * troff/node.c (ligature): Don't change it if we get a bad
7125 * troff/input.c (do_define_string): Don't strip tabs.
7127 * troff/input.c (asciify_macro): Make the string_iterator auto.
7129 * troff/node.c (init_font_requests): Rename to...
7130 (init_node_requests):
7131 * troff/node.h: Change declaration.
7132 * troff/input.c (main): Change call.
7134 * troff/input.c (node::reread, diverted_space_node::reread): New
7136 (process_input_stack): Call reread rather than
7137 get_diverted_space_node.
7138 * troff/node.c (node::get_diverted_space_node,
7139 diverted_space_node::get_diverted_space_node): Removed.
7140 * troff/node.h: Declare reread methods instead of
7141 get_diverted_space_node methods. Make `n' member private.
7142 * troff/input.c: (token::diverted_space): Removed.
7143 * troff/token.h: Removed declaration.
7146 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
7148 * eqn/script.c (script_box::compute_metrics): Don't let
7149 SUP_RAISE_FORMAT become negative.
7151 * tbl/table.c (table::do_row): Entries that don't end in the
7152 this row shouldn't make the row non-blank.
7154 * tbl/table.c (table::make_columns_equal): Only set the width of
7155 columns which are marked as equal.
7157 * tbl/main.c (process_data): Before issuing excess data error,
7158 if last character was a newline unget it; then get it again after
7159 the error. Also include the contents of the entry in the message.
7161 * groff.c: New file.
7162 * Makefile: Build groff from groff.c. Make it possible to use
7163 either groff.sh or groff.c as groff.
7164 * Makefile.bd: Similarily.
7166 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
7168 * groff.sh: Don't delay expansion of $@ in assignment to files.
7169 Remove occurrences of \".
7171 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
7173 * all Makefiles: Simplify and rearrange.
7175 * Makefile: Handle fmod like malloc.
7176 * lib/Makefile: Similarily.
7177 * lib/fmod.c: Remove #ifdef NEED_FMOD.
7179 * Makefile: Rename OPTIMISE to OPTIMIZE.
7181 * groff.sh: Remove assignment to PATH.
7182 * Makefile: Remove SHPATH variable.
7183 * Makefile.bd: Similarily.
7185 * groff.sh: Add -V option to print the pipeline instead of
7188 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
7190 * lib/font.c: Split off file searching into ...
7191 * lib/fontfile.c: New file.
7193 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
7195 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
7197 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
7198 Also change misleading comment.
7199 (table::do_vspan): Change similarily misleading comment.
7200 * tbl/main.c (process_data): A format row with an explicit `s'
7201 uses up a data line, even if all the other columns are `_' or `='.
7203 * troff/input.c (token::description): Fix description of
7204 TOKEN_DUMMY and TOKEN_EMPTY.
7206 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
7208 * groff.sh: Fix description of -Z in help message.
7210 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
7212 * pic/object.c (object_spec::make_object): Allow negative and zero
7214 * pic/pic.y: Give linethick default value of -1.0.
7215 * pic/troff.c (troff_output::troff_output): Initialize
7216 last_line_thickness to BAD_THICKNESS.
7217 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
7218 (troff_output::line_thickness): Canonicalize negative thicknesses
7219 to RELATIVE_THICKNESS.
7220 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
7221 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
7223 (tex_output::start_picture): Set pen_size to -2.0.
7225 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
7226 0, then use 0 linewidth.
7227 (ps_printer::ps_printer): Initialize line_thickness to -1.
7229 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
7231 * ps/devps/symbolchars: Remove `or'.
7232 * ps/tmac.ps: Implement \(or with .char.
7234 * ps/devps/symbolchars: Move most characters into textmap.
7235 * ps/devps/textmap: Add names for troff bracket characters. Remove
7238 * ps/devps/TSymbol.ps: Removed.
7239 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
7240 * ps/tmac.ps: Do with .char what TSymbol did.
7241 * ps/devps/download: Remove TSymbol.
7243 * ps/devps/T: Removed.
7244 * ps/devps/Troff.ps: Removed.
7245 * ps/devps/Troff.afm: Removed.
7246 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
7247 * ps/devps/download: Remove Troff.
7248 * ps/devps/FontMakefile: Remove T target.
7249 * ps/devps/DESC-A4: Remove T from font list.
7250 * ps/devps/DESC-letter: Likewise.
7252 * troff/input.c (macro_to_node): Rename to ...
7253 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
7254 character's definition while processing it.
7255 * troff/node.c (node::add_char, make_node): Change calls to
7256 macro_to_node accordingly.
7258 * troff/input.c (token::next): Translate \_ to \(ul.
7260 * tty/devascii/R.proto: Add `|'.
7261 * tty/devlatin1/R.proto: Likewise.
7263 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
7265 * man: Put the version number in all the man pages.
7267 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
7269 * Makefile.bd: New file.
7270 * README.bd: New file.
7272 * VERSION: New file.
7273 * lib/version.c: Removed.
7274 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
7277 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
7278 environment variable.
7280 * all Makefiles: Split install target into install.bin for
7281 binaries, and install.nobin for everything else.
7282 * Makefile: Add bindist target.
7284 * man/afmtodit.man: New file.
7285 * man/Makefile: Add afmtodit.n to MAN1PAGES.
7286 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
7288 * ps/Makefile: Pass BINDIR to make install in devps.
7290 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
7291 the space character.
7293 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
7295 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
7297 * ps/ps.c: Redo font downloading.
7298 * ps/devps/download: New file.
7299 * ps/devps/Makefile: Add download to DEVICEFILES.
7300 * ps/devps/afmtodit: Remove -d option.
7301 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
7302 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
7303 * ps/devps/zapfdr.ps: Likewise.
7304 * ps/devps/TSymbol.ps: Likewise.
7306 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
7308 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
7310 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
7312 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
7313 then strip the first line if it starts with %.
7314 * Makefile: Add a comment about this.
7316 * man/tfmtodit.man: New file.
7317 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
7318 * dvi/Makefile: Install tfmtodit in BINDIR.
7320 * dvi/tfmtodit.c (usage): Mention -v option.
7322 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
7324 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
7325 * troff/node.c (troff_output_file::transparent_char): Don't call
7328 * eqn: Add check_tabs method to most box classes.
7329 * eqn/box.c (box::top_level): Call check_tabs.
7331 * eqn/script.c (script_box::output): Use \Z.
7332 * eqn/limit.c (limit_box::output): Use \Z.
7334 * eqn/box.c (box::top_level): Use itoa.
7336 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
7338 * dvi/tmac.dvi: Add font translations for CR, C, TT.
7339 * dvi/devdvi/Makefile: Don't make links to CW.
7341 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
7343 * xditview/tmac.X: Likewise.
7345 * troff/node.c: Add font translation feature.
7346 (get_font_translation): New function.
7347 (symbol_fontno): Translate the font name.
7348 (mount_font_no_translate): Rename to mount_font to this.
7349 (mount_font): New function.
7350 (font_family::make_definite): Call mount_font_no_translate instead
7352 (mount_style): Translate the font name.
7353 (font_translate): New function.
7354 (init_font_requests): Bind "ftr" to font_translate.
7356 * ps/devps/prologue (SN): New procedure that rounds a position to
7357 the nearest (pixel + (.25,.25)).
7358 (DL): Use SN to round endpoints.
7360 * lib/version.c: Changed version to 0.5.
7362 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
7364 * Makefile: Move definition of PAGE to the very beginning, so that
7365 people are less likely to miss it.
7367 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
7369 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
7371 * troff/env.c (environment::choose_breakpoint): Make `can't find
7372 breakpoint' error a warning of type WARN_BREAK. Change message to
7374 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
7376 * troff/input.c: Add WARN_BREAK to warning_table. Include
7377 WARN_BREAK in DEFAULT_WARNING_MASK.
7379 * tty/tmac.tty: Add definition of \(+-.
7381 * groff.sh: Remove `--' option to set command.
7383 * dvi/devdvi/texsy.map: Remove duplicate md entry.
7385 * ps/devps/eqnchar: Better definition of cdot using md.
7386 * dvi/devdvi/eqnchar: Likewise.
7387 * xditview/devX100/eqnchar: Likewise.
7388 * xditview/devX75/eqnchar: Likewise.
7389 * eqn/lex.c: Add definition of cdot.
7391 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
7393 * troff/input.c (get_optional_char): New function.
7394 * troff/input.c (set_page_character): Use get_optional_char(),
7395 rather than has_arg() and tok.get_char(1).
7396 * troff/env.c (tab_character, leader_character, hyphen_char,
7397 field_characters): Likewise.
7398 (margin_character): Likewise. Also always delete the
7399 margin_character_node.
7401 * troff/input.c (token::get_char): Use token::description.
7403 * troff/input.c (has_arg): Don't skip over tab and \}.
7404 * troff/number.c (start_number): Give a warning if the number
7405 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
7407 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
7409 * troff/input.c (empty_name_warning, non_empty_name_warning): New
7411 (get_name, get_long_name): Use these. Rename `warn' argument to
7414 * troff/node.c (get_fontno): Test that the symbol is not null.
7416 * troff/input.c (token::description): New function.
7417 * troff/number.c (parse_term): Use token::description in `numeric
7418 expression expected' message.
7419 * troff/groff.h: Add WARN_MISSING.
7420 * troff/number.c (start_number): New function.
7421 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
7422 get_incr_number): Use start_number().
7423 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
7425 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
7426 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
7428 * troff/input.c (token::get_char): Use WARN_MISSING.
7429 * troff/input.c (token::delimiter): Use token::description.
7430 * troff/env.c (environment_switch): Back out Aug 3 change.
7431 * troff/input.c (has_arg): Skip over \}s and tabs but give a
7433 * troff/token.h (token::tab): New function.
7434 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
7435 * troff/reg.c (alter_format): Likewise.
7436 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
7438 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
7440 * troff (most files): Redo warnings. Divide warnings into various
7441 categories; warning() has an additional first argument indicating
7442 the category it falls into.
7443 * troff/input.c (main): -w now takes an argument. New option -W.
7444 (enable_warning, disable_warning): New functions.
7446 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7447 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7449 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
7451 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7452 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7453 * xditview/devX75/eqnchar: Likewise.
7454 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7456 * eqn/other.c: When bar or over applies to a single character
7457 don't produce an overline_box or an underline_box. Instead produce
7458 an accent_box or an underaccent_box, with the accent a line
7459 whose width is accent_width. New classes underaccent_box,
7460 overline_char_box and underline_char_box.
7461 * eqn/box.h: Move overline_box, underline_box, accent_box class
7462 declarations into eqn/other.c. Add declarations of
7463 make_underline_box, make_overline_box, make_accent_box.
7464 * eqn/eqn.y: Call make_overline_box, make_underline_box
7465 make_accent_box instead of constructors.
7466 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7468 * eqn/other.c: Add accent_box::~accent_box.
7469 * eqn/box.h: Declare it.
7471 * groff.sh: With -Tps, use eqn -D.
7473 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7475 (underline_box::output): Similarily.
7476 (accent_box::output): Use \Z.
7478 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7481 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
7483 * troff/div.c (top_level_diversion::transparent_output(unsigned
7484 char)): Use asciify.
7485 * troff/input.c (asciify): Don't make it static.
7486 * troff/token.h (asciify): Declare it.
7488 * troff/input.c (get_name, get_long_name, token::get_char,
7489 token::delimiter): Add an extra default argument which says
7490 whether a warning should be printed.
7491 * troff: Pass a non-zero argument to one of these rather than
7492 printing a warning directly.
7494 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
7496 * troff: Consistently use symbol::is_null.
7498 * troff/dictionary.h: Move some inline functions into
7501 * troff/request.h: Move inline functions into input.c.
7502 (request_or_macro::invoke): Make it pure.
7504 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7505 * troff/input.c (init_input_requests): Use class constant_int_reg.
7506 (class compatible_reg): Deleted.
7507 * troff/div.c (init_div_requests): Use class constant_int_reg.
7508 (class last_post_line_extra_space_reg): Deleted.
7510 * troff/env.c (tab_character): Don't change the tab character if
7511 we get an invalid argument.
7512 (hyphen_char): Similarily.
7514 * troff/reg.c (alter_format): Check that nm is not null.
7516 * Makefile, groff.sh: Make it possible to customize the commands
7517 used for printing PostScript and dvi files. Also make it possible
7518 to customize the path used by groff.sh.
7520 * eqn/eqn.y: Make `left' right associative.
7522 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
7524 * pic/pic.h: Added definition of M_SQRT2 for those systems that
7527 * pic/pic.h: Removed definition of INT_MAX.
7529 * troff/node.c (italic_corrected_node::vertical_extent): Omit
7532 * troff/input.c (token::next): Handle \R like \n.
7534 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
7536 * ps/tmac.pc (PSPIC): Simplify.
7538 * troff/env.c (tab_stops::to_string):
7539 * pic/pic.y (object_type_name):
7540 * pic/troff.c (simple_output::line):
7541 * pic/tex.c (tex_output::spline):
7542 * pic/object.c (object_spec::make_object):
7543 * tbl/main.c (process_data): Add cases to switch statements to
7544 avoid cfront warnings. (Some of these are spurious, since the
7545 switch already has a default case.)
7547 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
7548 `ps-'. Don't test systat; instead check number of arguments to
7551 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
7553 * macros/tmac.e: Do not decrease the page offset by 0.5i.
7555 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7556 Unlink the file as soon as we have opened it, so that we don't
7557 have to bother with signal handlers.
7559 (fatal_error_exit): Deleted.
7560 (main): Don't call signal.
7562 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7564 * dvi/devdvi/Makefile: Use the -k option with S and MI.
7566 * pic/pic.y: If there is a label, or an nth construction before
7567 the first `.' in the argument to `with', ignore it and generate a
7569 * pic/lex.c (lex_warning): New function.
7571 * tbl/table.c (table::init_output): In section keep and release
7572 macro, use 0 indent when diverting and the correct indent when
7575 * troff/input.c (interpolate_number_format): Do not interpolate
7576 anything if the number register is not defined.
7578 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7580 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
7582 * ps/devps/prologue (PICTURE): Set components of graphics state to
7583 their default values.
7585 * ps/devps/text.enc: Add trademark
7586 * ps/devps/textmap: Add names for club, spade, heart, diamond,
7587 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7588 * ps/devps/symbolchars: Add names for summation and product.
7590 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7591 suchthat. Add pp. Add upper-case letters.
7593 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7594 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7597 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7598 rA (right angle bracket) to ra. Introduce names for double-headed
7599 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7600 * ps/devps/textmap: Likewise for ps device.
7601 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7602 * tty/devascii/R.proto: Rename lA to la and rA to ra.
7603 * tty/devascii/R.proto: Likewise.
7604 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7606 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7608 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7610 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7613 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
7615 * troff/div.c (when_request): Use symbol::is_null rather than
7616 has_arg to determine whether we have an argument.
7617 (change_trap): Remove the trap if we get an invalid number. Give
7618 an error if we don't get at least the macro name.
7619 (diversion_trap): Remove trap if we get an invalid name or number.
7621 * troff/env.c (environment_switch): Pop if we get an invalid
7622 symbol or numeric expression.
7624 * troff/input.c (do_define_macro): If EOF is encoutered while
7625 defining the macro, do tok.next() before returning.
7627 * troff/token.h (has_arg): Move definition from here, to ...
7628 * troff/input.c (has_arg): ... here
7630 * troff/env.c (space_size): Do nothing if we get an invalid argument.
7631 * troff/input.c (shift): Likewise.
7633 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
7636 * pic/troff.c (troff_output::start_picture): Comment out calls to
7639 * eqn/main.c (do_file): Subtract 1 from current_lineno if
7640 interpret_lf_args succeeds.
7642 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7643 \\. This avoids problems with \$N.
7645 * groff.sh: Pass -C to preprocessors.
7647 * lib/lf.c (interpret_lf_args): Be more flexible.
7649 * tbl/main.c (main): Add -C option.
7650 (table_input::get): Do not recognize TE if followed by character
7651 other than a space or newline unless -C option given.
7652 (process_input_file): Likewise for lf, TS.
7653 (process_data): Likewise for lf in text blocks.
7655 * eqn/main.c (main): Add -C option.
7656 (do_file): Don't recognize EQ, EN or lf if followed by character
7657 other than space or newline unless -C option given.
7658 * eqn/lex.c (file_input::read_line): Similarily.
7659 * eqn/eqn.h: Declare compatible_flag.
7661 * etc/soelim.c (main): Add -C option.
7662 (interpret_lf_args): Use version in libgroff.
7665 * pic/main.c (main): Add -C option, which sets compatible_flag.
7666 (top_input::get), (top_input::peek): If -C option not given,
7667 do not recognize .PS/.PE/.PF/.lf if followed by a character
7668 other than space or newline.
7669 * pic/lex.c (file_input::read_line): Similarily.
7670 * pic/pic.h: Add declaration of compatible_flag.
7672 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
7674 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7676 * troff/node.c, troff/node.h: Add `asciify' methods to classes
7677 derived from node. New class space_char_hmotion_node.
7678 * troff/input.c (asciify_macro): New function.
7679 * troff/input.c (init_input_requests): New request `asciify' bound
7681 * macros/mm.diff: New file.
7682 * Makefile: In install.mm target use `patch' to apply
7685 * troff/input.c (macro::print_size): Just print the size in bytes.
7687 * troff/div.c (return_request): Correct the argument
7690 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
7692 * troff/node.h (class composite_node): Add sz member.
7693 * troff/node.c (composite_node::size): Return sz.
7694 * troff/input.c (macro_to_node): Use the initial size in the
7695 environment as the size of the composite_node.
7697 * troff/node.c (node::zero_width_tprint): Provide a reasonable
7700 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
7702 * troff/div.c (change_trap): If we get a bad number expression,
7705 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
7707 * lib/matherr.c (matherr): Define this only if math.h defines
7710 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
7712 * troff/div.c (macro_diversion::distance_to_next_trap): If there
7713 no diversion trap return vunits(INT_MAX - vresolution).
7715 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
7717 * troff/input.c (do_zero_width): New implementation that doesn't
7718 use a temporary environment. Use instead:
7719 (token::add_to_node_list): New function.
7720 * troff/env.c (environment::get_prev_char_height),
7721 (environment::get_prev_char_height),
7722 (environment::get_prev_char_skew): New functions.
7723 (environment::get_prev_char): New function.
7724 (environment::get_prev_char_width): Change to use get_prev_char.
7725 (init_env_request): Implement new registers .cht, .cdp, .csk.
7726 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7727 \Z being processed in a separate environment.
7729 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
7731 * tbl/table.c: Removed TABLE_BOTTOM_REG.
7733 * tbl/table.c (table::init_output): In the section release macro,
7734 give a warning message if the section won't fit on one page.
7736 * tbl/table.c (table::do_top): Emit table keep only if table is
7738 (table::do_bottom): Likewise for table release.
7739 (table::table), (table::add_vertical_rule): Remove reference to
7741 * tbl/table.h: Remove keep member.
7743 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7744 SECTION_RELEASE_MACRO, if there's not enough space before the next
7745 trap to output the diversion, call T# ourselves, set
7746 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7747 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
7748 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
7749 vertical position and return to it before turning traps on again.
7751 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
7753 * troff/node.c, troff/node.h: In classes derived from node,
7754 replace prev_char_width method by last_char_node method.
7755 * troff/env.c (environment::get_prev_char_width): Use
7756 node::last_char_node rather than node::get_prev_char_width.
7758 * Makefile: Added comment about -fno-inline on 68030-based
7761 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7762 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7763 expressions using sizeof to int.
7764 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7766 * macros/tmac.e (TS): Don't move @f back past the current
7769 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
7771 * ps/ps.c (main): Buffer stderr.
7772 * dvi/dvi.c (main): Likewise.
7773 * tty/tty.c (main): Likewise.
7775 * ps/ps.c (ps_printer::do_import): Improve error handling.
7777 * troff/input.c (abort_request): Use asciify.
7779 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7780 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7781 type of first argument int rather than char. This works around a
7782 bug on the 68030 based Apollo using g++ 1.37.1.
7784 * tbl/table.h (class table): Add `keep' member.
7785 * tbl/table.c (table::table): Initialize `keep'.
7786 (table::add_vertical_rule): Set `keep' to 1.
7787 (table::do_top): Only emit table keep macro is `keep' is non-zero.
7788 (table::do_bottom): Likewise for table release macro.
7789 (table::do_row): Emit section keep macro even if the row is 0.
7791 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
7793 * macros/tmac.e (@C): Preserve the font family across the change
7796 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
7798 * lib/font.c: Initialize font::hor and font::vert to 1.
7799 (font::load_desc): Check the values of font::hor and font::vert.
7801 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7802 be included in a C compilation.
7803 (iftoa): Use INT_DIGITS. Include lib.h.
7805 (as_string): Likewise.
7806 * tbl/table.c: Removed definition of INT_DIGITS.
7807 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7808 * troff/input.c (input_input_requests): Likewise.
7809 * ps/ps.c (make_encoding_name): Likewise.
7810 (ps_printer::set_style): Likewise.
7811 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7813 * tty/devascii/R.proto: Map fm onto '.
7814 * tty/devlatin1/R.proto: Likewise.
7816 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
7818 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7819 argument to \w is at a different input level.
7821 * tbl/table.c (table::init_output): Define a new macro
7822 REPEATED_VPT_MACRO, like vpt but if in a diversion also
7823 transparently outputs itself.
7824 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7826 (table::do_row): Likewise.
7828 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7829 TRANSPARENT_STRING_NAME.
7831 * tbl/table.c (table::init_output): In the table release macro
7832 print an error message and don't produce any output if after
7833 issuing the need request the table still will not fit. Also
7834 remove the diversion after bringing it back.
7836 * tbl/table.c (table::init_output): Define a new macro
7837 REPEATED_MARK_MACRO, like mk but if in a diversion also
7838 transparently outputs itself.
7839 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7840 is necessary because .TH might not call .T#.
7841 (table::do_top): Likewise TOP_REG.
7842 (table::define_bottom_macro): If TOP_REG is no longer valid, use
7843 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7844 table header might contain just the two top rules.
7846 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
7848 * troff/div.c: Implement new request `ptr' to print all traps.
7850 * troff/env.c (init_env_requests): Implement `.tabs' reg with
7851 init_string_env_reg.
7852 * troff/env.c (class tab_reg): Deleted.
7854 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
7856 * troff/div.c: New number register .pn returns the number of the
7857 next page as set by the pn request.
7859 * macros/tmac.an: Redid headers and footers. Number each manual
7860 entry starting from 1 unless \nC is > 0, like Sun. Added an
7861 optional 5th argument to .TH which specifies the manual name and
7862 appears in the center of the header. Understand the X, P and D
7865 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
7867 * troff/env.c (init_env_requests): New number register `.lt' to
7868 return the title length.
7870 * troff/node.h (class transparent_dummy_node): New class.
7871 * troff/node.c (class transparent_dummy_node): Provide member
7873 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7876 * troff/input.c (token::next): New escape sequence \).
7877 * troff/input.c (get_copy): Recognize \) in copy mode.
7879 * troff/input.c (input_stack::clear): New function.
7880 * troff/input.c (exit_request): Use input_stack::clear.
7882 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7883 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7885 * troff/env.c: Move set_page_character to input.c. Move
7886 page_character to input.c also.
7887 * troff/env.c (title): Split off the reading of the parts of the
7888 title into read_title_parts.
7889 * troff/input.c (read_title_parts): New function. Check the
7890 input_level when testing whether a token matches the delimiter.
7892 * troff/input.c (exit_request): New function.
7893 * troff/input.c (init_input_requests): Bind ex request to
7894 exit_request rather than exit_groff.
7896 * troff/input.c (exit_groff): Call tok.next() before
7897 process_input_stack().
7899 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
7901 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7902 * troff/env.h: ditto.
7903 * troff/input.c: ditto.
7905 * troff/env.c (environment::is_empty): Test pending_lines.
7907 * troff/env.c (environment::have_pending_lines): Removed.
7909 * troff/input.c: Add request to flush pending lines from the
7912 * troff/env.c, troff/env.h: Add automatic widow control feature.
7914 * troff/input.c (exit_groff): Do process_input_stack() after
7915 do_break() but before setting exit_flag to 2.
7917 * troff/input.c: Remove FLUSH_PENDING_LINES and
7918 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7919 environment after END_TRAP token seen, but only if there aren't
7920 any more traps still unfinished.
7921 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7923 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
7925 * troff/env.c: Rename the `retain_size' member of class
7926 pending_output_line to `no_fill'.
7928 * troff/env.c (title): When the line is output, make the
7929 retain_size argument !fill.
7931 * troff/node.h: Add `hyphenated' member to struct breakpoint.
7932 * troff/node.c (space_node::get_breakpoints),
7933 (dbreak_node::get_breakpoints): Fill this in.
7934 * troff/env.c: Allow specification of maximum number of
7935 consecutive hyphenated lines.
7937 * troff/env.c (environment::is_empty): Add test for !current_tab.
7939 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
7941 * troff/env.c (environment::hyphenate_line): Don't completely give
7942 up if the word is not to be hyphenated; continue so that breaks
7943 can be made at break_char_node's.
7945 * lib/lib.h: Only define INT_MAX if it's not already defined;
7946 undef INT_MIN if it's already defined.
7948 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7950 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7951 This works around a bug in AT&T C++ 2.0 used with an ANSI C
7954 * macros/tmac.an (an-header): Set no-space mode.
7956 * macros/tmac.an (TH): Start a new page if necessary.
7958 * Started using ChangeLog at version 0.4.
7961 version-control: never