1 2000-09-21 Werner LEMBERG <wl@gnu.org>
3 * src/roff/troff/input.cc (main): Fixing compiler warning.
4 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5 strings.h from the former to the latter.
6 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7 stuff from the former to the latter.
9 2000-09-11 Werner LEMBERG <wl@gnu.org>
11 Implementing two new requests .tm1 and .tmc: The former is similar
12 to .tm but can output leading spaces; its syntax is similar to
13 defining a string, i.e., a `"' can be used to mark the beginning of
14 the string to be written to stderr: `.tm1 " test'. The latter is
15 similar to .tm1 but doesn't write out a final newline character.
17 * src/roff/troff/input.cc (terminal1, terminal_continue,
18 do_terminal): New functions.
19 (init_input_requests): Use them.
20 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
22 2000-09-09 Werner LEMBERG <wl@gnu.org>
24 * tmac/groff_mdoc.samples.man: Small fixes.
26 2000-09-08 Werner LEMBERG <wl@gnu.org>
28 * tmac/groff_mdoc.man: Fixing typo.
30 2000-09-02 Werner LEMBERG <wl@gnu.org>
32 Implementing a .nop request which does nothing.
34 * src/roff/troff/input.cc (nop_request): New function.
35 (init_input_requests): Use it.
36 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
38 2000-09-01 Werner LEMBERG <wl@gnu.org>
40 * doc/groff.texinfo: Added some comments.
42 2000-08-30 Werner LEMBERG <wl@gnu.org>
44 * src/roff/troff/TODO: Updated.
46 2000-08-28 Bruno Haible <haible@clisp.cons.org>
48 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
51 2000-08-25 Werner LEMBERG <wl@gnu.org>
53 * doc/groff.texinfo: Fix comment how to compile the DVI file.
55 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
57 * font/devps/generate/Makefile (SHELL): Define explicitly to
58 "/bin/sh", for non-Unix platforms.
59 (extraclean): Use a more portable "" quoting instead of a
60 backslash (which doesn't work on DOS/Windows).
62 * font/devlj4/generate/Makefile (extraclean): Ditto.
64 * font/devdvi/generate/Makefile (extraclean): Ditto.
66 2000-08-25 Werner LEMBERG <wl@gnu.org>
68 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
69 src/roff/troff/troff.man: Document Eli's latest changes.
71 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
73 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
74 macro file names of the form NAME.tmac as well as tmac.NAME.
76 2000-08-25 Werner LEMBERG <wl@gnu.org>
78 * src/include/posix.h: Remove definition of FILENAME_MAX.
80 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
81 `sys_fatal' and `stop' function().
83 * test-groff: Updated.
85 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
87 Added the new troff command .output <arg> to suppress output (while
88 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
89 registers (for passing the output dimensions to the output device).
91 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
93 * src/roff/troff/node.h, src/roff/troff/node.cc
94 (troff_output_file::really_print_line,
95 ascii_output_file::really_print_line,
96 supress_output_file::really_print_line): Use `width' parameter.
97 (troff_output_file::really_on, troff_output_file::really_off,
98 output_file::on, output_file::off, real_output_file::on,
99 real_output_file::off, real_output_file::really_on,
100 real_output_file::really_off): New functions.
101 (real_output_file:public output_file): New variable `output_on'.
102 (real_output_file::begin_page, real_output_file::copy_file,
103 real_output_file::transparent_char, real_output_file::print_line):
105 (real_output_file::print_line): Use check_output_limits.
106 * src/roff/troff/reg.h, src/roff/troff/request.h,
107 src/roff/troff/input.cc (assign_registers): New function to remove
109 (do_ps_file): Use it.
110 (check_output_limits, reset_output_registers, output_request,
111 init_output_requests): New functions.
112 (init_input_requests): Updated.
114 Added new grohtml2 device and html2 preprocessor (coding
115 not yet finished) which will eventually replace grohtml.
117 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
119 * src/include/htmlindicate.h, src/include/htmlindicate
120 (html_begin_suppress, html_end_suppress): New functions.
121 * src/preproc/tbl/main.cc: Use it.
122 * src/roff/groff/groff.cc: Add support for html2 device (which will
123 automatically invoke the html2 preprocessor).
124 * src/roff/troff/input.cc (is_html2): New variable.
125 * src/roff/troff/troff.h, src/roff/troff/env.h,
126 src/roff/troff/env.cc (environment::add_html_tag): New function
128 (environment::do_break): Use it.
129 * font/devhtml2/*: New files.
130 * src/devices/grohtml2: New device.
131 * src/preproc/html2: New preprocessor.
132 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
134 2000-08-23 Werner LEMBERG <wl@gnu.org>
136 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
138 2000-08-22 Werner LEMBERG <wl@gnu.org>
140 * src/include/lib.h: Provide a fix for IRIX to not include
143 2000-08-18 Werner LEMBERG <wl@gnu.org>
145 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
146 since some non-GNU sed programs can't handle null regexps.
147 * configure, src/preproc/eqn/Makefile.sub,
148 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
150 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
151 bug (string.h and strings.h are both needed according to latest
154 * MORE.STUFF: Added info about unroff and troffcvt.
156 2000-08-08 Werner LEMBERG <wl@gnu.org>
158 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
161 * tmac/tmac.man.old: Remove unused number register.
163 * tmac.doc: Minor documentation fix.
165 2000-08-07 Paul Eggert <eggert@twinsun.com>
167 * src/roff/groff/pipeline.c (is_system_shell):
168 Fix typo: "monocased_shell" no longer exists.
170 2000-08-07 Paul Eggert <eggert@twinsun.com>
172 Remove FILENAME_MAX limits.
174 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
175 that the argument length is less than FILENAME_MAX.
176 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
177 Use struct hack to allocate and free file name.
178 (struct xtmpfile_list): fname is now part of the structure,
179 not a pointer to another string.
181 2000-08-07 Tom Schmidt <tschmidt@micron.com>
183 * src/include/posix.h: Add a default value for FILENAME_MAX.
185 2000-08-06 Paul Eggert <eggert@twinsun.com>
187 Add support for new BSD-style man pages (with ".Dd" instead of
188 ".TH"), so that "groff -man" understands both styles, even
189 when running "groff -man" on a host whose system man page
190 macros don't support ".Dd".
192 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
193 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
194 in case the system man macros don't define Dd or TH.
196 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
197 * tmac/tmac.an: New one-line file.
198 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
200 2000-08-06 Werner LEMBERG <wl@gnu.org>
202 * src/roff/troff/troff.man: Fixing typos.
204 Version 1.16.1 released
205 =======================
207 2000-07-31 Werner LEMBERG <wl@gnu.org>
209 Preparing release 1.16.1.
211 * REVISION: Revision number set to 1.
212 * MORE.STUFF: Added info about port to DOS.
213 * NEWS, win32-diffs: Updated.
215 * src/include/nonposix.h: Remove first line -- this file is used
218 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
221 2000-07-30 Werner LEMBERG <wl@gnu.org>
223 * doc/texinfo.tex: Update to latest version.
225 2000-06-28 Paul Eggert <eggert@twinsun.com>
227 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
228 commands that fail. Don't assume that "export a=b" is valid shell
229 syntax. This is needed for Solaris 2.5.1.
231 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
232 comment about missing Solaris headers.
234 * PROBLEMS: Add section about problems with Sun Make and VPATH.
236 2000-06-25 Werner LEMBERG <wl@gnu.org>
238 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
241 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
243 * win32-diffs: Updated.
244 * README.WIN32: Added CRs to make all Windows editors happy.
246 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
247 src/roff/groff/pipeline.c).
249 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
251 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
252 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
254 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
256 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
257 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
259 (main): Support non-Posix systems with several different styles of
260 slash characters in file names.
262 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
263 (main) [SET_BINARY]: Switch stdin into binary mode.
265 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
266 (main): Support file names with several possible slash-type
267 characters, as given by DIR_SEPS[] in nonposix.h.
268 (main) [__MSDOS__]: If renaming the temporary index file fails
269 because it has more than one dot in its trunk, replace the dot
270 with an underscore and try again.
271 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
273 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
275 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
276 (File::File): Open the input file in binary mode. Strip CR
277 characters from each CR-LF pair.
278 (xbasename): Support file names with several possible slash-type
279 characters, as given by DIR_SEPS[] in nonposix.h.
281 * src/include/Makefile.sub (HDRS): Add nonposix.h.
283 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
284 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
285 [!_POSIX_VERSION]: Define for traditional Unix systems.
286 (real_output_file::real_output_file): Remove the MSVC-specific
287 call to popen, use instead POPEN_WT, appropriately defined on
288 nonposix.h. #include nonposix.h.
289 (real_output_file::~real_output_file): Remove the MSVC-specific
290 call to pclose, a suitable macro is now defined on nonposix.h.
291 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
292 and WEXITSTATUS instead of assuming traditional Unix
293 interpretation of the status returned by pclose.
295 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
296 call to popen, use POPEN_RT instead (appropriately defined on
297 nonposix.h). #include nonposix.h.
298 (ps_bbox_request): Open the PostScript file in binary mode.
299 Close the file after processing it.
300 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
303 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
304 A version of run_pipeline that doesn't use `fork'.
305 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
306 (system_shell_name, system_shell_dash_c)
307 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
308 the ugliness of testing DOS/Windows file names for equality, and
309 support both stock shells and ports of Unix shells.
311 * src/roff/groff/groff.cc: #include nonposix.h.
312 (BSHELL): Definition moved to nonposix.h.
313 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
314 instead of a literal "-c".
315 (xbasename): Support file names with several possible slash-type
316 characters, as given by DIR_SEPS[] in nonposix.h.
317 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
320 * src/preproc/soelim/soelim.cc: #include nonposix.h.
321 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
323 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
326 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
328 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
331 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
333 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
334 P_tmpdir is defined, use it instead of the literal "/tmp".
335 (remove_tmp_files, add_tmp_file): New functions.
336 (xtmpfile): Record temporary files and register an atexit function
337 to delete them explicitly, instead of relying on the OS to do
338 that, which doesn't work on non-Unix systems.
340 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
341 (search_path::search_path): Use PATH_SEP instead of a literal
343 (search_path::command_line_dir): Ditto.
344 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
345 to support non-Posix systems.
347 * src/libc/libbib/search.cc: #include nonposix.h.
348 (search_list::add_file): Open the file in binary mode.
350 * src/libs/libbib/linear.cc: #include nonposix.h.
351 (file_buffer::load): Remove \r characters preceding \n from the
354 * src/libs/libbib/index.cc: #include nonposix.h.
355 (make_index_search_item): Open index_filename in O_BINARY mode.
356 (index_search_item_iterator::get_tag): Ditto. Remove \r
357 characters before \n characters.
358 (index_search_item::check_files): Open files in binary mode.
359 (index_search_item::munge_filename): Support DOS-style file names
360 with backslashes and drive letters, use IS_ABSOLUTE.
362 * src/devices/grops/ps.cc: #include nonposix.h.
363 (main) [SET_BINARY]: Switch stdout to binary mode.
365 * src/devices/grolj4/lj4.cc: #include nonposix.h.
366 (main) [SET_BINARY]: Switch stdout to binary mode.
368 * src/devices/grolbp/lbp.cc: #include nonposix.h
369 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
371 * src/devices/grodvi/dvi.cc: #include nonposix.h.
372 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
374 (main) [SET_BINARY]: Switch stdout to binary mode.
375 [_MSC_VER]: Remove an explicit call to _setmode.
377 * src/include/nonposix.h: New file.
379 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
380 operation when building with DJGPP.
381 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
382 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
385 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
387 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
388 etc. can include a semi-colon on DOS/Windows.
389 (depend.temp): Use depend1.temp instead of depend.temp1, to
390 prevent files from overerwiting each other on 8+3 filesystems.
392 * gendef.sh (t): Change definition to work with DOS/Windows.
394 doc/groff.texinfo: Apart of some typo corrections, I also changed
395 some index entris, to make them more non-ambiguous, and also put
396 @ignore around some parts that are not yet written, to allow the
397 Info output be readable.
399 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
401 Replaced specific checks for function declarations with a generic
402 routine taken from GNU bfd.
404 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
405 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
406 * configure.in: Use it.
407 * src/devices/grolbp/lbp.cc, src/include/lib.h,
408 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
409 src/roff/groff/groff.cc: Use it.
410 * Makefile.in, configure: Updated.
412 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
414 * src/devides/grolbp/lbp.h: Removed unused variables.
416 2000-05-31 Keith Thompson <kst@sdsc.edu>
418 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
421 2000-05-31 Werner LEMBERG <wl@gnu.org>
423 * aclocal.m4 (GROFF_SRAND): New function to test the return value
424 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
425 * configure.in: Use it.
426 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
427 * configure, Makefile.in: Updated.
429 * configure.in: Add test for strncasecmp().
430 * src/include/lib.h: Use it.
432 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
434 * src/preproc/grn/Makefile.sub: Add MLIB.
436 2000-05-29 Nix <nix@esperi.demon.co.uk>
438 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
440 2000-05-29 Werner LEMBERG <wl@gnu.org>
442 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
444 * PROBLEMS: Small update.
446 * src/devices/grolbp/lbp.cc: Various small fixes.
448 2000-05-28 Keith Thompson <kst@sdsc.edu>
450 * src/roff/nroff/nroff.sh: Fix main loop syntax.
452 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
454 2000-05-25 Werner LEMBERG <wl@gnu.org>
456 * man/roff.man: Removed unused macro.
458 2000-05-24 Werner LEMBERG <wl@gnu.org>
460 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
461 This is needed e.g. if you do
462 `make distclean; ./configure; make dist'.
464 Version 1.16 released
465 =====================
467 2000-05-23 Werner LEMBERG <wl@gnu.org>
469 Adding font CWI (constant width italic) to devdvi.
471 * font/devdvi/CWI: New file.
472 * font/devdvi/generate/Makefile: Add generating rule.
473 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
474 tmac/tmac.dvi: Use it.
477 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
478 * font/devlj4/generate/Makefile: Cosmetic changes only.
480 * man/groff.man: Removed most of the redundant description of
481 special characters (which is in groff_char.man). Added font
482 translation CB->CR for devdvi. Other minor fixes.
484 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
485 (registered) symbols.
487 2000-05-22 Werner LEMBERG <wl@gnu.org>
489 * doc/Makefile: Added rule for creating info files.
491 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
493 * font/devdvi/generate/Makefile: Fixed dependencies.
495 * font/devps/*: Regenerated. Heavy changes for Bookman and
496 NewCentury Schoolbook!
497 * font/devps/generate/afmname: Will now run with GNU awk.
498 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
499 * font/devps/generate/Makefile: Cosmetic changes only.
501 2000-05-21 Werner LEMBERG <wl@gnu.org>
503 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
504 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
505 `.SS' now produces a heading with a smaller size than `.SH'.
506 Completely formatted.
507 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
509 * man/groff.man: Improved table appearance. Use of `eo' request
510 to reduce number of doubled backslashes in macro definitions.
511 Replacing `\e' with `\(rs'. Other minor fixes.
513 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
514 to have correct line number.
516 * INSTALL: Small improvement.
518 2000-05-20 Bernd Warken <bwarken@mayn.de>
520 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
523 2000-05-19 Bernd Warken <bwarken@mayn.de>
525 * man/groff.man: Complete update (with a lot of corrections by WL).
527 2000-05-18 Werner LEMBERG <wl@gnu.org>
529 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
531 * font/*/*: Implement it.
532 * man/groff_char.man, NEWS: Document it.
534 * src/include/unix.h: Removed. It isn't used.
536 * doc/groff.texinfo: Slight improvements.
538 2000-05-17 Werner LEMBERG <wl@gnu.org>
540 * README, win32-diffs: Small fixes and improvements.
542 2000-05-16 Werner LEMBERG <wl@gnu.org>
544 * FDL: New file (the Free Documentation License version 1.1).
546 * doc/groff.texinfo: Added many start-up values for gtroff.
547 Some structural improvements of the source code.
549 2000-05-15 Werner LEMBERG <wl@gnu.org>
551 * src/roff/troff/input.cc: Added small comment about troffrc-end.
552 * src/roff/troff/troff.man: Added info about troffrc-end.
554 2000-05-14 Werner LEMBERG <wl@gnu.org>
556 * Makefile.in (EXTRADIRS): Fix typos.
557 (dist): Handle deletion of old .tar.gz file correctly.
558 (DISTDIRS): Include all tty output devices.
560 * doc/groff.texinfo: Adding more cross references; countless other
563 2000-05-13 Werner LEMBERG <wl@gnu.org>
565 * MORE.STUFF: Added Robert Marks's utilities.
567 2000-05-12 Werner LEMBERG <wl@gnu.org>
569 Added win32 port contributed by Blake McBride
570 <blake@florida-software.com>.
572 * README.WIN32, win32-diffs: New files.
575 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
576 (tmove, tmove2): Added parentheses to avoid compiler warnings.
577 (change): Removed unused variables.
579 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
580 (savebounds): Changed return value from `int' to `void'.
581 * src/preproc/grn/hdb.cc: Ditto.
583 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
584 final backslash in comment to avoid compiler warning.
586 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
588 * doc/groff.texinfo: More fixes.
590 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
592 * tmac/tmac.doc: Documentation fix.
594 2000-05-11 Werner LEMBERG <wl@gnu.org>
596 * doc/groff.texinfo: Reading the source code shows up a lot of
597 omissions and incorrect data... More conversion to @Deffn macros.
599 2000-05-10 Werner LEMBERG <wl@gnu.org>
601 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
604 * src/roff/troff/request.h: Removing unused `no_break_flag'.
606 2000-05-09 Werner LEMBERG <wl@gnu.org>
608 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
611 * doc/groff.texinfo: Extended history section. More conversion to
612 @Deffn macros. More .tr documentation.
614 2000-05-07 Werner LEMBERG <wl@gnu.org>
616 * doc/groff.texinfo: Completed tab section. Added info about
619 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
621 * PROBLEMS: Describe configure script fix for OS/390 Unix.
623 2000-05-05 Werner LEMBERG <wl@gnu.org>
625 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
629 * man/troff.man: Minor optical improvements.
631 2000-05-03 Werner LEMBERG <wl@gnu.org>
633 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
635 * font/*/*: Implement it.
636 * man/groff_char.man, NEWS: Document it.
638 2000-05-02 Werner LEMBERG <wl@gnu.org>
640 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
642 * NEWS: Document the three new man pages.
644 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
645 * configure: Updated.
647 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
649 2000-05-01 Werner LEMBERG <wl@gnu.org>
651 Added grap support to grog.
653 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
654 * src/roff/grog/grog.man: Document it.
656 * doc/groff.texinfo, NEWS: Add info about grap support.
658 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
659 (with slight fixes by me).
661 * tmac/groff_tmac.man: New file documenting tmac mechanism.
662 * tmac/Makefile.sub: Add groff_tmac.man.
663 * man/roff.man: New file giving overview of roff system.
664 * man/troff.man: A short reference of troff.
665 * man/Makefile.sub: Add roff.man and troff.man.
667 2000-04-30 Werner LEMBERG <wl@gnu.org>
669 Added grap support to groff.
671 * src/roff/groff/groff.cc: Implement it.
672 * src/roff/groff/groff.man: Document it.
674 * src/devices/grotty/grotty.man: Add cp1047 device.
675 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
677 * src/roff/groff/groff.man: Ditto.
678 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
679 * doc/groff.texinfo: Ditto.
681 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
684 2000-04-29 Werner LEMBERG <wl@gnu.org>
686 * man/groff_char.man: Add `pc' glyph.
687 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
688 * tmac/tmac.tty: Add `pc' glyph.
689 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
690 we use cp1047 output device.
692 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
693 there are still hardcoded latin1->unicode values in utf8's font
695 * configure: Updated.
696 * NEWS: Minor clarification. Updated.
698 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
701 2000-04-28 Werner LEMBERG <wl@gnu.org>
703 Adding EBCDIC code page 1047.
705 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
706 font/devcp1047/DESC.proto: New files.
708 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
709 either ascii/latin1 or cp1047.
710 * Makefile.in: Use it.
711 * configure: Updated.
713 Replacing and/or adding `md' (mathdot) glyph with `pc'
714 (periodcentered) in all text fonts.
716 * font/*/*: Change it.
718 2000-04-27 Werner LEMBERG <wl@gnu.org>
720 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
722 * configure.in: Add check for strings.h.
723 * src/include/driver.h: Use HAVE_STRINGS_H.
724 * src/devices/grolbp/lpb.cc: Remove string.h.
726 * src/include/groff-getopt.h: New file. It will be used instead of
727 getopt.h (to be included in lib.h) to avoid endless problems with
729 * src/include/lib.h: Use groff-getopt.h.
730 * src/include/Makefile.sub: Updated.
732 * configure: Updated.
733 * Makefile.in: Updated.
735 * NEWS: Mention EBCDIC support.
737 2000-04-26 Werner LEMBERG <wl@gnu.org>
739 * TODO: Some additions.
741 2000-04-25 Werner LEMBERG <wl@gnu.org>
743 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
746 2000-04-23 Werner LEMBERG <wl@gnu.org>
748 * src/roff/troff/troff.man: Minor fixes.
750 2000-04-22 Werner LEMBERG <wl@gnu.org>
752 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
753 `.T' string register and the incompatible definition of the `.T'
754 number register (compared to Unix troff).
756 * man/groff_char.man: Add some missing characters.
757 * font/devutf8/NOTES: Update.
759 2000-04-21 Werner LEMBERG <wl@gnu.org>
761 * src/include/htmlindicate.h, src/include/lib.h,
762 src/include/posix.h: Fix copyright.
764 * src/include/Makefile.sub: Update.
766 2000-04-20 Werner LEMBERG <wl@gnu.org>
768 * src/roff/troff/input.cc (input_char_description): Removing
769 superfluous space char.
771 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
773 * doc/groff.texinfo: Document EBCDIC.
775 2000-04-19 Werner LEMBERG <wl@gnu.org>
777 Introducing `shc' as the glyph name for the soft hyphen character.
779 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
780 font/devlatin1/R.proto: Use it.
784 2000-04-18 Werner LEMBERG <wl@gnu.org>
786 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
787 dependency on ASCII order.
789 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
791 * src/libs/libgroff/illegal.c: Added EBCDIC table.
792 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
794 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
795 to increase portability.
797 2000-04-15 Werner LEMBERG <wl@gnu.org>
799 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
800 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
801 the generic `\n' if under OS/390 Unix.
803 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
805 * configure: Regenerated.
807 2000-04-14 Werner LEMBERG <wl@gnu.org>
809 * doc/groff.texinfo: More conversions to @Deffn.
811 2000-04-12 Werner LEMBERG <wl@gnu.org>
813 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
816 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
818 2000-04-10 Werner LEMBERG <wl@gnu.org>
820 * doc/groff.texinfo: More conversions to @Deffn.
822 2000-04-08 Werner LEMBERG <wl@gnu.org>
824 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
825 Updated to latest version (glibc 2.1.3).
827 2000-04-07 Werner LEMBERG <wl@gnu.org>
829 * doc/Makefile (clean): Include more index files.
830 Add rule texinfo->dvi.
832 2000-04-05 Werner LEMBERG <wl@gnu.org>
834 * doc/groff.texinfo: Added new index `op' for operators. More
835 info on end of sentence characters. More use of @Deffn.
837 2000-03-30 Werner LEMBERG <wl@gnu.org>
839 * */*.man: Adding a note that a whitespace can be inserted between
840 a command line option and its parameter -- we are using GNU getopt.
842 * src/roff/groff/groff.man: Add example of `-m mandoc'.
844 2000-03-28 Werner LEMBERG <wl@gnu.org>
846 Correct anachronism of calling the man macro file with `-man'
847 instead of `-m man' etc.
849 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
850 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
853 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
857 * doc/groff.texinfo: Updated.
859 * tmac/groff_man.man: Copyright added.
861 2000-03-27 Werner LEMBERG <wl@gnu.org>
863 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
864 typeset the request resp. escape name with a tt font -- due to a
865 bug in texinfo.tex it is necessary to use the `-e' switch with
868 Improving info about usage of groff units.
872 2000-03-20 Werner LEMBERG <wl@gnu.org>
874 * doc/groff.texinfo: Added section about man macro package
875 (I've basically taken groff_man.man). Introducing new indices `ma'
876 for macros/strings and `gl' for glyph names. Other minor fixes.
878 * tmac/groff_man.man: Fixed some typos.
880 2000-03-19 Werner LEMBERG <wl@gnu.org>
882 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
885 * doc/texinfo.tex: New file.
887 2000-03-18 Werner LEMBERG <wl@gnu.org>
889 * doc/groff.texinfo: Improved section on number registers. Other
892 2000-03-16 Werner LEMBERG <wl@gnu.org>
894 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
897 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
898 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
899 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
900 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
902 * src/preproc/grn/grn.man: Better synopsis; added copyright.
904 * src/roff/grog/grog.man: Updated copyright date.
906 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
908 * configure.in: Added test for strdup.
910 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
913 Replaced dynamic allocation of arrays `[...]' with `new' operator.
917 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
919 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
921 2000-03-11 Werner LEMBERG <wl@gnu.org>
923 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
925 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
926 * src/include/lib.h: Remove some spaces.
928 2000-03-10 Werner LEMBERG <wl@gnu.org>
930 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
931 initializers from arguments (some compilers don't like this).
933 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
935 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
936 used by pic and eqn to tell grohtml where the graphic regions start
938 * src/libs/libgroff/Makefile.sub: Use it.
939 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
940 graphic_start() and graphic_end() from htmlindicate.cc.
942 2000-03-09 Werner LEMBERG <wl@gnu.org>
944 * tmac/tmac.safer: Will now work correctly in compatibility mode.
945 * tmac/groff_man.man: More fixes.
947 2000-03-08 Werner LEMBERG <wl@gnu.org>
949 * doc/Makefile: Added texput.log to the `clean' target.
950 * doc/groff.texinfo: Added info about delimiters for escapes.
952 2000-03-08 Bernd Warken <bwarken@mayn.de>
954 * src/preproc/pic/pic.man: Add info on conversion of pic images to
955 other graphic formats.
957 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
959 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
960 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
961 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
964 2000-03-07 Werner LEMBERG <wl@gnu.org>
966 * doc/groff.texinfo: Spelling fixes.
968 2000-03-06 Werner LEMBERG <wl@gnu.org>
970 * tmac/groff_man.man: Completely revised to cover everything in
973 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
975 * src/roff/troff/env.cc (environment_copy): Improve error message and
977 * src/roff/troff/TODO: Updated.
979 * doc/Makefile: Bug fixes -- this is still provisional, though...
981 * tmac/eqnrc: Small fixes.
983 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
985 Adding a request `evc' to copy environments.
987 * src/roff/troff/env.cc (environment::copy, environment_copy):
989 * src/roff/troff/env.h: Add prototype.
991 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
993 Adding strsep() -- Solaris 8 doesn't have it.
995 * configure.in: Test it.
996 * src/devices/grolbp/lbp.cc: Add code.
998 2000-03-05 Werner LEMBERG <wl@gnu.org>
1000 * src/roff/troff/div.cc (macro_diversion::output,
1001 top_level_diversion::output): Fixing an incompatibility with
1002 original troff: \x'0' updates the .a register also. Thanks to
1003 <Andries.Brouwer@cwi.nl> for pointing this out.
1004 * doc/groff.texinfo: Document it.
1006 * Makefile.in: Create Makefile.dep if necessary before calling the
1007 submake process to avoid warning about nonexistent file.
1009 * NEWS, PROJECTS: Updated.
1011 2000-03-04 Werner LEMBERG <wl@gnu.org>
1013 * tmac/troffrc: Add tmac.lbp.
1015 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
1017 * tmac/tmac.lbp: New file.
1018 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
1021 2000-03-03 Werner LEMBERG <wl@gnu.org>
1023 * Makefile.in: Fixing $(subdir).
1025 * README, NEWS: Small fixes.
1027 * test-groff: Adding path to grolbp.
1029 * configure.in: The (new) file src/xditview/Imakefile.in will be
1030 also configured -- it is now possible to build gxditview in a
1031 directory different from $srcdir.
1033 2000-03-02 Blake McBride <blake@florida-software.com>
1035 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
1037 * MORE.STUFF: Added website of bell labs and info about plot2dev.
1039 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
1041 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
1044 2000-02-29 Werner LEMBERG <wl@gnu.org>
1046 Adding GNU getopt to the groff distribution.
1048 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
1050 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
1051 * aclocal.a4: Remove GROFF_GETOPT function.
1052 * configure.in, Makefile.in, PROBLEMS: Update.
1053 * src/include/lib.h: Replace getopt tests with getopt.h.
1054 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
1056 * doc/groff.texinfo: Further checking/updating. Adding more index
1059 * man/groff_out.man: Fix nroff mode activation (for emacs).
1060 * man/groff_font.man: Add missing ligature.
1062 2000-02-28 Werner LEMBERG <wl@gnu.org>
1064 * doc/groff.texinfo: Further checking/updating. Adding more index
1067 * src/devices/grolbp/grolbp.man: Added a comment line at the
1068 beginning of the file (similar to shell scripts) which indicates
1069 that `tbl' should be used as a preprocessor.
1071 2000-02-27 Blake McBride <blake@florida-software.com>
1073 Adapting groff to MS Visual C++ 6.0 compiler (tested with
1074 Windows NT 4.0). Uses _MSC_VER define where necessary.
1076 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
1077 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
1078 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
1079 src/include/lib.h, src/libs/libgroff/errarg.cc,
1080 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
1081 src/preproc/refer/label.y, src/preproc/refer/label.cc,
1082 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
1083 src/roff/troff/div.cc, src/roff/troff/env.cc,
1084 src/roff/troff/input.cc, src/roff/troff/node.cc,
1085 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
1086 if_to_a() to avoid name clashes.
1087 * src/include/posix.h: Don't use unistd.h.
1088 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
1089 clause for integrating non-Unix xtmpfile() code.
1090 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
1091 structure; use "rt" for popen() in pipe_source(); add getpid()
1093 * src/roff/troff/node.cc: Use special versions of popen() in
1094 real_output_file() and pclose() in ~real_output_file().
1096 2000-02-27 Werner LEMBERG <wl@gnu.org>
1098 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
1099 LBP-8 series laser printers). This code has been contributed by
1100 Francisco Andres Verdu <pandres@dragonet.es>.
1102 * src/devices/grolbp/*: The grolbp output device.
1103 * font/devlpb/*: The font description files.
1104 * Makefile.in: Add grolpb and devlbp subdirectories.
1106 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
1107 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
1110 * doc/groff.texinfo: Further checking/updating. Adding more index
1115 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
1117 * man/groff_font.man: Adding info about obsolete DESC keywords.
1118 * src/devices/grolj4/grolj4.man: Documenting additional DESC
1121 2000-02-26 Werner LEMBERG <wl@gnu.org>
1123 * src/preproc/grn/grn.man: Added info about the gremlin file format
1124 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
1126 2000-02-25 Werner LEMBERG <wl@gnu.org>
1128 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
1129 friends to be non-integer.
1131 * src/preproc/grn/grn.man: Document it.
1133 * doc/groff.texinfo: Further checking/updating. Adding more index
1136 2000-02-24 Werner LEMBERG <wl@gnu.org>
1138 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
1139 line thicknesses to be integer multiples of this value.
1141 * src/preproc/grn/grn.man: Commenting out the -s option -- the
1142 corresponding code doesn't work (yet).
1144 * doc/groff.texinfo: Further checking/updating. Adding more index
1147 2000-02-23 Werner LEMBERG <wl@gnu.org>
1149 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
1150 specify line thickness instead of base units. The new default
1151 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
1152 thick lines respectively.
1154 Removed unused variable `prevval'.
1156 * src/preproc/grn/grn.man: Updated.
1158 2000-02-22 Werner LEMBERG <wl@gnu.org>
1160 * src/preproc/grn/main.cc: Slight formatting.
1162 * src/roff/groff/groff.man: Formatting fix.
1163 * src/preproc/grn/grn.man: Ditto.
1165 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
1167 * doc/groff.texinfo: Further checking/updating.
1169 2000-02-21 Werner LEMBERG <wl@gnu.org>
1171 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
1173 * test-groff: Added grn subdir to path.
1175 * doc/groff.texinfo: Some restructing and other small improvements.
1177 * src/roff/groff/groff.cc (help): Fixed info string.
1179 2000-02-20 Werner LEMBERG <wl@gnu.org>
1181 * doc/meref.me: Fix description of .GS request.
1183 * src/roff/troff/troff.man: Fixing typo.
1185 Adding the `grn' preprocessor for gremlin graphic files.
1187 * src/preproc/grn/*: This is the Berkeley distribution written by
1188 David Slattengren and Barry Roitblat, adapted to groff by Daniel
1189 Senderowicz and Werner Lemberg.
1191 * doc/grnexampl.{me,g}: A sample for grn.
1193 * Makefile.in: Added subdirectory entry for grn.
1195 * src/roff/groff/groff.cc: Added support for grn. It can be now
1196 called with the switch `-g'.
1198 * src/roff/groff/groff.man: Updated.
1200 * src/roff/grog/grog.{man,pl,sh}: Updated.
1204 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
1206 * src/include/lib.h: Added xtmptemplate and made xtmpfile
1207 parametrically polymorphic.
1209 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
1210 and the alterations to xtmpfile.
1211 xtmpfile can be requested to return the filename created
1212 and asked not to unlink the temp file. The default behaviour
1213 if parameters are absent is exactly the same as before.
1215 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
1217 A new request `length' is available which returns the length of a
1218 string in a number register:
1220 * src/roff/troff/input.cc (length_macro): Implement it.
1221 * src/roff/troff/input.cc (init_input_requests): Register it.
1223 2000-02-11 Werner LEMBERG <wl@gnu.org>
1225 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
1226 of the `substring' request.
1228 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
1231 * src/roff/troff/TODO, NEWS: Updated.
1233 2000-02-09 Werner LEMBERG <wl@gnu.org>
1235 * src/roff/groff/groff.man: Added an example.
1237 2000-02-06 Werner LEMBERG <wl@gnu.org>
1239 I've considerably modified the directory structure of the
1240 distribution to get a more vertical layout. For example, the number
1241 of top level directories has been reduced from 42 to 6.
1243 As a consequence, many changes, especially to the makefiles, were
1246 * The makefile variables `top_builddir' and `top_srcdir' have been
1247 introduced. Virtually all relative paths have been replaced with
1248 absolute ones using these two variables.
1250 * Dependencies (in the files `Makefile.dep') are no longer part of
1251 the distribution. Instead, they are created during a `make install'
1252 in the build directory.
1254 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
1255 make `top_srcdir' and `top_builddir' absolute.
1259 * Man pages no depend on the files `VERSION' and `REVISION'.
1261 * The added shell script `mkinstalldirs' will replace `mkdir' in
1264 * VERSION: Version number increased to 1.16.
1266 2000-02-04 Werner LEMBERG <wl@gnu.org>
1268 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
1270 * Makefile.in: Removed $(tmac_m) since it is no longer needed
1271 (after an update of the mm stuff).
1273 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
1275 2000-02-03 Werner LEMBERG <wl@gnu.org>
1277 The .psbb request will now also accept Mac PS images (i.e. using LF
1278 as the EOL character).
1280 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
1281 (with slight modifications).
1282 * troff/input.cc (do_ps_file): Use it.
1284 * test-groff: Add grohtml and grolj4 output devices to PATH.
1286 2000-01-30 Werner LEMBERG <wl@gnu.org>
1288 * NEWS, MORE.STUFF: Updated.
1290 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
1292 Add the `srand' command to pic.
1294 * pic/lex.cc, pic/pic.y: Implement it.
1295 * pic/pic.man: Document it.
1296 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
1298 2000-01-30 Werner LEMBERG <wl@gnu.org>
1300 Add a new request `.psbb'. This does exactly what the external
1301 program psbb did. It scans a PostScript image file for a
1302 %%BoundingBox comment and extracts the bounding box values (in
1303 PostScript units) which are then stored in the four new (read-only)
1304 number registers `llx', `lly', `urx', and `ury'.
1306 This will allow the usage of the .PSPIC macro without worrying
1307 about unsafe behaviour of groff, i.e., it will work without the
1308 `-U' switch of groff.
1310 * troff/input.cc: Implement it.
1311 * tmac/tmac.pspic: Use it.
1312 * troff/troff.man, grops/grops.man, NEWS: Document it.
1313 * psbb/*, Makefile.in: Remove it since it is no longer needed.
1315 This is bloody C code simply adapted from psbb.c! Any improvements
1318 2000-01-29 Werner LEMBERG <wl@gnu.org>
1320 * man/groff_font.man: Minor clarifications.
1324 2000-01-28 Werner LEMBERG <wl@gnu.org>
1326 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
1328 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
1330 * man/groff_font.man: Brought up to date regarding tcommand
1332 * libgroff/font.cc: Handle everything after `--' as a comment
1334 * devps/*: Added comment delimiter inside devps font files.
1336 2000-01-28 Werner LEMBERG <wl@gnu.org>
1338 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
1339 \fC...\fP (which now works as expected).
1341 * troff/troff.man: Fix typo.
1343 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
1345 Completed the pass_filenames implementation in troff.
1347 * libdriver/input.cc: Will read the new `F' tcommand.
1348 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
1349 * troff/input.cc: Use it.
1351 2000-01-26 Werner LEMBERG <wl@gnu.org>
1353 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
1354 font will now be updated even if an invalid font is selected.
1356 2000-01-24 Werner LEMBERG <wl@gnu.org>
1358 * doc/homepage.ms: Updated for new tmac.arkup.
1360 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
1362 * tmac/tmac.arkup: Cleanup.
1364 Added `\&' to .HTML macro to `leave vertical mode', so to say.
1366 Removed obsolete .LINK macro completely.
1368 The macros .URL, .FTP, and .MAILTO now accept a third argument which
1369 will be immediately appended to the second argument (to be used with
1370 punctuation, for example).
1372 Disabled .CDFTP macro temporarily for security reasons.
1374 * tmac/groff_markup.man: Complete revision for latest changes in
1375 tmac.arkup -- note that it does not yet format correctly with
1378 2000-01-23 Bruno Haible <haible@clisp.cons.org>
1380 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
1381 * devutf8/R.proto: Add mappings for wp, lh, rh.
1382 * devutf8/NOTES: Updated.
1384 2000-01-23 Werner LEMBERG <wl@gnu.org>
1386 * doc/groff.texinfo: Updated version/copyright info.
1388 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
1390 Added support for two new directives in device descriptions:
1391 `pass_filenames' (to pass the input file name to the output device)
1392 and `use_charnames_in_special' (to support e.g. accented characters
1393 in the `X' request).
1395 * include/font.h, troff/charinfo.h: Declare it.
1397 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
1399 * devhtml/DESC: Use it.
1401 * troff/input.cc: New function encoded_char.
1403 * troff/token.h: Add test for `specialness'.
1405 2000-01-21 Werner LEMBERG <wl@gnu.org>
1407 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
1408 mistake from the list of files to be installed.
1410 2000-01-18 Werner LEMBERG <wl@gnu.org>
1412 * README: Added info how to apply patches.
1414 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
1416 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
1418 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
1420 * troff/input.cc: Add support for troffrc-end.
1422 * tbl/main.cc: Altered to issue table-start and table-end special
1423 characters if using the html device.
1425 * devhtml/*: Modified font files to incorporate html encoding of
1428 * tmac/groff_markup.man: New file documenting tmac.arkup.
1430 * tmac/troffrc-end: New file. This is invoked after all user
1431 specified macros. Currently used by the html device to include
1432 tmac.html. Thus no need for users to specify -mhtml anymore.
1434 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
1435 (MAN7): Add groff_markup.man.
1437 * tmac/tmac.an, tmac/tmac.html: Small html updates.
1439 * tmac/troffrc: tmac.arkup will now be called for the html device.
1441 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
1442 extra device specific information about fonts.
1444 * doc/homepage.ms: New file. It is an example how an HTML home page
1445 could look like with grohtml.
1447 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
1449 2000-01-12 Bruno Haible <haible@clisp.cons.org>
1451 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
1454 * devutf8/NOTES: Updated.
1456 2000-01-08 Bruno Haible <haible@clisp.cons.org>
1458 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
1459 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
1460 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1461 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
1462 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
1463 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
1464 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
1465 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
1468 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
1470 2000-01-12 Fabrizio Polacco <fab@prosa.it>
1472 grolj4: Paper size will be searched case-insensitively.
1474 * include/lib.h: Add check for strcasecmp().
1475 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
1476 * configure.in: Check for strcasecmp().
1478 2000-01-11 Werner LEMBERG <wl@gnu.org>
1480 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
1483 2000-01-10 Werner LEMBERG <wl@gnu.org>
1485 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
1488 Add a new read-only register, `.Y', which contains the groff
1491 * troff/input.cc (init_input_requests): Define it.
1492 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
1493 * doc/groff.texinfo, troff/troff.man: Document it.
1495 * libgroff/Makefile.sub (version.cc): Add definition of
1496 `Version_string[]', consisting of `<major>.<minor>.<revision>'
1497 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
1498 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
1499 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
1500 troff/input.cc, pfbtops/pfbtops.c: Use it.
1502 2000-01-10 Fabrizio Polacco <fab@prosa.it>
1504 Add a revision scheme to the groff package.
1506 * REVISION: New file.
1507 * libgroff/Makefile.sub (version.cc): Use it to define
1508 `revision_string[]'.
1509 * grops/psrm.cc: Use revision_string (converted to an unsigned
1510 integer) in constructor of resource_manager.
1512 2000-01-10 Bruno Haible <haible@clisp.cons.org>
1514 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
1516 * Makefile.in (DEVDIRS): Add devutf8.
1517 * grotty/tty.cc: Include device.h.
1518 (glyph): Change type of `code' to `unsigned int'.
1519 (tty_printer): New field is_utf8. Constructor takes device argument.
1520 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
1521 (tty_printer::add_char): Change type of first arg to `unsigned int'.
1522 (tty_printer::put_char): New function.
1523 (tty_printer::end_page): Use put_char() instead of ::putchar().
1524 (make_printer): Pass device to tty_printer constructor.
1525 * nroff.sh: Determine default device by calling 'locale'. As a
1526 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
1527 Recognize UTF-8 locales.
1528 * tmac/eqnrc: Recognize utf8 like latin1.
1529 * tmac/troffrc: Device utf8 needs tmac.tty.
1531 2000-01-07 Werner LEMBERG <wl@gnu.org>
1533 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
1535 2000-01-07 Paul Eggert <eggert@twinsun.com>
1537 Add a new predefined writeable number register, `year',
1538 which contains the current year.
1540 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
1541 * tmac/tmac.s: Use it.
1542 * troff/input.cc (init_registers): Initialize it.
1544 2000-01-06 Werner LEMBERG <wl@gnu.org>
1546 * PROBLEMS: Fixed typo.
1548 2000-01-04 Paul Eggert <eggert@twinsun.com>
1550 * PROBLEMS: Add Y2k advice for the yr number register.
1552 2000-01-03 Paul Eggert <eggert@twinsun.com>
1554 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
1556 2000-01-02 Werner LEMBERG <wl@gnu.org>
1558 * tmac/tmac.arkup: Slight modification of macros to provide better
1559 appearance for non-HTML formats.
1561 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
1563 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
1564 does not automatically translate to malloc(n) on all OSes
1565 (e.g., SunOS) so do it explicitly. Also, check the returned
1568 2000-01-01 Werner LEMBERG <wl@gnu.org>
1570 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
1572 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
1573 expects this variable
1575 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
1577 * doc/Makefile: Added instructions to create HTML and text
1578 versions of some files.
1580 1999-12-31 Werner LEMBERG <wl@gnu.org>
1582 * Updated INSTALL.gen.
1584 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
1585 better resp. correctly with non-HTML devices.
1587 Version 1.15 released
1588 =====================
1590 1999-12-28 Werner LEMBERG <wl@gnu.org>
1592 * NEWS, VERSION: Changed to 1.15
1594 1999-12-27 Paul Eggert <eggert@twinsun.com>
1596 * nroff/nroff.man: -S is safer, not safe.
1598 * groff/groff.cc (main): Use `safer', not `safe', in variable
1599 names. This does not change the behavior.
1601 * troff/input.cc (main): Likewise.
1603 * nroff/nroff.sh: Likewise.
1605 * troff/input.cc (prepend_string): New function.
1606 (main): Prepend -msafer, so that we check macro libraries for
1609 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
1611 Version 1.14 released
1612 =====================
1614 1999-12-26 Werner LEMBERG <wl@gnu.org>
1616 * NEWS, VERSION: Changed to 1.14.
1618 1999-12-24 Werner LEMBERG <wl@gnu.org>
1620 * refer/refer.cc: Fixing the last fix.
1622 Version 1.13 released
1623 =====================
1625 1999-12-23 Werner LEMBERG <wl@gnu.org>
1627 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
1632 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
1634 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
1635 document conventions, the version number must be a real.
1637 Version 1.12.1 released
1638 =======================
1640 1999-12-22 Werner LEMBERG <wl@gnu.org>
1642 * VERSION: Changed to 1.12.1.
1644 1999-12-22 Alan Rooks <arooks@istar.ca>
1646 * refer/refer.cc (do_file): Slight modification to satisfy the
1647 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
1650 1999-12-20 Werner LEMBERG <wl@gnu.org>
1652 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
1655 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
1656 list of unsafe requests.
1658 * pic/pic.man: Fixed a typo.
1660 * man/groff_out.man: Fixed a typo.
1662 1999-12-18 Werner LEMBERG <wl@gnu.org>
1664 * Makefile.in: Doc fixes.
1666 1999-12-17 Fabrizio Polacco <fab@prosa.it>
1668 * groff/groff.cc: Missing `U' option added to getopt().
1670 * troff/troff.man: Missing `U' option added to synopsis.
1672 Version 1.12 released
1673 =====================
1675 1999-12-14 Werner LEMBERG <wl@gnu.org>
1677 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
1680 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
1681 with the more appropriate terms `safer' and `unsafe'.
1683 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
1684 sys_nerr and sys_errlist[].
1686 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
1688 * pic/pic.y, pic/pic.cc: Added check for fmod().
1690 1999-12-13 Werner LEMBERG <wl@gnu.org>
1692 * VERSION: Changed to 1.12.
1694 Here some patches from various sources; most of them taken from
1695 the Debian distribution.
1697 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
1698 tmac/Makefile.sub: New files copied directly from the NetBSD
1699 distribution. Probably, some additional adaptation later on is
1702 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
1705 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
1706 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
1707 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
1708 (`-S') is now the default.
1710 * README, NEWS: Updated.
1712 1999-12-09 Werner LEMBERG <wl@gnu.org>
1714 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
1716 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
1718 1999-12-06 Werner LEMBERG <wl@gnu.org>
1720 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
1721 grief than relief today. Additionally, it is against the GNU
1724 * configure: Recreated.
1726 1999-12-05 Werner LEMBERG <wl@gnu.org>
1728 * configure.in: Added GROFF_LIBM.
1730 * configure: Recreated.
1732 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
1735 * Makefile.in: Added definition of $(LIBM).
1737 * Makefile.comm (LIBM): Removed.
1739 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
1741 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
1743 * doc/Makefile: Added rule for generation pic.html.
1745 (clean): Files produced by grohtml will be removed also.
1747 * doc/pic.ms: Small fix.
1749 * tmac/tmac.html: Fixed suppression of headers.
1751 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
1753 * tmac/tmac.html: Fixing horizontal arrows.
1755 Turning off hyphenation.
1757 * tmac/tmac.an: Improved support for grohtml; better indentation,
1760 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
1762 * tmac/tmac.arkup: Added CDFTP macro
1764 * tmac/tmac.html: All headers are turned off for ms, me, and mm
1767 * tmac/troffrc: Some additions for HTML stuff.
1769 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
1771 * tmac/tmac.html: Small changes.
1773 1999-09-26 Werner LEMBERG <wl@gnu.org>
1775 * doc/groff.texinfo: Minor fixes.
1777 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
1779 * devhtml/TR: Changed spacewidth to 3.
1781 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
1783 * tmac/tmac.html: Moved markup macros to tmap.arkup.
1785 * tmac/tmac.arkup: New file.
1787 * grohtml/ChangeLog: New file.
1789 1999-09-16 Werner LEMBERG <wl@gnu.org>
1791 * doc/groff.texinfo (Common Features): Added Copying chapter.
1792 Changed format to @smallbook.
1794 1999-09-15 Werner LEMBERG <wl@gnu.org>
1796 * NEWS: Added info about groff.texinfo.
1798 * doc/groff.texinfo: Will now compile (using texi2dvi) without
1801 1999-09-14 Werner LEMBERG <wl@gnu.org>
1803 * groff/groff.man: More updates.
1805 1999-09-13 Werner LEMBERG <wl@gnu.org>
1807 * doc/groff.texinfo: New file. This manual is still very
1808 rudimentary. It has been originally contributed by Trent
1809 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
1812 * INSTALL: Added information about the `doc' subdir
1814 * troff/troff.man: Minor fixes.
1816 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
1819 * troff/input.cc (usage): Added missing `-ffam' to usage message.
1821 * Makefile.in (dist): groff-$(version).tar.gz must be removed
1822 also, otherwise it is included itself in another call of `make
1825 * groff/groff.cc (synopsis): Removed superfluous space.
1827 * PROJECTS, PROBLEMS, NEWS: Updated.
1829 * xditview/Makefile: Removed.
1831 * VERSION: Updated to 1.12beta.
1833 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
1835 * README: Updated: Included documentation about CVS repository,
1836 mailing lists, and daily snapshots.
1838 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
1840 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
1842 * tmac/tmac.an: If the tag didn't fit into the space that the
1843 macro `TP' specifies, the rest of the tag went into the space for
1846 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
1848 * grolj4/lj4.cc: Added duplex printing (option `-d').
1850 * grolj4/grolj4.man: Document duplex printing.
1852 1999-09-12 Werner LEMBERG <wl@gnu.org>
1854 * doc/Makefile (pic.ps): Fixed rule which caused problems with
1855 non-GNUish sed programs.
1857 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
1860 * configure.in (LIBS): Added `-lc'
1862 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
1864 * pic/tex.cc (solid_arc): Casting M_PI to double.
1866 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
1868 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
1869 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
1870 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
1872 * groff/groff_man.man: New file. This manual page was originally
1873 written for the Debian GNU/Linux system by Susan G. Kleinmann
1876 * eqn/list.cc (list_box::compute_metrics,
1877 list_box::compute_sublist_width): Removed variable declaration to
1878 avoid shadowing warnings.
1880 * grops/psrm.cc (resource_manager::process_file): Ditto.
1882 * tfmtodit/tfmtodit.cc (main): Ditto.
1884 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
1885 to avoid shadowing warnings.
1887 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
1888 shadowing loop variable.
1890 * groff/groff.man, troff/troff.man: Added doc about grohtml.
1892 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
1894 New grohtml frontend to convert groff input to html.
1896 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
1898 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
1900 * tmac/eqnrc: Added html device.
1902 * tmac/tmac.html: New file.
1904 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
1905 (troff_output::start_picture, troff_output::finish_picture),
1906 tbl/main.cc (process_input_file):
1907 Surrounded output with `graphics_start' and `graphics_end' so that
1908 the html driver can identify non-text portions.
1910 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
1911 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
1912 grotty/tty.ps (tty_printer::set_char): Additional parameter
1915 * include/printer.h: Class printer: New function
1916 set_char_and_width; new variables (is_char_named, is_named_set,
1917 named_command, named_char_s, named_char_n) to hold information
1918 about named characters -- needed by the html driver.
1920 * libdriver/printer.cc (printer::set_ascii_char,
1921 printer::set_special_char): Use set_char_and_width.
1923 * devhtml/*: New device files for html driver.
1925 * grohtml/*: New driver grohtml.
1927 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
1929 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
1932 1999-09-11 Luke Mewburn <lukem@netbsd.org>
1934 * libgroff/string.cc (search): Small fix to test against NULL
1937 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
1939 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
1940 \b'abc') were stacked in reverse order when processed in a
1943 * troff/node.h: Added `*last' to struct `node' to make the above
1946 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
1947 The default scale for the 'f' and 't' graphics functions were 'm'
1948 rather than 'u' (i.e., no scaling).
1950 1999-09-11 Peter Miller <peterm@jna.com.au>
1952 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
1953 do_file), soelim/soelim.man: Added `-I file' option to soelim,
1954 defining include paths.
1956 * soelim/soelim.cc (include_path_append): New function.
1958 1999-09-11 Larry Jones <larry.jones@sdrc.com>
1960 * tbl/main.cc (process_options): Unix (at least Documenter's
1961 Workbench) tbl allows arbitrary non-alpha characters between
1964 1999-09-11 Paul Eggert <eggert@twinsun.com>
1966 Y2k fixes. Don't assume that the current year precedes 2000.
1968 * doc/meref.me: Add \n(y2, \n(y4.
1970 * tmac/doc-common (Yr): New number register.
1971 (Dd): Don't assume current year precedes 2000.
1973 * tmac/tmac.e (td): Likewise.
1974 (y2, y4): New number registers.
1976 * pic/pic.man: Update reference for pic paper to May, 1991
1979 1999-09-11 Werner LEMBERG <wl@gnu.org>
1981 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1982 Removed quotation marks which prevented correct expansion of
1985 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1987 1999-09-10 Werner LEMBERG <wl@gnu.org>
1989 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1992 * Removed configure.old.
1994 1999-08-31 Werner LEMBERG <wl@gnu.org>
1996 * VERSION: Updated to 1.11.1
1998 1999-05-27 Werner LEMBERG <wl@gnu.org>
2000 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
2002 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
2003 added quotations around $(tmac_wrap) to avoid syntax error if
2006 * configure: Newly generated using autoconf 2.13.
2008 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
2010 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
2012 * README, PROJECTS, NEWS, INSTALL, VERSION,
2013 doc/Makefile. doc/pic.ms, groff/groff.man:
2014 Prepare for 1.11 release. No code changes.
2015 Documentation for pic added (doc/pic.ms).
2017 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
2019 * Version 1.10 released.
2021 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
2023 * afmtodit/afmtodit.pl: Avoid comment on first line.
2025 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
2027 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
2028 * configure.in: Call it.
2030 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
2031 (distfiles): Doesn't depend on config.log or config.cache.
2033 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
2035 * grog/grog.sh: Use print "" rather than print in END rule.
2037 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
2039 * tbl/main.cc (process_data): Don't give error for excess data
2040 entries that are comments.
2042 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
2044 * tbl/main.cc (process_data): Fix case where new for-scope rules
2045 silently change meaning of code.
2047 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
2049 * troff/env.cc (hyphenate): Loop over all consecutive sequences
2050 of non-zero hyphenation codes.
2052 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
2054 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
2056 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
2058 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
2060 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
2062 * tmac/tmac.andoc: Make it work in compatibility mode.
2064 * refer/token.h (token_info::is_range_sep): New function.
2065 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
2066 * refer/ref.cc (reference::output): More sophisticated check for
2069 * devps/prologue.ps (MANUAL): New procedure.
2070 * grops/ps.cc (main): New -m option.
2071 (usage): Include -m.
2072 (ps_printer::~ps_printer): Implement -m.
2074 * aclocal.m4 (GROFF_G): New macro.
2075 * configure.in: Call it.
2076 * Makefile.in (g): Provided by configure.
2078 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
2080 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
2083 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
2084 (tmac_m, tmac_s): Deleted.
2085 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
2086 tmac_s_prefix): New variables.
2087 (MDEFINES): Change accordingly.
2088 * Makefile.comm (.man.n): Use new TMAC_* variables.
2089 * configure.in (GROFF_TMAC): Call.
2090 * aclocal.m4 (GROFF_TMAC): Define.
2091 * tmac/Makefile.sub (stamp_wrap): New target.
2092 (install_data, uninstall_sub): Handle macro wrapping.
2094 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
2096 * tbl/main.cc (main): Ignore -T option.
2098 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
2100 * devlj4/generate/special.map: Add definition of \(nb.
2102 * tmac/tmac.dvi: Add definition of \(nb.
2104 * troff/dictionary.c (dictionary::dictionary): association::v gets
2105 initialized by association::association.
2107 * tmac/Makefile.sub: Avoid using temporary files when installing.
2109 * troff/env.cc (environment::set_font): Make bad font number a
2112 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
2114 * Makefile.in (datadir): Use share rather than lib.
2116 * groff/groff.cc (basename): Rename to xbasename.
2118 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
2120 * Makefile (CCLIBS): Don't use.
2121 * Makefile.ccpg: Likewise.
2123 * acgroff.m4: Rename to...
2124 * aclocal.m4: Modify extensively for autoconf 2.
2125 * configure.in: Likewise.
2126 * Makefile.in: Likewise.
2128 * groff/pipeline.c (const): Declare as empty if __STDC__ not
2130 (xstrsignal): Check for definition of NSIG. Conditionalize
2131 on SYS_SIGLIST_DECLARED. Make return type const.
2133 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
2135 * troff/input.cc (interpolate_macro): Rephrase missing space
2138 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
2140 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
2141 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
2142 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
2143 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
2144 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
2145 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
2146 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
2147 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
2148 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
2149 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
2150 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
2153 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
2155 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
2157 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
2159 (macro_iterator::macro_iterator): Add additional argument.
2161 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
2163 * troff/div.cc (vertical_size::vertical_size): In place of integer
2164 specifying line spacing use cunits specifying post vertical
2166 (macro_diversion::output, top_level_diversion::output): Likewise.
2167 * troff/div.h: Change declarations accordingly.
2168 * troff/env.cc (pending_output_line): Replace ls field by post_vs
2170 (pending_output_line::pending_output_line,
2171 pending_output_line::output, environment::output,
2172 environment::output_line, environment::output_title,
2173 environment::hyphenate_line): In place of
2174 integer specifying line spacing use cunits specifying post vertical
2176 (environment::environment): Add post_vertical_spacing and
2177 prev_post_vertical_spacing arguments.
2178 (environment::get_post_vertical_spacing): New function.
2179 (environment::total_post_vertical_spacing): New function.
2180 (environment::post_vertical_spacing): New function.
2181 (init_env_requests): Initialize pvs request and .pvs register.
2182 * troff/env.h: Change declarations.
2184 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
2186 * tmac/tmac.pspic: Immediately remove the temporary file.
2188 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
2190 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
2191 height is specified.
2193 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
2195 * tbl/table.c (struct vertical rule, class table_entry): Use int
2196 not short for start_row and end_row.
2198 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
2200 * troff/input.cc (trapping_blank_line, blank_line_macro): New
2202 (diverted_space_node::reread, process_input_stack): Call
2203 trapping_blank_line() rather than blank_line().
2204 (init_input_requests): Bind "blm" to blank_line_macro().
2206 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
2208 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
2210 * troff/env.cc (environment::possibly_break_line): Require that
2211 width total excluding width of final space node be greater than
2212 the target text length.
2214 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
2216 * troff/node.cc (kern_pair_node::vertical_extent): New function.
2218 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
2220 * troff/node.cc (charinfo_node): New class.
2221 (glyph_node, composite_node): Derive from charinfo_node. Change
2222 member functions accordingly.
2224 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
2226 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
2228 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
2230 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
2232 * devps/generate/textmap (notsubset): Add.
2234 * tmac/tmac.a4: New file.
2236 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
2238 * pic/main.cc (had_parse_error): New variable.
2239 (do_picture, do_whole_file): Set had_parse_error if yyparse()
2241 (main): Return 1 if had_parse_error is true.
2243 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
2245 * grolj4/lj4.cc (main): Avoid use of strtoul.
2247 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
2249 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
2250 iso_8859_1 or $LESSCHARSET is latin1.
2252 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
2254 * hpftodit: New directory.
2255 * Makefile.in (CCPROGDIRS): Add hpftodit.
2256 * devlj4/generate: New directory.
2258 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
2260 * configure.in: Don't use AC_VFORK.
2261 * groff/pipeline.c (run_pipeline): Use fork() always.
2263 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
2265 * grops/ps.cc (main): Use %1 not %s in error message for -w.
2267 * Makefile.in (CCPROGDIRS): Add grolj4.
2268 (DEVDIRS): Add devlj4.
2269 * grolj4, devlj4: New directories.
2270 * tmac/troffrc: Handle lj4.
2271 * tmac/tmac.lj4: New file.
2273 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
2275 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
2277 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
2279 * troff/input.cc (do_if_request): At end of second string, switch
2280 environments before getting next token.
2282 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
2284 * devps/psstrip.sed: Split rule that strips whitespace on either
2287 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
2289 * troff/node.h (font_family::make_definition): Add return value to
2290 declaration. * troff/symbol.h (symbol::operator==,
2291 symbol::operator!=): Likewise.
2293 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
2295 * groff/groff.cc (main, help, synopsis): Handle -S.
2296 (possible_command::insert_arg): New function.
2298 * tmac/tmac.safer: New file.
2299 * tmac/msafer.man: New file.
2300 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
2302 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
2304 * pic/pic.h, pic/main.cc (safer_flag): New variable.
2305 * pic/pic.y (placeless_element): Avoid unsafe operations if
2306 `safer_flag' is set.
2307 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
2309 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
2311 * eqn/lex.cc (get_token): Put call to add_context() in block to
2312 work around Sun C++ 4.0 bug.
2314 * include/stringclass.h (operator +): Use ?: instead of `if' to
2315 work around Sun C++ 4.0 bug.
2317 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
2319 * tbl/main.cc (process_format): Accept - as a synonym for the _
2322 * libbib/index.cc (minus_one): Don't declare as const.
2324 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
2326 * troff/input.cc (get_char_for_escape_name): Push back a newline.
2328 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
2330 * troff/input.cc (write_macro_request): New function.
2331 (init_input_requests): Bind write_macro_request to writem.
2333 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
2335 * tmac/tmac.s (@EN): Turn filling back on even if there was no
2338 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
2340 * tmac/tmac.s (@TS): Renamed from TS.
2341 (TS): Call LP then TS again.
2342 (cov*ab-init): Alias @TS to TS.
2344 * tmac/tmac.s: Allow QP or RS to initialize.
2346 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
2347 Move initializations of PS and LL here.
2348 (par@init): Don't initialize HY. Avoid changing environment 0.
2349 (par*env-init): Don't all par@reset.
2351 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
2353 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
2355 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
2357 * Makefile.in (MDEFINES): Add LDFLAGS.
2358 (LDFLAGS): Add definition line.
2360 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
2362 * troff/input.cc (get_optional_char): Split off error check into...
2363 (check_missing_character): New function.
2364 * troff/token.h: Declare it.
2365 * troff/env.cc (margin_character): Don't call get_optional_char.
2366 Only call tok.next() after making the node.
2368 * include/lib.h (getopt): Make 2nd argument char *const *.
2370 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
2372 * nroff/conftest.sh: Deleted.
2374 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
2376 * pic/make-dos-dist: Deleted.
2378 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
2380 * devps/psstrip.sed: Strip comments before stripping trailing
2383 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
2385 * Version 1.09 released.
2387 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
2389 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
2391 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
2393 * libgroff/font.cc (font::load_desc): Fix typo in error message.
2395 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
2397 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
2398 about returning without a value.
2400 * troff/charinfo.h (charinfo::get_special_translation): Cast
2401 TRANSLATE_NONE to int.
2403 * refer/token.cc (lookup_token, store_token): Remove bogus loop
2404 test. Fix test so that it works with n unsigned.
2406 * pic/pic.y (defaults_table): Fully bracket initializer.
2407 * pic/lex.cc (lookup_keyword): Likewise.
2408 * eqn/lex.cc (token_table, def_table): Likewise.
2409 * eqn/box.cc (param_table): Likewise.
2410 * troff/input.cc (warning_table): Likewise.
2411 * libgroff/font.cc (table): Likewise.
2412 * grops/ps.cc (ps_printer::special): Likewise.
2413 * grops/psrm.cc (resource_manager::process_file): Likewise.
2414 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
2415 * refer/command.cc (command_table): Likewise.
2416 * addftinfo/addftinfo.cc (param_table): Likewise.
2418 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
2419 about temp's being unused.
2420 (unused): New function.
2422 * groff/pipeline.cc: Declare c_fatal.
2424 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
2427 * libbib/index.cc (index_search_item::load): Prevent compiler
2428 warnings about fd_closer's being unused.
2429 (unused): New function.
2431 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
2433 * troff/input.cc (copy_mode_error): Make `prefix' static.
2436 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
2438 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
2439 HAVE_CC_OSFCN_H and modify accordingly.
2441 * troff/input.cc (init_charset_table): radicalex overlaps
2444 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
2445 udodo!hans@relay.NL.net).
2446 * groff/configure.in: Call it.
2448 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
2449 * groff/configure.in: Call it.
2450 * include/lib.h: Conditionalize declaration of pclose.
2452 * troff/div.cc (last_page_number): New global variable.
2453 (top_level_diversion::begin_page): Exit if we just printed the
2455 * troff/div.h (last_page_number): Declare it.
2456 * troff/input.cc (parse_output_page_list): Set last_page_number.
2458 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
2459 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
2460 tmac/tmac.X: Likewise.
2461 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
2462 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
2464 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
2466 * tmac/doc-ditroff (hK): Remove groff specific code which
2467 prevented page-breaks between separate manual entries. If this is
2468 the first page, don't set the page number to 1.
2470 * acgroff.m4 (GROFF_POSIX): New macro.
2471 * configure.in: Use it.
2473 * troff/node.cc (class real_output_file,
2474 real_output_file::real_output_file,
2475 real_output_file::~real_output_file): Conditionalize use of
2476 popen/pclose on POPEN_MISSING.
2477 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
2478 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
2479 (pipe_source): Similarily.
2481 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
2483 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
2484 presence of declarations by trying to compile example with
2485 conflicting declarations. (gcc only gives a warning for missing
2488 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
2490 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
2491 (from Ulrich Lauther).
2493 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
2495 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
2497 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
2499 * indxbib/indxbib.cc (write_hash_table): Add code for case where
2500 pointers and ints have different sizes.
2502 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
2504 * tmac/tmac.s (par*env-init): Call par@reset.
2506 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
2508 * tmac/tmac.s (@IP): Switch to a new environment when diverting
2510 (par*push-tag-env, par*pop-tag-env): New macros.
2512 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
2514 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
2515 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
2517 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
2518 comment. Include <time.h>.
2520 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
2522 * grops/ps.cc (is_small_h, is_small_v): Deleted.
2523 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
2526 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
2528 * troff/input.cc (read_request): Only print a prompt if reading
2529 from the terminal. Also clearerr on EOF if reading from the
2530 terminal. Declare isatty.
2532 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
2534 * refer/label.y: Rename map_t to map_func and extractor_t to
2537 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
2539 * include/assert.h: Don't use volatile.
2540 * libgroff/assert.cc: Likewise.
2542 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
2544 * troff/input.cc (abort_request): Look at character in tok before
2547 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
2549 * troff/troff.h (NO_RETURN): Deleted.
2550 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
2551 * troff/input.cc (exit_troff): Likewise
2553 * Makefile.in: Remove `Making ...' messages since GNU make now
2556 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2558 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
2560 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
2563 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
2565 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
2567 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
2569 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
2570 MARK_REG if there was no left delimiter.
2572 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
2574 * pic/troff.cc (troff_output::text): Set line thickness to
2575 relative before outputting text.
2577 * tmac/tmac.e (@k): Don't zero ?T.
2580 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
2582 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
2584 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
2586 * troff/input.cc (decode_args): Warn about unquoted tabs (from
2589 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
2591 * troff/input.cc (ignoring): New variable.
2592 (ignore): Set ignoring during call to do_define_macro.
2593 (do_define_macro): Clear ignoring before interpolating terminating
2595 (copy_mode_error): New function.
2596 (get_char_for_escape_name, read_long_escape_name,
2597 interpolate_arg): Use copy_mode_error.
2598 (warning_table): Add WARN_IG.
2599 * troff/troff.h (WARN_IG): Declare.
2600 (WARN_TOTAL): Change accordingly.
2602 * groff/pipeline.c (strsignal): Rename to xstrsignal.
2603 * groff/groff.cc (strsignal): Delete declaration.
2605 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
2607 * troff/div.cc (page_offset): Use 'm' as default scaling.
2609 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
2611 * nroff/nroff.sh: Ignore -u.
2613 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
2615 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
2617 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
2619 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
2621 (B2): With -Tascii, leave additional vertical space before
2622 and after. Ensure that the left and right indent is restored to
2623 what it was even if the point size changes. Don't call
2624 par@finish. Change the indent, line length and title length
2625 directly. With -Tascii, make the width of the box 1n less.
2626 (B1): Remember 1n at the current point size. Don't call
2627 par@reset. Change the indent, line length and title length
2628 directly. Ensure that the temporary indent is preserved.
2629 (par*box-mark-top): Turn off no spacing mode.
2631 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
2633 * Makefile.in (dist): Use .gz suffix.
2635 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
2637 * troff/input.cc (main): Add return 0.
2638 * pic/main.cc (main): Use return instead of exit.
2639 * tbl/main.cc (main): Likewise.
2640 * eqn/main.cc (main): Likewise.
2641 * grops/ps.cc (main): Likewise.
2642 * grotty/tty.cc (main): Likewise.
2643 * groff/groff.cc (main): Likewise.
2644 * grodvi/dvi.cc (main): Likewise.
2645 * refer/refer.cc (main): Likewise.
2646 * indxbib/indxbib.cc (main): Likewise.
2647 * lkbib/lkbib.cc (main): Likewise.
2648 * soelim/soelim.cc (main): Likewise.
2649 * addftinfo/addftinfo.cc (main): Likewise.
2650 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
2651 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
2653 * troff/token.h (process_input_stack): Don't declare as static.
2654 * troff/input.cc: Likewise.
2656 * troff/node.c (invalidate_fontno): Make it a static member of
2657 class font_family. Change callers.
2658 * troff/node.c: Change declaration.
2660 * tbl/main.cc (struct input_entry_format): Add explicit public
2662 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
2663 struct double_hline_stuff): Likewise.
2664 * tbl/table.h (struct entry_format): Likewise.
2665 * pic/object.h (struct saved_state): Likewise.
2667 * include/stringclass.h: Add forward declarations of friend
2668 functions that are later declared as inline. Don't include inline
2669 specifier in friend declaration.
2671 * libgroff/lib.h: Declare popen and pclose.
2672 * acgroff.m4 (GROFF_POPEN): New macro.
2673 * configure.in: Call it.
2675 * include/lib.h (PI): New constant. Undef first if necessary.
2676 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
2677 * grops/ps.cc (degrees, radians): Likewise.
2678 * libgroff/font.cc (font::get_skew): Likewise.
2680 * grops/ps.cc (is_ascii): New function.
2681 (ps_output::put_string): Use is_ascii. Use csprint rather than
2683 (ps_printer::define_encoding): Use csspace.
2684 * libgroff/strtol.c (ISASCII): New macro.
2685 (strtol): Cast arguments to is*() and tolower() to unsigned char.
2686 Use ISASCII rather than isascii.
2687 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
2688 * libgroff/cset.cc: Likewise.
2689 * libdriver/input.cc: Include cset.h.
2690 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
2693 * refer/refer.cc (main): Use %ld rather than %d for longs.
2695 * libbib/index.cc (index_search_item_iterator::get_tag): Use
2698 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
2700 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
2702 * troff/input.cc (hyphenation_code): Skip white space between
2705 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
2707 * tbl/table.h (table::entry_list_tailp): New member.
2708 (table::table): Initialize it.
2709 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
2712 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
2714 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
2715 with negative horizontal positions. Remove casts of glyph::hpos to
2717 (USHRT_MAX): Delete definition.
2718 (SHRT_MAX, SHRT_MIN): New definitions.
2719 (glyph::hpos): Change type to short.
2720 (tty_printer::end_page): Output multiple backspaces if necessary.
2721 Remove casts of glyph::hpos to int.
2723 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
2725 * tmac/tmac.s (@RT): New definition.
2727 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
2729 * refer/refer.cc (do_file): Make sure current_filename is set when
2732 * pic/common.cc (common_output::dot_line): Handle zero length
2735 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
2737 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
2738 (par@init): Initialize \n[HY].
2740 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
2742 * troff/dictionary.cc (dictionary::remove): Continue when
2745 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
2747 * Makefile.com (.y.cc): Avoid ending up with two versions of
2750 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
2752 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
2753 (\(,C): Likewise. Also fix typo.
2755 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
2757 * lib.h: Delete extraneous semi-colon.
2759 * Add pso request: `so' from a pipe.
2760 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
2761 (file_iterator::close): New function.
2762 (file_iterator::~file_iterator, file_iterator::next_file): Use
2763 file_iterator::close.
2764 (file_iterator::backtrace): Say `process' rather than `file' when
2765 the stream is popened.
2766 (pipe_source): New function.
2767 (init_input_requests): Bind ".pso" to pipe_source.
2769 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
2771 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
2773 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
2774 digits in lower case.
2776 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
2778 * Version 1.08 released.
2780 * Makefile.in (dist): Insert || true after ln -s commands that
2783 * mm: Update to mm 1.16.
2785 * acgroff.m4 (GROFF_CSH_HACK): New macro.
2786 * configure.in: Call GROFF_CSH_HACK. Substitute for
2788 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
2790 * nroff/Makefile.sub (nroff): New target.
2791 (install_data): Install nroff.
2792 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
2793 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
2795 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
2797 * eqn/Makefile.sub (neqn): Add chmod +x.
2799 * grog/Makefile.sub (grog): Remove spurious semi-colon.
2801 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
2803 * troff/input.cc (string_iterator::string_iterator()): Initialize
2806 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
2808 * troff/div.cc (macro_diversion::space,
2809 top_level_diversion::space): Don't set high_water_mark.
2810 (macro_diversion::output, top_level_diversion::output): Don't
2811 include post line space in high water mark.
2813 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
2815 * eqn/eqn.y: Don't define YYDEBUG.
2816 * pic/pic.y: Likewise.
2818 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
2820 * tmac/tmac.e ([3): Add space after comma following editors.
2821 Change double spaces to single spaces.
2822 ([4): Change double spaces to single spaces.
2824 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
2825 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
2826 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
2827 after %!PS-Adobe- (for Newsprint).
2829 * troff/div.cc (top_level_diversion::begin_page): When
2830 before_first_page is 1, set page_number to 1.
2832 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
2834 * eqn/box.cc (box::top_level): Protect equation with \&.
2836 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
2838 * groff/groff.cc (possible_command::set_name): Delete old name.
2840 * groff/groff.cc (possible_command::~possible_command): Use
2843 * troff/node.cc (troff_output_file::begun_page): New member.
2844 (troff_output_file::troff_output_file): Initialize it.
2845 (troff_output_file::really_begin_page): Only output V command if a
2846 page has been begun.
2848 * pic/pic.y (placeless_element): Delete argument to PRINT after
2851 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
2853 * Make wrapman work.
2854 * troff/div.h (class top_level_diversion): Replace
2855 first_page_begun by before_first_page (with opposite sense).
2856 * Change first_page_begun to before_first_page inverting sense.
2857 * troff/div.cc (class nl_reg): New class.
2858 (init_div_requests): Use class nl_reg for \n(nl.
2859 (top_level_diversion::begin_page): Don't call
2860 output_file::begin_page if before_first_page is 2;
2861 reset before_first_page afterwards. If have_next_page_number is
2862 false, then always increment page_number.
2863 * tmac/tmac.an: Set traps within TH rather than at the top-level.
2864 Restore compatibility mode after loading, and then disable
2865 compatibility mode in TH.
2867 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
2869 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
2871 * troff/node.h (output_file::trailer): Declare.
2872 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
2873 * troff/node.cc (output_file::trailer): New function.
2874 (troff_output_file::~troff_output_file): Move most code into...
2875 (troff_output_file::trailer): New function.
2876 (class troff_output_file): Delete page_length member. Declare
2878 (troff_output_file::really_begin_page): Use current page length
2879 for final V command.
2881 * tbl/main.cc (struct options): New decimal_point_char member.
2882 (options::options): Initialize this.
2883 (process_options): Implement decimalpoint option.
2884 (process_data): Pass decimal_point_char option to table::table.
2885 * tbl/table.h (class table): New decimal_point_char member.
2886 (table::table): Add additional argument.
2887 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
2888 second argument specifying decimal point character. Use this
2890 (table::table): Initialize decimal_point_char.
2891 (table::add_entry): Change call to find_dot.
2893 * troff/input.cc (get_copy, token::next): Implement \V.
2894 (interpolate_environment_variable): New function.
2896 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
2898 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
2899 * pic/pic.y: Likewise.
2901 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
2903 * refer/ref.cc (reference::insert_field, reference::delete_field):
2905 * troff/number.cc (parse_term): Likewise.
2907 * acgroff.m4 (GROFF_PROG_YACC): New macro.
2908 * configure.in: Use GROFF_PROG_YACC.
2910 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
2912 * Makefile.in (OPTIMIZE): New define.
2913 (DEBUG): Empty by default.
2914 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
2916 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
2917 (GROFF_ARRAY_DELETE): Likewise.
2918 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
2920 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
2922 * devps/psstrip.sed: Use different delimiter on last line (so that
2923 it works with BSD 4.4 sed.)
2925 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
2927 * devps/psstrip.sed: Delete comments.
2929 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
2930 optind, opterr, optarg.
2931 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
2934 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
2936 * Makefile.in (check): Dummy target.
2938 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
2940 * Version 1.07 released.
2942 * Integrate mm 1.11.
2944 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
2945 where start_col was meant.
2947 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
2949 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
2951 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
2953 * troff/input.cc (token::next): Make \z\o'...' and similar things
2956 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
2958 (environment): Add margin_character_flags member.
2959 * env.cc (environment::environment(symbol),
2960 environment::environment(const environment *): Initialize
2961 margin_character_flags.
2962 (margin_character): Rewrite.
2963 (environment::output_line): Add a margin character if
2964 margin_character_flags is non-zero. Turn off the
2965 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
2966 zero, use margin_character_node without copying and then set
2967 margin_character_node to 0.
2969 * devps/DESC.in: Change minimum size to 1000.
2971 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
2973 * troff/symbol.h (symbol::hash): Change return type to unsigned
2975 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2978 * test-groff: Use -r rather than -x.
2980 * grops/psfig.diff: Include in distribution again.
2982 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
2984 * Makefile.in (dist): Use gzip.
2986 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
2988 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2989 unistd.h as well as in stdlib.h.
2990 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2991 defined; otherwise include <sys/types.h> and <unistd.h> if
2992 UNISTD_H_DECLARES_GETOPT is defined.
2994 * configure.in: use builtin(include, ... rather than include(...
2995 * configure: Regenerate with autoconf 1.3.
2997 * libdriver/print.cc (printer::adjust_arc_center): Use new
2998 algorithm suggested by Andy Fyfe.
3000 * libdriver/printer.cc (printer::adjust_arc_center): New function.
3001 * include/printer.h: Declare this.
3002 * grops/ps.cc (ps_printer::draw): Use it.
3003 * grodvi/dvi.cc (dvi_printer::draw): Use it.
3005 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
3007 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
3009 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
3011 * eqn/main.cc (main): Handle "eqn -".
3013 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
3015 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
3017 * mm: Integrate version 1.08.
3019 * pic/troff.cc (troff_output::finish_picture): Set
3020 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
3021 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
3022 if it's not defined. Check whether the register is non-zero rather
3023 than whether it's not defined.
3024 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
3026 * indxbib/indxbib.cc: Move all signal handling into...
3027 * indxbib/signal.c: New file.
3028 * configure.in: Call AC_RETSIGTYPE.
3030 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
3031 * configure.in: Call GROFF_STRUCT_EXCEPTION.
3032 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
3034 * troff/input.cc (token::token, token::operator=): Work round SGI
3036 * pic/object.cc (position::position): Likewise.
3038 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
3040 * pic/pic.h: Move declaration of hypot().
3042 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
3044 * pic/pic.h: Declare hypot().
3046 * pic/pic.h: Define M_PI if necessary.
3048 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
3050 * tmac/tmac.e (re): Add alternative version that doesn't use groff
3053 * devps/prologue.ps (RE): Handle the possibility that the old font
3054 doesn't have a FontName entry.
3056 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
3058 * tmac/tmac.e (fam): Redefine to set family in environment 2.
3059 (@C): Use @fam not fam.
3061 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
3063 * lookbib/lookbib.cc (main): Change type of start to const char *.
3064 * lkbib/lkbib.cc (main): Likewise.
3066 * eqn/lex.cc (definition::definition): Don't use member
3067 initializer syntax for members of anonymous unions.
3069 * troff/input.cc (input_stack::backtrace): Change type of to const
3072 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
3074 * include/stringclass.h (class string): Declare inline friend
3075 functions as inline in class declaration.
3076 * troff/hvunits.h (class hunits, class vunits): Likewise.
3077 * include/refid.h (class reference_id): Likewise
3078 * troff/troff.h (points_to_units(units), scale(units, double)):
3079 Delete declarations.
3080 * libdriver/input.cc (get_char): Delete declaration.
3081 * include/lib.h: Change 2nd argument of getopt from const char **
3083 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
3084 char **' before assigning to a `const char **'.
3085 * tbl/table.cc: Delete extra declarations of prints().
3087 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
3089 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
3090 char **' before assigning to a `const char **'.
3092 * libgroff/errarg.cc (errarg::errarg): Don't use member
3093 initializer syntax for members of anonymous unions.
3095 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
3097 * mm: Integrate version 1.07.
3099 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
3101 * troff/input.c (translate2): Rename to
3102 (translate_no_transparent).
3103 (init_input_requests): Rename tr2 to trnt.
3105 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
3107 * troff/charinfo.h (class charinfo): Add transparent_translate field.
3108 (charinfo::set_translation, charinfo::set_special_translation):
3109 Add second argument that specifies value for
3110 transparent_translate.
3111 (charinfo::get_translation, charinfo::get_special_translation):
3112 Add optional second argument that specifies whether translation is
3113 being used for transparent throughput.
3114 * troff/input.cc (charinfo::set_translation,
3115 charinfo::set_special_translation): Handle second argument.
3116 (charinfo::charinfo): Initialize transparent_translate.
3117 (translate): Split main part off into
3118 (do_translate): New function. Pass argument saying whether
3119 translation applies to transparent throughput.
3120 (translate2): New request.
3121 (init_input_requests): Bind translate2 to `tr2'.
3123 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
3125 * tbl/table.h (class table): Add `nokeep' flag.
3126 * tbl/main.cc (process_options): Handle `nokeep' option.
3127 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
3128 table::do_bottom): Don't output keep/release macro definitions or
3129 calls when `nokeep' option has been specified.
3131 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
3133 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
3135 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
3137 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
3138 block_entry::divert, alphabetic_block_entry::divert): Add extra
3139 argument giving column separation.
3140 (table::compute_widths): Pass column separation to
3141 table_entry::divert().
3142 (block_entry::do_divert): If an entry spans multiple columns and a
3143 minimumum width has been specified for each column, then set the
3144 line length to the sum of the widths (plus possibly the column
3147 * troff/input.cc (set_escape_char): Don't set the escape_char
3148 until after calling has_arg().
3150 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
3152 * tbl/table.cc (table::do_top): Add missing \s0 for double box
3155 * tbl/table.cc (table::print_double_hline): Avoid extra new line
3156 in case where r > nrows - 1.
3158 * tbl/table.cc (BODY_HEIGHT): Deleted.
3159 (LINE_SEP): New definition.
3160 (table::print_single_hline, table::print_double_hline,
3161 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
3162 table::do_row, table::do_top): Use LINE_SEP space before a line
3163 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
3165 * tbl/table.cc (text_entry::print_contents): New function.
3166 (text_string_name, right_text_string_name): Deleted.
3167 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
3168 (simple_text_entry::do_width, numeric_text_entry::do_width,
3169 alphabetic_text_entry::do_width): Don't store the contents of the
3171 (left_text_entry::simple_print, right_text_entry::simple_print,
3172 center_text_entry::simple_print,
3173 alphabetic_text_entry::simple_print,
3174 numeric_text_entry::simple_print): Print the entry directly
3175 instead of using the stored string.
3177 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
3179 * devps/Makefile: Strip PostScript files.
3180 * devps/prologue: Rename to...
3181 * devps/prologue.ps.
3182 * devps/psstrip.sed: New file.
3183 * devps/download: Use .pfa rather than .ps for installed versions
3186 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
3188 * troff/env.cc (input_trap): Give a warning if the argument is out
3191 * troff/env.cc (adjust): Treat negative argument as missing. Round
3192 argument > 5 down to 5.
3194 * troff/env.cc (center, right_justify): Make negative argument zero.
3196 * troff/div.cc (page_offset, vertical_position_traps): Treat
3197 invalid argument as missing.
3198 * troff/env.cc (line_spacing, line_length, title_length, indent,
3199 underline, hyphen_line_max_request, control_char,
3200 no_break_control_char, widow_control_request, adjust, input_trap,
3201 point_size): Likewise.
3202 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
3203 constant_space): Likewise.
3204 * troff/input.cc (compatible, shift, warn_request,
3205 set_escape_char): Likewise.
3207 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
3208 * tbl/table.cc (table::table): Likewise.
3210 * Makefile.dev (install_dev): depends on $(DEVFILES).
3212 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
3214 * devX75, devX75-12, devX100, devX100-12: New directories.
3215 * Makefile.in: Add these to DEVDIRS.
3217 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
3218 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
3219 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
3220 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
3222 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
3223 (uninstall): New target.
3224 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
3225 uninstall_prog, uninstall_dev): New targets.
3227 * troff/div.cc (return_request): Treat an invalid argument as
3230 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
3232 * tmac/tmac.e ((f): Set up the environment even when there's a
3233 current diversion. Transperently throughput a call to @N.
3236 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
3238 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
3239 up to vertical resolution.
3241 * tbl/table.cc (table::do_row): Change row number after printing
3244 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
3246 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
3248 * Rename CHANGES to NEWS.
3250 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
3252 * libgroff/new.cc (operator new): Avoid calling malloc(0).
3254 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
3256 * man.ultrix: Removed.
3258 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
3260 * Makefile.comm (extraclean): Delete files whose names begin with
3263 * pic/troff.cc (troff_output::text): Fix typo in implementation of
3266 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
3268 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
3269 * troff/div.cc (page_length, need_space, space_request): Treat
3270 invalid optional argument as missing.
3271 * troff/env.cc (number_lines): If the first argument is present
3272 but not a number, turn on line numbering, don't change the next
3273 line number and parse the remaining arguments.
3275 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
3277 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
3279 * eqn/box.h: Change declaration accordingly.
3280 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
3281 the specified size was bad but don't give an error. Check for
3283 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
3284 * eqn/lex (do_size): Likewise.
3286 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
3288 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
3291 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
3293 * tbl/table.cc (table::init_output): Improve error message when
3294 table won't fit on one page.
3296 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
3298 * pic/troff.cc (troff_output::start_picture): Generate line
3299 containing a horizontal motion equal to the width of the picture.
3301 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
3302 using GROFF_COMMAND_PREFIX environment variable.
3304 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
3306 * mdate.sh: Use $NF rather than $(NF).
3308 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
3310 * pic/main.cc (main): Use %1 not %c in argument to warning.
3312 * eqn/main.cc (main): Output code to check that geqn was given the
3315 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
3317 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
3318 `ln -s ../Makefile .; make; rm -f Makefile'.
3320 * troff/hyphen: Rename to...
3322 * troff/input.cc (main): Delete -H option. Don't call
3324 * troff/env.cc: Include searchpath.h and macropath.h.
3325 (exception_dictionary): Deleted.
3327 (read_hyphen_file): Deleted.
3328 (hyphenation_language): New struct.
3329 (class trie, class hyphen_trie): Move declarations up.
3330 (trie_node::~trie_node): Deleted.
3331 (trie::delete_trie_node): New function.
3332 (trie::do_delete): New pure virtual function.
3333 (hyphen_trie::do_delete): New function.
3334 (trie::~trie): New function.
3335 (hyphen_trie::~hyphen_trie): New function.
3336 (trie::clear): No need to chcek that tp is not 0.
3337 (current_language, language_dictionary): New variables.
3338 (hyphen_word): Give an error if no current language. Use
3339 exceptions dictionary in current language.
3340 (hyphen_trie::read_patterns_file): Find file using macro_path.
3341 Allow comments (starting with %) in patterns file. Don't make it
3342 a fatal error if the file can't be found.
3343 (hyphenate): Return if no current language. Get the exceptions
3344 dictionary and the hyphenation patterns from the current language.
3345 (set_hyphenation_language): New variable.
3346 (hyphenation_patterns_file): New function.
3347 (hyphenation_language_reg): New class.
3348 (hyphenation_language_reg::get_string): New function.
3349 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
3350 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
3352 * groff/groff.cc (main, help, synopsis): Delete -H option.
3353 * include/Makefile.sub: Don't define HYPHENFILE.
3354 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
3355 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
3356 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
3357 hyphenation patterns.
3359 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
3361 * eqn/neqn.sh: New file.
3362 * eqn/Makefile.sub: Handle neqn.sh.
3364 * eqn/eqn.h: Declare `nroff' variable.
3365 * eqn/box.cc (param_table): Add `nroff' param.
3367 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
3369 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
3371 * troff/troff.h (WARN_FONT): New warning.
3372 (WARN_TOTAL): Change accordingly.
3373 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
3374 (warning_table): Add WARN_FONT.
3375 * troff/node.cc (mount_font_no_translate): Pass argument to
3376 font::load_font. If this is non-zero, give a warning.
3377 Don't give an error message when accessing a font that has already
3378 been found to be invalid.
3379 * include/font.h (font::load, font::load_font): Add additional
3380 optional argument which suppresses error message if the font is
3382 * libgroff/font.cc (font::load_font): Handle additional argument.
3383 (font::load): Add additional argument. If this is non-null, set it
3384 to 1 and don't give error message.
3386 * include/printer.h (printer::end_page): Add argument giving
3388 * libdriver/input.cc (do_file): Pass this.
3389 * grops/ps.cc (ps_printer::end_page): Add argument.
3390 * grodvi/dvi.cc (dvi_printer::end_page,
3391 draw_dvi_printer::end_page): Add argument.
3392 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
3393 columns_per_page members. New member nlines.
3394 (DEFAULT_LINES_PER_PAGE): Deleted.
3395 (tty_printer::tty_printer): Don't compute lines_per_page from
3396 font::paperlength. Don't compute columns_per_page from
3398 (tty_printer::add_char): Don't check horizontal position against
3399 columns_per_page. Grow glyphs vector if neccessary.
3400 (tty_printer::end_page): Add argument giving page_length in units.
3401 Discard lines past end of page.
3403 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
3405 * tmac/tmac.tty-char: Fix definition of \(/l.
3407 * tmac/tmac.X: Define \(en.
3409 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
3411 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
3412 lpq, then use lp rather than lpr.
3414 * tmac/tmac.s (par@reset): Don't call `ad'.
3415 (par*env-init): Call `ad'.
3417 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
3419 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
3422 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
3423 * indxbib/indxbib.cc: Likewise.
3425 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
3427 * libgroff/putenv.c: New file.
3428 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
3429 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
3430 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
3431 stdlib.h with AC_HAVE_HEADERS.
3433 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
3435 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
3438 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
3440 * eqn/box.cc (gsize): Make it an int.
3441 (set_gsize): Parse argument handling increment or decrement.
3442 (box::top_level): Convert gsize to a string.
3444 * troff/input.cc (exit_troff): Make buf unsigned char [].
3445 Call to make_temp_iterator casts buf to char*.
3447 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
3449 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
3450 * Makefile.cpg (depend.temp): Likewise.
3452 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
3454 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
3456 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
3458 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
3460 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
3462 * Version 1.06 released.
3464 * Integrate mm 1.04.
3466 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
3468 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
3470 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
3472 * afmtodit/afmtodit.pl: Add -n option that disables generation of
3474 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
3475 afmtodit. Regenerate.
3477 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
3478 @f back past the current position.
3480 * tmac/tmac.e: Change calls to @R so that comments are not part of
3483 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
3485 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
3487 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
3488 check that we can link a call to a function declared in <stdio.h>.
3489 (GROFF_UNISTD_H): New macro.
3490 * configure.in: Call it.
3491 * Makefile.in: Document it.
3492 * include/posix.h: New file.
3493 * troff/troff.h: Don't include <osfcn.h>
3494 * troff/input.cc: Include posix.h.
3495 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
3497 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
3498 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
3500 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
3501 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
3502 * libbib/search.cc (O_RDONLY): Delete definition.
3503 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
3504 Don't include <osfcn.h>.
3506 * acgroff.m4 (GROFF_TIME_T): New macro.
3507 * configure.in: Call it.
3508 * Makefile.in: Document it.
3510 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
3511 * configure.in: Call it.
3512 * Makefile.in: Document -DTRADITIONAL_CPP.
3513 * include/ptable.h: Don't include generic.h.
3516 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
3517 Afterwards remove [T1 and [T2.
3518 (ref*spec!0, ref*spec!2): Use T1 rather than T.
3519 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
3520 (ref*add-T2): Renamed from ref*add-T.
3521 (ref*add-T1): New macro.
3523 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
3525 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
3527 * libbib/index.cc: Include <fcntl.h>.
3528 (O_RDONLY): Define if necessary.
3529 (make_index_search_item, index_search_item_iterator::get_tag,
3530 index_search_item::check_files): Use O_RDONLY.
3531 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
3532 (O_RDONLY): Define if necessary.
3533 (search_list::add_file): Use O_RDONLY.
3534 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
3536 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
3539 * libbib/index.cc (S_ISREG): Define it if necessary.
3540 (index_search_item::load): Use S_ISREG.
3542 * include/driver.h: Include <errno.h>.
3544 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
3546 * eqn/box.cc (body_height): Increase default value to 85.
3547 (body_depth): Increase default value to 35.
3549 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
3551 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
3552 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
3553 protected from expansion with \E.
3555 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
3557 * Makefile (Makefile): New target.
3559 * Makefile.sub (configure, distfiles): New targets.
3561 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
3564 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
3566 * eqn/box.cc (param_table): Add body_height and body_depth.
3568 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
3570 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
3572 * psbb/Makefile.sub: Don't link with libgroff.a.
3574 * acgroff.m4 (GROFF_PUTENV): New macro.
3575 * configure.in: Call GROFF_PUTENV.
3576 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
3577 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
3580 * troff/env.cc (distribute_space): Rename force_forward argument
3581 to force_reverse. Reverse the list if force_reverse is true.
3583 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
3585 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
3587 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
3588 height or depth to be negative. Guard against SUP_RAISE quantity
3591 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
3593 * devps/generate/textmap: Add `an' (arrowhorizex).
3594 * tmac/tmac.ps: \(an overlaps horizontally.
3595 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
3597 * devps/symbolchars: Add arrowverttp, arrowvertbt.
3598 * devps/textmap: Add arrowvertex.
3599 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
3600 updownarrow delimiters.
3601 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
3603 * tbl/table.cc (simple_entry::position_vertically,
3604 block_entry::position_vertically): For a centered entry, perform
3605 the motion in two stages.
3607 * refer/refer.cc (split_punct): Don't call lookup_token if there
3610 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
3612 * troff/input.cc (token::next): Delete token_node after copying
3615 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
3618 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
3620 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
3622 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
3624 * grops/ps.cc (usage): -b option takes an argument.
3626 * devps/prologue (PLG): New procedure.
3627 * grops/ps.cc (main, usage): New -g option.
3628 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
3631 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
3633 * include/cset.h: Include <limits.h> if we have it.
3635 * libgroff/illegal.cc: New file.
3636 * include/lib.h (illegal_input_char): Use table.
3637 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
3638 * pic/lex.cc (ARG1): Renumber to 14.
3639 * eqn/lex.cc (ARG1: Likewise.
3641 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
3642 (eg 1.05.90) correctly.
3644 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
3646 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
3647 Rename $r and $R registers to $v and $V.
3648 ($r, $R): Initialize to 0.
3649 (@v, @V): New macros.
3653 * troff/input.cc (main, usage): Add -R option that says not to
3655 * eqn/main.cc (main, usage): Rename -n to -R.
3657 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
3659 * devps/DESC.in: Leave font positions 5-9 blank.
3660 * devdvi/DESC.in: Likewise.
3662 * grog/grog.pl: Handle `.PS <file' correctly.
3664 * troff/input.cc (input_stack::push): Improve error message when
3665 input stack limit exceeded.
3667 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
3669 * refer/refer.cc (main): Fix typo in handling of `a' option.
3671 * refer/refer.cc (do_bib): In state START after a newline remain
3674 * groff/groff.sh: Deleted.
3675 * groff/Makefile.sub: Delete handling of groff.sh.
3677 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
3678 to determine whether to use \X'ps:...'.
3679 * tmac/troffrc: Set 0p register to 0.
3680 * tmac/tmac.ps: Set 0p register to 1.
3682 * groff/groff.cc: Support -X option. Give warning for -TXps and
3683 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
3684 * tmac/troffrc: Support -r.X=1.
3686 * pic/troff.cc (troff_output::dot): Don't test
3687 zero_length_line_flag.
3689 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
3691 * include/lib.h: Declare getopt() and friends unless
3692 STDLIB_H_DECLARES_GETOPT is defined.
3694 * doc/chars.tr: Delete.
3695 * man/groff_char.man: New file.
3697 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
3699 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
3700 user has changed register format.
3702 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
3704 * groff/groff.cc: Get rid of device_table. Get postprocessor from
3705 `postpro' command in DESC file. Get spooler command from `print'
3706 command in DESC file. Execute spooler command with /bin/sh.
3708 * groff/groff.cc: Split Unix-specific parts into...
3709 * groff/pipeline.c: New file.
3712 * COPYING: New file.
3713 * all files: Update copyright notices.
3715 * Rearrange files. Redo Makefiles. Use autoconf.
3717 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
3719 * troff/input.c (charinfo_to_node_list): Interpret character
3720 definition with escape_char of `\'.
3722 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
3724 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
3725 Define INT_DIGITS as big enough for 64-bit integer.
3726 * lib/strtol.c: Don't include lib.h.
3727 * lib/lib.h: Delete ifdef __cplusplus stuff.
3729 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
3731 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
3732 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
3733 get DESC from current directory.
3735 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
3737 * tbl/main.c (main): Always reset the line number when reading
3740 * tbl/table.c (table::print_single_hline, table::print_double_hline,
3741 table::define_bottom_macro, table::do_row, table::do_top): Round
3742 vertical spacing up to vertical resolution.
3744 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
3746 * ps/ps.h (enum resource_type): Avoid comma at end of
3748 * dvi/dvi.c (class dvi_printer): Likewise.
3749 * dvi/tfmtodit.c (gf::load): Likewise.
3750 * refer/label.y (struct expression): Likewise.
3751 * refer/refer.c (class label_processing_state): Likewise.
3752 * refer/indxbib.c (do_file): Likewise.
3753 * troff/troff.c (enum warning_type): Likewise.
3754 * tbl/main.c (process_data): Likewise.
3755 * troff/charinfo.h (class charinfo):
3757 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
3759 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
3761 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
3763 * groff.c: Move to new groff subdirectory.
3764 * groff/Makefile: New file.
3765 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
3767 * man/mdate.sh: Use ls -L if supported.
3769 * Consolidate all header files produced by gendef into lib/defs.h.
3770 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
3771 Don't include path.h.
3772 * lib/Makefile (path.h): Don't generate.
3773 * troff/input.c: Include defs.h. Don't include config.h.
3774 * troff/Makefile (config.h): Don't generate.
3775 * refer/index.h: Don't include suffix.h.
3776 * refer/index.c: Include defs.h.
3777 * refer/indxbib.c: Include defs.h.
3778 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
3780 * refer/Makefile (suffix.h, path.h): Don't generate.
3781 * groff.c: Don't include config.h. Include defs.h.
3782 * Makefile (config.h): Don't generate.
3783 (lib/defs.h): Generate.
3784 (topclean): Remove lib/defs.h.
3786 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
3788 * lib/malloc.c, lib/getpagesize.h: Deleted.
3789 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
3791 * lib/Makefile: Delete malloc-related stuff.
3792 * lib/new.c: Workaround COOKIE_BUG if necessary.
3794 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
3795 needed header files directly.
3796 * refer/refer.h: Omit definition of DEFAULT_INDEX.
3797 * Makefile: Include definition of DEFAULT_INDEX in path.h.
3799 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
3801 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
3803 * lib/font (font::load_desc, font::load): Don't split argument of
3805 (font::handle_unknown_font_command): Change type.
3806 * ps/ps.c (ps_font::handle_unknown_font_command,
3807 handle_unknown_desc_command): Change type.
3808 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
3810 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
3812 * lib/font.h (font::handle_unknown_font_command): Add file and
3814 * lib/font.c (font::handle_unknown_font_command):
3815 * ps/ps.c (ps_font::handle_unknown_font_command):
3816 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
3817 lineno arguments. Use _with_file_and_line functions for error
3820 * lib/fontfile.c (font::unknown_desc_command_handler): New static
3822 * lib/font.c (font::set_unknown_desc_command_handler): New
3824 (font::load_desc): For unknown commands, call
3825 unknown_desc_command_handler if not null.
3826 * lib/font.h (class font): Declare them.
3827 (FONT_COMMAND_HANDLER): New typedef.
3828 * ps/ps.c (handle_unknown_desc_command): New function.
3829 (main): Set bflag if we had a -b option. Call
3830 font::set_unknown_desc_command_handler.
3831 (broken.h): Don't include.
3832 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
3834 * ps/devps/Makefile: Add `broken' command to DESC file using
3835 BROKEN_SPOOLER_FLAGS.
3837 * macros/tmac.e ([, ]): Add as synonyms for { and }.
3839 * macros/tmac.e ($p): Only exdent if \$3 > 0.
3841 * macros/tmac.e (@R, @S): New macros.
3842 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
3843 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
3844 Declare $H, $[0-9], .. macros with @S.
3845 Declare |0, |1, |2, |3 strings with @S.
3847 * macros/tmac.e (@S): Rename to @U.
3849 * macros/tmac.e (@z): Define @b and bp as empty instead of
3852 * macros/tmac.e (@m): Deleted.
3853 (@h): Don't call @m.
3854 (@z): Don't set @m trap.
3856 * macros/tmac.e ($h, $f): Define |z as empty string.
3858 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
3861 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
3863 ()f): Likewise for * register.
3865 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
3866 argument is missing, don't change $R. Call sr with three
3867 arguments when initializing.
3869 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
3871 * macros/tmac.e (sr): New macro.
3872 Initialize $r and $R using sr.
3874 * macros/tmac.e (,): Delete \*(#[.
3876 * troff/env.c (set_tabs): Read the tab type even if the position
3877 is bad. Allow the position of the first tab stop to be negative.
3879 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
3881 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
3883 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
3884 rather than -DPATHCONF_MISSING.
3885 * Makefile: Get rid of PATHCONF_MISSING.
3887 * refer/map.c: New file.
3888 * refer/index.c: Interface to mmap through map.c. Rename map_size
3890 * refer/Makefile: Handle map.c.
3891 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
3893 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
3895 * Makefile: RANLIB should be `true' if there is no ranlib.
3896 * lib/Makefile (libgroff.a): Simplify.
3897 * driver/Makefile (libdriver.a): Simplify.
3899 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
3900 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
3903 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
3905 * troff/env.c (compare_ranges): Declare as extern "C".
3907 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
3909 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
3911 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
3913 * pic/troff.c (troff_output::text): Merge in grops_output::text,
3914 but conditionalize use of \X based on \*(.T.
3915 (grops_output::*): Deleted.
3916 * pic/output.h: Delete declaration of make_grops_output.
3917 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
3918 by default. -n sets it to 0.
3919 (usage): Corresponding changes.
3920 * groff.c (main): Don't pass -x or -p to pic.
3921 * groff.sh: Likewise.
3923 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
3926 * ps/devps/afmtodit: Change calculation of asc_boundary and
3927 desc_boundary. Make these bounds inclusive.
3928 * ps/devps: Regenerate font files.
3930 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
3932 * macros/tmac.latin1: New file.
3933 * macros/tmac.tty-char: Use tmac.latin1.
3934 (tmac.tty-tr): Deleted.
3935 * macros/Makefile: Install tmac.latin1.
3936 * macros/tmac.dvi: Use tmac.latin1.
3937 * macros/troffrc: Translate \[char160] onto no-break space here.
3938 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
3940 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
3942 * macros/tmac.Xps: Use `do' request.
3944 * macros/tmac.ps: Use `do' request.
3946 * macros/tmac.e (@C): Use `do' request.
3948 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
3949 * macros/Makefile: Install tmac.X*.
3951 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
3952 * tty/Makefile: Don't install tmac.tty*.
3953 * macros/Makefile: Install tmac.tty*.
3955 * dvi/tmac.dvi: Move to macros.
3956 * dvi/Makefile: Don't install tmac.dvi.
3957 * macros/Makefile: Install tmac.dvi.
3959 * ps/tmac.ps*: Move to macros.
3960 * ps/Makefile: Don't install tmac.ps*.
3961 * macros/Makefile: Install tmac.ps*.
3963 * eqn/box.c: Provide draw_lines parameter corresponding to -D
3965 * macros/eqnrc: Set draw_lines parameter based on device.
3966 * groff.c: Don't pass -D flag to eqn.
3967 * groff.sh: Likewise.
3968 * eqn/main.c: Warn about use of -D.
3970 * troff/input.c (process_startup_file): New function.
3971 (main): Call process_startup_file().
3972 * macros/troffrc: New file.
3973 * macros/Makefile: Install troffrc.
3974 * groff.c (main): Don't pass extra -m option to troff. For a
3975 pseudo device pass the name of the pseudo device to troff using
3977 * groff.sh: Likewise.
3978 * groff.c (possible_command::prepend_arg): Deleted.
3980 * troff/input.c (do_request): New function.
3981 (init_input_requests): Bind "do" to do_request.
3983 * eqn/main.c (main): Instead of loading eqnchar from device directory,
3984 load eqnrc from macro directory.
3985 * macros/eqnrc: New file.
3986 * macros/Makefile: Install eqnrc.
3987 * ps/devps/eqnchar: Deleted.
3988 * ps/devps/Makefile: Don't install eqnchar.
3989 * dvi/devdvi/eqnchar: Deleted.
3990 * dvi/devdvi/Makefile: Don't install eqnchar.
3991 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3994 * lib/device.[ch]: New files.
3995 * lib/font.h (font::set_device_name, font::get_device_name):
3997 * lib/fontfile.c: Use device.h.
3998 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3999 * troff/input.c: Delete definition of `device'.
4000 (main): Don't initialize device.
4001 * troff/troff.h: Include device.h rather than declaring device.
4002 * troff/Makefile: No need to handle DEVICE.
4003 * driver/input.c: Include device.h. Don't use
4004 font::{set,get}_device_name.
4005 * groff.c, Makefile: Rename device.h to config.h.
4006 * groff.c: Use library device variable.
4007 * eqn/main.c: Use library device variable.
4008 * eqn/Makefile: No need to handle DEVICE.
4010 * lib/searchpath.[ch]: New files.
4011 * lib/Makefile: Handle searchpath.[ch].
4012 * troff/input.c (open_file, init_dirs): Deleted.
4013 (macro_dirs): Deleted.
4014 (open_mac_file, macro_source): Use class search_path.
4015 (add_string, struct string_list): Move definition.
4016 (main): Change -M option to use macro_path. Delete call to
4018 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
4019 Rewrite to use class search_path.
4020 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
4021 * lib/Makefile: fontfile.c depends on searchpath.h.
4022 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
4024 * lib/macropath.[ch]: New files.
4025 * troff/Makefile: No need to handle MACROPATH.
4027 * troff/input.c: Delete DUMP code.
4028 * lib/fontfile.c, lib/font.h: Delete
4029 font::forget_command_line_font_dirs.
4031 * troff/input.c (push_token): New function.
4032 (handle_first_page_transition): Use push_token().
4033 (process_input_stack): Change handling of a space at the beginning
4036 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
4038 * troff/input.c (font_dirs): Delete unused variable.
4040 * eqn/lex.c (do_set): Correct error messages.
4042 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
4044 * troff/input.c (do_define_string): Allow the string name to be
4045 followed immediately by a tab.
4046 (define_character): Likewise.
4048 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
4050 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
4053 * troff/input.c (input_iterator::is_file): New virtual function.
4054 (file_iterator::is_file): New function.
4055 (input_stack::end_file): New function.
4056 (input_stack::next_file): Handle the situation where there is no
4057 file on the input stack correctly. Avoid making two passes over
4059 (next_file): Make the filename optional; in this case call
4060 input_stack::end_file().
4062 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
4064 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
4065 produce a real _ charater when the current font is CW and _
4068 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
4069 expression to work around gcc 2.2 bug.
4071 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
4073 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
4075 * troff/env.c (environment::add_padding): New function.
4076 (environment::add_char): Use add_padding().
4077 (environment::space): Likewise.
4078 (environment::wrap_up_field): Add some padding if there is none
4079 and there's no current tab.
4080 * troff/env.h: Declare environment::add_padding.
4082 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
4084 * pic/pic.y: undef fmod and rand before declaring them.
4086 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
4088 * troff/input.c (main): If the DESC file specifies a font name of
4089 0, then leave the corresponding font position empty.
4091 * nroff.sh: New file.
4092 * Makefile (install.nobin): Install nroff.sh.
4094 * tty/devlatin1/R.proto: Add ao as synonym for de.
4095 * tty/tmac.tty-char: Define ao as o.
4097 * tty/dev{ascii,latin1}/R.proto: Add aq.
4098 * tty/tmac.tty-char: Delete definition of aq.
4100 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
4102 * troff/input.c (init_charset_table): Don't translate 0240.
4103 * ps/tmac.ps: Translate char160 to space.
4104 * dvi/tmac.dvi: Likewise.
4105 * tty/tmac.tty: Likewise.
4107 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
4109 * dvi/tmac.dvi: Add support for all Latin-1 characters.
4111 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
4112 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
4115 * tty/tmac.tty-char: Add \(ah.
4117 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
4118 No need to define \(FM and \(!/. Conditionalize all character
4121 * ps/devps/lgreekmap: Add +h, +f, +p.
4123 * ps/tmac.psnew: New file.
4124 * ps/Makefile: Install tmac.psnew.
4126 * troff/input.c (charinfo_to_node_list): Don't ever interpret
4127 character definitions in compatible mode.
4129 * troff/input.c (remove_character): New function.
4130 (init_input_requests): Bind remove_character to "rchar".
4132 * ps/tmac.psold: New file.
4133 * ps/Makefile: Install tmac.psold.
4134 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
4135 characters into tmac.psold. Make these definitions unconditional.
4137 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
4139 * ps/tmac.ps: Don't define \('c and \('C.
4141 * ps/devps/textmap: Move Greek characters to...
4142 * ps/devps/symbolchars:
4144 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
4146 * ps/devps/text.enc: Add quotesingle.
4147 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
4148 * tty/tmac.tty-char: Likewise.
4149 * dvi/devdvi/texmi.map: Add +h, +f, +p.
4150 * dvi/devdvi/texi.map: Add Fn.
4151 * dvi/devdvi/msam.map: Add lz.
4152 * dvi/tmac.dvi: Handle Bq, bq, aq.
4154 * pic/lex.c (get_token): Recognize 'th.
4155 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
4157 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
4159 * ps/devps/textmap: Move di, mu, +- to...
4160 * ps/devps/symbolchars:
4162 * macros/tmac.s (@XS): Don't call par@reset or fi.
4163 (XA): Call LP. Turn off adjustment. Reduce line length.
4165 * macros/tmac.s: Initially alias XS to LP.
4166 (XS): Rename to @XS.
4167 (cov*ab-init): Alias XS to @XS.
4169 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
4171 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
4172 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
4173 (token::is_size, token::changes_env): Deleted.
4174 * troff/number.c (parse_term): No need to process \s explicitly.
4175 Call tok.next() only after scale indicator has been processed.
4176 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
4178 (token::next): Handle \s, \f, \S, \H immediately rather than
4179 returning them as tokens.
4180 (token::operator==, token::description, token::add_to_node_list,
4181 token::process): Remove handling of deleted tokens.
4183 * troff/env.c (environment::add_char): When adding padding
4184 indicator character, call start_line() if necessary.
4186 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
4188 * ps/devps/afmtodit: Don't output 0 kerns.
4190 * ps/devps/afmtodit: Remove directory from name of encoding in
4191 font description file.
4193 * ps/devps/afmtodit: Improve error messages.
4195 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
4197 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
4198 * ps/devps/FontMakefile: Deleted.
4199 * ps/devps/afmname: New file.
4201 * ps/devps/symbol.sed: New file.
4202 * ps/devps/symbol.diff: Deleted.
4203 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
4204 Generate zapfdr.afm from zapfd.afm.
4206 * tty/tmac.tty (tty-char): Prefix definition with ".
4208 * macros/tmac.an (TP): Don't start a diversion if one has already
4211 * tty/tmac.tty-char: Add Latin-1 characters.
4213 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
4215 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
4217 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
4218 Move declaration of struct horizontal_span.
4220 * tbl/table.c (table::table): Initialize span_list.
4221 (table::~table): Delete span_list.
4223 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
4225 * ps/devps/Makefile: Avoid dependency on GNU make.
4227 * ps/tmac.ps: Check that character does not already exist before
4230 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
4231 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
4232 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
4235 * tty/tmac.tty-char: New file.
4236 * tty/Makefile: Install tmac.tty-char.
4237 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
4240 * tty/tmac.tty: Fix definition of \(34.
4242 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
4243 bracket-drawing characters onto |. Add *o.
4245 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
4246 only if current_field.
4248 * troff/dictionary.c (dictionary::lookup): Free old_table after
4251 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
4253 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
4254 whose glyphs are identical to glyphs of some Roman character.
4256 * tty/devlatin1/R.proto (bu): Deleted.
4257 * tty/devascii/R.proto (bu): Deleted.
4258 * tty/tmac.tty: Add definition of \(bu.
4260 * eqn/main.c (do_file): Pass FILE as argument.
4261 (main): Automatically load eqnchar. New options -F and -n.
4262 Pass do_file an opened FILE.
4263 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
4264 No need to include font.h.
4265 * groff.sh: Likewise. Don't need to use - for standard input.
4266 Prefix files with -- if first file starts with -.
4268 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
4270 * troff/env.c (environment::possibly_break_line): Don't set line
4271 to 0 across call to output_line(). Don't call output_line() until
4272 after discarding nodes after break.
4274 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
4276 * request.h (macro::empty): Declare it.
4277 * input.c (macro::empty): New method.
4278 (interpolate_macro): Don't give a WARN_SPACE if the two-character
4281 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
4283 * troff/env.c (environment::start_field): Decrement space_total
4284 when a space is frozen.
4286 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
4288 * macros/tmac.an (R): Delete macro.
4290 * troff/input.c (get_copy, token::next): Support \# (like \" but
4291 newline is ignored).
4293 * troff/input.c (token::next): Fix error message in 'Y' case.
4295 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
4297 * eqn/delim.c (define_extensible_string): Recognize any prefix of
4300 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
4302 * c++test.c: Include <osfcn.h>.
4304 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
4307 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
4309 * tbl/table.c (table::divide_span): Don't count column separation
4310 if expand was specified.
4312 * tbl/main.c (process_format): Don't ignore width specs in
4313 continued format. Give warning for changing equal widths or
4314 column separation in continued format.
4315 (process_data): Set column separation, minimum width, equal
4316 columns at end of table.
4318 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
4320 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
4321 node::add_discretionary_hyphen): Use soft_hyphen_char.
4322 (set_soft_hyphen_char): New function.
4323 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
4325 * Makefile (c++tested): Give more helpful message if test fails.
4327 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
4329 * troff/input.c (init_charset_table): Translate 0240 to
4330 an unbreakable space.
4332 * troff/token.h (token::hyphen_indicator): New function.
4333 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
4335 * troff/input.c (translate): Allow translation to \%.
4336 * troff/node.c (node::add_char): Handle
4337 TRANSLATE_HYPHEN_INDICATOR.
4338 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
4340 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
4343 * tty/devlatin1/R.proto: \(hy and - should print as 055.
4345 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
4347 * groff.c (run_commands): If the last command gets a SIGPIPE send
4348 a SIGPIPE to all children than haven't yet terminated. When
4349 command terminates, set pid field to -1.
4351 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
4353 * groff.c (main): Pass an appropriate -filename option to gxditview.
4355 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
4357 * Makefile.bd (install): Remove existing program before copying.
4359 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
4360 programs which have Unix counterparts to be installed with
4361 user-specified prefix.
4363 * troff/input.c (exit_troff): Don't check if exit_started.
4364 (exit_request): Don't call exit_troff if exit_started.
4366 * Makefile.bd (install.mm): Rename to install.dwbmm.
4368 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
4370 * driver/input.c (do_file): Add missing break for '#' case.
4372 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
4374 * troff/input.c (input_stack::clear): Clear past any boundaries and
4375 then add the boundaries back.
4377 * troff/input.c (exit_troff): Return immediately if already
4380 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
4382 (pg*end-page): If the text has ended and there are no more
4383 footnotes or keeps, exit.
4385 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
4387 * troff/input.c (init_charset_table): Make \(rq transparent by
4390 * macros/tmac.an: Define lq and rq strings.
4392 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
4394 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
4396 * troff/env.c (environment::final_break): New function.
4397 (environment::newline): Set prev_line_interrupted to 2 if
4399 * troff/env.h: Declare environment::final_break.
4400 * troff/input.c (exit_troff): Call environment::final_break()
4401 instead of environment::do_break().
4403 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
4404 doesn't already exist.
4405 * macros/man.local: New file.
4406 * macros/tmac.an: Load man.local.
4407 * macros/man.ultrix: New file.
4409 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
4411 * troff/input.c (exit_groff): Rename to...
4412 (exit_troff): New function.
4414 * troff/div.c (exit_started, done_end_macro,
4415 seen_last_page_ejector): New global variables.
4416 (began_page_in_end_macro): New static variable.
4417 (exit_flag): Deleted.
4418 (top_level_diversion::top_level_diversion): Initialize
4420 (top_level_diversion): More elaborate test for whether
4421 cleanup_and_exit() should be called.
4422 Set began_page_in_end_macro if the end macro isn't yet finished.
4423 * troff/div.h (top_level_diversion::last_page_count): New data
4425 (top_level_diversion::set_last_page): New function.
4426 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
4427 * troff/env.c (do_break): Zero prev_line_interrupted.
4428 * troff/input.c (exit_flag): Delete declaration.
4429 (LAST_PAGE_EJECTOR): New magic cookie.
4430 (token::next): Handle LAST_PAGE_EJECTOR.
4431 (exit_groff): Set exit_started and done_end_macro instead of
4432 exit_flag. Call top_level_diversion::set_last_page. Push a
4433 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
4434 another ejection after setting seen_last_page_ejector.
4436 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
4438 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
4440 * macros/tmac.e (TH): Make sure there's room for the initial
4443 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
4444 Set FVS in points rather than units.
4446 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
4448 * troff/div.c (top_level_diversion::add_trap): Don't consider the
4449 position of empty slots.
4451 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
4453 * ps/devps/S: Fix height and depth of parenrightex.
4454 * ps/devps/symbol.diff: Regenerate.
4456 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
4458 * tmac.e (u): Do underlining as in -mgs.
4460 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
4462 * tty/tty.c (tty_printer::end_page): If overstriking is
4463 suppressed, still turn overstruck horizontal and vertical lines
4466 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
4469 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
4471 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
4473 * Version 1.05 released.
4475 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
4477 * tty/tty.c: Instead of keeping an array of glyphs and then
4478 sorting it, keep a ordered linked list of glyphs for each line.
4480 * driver/driver.h: Include stddef.h.
4482 * tty/tty.c (compare_glyph):
4483 * refer/refer.c (rcompare):
4484 * troff/env.c (compare_ranges): Arguments of qsort comparison
4485 function should be const void *.
4487 * troff/number.c (parse_term):
4488 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
4491 * refer/label.y (consider_authors): Don't access variables
4492 constructed under a condition outside that condition: put braces
4493 round for statement containing declaration; redeclare use of same
4496 * pic/pic.y (text_expr): Delete production that allows
4497 parenthesised text_expr.
4498 (expr): Allow a conditional_expr to appear in parentheses.
4499 (conditional_expr): Rename to any_expr.
4501 * mm: Install new version 1.01 from jh.
4503 * lib/font.c (font::get_width): Cache scaled widths.
4504 (font::font): Initialize widths_cache.
4505 (font::~font): Destroy widths_cache.
4506 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
4508 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
4510 * c++test.c, c++test.ref: New files.
4511 * Makefile: Check that the C++ compiler works.
4513 * ps/tmac.pspic (PSPIC): Do a break.
4515 * ps/tmac.ps: Move definition of PSPIC into...
4516 * ps/tmac.pspic: New file.
4517 (PSPIC): Draw box around picture, but make it invisible to grops.
4518 * ps/tmac.ps: Load tmac.pspic.
4519 * ps/Makefile: Install tmac.pspic.
4521 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
4523 * lib/font.c (scale_round): If n is negative,
4524 subtract .5 before truncating floating point result.
4526 * lib/fontfile.c: Include <errno.h>.
4528 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
4530 * driver/input.c (get_char): Inline. Don't update current_lineno.
4531 Change callers to up date current_lineno if necessary.
4532 Use get_char() instead of getc(current_file).
4534 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
4536 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
4538 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
4540 * tty/tty.c (tmac.tty): Define \(rg as (R).
4542 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
4544 * lib/lib.h: New define a_delete.
4545 * Use a_delete instead of delete when deleting an array of objects
4546 without destructors.
4548 * lib/lib.h: Rename adelete to ad_delete.
4549 * Change uses of adelete.
4551 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
4553 * eqn/eqn.y: Include lib.h.
4555 * troff/node.c (grow_font_table): Delete old_font_table.
4557 * mm: Install new version from jh.
4559 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
4561 * tbl/table.h (format_type): Make global instead of local to class
4562 entry_format. Prefix enumerators with FORMAT_.
4563 * tbl/table.c, tbl/main.c: Corresponding changes.
4564 * refer/token.h (token_type): Make global. Prefix enumerators
4566 * refer/token.[ch]: Corresponding changes.
4567 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
4569 * troff/div.c (node::set_vertical_size): Don't name argument.
4571 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
4573 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
4574 * lib/lib.h: Define adelete accordingly.
4575 * pic/object.c (graphic_object::graphic_object):
4576 * tbl/main.c (format::~format):
4577 * tbl/table.c (table::~table):
4578 * refer/ref.c (reference::~reference, reference::merge,
4579 reference::insert_field, reference::delete_field): Use adelete.
4581 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
4583 * tbl/table.h: Corresponding changes.
4585 * common.c (common_output::dashed_arc, common_output::dotted_arc):
4586 Ensure total_angle is positive.
4588 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
4590 * refer/ref.c (reference::merge, reference::insert_field,
4591 reference::delete_field): Avoid delete[0].
4593 * refer/token.c (init_special_chars): Move calls to cmupper
4594 outside calls to init_two_char_letter to work around bug in gcc
4597 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
4599 * lib/new.c (operator new): Use __builtin_new for g++.
4601 * pic/object.c (graphic_object::~graphic_object): Don't use
4604 * pic/object.c (output::compute_scale): Initialize max_width and
4607 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
4609 * troff/input.c (write_request): Call fflush.
4611 * troff/node.h (class composite_node): Move declaration to node.c
4612 * troff/input.c (charinfo_to_node): Rename to ...
4613 (charinfo_to_node_list): Return node list rather than composite
4615 * troff/node.c (make_composite_node): New function.
4616 (make_node, add_char): Call make_composite_node instead of
4618 (class composite_node): Add a tfont * member. Delete font_size
4620 (composite_node::composite_node, composite_node::copy,
4621 composite_node::size): Corresponding changes.
4622 (composite_node::tprint): Provide constant spacing, emboldening
4623 and track kerning as specified in tfont.
4624 (composite_node::width): Change width calculation accordingly.
4625 * troff/env.h (environment::composite): New member.
4626 (environment::is_composite, environment::set_composite): New
4628 * troff/env.c (environment::environment): Initialize composite.
4629 * troff/input.c (charinfo_to_node): Call
4630 environment::set_composite.
4631 * troff/node.c (make_composite_node, make_glyph_node): Use the
4632 plain version of the tfont if the environment is composite.
4634 * troff/node.c (font_info::get_space_width): Additional argument
4635 giving space_size. Handle constant space correctly. Scale by
4636 space_size unless constant spaced.
4637 (env_sentence_space_width): New function.
4638 * troff/node.h: Declare it.
4639 * troff/env.h (environment::get_space_size,
4640 environment::get_sentence_space_size,
4641 environment::get_narrow_space_width,
4642 environment::get_half_narrow_space_width): Make inline.
4643 (environment::get_space_width): Make inline. Just call
4645 * troff/env.c: Delete definitions for funtions made inline.
4646 (environment::space_newline, environment::space): Use
4647 env_sentence_space_width(). Don't scale by space_size.
4648 * troff/node.h: Move declarations of env*space_width() functions
4651 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
4653 * macros/tmac.s (PS): Don't try to set negative indent.
4655 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
4657 * pic/pic.y: Fix min function.
4659 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
4661 * man/mdate.sh: Clear LANGUAGE.
4663 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
4665 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
4666 * pic/lex.c: New COMMAND keyword.
4667 * pic/pic.y (print_args, print_arg): New rules.
4668 (placeless_element): Use print_args for PRINT.
4669 New COMMAND element.
4671 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
4673 * troff/input.c (terminal): Handle missing argument correctly.
4675 * pic/pic.y (text_expr): New rule.
4677 * pic/pic.y: Implement := operator.
4679 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
4681 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
4684 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
4686 * ps/devps/dingbatsrmap: Include this in the distribution.
4688 * macros/tmac.doc: Replace with new version from 2nd Networking
4689 Release. Fix loading of doc-* files.
4690 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
4691 * macros/tmac.doc.old: New file. Apply fixes that had been
4692 applied to old tmac.doc.
4693 * macros/tmac.andoc: Check that we're running under groff.
4694 * macros/Makefile: Rework.
4696 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
4698 * tbl/table.h (format_type):
4699 * refer/token.h (token_type): If NESTED_TYPES is defined, use
4700 typedef to make these types visible at file scope.
4701 * Makefile: Add NESTED_TYPES configuration option.
4703 * troff/div.c (mark): At the top level use the value of
4704 nl_reg_contents rather than the current vertical position.
4706 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
4708 * tty/tty.c: Implement \D for horizontal or vertical lines.
4709 (tty_printer::set_char): Use vec_used+2 as serial number.
4710 Don't allow size of vector to exceed USHRT_MAX-2.
4711 Split off part into...
4712 (tty_printer::add_char): New function.
4713 (tty_printer::draw): New function.
4714 (compare_glyph): Handle equal serial numbers.
4715 (tty_printer::end_page): Handle overstruck characters from \D.
4716 (main, usage): Implement -d option.
4718 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
4720 * tbl/main.c (process_format):
4721 * eqn/text.c (split_text):
4722 * troff/input.c (token::next): Use inner block for declarations
4723 with initializers in switch statement.
4725 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
4727 * pic/common.c (common_output::dash_line): Cope with zero-length
4730 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
4732 * Version 1.04 released.
4734 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
4736 * macros/tmac.an (TH): Define a macro an-init to define variables
4737 based on command line arguments.
4738 (an-header): Call it.
4740 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
4742 * Makefile (install.mm): Rename to install.dwbmm.
4744 * Makefile: Integrate mm.
4745 * mm: New directory.
4747 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
4749 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
4752 * pic/troff.c (troff_output::simple_spline,
4753 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
4754 shadowing parameter.
4756 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
4758 * lib/ptable.h: Add explicit casts when converting from unsigned
4761 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
4762 * dvi/devdvi/Makefile: Install SA, SB.
4764 * refer/indxbib.c: Add declaration of mktemp.
4766 * refer/lookbib.c: Add declaration of isatty.
4768 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
4770 * pic/lex.c (interpolate_macro_with_args): While collecting
4771 arguments, keep track of whether we're in a string.
4773 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
4775 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
4776 down with \v, so as to avoid problems with top of page trap
4777 setting no space mode.
4779 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
4781 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
4783 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
4785 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
4786 Improve error message.
4788 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
4790 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
4793 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
4795 * groff.c (possible_command::execp): Always use _exit() after a
4798 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
4799 NO_SYS_WAIT_H configuration options.
4800 * groff.c: Use these options. Use POSIX-style macros to extract
4801 fields from the status returned by wait().
4803 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
4805 * tbl/table.c (table::compute_separation_factor): Allow the
4806 separation factor to drop to 0.
4808 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
4810 * refer/search.c: Include <errno.h>.
4812 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
4814 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
4816 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
4819 * pic/lex.c (input_stack::bol): Move definition out of class body.
4821 * pic/main.c: On MSDOS munge argv[0].
4823 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
4825 * lib/ptable.c (hash_string): Use unsigned long rather than
4827 (next_ptable_size): Use unsigned rather than int. Give an error
4828 message if we've hit the largest table size.
4829 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
4832 * pic/object.h (object_spec): Make flags unsigned long. Declare
4833 flags as const unisgned long rather than as enums.
4835 * pic/output.c: Deleted.
4837 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
4839 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
4840 Add additional argument.
4841 (line_entry::note_double_vrule_on_{left,right}): Set value of
4842 douvle_vrule_on_{right,left} flag according to argument.
4843 (simple_line_entry::simple_print,
4844 simple_line_entry::double_line_print): If adjacent to double vrule
4845 on a corner extend rather than shorten the rule by half the double
4848 * troff/number.c (parse_term): In checking for overflow, handle the
4849 case where the current horizontal position is negative.
4851 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
4853 * pic/object.c (draw_arrow): Check for object having zero length.
4855 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
4857 * eqn/main.c (do_file): Split off inline equation handling into...
4858 (inline_equation): New function. Search for starting delimiter
4860 (delim_search): New function. Don't recognize a delimiter that
4861 occurs in the name of an escape sequence, number register, string
4864 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
4866 * eqn/delim.c (delim_box::compute_metrics): Don't call
4867 define_extensible_string if left is 0.
4868 (delim_box::output): Don't print the left delimiter if left is 0.
4869 (delim_box::debug_print): Check for left == 0 before calling printf.
4871 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
4873 * troff/Makefile (majorminor.c): Include only digits in
4876 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
4878 * refer/dirnamemax.c: new file.
4879 * refer/genlimits.c: Deleted.
4880 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
4881 Don't check path length.
4882 * refer/Makefile: Add dir_name_max.o; delete genlimits.
4883 * Makefile: Add PATHCONF_MISSING option.
4885 * refer/indxbib.c (get_cwd): New function.
4886 (main): Use get_cwd().
4887 * lib/getcwd.c: New file.
4888 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
4890 * lib/Makefile: Compile getcwd.o.
4892 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
4895 * refer/indxbib.c (main): Check success of mktemp.
4897 * lib/tmpfile.c: New file.
4898 * lib/Makefile: Add tmpfile.c.
4899 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
4900 * ps/ps.h: Delete declaration of mktemp().
4901 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
4902 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
4903 * driver/driver.h: No need now to include errno.h.
4905 * everywhere: Set errno to 0 before calling fopen().
4907 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
4908 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
4909 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
4911 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
4913 * troff/env.h (translate_space_to_dummy): Declare it.
4914 * troff/env.c (environment::space_newline, environment::space):
4915 If translate_space_to_dummy is set then make the width of spaces 0.
4916 * troff/input.c (translate): If the second character of a
4917 translation is a space, translate to unbreakable space. If the
4918 first character is a space, set or clear translate_space_to_dummy
4919 according to whether the second character is \&. Weird!
4921 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
4923 * groff.c (run_commands): Don't use non-zero exit code because a
4924 command gets SIGPIPE.
4926 * groff.c, groff.sh: Use -mXps with -TXps.
4928 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
4929 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
4930 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
4931 (ps_printer::special): New specials invis and endinvis.
4932 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
4933 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
4934 (ps_printer::end_page): Check that invis_count == 0.
4935 (ps_printer::invis_count): New member.
4936 (ps_printer::ps_printer): Initialize invis_count to 0.
4938 * troff/env.c (environment::hyphenate_line): Hyphenation
4939 indicator at beginning of word inhibits splitting after -, \(em
4942 * pic/pic.y (element): Allow another element to follow } without
4943 any intervening separator.
4945 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
4947 * pic/lex.c (get_delimited): Allow tabs before delimiter.
4949 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
4951 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
4952 declaration of wait() in header files.
4953 * Makefile: Get rid of -DHAVE_UNION_WAIT.
4955 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
4957 * lib/lib.h: Declare return type of strerror as char *.
4959 * man/Makefile: Add g flag to sed substitutions.
4960 * Makefile (shgroff, bindist): Likewise.
4962 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
4964 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
4965 * ps/devps/prologue (PBEGIN): Define showpage after pushing
4968 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
4970 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4973 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
4975 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4978 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
4980 * troff/input.c (define_number_reg): If currently undefined,
4981 don't define it if the argument is an invalid expression.
4983 * Makefile: Ignore return value of `if' commands without `else'
4986 * Makefile: Split up CPPDEFINES into a series of separate
4987 configuration options.
4989 * troff/input.c (init_registers): Use time_t instead of long
4990 unless LONG_FOR_TIME_T is defined. Use returned result rather
4991 than passing pointer.
4992 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4994 * lib/Makefile (fontpath.h): Use gendef.
4996 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
4998 * troff/input.c (input_iterator::shift): Delete argument name.
4999 * troff/node.c (suppress_output_file::really_begin_page,
5000 suppress_output_file::really_transparent_char, node::ascii_print,
5001 node::tprint): Delete names of unused arguments.
5003 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
5005 * refer/label.y (string): Pass $4 to command_error.
5007 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
5009 * Version 1.03 released.
5011 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
5013 * Makefile: Pass definition of SHELL in SUBFLAGS.
5016 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
5017 ps/Makefile: Use gendef to construct header files that are
5018 constructed from the Makefile.
5020 * macros/Makefile: make all should build stripped version of tmac.e.
5022 * refer/Makefile (clean): Remove y.output.
5024 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
5026 * ps/pfbtops.c (main): Add -v option which prints out a version
5028 * ps/Makefile (pfbtops): Link with libgroff.a.
5030 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
5032 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
5033 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
5035 * refer/lkbib.c (main): Always terminate reference with blank
5037 * refer/lookbib.c (main): Likewise.
5039 * refer/linear.c (file_buffer::load): Check that the file is not a
5042 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
5043 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
5044 Delete second inclusion of <sys/param.h>.
5046 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
5048 * troff/token.h (token::special): Deleted.
5050 * tbl/main.c (process_format): Rework so that opt->tab_char is
5051 recognized only when appropriate.
5053 * ps/Makefile (clean): Remove pfbtops.
5055 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
5057 * lib/font.c (text_file::next): Don't return if we have got a
5060 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
5062 * refer/refer.c (store_reference): Get hash code from old_table[i]
5063 when rehashing the table.
5065 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
5067 * eqn/box.c (box::top_level): Save size and prev size using \R and
5068 restore it afterwards. Set the size to the size at the beginning
5070 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
5071 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
5073 * refer/Makefile (limits.h): Use ./genlimits.
5075 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
5077 * refer/index.c: Delete declarations of stat() and fstat().
5079 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
5081 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
5083 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
5085 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
5087 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
5089 * troff/input.c (token::get_char): Handle \e.
5091 * refer/linear.c: Delete declarations of fstat() and stat().
5093 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
5095 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
5096 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
5098 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
5100 * troff/input.c (do_define_macro): Improve error handling for end
5101 of file while defining macro.
5103 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
5105 * eqn/box.h: Fix declaration of set_gsize.
5106 * eqn/box.c (set_gsize): Make argument const char *.
5107 (gsize): Declare as char *.
5108 * eqn/main.c (main): Don't convert gsize to int.
5109 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
5111 * Version 1.02 released.
5113 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
5115 * macros/tmac.andoc: New file.
5116 * macros/Makefile: Install tmac.andoc.
5118 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
5119 operator new and delete on OP_DELETE_BROKEN not being defined.
5120 * Makefile: Mention OP_DELETE_BROKEN.
5122 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
5124 * Makefile (bindist): Pass SUBFLAGS.
5126 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
5128 * Makefile, groff.c: Pass definitions to groff.c via device.h.
5130 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
5133 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
5135 * ps/ps.h, ps/psrm.c: Make comment_table and
5136 header_comment_table local to resource_manager::process_file.
5138 * groff.sh: With -TXps pass -printCommand option to gxditview.
5140 * groff.c (possible_command::print): Implement using
5141 append_arg_to_string.
5143 * xditview: Merge in new implementation with own ChangeLog.
5145 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
5147 * groff.c (main): Implement PRINT_OPTION.
5148 (append_arg_to_string): New command.
5149 (device_table): Set PRINT_OPTION flag for Xps.
5151 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
5153 * troff/groff.h: Rename to troff.h.
5155 * pic/lex.c (lookup_keyword, docmp): New functions.
5156 (get_token): Use new lookup_keyword.
5157 Don't include key.h.
5158 * pic/key.[ch], pic/pic.gperf: Deleted.
5159 * pic/Makefile: Remove gperf stuff.
5161 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
5163 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
5165 * troff/Makefile, troff/node.c: Move definition of
5166 STORE_WIDTH into node.c.
5168 * etc/grog.pl, etc/grog.sh: Support -mdoc.
5170 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
5172 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
5173 dvi/devdvi/texb.map: Add lq and rq.
5174 dvi/devdvi: Regenerate fonts.
5175 * ps/devps/textmap: Add lq and rq.
5176 * ps/devps: Regenerate fonts.
5177 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
5178 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
5180 * pic/object.c (position_rectangle): When checking radius
5181 cope with possiblity that width or height is negative.
5182 (box_object::box_object): Have separate xrad and yrad with
5183 signs matching signs of dim components.
5184 (box_object::{north,south}_{east,west}): Use xrad and yrad.
5185 (box_object::print): With rounded boxes use absolute values
5186 for dim and rad arguments.
5188 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
5191 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
5193 * various files: Add explicit destructors to keep Saber CC +d
5196 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
5198 * eqn/box.c (box::top_level): Restore fonts correctly after
5199 font changes in line containing inline equation. Also
5200 restore previous font as well as current font.
5201 * eqn/pbox.h: Define necessary string and register names.
5203 * troff/input.c (token::next): Case 'R' calls do_register.
5204 (do_register): New function.
5206 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
5208 * groff.c, groff.sh: Support Xps device. Allow each device
5209 to have a pseudo_name and a real_name.
5211 * groff.c (run_commands): Don't print `Broken pipe' messages.
5213 * ps/pfbtops.c: New file.
5214 * ps/Makefile: Add pfbtops.
5216 * troff/number.c (parse_term): Improved error message.
5218 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
5220 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
5222 * Makefile: Integrate refer.
5223 * refer: New directory.
5224 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
5225 man/lkbib.man: New files.
5226 * man/Makefile: Support refer man pages.
5228 * lib/lib.h: Declare is_prime.
5229 * lib/prime.c: New file.
5231 * troff/input.c (macro_source): New function.
5232 (init_input_requests): Bind "mso" to macro_source.
5234 * troff/env.c (environment::possibly_break_line): Maintain
5235 pointer to pointer to node to be split in ndp so as to avoid
5236 using address of freed node.
5238 * troff/env.c (environment::hyphenate_line): Maintain pointer to
5239 pointer to first node to be hyphenated in startp so as to
5240 avoid using address of freed node.
5242 * troff/env.c (class trie, class hyphen_trie): Make the
5243 elements of the trie be of type char not unsigned char.
5244 Declare arguments to be const char* instead of unsigned char *.
5246 * troff/env.c (hyphenate): Initialize hbuf[0].
5248 * troff/input.c (set_string): Declare p to be char * and cast
5249 *p to unsigned char when necessary.
5251 * troff/input.c (do_define_macro): Declare s to be const
5252 char*. Cast element to unisgned char when necessary, Declare
5253 d to be an int. Handle EOF better.
5255 * troff/Makefile, troff/input.c: Different scheme for passing
5256 definitions of MACROPATH, HYPHENFILE and DEVICE.
5258 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
5260 * tty/devascii/R.proto: Delete entry for em.
5261 * tty/devlatin1/R.proto: Likewise.
5263 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
5265 * troff/input.c (translate): Stop when we get a space. Treat eof
5268 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
5270 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
5272 * tbl/main.c (process_format): A font name following a `f'
5273 modifier that starts with a digit can be only one character long.
5274 Also deal with EOF on the second character of the font name.
5276 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
5278 * troff/input.c (token::next): Turn \~ into an
5279 unbreakable_space_node.
5280 * troff/node.c (unbreakable_space_node): New class.
5281 * troff/node.h: Declare it.
5283 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
5285 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
5286 it's >= 0, before outputting it as a single byte.
5288 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
5290 * lib/font.c: Make font_char_metric::code an int.
5291 (font::get_code): Change return type to int.
5292 (font::load): Allow code to be arbitrary integer.
5293 * lib/font.h (font::get_code): Change return type to int.
5294 (font::number_to_index): Change argument type to int.
5295 * troff/input.c (token::next): In case 'N', allow any value.
5296 Store value in token::val.
5297 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
5298 (token::get_char, token::add_to_node_list, token::process): Get
5300 (charinfo::set_number): Change argument to int.
5301 (charinfo::get_number): Require that NUMBERED flag be set.
5302 (get_charinfo_by_number): Store numbered characters not between 0
5303 and 255 in a dictionary.
5304 * troff/charinfo.h (get_charinfo_by_number): Change argument type
5306 (charinfo::number): Change type to int.
5307 (charinfo::set_number): Change type of set_number to int.
5308 * troff/node.c (troff_output_file::put_char_width,
5309 troff_output_file::put_char): Test whether character is numbered
5310 using charinfo::numbered().
5311 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
5313 * lib/nametoindex.c: New implementation to cope with arbitrary
5316 * troff/input.c (token::operator==): Test val for
5317 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
5320 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
5321 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
5323 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
5325 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
5328 * all Makefiles: rm targets of cp and >.
5330 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
5333 * eqn/lex.c (def_table): Add dollar.
5335 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
5337 * troff/input.c (do_width): Push back newline before closing delim
5340 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
5342 * groff.c (possible_command::prepend_arg): New function.
5343 (main): Prepend device -m option.
5344 * groff.sh: Put device -m options before command-line options.
5346 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
5348 * macros/tmac.an (IP): Quote argument to TP.
5350 * ps/ps.c (main): New option -b, which sets...
5351 (broken_flags): New variable.
5352 (ps_printer::~ps_printer): Incorporate the setup section in the
5353 prolog if (broken_flags & NO_SETUP_SECTION).
5354 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
5355 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
5356 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
5357 ps_printer::print_needed_font_comment,
5358 ps_printer::print_supplied_font_comment,
5359 ps_printer::print_include_font_comments,
5360 ps_printer::lookup_doc_font, ps_printer::download_fonts,
5361 ps_printer::read_download_file, read_document_fonts, add_font,
5362 skip_line, parse_fonts_arg, document_font::document_font,
5363 document_font::~document_font, document_font::download,
5364 ps_output::include_file): Deleted.
5365 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
5366 rather than %!PS-Adobe-2.0. Make calls to
5367 resource_manager::need_font for each font that we used. Replace
5368 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
5369 print_supplied_font_comment, print_needed_font_comment by call to
5370 resource_manager::print_header_comments. Output %%Orientation
5371 comment. Output %%Requirements: numcopies comment if ncopies > 1.
5372 Don't output the prolog directly. Instead call
5373 resource_manager::output_prolog. Only define #copies when ncopies
5374 > 1. Delete calls to print_include_font_comments and
5375 download_fonts. Add call to resource_manager::document_setup.
5376 (ps_printer::do_file): Call resource_manager::import_file instead
5377 of including it ourselves.
5378 (ps_printer::do_import): Likewise. Also don't call
5379 merge_import_fonts. Push userdict on the dictionary stack before
5380 and pop it afterwards.
5381 Move declaration of ps_output into ps.h.
5382 * ps/psrm.c: New file implementing resource_manager class.
5383 * ps/ps.h: New file declaring ps_output and resource_manager
5385 * ps/devps/zapfdr.ps:
5386 * ps/devps/symbolsl.ps:
5387 * ps/devps/prologue: Use 3.0 conventions.
5388 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
5389 Add default definition of BROKEN_SPOOLER_FLAGS.
5390 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
5391 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
5393 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
5395 * etc/grog.pl: New file.
5396 * Makefile (GROG): New variable.
5397 Add GROG to SUBFLAGS.
5398 * etc/Makefile (GROG): New variable.
5399 (install.nobin): Install $(GROG) rather than grog.sh.
5401 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
5403 * eqn/special.c (special_box::compute_metrics): Make the input and
5404 output strings the same. Get the new height and depth from the
5405 predefined height and depth registers. Also make subscript kern
5407 (special_box::compute_subscript_kern, special_box::compute_skew):
5410 * eqn/box.c (pointer_box::compute_skew,
5411 simple_box::compute_metrics, box::top_level)
5412 * eqn/text.c (prime_box::compute_metrics,
5413 prime_box::comput_subscript_kern)
5414 * eqn/limit.c (limit_box::compute_metrics):
5415 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
5416 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
5417 negative numbers in `nr' requests with a leading 0.
5419 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
5421 * eqn/special.c: New file.
5422 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
5423 Add new rule for simple.
5424 * eqn/lex.c (token_table): Add SPECIAL.
5425 * eqn/box.h: Declare make_special_box.
5426 * eqn/Makefile: Add special.[co].
5428 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
5430 * ps/devps/prologue: Possibly set packing to true while defining.
5431 Create grops dictionary here. Initialize local variables before
5432 defining procedures.
5433 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
5434 the dictionary stack. Set strokeadjust and overprint to false if
5435 the relevant operators are defined.
5436 (PEND): New procedure.
5437 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
5438 prologue. Do everything else in the setup section.
5439 (ps_printer::do_import): Just call PBEGIN and PEND around the
5440 picture. Also push userdict before, and pop it afterwards.
5442 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
5444 * troff/node.c (bracket_node::tprint): Brackets were being printed
5447 * macros/tmac.an (SH, SS): Set fill mode.
5449 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
5451 * troff/div.c (top_level_diversion::begin_page): Set
5452 high_water_mark to 0.
5454 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
5456 * man/mdate.sh: New file.
5457 * man/mdate.c: Deleted.
5458 * man/Makefile: Use mdate.sh instead of mdate.
5461 * eqn/lex.c (do_gsize): Supply missing argument to error message.
5463 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
5465 * man/mdate.c: New file.
5466 * man/*.man: Replace modification date by @MDATE@.
5467 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
5468 (mdate): New target.
5470 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
5471 Remove illegal input characters.
5473 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
5475 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
5477 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
5479 * troff/div.c (begin_page): Change behaviour when
5480 !first_page_begun and !break_flag.
5482 * troff/input.c (do_name_test): Return 0 if argument is empty.
5484 * troff/input.c (read_long_escape_name): Require closing ] to be
5485 at same input level as opening [.
5487 * troff/input.c (read_increment_and_escape_name): New function.
5488 (get_copy, process_input_stack): Use this for \n.
5490 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
5492 * troff/div.c (top_level_diversion::begin_page): Ignore the
5493 current value of page_number if !first_page_begun.
5495 * groff.c (main): Fix declaration of buf.
5497 * troff/input.c (do_name_test): New function.
5498 (token::next): Implement \A.
5499 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
5500 (token::description, token::add_to_node_list, token::process):
5501 Handle TOKEN_ESCAPE.
5502 * troff/token.h: New token TOKEN_ESCAPE.
5504 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
5506 * pic/main.c (do_picture): Allow space before and after filename
5507 following `<'. Check that the filename is not empty.
5509 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
5511 * Version 1.01 released.
5513 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
5515 * dvi/tmac.dvi: ftr HR to H.
5517 * macros/tmac.e: Round up computation of $r.
5519 * xditview/tmac.X: Don't give up completely in compatibility mode.
5520 Use \n(.s instead of \n[.s].
5522 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
5523 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
5524 Add u to factors inside \s[...]. Rename frac to dvi-frac.
5525 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
5526 short names in the char definitions.
5528 * ps/tmac.ps: Don't give up completely in compatibility mode.
5529 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
5530 quote in front of \n(.s. Add u to factors inside \s[...].
5532 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
5534 * tty/tmac.tty: Call the nroff request.
5536 * macros/tmac.e ((x, )x): Better definitions that work properly
5538 (@0, @1): Helper macros for (x.
5540 * macros/tmac.e ($s, hl): Use \l rather than \D.
5542 * tty/tmac.tty: Make it work better in compatibility mode.
5543 (pchar): Rename to tty-char.
5545 * macros/tmac.e (@E): New macro.
5546 (r, i, b, rb, bi): Use @E.
5548 * macros/tmac.e (@F): Don't use (;...) syntax.
5550 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
5551 it was modified for groff.
5553 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
5555 * macros/tmac.e (<., .>): Removed.
5556 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
5558 * macros/tmac.e: Remove check that groff is being used.
5560 * macros/tmac.e (@C): Change families only if using groff; turn
5561 compatibility mode off while changing familes. Save compatibility
5562 mode before changing families and restore it afterwards.
5564 * macros/tmac.e (@h): Remove test for offset + line length.
5566 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
5567 (lo, th, ac): Define to call @S instead of using als.
5569 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
5570 the ratio of the vertical spacing to the point size in units
5571 expressed as a percentage. Use these instead of $10r and $10R,
5572 Delete $10r and $10R.
5574 * lib/font.c (font::load): In default computation of space_width,
5575 divide by sizescale. Use scale_round.
5577 * macros/tmac.an (TP): Don't call `nf'.
5578 (an-do-tag): Don't call `fi'.
5580 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
5582 * troff/input.c (process_input_stack): Handle the case where
5583 spaces at the beginning of an input line are followed by a
5586 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
5588 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
5589 * groff.sh: Use pic -x with the dvi device.
5591 * dvi/devdvi/FontMakefile (H): Don't use -s.
5593 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
5594 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
5595 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
5598 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
5600 * ps/psfig.diff: New file.
5601 * ps/tmac.psfig: New file.
5603 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
5605 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
5606 (]-): Don't call ref*do-tl.
5608 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
5610 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
5611 (fn@do-FS): Rename to fn*do-FS.
5613 * troff/input.c (transparent_translate): New function.
5614 (process_input_stack): Apply transparent_translate before calling
5615 diversion::transparent_output(unsigned char).
5617 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
5619 * troff/input.c (do_define_macro): Define the macro before calling
5622 * xditview/Makefile: Add DEVICES variable. Change install target
5625 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
5627 * groff.c (run_commands): Handle the possibility that there are
5628 child processes other than those forked by us.
5630 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
5632 * lib/string.c (string::append): New function.
5633 * lib/stringclass.h: Declare it.
5635 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
5637 * eqn/main.c (main): New option -N which sets
5638 no_newline_in_delim_flag.
5639 (do_file): If no_newline_in_delim_flag is set don't allow newlines
5641 * groff.c (main): Pass -N on to eqn.
5642 (help, synopsis): Mention -N.
5643 * groff.sh: Implement -N.
5645 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
5647 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
5648 (]-): Call ref*do-tl if ref*need-tl is non-zero.
5649 (XP): Allow as initializer.
5651 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
5653 * troff/env.c (environment::wrap_up_field): If field_spaces are
5654 non-zero and we have a current_tab, subtract padding from
5655 tab_distance. If this makes tab_distance <= 0, use the next tab
5656 stop instead. If there isn't any next tab or it's a left tab,
5657 wrap up the current tab.
5658 (environment::start_field): Initialize tab_precedes_field.
5659 (environment::wrap_up_tab): If there's a current field, update
5660 pre_field_width, field_distance and tab_precedes_field.
5661 * troff/env.h (environment::tab_precedes_field): New member.
5663 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
5665 * ps/ps.c (ps_printer::do_file): New function.
5666 (ps_printer::special): Bind to `file' special.
5667 (ps_printer::do_exec): Set ndefined_styles to 0.
5669 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
5671 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
5672 Avoid stripping first character from the start of unrecognized
5673 escapes. Use lex_error instead of error to report errors.
5674 * eqn/lex.c (get_token): Rework handling of escapes.
5675 (lex_error): Move declaration into...
5678 * xditview/xditview.c (main): Make -page option work.
5680 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
5682 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
5684 * macros/tmac.s (B2): Correct size of box.
5686 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
5688 * macros/tmac.s (B2): Postpone drawing the box until in the
5689 top-level diversion.
5691 * tty/tmac.tty: Add font translations for C, CR, CW.
5693 * groff.c (synopsis, help): Document -i.
5694 * groff.sh: Implement -i.
5696 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
5697 Simplify the construction of SN.
5699 * troff/number.c (parse_term): Give `|' a higher precedence.
5700 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
5703 * macros/tmac.s (B2): Use par@finish instead of par@reset.
5705 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
5707 * lib/string.c (string::move): New function.
5708 * lib/stringclass.h: Declare it.
5710 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
5712 * troff/env.c (distribute_space): Add optional argument
5714 (environment::wrap_up_field): Call distribute_space with
5715 `force_forward' argument of 1.
5717 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
5719 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
5720 Inline it. Move reallocation into...
5721 (string::grow1): New function.
5722 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
5723 dependencies to include library header files.
5724 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
5726 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
5728 * macros/tmac.s (@NH): Use the same number registers than -ms does
5729 for the heading level counters. Use the same string that -ms does
5730 for the number for this heading.
5732 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
5734 * lib/new.c (operator new): Cast result of malloc to char *.
5736 * troff/input.c (spring_trap, lookup_request): Add assert that nm
5739 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
5741 * groff.c (main): Support -i.
5743 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
5745 * pic/pic.h: Include <osfcn.h>.
5747 * ps/ps.c: Add declaration of mktemp.
5749 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
5750 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
5751 argument as union wait *.
5752 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
5753 argument to union wait *.
5755 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
5757 * tty/tmac.tty: Add definition of \(co.
5759 * pic/object.c (make_arc): Only increase radius when radius
5760 strictly less than d.
5761 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
5764 * troff/env.c (environment::environment(symbol),
5765 environment::environment(const environment *)): Initialize
5768 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
5770 * tbl/main.c (main): Add exit(0).
5772 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
5774 * pic/main.c (main):
5775 * eqn/main.c (main):
5776 * tbl/main.c (main):
5777 * etc/soelim.c (main):
5778 * driver/printer.c (printer::~printer):
5779 * troff/node.c (real_output_file::~real_output_file,
5780 real_output_file::flush): Check for errors on stdout.
5782 * most files: Add 1991 to copyright notice.
5784 * macros/tmac.s: Don't test \n(.x and \n(.y.
5786 * troff/input.c (token::next): Rename `escape_char' label to
5787 `handle_escape_char' and `normal_char' label to
5788 `handle_normal_char'.
5790 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
5792 * groff.c (main, synopsis, help): Support -a option.
5793 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
5794 to trflags while parsing options.
5796 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
5798 * troff/number.c (parse_term): With `m', `M' and `n' scale
5799 indicators, convert scale factor to hunits before scaling.
5801 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
5803 * lib/font.c (scale_round): Better test for overflow when n is
5806 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
5808 * tbl/main.c (process_format): Add second argument of type
5809 options*. Change callers. Allow opt->tab_char as well as '\t'
5810 between format items.
5812 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
5814 * macros/tmac.an (PD): With no arguments, make sure register PD is
5816 (TH): Call PD with no argument, instead of setting register PD
5819 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
5821 * Version 1.00 released.
5823 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
5825 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
5827 * dvi/devdvi/DESC: Mount CW instead of CR.
5829 * dvi/tmac.dvi: Add definition of \(tm.
5831 * dvi/devdvi/texsy.map: Add lh, and rh.
5832 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
5833 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
5835 * dvi/devdvi/FontMakefile: Generate H from cmss10.
5836 * dvi/devdvi/Makefile: Install H.
5837 * dvi/devdvi/H: New file.
5839 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
5841 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
5844 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
5846 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
5848 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
5850 * macros/tmac.s (@EN): Handle the case where the equation is empty
5851 but the label is not.
5853 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
5855 * troff/groff.h: New warning category WARN_SPACE.
5856 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
5857 WARN_SPACE to warning_table.
5858 (interpolate_macro): Give a warning of type WARN_SPACE if the name
5859 is longer than two characters and is not defined, but the first
5860 two characters do make a defined name.
5862 * PROBLEMS: New file.
5864 * CHANGES: New file.
5865 * README-0.6, README-1.00: Deleted.
5867 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
5868 * xditview/devX75/Makefile: Make devX75-12.
5869 * xditview/devX100/Makefile: Make devX100-12.
5871 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
5872 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
5874 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
5876 * README-0.7: Rename to README-1.00.
5878 * macros/tmac.pic: New file.
5879 * macros/Makefile (install.nobin): Install tmac.pic.
5881 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
5883 * troff/env.c (hyphen_word): Correct the test for whether the
5884 token is a hyphen. Reset npos to 0.
5886 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
5888 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
5890 * macros/tmac.s (ds*common-end): Call par*reset.
5892 (par@reset-indent): Deleted.
5894 * macros/tmac.s (@IP): Divert the label.
5896 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
5898 * xditview/draw.c (setGC): Use a line width of .1m rather than
5899 .04m by default; round rather than truncate value.
5901 * tbl/table.c (class empty_entry): New class.
5902 (empty_entry::empty_entry, empty_entry::line_type): New functions.
5903 (table::add_entry): Represent empty entries by objects of type
5905 (table_entry::line_type): Return -1.
5906 (table::determine_row_type): Ignore entries with line_type 0.
5907 Treat type -1 as non-lines.
5909 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
5911 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
5912 macros/tmac.s: Rename \(-d to \(Sd.
5914 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
5916 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
5917 * xditview/libXdvi/DviChar.c: Likewise.
5918 * dvi/devdvi/texsy.map: Add `<<', `>>'.
5920 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
5922 * troff/div.c (top_level_diversion::begin_page): Call
5923 init_output() if the_output is 0.
5925 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
5927 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
5929 (get_copy): Turn \E into ESCAPE_E.
5930 (token::process, asciify): Handle ESCAPE_E.
5932 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
5934 (DS): Implement `.DS R'.
5936 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
5938 * macros/tmac.s (FS): New macro.
5940 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
5942 * macros/tmac.s (cov*tl-init): Remove after first execution
5943 instead of aliasing to @nop. Call top of page macro explicitly
5944 instead of setting trap; call @init first. Set pg@top as top of
5946 (cov*auto-init): Deleted. Set cov*tl-init instead of
5947 cov*auto-init as top of page trap.
5948 (TL, LP): Do a break instead of calling cov*tl-init.
5949 (cov*print): With RP format but no TL, alias FS and FE to @FS and
5950 @FE; in this case also give a warning and always start another
5951 page. No need to set pg@top here.
5952 (cov*tl-init): Rename to cov*first-page-init.
5954 * macros/tmac.s (RP): Do `.pn 0'.
5955 (cov*tl-init): With RP format don't do `.pn 0'.
5957 * macros/tmac.s (pg@cs-top): Set no space mode.
5959 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
5960 (cov*ab-init): Alias TL, AU and AI to these.
5962 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
5964 * macros/tmac.s (@EQ): Move the space before the equation into @EN
5965 (@EN): Do nothing unless \n[dl] is > 0.
5967 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
5969 * pic/object.c (ellipse_object::radius): New function.
5971 * VERSION: Change version to 0.7.
5973 * tbl/table.c (block_entry::do_divert): Declare return type as
5975 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5977 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
5979 * troff/column.c: New file.
5980 * troff/Makefile: Corresponding changes.
5982 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
5985 * troff/div.c (top_level_diversion::space): If the space causes
5986 the first-page transition and springs a trap, truncate the space
5989 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
5991 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5994 * pic/troff.c (troff_output::line_thickness,
5995 troff_output::set_fill): Do a horizontal motion to compensate for
5996 the width of the \D escape sequence.
5998 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
6000 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
6003 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
6006 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
6007 Supply empty definition.
6008 (text_entry::simple_print, simple_text_entry::simple_print):
6009 Delete declarations.
6010 (table::add_entry): Represent empty entries by objects of type
6013 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
6015 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
6017 * tbl/table.c (left_text_entry::add_tab): New function.
6019 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
6022 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
6024 * troff/env.c (environment::start_field): Give an error message if
6025 there is no next tab.
6027 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
6029 * troff/env.c (hyphenate): Skip initial elements with zero
6032 * macros/tmac.s (par@init): Keep VS in points rather than units.
6034 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
6036 * pic/main.c (main): Implement `-c' option.
6037 * pic/output.h: Declare make_tpic_output().
6038 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
6040 (tpic_output): New class.
6041 (tpic_output::tpic_output, tpic_output::set_pen_size,
6042 tpic_output::command, make_tpic_output): New functions.
6044 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
6046 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
6047 if they're not already defined.
6048 * tbl/table.c (init_output): Don't test \n(.g.
6050 * troff/input.c (do_if_request): Delete `g' condition. Recognize
6051 `d', `r' and `c' conditions even in compatibility mode.
6053 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
6055 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
6058 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
6060 * troff/env.h (environment::prev_line_interrupted): New member.
6061 (environment::get_prev_line_interrupted): New function.
6062 * troff/env.c (environment::newline): Set prev_line_interrupted.
6063 (environment::environment(const environment *),
6064 environment::environment(symbol)): Initialize
6065 prev_line_interrupted.
6066 * troff/input.c (process_input_stack): Don't give special
6067 treatment to space and newline at the beginning of the line if the
6068 previous line was interrupted.
6070 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
6072 * eqn/eqn.y: Disallow PRIME by itself.
6073 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
6075 (def_table): Remove definition of '. Define prime to be `.
6077 * eqn/eqn.y: Split off part of rule `script' into a new rule
6080 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
6082 * macros/tmac.s ({, }): New string aliases.
6084 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
6086 * README-0.7: New file.
6088 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
6090 * macros/tmac.s: New file.
6091 * man/groff_ms.man: New file.
6092 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
6093 * Makefile.bd: Similarily.
6094 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
6095 definition of TMAC_S.
6096 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
6097 * macros/TODO: New file.
6099 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
6101 * troff/env.c (right_justify): New function.
6102 (init_env_requests): Bind this to request "rj".
6103 (center_lines): Set right_justify_lines to 0. If we get a bad
6104 integer, center 1 line.
6105 (environment::environment(symbol), environment::environment(const
6106 environment *)): Initialize right_justify_lines.
6107 (environment::get_right_justify_lines): New function.
6108 (init_env_requests): Bind this to number_register ".rj".
6110 * troff/env.c (environment::choose_breakpoint): Implement
6111 hyphenation_margin and hyphenation_space.
6112 (environment::get_hyphenation_space,
6113 environment::get_hyphenation_margin): New functions.
6114 (init_env_requests): Bind these to .hys and .hym.
6115 (hyphenation_space_request, hyphenation_margin_request): New
6117 (init_env_requests): Bind these to hys and hym.
6118 (environment::environment(symbol), environment::environment(const
6119 environment *)): Initialize hyphenation_margin and
6121 * troff/env.h: Corresponding changes to class environment.
6123 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
6125 * troff/div.c (blank_line): Always do a break.
6127 * eqn/box.c (do_text): Turn off escapes while appending text to
6130 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
6132 * troff/input.c (while_break_request, while_continue_request): New
6134 (init_input_requests): Bind these to "break" and "continue".
6135 (while_depth, while_break_flag): New variables.
6136 (while_request): Update while_depth. Break out of loop if
6137 while_break_flag is set.
6139 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
6141 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
6144 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
6146 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
6148 * stringify: New file.
6149 * Makefile (groff.o): Use stringify.
6151 * xditview/tmac.X: Remove definition of \(rn.
6152 * xditview/libXdvi/DviChar.c: Remove radicalex from
6155 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
6157 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
6158 (alphabetic_block_entry::alphabetic_block_entry,
6159 alphabetic_block_entry::divert, alphabetic_block_entry::print):
6161 (block_entry::divert): Split off body into ...
6162 (block_entry::do_divert): If the block is alphabetic, subtract 2n
6163 from the line length; also update the span width to dl+2n, and the
6164 alphabetic span width to dl.
6166 * driver/input.c (do_file): While reading argument to D command,
6167 when expanding buffer, multiply szp by sizeof(int) rather than 2
6168 in the argument to memcpy.
6170 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
6171 width of alphabetic columns.
6173 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
6175 * troff/node.c (lookup_family): Supply second argument to lookup.
6177 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
6178 search, return immediately if v is 0.
6180 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
6181 (troff_output::start_picture): Set this reg.
6182 (troff_output::end_picture): Remove this reg
6183 * eqn/box.c (box::extra_space): Don't produce `\x's if
6184 EQN_NO_EXTRA_SPACE_REG is defined.
6186 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
6187 * eqn/text.c (split_text): Map ' to \(fm when it's the first
6190 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
6192 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
6195 * troff/div.c (top_level_diversion::top_level_diversion):
6196 Initialize page_number to 0.
6198 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
6200 * groff/troff (environment::environment(const environment *)):
6201 Initialize name to e->name, rather than "anonymous".
6203 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
6205 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
6206 requested_page. Split middle part into ...
6207 (FindPage): New function.
6208 (SetValues): If we don't yet know the last page, and the requested
6209 page is greater than the current page, call FindPage.
6210 Update the font_map_string before doing this.
6212 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
6213 Translate \(lh and \(rh into left and right double arrows.
6215 * troff/node.c (class hyphen_inhibitor_node): New class.
6216 (hyphen_inhibitor_node::hyphen_inhibitor_node,
6217 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
6218 hyphen_inhibitor_node::type,
6219 hyphen_inhibitor_node::get_hyphenation_type): New functions.
6220 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
6221 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
6224 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
6226 * troff/node.h (dummy_node::get_hyphenation_type,
6227 transparent_dummy_node::get_hyphenation_type): Declare them.
6228 * troff/node.c: (dummy_node::get_hyphenation_type,
6229 transparent_dummy_node::get_hyphenation_type): New functions.
6231 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
6233 * xditview/libXdvi/draw.c: If M_PI not defined after including
6234 math.h, then define it.
6236 * xditview/Makefile: Add definition of AR. Pass it to the submake
6238 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
6240 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
6242 * troff/dictionary.h (object_dictionary::alias): Declare return
6244 * troff/dictionary.c (object_dictionary::alias): Return non-zero
6245 if the old name was defined.
6246 * troff/input.c (alias_macro): Give a warning if the old name was
6248 * troff/reg.c (alias_reg): Likewise.
6250 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
6252 * troff/input.c (token::next): Delete implementation of \R.
6254 * macros/Makefile: Strip comments from tmac.e while installing it.
6256 * troff/input.c: New variable `nroff_mode'.
6257 (troff_request, nroff_request): New functions.
6258 (init_input_requests): Bind `troff' and `nroff' to troff_request
6260 (do_if_request): Compute results of t and n conditions from
6263 * text/text.c (split_text): Fix typo in >=.
6265 * eqn/lex.c: Add definition of `==' to def_table.
6267 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
6269 * pic/tex.c (tex_output::start_picture): Change the definitions of
6270 \graph and \graphtemp so that they work properly with Plain TeX.
6272 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
6273 argument to `ar' is not less than the first.
6275 * pic/pic.y: Allow a comma between elements of the variable list
6276 in the argument to `reset'.
6278 * pic/object.c (arc_object::arc_object): Fix computation of
6281 * eqn/main.c (main): Add exit(0).
6283 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
6285 * troff/div.c (begin_page): Test no_space_mode after doing the
6286 break, but still push the page ejector cookie before doing the
6287 break. Also set the next page number after doing the break.
6289 * xditview/xditview.c (NewFile): Don't set the title and icon name
6290 if this is the first file and its name is `-'.
6291 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
6292 the X75 and X100 devices.
6293 (main): If a device has the XT_OPTION flag set and there's exactly
6294 one file argument, pass the driver -xrm and -title options to set
6295 the icon name and window title to the name of the file.
6297 * troff/env.c (environment_switch): If there was an argument but
6298 it wasn't a valid number or name, then pop an environment but
6299 don't give an error message on underflow.
6301 * troff/number.c (start_number): Correct spelling in error message.
6303 * troff/input.c (token::delimiter): Don't print an error message
6306 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
6307 ParseDrawFunction if dw->display_enable is true.
6309 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
6311 * pic/pic.y: Parse text positioning like normal attributes, so as
6312 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
6313 positioning attribute.
6315 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
6317 * tbl/main.c (process_data): When in state START while reading a
6318 text block, don't change to state MIDDLE if c is a newline.
6320 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
6322 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
6323 so as to avoid shadowing parameter.
6325 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
6327 * tbl/table.c (trim_space): Deleted.
6328 (table::add_entry): Don't call trim_space.
6330 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
6332 * VERSION: Change version to 0.6.
6334 * troff/number.c (parse_expr): Make == work.
6336 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
6338 * man/grog.man: New file.
6339 * man/Makefile: Add grog.n to MAN1PAGES.
6340 * etc/grog.sh: New file.
6341 * etc/Makefile: Install grog.sh as grog.
6343 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
6345 * troff/input.c (token::next): Implement \E.
6347 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
6349 * xditview/tmac.X: Change font translations to match tmac.ps.
6351 * troff/input.c (non_empty_name_warning): Don't give a warning if
6352 `\{' terminates the name.
6354 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
6356 * ps/devps/symbol.diff: New file.
6357 * ps/devps/FontMakefile: Mention symbol.diff.
6359 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
6361 * troff/node.c (font_position): Use get_long_name to read the
6364 * troff/env.c (environment_switch): If we get a number that's < 0
6365 or >= NENVIRONMENTS, treat it like a name.
6366 Change NENVIRONMENTS to 10.
6368 * troff/groff.h: Remove definition of FONTS_MAX.
6369 * troff/node.h (class font_family): Make map a pointer instead of
6370 an array. Add a map_size member. Make it a class. Make nm const
6371 and public. Make invalidate_fontno a friend.
6372 * troff/node.c: Define font_table_size. Make font_info a pointer
6373 rather than an array.
6374 (class troff_output_file): Allocate font_position dynamically. Add
6375 nfont_positions member.
6376 (troff_output_file::set_font): Grow font_position if necessary.
6377 (troff_output_file::~troff_output_file): Delete font_position.
6378 (troff_output_file::troff_output_file): Allocate font_position.
6379 (grow_font_table): New function.
6380 (troff_output_file::really_begin_page,
6381 troff_output_file:really_copy_page): Use nfont_positions rather
6383 (mount_font_no_translate, mount_style): Call grow_font_table if
6385 (font_family::font_family): Allocate map.
6386 (font_family::make_definite): Grow map if necessary. Use
6387 font_table_size instead of FONTS_MAX.
6388 (font_family::~font_family): New function.
6389 (invalidate_fontno): Use font_family::map_size.
6390 (get_fontno, env_space_width, env_half_narrow_space_width,
6391 env_narrow_space_width, symbol_fotno, is_good_fontno,
6392 get_bold_fontno, make_glyph_node): Use font_table_size rather than
6394 (next_available_font_position): Never return 0.
6396 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
6398 * ps/tmac.ps: Add font translations for compatibility with dpost.
6400 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
6402 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
6403 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
6404 Move definitions baseline_sep, shift_down, column_sep,
6405 matrix_side_sep into...
6406 * eqn/box.c: Add them to param_table.
6407 * eqn/pbox.h: Add declarations to pbox.h.
6409 * troff/input.c (set_string): Cast value to unsigned char *.
6411 * troff/token.h (process_input_stack): Declare it static before
6412 declaring it a friend.
6414 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
6416 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
6418 * dvi/devdvi/EX: Regenerate.
6420 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
6423 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
6425 * eqn/lex.c: In defaults_table, make definition of `dot' call
6426 `dot_def'. Don't explicitly make it roman. Similarily for other
6429 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
6431 (for_input::get, for_input::peek): Use this.
6432 (do_for): Add by_is_multiplicative argument.
6433 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
6434 Change semantic value of optional_by to be a double plus a flag
6435 saying whethet the by clause is multiplicative.
6437 * eqn/lex.c (get_delimited_text): Remember location of start of
6438 definition. Improve error handling when EOF is encountered.
6440 * lib/font.h: Rename handle_x_command to
6441 handle_unknown_font_command.
6442 * lib/font.c (font::load): Call handle_unknown_font_command for
6443 any unknown command in the font description file. Don't call
6444 handle_x_command. Include the name of the command in the argv.
6445 Improve message for unknown command after kernpairs or charset
6447 * ps/ps.c (ps_font::handle_x_command): Rename to
6448 handle_unknown_font_command. Remove message about `x download'
6449 command. Give error message for wrong number of arguments.
6450 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
6451 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
6452 handle_unknown_font_command. Give an error message for wrong
6453 number of arguments. Rename design_size to designsize.
6454 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
6455 checksum', `designsize' instead of `design_size'.
6457 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
6459 * eqn/*.[chy]: Change underaccent to uaccent.
6461 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
6462 give it the same precedence as ACCENT.
6463 * eqn/other.c (make_underaccent_box): New function.
6464 * eqn/box.h: Declare it.
6465 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
6468 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
6470 * pic/pic.y (reset_all): New function. Called in rule for RESET.
6471 (parse_init): Call reset_all.
6472 (define_variable): When defining scale reset only those
6473 pre-defined variables that are scaled.
6474 (defaults_table): Add `scale' as non-scaled value.
6476 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
6477 together with the text; allow any number of positioning words;
6478 allow center as a positioning word.
6480 * pic/object.c (output::compute_scale): Get picture maximum height
6481 and width from variables called maxpswid and maxpsht.
6482 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
6484 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
6486 * pic/object.c (object_spec::make_text): Multiply textht by number
6489 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
6491 (do_sprintf): New function.
6492 (pic.gperf): Add sprintf token.
6493 (text, sprintf): New rules.
6495 * pic/pic.y: `rand()' with no arguments returns a random number
6498 * pic/pic.y: Allow a bare expression to be an attribute: change
6499 precedences to support this. Change optional_ordinal rule to
6500 optional_ordinal_last to avoid reduce/reduce conflict.
6501 * pic/object.c (object_spec::object_spec): Initialize direction.
6503 * pic/pic.y: Implement ^ operator meaning exponentiation.
6505 * troff/node.h: Add default argument to mount_font.
6506 * troff/node.c (font_position): Read an optional third argument
6507 giving the external_name.
6508 (mount_font): Add optional argument giving the external_name.
6509 (mount_font_not_translate): Have additional argument giving
6510 external name. Use this name to load the font. Pass both names
6511 to font_info::font_info.
6512 (font_info::font_info): Have additional argument giving
6514 (class tfont): New member external_name.
6515 (font_info::get_tfont): Use external name to construct tfont_spec.
6517 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
6519 * eqn/lex.c (init_table): Add argument giving device. Define
6520 name of device to be "1".
6521 (do_ifdef): Counts as true if the argument has been defined with
6523 * eqn/main.c (main): Call init_table with device argument. Make
6524 device local to main.
6525 * eqn/eqn.h: Change declaration of init_table. Remove declaration
6528 * pic/lex.c (get_delimited): Allow text to be delimited by
6529 matching {}s. Don't recognize ending delimiter within a string.
6531 * troff/input.c (get_delim_name): New function.
6532 (token::next): Implement \C.
6534 * lib/font.c (font::load): Grok ---. Add an alias for each
6535 character based on its code.
6536 (font::get_code_width): Deleted.
6537 * lib/font.h (class font): Declare font::number_to_index().
6538 Remove declaration of font::get_code_width.
6539 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
6540 to indices of named characters.
6541 (font::number_to_index): New function.
6542 * troff/input.c (font::number_to_index): New function.
6543 (get_charinfo_by_number, charinfo::get_number,
6544 charinfo::set_number): New functions.
6545 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
6546 (token::process, token::description, token::get_char,
6547 token::add_to_node_list, token::operator==): Handle
6548 TOKEN_NUMBERED_CHAR.
6549 * troff/charinfo.h: Declare get_charinfo_by_number,
6550 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
6552 (charinfo::numbered): New function.
6553 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
6554 * troff/env.h (class environment): Remove declaration of ...
6555 * troff/env.c (environment::make_numbered_char_node): Deleted.
6556 * troff/node.c (make_numbered_node): Deleted.
6557 (class numbered_glyph_node): Remove.
6558 (troff_output_file::put_char_width, troff_output_file::put_char):
6559 Handle numbered chars.
6560 (troff_output_file::numbered_char): Removed.
6561 (tfont::get_code_width): Removed.
6562 (make_glyph_node): Don't search special fonts for numbered
6564 * troff/node.h: Remove declaration of make_numbered_node.
6565 * driver/input.c (do_file): Handle N command.
6566 * driver/printer.h: Add declaration of ...
6567 * driver/printer.c (printer::set_numbered_char): New function.
6568 * dvi/tfmtodit.c (main): Generate unnamed entries.
6569 * ps/devps/afmtodit: Likewise.
6570 * xditview/xtotroff.c (MapFont): Likewise.
6571 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
6573 * tbl/main.c (process_format): If multiple widths are specified
6574 for a column but all the widths are the same, don't give an error
6577 * tbl/table.c (table::do_row): If the current row is all lines and
6578 the stuff doesn't contains a line, mark the top of the row after
6579 printing stuff before the row. If the current row is not all
6580 lines and the stuff doesn't contain a line, don't unnecessarily
6581 mark the top of the row before printing the stuff.
6583 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
6585 * troff/groff.h: Remove MAX_PATH.
6586 * troff/input.c (open_file): Dynamically allocate space for the
6588 (open_mac_file, process_macro_file): Corresponding changes.
6590 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
6592 * troff/node.h (class output_file): Make copy_file pure. Add
6593 vspace method ifdef COLUMN. Add is_printing method.
6594 * troff/node.c: Add class printing_reg. Add class
6595 real_output_file. Derive other output_file classes from
6596 real_output_file; in these classes rename begin_page to
6597 really_begin_page, print_line to really_print_line, copy_file to
6598 really_copy_file, transparent_char to really_transparent_char.
6599 Move output_file::flush to real_output_file. Add printing member
6600 to class output_file.
6601 * troff/div.h: Remove printing member from top_level_diversion.
6602 Add vspace member function to class diversion ifdef COLUMN. Add
6603 some declarations ifdef COLUMN.
6604 * troff/div.c (top_level_diversion::copy_file,
6605 top_level_diversion::transparent_output,
6606 top_level_diversion::output): Don't test printing member before
6608 * troff/input.c: Handle initial variable_space_request ifdef
6610 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
6613 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
6615 * troff/div.c (diversion::need): Make any space forced. If we
6616 sprung a trap, set truncated_space to minus the distance to the
6617 trap and set needed_space to the amount that was needed.
6618 (top_level_diversion::space): A forced space turns no_space_mode
6620 (class constant_vunits_reg): New class.
6621 (init_div_requests): Implement number registers .trunc and .ne
6622 using constant_vunits_reg.
6623 (class truncated_space_reg): Deleted.
6625 * troff/div.h: Don't have a no_space_mode member in diversion.
6626 Instead have it in top_level_diversion.
6627 * troff/div.c (diversion::diversion): Don't initialize
6629 (top_level_diversion::top_level_diversion): Initialize
6631 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
6632 (macro_diversion::output): Don't clear no_space_mode.
6634 * troff/input.c (diverted_space_node::reread): Don't call
6635 environment::do_break. In fill mode, act like a blank line.
6636 (diverted_copy_file_node::reread): Don't call
6637 environment::do_break.
6639 * troff/div.c (blank_line): New function.
6640 * troff/div.h: Declare it.
6641 * troff/input.c (process_input_stack): Call it.
6643 * troff/div.c (truncated_space_reg::get_string): New function.
6644 (init_div_requests): Bind to .trunc.
6645 (space_request, top_level_diversion::space,
6646 top_level_diversion::output, macro_diversion::space,
6647 macro_diversion::output): Update truncated_space.
6648 (macro_diversion::output): Redo calculations when trap sprung.
6649 (macro_diversion::output, macro_diversion::space): No need for
6652 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
6653 after truncating post line spacing.
6655 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
6657 * ps/devps/prologue (MF, SF): Make them work even if setfont is
6658 defined as a procedure rather than as an operator.
6660 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
6662 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
6664 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
6666 * troff/div.c (top_level_diversion::output): Merge
6667 output_file::print_line and output_file::end_of_line member
6669 * troff/div.h (class output_file):
6670 * troff/node.c (troff_output_file::print_line,
6671 troff_output_file::end_of_line, output_file::end_of_line,
6672 ascii_output_file::print_line, suppress_output_file::print_line):
6673 Corresponding changes.
6675 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
6677 * troff/input.c (token::next): Don't give a warning for `\.'.
6679 * troff/env.c (environment::get_center_lines): New function.
6680 (init_env_requests): Bind number register .ce to it.
6681 * troff/env.h: Declare it.
6682 * tbl/table.c (table::init_output): Define reset macro to restore
6683 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
6685 (table::print): If center option not given, then imply center
6686 option if SAVED_CENTER_REG > 0.
6688 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
6690 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
6691 Troff.ps from DOWNLOAD.
6693 * troff/Makefile: Change comment in DEFINES to avoid confusing
6696 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
6697 code. Don't try to catch errors with stopped.
6698 (check_line_lengths): New function.
6699 * ps/devps/prologue (EXEC): Deleted.
6700 (EBEGIN, EEND): New procedures.
6702 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
6704 * troff/input.c: Include request.h before node.h.
6705 * troff/node.c: Likewise.
6706 * troff/env.c: Likewise.
6707 * troff/div.c: Likewise.
6708 * troff/node.h (class special_node): Store argument as a macro
6709 rather than a char *.
6710 * troff/node.c (special_node::special_node, special_node::copy):
6712 (special_node::~special_node): Deleted.
6713 (special_node::tprint): Deleted.
6714 (special_node::tprint_start, special_node::tprint_end,
6715 special_node::tprint_char): New functions.
6716 (troff_output_file::special): Deleted.
6717 (troff_output_file::start_special, troff_output_file::end_special,
6718 troff_output_file::special_char): New functions.
6719 * troff/input.c (special_node::tprint): New function.
6720 (do_special): Use macro not char *.
6721 (do_transparent_macro): Deleted.
6722 (token::next): Don't call do_transparent_macro.
6724 * troff/input.c (token::next): Add 'Y' case.
6725 (do_transparent_macro): New function.
6726 * troff/node.c (troff_output_file::special): Handle newlines with
6727 argument using new continuation convention.
6728 * driver/input.c (get_string): Cope with continuation convention.
6729 (do_file): Don't call skip_line after calling get_string(1).
6730 * ps/ps.c (ps_printer::special, ps_printer::do_import,
6731 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
6733 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
6736 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
6738 * troff/input.c (asciify): By default, illegal input characters
6739 should return empty string.
6741 * troff/input.c (copy_file): Handle first page transition like title.
6742 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
6744 * troff/input.c (token::next): Improve error message for EOF after
6746 (input_char_description): New function.
6747 (get_char_for_escape_name): Use input_char_description.
6748 (token::next): Warn about unrecognized escape sequences.
6749 (warning_table): Add WARN_ESCAPE.
6750 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
6753 * troff/token.h: Remove declaration of process_input_stack.
6755 * troff/input.c: Remove declaration of init_hyphen_requests.
6756 * troff/request.h: Correct spelling in declaration of same.
6758 * troff/input.c (token::next): Check whether escape_char is 0.
6760 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
6762 * groff.c (main, usage, help): Implement -P and -L options.
6763 * groff.sh: Likewise.
6765 * troff/input.c (token::next): Use some gotos to avoid code
6768 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
6769 Avoid calling symbol::symbol if name empty.
6771 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
6773 * troff/input.c (init_input_requests): Make \n(.x return the major
6774 version number and \n(.y return the minor version number.
6775 * troff/Makefile: Construct file majorminor.c defining
6776 major_version and minor_version automatically from ../VERSION.
6778 * troff/node.c (class glyph_node): Make operator new and operator
6780 (class ligature_node): Similarily.
6782 * troff/input.c (operator==(const macro &, const macro &)): New
6784 (non_interpreted_node::same): Use this.
6785 (string_iterator::string_iterator): Make macro& argument const.
6787 * troff/input.c (input_iterator::get): New function. Don't make
6788 asciify_macro or class non_interpreted_node friends of class
6790 (non_interpreted_node::interpret): Use input_iterator::get.
6791 (asciify_macro): Likewise.
6793 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
6794 ~non_interpreted_node): Deleted.
6795 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
6798 * troff/symbol.h: Make all symbol member functions const.
6800 * lib/strtol.c: New file.
6801 * lib/Makefile: Add strtol.c.
6802 * Makefile: Define STRTOL as strtol.o to include strtol in
6805 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
6807 * pic/troff.c (troff_output::simple_circle): Divide by scale.
6809 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
6811 * troff/input.c (do_special): Use input_level.
6813 * troff/token.h (TOKEN_BACKSPACE): New token.
6814 (token::backspace): New function.
6815 * troff/input.c (token::description, token::next, token::process):
6816 Grok TOKEN_BACKSPACE.
6817 (do_special): Turn TOKEN_BACKSPACE back into \b.
6819 * troff/token.h (token::leader): New function.
6820 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
6822 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
6824 * troff/input.c (do_special): Use token::description in error
6827 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
6829 * troff/input.c (decode_args): Combine quoted and
6830 quote_input_level variables. Make it a for (;;) loop.
6832 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
6834 * troff/input.c (read_long_escape_name): The test for whether to
6835 expand buffer was off by 1.
6836 (read_string): Similarily.
6838 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
6840 * troff/input.c: Use `const int' rather than `static const int'.
6842 * troff/div.h (diversion::copy_file): Declare as pure virtual.
6843 (macro_diversion::copy_file): New function.
6844 * troff/node.h: New class diverted_copy_file_node.
6845 * troff/node.c: Implement it.
6846 * troff/input.c (copy_file): Use diversion::copy_file. Handle
6847 first page transition by pushing a diverted_copy_file_node.
6848 * troff/input.c (token::next, process_input_stack): Don't handle
6851 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
6853 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
6854 whether space widths need adjusting.
6856 * troff/charinfo.h: Generalize translated_to_space to
6857 special_translation so as to allow translation to \&.
6858 * troff/input.c (translate): Allow translation to \&.
6859 (charinfo::*): Corresponding changes.
6860 * troff/node.c (make_node, node::add_char): Corresponding changes.
6861 * troff/node.h (dummy_node::dummy_node): Allow optional first
6864 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
6865 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
6867 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
6868 TOKEN_REQUEST with an argument of TITLE_REQUEST.
6869 (token::process): Grok that.
6870 * troff/input.c (copy_file): Handle first page transition like
6871 title by pushing a COPY_FILE_REQUEST cookie.
6872 (token::next, process_input_stack): Grok that.
6873 * troff/node.h (output_file::copy_file): Add x and y arguments.
6875 * troff/div.c (top_level_diversion::copy_file): Supply them.
6876 * troff/node.c (troff_output_file::copy_file): Add x and y
6877 arguments; moveto specified position. Invalidate font_position
6878 array after copying file.
6879 (output_file::copy_file): New function.
6880 (suppressed_output_file::copy_file, ascii_output::copy_file):
6882 * troff/input.c (transparent_file): New function.
6883 (init_input_requests): Bind to "trf".
6884 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
6885 (process_input_stack): Likewise.
6887 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
6889 * troff/node.c (init_node_requests): New number registers .kern
6890 pointing to global_kern_mode, and .lg pointing to
6891 global_ligature_mode.
6893 * troff/node.c (ligature): Don't change it if we get a bad
6896 * troff/input.c (do_define_string): Don't strip tabs.
6898 * troff/input.c (asciify_macro): Make the string_iterator auto.
6900 * troff/node.c (init_font_requests): Rename to...
6901 (init_node_requests):
6902 * troff/node.h: Change declaration.
6903 * troff/input.c (main): Change call.
6905 * troff/input.c (node::reread, diverted_space_node::reread): New
6907 (process_input_stack): Call reread rather than
6908 get_diverted_space_node.
6909 * troff/node.c (node::get_diverted_space_node,
6910 diverted_space_node::get_diverted_space_node): Removed.
6911 * troff/node.h: Declare reread methods instead of
6912 get_diverted_space_node methods. Make `n' member private.
6913 * troff/input.c: (token::diverted_space): Removed.
6914 * troff/token.h: Removed declaration.
6917 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
6919 * eqn/script.c (script_box::compute_metrics): Don't let
6920 SUP_RAISE_FORMAT become negative.
6922 * tbl/table.c (table::do_row): Entries that don't end in the
6923 this row shouldn't make the row non-blank.
6925 * tbl/table.c (table::make_columns_equal): Only set the width of
6926 columns which are marked as equal.
6928 * tbl/main.c (process_data): Before issuing excess data error,
6929 if last character was a newline unget it; then get it again after
6930 the error. Also include the contents of the entry in the message.
6932 * groff.c: New file.
6933 * Makefile: Build groff from groff.c. Make it possible to use
6934 either groff.sh or groff.c as groff.
6935 * Makefile.bd: Similarily.
6937 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
6939 * groff.sh: Don't delay expansion of $@ in assignment to files.
6940 Remove occurrences of \".
6942 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
6944 * all Makefiles: Simplify and rearrange.
6946 * Makefile: Handle fmod like malloc.
6947 * lib/Makefile: Similarily.
6948 * lib/fmod.c: Remove #ifdef NEED_FMOD.
6950 * Makefile: Rename OPTIMISE to OPTIMIZE.
6952 * groff.sh: Remove assignment to PATH.
6953 * Makefile: Remove SHPATH variable.
6954 * Makefile.bd: Similarily.
6956 * groff.sh: Add -V option to print the pipeline instead of
6959 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
6961 * lib/font.c: Split off file searching into ...
6962 * lib/fontfile.c: New file.
6964 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
6966 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
6968 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
6969 Also change misleading comment.
6970 (table::do_vspan): Change similarily misleading comment.
6971 * tbl/main.c (process_data): A format row with an explicit `s'
6972 uses up a data line, even if all the other columns are `_' or `='.
6974 * troff/input.c (token::description): Fix description of
6975 TOKEN_DUMMY and TOKEN_EMPTY.
6977 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
6979 * groff.sh: Fix description of -Z in help message.
6981 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
6983 * pic/object.c (object_spec::make_object): Allow negative and zero
6985 * pic/pic.y: Give linethick default value of -1.0.
6986 * pic/troff.c (troff_output::troff_output): Initialize
6987 last_line_thickness to BAD_THICKNESS.
6988 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6989 (troff_output::line_thickness): Canonicalize negative thicknesses
6990 to RELATIVE_THICKNESS.
6991 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6992 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6994 (tex_output::start_picture): Set pen_size to -2.0.
6996 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6997 0, then use 0 linewidth.
6998 (ps_printer::ps_printer): Initialize line_thickness to -1.
7000 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
7002 * ps/devps/symbolchars: Remove `or'.
7003 * ps/tmac.ps: Implement \(or with .char.
7005 * ps/devps/symbolchars: Move most characters into textmap.
7006 * ps/devps/textmap: Add names for troff bracket characters. Remove
7009 * ps/devps/TSymbol.ps: Removed.
7010 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
7011 * ps/tmac.ps: Do with .char what TSymbol did.
7012 * ps/devps/download: Remove TSymbol.
7014 * ps/devps/T: Removed.
7015 * ps/devps/Troff.ps: Removed.
7016 * ps/devps/Troff.afm: Removed.
7017 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
7018 * ps/devps/download: Remove Troff.
7019 * ps/devps/FontMakefile: Remove T target.
7020 * ps/devps/DESC-A4: Remove T from font list.
7021 * ps/devps/DESC-letter: Likewise.
7023 * troff/input.c (macro_to_node): Rename to ...
7024 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
7025 character's definition while processing it.
7026 * troff/node.c (node::add_char, make_node): Change calls to
7027 macro_to_node accordingly.
7029 * troff/input.c (token::next): Translate \_ to \(ul.
7031 * tty/devascii/R.proto: Add `|'.
7032 * tty/devlatin1/R.proto: Likewise.
7034 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
7036 * man: Put the version number in all the man pages.
7038 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
7040 * Makefile.bd: New file.
7041 * README.bd: New file.
7043 * VERSION: New file.
7044 * lib/version.c: Removed.
7045 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
7048 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
7049 environment variable.
7051 * all Makefiles: Split install target into install.bin for
7052 binaries, and install.nobin for everything else.
7053 * Makefile: Add bindist target.
7055 * man/afmtodit.man: New file.
7056 * man/Makefile: Add afmtodit.n to MAN1PAGES.
7057 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
7059 * ps/Makefile: Pass BINDIR to make install in devps.
7061 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
7062 the space character.
7064 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
7066 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
7068 * ps/ps.c: Redo font downloading.
7069 * ps/devps/download: New file.
7070 * ps/devps/Makefile: Add download to DEVICEFILES.
7071 * ps/devps/afmtodit: Remove -d option.
7072 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
7073 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
7074 * ps/devps/zapfdr.ps: Likewise.
7075 * ps/devps/TSymbol.ps: Likewise.
7077 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
7079 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
7081 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
7083 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
7084 then strip the first line if it starts with %.
7085 * Makefile: Add a comment about this.
7087 * man/tfmtodit.man: New file.
7088 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
7089 * dvi/Makefile: Install tfmtodit in BINDIR.
7091 * dvi/tfmtodit.c (usage): Mention -v option.
7093 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
7095 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
7096 * troff/node.c (troff_output_file::transparent_char): Don't call
7099 * eqn: Add check_tabs method to most box classes.
7100 * eqn/box.c (box::top_level): Call check_tabs.
7102 * eqn/script.c (script_box::output): Use \Z.
7103 * eqn/limit.c (limit_box::output): Use \Z.
7105 * eqn/box.c (box::top_level): Use itoa.
7107 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
7109 * dvi/tmac.dvi: Add font translations for CR, C, TT.
7110 * dvi/devdvi/Makefile: Don't make links to CW.
7112 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
7114 * xditview/tmac.X: Likewise.
7116 * troff/node.c: Add font translation feature.
7117 (get_font_translation): New function.
7118 (symbol_fontno): Translate the font name.
7119 (mount_font_no_translate): Rename to mount_font to this.
7120 (mount_font): New function.
7121 (font_family::make_definite): Call mount_font_no_translate instead
7123 (mount_style): Translate the font name.
7124 (font_translate): New function.
7125 (init_font_requests): Bind "ftr" to font_translate.
7127 * ps/devps/prologue (SN): New procedure that rounds a position to
7128 the nearest (pixel + (.25,.25)).
7129 (DL): Use SN to round endpoints.
7131 * lib/version.c: Changed version to 0.5.
7133 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
7135 * Makefile: Move definition of PAGE to the very beginning, so that
7136 people are less likely to miss it.
7138 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
7140 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
7142 * troff/env.c (environment::choose_breakpoint): Make `can't find
7143 breakpoint' error a warning of type WARN_BREAK. Change message to
7145 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
7147 * troff/input.c: Add WARN_BREAK to warning_table. Include
7148 WARN_BREAK in DEFAULT_WARNING_MASK.
7150 * tty/tmac.tty: Add definition of \(+-.
7152 * groff.sh: Remove `--' option to set command.
7154 * dvi/devdvi/texsy.map: Remove duplicate md entry.
7156 * ps/devps/eqnchar: Better definition of cdot using md.
7157 * dvi/devdvi/eqnchar: Likewise.
7158 * xditview/devX100/eqnchar: Likewise.
7159 * xditview/devX75/eqnchar: Likewise.
7160 * eqn/lex.c: Add definition of cdot.
7162 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
7164 * troff/input.c (get_optional_char): New function.
7165 * troff/input.c (set_page_character): Use get_optional_char(),
7166 rather than has_arg() and tok.get_char(1).
7167 * troff/env.c (tab_character, leader_character, hyphen_char,
7168 field_characters): Likewise.
7169 (margin_character): Likewise. Also always delete the
7170 margin_character_node.
7172 * troff/input.c (token::get_char): Use token::description.
7174 * troff/input.c (has_arg): Don't skip over tab and \}.
7175 * troff/number.c (start_number): Give a warning if the number
7176 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
7178 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
7180 * troff/input.c (empty_name_warning, non_empty_name_warning): New
7182 (get_name, get_long_name): Use these. Rename `warn' argument to
7185 * troff/node.c (get_fontno): Test that the symbol is not null.
7187 * troff/input.c (token::description): New function.
7188 * troff/number.c (parse_term): Use token::description in `numeric
7189 expression expected' message.
7190 * troff/groff.h: Add WARN_MISSING.
7191 * troff/number.c (start_number): New function.
7192 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
7193 get_incr_number): Use start_number().
7194 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
7196 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
7197 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
7199 * troff/input.c (token::get_char): Use WARN_MISSING.
7200 * troff/input.c (token::delimiter): Use token::description.
7201 * troff/env.c (environment_switch): Back out Aug 3 change.
7202 * troff/input.c (has_arg): Skip over \}s and tabs but give a
7204 * troff/token.h (token::tab): New function.
7205 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
7206 * troff/reg.c (alter_format): Likewise.
7207 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
7209 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
7211 * troff (most files): Redo warnings. Divide warnings into various
7212 categories; warning() has an additional first argument indicating
7213 the category it falls into.
7214 * troff/input.c (main): -w now takes an argument. New option -W.
7215 (enable_warning, disable_warning): New functions.
7217 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
7218 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
7220 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
7222 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
7223 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
7224 * xditview/devX75/eqnchar: Likewise.
7225 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
7227 * eqn/other.c: When bar or over applies to a single character
7228 don't produce an overline_box or an underline_box. Instead produce
7229 an accent_box or an underaccent_box, with the accent a line
7230 whose width is accent_width. New classes underaccent_box,
7231 overline_char_box and underline_char_box.
7232 * eqn/box.h: Move overline_box, underline_box, accent_box class
7233 declarations into eqn/other.c. Add declarations of
7234 make_underline_box, make_overline_box, make_accent_box.
7235 * eqn/eqn.y: Call make_overline_box, make_underline_box
7236 make_accent_box instead of constructors.
7237 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
7239 * eqn/other.c: Add accent_box::~accent_box.
7240 * eqn/box.h: Declare it.
7242 * groff.sh: With -Tps, use eqn -D.
7244 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
7246 (underline_box::output): Similarily.
7247 (accent_box::output): Use \Z.
7249 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
7252 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
7254 * troff/div.c (top_level_diversion::transparent_output(unsigned
7255 char)): Use asciify.
7256 * troff/input.c (asciify): Don't make it static.
7257 * troff/token.h (asciify): Declare it.
7259 * troff/input.c (get_name, get_long_name, token::get_char,
7260 token::delimiter): Add an extra default argument which says
7261 whether a warning should be printed.
7262 * troff: Pass a non-zero argument to one of these rather than
7263 printing a warning directly.
7265 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
7267 * troff: Consistently use symbol::is_null.
7269 * troff/dictionary.h: Move some inline functions into
7272 * troff/request.h: Move inline functions into input.c.
7273 (request_or_macro::invoke): Make it pure.
7275 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
7276 * troff/input.c (init_input_requests): Use class constant_int_reg.
7277 (class compatible_reg): Deleted.
7278 * troff/div.c (init_div_requests): Use class constant_int_reg.
7279 (class last_post_line_extra_space_reg): Deleted.
7281 * troff/env.c (tab_character): Don't change the tab character if
7282 we get an invalid argument.
7283 (hyphen_char): Similarily.
7285 * troff/reg.c (alter_format): Check that nm is not null.
7287 * Makefile, groff.sh: Make it possible to customize the commands
7288 used for printing PostScript and dvi files. Also make it possible
7289 to customize the path used by groff.sh.
7291 * eqn/eqn.y: Make `left' right associative.
7293 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
7295 * pic/pic.h: Added definition of M_SQRT2 for those systems that
7298 * pic/pic.h: Removed definition of INT_MAX.
7300 * troff/node.c (italic_corrected_node::vertical_extent): Omit
7303 * troff/input.c (token::next): Handle \R like \n.
7305 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
7307 * ps/tmac.pc (PSPIC): Simplify.
7309 * troff/env.c (tab_stops::to_string):
7310 * pic/pic.y (object_type_name):
7311 * pic/troff.c (simple_output::line):
7312 * pic/tex.c (tex_output::spline):
7313 * pic/object.c (object_spec::make_object):
7314 * tbl/main.c (process_data): Add cases to switch statements to
7315 avoid cfront warnings. (Some of these are spurious, since the
7316 switch already has a default case.)
7318 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
7319 `ps-'. Don't test systat; instead check number of arguments to
7322 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
7324 * macros/tmac.e: Do not decrease the page offset by 0.5i.
7326 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
7327 Unlink the file as soon as we have opened it, so that we don't
7328 have to bother with signal handlers.
7330 (fatal_error_exit): Deleted.
7331 (main): Don't call signal.
7333 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
7335 * dvi/devdvi/Makefile: Use the -k option with S and MI.
7337 * pic/pic.y: If there is a label, or an nth construction before
7338 the first `.' in the argument to `with', ignore it and generate a
7340 * pic/lex.c (lex_warning): New function.
7342 * tbl/table.c (table::init_output): In section keep and release
7343 macro, use 0 indent when diverting and the correct indent when
7346 * troff/input.c (interpolate_number_format): Do not interpolate
7347 anything if the number register is not defined.
7349 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
7351 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
7353 * ps/devps/prologue (PICTURE): Set components of graphics state to
7354 their default values.
7356 * ps/devps/text.enc: Add trademark
7357 * ps/devps/textmap: Add names for club, spade, heart, diamond,
7358 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
7359 * ps/devps/symbolchars: Add names for summation and product.
7361 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
7362 suchthat. Add pp. Add upper-case letters.
7364 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
7365 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
7368 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
7369 rA (right angle bracket) to ra. Introduce names for double-headed
7370 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
7371 * ps/devps/textmap: Likewise for ps device.
7372 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
7373 * tty/devascii/R.proto: Rename lA to la and rA to ra.
7374 * tty/devascii/R.proto: Likewise.
7375 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
7377 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
7379 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
7381 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
7384 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
7386 * troff/div.c (when_request): Use symbol::is_null rather than
7387 has_arg to determine whether we have an argument.
7388 (change_trap): Remove the trap if we get an invalid number. Give
7389 an error if we don't get at least the macro name.
7390 (diversion_trap): Remove trap if we get an invalid name or number.
7392 * troff/env.c (environment_switch): Pop if we get an invalid
7393 symbol or numeric expression.
7395 * troff/input.c (do_define_macro): If EOF is encoutered while
7396 defining the macro, do tok.next() before returning.
7398 * troff/token.h (has_arg): Move definition from here, to ...
7399 * troff/input.c (has_arg): ... here
7401 * troff/env.c (space_size): Do nothing if we get an invalid argument.
7402 * troff/input.c (shift): Likewise.
7404 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
7407 * pic/troff.c (troff_output::start_picture): Comment out calls to
7410 * eqn/main.c (do_file): Subtract 1 from current_lineno if
7411 interpret_lf_args succeeds.
7413 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
7414 \\. This avoids problems with \$N.
7416 * groff.sh: Pass -C to preprocessors.
7418 * lib/lf.c (interpret_lf_args): Be more flexible.
7420 * tbl/main.c (main): Add -C option.
7421 (table_input::get): Do not recognize TE if followed by character
7422 other than a space or newline unless -C option given.
7423 (process_input_file): Likewise for lf, TS.
7424 (process_data): Likewise for lf in text blocks.
7426 * eqn/main.c (main): Add -C option.
7427 (do_file): Don't recognize EQ, EN or lf if followed by character
7428 other than space or newline unless -C option given.
7429 * eqn/lex.c (file_input::read_line): Similarily.
7430 * eqn/eqn.h: Declare compatible_flag.
7432 * etc/soelim.c (main): Add -C option.
7433 (interpret_lf_args): Use version in libgroff.
7436 * pic/main.c (main): Add -C option, which sets compatible_flag.
7437 (top_input::get), (top_input::peek): If -C option not given,
7438 do not recognize .PS/.PE/.PF/.lf if followed by a character
7439 other than space or newline.
7440 * pic/lex.c (file_input::read_line): Similarily.
7441 * pic/pic.h: Add declaration of compatible_flag.
7443 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
7445 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
7447 * troff/node.c, troff/node.h: Add `asciify' methods to classes
7448 derived from node. New class space_char_hmotion_node.
7449 * troff/input.c (asciify_macro): New function.
7450 * troff/input.c (init_input_requests): New request `asciify' bound
7452 * macros/mm.diff: New file.
7453 * Makefile: In install.mm target use `patch' to apply
7456 * troff/input.c (macro::print_size): Just print the size in bytes.
7458 * troff/div.c (return_request): Correct the argument
7461 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
7463 * troff/node.h (class composite_node): Add sz member.
7464 * troff/node.c (composite_node::size): Return sz.
7465 * troff/input.c (macro_to_node): Use the initial size in the
7466 environment as the size of the composite_node.
7468 * troff/node.c (node::zero_width_tprint): Provide a reasonable
7471 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
7473 * troff/div.c (change_trap): If we get a bad number expression,
7476 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
7478 * lib/matherr.c (matherr): Define this only if math.h defines
7481 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
7483 * troff/div.c (macro_diversion::distance_to_next_trap): If there
7484 no diversion trap return vunits(INT_MAX - vresolution).
7486 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
7488 * troff/input.c (do_zero_width): New implementation that doesn't
7489 use a temporary environment. Use instead:
7490 (token::add_to_node_list): New function.
7491 * troff/env.c (environment::get_prev_char_height),
7492 (environment::get_prev_char_height),
7493 (environment::get_prev_char_skew): New functions.
7494 (environment::get_prev_char): New function.
7495 (environment::get_prev_char_width): Change to use get_prev_char.
7496 (init_env_request): Implement new registers .cht, .cdp, .csk.
7497 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
7498 \Z being processed in a separate environment.
7500 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
7502 * tbl/table.c: Removed TABLE_BOTTOM_REG.
7504 * tbl/table.c (table::init_output): In the section release macro,
7505 give a warning message if the section won't fit on one page.
7507 * tbl/table.c (table::do_top): Emit table keep only if table is
7509 (table::do_bottom): Likewise for table release.
7510 (table::table), (table::add_vertical_rule): Remove reference to
7512 * tbl/table.h: Remove keep member.
7514 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
7515 SECTION_RELEASE_MACRO, if there's not enough space before the next
7516 trap to output the diversion, call T# ourselves, set
7517 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
7518 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
7519 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
7520 vertical position and return to it before turning traps on again.
7522 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
7524 * troff/node.c, troff/node.h: In classes derived from node,
7525 replace prev_char_width method by last_char_node method.
7526 * troff/env.c (environment::get_prev_char_width): Use
7527 node::last_char_node rather than node::get_prev_char_width.
7529 * Makefile: Added comment about -fno-inline on 68030-based
7532 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
7533 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
7534 expressions using sizeof to int.
7535 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
7537 * macros/tmac.e (TS): Don't move @f back past the current
7540 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
7542 * ps/ps.c (main): Buffer stderr.
7543 * dvi/dvi.c (main): Likewise.
7544 * tty/tty.c (main): Likewise.
7546 * ps/ps.c (ps_printer::do_import): Improve error handling.
7548 * troff/input.c (abort_request): Use asciify.
7550 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
7551 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
7552 type of first argument int rather than char. This works around a
7553 bug on the 68030 based Apollo using g++ 1.37.1.
7555 * tbl/table.h (class table): Add `keep' member.
7556 * tbl/table.c (table::table): Initialize `keep'.
7557 (table::add_vertical_rule): Set `keep' to 1.
7558 (table::do_top): Only emit table keep macro is `keep' is non-zero.
7559 (table::do_bottom): Likewise for table release macro.
7560 (table::do_row): Emit section keep macro even if the row is 0.
7562 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
7564 * macros/tmac.e (@C): Preserve the font family across the change
7567 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
7569 * lib/font.c: Initialize font::hor and font::vert to 1.
7570 (font::load_desc): Check the values of font::hor and font::vert.
7572 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
7573 be included in a C compilation.
7574 (iftoa): Use INT_DIGITS. Include lib.h.
7576 (as_string): Likewise.
7577 * tbl/table.c: Removed definition of INT_DIGITS.
7578 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
7579 * troff/input.c (input_input_requests): Likewise.
7580 * ps/ps.c (make_encoding_name): Likewise.
7581 (ps_printer::set_style): Likewise.
7582 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
7584 * tty/devascii/R.proto: Map fm onto '.
7585 * tty/devlatin1/R.proto: Likewise.
7587 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
7589 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
7590 argument to \w is at a different input level.
7592 * tbl/table.c (table::init_output): Define a new macro
7593 REPEATED_VPT_MACRO, like vpt but if in a diversion also
7594 transparently outputs itself.
7595 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
7597 (table::do_row): Likewise.
7599 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
7600 TRANSPARENT_STRING_NAME.
7602 * tbl/table.c (table::init_output): In the table release macro
7603 print an error message and don't produce any output if after
7604 issuing the need request the table still will not fit. Also
7605 remove the diversion after bringing it back.
7607 * tbl/table.c (table::init_output): Define a new macro
7608 REPEATED_MARK_MACRO, like mk but if in a diversion also
7609 transparently outputs itself.
7610 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
7611 is necessary because .TH might not call .T#.
7612 (table::do_top): Likewise TOP_REG.
7613 (table::define_bottom_macro): If TOP_REG is no longer valid, use
7614 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
7615 table header might contain just the two top rules.
7617 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
7619 * troff/div.c: Implement new request `ptr' to print all traps.
7621 * troff/env.c (init_env_requests): Implement `.tabs' reg with
7622 init_string_env_reg.
7623 * troff/env.c (class tab_reg): Deleted.
7625 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
7627 * troff/div.c: New number register .pn returns the number of the
7628 next page as set by the pn request.
7630 * macros/tmac.an: Redid headers and footers. Number each manual
7631 entry starting from 1 unless \nC is > 0, like Sun. Added an
7632 optional 5th argument to .TH which specifies the manual name and
7633 appears in the center of the header. Understand the X, P and D
7636 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
7638 * troff/env.c (init_env_requests): New number register `.lt' to
7639 return the title length.
7641 * troff/node.h (class transparent_dummy_node): New class.
7642 * troff/node.c (class transparent_dummy_node): Provide member
7644 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
7647 * troff/input.c (token::next): New escape sequence \).
7648 * troff/input.c (get_copy): Recognize \) in copy mode.
7650 * troff/input.c (input_stack::clear): New function.
7651 * troff/input.c (exit_request): Use input_stack::clear.
7653 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
7654 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
7656 * troff/env.c: Move set_page_character to input.c. Move
7657 page_character to input.c also.
7658 * troff/env.c (title): Split off the reading of the parts of the
7659 title into read_title_parts.
7660 * troff/input.c (read_title_parts): New function. Check the
7661 input_level when testing whether a token matches the delimiter.
7663 * troff/input.c (exit_request): New function.
7664 * troff/input.c (init_input_requests): Bind ex request to
7665 exit_request rather than exit_groff.
7667 * troff/input.c (exit_groff): Call tok.next() before
7668 process_input_stack().
7670 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
7672 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
7673 * troff/env.h: ditto.
7674 * troff/input.c: ditto.
7676 * troff/env.c (environment::is_empty): Test pending_lines.
7678 * troff/env.c (environment::have_pending_lines): Removed.
7680 * troff/input.c: Add request to flush pending lines from the
7683 * troff/env.c, troff/env.h: Add automatic widow control feature.
7685 * troff/input.c (exit_groff): Do process_input_stack() after
7686 do_break() but before setting exit_flag to 2.
7688 * troff/input.c: Remove FLUSH_PENDING_LINES and
7689 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
7690 environment after END_TRAP token seen, but only if there aren't
7691 any more traps still unfinished.
7692 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
7694 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
7696 * troff/env.c: Rename the `retain_size' member of class
7697 pending_output_line to `no_fill'.
7699 * troff/env.c (title): When the line is output, make the
7700 retain_size argument !fill.
7702 * troff/node.h: Add `hyphenated' member to struct breakpoint.
7703 * troff/node.c (space_node::get_breakpoints),
7704 (dbreak_node::get_breakpoints): Fill this in.
7705 * troff/env.c: Allow specification of maximum number of
7706 consecutive hyphenated lines.
7708 * troff/env.c (environment::is_empty): Add test for !current_tab.
7710 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
7712 * troff/env.c (environment::hyphenate_line): Don't completely give
7713 up if the word is not to be hyphenated; continue so that breaks
7714 can be made at break_char_node's.
7716 * lib/lib.h: Only define INT_MAX if it's not already defined;
7717 undef INT_MIN if it's already defined.
7719 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
7721 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
7722 This works around a bug in AT&T C++ 2.0 used with an ANSI C
7725 * macros/tmac.an (an-header): Set no-space mode.
7727 * macros/tmac.an (TH): Start a new page if necessary.
7729 * Started using ChangeLog at version 0.4.
7732 version-control: never