Fix problems with preprocessor string for `man' program.
[s-roff.git] / ChangeLog
blob8875dc1b23fdac6901003369c7310aa88a04e5bb
1 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3         Fix problems with preprocessor string for `man' program.
5         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6         Updated/added copyright.
7         Moved Emacs's local variable to identify nroff mode to the end of
8         the file; add local variable if missing.
10 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
12         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
13         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
14         * configure: Regenerated.
16 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
18         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
19         * configure: Regenerated.
21 2001-06-24  Werner LEMBERG  <wl@gnu.org>
23         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
24         but www.tmac.
25         * doc/pic.ms: Fix typos.
27 Version 1.17.1 released
28 =======================
30 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
32         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
33         * configure: Updated.
35 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
37         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
38         image names.
39         * src/roff/troff/dic.cc (blank_line): Add html tag.
41 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
43         * src/roff/troff/input.cc (do_suppress): Fix typo.
45 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
47         Added two new options (-D and -I) to specify image names and a
48         subdirectory to place the images in.
50         Change syntax from \\Ox to \\O[x].
52         * src/devices/grohtml/post-html.cc (main): Add options.
53         (usage): Updated.
54         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
55         Use `NULL' instead of `0' for null string pointers.
56         (MAX_RETRIES): New macro.
57         (lengthOfintToStr, intToStr, make_message): New functions.
58         (makeFileName): Make function static.
59         Implement -D and -I options.
60         (checkImageDir): New function.
61         (write_end_image, write_start_image): Use new syntax of \O.
62         (createAllPages, removeAllPages): Implement -D and -I options.  Use
63         make_message().
64         (createImage): Use make_message().
65         (addps4html): Add guard for malloc().
66         (usage, scanArguments): Updated.
67         (makeTempFiles): Use mkstemp().
68         (removeTempFiles): Use unlink().
69         (findPrefix): Add guard for malloc().
70         (main): Updated.
71         * src/roff/troff/input.cc (get_delim_file_name): New function to
72         parse \O.
73         (do_suppress): Updated to parse new syntax.
74         * src/devices/grohtml/grohtml.man: Updated.
75         * tmac/www.tmac: Updated to new syntax.
77         * NEWS: Updated.
79 2001-06-15  Werner LEMBERG  <wl@gnu.org>
81         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
83         * src/devices/grohtml/grohtml.man: Minor improvements.
85 2001-06-14  Werner LEMBERG  <wl@gnu.org>
87         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
89 2001-06-11  Werner LEMBERG  <wl@gnu.org>
91         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
92         line to specify preprocessor options -- mandb 2.3.1 only recognizes
93         the former.
94         * src/preproc/grn/grn.man: Add proper '\" string.
96 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
98         * test-groff: Don't use PATH but GROFF_BIN_PATH.
100 2001-06-08  Werner LEMBERG  <wl@gnu.org>
102         Updated to autoconf 2.50.
104         * configure.in: Renamed to...
105         * configure.ac: This.
106         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
107         (GROFF_OS390): Updated.
108         * configure: Regenerated.
110 2001-05-18  Werner LEMBERG  <wl@gnu.org>
112         * src/roff/troff/env.c, src/roff/troff/env.h,
113         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
114         from 2000-12-21.
116 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
118         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
120 2001-05-16  Bruce Lilly  <blilly@erols.com>
122         * contrib/mm/m.tmac (TH): Fix incorrect error message.
124 2001-05-16  Werner LEMBERG  <wl@gnu.org>
126         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
127         less than or equal zero; set it to 1 then.
128         * src/roff/troff/node.h (node::node): Initialize `last'.
130 2001-05-08  Werner LEMBERG  <wl@gnu.org>
132         * tmac/an-old.tmac: Make predefined strings work in compatibility
133         mode.
134         Add troff version guard.
135         * tmac/doc.tmac: Simplify version guard.
137 2001-05-07  Werner LEMBERG  <wl@gnu.org>
139         The .ns and .rs requests are now honoured not only in the top-level
140         but in all diversions (similar to UNIX troff).
142         This change is based on a patch from Tadziu Hoffmann
143         <hoffmann@usm.uni-muenchen.de>.
145         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
146         (top_level_diversion): Remove `no_space_mode' member.
147         * src/roff/troff/div.cc (diversion::diversion,
148         top_level_diversion::top_level_diversion): Updated.
149         (macro_diversion::output): Reset `no_space_mode'.
150         (no_space, restore_spacing): Use `curdiv' unconditionally.
151         (space_request, blank_line): Check `curdiv->no_space_mode'.
152         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
153         `curdiv' unconditionally.
154         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
155         Updated.
157 2001-05-06  Werner LEMBERG  <wl@gnu.org>
159         Added two new requests `de1' and `am1' which are similar to `de' and
160         `am' with the difference that compatibility mode is saved on entry,
161         switched off during macro execution, and restored on exit.
163         * src/roff/troff/input.h: Added two new special characters
164         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
165         * src/roff/troff/input.cc (input_iterator): Added two member
166         functions `save_compatible_flag' and `get_compatible_flag'.
167         (input_stack): Ditto.
168         (string_iterator): Ditto.  Also add private member
169         `saved_compatible_flag'.
170         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
171         (calling_mode): New enumeration.
172         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
173         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
174         (define_macro, define_indirect_macro, append_macro, ignore): Use
175         `calling_mode'.
176         (define_nocomp_macro, append_nocomp_macro): New functions.
177         (init_input_requests): Updated.
178         (do_request): Rename local variable `saved_compatible_flag' to
179         `old_compatible_flag'.
180         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
182         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
183         public and trap-invoked macros.  As a consequence, the man macros
184         work in compatibility mode also.
186 2001-05-06  Solar Designer  <solar@openwall.com>
188         * Makefile.in: Use $(mandir).
190 2001-05-06  Alexios Zavras  <zvr@pobox.com>
192         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
194 2001-05-05  Werner LEMBERG  <wl@gnu.org>
196         Added `.ns' number register: Returns 1 in no-space mode (if in
197         top-level diversion), 0 otherwise.
199         * src/roff/troff/div.cc (no_space_mode_reg): New class.
200         (init_div_requests): Updated.
201         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
202         Document it.
204 2001-05-04  Werner LEMBERG  <wl@gnu.org>
206         * src/roff/nroff/nroff.man: Improved documentation (especially
207         locales).
209 2001-05-02  Werner LEMBERG  <wl@gnu.org>
211         Added `brp' request: This is \p as a request.
213         * src/roff/troff/env.cc (environment::do_break): Add parameter
214         `spread'.
215         (do_break_request): New function (was `break_request').
216         (break_request): Calls `do_break_request'.
217         (break_spread_request): New; calls `do_break_request'.
218         (init_env_requests): Updated.
219         * src/roff/troff/env.h: Updated.
220         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
222         * REVISION: Increased to 1.
223         * win32-diffs: Updated.
225 2001-05-01  Werner LEMBERG  <wl@gnu.org>
227         * tmac/an-old.tmac: Fix minor compatibility mode issue.
228         * tmac/troffrc-end: Make it really work in compatibility mode.
230 2001-04-27  Werner LEMBERG  <wl@gnu.org>
232         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
233         stdlib.h.
235 2001-04-22  Werner LEMBERG  <wl@gnu.org>
237         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
238         latest versions from glibc CVS archive.
240         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
241         <c.zeelenberg@hccnet.nl>.
243 2001-04-21  Werner LEMBERG  <wl@gnu.org>
245         * configure.in: Move check for mkstemp() to...
246         * aclocal.m4 (GROFF_MKSTEMP): This new function.
247         * configure: Regenerated.
249         * src/include/groff-getopt.h: Don't use variable names in
250         declarations.
252         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
253         * src/devices/grohtml/Makefile.sub,
254         src/devices/grohtml/post-html.cc: Updated.
256 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
258         * configure.in: Add special check for mkstemp().
259         * src/libs/libgroff/tmpfile.cc: Use it.
260         * src/utils/indxbib/indxbib.cc: Ditto.
261         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
262         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
263         `const'.
265 2001-04-20  Bruce Lilly  <blilly@erols.com>
267         `Version_string' as C++ object was not visible to linker from C
268         object files.
269         Add `const' to `Version_string'.
271         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
272         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
273         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
274         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
275         (scanArguments), src/preproc/refer/refer.cc (main),
276         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
277         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
278         (main), src/devices/grohtml/post-html.cc (main),
279         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
280         (main), src/utils/hpftodit/hpftodit.cc (main),
281         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
282         (main), src/utils/lkbib/lkbib.cc (main),
283         src/utils/addftinfo/addftinfo.cc (main): Implement it.
285         * src/roff/groff/pipeline.c: Add _UWIN.
286         * src/include/nonposix.h: Ditto.
288 2001-04-20  Werner LEMBERG  <wl@gnu.org>
290         * src/include/lib.h: Use HAVE_STRERROR.
291         * src/roff/groff/pipeline.c: Ditto.
292         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
293         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
294         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
295         * win32-diffs: Updated.
296         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
298 2001-04-19  Werner LEMBERG  <wl@gnu.org>
300         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
301         instead of hardwired `"troff"'.
302         (char_buffer::read_file): Remove unused variables.
303         (char_buffer::write_file_troff): Ditto.
304         (char_buffer::write_file_html): Ditto.
305         (generateImages): Ditto.
306         (abs): Removed.
307         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
309         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
311         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
312         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
313         index_search_item::search1): Ditto.
314         * src/roff/troff/node.h (width_list): Reorder members.
315         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
316         (lookup_warning): Ditto.
317         (prepend_string): Commented out.
318         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
319         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
320         * src/preproc/tbl/main.cc (process_format): Ditto.
321         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
322         compiler warnings.
323         * src/preproc/pic/pic.cc: Updated.
324         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
325         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
326         * src/preproc/refer/command.cc (execute_command): Ditto.
327         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
328         * src/preproc/refer/token.cc (lookup_token): Ditto.
329         * src/preproc/soelim/soelim.cc: Ditto.
330         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
331         (isHexDigit): Commented out.
332         (pushBackBuffer::isString): Remove unused variable.
333         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
334         warning.
335         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
336         resource_manager::read_resource_arg, read_one_of, parse_extensions):
337         Ditto.
338         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
339         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
340         lookup_paper_size): Ditto.
341         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
342         (text_glob, element_list): Reorder members.
343         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
344         compiler warning.
345         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
346         return value to `void'.
347         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
348         of initializers.
349         * src/devices/grohtml/html.h (simple_output::check_newline,
350         simple_output::space_or_newline, simple_output::enable_newlines):
351         Add return value.
352         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
353         compiler warnings.
354         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
355         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
356         output_ligatures, output_charset, read_map): Ditto.
357         * src/utils/lookbib/lookbib.cc (main): Ditto.
358         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
359         (do_file): Fix typo (`=' -> `==').
360         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
361         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
363 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
365         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
366         Fix usage of GROFF_BIN_PATH.
367         * src/roff/nroff/nroff.man: Updated.
369 2001-04-18  Werner LEMBERG  <wl@gnu.org>
371         * NEWS: Fixing typos.
372         Updated.
374 Version 1.17 released
375 =====================
377 2001-04-17  Werner LEMBERG  <wl@gnu.org>
379         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
380         directory, not in $(srcdir).
382 2001-04-16  Werner LEMBERG  <wl@gnu.org>
384         * doc/groff.texinfo: More info on conditionals.
386 2001-04-15  Werner LEMBERG  <wl@gnu.org>
388         * doc/groff.texinfo: Added some info about groff internals.
390         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
391         about missing special character only if the name is non-null.
393 2001-04-14  Werner LEMBERG  <wl@gnu.org>
395         Removing the grohtml-old device driver which is now obsolete.
397         * src/devices/grohtml-old/*: Removed.
398         * font/devhtml-old/*: Removed.
399         * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
400         comments.
401         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
402         * test-groff (PATH): Updated.
403         * tmac/Makefile.sub (NORMALFILES): Updated.
404         * tmac/an-old.tmac: Remove special code for html-old device.
405         Replace `html-or-html-old' register with `an-html'.
406         * tmac/eqnrc: Updated.
407         * tmac/html-old.tmac: Removed.
408         * tmac/troffrc, tmac/troffrc-end: Updated.
409         * tmac/www.tmac: Remove special code for html-old device.
410         Replace `html-or-html-old' register with `www-html'.
412         * src/libgroff/tmpfile.cc (remove_tmp_files),
413         src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
414         src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
415         parameter if used as a single argument for consistency with rest of
416         source code.
418         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
420 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
422         * src/roff/troff/troff.man: Fixing typos.
424 2001-04-13  Werner LEMBERG  <wl@gnu.org>
426         * doc/pic.ms: Fixing many font switches.
427         * doc/groff.texinfo: Fixes, additions.
428         * MORE.STUFF: Updated.
430 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
432         * src/devices/grohtml/grohtml.man: Updated manual page regarding
433         simple anchor.
434         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
435         cropping of images.
436         (removeTempFiles): New function to tidy up temporary files.
437         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
438         Many fixes to do with the new inline suppress node and image regions
439         are much tighter.
440         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
441         (generate_img_src): New function.
442         (html_printer::do_auto_image): Utilizes it.
443         (do_heading, do_title): Include inline images within their contents.
444         (html_printer::begin_page): Tidied up comments that are issued to
445         the html output file.
446         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
447         than courier.
448         (text_glob::is_br): New method used by do_heading.
449         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
450         equivalent diversion.
451         * src/include/html-strings.h: Altered image tags to reflect the
452         inline image node.
453         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
454         parameter.
455         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
456         it is already inside a pic image.  Only emit tags if the argument
457         `-Tps:html' is present.
458         * src/preproc/tbl/main.cc: Changes to reflect additional
459         `html_end_suppress' parameter.
460         * src/roff/troff/env.cc: Only emit eol tag if a node has been
461         emitted since the last eol tag was written.
462         * src/roff/troff/env.h: New boolean `emitted_node'.
463         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
464         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
465         * src/roff/troff/node.cc (check_charinfo): New method. 
466         (troff_output_file::determine_line_limits): Alterations to limit
467         checking.
468         * tmac/www.tmac: Changes to reflect new suppress nodes.
469           
470 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
472         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
473         Escape the html_glyph in the buffer.
474         (str_translate_to_html): Output the unescaped escaped_char.
475         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
476         `frame=void', not `frame=none'.  Add `border=0'.
478 2001-04-12  Ruslan Ermilov  <ru@FreeBSD.org>
480         * contrib/mm/groff_mm.man: Fixing some typos.
482 2001-04-12  Werner LEMBERG  <wl@gnu.org>
484         * PROBLEMS: Add some words on how to avoid wrapper macros.
486 2001-04-11  Blake McBride  <blake@florida-software.com>
488         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
490 2001-04-11  Werner LEMBERG  <wl@gnu.org>
492         * font/devlbp/Makefile.sub (CLEANADD): Set it.
493         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
494         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
495         * Makefile.sub (DISTCLEANFILES): Here.
497         * libs/libgroff/new.cc: Include `nonposix.h'.
498         * win32-diffs: Updated.
500 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
502         Added skeleton macro for defunct macros.
504         Updated documentation.
506         When inside displays, an empty input line warning should be
507         suppressed.  If another macro call is put inside a display,
508         all subsequent empty lines found in that display caused a
509         warning to be emitted.
511         * tmac/doc.tmac (doc-defunct-macro): New macro.
512         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
513         (doc-restore-global-vars): Fixed typo.
514         (doc-empty-line): Check the `doc-display-depth' register to
515         determine whether we are inside display or not.
517         * tmac/doc-common: Removed `Or' and `Sf' registers.
518         Moved obsolete `Ds' macro to doc.tmac.
520         * tmac/groff_mdoc.man: Bump document date.
521         Document `.Vt' under ``Variable Types''.
522         Removed documentation for obsolete `.Or' macro.
524 2001-04-10  Werner LEMBERG  <wl@gnu.org>
526         * NEWS: Updated.
527         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
529 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
531         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
532         (usage): Add stream argument. Don't exit.
533         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
534         Write --version output to stdout, not stderr.
535         (usage): Add stream argument. Don't exit.
536         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
537         (usage): Add stream argument. Don't exit.
538         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
539         constants.
540         (usage): Add stream argument. Don't exit.
541         (main): Write --help output to stdout, not stderr.
542         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
543         (usage): Add stream argument. Don't exit.
544         * src/devices/grops/ps.cc (main): Accept --help and --version.
545         (usage): Add stream argument. Don't exit.
546         * src/devices/grotty/tty.cc (main): Accept --help and --version.
547         (usage): Add stream argument. Don't exit.
548         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
549         (main): Accept --help and --version.
550         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
551         (main): Accept --help and --version.
552         * src/preproc/html/pre-html.cc (usage): Add stream argument.
553         (scanArguments): Accept --help and --version.
554         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
555         (main): Accept --help and --version.
556         * src/preproc/refer/refer.cc (main): Accept --help and --version.
557         (usage): Add stream argument. Don't exit.
558         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
559         exit.
560         (main): Accept --help and --version.
561         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
562         (main): Accept --help and --version.
563         * src/roff/groff/groff.cc (main): Accept --help and --version.
564         (synopsis): Add stream argument.
565         (help): Write --help output to stdout, not stderr.
566         (usage): Add stream argument. Don't exit.
567         * src/roff/grog/grog.pl: Accept --help and --version.
568         (help): New sub.
569         * src/roff/grog/grog.sh: Accept --help and --version.
570         * src/roff/nroff/nroff.sh: Accept --help and --version.
571         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
572         (usage): Add stream argument. Don't exit.
573         (main): Accept --help and --version.
574         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
575         (usage): New function with stream argument, doesn't exit.
576         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
577         (usage): New function with stream argument, doesn't exit.
578         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
579         (usage): Add stream argument. Don't exit.
580         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
581         (main): Accept --help and --version.
582         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
583         exit.
584         (main): Accept --help and --version.
585         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
586         (main): Accept --help and --version.
587         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
588         (usage): Add stream argument. Don't exit.
590 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
592         Fix indentation in SYNOPSIS.
594         Updated to include changes of latest BSD mdoc version (basically,
595         the only change is that `.Fn' and `.Fc' put a final semicolon after
596         a function declaration in the SYNOPSIS section).
598         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
599         (doc-in-synopsis-section): New variable.  Updated all related
600         functions.
601         (doc-indent-synopsis-active): New register.
602         (Nd, Fn, Fo): Use it.
603         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
604         `.Cd' with long argument line produces indented wrapped lines. 
605         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
606         undesirable line break to be output.
607         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
608         `.rs'.
609         (Fn, Fc): Add final `;' to output.
610         (doc-save-global-vars, doc-restore-global-vars): Updated.
611         * tmac/doc-common: Remove `Ex' register.
612         Updated.
613         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
614         copyright.
616 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
618         * tmac/doc.tmac (Cd): Simplify code.
619         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
621 2001-04-06  Werner LEMBERG  <wl@gnu.org>
623         Implement continuous underlining for nroff mode.  To do that, a new
624         request in the ditroff language has been added: `x u N' (N is 0
625         or 1).
627         \X and \Y are now transparent to end-of-sentence recognition.
629         * src/include/printer.h (printer): Add `type' parameter to `special'
630         method.
631         * src/libs/libdriver/printer.cc (printer::special): Updated.
632         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
634         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
635         specials of type `p'.
636         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
637         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
638         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
639         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
640         (glyph::order): New method.
641         (tty_printer::add_char): Use it.
642         (tty_printer::special): New method.
643         (tty_printer::end_page): Implement it.
645         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
646         * src/roff/troff/node.cc (special_node::special_node): Add parameter
647         to set `no_init_string'.
648         (special_node::tprint_start): Use it.
649         (special_node::same, special_node::copy): Updated.
650         (special_node::ends_sentence): New method.
651         (troff_output_file::start_special): Add parameter to include
652         inititialization of special conditionally.
654         * src/roff/troff/env.h (environment): New member `underline_spaces'.
655         * src/roff/troff/env.cc (do_underline_special): New function.
656         (environment::set_font): Use it.
657         (do_underline): Use it.  This was `underline()'.
658         (underline): Call `do_underline()'.
659         (continuous_underline): New function which calls `do_underline()'.
660         (environment::newline): Use `do_underline_special()'.
661         (init_env_requests): Updated.
663         * NEWS, man/troff_out.man: Updated.
665 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
667         * font/devutf8/R.proto: Fix code of 'shc'.
669 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
671         Many fixes.  Diag lists can now be nested also; additionally,
672         `-compact' and `-offset' are supported.
674         * tmac/doc.tmac (doc-have-indent): Replaced with ...
675         (doc-list-have-indent-stackXXX): A new register stack.
676         (doc-have-diag-list): Removed.
677         (Bl): Use `doc-list-have-indent-stackXXX'.
678         (El): Updated.
679         (doc-diag-list): Use `doc-compact-list-stackXXX'.
680         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
681         (doc-set-vertical-and-indent): Ditto.
682         (doc-next-list-depth): Removed.
683         (doc-increment-list-stack): Updated.
684         (doc-decrement-list-stack): Use `doc-list-depth' instead of
685         `doc-next-list-depth'.
686         (doc-end-list, doc-end-column-list): Don't use
687         `doc-increment-list-stack'.
688         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
689         (doc-save-global-vars, doc-restore-global-vars): Updated.
690         * tmac/doc-common: Updated.
691         * tmac/groff_mdoc.man: Updated.
692         * NEWS: Fix typo.
694 2001-04-02  Werner LEMBERG  <wl@gnu.org>
696         * src/devices/grotty/grotty.man: Fix grammatical error.
698 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
700         Remove .Ld from mdoc package; replace it with special handling of
701         `...'.
703         * tmac/doc-common: Remove `Ld' register.
704         Uncomment `doc-volume-ds-*' strings.
705         Remove `doc-operating-system-default'.
706         (Os): Updated.
707         * tmac/doc-syms (Ld): Removed.
708         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
709         `...' specially.
710         * NEWS: Updated.
712         * tmac/groff_mdoc.man: Many fixes and updates.
714 2001-03-29  Werner LEMBERG  <wl@gnu.org>
716         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
717         Bond <tkb@tkb.mpl.com>.
718         * tmac/www.tmac: Save compatibility mode.
720 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
722         * tmac/groff_mdoc.man: Many fixes.
724 2001-03-28  Werner LEMBERG  <wl@gnu.org>
726         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
727         isn't recognized.
729 2001-03-27  Werner LEMBERG  <wl@gnu.org>
731         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
732         diversion.  This fixes overlong tags.
734 2001-03-26  Werner LEMBERG  <wl@gnu.org>
736         * doc/groff.texinfo: Fixed and improved documentation of fonts.
737         * tmac/doc-syms: Fix error messages.
738         * tmac/an-old.tmac: Remove incorrect double backslashes.
740 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
742         * tmac/Makefile.sub: Strip mdoc.local also
743         * tmac/strip.sed: Fixed.
745 2001-03-24  Werner LEMBERG  <wl@gnu.org>
747         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
748         selecting the font size.
749         * tmac/groff_mdoc.man, NEWS: Document it.
751 2001-03-23  Werner LEMBERG  <wl@gnu.org>
753         * src/roff/troff/div.cc (save_vertical_space): Add default argument
754         to `sv' request.
755         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
756         argument to restore previous font family.
757         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
759         * doc/groff.texinfo: More fixes and additions (mainly for font
760         manipulating commands).
762         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
763         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
764         * tmac/Makefile.sub, NEWS: Updated.
766 2001-03-23  Werner LEMBERG  <wl@gnu.org>
768         Replaced mdoc implementation.  The new version is `state of the
769         art', using almost all new features of groff 1.17 -- it won't run
770         with older versions.
772         * tmac/doc.tmac: Completely rewritten.
773         * tmac/doc-common: Ditto.
774         * tmac/doc-nroff: Ditto.
775         * tmac/doc-ditroff: Ditto.
776         * tmac/doc-syms: Ditto.
777         * tmac/mdoc.local: New file.
778         * tmac/groff_mdoc.samples.man: Replaced with ...
779         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
780         * tmac/strip.sed: Updated.
781         * tmac/Makefile.sub: Updated.
782         * INSTALL: Updated.
784         * tmac/groff_man.man: Add `man.local' to the FILES section.
786 2001-03-22  Werner LEMBERG  <wl@gnu.org>
788         * doc/groff.texinfo: Added many @noindent.
789         Replaced @end_Example -> @endExample.
790         Added info whether registers are r/o.
791         Many other additions and fixes.
793 2001-03-21  Werner LEMBERG  <wl@gnu.org>
795         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
796         in makeinfo of texinfo 4.0) to be used in @Def* macros.
797         Improved @Def* macros: Now the exact syntax of request, register,
798         and escapes is shown.
799         Added macros for parentheses and brackets to be used in @Def*.
800         Many fixes and improvements of the documentation.
802 2001-03-20  Werner LEMBERG  <wl@gnu.org>
804         * doc/groff.texinfo: Added new index: `st' (for strings).
805         Added macros @Defstr(x).
806         Added macro @Example (adding @group).
807         Other minor improvements.
809 2001-03-19  Werner LEMBERG  <wl@gnu.org>
811         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
812         `rq' for requests.  `fn' is no longer used.
813         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
814         Removed @Deffn(x).
816         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
817         number with name of man page.
819 2001-03-19  Larry Kollar  <kollar@alltel.net>
821         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
822         consistency.
824 2001-03-19  Werner LEMBERG  <wl@gnu.org>
826         * man/groff_font.man: Document `prepro', `postpro', and `print'.
827         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
828         * src/devices/grohtml/grohtml.man: Fixing typos.
830 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
832         * tmac/s.tmac (@IP): Pass `.ip' html tag.
833         * tmac/groff_mwww.man: Remove .LINE macro
834         * tmac/www.tmac (LINE): Add `.ti'.
836         * src/devices/grohtml/post-html.cc (html_printer): New member
837         `indent'.
838         (html_printer::emit_raw): Use it.
839         (html_printer::do_linelength): Ditto.
840         (html_printer::do_pageoffset): Ditto.
841         (html_printer::do_indentation): Ditto.
842         (html_printer::do_tempindent): Ditto.
843         (html_printer::do_break): Ditto.
844         (html_printer::begin_page): Ditto.
845         (html_printer::do_indentedparagraph): New function.
846         (html_printer::troff_tag): Handle `.ip'.
847         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
848         Add `<td width=...>' handling.
849         (html_text::do_table): Add parameter.
850         (html_text::do_indent): Updated.
851         * src/devices/groohtml/html-text.h: Updated.
853 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
855         Introduced simple html tables to implement indentation.
857         * src/devices/grohtml/html.h (word, word_list): New structures.
858         (simple_output): Use it.
859         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
860         (html_printer): Improve indentation handling.
861         (html_printer::emit_raw): Set `in_table' element.  Handle
862         indentation if set.
863         (html_printer::write_header): Move conditional downwards.
864         Don't allow whitespace in tags.
865         (html_printer::do_linelength): Handle line length and indentation
866         conditionally.
867         (html_printer::do_pageoffset): Handle indentation conditionally.
868         (html_printer::do_indentation): Ditto.
869         (html_printer::do_tempindent): New function member.
870         (html_printer::do_fill): Take care of indentation.
871         (html_printer::do_flush): Finish table.
872         (html_printer::do_links): Ditto.
873         (html_printer::do_break): New function for handling `.br' and `.ti'.
874         (html_printer::troff_tag): Use it.
875         Handle `.ti'.
876         (html_printer::flush_globs): Fix.
877         (html_printer::flush_page): Finish table.
878         (html_printer::html_printer): Fix error message.  Set up
879         `linelength'.
880         (html_printer::add_to_sbuf): Remove special handling of character
881         code 255.
882         (to_unicode): Remove `stop()'.
883         (html_printer::write_title): Cleanup.
884         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
885         (html_printer::~html_printer): Flush text and end the line.
886         Use `put_string()'.
887         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
888         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
889         emission of tags.
890         (html_text::start_tag): Disable newlines.
891         (html_text::table_is_void): New function.
892         (html_text::issue_table_begin): Ditto.
893         (html_text::issue_table_end): Ditto.
894         (html_text::push_para): Better table handling.
895         (html_text::do_indent): New function.
896         (html_text::do_table): Ditto.
897         (html_text::done_table): Ditto.
898         (html_text::do_tt): Handle PRE_TAG.
899         (html_text::is_in_table): New function.
900         (html_text::check_emit_text): Handle tables.
901         (html_text::do_emittext): Use `nl()'.
902         (html_text::do_para): Handle table.
903         (html_text::remove_def): New function.
904         * src/devices/grohtml/output.cc (word, word_list): Implement
905         methods.
906         (simple_output::end_line): Flush last word.
907         (simple_output::simple_comment): Ditto.
908         (simple_output::begin_comment): Recoded.
909         (simple_output::end_comment): Ditto.
910         (simple_output::comment_arg): Removed.
911         (simple_output::check_newline): Improve test and flush last word.
912         (simple_output::space_or_newline): Improved.
913         (simple_output::write_newline): Replaced with...
914         (simple_output::nl): This.
915         (simple_output::put_raw_char): Flush last word.
916         (simple_output::check_space): Removed.
917         (simple_output::put_translated_string): Ditto.
918         (simple_output::put_string): Simplified.
919         (simple_output::put_number): Updated.
920         (simple_output::put_float): Ditto.
921         (simple_output::put_symbol): Removed.
922         (simple_output::enable_newlines): Add `check_newline()'.
923         (simple_output::flush_last_word): New function.
925         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
926         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
928         * tmac/s.tmac (@PP, @IP): Add html conditional code.
929         * tmac/an-old.tmac (TP): Ditto.
931 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
933         * mdate.sh: Make it POSIX compliant.
935 2001-03-09  Werner LEMBERG  <wl@gnu.org>
937         Added the `return' request to end a macro immediately.  It simply
938         pops iterators from the input stack until a macro iterator is found.
940         * src/roff/troff/input.cc (input_iterator::is_macro,
941         macro_iterator::is_macro): New member.
942         (input_return_boundary): New class to signal an immediate return
943         to while_request().
944         (input_stack::add_return_boundary, input_stack::is_return_boundary):
945         New functions.
946         (input_stack::clear): Use it.
947         (input_stack::pop_macro): New function.
948         (while_request): Use `is_return_boundary()'.
949         (return_macro_request): New function.
950         (init_input_requests): Use it.
952         * src/roff/troff/TODO: Updated.
953         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
955 2001-03-08  Werner LEMBERG  <wl@gnu.org>
957         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
958         cleanup.
960 2001-03-07  Werner LEMBERG  <wl@gnu.org>
962         Make `\B' more rigid.
964         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
965         parameter.
966         (get_number_rigidly): New function.
967         * src/roff/troff/input.cc (do_expr_test): Use it.
968         * src/roff/troff/token.h: Updated.
970         * src/roff/troff/request.h: Fix typo (init_html_request ->
971         init_markup_request).
973 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
975         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
976         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
977         are now `.begin', `.end', `.image'.
979         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
980         (html_printer::add_to_sbuf): Changing type of `code' parameter.
981         Use add_char_to_sbuf().
982         (to_unicode): New function.
983         (char_translate_to_html): Changing type of `ch' parameter.
984         Use `to_unicode()'.
985         (html_printer::~html_printer): Comment out doctype string.
986         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
987         instead of `.html-end'.
988         (write_start_image): Use `.begin' and `.image' instead of
989         `.html-begin' and `.html-image'.
990         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
991         (html_begin): Renamed to ...
992         (begin): This.
993         (html_end): Renamed to ...
994         (end): This.
995         (html_image): Renamed to ...
996         (image): This.
997         (init_html_requests): Renamed to ...
998         (init_markup_requests): This.
999         * tmac/www.tmac: Updated.
1001 2001-02-28  Bram  <bram@avontuur.org>
1003         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
1004         constructor.
1006 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
1008         * doc/meref.me: Fixing some typos.
1010 2001-02-16  Werner LEMBERG  <wl@gnu.org>
1012         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
1013         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
1014         * src/roff/troff/node.h: Updated.
1016 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
1018         * tmac/groff_tmac.man: Fix typo.
1020 2001-02-16  Werner LEMBERG  <wl@gnu.org>
1022         Fixing a bug which prevented proper end-of-sentence recognition
1023         between an `unformatted' box and the following text.  As a
1024         consequence, vertical line distances are no longer preserved in
1025         boxes after a call to `.unformat' -- because boxes aren't
1026         line-oriented (contrary to diversions), this doesn't make sense
1027         anyway.
1029         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
1030         value.
1031         (vertical_size_node::set_unformat_flag): New method.
1032         * src/roff/troff/node.hh: Updated.
1033         * src/roff/troff/input.cc (word_space_node::reread,
1034         hmotion_node::reread): Reset `unformat' flag after usage.
1035         (unformat_macro): Append only if `set_unformat_flag()' returns
1036         non-zero.
1037         * src/roff/troff/troff.man: Updated.
1039 2001-02-15  Werner LEMBERG  <wl@gnu.org>
1041         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
1042         documentation of `asciify' and `unformat' requests.
1044 2001-02-13  Werner LEMBERG  <wl@gnu.org>
1046         Redesigned the `unformat' request.  It is no longer connected with
1047         `asciify' but rather uses new `reread()' methods if the `unformat'
1048         flag is set.  Additionally, the handling of space characters after
1049         unformatting has been fixed so that they retain their width.
1051         * src/roff/troff/node.h (width_list): New structure to store
1052         original widths of spaces.
1053         (node): Added `unformat' member.
1054         Replaced `num_spaces' variable with `orig_width' list.
1055         * src/roff/troff/node.cc (*node::asciify,
1056         asciify_reverse_node_list): Removed `unformat_only' flag and related
1057         code.
1058         (word_space_node::asciify, word_space_node::word_space_node): Use
1059         `orig_width'.
1060         (word_space_node::~word_space_node): New destructor.
1061         (word_space_node::copy): Updated to handle `orig_width'.
1062         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
1063         (*node::merge_space): Update `orig_width' list if necessary.
1064         (*node::set_unformat_flag): New methods to set the `unformat' flag.
1065         * src/roff/troff/enc.cc (environment::space_newline): Use
1066         `width_list'.
1067         (environment::space): Added method to handle space width and
1068         sentence space width as parameters.  Use `width_list'.
1069         (environment::make_tab_node): Updated.
1070         * src/roff/troff/env.h: Updated.
1071         * src/roff/troff/input.cc (word_space_node::reread,
1072         unbreakable_space_node::reread, hmotion_node::reread): New methods
1073         to handle nodes specially if `unformat' flag is set.
1074         (do_asciify_macro): Renamed back to ...
1075         (asciify_macro): This.
1076         (unformat_macro): New implementation to simply set the `unformat'
1077         flag.
1079         * MORE.STUFF: Added more info about deroff.
1081 2001-02-08  Werner LEMBERG  <wl@gnu.org>
1083         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1084         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
1085         and `add_self()' methods to avoid hyphenation.  For example, the
1086         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
1087         soft hyphen after `foo'.  Now the hyphen list is correctly
1088         `foo<ignore><ignore>bar'.
1090 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
1092         * tmac/groff_tmac.man: Fix `BIR' macro.
1094 2001-02-04  Werner LEMBERG  <wl@gnu.org>
1096         A new escape sequence `\:', inserting a zero-width break point.
1098         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
1099         * src/roff/troff/input.cc (get_copy, token::next, asciify):
1100         Implement it.
1101         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
1102         method.
1103         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
1104         and `asciify()' methods.
1105         * src/roff/troff/node.cc (space_node::space_node): Updated.
1106         (space_node::asciify): Handle `was_escape_colon'.
1107         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1109         Handle `\~' similar to other comparable requests.
1111         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
1112         label.
1113         (token::next): Move creation of an unbreakable_space_node to...
1114         (token::add_to_node_list): Here.
1116         Fix a bug which sometimes prevented hyphenation of words connected
1117         with `\~' or `\ ' (and other escape sequences handled as
1118         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
1119         (after a call to the `unformat' request).
1121         * src/roff/troff/env.h (environment::possibly_break_line,
1122         environment::hyphenate_line): Introducing `start_here' parameter.
1123         * src/roff/troff/env.cc (environment::space_newline,
1124         environment::space): Use it.
1125         (environment::possibly_break_line, environment::hyphenate_line):
1126         Implement it.
1127         * src/roff/troff/input.cc (process_input_stack): Use it.
1128         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1129         space_char_hmotion_node, overstrike_node): Add
1130         `get_hyphenation_type()' method.
1131         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
1132         if `unformat_only' is active.
1134 2001-01-30  Werner LEMBERG  <wl@gnu.org>
1136         Implemented new read-only number register `.linetabs' which
1137         returns 1 if in line-tabs mode, 0 otherwise.
1139         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
1140         * src/roff/troff/env.cc (get_line_tabs): New function.
1141         (init_env_requests): Use it.
1142         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1144         * VERSION, REVISION: Changing to 1.17.0.
1146 2001-01-28  Werner LEMBERG  <wl@gnu.org>
1148         Fixed a bug which prevented hyphenation of words which are finished
1149         with `\)'.
1151         * src/roff/troff/token.h (token): Add enum type
1152         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
1153         * src/roff/troff/input.cc (token::next, token::description,
1154         get_line_arg, token::add_to_node_list, token::process): Use it.
1156 2001-01-27  Werner LEMBERG  <wl@gnu.org>
1158         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
1159         * src/roff/troff/div.cc (do_divert): Use it.
1161         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
1163 2001-01-25  Werner LEMBERG  <wl@gnu.org>
1165         Adding the `linetabs' request.  If set, tab distances are not
1166         computed relative to the input line but relative to the output line.
1168         * src/roff/troff/env.h (environment): New member `line_tabs'.
1169         * src/roff/troff/env.cc (line_tabs_request): Implement request.
1170         (environment::environment, environment::copy): Updated.
1171         (environment::distance_to_next_tab): Use `line_tabs'.
1172         (init_env_requests): Register request.
1173         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
1174         fixes.
1176 2001-01-24  Werner LEMBERG  <wl@gnu.org>
1178         Introducing a new read-only register `.int' which is set to a
1179         positive value if the last output line is interrupted (i.e., if it
1180         contains `\c').
1182         * src/roff/troff/env.cc (init_env_requests): Add it.
1183         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1185 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
1187         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
1188         * src/preproc/html/pre-html.cc (findPrefix): New function which
1189         generates the troff executable name via the system prefix.
1190         * src/preproc/eqn/main.cc: Modified warning message.
1192 2001-01-23  Werner LEMBERG  <wl@gnu.org>
1194         troff's `box' and `boxa' requests didn't preserve temporary
1195         indentation.
1197         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
1198         `saved_target_text_length' members.
1199         * src/roff/troff/div.cc (do_divert): Use them.
1201         Tabs (but not yet leaders and fields) are now handled correctly by
1202         `asciify' request.
1204         * node.h (hmotion_node): Add field `was_tab'.
1205         * env.cc (environment::make_tab_node): Set it.
1206         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
1208         Added new request `unformat' which will, contrary to `asciify',
1209         preserve font information after unformatting (i.e., only nodes
1210         dealing with horizontal space are converted back to input
1211         characters).
1213         * input.cc (asciify_macro): Renamed to ...
1214         (do_asciify_macro): this, having a new parameter `unformat_only'.
1215         (asciify_macro, unformat_macro): New; using do_asciify_macro.
1216         (init_input_requests): Added `unformat'.
1217         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
1218         parameter to control asciification process.
1219         * node.h (*_node::asciify): Ditto.
1220         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1222 2001-01-20  Werner LEMBERG  <wl@gnu.org>
1224         * doc/groff.texinfo: Minor improvement of `.in' documentation.
1226 2001-01-18  Werner LEMBERG  <wl@gnu.org>
1228         * tmac/ps.tmac: Remove call of psold.tmac.
1229         * tmac/psold.tmac: Comment updated.
1230         * tmac/psnew.tmac: Removed since no longer needed.
1231         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
1233         * font/devutf8/R.proto: Adding `shc' glyph.
1234         * font/devutf8/NOTES: Updated.
1236         * test-groff: Updated.
1238 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1240         First cut of the new html device driver.  Changes to pre-html and
1241         the new grohtml are too numerous to be documented here.
1243         Stuff related to `html' has been renamed to `html-old' and `html2'
1244         stuff has been renamed to `html' (including directories).  The new
1245         html device driver is therefore invoked as `-Thtml'.
1247         Added new `\O' escape to suppress output (needed by html driver).
1249         Added functions and code to pass info about input-level commands
1250         (`.in', `.fl', etc.) to html driver.
1252         Three new functions (.html-begin, .html-end, and .html-image) for
1253         better html handling: `html-begin' will execute the remaining line
1254         if at the outermost nesting level, increasing an internal counter.
1255         `html-end' does the same but decreases the internal counter.
1256         `html_image' puts its arguments into a special node (suppress_node)
1257         to define an image region.
1259         The `output' request has been removed.
1261         * tmac/html-tags.tmac: Removed.
1262         * tmac/arkup.tmac: Updated and renamed to ...
1263         * tmac/www.tmac: New file.
1264         * tmac/markup.tmac Updated and renamed to ...
1265         * tmac/mwww.tmac: New file.
1266         * tmac/Makefile.sub: Updated.
1267         * tmac/an-old.tmac: Updated.
1268         * tmac/eqnrc: Updated.
1269         * tmac/groff_man.man
1270         * tmac/groff_markup.man: Updated and renamed to ...
1271         * tmac/groff_mwww.man: New file.
1272         * tmac/groff_tmac.man: Updated.
1273         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
1274         * tmac/html.tmac: Updated and renamed from html2.tmac.
1275         * tmac/pspic.tmac: Updated html support.
1276         * tmac/s.tmac: Added html output support.
1277         * tmac/troffrc, tmac/troffrc-end: Updated.
1279         * Makefile.in, doc/Makefile: Updated.
1280         * doc/groff.texinfo: Added info about new `\O' escape.
1281         * doc/homepage.ms: Use `MAILTO' macro.
1283         * font/devhtml/DESC.proto: Add `C' font.
1284         * font/devhtml/Makefile.sub: Updated.
1285         * font/devhtml/R.proto: Minor fixes.
1286         * font/devhtml-old/Makefile.sub: Updated.
1288         * src/devices/grohtml-old/Makefile.sub: Updated.
1290         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
1291         method.
1292         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
1293         graphic_start): Add `inline' parameter.  Update.
1294         (html_end_suppress, graphic_end): Update.
1296         * src/include/html-strings.h: New file.
1297         * src/include/htmlindicate.h: Comments updated.
1298         * src/include/printer.h: Updated.
1300         * src/preproc/eqn/main.cc (do_file, main): Updated.
1301         * src/preproc/pic/troff.cc (troff_output::start_picture,
1302         troff_output::finish_picture): Updated.
1303         * src/preproc/tbl/main.cc (process_input_file): Updated.
1305         * src/roff/groff/groff.cc (main): Updated.
1306         Pass device arguments to predrivers also.
1307         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
1308         * src/roff/troff/env.h (environment): Updated.
1309         New elements `need_eol' and `ignore_next_eol' (for html output).
1310         * src/roff/troff/env.cc (environment::environment): Add initializers
1311         for `need_eol' and `ignore_next_eol'.
1312         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
1313         functions.
1314         (point_size, fill, no_fill, center, right_justify, line_length,
1315         indent, temporary_indent, break_request, handle_tab): Use
1316         `add_html_tag()'.
1317         (set_tabs): Use `add_html_tag_tabs()'.
1318         (environment::add_html_tag): Updated.
1319         (environment::do_break): Updated.
1320         * src/roff/troff/div.cc (space_request, flush_output): Use
1321         `environment::add_html_tag()'.
1322         * src/roff/troff/input.cc: Updated.
1323         New variable `html_level' to indicate nested `html-begin' requests.
1324         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
1325         (non_interpreted_char_node, token_node, non_interpreted_node): Add
1326         `force_tprint()' method.
1327         (token::next): Handle `\O'.
1328         (do_suppress): Implement it.
1329         (html_begin, html_end, html_image): New functions.
1330         (init_output_requests): Renamed to ...
1331         (init_html_requests): this.
1332         (main): Use it.
1333         (macro::append_str, macro::append_unsigned, macro::append_int): New
1334         methods.
1335         New variable `output_low_mark_miny' to limit minimal value of y.
1336         (reset_output_registers): Use it.
1337         (output_request): Removed.
1338         (get_output_registers): New function.
1339         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
1340         (*_node): Added `force_tprint()' if necessary.
1341         (special_node): New elements `tf' and `get_tfont()'.
1342         (suppress_node): New class.
1343         * src/roff/troff/node.cc:
1344         New global variables `image_no' and `suppress_start_page'.
1345         (real_output_file): New method `is_on()'.
1346         (troff_output_file): New method `start_special(tfont)'.
1347         (troff_output_file::really_print_line): Use `tprint' conditionally.
1348         (real_output_file::print_line): Updated.
1349         (real_output_file::on): Updated.
1350         (*_node): Added `force_tprint()'.
1351         (special_node::special_node): Initializer updated.
1352         (special_node::same, special_node::copy, special_node::tprint_start):
1353         Updated.
1354         (get_reg_int, get_reg_str): New functions.
1355         (suppress_node::*): New methods.
1356         New global variables last_position, last_image_filename;
1357         (min): New inline function.
1358         * src/roff/troff/reg.h, src/roff/troff/request.h,
1359         src/roff/troff/troff.h: Updated.
1361 2001-01-13  Werner LEMBERG  <wl@gnu.org>
1363         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
1364         documentation of `asciify' request.
1366 2001-01-12  Werner LEMBERG  <wl@gnu.org>
1368         * src/roff/troff/input.cc: Move definition of special characters
1369         like `ESCAPE_TILDE' to ...
1370         * src/roff/troff/input.h: New file.
1371         * src/roff/troff/Makefile.sub (HDRS): Add it.
1373         Extending the .asciify request to `unformat' space characters also.
1375         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
1376         to count input space characters.
1377         Update constructors to take care of it.
1378         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
1379         `ESCAPE_SPACE' instead of normal space.
1380         (word_space_node::asciify): New method.
1381         (unbreakable_space_node::asciify): New method.
1382         (word_space_node::merge_space): New method.
1383         * src/roff/troff/env.cc (environment::space_newline,
1384         environment::space): Add code to initialize `num_spaces' (using the
1385         constructor of `word_space_node').
1386         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1387         Document it.
1389 2001-01-09  Werner LEMBERG  <wl@gnu.org>
1391         * man/groff_char.man: Use table header traps only conditionally.
1393 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
1395         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
1397 2001-01-08  Werner LEMBERG  <wl@gnu.org>
1399         Introducing the `box' and `boxa' requests which are similar to
1400         `di' resp. `da' but omitting a partially filled line (which is
1401         restored after ending the diversion).
1403         * src/roff/troff/div.h (diversion): Add elements to save partially
1404         filled line.
1405         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
1406         partially filled line.
1407         (divert, divert_append): Updated.
1408         (box, box_append): New functions.
1409         (init_div_requests): Use them.
1410         * src/roff/troff/env.h (environment): do_divert() is now a friend.
1411         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1413         * doc/groff.texinfo: Fix documentation of `lf' request.
1415 2000-12-25  Werner LEMBERG  <wl@gnu.org>
1417         * src/roff/troff/troff.man, NEWS: Document `writem' request.
1419 2000-12-21  Werner LEMBERG  <wl@gnu.org>
1421         Ignore `ss' request if in compatibility mode.
1423         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
1424         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
1425         * src/roff/troff/env.cc (space_size): Use it.
1427         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
1428         `ss' request in nroff mode.
1430         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
1431         changes.
1433 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
1435         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
1437 2000-12-13  Werner LEMBERG  <wl@gnu.org>
1439         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
1440         * src/preproc/eqn/neqn.man: Small fixes and additions.
1442 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
1444         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
1445         Fixing typo.
1447         * src/preproc/eqn/neqn.man: New file.
1449         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
1450         negative' warning.
1452         * tmac/e.tmac: Add `T&' macro.
1453         Fix `indent cannot be negative' warning.
1454         * tmac/s.tmac: Fix `indent cannot be negative' warning.
1456 2000-12-07  Werner LEMBERG  <wl@gnu.org>
1458         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
1460 2000-12-06  Werner LEMBERG  <wl@gnu.org>
1462         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
1463         `alloca' symbol .
1465         * MORE.STUFF: Added info about deroff for djgpp.
1467         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
1468         documentation of -rcR switch.
1470 2000-12-03  Werner LEMBERG  <wl@gnu.org>
1472         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
1473         if -rcR=1 (which is now the default in nroff mode), a single, very
1474         long page is created instead of multiple pages: All `ne' and `wh'
1475         requests are put into conditionals; a new macro `an-end' is added to
1476         be called with `em'.
1478         Some other minor cleanups.
1480         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
1482 2000-12-02  Werner LEMBERG  <wl@gnu.org>
1484         Fixing a bug which prevented hyphenation in words followed
1485         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
1487         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
1488         Adding possibly_break_line().
1489         * src/roff/troff/env.h (environment): Make possibly_break_line()
1490         public.
1492         Make `\~' usable in .tr request.
1494         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
1495         (token): Add stretchable_space().
1496         * src/roff/troff/input.cc (token::next, token::delimiter,
1497         token::description, process_input_stack, do_translate,
1498         add_to_node_list, token::process): Use it.
1499         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
1500         for adjusting the space.
1501         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
1502         for stretchable space.
1503         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
1504         (make_node): Add code for stretchable space.
1505         * src/roff/troff/env.cc (environment::add_char): Use it.
1506         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
1507         (get_copy, token::next, transparent_translate, asciify): Use it.
1509         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
1510         doc/groff.texinfo: Updated.
1511         * man/groff.man: Small reorderings.
1513 2000-11-23  Werner LEMBERG  <wl@gnu.org>
1515         * NEWS: Fixes.
1516         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
1517         option.
1518         * src/roff/troff/input.cc (main): Add `config_macro_path' and
1519         `safer_macro_path' to -M option.
1520         * src/roff/troff/troff.man: Fixes.
1522 2000-11-22  Werner LEMBERG  <wl@gnu.org>
1524         Use safer path (except for config files) if -U isn't specified.  Add
1525         a special macro path (without home and current directory) for config
1526         files.  Add home directory to unsafe path for consistency.  Don't
1527         include the home directory in the font path.
1529         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
1530         `macro_path'.
1531         * src/include/macropath.h: Add `config_macrp_path'.
1532         * src/lib/libgroff/fontfile.cc: Fix font path.
1533         * src/roff/troff/input.cc (process_startup_file): Use
1534         `config_macro_path'.
1535         (main): Select unsafe path if -U is given.
1537         * src/preproc/eqn/main.cc (main): Fixing search path for
1538         configuration file.
1539         * src/preproc/eqn/eqn.man: Updated.
1541         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
1542         Updated.
1544         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
1545         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
1546         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1547         src/devices/grotty/grotty.man: Updated.
1549         * Makefile.in: Fix comments.
1551 2000-11-17  Werner LEMBERG  <wl@gnu.org>
1553         * tmac/safer.tmac: Empty file added (again) for compatibility
1554         reasons.
1555         * tmac/Makefile.sub: Updated.
1557 2000-11-16  Werner LEMBERG  <wl@gnu.org>
1559         * src/devices/grodvi/dvi.cc (main),
1560         src/devices/grohtml2/post-html.cc (main),
1561         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1562         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1563         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1564         (main), src/preproc/html2/pre-html.cc (main),
1565         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1566         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1567         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1568         (main), src/utils/hpftodit/hpftodit.cc (main),
1569         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
1570         (main), src/utils/lookbib/lookbib.cc (main),
1571         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
1572         (main): Use stdout for -v.
1573         * src/roff/groff/groff.cc (run_commands),
1574         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
1575         to make direct printing to stdout possible.
1576         * src/roff/groff/pipeline.h: Updated.
1578         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
1579         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
1580         * src/utils/afmtodit/afmtodit.man: Updated.
1582         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
1583         (version): New function.
1584         (usage): Updated.
1585         * src/utils/addftinfo/addftinfo.man: Updated.
1587         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
1588         Fixing copyright dates.
1590         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
1591         replacing it.
1593         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
1594         version_string.
1596         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
1598 2000-11-15  Werner LEMBERG  <wl@gnu.org>
1600         In all programs, make -v return immediately with exit status 0 to
1601         be compliant with the GNU standard.
1603         * src/devices/grodvi/dvi.cc (main),
1604         src/devices/grohtml2/post-html.cc (main),
1605         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1606         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1607         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1608         (main), src/preproc/html2/pre-html.cc (main),
1609         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1610         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1611         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1612         (main): Implement it.
1613         * NEWS: Updated.
1615         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
1616         and postprocessors to the -v option.
1618         * src/roff/grog/grog.pl: Implement -v.
1619         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
1620         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1622         * src/roff/nroff/nroff.sh: Implement -v.
1623         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
1624         * src/roff/nroff/nroff.man: Updated.
1625         
1626         * src/preproc/eqn/main.cc (main): Fix comment typo.
1628         * MORE.STUFF: Added info about djgpp port of grap.
1630 2000-11-14  Werner LEMBERG  <wl@gnu.org>
1632         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
1633         mode (or rather, implemented non-compatibility mode).
1634         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1636         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
1637         replacing it -- we don't find gxditview otherwise.
1638         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
1640         * src/preproc/pic/depend: Removed.  Unnecessary.
1642         Implemented dummy keyword `solid' in pic for compatibility with
1643         AT&T pic.
1645         * lex.cc (lookup_keyword): Added `solid'.
1646         * pic.y: Added SOLID with dummy rule.
1647         * pic.cc, pic_tab.h: Regenerated.
1648         * doc/pic.ms: Updated.
1650 2000-11-13  Werner LEMBERG  <wl@gnu.org>
1652         For security reasons, don't use the current directory but the home
1653         directory while searching and scanning troffrc and troffrc-end.
1654         Similarly, replace the current directory with the home directory
1655         in the font path.
1657         * Makefile.in (fontpath, tmacpath): Remove current directory.
1659         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
1660         two parameters `add_home' and `add_current'.
1661         (search_path::~search_path, search_path::command_line_dir,
1662         search_path::open_file): Remove tests for `dirs' being zero.
1663         * src/include/searchpath.h: Adjust.
1664         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
1665         `safer_macro_path'.
1666         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
1668         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
1669         * src/roff/troff/input.cc: Use `mac_path', initialized with
1670         `macro_path'.
1671         (process_startup_file): Set `mac_path' to `safer_macro_path'.
1672         * src/roff/troff/env.cc: Use `mac_path'.
1674         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
1676         * NEWS, man/roff.man, src/roff/troff/troff.man,
1677         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
1678         Updated.
1680 2000-11-12  Werner LEMBERG  <wl@gnu.org>
1682         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
1684         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
1685         * configure.in: Fix typo in comment.
1686         * configure: Regenerated.
1688         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
1689         dates.
1691 2000-11-08  Werner LEMBERG  <wl@gnu.org>
1693         Add system tmac directory (/usr/local/lib/groff/site-tmac).
1695         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
1696         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
1697         $(systemtmacdir).
1698         Use @libdir@.
1699         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
1700         * tmac/Makefile.sub (install_data): Create
1701         $(systemtmacdir) and $(localtmacdir).
1702         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
1703         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
1704         NEWS, doc/groff.texinfo: Updated and minor fixes.
1706         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
1707         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
1708         $(systemtmacdir) since the wrapper files are platform-dependent.
1710 2000-11-01  Werner LEMBERG  <wl@gnu.org>
1712         * doc/groff.texinfo: Fix typo.
1714 2000-10-26  Werner LEMBERG  <wl@gnu.org>
1716         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
1717           tmac.doc.old -> doc-old.tmac
1718           tmac.an.old  -> an-old.tmac
1720         * tmac/tmac.*: Moved to ...
1721         * tmac/*.tmac: this.
1722         * tmac/man.local: Fix comment.
1723         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
1724         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
1725         Added some `FILES' sections.  More use of @...@ directives.  Other
1726         minor updates.
1727         * arch/djgpp/README, font/devutf8/NOTES: Updated.
1728         * doc/homepage.ms, doc/groff.texinfo: Updated.
1729         * man/groff.man, man/roff.man: Updated.
1730         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
1731         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1732         src/devices/grotty/grotty.man: Updated.
1733         * src/preproc/pic/pic.man: Updated.
1734         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
1735         instead of -mdoc.old.
1736         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
1737         * src/roff/nroff/nroff.man: Updated.
1738         * NEWS: Updated.
1740         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
1742         * tmac/mm.diff: Removed -- it has no use now since the mm package
1743         is part of groff.
1745         * tmac/*: Removed trailing spaces.
1747         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
1748         the tmac subdirectory also).
1750         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
1751         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
1752         stuff since it is no longer needed.
1754         * README, PROBLEMS: Updated.
1756 2000-10-25  Werner LEMBERG  <wl@gnu.org>
1758         Invert current behaviour: Search first FOOBAR.tmac, then
1759         tmac.FOOBAR.
1761         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
1762         (open_mac_file, macro_source): Implement it.
1763         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
1764         doc/groff.texinfo, NEWS: Document it.
1766         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
1767         Small documentation improvements.
1769         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
1770         subdirectory also).
1772         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
1774 2000-10-24  Werner LEMBERG  <wl@gnu.org>
1776         Add local tmac directory (groff/site-tmac).
1778         * Makefile.in: Add $(localtmacdir).
1779         (uninstall_dirs): Add $(localtmacdir).
1780         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
1781         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
1782         in $(localtmacdir).  Create $(localtmacdir).
1783         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
1784         Updated and minor fixes.
1786         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
1788         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
1790 2000-10-23  Werner LEMBERG  <wl@gnu.org>
1792         Move hyphen.us to tmac directory.
1794         * src/roff/troff/hyphen.us: Removed.
1795         * src/tmac/hyphen.us: Added.
1796         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
1798         Change installation structure for data files from .../groff/... to
1799         .../groff/<version><revision>/... to be conform with other GNU
1800         programs.
1802         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
1803         doc/Makefile: Implement it.
1804         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
1805         * configure: Updated.
1806         * arch/djgpp/README, font/devutf8/NOTES: Use it.
1807         * NEWS: Document it.
1808         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
1809         @MACRODIR@ instead of hard-coded directories.
1811 2000-10-22  Werner LEMBERG  <wl@gnu.org>
1813         Implement $GROFF_BIN_PATH environment variable (which defaults to
1814         $bindir) used for child programs of groff and similar wrappers.
1816         * gendefs.sh: Improve documentation.
1817         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
1818         src/preproc/eqn/Makefile.sub (neqn),
1819         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
1820         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
1821         $GROFF_BIN_PATH.
1822         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
1823         $GROFF_PATH__ (the latter for communication with troff).
1824         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
1825         set.
1826         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
1827         doc/groff.texinfo: Document it.
1829         * doc/groff.texinfo: Improve documentation of troff's -a option.
1831 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
1833         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
1834         non-intrusive eol marker.
1835         (troff_output_file::determine_line_limits): New function.
1836         (troff_output_file::draw): Use it.
1837         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
1838         output_pending_lines() instead of output_line().
1839         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
1840         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
1841         createImage): Small fixes.
1842         
1843 2000-10-14  Werner LEMBERG  <wl@gnu.org>
1845         Replace tmac.safer with a real secure solution.
1847         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
1848         system_request, pipe_output): Disable requests if in safer mode.
1849         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
1850         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
1851         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
1852         doc/groff.texinfo, src/roff/groff/groff.man,
1853         src/roff/troff/troff.man, arch/djgpp/README: Updated.
1855         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
1856         (resource_manager::output_prolog): Replace setenv() with putenv().
1858 2000-10-09  Werner LEMBERG  <wl@gnu.org>
1860         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
1861         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
1862         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
1863         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
1864         compilation errors with some compilers.  It seems that this code
1865         is no longer necessary -- if yes, it is easy to add some #ifdef's
1866         for that particular old-fashioned compiler.
1868         * MORE.STUFF: Added info about Meta-tbl.
1870         * doc/groff.texinfo: Added more info about `.if "..."..."'.
1872 2000-10-07  Werner LEMBERG  <wl@gnu.org>
1874         Adding a new escape sequence \B'...': If the string between
1875         the delimiters is a valid numeric expression, return the character
1876         `1', and `0' otherwise.  This is an analogon to \A.
1878         * src/roff/troff/input.cc (do_expr_test): Implement it.
1879         (token::next): Use it.
1880         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
1882         * tmac/tmac.trace: Made independent from escape character.
1884 2000-10-06  Werner LEMBERG  <wl@gnu.org>
1886         Adding a new request .dei: define indirect.  The first and second
1887         parameter of .dei are taken from string registers instead directly;
1888         this very special request is needed to make tmac.trace independent
1889         from the escape character (which might even be disabled).
1891         * src/roff/troff/input.cc (do_define_macro): Implement it.
1892         (define_macro_indirect): New function.
1893         (init_input_requests): Use it.
1895         Adding two requests .ecs and .ecr: Save and restore the escape
1896         character.  These two requests are needed to make tmac.trace
1897         independent from the escape character (which might even be
1898         disabled).
1900         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
1901         Implement it.
1902         (init_input_requests): Use it.
1904         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1906 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
1908         Adding a new option -P and new environment variable GROPS_PROLOGUE
1909         to grops, selecting a different prologue file (minor modifications
1910         by WL).
1912         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
1913         src/devices/grops/ps.cc (main): Implement it.
1914         * src/devices/grops/grops.man, NEWS: Document it.
1916 2000-09-22  Werner LEMBERG  <wl@gnu.org>
1918         * INSTALL: Add info about selecting paper format.
1920 2000-09-21  Werner LEMBERG  <wl@gnu.org>
1922         * src/roff/troff/input.cc (main): Fixing compiler warning.
1923         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
1924         strings.h from the former to the latter.
1925         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
1926         stuff from the former to the latter.
1928 2000-09-11  Werner LEMBERG  <wl@gnu.org>
1930         Implementing two new requests .tm1 and .tmc: The former is similar
1931         to .tm but can output leading spaces; its syntax is similar to
1932         defining a string, i.e., a `"' can be used to mark the beginning of
1933         the string to be written to stderr: `.tm1 " test'.  The latter is
1934         similar to .tm1 but doesn't write out a final newline character.
1936         * src/roff/troff/input.cc (terminal1, terminal_continue,
1937         do_terminal): New functions.
1938         (init_input_requests): Use them.
1939         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1941 2000-09-09  Werner LEMBERG  <wl@gnu.org>
1943         * tmac/groff_mdoc.samples.man: Small fixes.
1945 2000-09-08  Werner LEMBERG  <wl@gnu.org>
1947         * tmac/groff_mdoc.man: Fixing typo.
1949 2000-09-02  Werner LEMBERG  <wl@gnu.org>
1951         Implementing a .nop request which does nothing.
1953         * src/roff/troff/input.cc (nop_request): New function.
1954         (init_input_requests): Use it.
1955         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
1957 2000-09-01  Werner LEMBERG  <wl@gnu.org>
1959         * doc/groff.texinfo: Added some comments.
1961 2000-08-30  Werner LEMBERG  <wl@gnu.org>
1963         * src/roff/troff/TODO: Updated.
1965 2000-08-28  Bruno Haible  <haible@clisp.cons.org>
1967         * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
1968         of 'install'.
1970 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1972         * doc/groff.texinfo: Fix comment how to compile the DVI file.
1974 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1976         * font/devps/generate/Makefile (SHELL): Define explicitly to
1977         "/bin/sh", for non-Unix platforms.
1978         (extraclean): Use a more portable "" quoting instead of a
1979         backslash (which doesn't work on DOS/Windows).
1980         
1981         * font/devlj4/generate/Makefile (extraclean): Ditto.
1983         * font/devdvi/generate/Makefile (extraclean): Ditto.
1985 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1987         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
1988         src/roff/troff/troff.man: Document Eli's latest changes.
1990 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
1992         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
1993         macro file names of the form NAME.tmac as well as tmac.NAME.
1995 2000-08-25  Werner LEMBERG  <wl@gnu.org>
1997         * src/include/posix.h: Remove definition of FILENAME_MAX.
1999         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
2000         `sys_fatal' and `stop' function().
2002         * test-groff: Updated.
2004 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
2006         Added the new troff command .output <arg> to suppress output (while
2007         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
2008         registers (for passing the output dimensions to the output device).
2010         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
2011         parameter.
2012         * src/roff/troff/node.h, src/roff/troff/node.cc
2013         (troff_output_file::really_print_line,
2014         ascii_output_file::really_print_line,
2015         supress_output_file::really_print_line): Use `width' parameter.
2016         (troff_output_file::really_on, troff_output_file::really_off,
2017         output_file::on, output_file::off, real_output_file::on,
2018         real_output_file::off, real_output_file::really_on,
2019         real_output_file::really_off): New functions.
2020         (real_output_file:public output_file): New variable `output_on'.
2021         (real_output_file::begin_page, real_output_file::copy_file,
2022         real_output_file::transparent_char, real_output_file::print_line):
2023         Use it.
2024         (real_output_file::print_line): Use check_output_limits.
2025         * src/roff/troff/reg.h, src/roff/troff/request.h,
2026         src/roff/troff/input.cc (assign_registers): New function to remove
2027         two `goto's.
2028         (do_ps_file): Use it.
2029         (check_output_limits, reset_output_registers, output_request,
2030         init_output_requests): New functions.
2031         (init_input_requests): Updated.
2033         Added new grohtml2 device and html2 preprocessor (coding
2034         not yet finished) which will eventually replace grohtml.
2036         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
2037         Updated.
2038         * src/include/htmlindicate.h, src/include/htmlindicate
2039         (html_begin_suppress, html_end_suppress): New functions.
2040         * src/preproc/tbl/main.cc: Use it.
2041         * src/roff/groff/groff.cc: Add support for html2 device (which will
2042         automatically invoke the html2 preprocessor).
2043         * src/roff/troff/input.cc (is_html2): New variable.
2044         * src/roff/troff/troff.h, src/roff/troff/env.h,
2045         src/roff/troff/env.cc (environment::add_html_tag): New function
2046         (uses `is_html2').
2047         (environment::do_break): Use it.
2048         * font/devhtml2/*: New files.
2049         * src/devices/grohtml2: New device.
2050         * src/preproc/html2: New preprocessor.
2051         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
2053 2000-08-23  Werner LEMBERG  <wl@gnu.org>
2055         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
2057 2000-08-22  Werner LEMBERG  <wl@gnu.org>
2059         * src/include/lib.h: Provide a fix for IRIX to not include
2060         groff-getopt.h.
2062 2000-08-18  Werner LEMBERG  <wl@gnu.org>
2064         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
2065         since some non-GNU sed programs can't handle null regexps.
2066         * configure, src/preproc/eqn/Makefile.sub,
2067         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
2069         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
2070         bug (string.h and strings.h are both needed according to latest
2071         POSIX standard).
2073         * MORE.STUFF: Added info about unroff and troffcvt.
2075 2000-08-08  Werner LEMBERG  <wl@gnu.org>
2077         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
2078         used before -ms.
2080         * tmac/tmac.man.old: Remove unused number register.
2082         * tmac.doc: Minor documentation fix.
2084 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2086         * src/roff/groff/pipeline.c (is_system_shell):
2087         Fix typo: "monocased_shell" no longer exists.
2089 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2091         Remove FILENAME_MAX limits.
2093         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
2094         that the argument length is less than FILENAME_MAX.
2095         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
2096         Use struct hack to allocate and free file name.
2097         (struct xtmpfile_list): fname is now part of the structure,
2098         not a pointer to another string.
2100 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
2102         * src/include/posix.h: Add a default value for FILENAME_MAX.
2104 2000-08-06  Paul Eggert  <eggert@twinsun.com>
2106         Add support for new BSD-style man pages (with ".Dd" instead of
2107         ".TH"), so that "groff -man" understands both styles, even
2108         when running "groff -man" on a host whose system man page
2109         macros don't support ".Dd".
2111         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
2112         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
2113         in case the system man macros don't define Dd or TH.
2115         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
2116         * tmac/tmac.an: New one-line file.
2117         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
2119 2000-08-06  Werner LEMBERG  <wl@gnu.org>
2121         * src/roff/troff/troff.man: Fixing typos.
2123 Version 1.16.1 released
2124 =======================
2126 2000-07-31  Werner LEMBERG  <wl@gnu.org>
2128         Preparing release 1.16.1.
2130         * REVISION: Revision number set to 1.
2131         * MORE.STUFF: Added info about port to DOS.
2132         * NEWS, win32-diffs: Updated.
2134         * src/include/nonposix.h: Remove first line -- this file is used
2135         in C also.
2137         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
2138         link to it.
2140 2000-07-30  Werner LEMBERG  <wl@gnu.org>
2142         * doc/texinfo.tex: Update to latest version.
2144 2000-06-28  Paul Eggert  <eggert@twinsun.com>
2146         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
2147         commands that fail.  Don't assume that "export a=b" is valid shell
2148         syntax.  This is needed for Solaris 2.5.1.
2150         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
2151         comment about missing Solaris headers.
2153         * PROBLEMS: Add section about problems with Sun Make and VPATH.
2155 2000-06-25  Werner LEMBERG  <wl@gnu.org>
2157         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
2158         SET_BINARY().
2160         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
2162         * win32-diffs: Updated.
2163         * README.WIN32: Added CRs to make all Windows editors happy.
2165         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
2166         src/roff/groff/pipeline.c).
2168 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
2170         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
2171         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
2173 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
2175         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
2176         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
2177         are binary files.
2178         (main): Support non-Posix systems with several different styles of
2179         slash characters in file names.
2181         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
2182         (main) [SET_BINARY]: Switch stdin into binary mode.
2184         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
2185         (main): Support file names with several possible slash-type
2186         characters, as given by DIR_SEPS[] in nonposix.h.
2187         (main) [__MSDOS__]: If renaming the temporary index file fails
2188         because it has more than one dot in its trunk, replace the dot
2189         with an underscore and try again.
2190         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
2191         Newline.
2192         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
2194         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
2195         (File::File): Open the input file in binary mode.  Strip CR
2196         characters from each CR-LF pair.
2197         (xbasename): Support file names with several possible slash-type
2198         characters, as given by DIR_SEPS[] in nonposix.h.
2200         * src/include/Makefile.sub (HDRS): Add nonposix.h.
2202         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
2203         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
2204         [!_POSIX_VERSION]: Define for traditional Unix systems.
2205         (real_output_file::real_output_file): Remove the MSVC-specific
2206         call to popen, use instead POPEN_WT, appropriately defined on
2207         nonposix.h.  #include nonposix.h.
2208         (real_output_file::~real_output_file): Remove the MSVC-specific
2209         call to pclose, a suitable macro is now defined on nonposix.h.
2210         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
2211         and WEXITSTATUS instead of assuming traditional Unix
2212         interpretation of the status returned by pclose.
2214         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
2215         call to popen, use POPEN_RT instead (appropriately defined on
2216         nonposix.h).  #include nonposix.h.
2217         (ps_bbox_request): Open the PostScript file in binary mode.
2218         Close the file after processing it.
2219         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
2220         nonposix.h.
2222         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
2223         A version of run_pipeline that doesn't use `fork'.
2224         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
2225         (system_shell_name, system_shell_dash_c)
2226         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
2227         the ugliness of testing DOS/Windows file names for equality, and
2228         support both stock shells and ports of Unix shells.
2230         * src/roff/groff/groff.cc: #include nonposix.h.
2231         (BSHELL): Definition moved to nonposix.h.
2232         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
2233         instead of a literal "-c".
2234         (xbasename): Support file names with several possible slash-type
2235         characters, as given by DIR_SEPS[] in nonposix.h.
2236         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
2237         of literal strings.
2239         * src/preproc/soelim/soelim.cc: #include nonposix.h.
2240         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
2242         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
2243         pic_tab.h.
2245         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
2247         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
2248         eqn_tab.h.
2250         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
2252         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
2253         P_tmpdir is defined, use it instead of the literal "/tmp".
2254         (remove_tmp_files, add_tmp_file): New functions.
2255         (xtmpfile): Record temporary files and register an atexit function
2256         to delete them explicitly, instead of relying on the OS to do
2257         that, which doesn't work on non-Unix systems.
2259         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
2260         (search_path::search_path): Use PATH_SEP instead of a literal
2261         colon.
2262         (search_path::command_line_dir): Ditto.
2263         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
2264         to support non-Posix systems.
2266         * src/libc/libbib/search.cc: #include nonposix.h.
2267         (search_list::add_file): Open the file in binary mode.
2269         * src/libs/libbib/linear.cc: #include nonposix.h.
2270         (file_buffer::load): Remove \r characters preceding \n from the
2271         loaded buffer.
2273         * src/libs/libbib/index.cc: #include nonposix.h.
2274         (make_index_search_item): Open index_filename in O_BINARY mode.
2275         (index_search_item_iterator::get_tag): Ditto.  Remove \r
2276         characters before \n characters.
2277         (index_search_item::check_files): Open files in binary mode.
2278         (index_search_item::munge_filename): Support DOS-style file names
2279         with backslashes and drive letters, use IS_ABSOLUTE.
2281         * src/devices/grops/ps.cc: #include nonposix.h.
2282         (main) [SET_BINARY]: Switch stdout to binary mode.
2284         * src/devices/grolj4/lj4.cc: #include nonposix.h.
2285         (main) [SET_BINARY]: Switch stdout to binary mode.
2287         * src/devices/grolbp/lbp.cc: #include nonposix.h
2288         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
2290         * src/devices/grodvi/dvi.cc: #include nonposix.h.
2291         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
2292         nonposix.h).
2293         (main) [SET_BINARY]: Switch stdout to binary mode.
2294         [_MSC_VER]: Remove an explicit call to _setmode.
2296         * src/include/nonposix.h: New file.
2298         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
2299         operation when building with DJGPP.
2300         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
2301         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
2302         ENVSETUP.
2304         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
2305         MS-DOS.
2306         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
2307         etc. can include a semi-colon on DOS/Windows.
2308         (depend.temp): Use depend1.temp instead of depend.temp1, to
2309         prevent files from overerwiting each other on 8+3 filesystems.
2311         * gendef.sh (t): Change definition to work with DOS/Windows.
2313         doc/groff.texinfo: Apart of some typo corrections, I also changed
2314         some index entris, to make them more non-ambiguous, and also put
2315         @ignore around some parts that are not yet written, to allow the
2316         Info output be readable.
2318 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
2320         Replaced specific checks for function declarations with a generic
2321         routine taken from GNU bfd.
2323         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
2324         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
2325         * configure.in: Use it.
2326         * src/devices/grolbp/lbp.cc, src/include/lib.h,
2327         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
2328         src/roff/groff/groff.cc: Use it.
2329         * Makefile.in, configure: Updated.
2331 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
2333         * src/devides/grolbp/lbp.h: Removed unused variables.
2335 2000-05-31  Keith Thompson  <kst@sdsc.edu>
2337         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
2338         strncasecmp().
2340 2000-05-31  Werner LEMBERG  <wl@gnu.org>
2342         * aclocal.m4 (GROFF_SRAND): New function to test the return value
2343         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
2344         * configure.in: Use it.
2345         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
2346         * configure, Makefile.in: Updated.
2348         * configure.in: Add test for strncasecmp().
2349         * src/include/lib.h: Use it.
2351 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
2353         * src/preproc/grn/Makefile.sub: Add MLIB.
2355 2000-05-29  Nix  <nix@esperi.demon.co.uk>
2357         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
2359 2000-05-29  Werner LEMBERG  <wl@gnu.org>
2361         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
2363         * PROBLEMS: Small update.
2365         * src/devices/grolbp/lbp.cc: Various small fixes.
2367 2000-05-28  Keith Thompson  <kst@sdsc.edu>
2369         * src/roff/nroff/nroff.sh: Fix main loop syntax.
2371         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
2373 2000-05-25  Werner LEMBERG  <wl@gnu.org>
2375         * man/roff.man: Removed unused macro.
2377 2000-05-24  Werner LEMBERG  <wl@gnu.org>
2379         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
2380         This is needed e.g. if you do
2381         `make distclean; ./configure; make dist'.
2383 Version 1.16 released
2384 =====================
2386 2000-05-23  Werner LEMBERG  <wl@gnu.org>
2388         Adding font CWI (constant width italic) to devdvi.
2390         * font/devdvi/CWI: New file.
2391         * font/devdvi/generate/Makefile: Add generating rule.
2392         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
2393         tmac/tmac.dvi: Use it.
2394         * NEWS: Announce it.
2396         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
2397         * font/devlj4/generate/Makefile: Cosmetic changes only.
2399         * man/groff.man: Removed most of the redundant description of
2400         special characters (which is in groff_char.man).  Added font
2401         translation CB->CR for devdvi.  Other minor fixes.
2403         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
2404         (registered) symbols.
2406 2000-05-22  Werner LEMBERG  <wl@gnu.org>
2408         * doc/Makefile: Added rule for creating info files.
2410         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
2411         AMS font metrics.
2412         * font/devdvi/generate/Makefile: Fixed dependencies.
2414         * font/devps/*: Regenerated.  Heavy changes for Bookman and
2415         NewCentury Schoolbook!
2416         * font/devps/generate/afmname: Will now run with GNU awk.
2417         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
2418         * font/devps/generate/Makefile: Cosmetic changes only.
2420 2000-05-21  Werner LEMBERG  <wl@gnu.org>
2422         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
2423         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
2424         `.SS' now produces a heading with a smaller size than `.SH'. 
2425         Completely formatted.
2426         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
2428         * man/groff.man: Improved table appearance.  Use of `eo' request
2429         to reduce number of doubled backslashes in macro definitions.
2430         Replacing `\e' with `\(rs'.  Other minor fixes.
2432         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
2433         to have correct line number.
2435         * INSTALL: Small improvement.
2437 2000-05-20  Bernd Warken  <bwarken@mayn.de>
2439         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
2440         WL).
2442 2000-05-19  Bernd Warken  <bwarken@mayn.de>
2444         * man/groff.man: Complete update (with a lot of corrections by WL).
2446 2000-05-18  Werner LEMBERG  <wl@gnu.org>
2448         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
2450         * font/*/*: Implement it.
2451         * man/groff_char.man, NEWS: Document it.
2453         * src/include/unix.h: Removed.  It isn't used.
2455         * doc/groff.texinfo: Slight improvements.
2457 2000-05-17  Werner LEMBERG  <wl@gnu.org>
2459         * README, win32-diffs: Small fixes and improvements.
2461 2000-05-16  Werner LEMBERG  <wl@gnu.org>
2463         * FDL: New file (the Free Documentation License version 1.1).
2465         * doc/groff.texinfo: Added many start-up values for gtroff.
2466         Some structural improvements of the source code.
2468 2000-05-15  Werner LEMBERG  <wl@gnu.org>
2470         * src/roff/troff/input.cc: Added small comment about troffrc-end.
2471         * src/roff/troff/troff.man: Added info about troffrc-end.
2473 2000-05-14  Werner LEMBERG  <wl@gnu.org>
2475         * Makefile.in (EXTRADIRS): Fix typos.
2476         (dist): Handle deletion of old .tar.gz file correctly.
2477         (DISTDIRS): Include all tty output devices.
2479         * doc/groff.texinfo: Adding more cross references; countless other
2480         fixes.
2482 2000-05-13  Werner LEMBERG  <wl@gnu.org>
2484         * MORE.STUFF: Added Robert Marks's utilities.
2486 2000-05-12  Werner LEMBERG  <wl@gnu.org>
2488         Added win32 port contributed by Blake McBride
2489         <blake@florida-software.com>.
2491         * README.WIN32, win32-diffs: New files.
2492         * NEWS: Updated.
2494         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
2495         (tmove, tmove2): Added parentheses to avoid compiler warnings.
2496         (change): Removed unused variables.
2498         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
2499         (savebounds): Changed return value from `int' to `void'.
2500         * src/preproc/grn/hdb.cc: Ditto.
2502         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
2503         final backslash in comment to avoid compiler warning.
2505         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
2507         * doc/groff.texinfo: More fixes.
2509 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
2511         * tmac/tmac.doc: Documentation fix.
2513 2000-05-11  Werner LEMBERG  <wl@gnu.org>
2515         * doc/groff.texinfo: Reading the source code shows up a lot of
2516         omissions and incorrect data...  More conversion to @Deffn macros.
2518 2000-05-10  Werner LEMBERG  <wl@gnu.org>
2520         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
2521         dependency.
2523         * src/roff/troff/request.h: Removing unused `no_break_flag'.
2525 2000-05-09  Werner LEMBERG  <wl@gnu.org>
2527         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
2528         improvements.
2530         * doc/groff.texinfo: Extended history section.  More conversion to
2531         @Deffn macros.  More .tr documentation.
2533 2000-05-07  Werner LEMBERG  <wl@gnu.org>
2535         * doc/groff.texinfo: Completed tab section.  Added info about
2536         fields.
2538 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
2540         * PROBLEMS: Describe configure script fix for OS/390 Unix.
2542 2000-05-05  Werner LEMBERG  <wl@gnu.org>
2544         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
2545         LaTeX 2e).
2546         * NEWS: Document it.
2548         * man/troff.man: Minor optical improvements.
2550 2000-05-03  Werner LEMBERG  <wl@gnu.org>
2552         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
2554         * font/*/*: Implement it.
2555         * man/groff_char.man, NEWS: Document it.
2557 2000-05-02  Werner LEMBERG  <wl@gnu.org>
2559         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
2560         expansion.
2561         * NEWS: Document the three new man pages.
2563         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
2564         * configure: Updated.
2566         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
2568 2000-05-01  Werner LEMBERG  <wl@gnu.org>
2570         Added grap support to grog.
2572         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
2573         * src/roff/grog/grog.man: Document it.
2575         * doc/groff.texinfo, NEWS: Add info about grap support.
2577         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
2578         (with slight fixes by me).
2580         * tmac/groff_tmac.man: New file documenting tmac mechanism.
2581         * tmac/Makefile.sub: Add groff_tmac.man.
2582         * man/roff.man: New file giving overview of roff system.
2583         * man/troff.man: A short reference of troff.
2584         * man/Makefile.sub: Add roff.man and troff.man.
2586 2000-04-30  Werner LEMBERG  <wl@gnu.org>
2588         Added grap support to groff.
2590         * src/roff/groff/groff.cc: Implement it.
2591         * src/roff/groff/groff.man: Document it.
2593         * src/devices/grotty/grotty.man: Add cp1047 device.
2594         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
2595         Ditto.
2596         * src/roff/groff/groff.man: Ditto.
2597         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
2598         * doc/groff.texinfo: Ditto.
2600         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
2601         for cp1047.
2603 2000-04-29  Werner LEMBERG  <wl@gnu.org>
2605         * man/groff_char.man: Add `pc' glyph.
2606         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
2607         * tmac/tmac.tty: Add `pc' glyph.
2608         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
2609         we use cp1047 output device.
2611         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
2612         there are still hardcoded latin1->unicode values in utf8's font
2613         definition files.
2614         * configure: Updated.
2615         * NEWS: Minor clarification.  Updated.
2617         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
2618         Unix.
2620 2000-04-28  Werner LEMBERG  <wl@gnu.org>
2622         Adding EBCDIC code page 1047.
2624         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
2625         font/devcp1047/DESC.proto: New files.
2627         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
2628         either ascii/latin1 or cp1047.
2629         * Makefile.in: Use it.
2630         * configure: Updated.
2632         Replacing and/or adding `md' (mathdot) glyph with `pc'
2633         (periodcentered) in all text fonts.
2635         * font/*/*: Change it.
2637 2000-04-27  Werner LEMBERG  <wl@gnu.org>
2639         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
2641         * configure.in: Add check for strings.h.
2642         * src/include/driver.h: Use HAVE_STRINGS_H.
2643         * src/devices/grolbp/lpb.cc: Remove string.h.
2645         * src/include/groff-getopt.h: New file.  It will be used instead of
2646         getopt.h (to be included in lib.h) to avoid endless problems with
2647         picky C++ compilers.
2648         * src/include/lib.h: Use groff-getopt.h.
2649         * src/include/Makefile.sub: Updated.
2651         * configure: Updated.
2652         * Makefile.in: Updated.
2654         * NEWS: Mention EBCDIC support.
2656 2000-04-26  Werner LEMBERG  <wl@gnu.org>
2658         * TODO: Some additions.
2660 2000-04-25  Werner LEMBERG  <wl@gnu.org>
2662         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
2663         of mso request.
2665 2000-04-23  Werner LEMBERG  <wl@gnu.org>
2667         * src/roff/troff/troff.man: Minor fixes.
2669 2000-04-22  Werner LEMBERG  <wl@gnu.org>
2671         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
2672         `.T' string register and the incompatible definition of the `.T'
2673         number register (compared to Unix troff).
2675         * man/groff_char.man: Add some missing characters.
2676         * font/devutf8/NOTES: Update.
2678 2000-04-21  Werner LEMBERG  <wl@gnu.org>
2680         * src/include/htmlindicate.h, src/include/lib.h,
2681         src/include/posix.h: Fix copyright.
2683         * src/include/Makefile.sub: Update.
2685 2000-04-20  Werner LEMBERG  <wl@gnu.org>
2687         * src/roff/troff/input.cc (input_char_description): Removing
2688         superfluous space char.
2690         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
2692         * doc/groff.texinfo: Document EBCDIC.
2694 2000-04-19  Werner LEMBERG  <wl@gnu.org>
2696         Introducing `shc' as the glyph name for the soft hyphen character.
2698         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
2699         font/devlatin1/R.proto: Use it.
2701         * NEWS: Updated.
2703 2000-04-18  Werner LEMBERG  <wl@gnu.org>
2705         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
2706         dependency on ASCII order.
2708 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
2710         * src/libs/libgroff/illegal.c: Added EBCDIC table.
2711         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
2713         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
2714         to increase portability.
2716 2000-04-15  Werner LEMBERG  <wl@gnu.org>
2718         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
2719         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
2720         the generic `\n' if under OS/390 Unix.
2722         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
2724         * configure: Regenerated.
2726 2000-04-14  Werner LEMBERG  <wl@gnu.org>
2728         * doc/groff.texinfo: More conversions to @Deffn.
2730 2000-04-12  Werner LEMBERG  <wl@gnu.org>
2732         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
2733         with `:'.
2735         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
2737 2000-04-10  Werner LEMBERG  <wl@gnu.org>
2739         * doc/groff.texinfo: More conversions to @Deffn.
2741 2000-04-08  Werner LEMBERG  <wl@gnu.org>
2743         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
2744         Updated to latest version (glibc 2.1.3).
2746 2000-04-07  Werner LEMBERG  <wl@gnu.org>
2748         * doc/Makefile (clean): Include more index files.
2749         Add rule texinfo->dvi.
2751 2000-04-05  Werner LEMBERG  <wl@gnu.org>
2753         * doc/groff.texinfo: Added new index `op' for operators.  More
2754         info on end of sentence characters.  More use of @Deffn.
2756 2000-03-30  Werner LEMBERG  <wl@gnu.org>
2758         * */*.man: Adding a note that a whitespace can be inserted between
2759         a command line option and its parameter -- we are using GNU getopt.
2761         * src/roff/groff/groff.man: Add example of `-m mandoc'.
2763 2000-03-28  Werner LEMBERG  <wl@gnu.org>
2765         Correct anachronism of calling the man macro file with `-man'
2766         instead of `-m man' etc.
2768         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
2769         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
2770         load tmac.<package>.
2772         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
2774         * NEWS: Updated.
2776         * doc/groff.texinfo: Updated.
2778         * tmac/groff_man.man: Copyright added.
2780 2000-03-27  Werner LEMBERG  <wl@gnu.org>
2782         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
2783         typeset the request resp. escape name with a tt font -- due to a
2784         bug in texinfo.tex it is necessary to use the `-e' switch with
2785         texi2dvi.
2787         Improving info about usage of groff units.
2789         Other minor fixes.
2791 2000-03-20  Werner LEMBERG  <wl@gnu.org>
2793         * doc/groff.texinfo: Added section about man macro package
2794         (I've basically taken groff_man.man).  Introducing new indices `ma'
2795         for macros/strings and `gl' for glyph names.  Other minor fixes.
2797         * tmac/groff_man.man: Fixed some typos.
2799 2000-03-19  Werner LEMBERG  <wl@gnu.org>
2801         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
2802         Other minor fixes.
2804         * doc/texinfo.tex: New file.
2806 2000-03-18  Werner LEMBERG  <wl@gnu.org>
2808         * doc/groff.texinfo: Improved section on number registers.  Other
2809         minor updates.
2811 2000-03-16  Werner LEMBERG  <wl@gnu.org>
2813         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
2814         synopsis.
2816         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
2817         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
2818         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
2819         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
2821         * src/preproc/grn/grn.man: Better synopsis; added copyright.
2823         * src/roff/grog/grog.man: Updated copyright date.
2825 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
2827         * configure.in: Added test for strdup.
2829         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
2830         is available.
2832         Replaced dynamic allocation of arrays `[...]' with `new' operator.
2834         Other minor fixes.
2836 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
2838         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
2840 2000-03-11  Werner LEMBERG  <wl@gnu.org>
2842         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
2843         compilers silent.
2844         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
2845         * src/include/lib.h: Remove some spaces.
2847 2000-03-10  Werner LEMBERG  <wl@gnu.org>
2849         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
2850         initializers from arguments (some compilers don't like this).
2852 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
2854         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
2855         used by pic and eqn to tell grohtml where the graphic regions start
2856         and end.
2857         * src/libs/libgroff/Makefile.sub: Use it.
2858         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
2859         graphic_start() and graphic_end() from htmlindicate.cc.
2861 2000-03-09  Werner LEMBERG  <wl@gnu.org>
2863         * tmac/tmac.safer: Will now work correctly in compatibility mode.
2864         * tmac/groff_man.man: More fixes.
2866 2000-03-08  Werner LEMBERG  <wl@gnu.org>
2868         * doc/Makefile: Added texput.log to the `clean' target.
2869         * doc/groff.texinfo: Added info about delimiters for escapes.
2871 2000-03-08  Bernd Warken  <bwarken@mayn.de>
2873         * src/preproc/pic/pic.man: Add info on conversion of pic images to
2874         other graphic formats.
2876 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
2878         * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
2879         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
2880         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
2881         files.
2883 2000-03-07  Werner LEMBERG  <wl@gnu.org>
2885         * doc/groff.texinfo: Spelling fixes.
2887 2000-03-06  Werner LEMBERG  <wl@gnu.org>
2889         * tmac/groff_man.man: Completely revised to cover everything in
2890         tmac.an.
2892         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
2893         Other minor fixings.
2894         * src/roff/troff/env.cc (environment_copy): Improve error message and
2895         fix itoa->i_to_a.
2896         * src/roff/troff/TODO: Updated.
2898         * doc/Makefile: Bug fixes -- this is still provisional, though...
2900         * tmac/eqnrc: Small fixes.
2902 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
2904         Adding a request `evc' to copy environments.
2906         * src/roff/troff/env.cc (environment::copy, environment_copy):
2907         Implement it.
2908         * src/roff/troff/env.h: Add prototype.
2910 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
2912         Adding strsep() -- Solaris 8 doesn't have it.
2914         * configure.in: Test it.
2915         * src/devices/grolbp/lbp.cc: Add code.
2917 2000-03-05  Werner LEMBERG  <wl@gnu.org>
2919         * src/roff/troff/div.cc (macro_diversion::output,
2920         top_level_diversion::output): Fixing an incompatibility with
2921         original troff: \x'0' updates the .a register also.  Thanks to
2922         <Andries.Brouwer@cwi.nl> for pointing this out.
2923         * doc/groff.texinfo: Document it.
2925         * Makefile.in: Create Makefile.dep if necessary before calling the
2926         submake process to avoid warning about nonexistent file.
2928         * NEWS, PROJECTS: Updated.
2930 2000-03-04  Werner LEMBERG  <wl@gnu.org>
2932         * tmac/troffrc: Add tmac.lbp.
2934 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
2936         * tmac/tmac.lbp: New file.
2937         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
2938         command.
2940 2000-03-03  Werner LEMBERG  <wl@gnu.org>
2942         * Makefile.in: Fixing $(subdir).
2944         * README, NEWS: Small fixes.
2946         * test-groff: Adding path to grolbp.
2948         * configure.in: The (new) file src/xditview/Imakefile.in will be
2949         also configured -- it is now possible to build gxditview in a
2950         directory different from $srcdir.
2952 2000-03-02  Blake McBride  <blake@florida-software.com>
2954         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
2956         * MORE.STUFF: Added website of bell labs and info about plot2dev.
2958 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
2960         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
2961         files.
2963 2000-02-29  Werner LEMBERG  <wl@gnu.org>
2965         Adding GNU getopt to the groff distribution.
2967         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
2968         New files.
2969         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
2970         * aclocal.a4: Remove GROFF_GETOPT function.
2971         * configure.in, Makefile.in, PROBLEMS: Update.
2972         * src/include/lib.h: Replace getopt tests with getopt.h.
2973         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
2975         * doc/groff.texinfo: Further checking/updating.  Adding more index
2976         entries.
2978         * man/groff_out.man: Fix nroff mode activation (for emacs).
2979         * man/groff_font.man: Add missing ligature.
2981 2000-02-28  Werner LEMBERG  <wl@gnu.org>
2983         * doc/groff.texinfo: Further checking/updating.  Adding more index
2984         entries.
2986         * src/devices/grolbp/grolbp.man: Added a comment line at the
2987         beginning of the file (similar to shell scripts) which indicates
2988         that `tbl' should be used as a preprocessor.
2990 2000-02-27  Blake McBride  <blake@florida-software.com>
2992         Adapting groff to MS Visual C++ 6.0 compiler (tested with
2993         Windows NT 4.0).  Uses _MSC_VER define where necessary.
2995         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
2996         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
2997         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
2998         src/include/lib.h, src/libs/libgroff/errarg.cc,
2999         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
3000         src/preproc/refer/label.y, src/preproc/refer/label.cc,
3001         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
3002         src/roff/troff/div.cc, src/roff/troff/env.cc,
3003         src/roff/troff/input.cc, src/roff/troff/node.cc,
3004         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
3005         if_to_a() to avoid name clashes.
3006         * src/include/posix.h: Don't use unistd.h.
3007         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
3008         clause for integrating non-Unix xtmpfile() code.
3009         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
3010         structure; use "rt" for popen() in pipe_source(); add getpid()
3011         dummy function.
3012         * src/roff/troff/node.cc: Use special versions of popen() in
3013         real_output_file() and pclose() in ~real_output_file().
3015 2000-02-27  Werner LEMBERG  <wl@gnu.org>
3017         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
3018         LBP-8 series laser printers).  This code has been contributed by
3019         Francisco Andres Verdu <pandres@dragonet.es>.
3021         * src/devices/grolbp/*: The grolbp output device.
3022         * font/devlpb/*: The font description files.
3023         * Makefile.in: Add grolpb and devlbp subdirectories.
3025         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
3026         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
3027         typographic fixes.
3029         * doc/groff.texinfo: Further checking/updating.  Adding more index
3030         entries.
3032         * NEWS: Updated.
3034         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
3036         * man/groff_font.man: Adding info about obsolete DESC keywords.
3037         * src/devices/grolj4/grolj4.man: Documenting additional DESC
3038         keywords.
3040 2000-02-26  Werner LEMBERG  <wl@gnu.org>
3042         * src/preproc/grn/grn.man: Added info about the gremlin file format
3043         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
3045 2000-02-25  Werner LEMBERG  <wl@gnu.org>
3047         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
3048         friends to be non-integer.
3050         * src/preproc/grn/grn.man: Document it.
3052         * doc/groff.texinfo: Further checking/updating.  Adding more index
3053         entries.
3055 2000-02-24  Werner LEMBERG  <wl@gnu.org>
3057         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
3058         line thicknesses to be integer multiples of this value.
3060         * src/preproc/grn/grn.man: Commenting out the -s option -- the
3061         corresponding code doesn't work (yet).
3063         * doc/groff.texinfo: Further checking/updating.  Adding more index
3064         entries.
3066 2000-02-23  Werner LEMBERG  <wl@gnu.org>
3068         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
3069         specify line thickness instead of base units.  The new default
3070         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
3071         thick lines respectively.
3073         Removed unused variable `prevval'.
3075         * src/preproc/grn/grn.man: Updated.
3077 2000-02-22  Werner LEMBERG  <wl@gnu.org>
3079         * src/preproc/grn/main.cc: Slight formatting.
3081         * src/roff/groff/groff.man: Formatting fix.
3082         * src/preproc/grn/grn.man: Ditto.
3084         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
3086         * doc/groff.texinfo: Further checking/updating.
3088 2000-02-21  Werner LEMBERG  <wl@gnu.org>
3090         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
3092         * test-groff: Added grn subdir to path.
3094         * doc/groff.texinfo: Some restructing and other small improvements.
3096         * src/roff/groff/groff.cc (help): Fixed info string.
3098 2000-02-20  Werner LEMBERG  <wl@gnu.org>
3100         * doc/meref.me: Fix description of .GS request.
3102         * src/roff/troff/troff.man: Fixing typo.
3104         Adding the `grn' preprocessor for gremlin graphic files.
3106         * src/preproc/grn/*: This is the Berkeley distribution written by
3107         David Slattengren and Barry Roitblat, adapted to groff by Daniel
3108         Senderowicz and Werner Lemberg.
3110         * doc/grnexampl.{me,g}: A sample for grn.
3112         * Makefile.in: Added subdirectory entry for grn.
3114         * src/roff/groff/groff.cc: Added support for grn.  It can be now
3115         called with the switch `-g'.
3117         * src/roff/groff/groff.man: Updated.
3119         * src/roff/grog/grog.{man,pl,sh}: Updated.
3121         * NEWS: Updated.
3123 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
3125         * src/include/lib.h: Added xtmptemplate and made xtmpfile
3126         parametrically polymorphic.
3128         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
3129         and the alterations to xtmpfile.
3130         xtmpfile can be requested to return the filename created
3131         and asked not to unlink the temp file.  The default behaviour
3132         if parameters are absent is exactly the same as before.
3134 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
3136         A new request `length' is available which returns the length of a
3137         string in a number register:
3139         * src/roff/troff/input.cc (length_macro): Implement it.
3140         * src/roff/troff/input.cc (init_input_requests): Register it.
3142 2000-02-11  Werner LEMBERG  <wl@gnu.org>
3144         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
3145         of the `substring' request.
3147         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
3148         request.
3150         * src/roff/troff/TODO, NEWS: Updated.
3152 2000-02-09  Werner LEMBERG  <wl@gnu.org>
3154         * src/roff/groff/groff.man: Added an example.
3156 2000-02-06  Werner LEMBERG  <wl@gnu.org>
3158         I've considerably modified the directory structure of the
3159         distribution to get a more vertical layout.  For example, the number
3160         of top level directories has been reduced from 42 to 6.
3162         As a consequence, many changes, especially to the makefiles, were
3163         necessary:
3165         * The makefile variables `top_builddir' and `top_srcdir' have been
3166         introduced.  Virtually all relative paths have been replaced with
3167         absolute ones using these two variables.
3169         * Dependencies (in the files `Makefile.dep') are no longer part of
3170         the distribution.  Instead, they are created during a `make install'
3171         in the build directory.
3173         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
3174         make `top_srcdir' and `top_builddir' absolute.
3176         Some other changes:
3178         * Man pages no depend on the files `VERSION' and `REVISION'.
3180         * The added shell script `mkinstalldirs' will replace `mkdir' in
3181         almost all cases.
3183         * VERSION: Version number increased to 1.16.
3185 2000-02-04  Werner LEMBERG  <wl@gnu.org>
3187         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
3189         * Makefile.in: Removed $(tmac_m) since it is no longer needed
3190         (after an update of the mm stuff).
3192         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
3194 2000-02-03  Werner LEMBERG  <wl@gnu.org>
3196         The .psbb request will now also accept Mac PS images (i.e. using LF
3197         as the EOL character).
3199         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
3200         (with slight modifications).
3201         * troff/input.cc (do_ps_file): Use it.
3203         * test-groff: Add grohtml and grolj4 output devices to PATH.
3205 2000-01-30  Werner LEMBERG  <wl@gnu.org>
3207         * NEWS, MORE.STUFF: Updated.
3209 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
3211         Add the `srand' command to pic.
3213         * pic/lex.cc, pic/pic.y: Implement it.
3214         * pic/pic.man: Document it.
3215         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
3217 2000-01-30  Werner LEMBERG  <wl@gnu.org>
3219         Add a new request `.psbb'.  This does exactly what the external
3220         program psbb did.  It scans a PostScript image file for a
3221         %%BoundingBox comment and extracts the bounding box values (in
3222         PostScript units) which are then stored in the four new (read-only)
3223         number registers `llx', `lly', `urx', and `ury'.
3225         This will allow the usage of the .PSPIC macro without worrying
3226         about unsafe behaviour of groff, i.e., it will work without the
3227         `-U' switch of groff.
3229         * troff/input.cc: Implement it.
3230         * tmac/tmac.pspic: Use it.
3231         * troff/troff.man, grops/grops.man, NEWS: Document it.
3232         * psbb/*, Makefile.in: Remove it since it is no longer needed.
3234         This is bloody C code simply adapted from psbb.c!  Any improvements
3235         welcome.
3237 2000-01-29  Werner LEMBERG  <wl@gnu.org>
3239         * man/groff_font.man: Minor clarifications.
3241         * NEWS: Updated.
3243 2000-01-28  Werner LEMBERG  <wl@gnu.org>
3245         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
3247 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
3249         * man/groff_font.man: Brought up to date regarding tcommand
3250         extensions.
3251         * libgroff/font.cc: Handle everything after `--' as a comment
3252         in the font files.
3253         * devps/*: Added comment delimiter inside devps font files.
3255 2000-01-28  Werner LEMBERG  <wl@gnu.org>
3257         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
3258         \fC...\fP (which now works as expected).
3260         * troff/troff.man: Fix typo.
3262 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
3264         Completed the pass_filenames implementation in troff.
3266         * libdriver/input.cc: Will read the new `F' tcommand.
3267         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
3268         * troff/input.cc: Use it.
3270 2000-01-26  Werner LEMBERG  <wl@gnu.org>
3272         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
3273         font will now be updated even if an invalid font is selected.
3275 2000-01-24  Werner LEMBERG  <wl@gnu.org>
3277         * doc/homepage.ms: Updated for new tmac.arkup.
3279         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
3281         * tmac/tmac.arkup: Cleanup.
3283         Added `\&' to .HTML macro to `leave vertical mode', so to say.
3285         Removed obsolete .LINK macro completely.
3287         The macros .URL, .FTP, and .MAILTO now accept a third argument which
3288         will be immediately appended to the second argument (to be used with
3289         punctuation, for example).
3291         Disabled .CDFTP macro temporarily for security reasons.
3293         * tmac/groff_markup.man: Complete revision for latest changes in
3294         tmac.arkup -- note that it does not yet format correctly with
3295         grohtml :-(
3297 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
3299         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
3300         * devutf8/R.proto: Add mappings for wp, lh, rh.
3301         * devutf8/NOTES: Updated.
3303 2000-01-23  Werner LEMBERG  <wl@gnu.org>
3305         * doc/groff.texinfo: Updated version/copyright info.
3307 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
3309         Added support for two new directives in device descriptions:
3310         `pass_filenames' (to pass the input file name to the output device)
3311         and `use_charnames_in_special' (to support e.g. accented characters
3312         in the `X' request).
3314         * include/font.h, troff/charinfo.h: Declare it.
3316         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
3318         * devhtml/DESC: Use it.
3320         * troff/input.cc: New function encoded_char.
3322         * troff/token.h: Add test for `specialness'.
3324 2000-01-21  Werner LEMBERG  <wl@gnu.org>
3326         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
3327         mistake from the list of files to be installed.
3329 2000-01-18  Werner LEMBERG  <wl@gnu.org>
3331         * README: Added info how to apply patches.
3333 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
3335         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
3337 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
3339         * troff/input.cc: Add support for troffrc-end.
3341         * tbl/main.cc: Altered to issue table-start and table-end special
3342         characters if using the html device.
3344         * devhtml/*: Modified font files to incorporate html encoding of
3345         characters.
3347         * tmac/groff_markup.man: New file documenting tmac.arkup.
3349         * tmac/troffrc-end: New file.  This is invoked after all user
3350         specified macros.  Currently used by the html device to include
3351         tmac.html.  Thus no need for users to specify -mhtml anymore.
3353         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
3354         (MAN7): Add groff_markup.man.
3356         * tmac/tmac.an, tmac/tmac.html: Small html updates.
3358         * tmac/troffrc: tmac.arkup will now be called for the html device.
3360         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
3361         extra device specific information about fonts.
3363         * doc/homepage.ms: New file.  It is an example how an HTML home page
3364         could look like with grohtml.
3366         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
3368 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
3370         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
3371         of Im, Re.
3373         * devutf8/NOTES: Updated.
3375 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
3377         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
3378         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
3379         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3380         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
3381         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
3382         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
3383         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
3384         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
3385         warnings.
3387         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
3389 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
3391         grolj4: Paper size will be searched case-insensitively.
3393         * include/lib.h: Add check for strcasecmp().
3394         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
3395         * configure.in: Check for strcasecmp().
3397 2000-01-11  Werner LEMBERG  <wl@gnu.org>
3399         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
3400         `REVISION'.
3402 2000-01-10  Werner LEMBERG  <wl@gnu.org>
3404         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
3405         revision scheme.
3407         Add a new read-only register, `.Y', which contains the groff
3408         revision.
3410         * troff/input.cc (init_input_requests): Define it.
3411         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
3412         * doc/groff.texinfo, troff/troff.man: Document it.
3414         * libgroff/Makefile.sub (version.cc): Add definition of
3415         `Version_string[]', consisting of `<major>.<minor>.<revision>'
3416         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
3417         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
3418         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
3419         troff/input.cc, pfbtops/pfbtops.c: Use it.
3421 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
3423         Add a revision scheme to the groff package.
3425         * REVISION: New file.
3426         * libgroff/Makefile.sub (version.cc): Use it to define
3427         `revision_string[]'.
3428         * grops/psrm.cc: Use revision_string (converted to an unsigned
3429         integer) in constructor of resource_manager.
3431 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
3433         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
3434         files.
3435         * Makefile.in (DEVDIRS): Add devutf8.
3436         * grotty/tty.cc: Include device.h.
3437         (glyph): Change type of `code' to `unsigned int'.
3438         (tty_printer): New field is_utf8.  Constructor takes device argument.
3439         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
3440         (tty_printer::add_char): Change type of first arg to `unsigned int'.
3441         (tty_printer::put_char): New function.
3442         (tty_printer::end_page): Use put_char() instead of ::putchar().
3443         (make_printer): Pass device to tty_printer constructor.
3444         * nroff.sh: Determine default device by calling 'locale'.  As a
3445         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
3446         Recognize UTF-8 locales.
3447         * tmac/eqnrc: Recognize utf8 like latin1.
3448         * tmac/troffrc: Device utf8 needs tmac.tty.
3450 2000-01-07  Werner LEMBERG  <wl@gnu.org>
3452         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
3454 2000-01-07  Paul Eggert  <eggert@twinsun.com>
3456         Add a new predefined writeable number register, `year',
3457         which contains the current year.
3459         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
3460         * tmac/tmac.s: Use it.
3461         * troff/input.cc (init_registers): Initialize it.
3463 2000-01-06  Werner LEMBERG  <wl@gnu.org>
3465         * PROBLEMS: Fixed typo.
3467 2000-01-04  Paul Eggert  <eggert@twinsun.com>
3469         * PROBLEMS: Add Y2k advice for the yr number register.
3471 2000-01-03  Paul Eggert  <eggert@twinsun.com>
3473         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
3475 2000-01-02  Werner LEMBERG  <wl@gnu.org>
3477         * tmac/tmac.arkup: Slight modification of macros to provide better
3478         appearance for non-HTML formats.
3480 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
3482         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
3483         does not automatically translate to malloc(n) on all OSes
3484         (e.g., SunOS) so do it explicitly.  Also, check the returned
3485         value.
3487 2000-01-01  Werner LEMBERG  <wl@gnu.org>
3489         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
3491         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
3492         expects this variable
3494 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
3496         * doc/Makefile: Added instructions to create HTML and text
3497         versions of some files.
3499 1999-12-31  Werner LEMBERG  <wl@gnu.org>
3501         * Updated INSTALL.gen.
3503         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
3504         better resp. correctly with non-HTML devices.
3506 Version 1.15 released
3507 =====================
3509 1999-12-28  Werner LEMBERG  <wl@gnu.org>
3511         * NEWS, VERSION: Changed to 1.15
3513 1999-12-27  Paul Eggert  <eggert@twinsun.com>
3515         * nroff/nroff.man: -S is safer, not safe.
3517         * groff/groff.cc (main): Use `safer', not `safe', in variable
3518         names.  This does not change the behavior.
3520         * troff/input.cc (main): Likewise.
3522         * nroff/nroff.sh: Likewise.
3524         * troff/input.cc (prepend_string): New function.
3525         (main): Prepend -msafer, so that we check macro libraries for
3526         safety.
3528         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
3530 Version 1.14 released
3531 =====================
3533 1999-12-26  Werner LEMBERG  <wl@gnu.org>
3535         * NEWS, VERSION: Changed to 1.14.
3537 1999-12-24  Werner LEMBERG  <wl@gnu.org>
3539         * refer/refer.cc: Fixing the last fix.
3541 Version 1.13 released
3542 =====================
3544 1999-12-23  Werner LEMBERG  <wl@gnu.org>
3546         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
3547         number disappear.
3549         * NEWS: Updated.
3551         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
3553         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
3554         document conventions, the version number must be a real.
3556 Version 1.12.1 released
3557 =======================
3559 1999-12-22  Werner LEMBERG  <wl@gnu.org>
3561         * VERSION: Changed to 1.12.1.
3563 1999-12-22  Alan Rooks  <arooks@istar.ca>
3565         * refer/refer.cc (do_file): Slight modification to satisfy the
3566         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
3567         UnixWare 7.1.
3569 1999-12-20  Werner LEMBERG  <wl@gnu.org>
3571         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
3572         notices.
3574         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
3575         list of unsafe requests.
3577         * pic/pic.man: Fixed a typo.
3579         * man/groff_out.man: Fixed a typo.
3581 1999-12-18  Werner LEMBERG  <wl@gnu.org>
3583         * Makefile.in: Doc fixes.
3585 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
3587         * groff/groff.cc: Missing `U' option added to getopt().
3589         * troff/troff.man: Missing `U' option added to synopsis.
3591 Version 1.12 released
3592 =====================
3594 1999-12-14  Werner LEMBERG  <wl@gnu.org>
3596         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
3597         to the synopsis.
3599         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
3600         with the more appropriate terms `safer' and `unsafe'.
3602         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
3603         sys_nerr and sys_errlist[].
3605         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
3607         * pic/pic.y, pic/pic.cc: Added check for fmod().
3609 1999-12-13  Werner LEMBERG  <wl@gnu.org>
3611         * VERSION: Changed to 1.12.
3613         Here some patches from various sources; most of them taken from
3614         the Debian distribution.
3616         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
3617         tmac/Makefile.sub: New files copied directly from the NetBSD
3618         distribution.  Probably, some additional adaptation later on is
3619         necessary...
3621         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
3622         of unsafe requests.
3624         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
3625         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
3626         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
3627         (`-S') is now the default.
3629         * README, NEWS: Updated.
3631 1999-12-09  Werner LEMBERG  <wl@gnu.org>
3633         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
3635         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
3637 1999-12-06  Werner LEMBERG  <wl@gnu.org>
3639         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
3640         grief than relief today.  Additionally, it is against the GNU
3641         coding standards.
3643         * configure: Recreated.
3645 1999-12-05  Werner LEMBERG  <wl@gnu.org>
3647         * configure.in: Added GROFF_LIBM.
3649         * configure: Recreated.
3651         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
3652         necessary.
3654         * Makefile.in: Added definition of $(LIBM).
3656         * Makefile.comm (LIBM): Removed.
3658         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
3660 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
3662         * doc/Makefile: Added rule for generation pic.html.
3664         (clean): Files produced by grohtml will be removed also.
3666         * doc/pic.ms: Small fix.
3668         * tmac/tmac.html: Fixed suppression of headers.
3670 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
3672         * tmac/tmac.html: Fixing horizontal arrows.
3674         Turning off hyphenation.
3676         * tmac/tmac.an: Improved support for grohtml; better indentation,
3677         no footers/headers.
3679 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
3681         * tmac/tmac.arkup: Added CDFTP macro
3683         * tmac/tmac.html: All headers are turned off for ms, me, and mm
3684         macros.
3686         * tmac/troffrc: Some additions for HTML stuff.
3688 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
3690         * tmac/tmac.html: Small changes.
3692 1999-09-26  Werner LEMBERG  <wl@gnu.org>
3694         * doc/groff.texinfo: Minor fixes.
3696 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
3698         * devhtml/TR: Changed spacewidth to 3.
3700         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
3702         * tmac/tmac.html: Moved markup macros to tmap.arkup.
3704         * tmac/tmac.arkup: New file.
3706         * grohtml/ChangeLog: New file.
3708 1999-09-16  Werner LEMBERG  <wl@gnu.org>
3710         * doc/groff.texinfo (Common Features): Added Copying chapter.
3711         Changed format to @smallbook.
3713 1999-09-15  Werner LEMBERG  <wl@gnu.org>
3715         * NEWS: Added info about groff.texinfo.
3717         * doc/groff.texinfo: Will now compile (using texi2dvi) without
3718         warning messages.
3720 1999-09-14  Werner LEMBERG  <wl@gnu.org>
3722         * groff/groff.man: More updates.
3724 1999-09-13  Werner LEMBERG  <wl@gnu.org>
3726         * doc/groff.texinfo: New file.  This manual is still very
3727         rudimentary.  It has been originally contributed by Trent
3728         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
3729         additions by me.
3731         * INSTALL: Added information about the `doc' subdir
3733         * troff/troff.man: Minor fixes.
3735         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
3736         reordered options.
3738         * troff/input.cc (usage): Added missing `-ffam' to usage message.
3740         * Makefile.in (dist): groff-$(version).tar.gz must be removed
3741         also, otherwise it is included itself in another call of `make
3742         dist'.
3744         * groff/groff.cc (synopsis): Removed superfluous space.
3746         * PROJECTS, PROBLEMS, NEWS: Updated.
3748         * VERSION: Updated to 1.12beta.
3750         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
3752         * README: Updated: Included documentation about CVS repository,
3753         mailing lists, and daily snapshots.
3755         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
3757 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3759         * tmac/tmac.an: If the tag didn't fit into the space that the
3760         macro `TP' specifies, the rest of the tag went into the space for
3761         the next line.
3763 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
3765         * grolj4/lj4.cc: Added duplex printing (option `-d').
3767         * grolj4/grolj4.man: Document duplex printing.
3769 1999-09-12  Werner LEMBERG  <wl@gnu.org>
3771         * doc/Makefile (pic.ps): Fixed rule which caused problems with
3772         non-GNUish sed programs.
3774         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
3775         definition.
3777         * configure.in (LIBS): Added `-lc'
3779         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
3781         * pic/tex.cc (solid_arc): Casting M_PI to double.
3783         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
3785         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
3786         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
3787         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
3789         * groff/groff_man.man: New file.  This manual page was originally
3790         written for the Debian GNU/Linux system by Susan G. Kleinmann
3791         <sgk@debian.org>.
3793         * eqn/list.cc (list_box::compute_metrics,
3794         list_box::compute_sublist_width): Removed variable declaration to
3795         avoid shadowing warnings.
3797         * grops/psrm.cc (resource_manager::process_file): Ditto.
3799         * tfmtodit/tfmtodit.cc (main): Ditto.
3801         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
3802         to avoid shadowing warnings.
3804         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
3805         shadowing loop variable.
3807         * groff/groff.man, troff/troff.man: Added doc about grohtml.
3809 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
3811         New grohtml frontend to convert groff input to html.
3813         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
3815         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
3817         * tmac/eqnrc: Added html device.
3819         * tmac/tmac.html: New file.
3821         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
3822         (troff_output::start_picture, troff_output::finish_picture),
3823         tbl/main.cc (process_input_file):
3824         Surrounded output with `graphics_start' and `graphics_end' so that
3825         the html driver can identify non-text portions.
3827         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
3828         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
3829         grotty/tty.ps (tty_printer::set_char): Additional parameter
3830         `name'.
3832         * include/printer.h: Class printer: New function
3833         set_char_and_width; new variables (is_char_named, is_named_set,
3834         named_command, named_char_s, named_char_n) to hold information
3835         about named characters -- needed by the html driver.
3837         * libdriver/printer.cc (printer::set_ascii_char,
3838         printer::set_special_char): Use set_char_and_width.
3840         * devhtml/*: New device files for html driver.
3842         * grohtml/*: New driver grohtml.
3844 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
3846         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
3847         default strings.
3849 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
3851         * libgroff/string.cc (search): Small fix to test against NULL
3852         pointer.
3854 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
3856         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
3857         \b'abc') were stacked in reverse order when processed in a
3858         diversion.
3860         * troff/node.h: Added `*last' to struct `node' to make the above
3861         fix work.
3863         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
3864         The default scale for the 'f' and 't' graphics functions were 'm'
3865         rather than 'u' (i.e., no scaling).
3867 1999-09-11  Peter Miller  <peterm@jna.com.au>
3869         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
3870         do_file), soelim/soelim.man: Added `-I file' option to soelim,
3871         defining include paths.
3873         * soelim/soelim.cc (include_path_append): New function.
3875 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
3877         * tbl/main.cc (process_options): Unix (at least Documenter's
3878         Workbench) tbl allows arbitrary non-alpha characters between
3879         options.
3881 1999-09-11  Paul Eggert  <eggert@twinsun.com>
3883         Y2k fixes.  Don't assume that the current year precedes 2000.
3885         * doc/meref.me: Add \n(y2, \n(y4.
3887         * tmac/doc-common (Yr): New number register.
3888         (Dd): Don't assume current year precedes 2000.
3890         * tmac/tmac.e (td): Likewise.
3891         (y2, y4): New number registers.
3893         * pic/pic.man: Update reference for pic paper to May, 1991
3894         version.
3896 1999-09-11  Werner LEMBERG  <wl@gnu.org>
3898         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3899         Removed quotation marks which prevented correct expansion of
3900         $(tmac_wrap).
3902         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
3904 1999-09-10  Werner LEMBERG  <wl@gnu.org>
3906         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
3907         `config.cache'.
3909         * Removed configure.old.
3911 1999-08-31  Werner LEMBERG  <wl@gnu.org>
3913         * VERSION: Updated to 1.11.1
3915 1999-05-27  Werner LEMBERG  <wl@gnu.org>
3917         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
3919         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
3920         added quotations around $(tmac_wrap) to avoid syntax error if
3921         variable is empty.
3923         * configure: Newly generated using autoconf 2.13.
3925         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
3927 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
3929         * README, PROJECTS, NEWS, INSTALL, VERSION, 
3930         doc/Makefile. doc/pic.ms, groff/groff.man:
3931         Prepare for 1.11 release.  No code changes.
3932         Documentation for pic added (doc/pic.ms).
3934 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
3936         * Version 1.10 released.
3938 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
3940         * afmtodit/afmtodit.pl: Avoid comment on first line.
3942 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
3944         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
3945         * configure.in: Call it.
3947         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
3948         (distfiles): Doesn't depend on config.log or config.cache.
3950 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
3952         * grog/grog.sh: Use print "" rather than print in END rule.
3954 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
3956         * tbl/main.cc (process_data): Don't give error for excess data
3957         entries that are comments.
3959 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
3961         * tbl/main.cc (process_data): Fix case where new for-scope rules
3962         silently change meaning of code.
3964 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
3966         * troff/env.cc (hyphenate): Loop over all consecutive sequences
3967         of non-zero hyphenation codes.
3969 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
3971         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
3973 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
3975         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
3977 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
3979         * tmac/tmac.andoc: Make it work in compatibility mode.
3981         * refer/token.h (token_info::is_range_sep): New function.
3982         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
3983         * refer/ref.cc (reference::output): More sophisticated check for
3984         multiple pages.
3986         * devps/prologue.ps (MANUAL): New procedure.
3987         * grops/ps.cc (main): New -m option.
3988         (usage): Include -m.
3989         (ps_printer::~ps_printer): Implement -m.
3991         * aclocal.m4 (GROFF_G): New macro.
3992         * configure.in: Call it.
3993         * Makefile.in (g): Provided by configure.
3995         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
3997         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
3998         translations.
4000         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
4001         (tmac_m, tmac_s): Deleted.
4002         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
4003         tmac_s_prefix): New variables.
4004         (MDEFINES): Change accordingly.
4005         * Makefile.comm (.man.n): Use new TMAC_* variables.
4006         * configure.in (GROFF_TMAC): Call.
4007         * aclocal.m4 (GROFF_TMAC): Define.
4008         * tmac/Makefile.sub (stamp_wrap): New target.
4009         (install_data, uninstall_sub): Handle macro wrapping.
4011 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
4013         * tbl/main.cc (main): Ignore -T option.
4015 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
4017         * devlj4/generate/special.map: Add definition of \(nb.
4019         * tmac/tmac.dvi: Add definition of \(nb.
4021         * troff/dictionary.c (dictionary::dictionary): association::v gets
4022         initialized by association::association.
4024         * tmac/Makefile.sub: Avoid using temporary files when installing.
4026         * troff/env.cc (environment::set_font): Make bad font number a
4027         warning.
4029         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
4031         * Makefile.in (datadir): Use share rather than lib.
4033         * groff/groff.cc (basename): Rename to xbasename.
4035 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
4037         * Makefile (CCLIBS): Don't use.
4038         * Makefile.ccpg: Likewise.
4040         * acgroff.m4: Rename to...
4041         * aclocal.m4: Modify extensively for autoconf 2.
4042         * configure.in: Likewise.
4043         * Makefile.in: Likewise.
4045         * groff/pipeline.c (const): Declare as empty if __STDC__ not
4046         defined.
4047         (xstrsignal): Check for definition of NSIG. Conditionalize
4048         on SYS_SIGLIST_DECLARED.  Make return type const.
4050 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
4052         * troff/input.cc (interpolate_macro): Rephrase missing space
4053         warning.
4055 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
4057         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
4058         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
4059         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
4060         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4061         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
4062         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
4063         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
4064         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
4065         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
4066         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
4067         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
4068         Fix 'for' scoping.
4070 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
4072         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
4073         string_iterator.
4074         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
4075         file.
4076         (macro_iterator::macro_iterator): Add additional argument.
4078 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
4080         * troff/div.cc (vertical_size::vertical_size): In place of integer
4081         specifying line spacing use cunits specifying post vertical
4082         space.
4083         (macro_diversion::output, top_level_diversion::output): Likewise.
4084         * troff/div.h: Change declarations accordingly.
4085         * troff/env.cc (pending_output_line): Replace ls field by post_vs
4086         field.
4087         (pending_output_line::pending_output_line,
4088         pending_output_line::output, environment::output,
4089         environment::output_line, environment::output_title,
4090         environment::hyphenate_line):  In place of
4091         integer specifying line spacing use cunits specifying post vertical
4092         space.
4093         (environment::environment): Add post_vertical_spacing and
4094         prev_post_vertical_spacing arguments.
4095         (environment::get_post_vertical_spacing): New function.
4096         (environment::total_post_vertical_spacing): New function.
4097         (environment::post_vertical_spacing): New function.
4098         (init_env_requests): Initialize pvs request and .pvs register.
4099         * troff/env.h: Change declarations.
4101 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
4103         * tmac/tmac.pspic: Immediately remove the temporary file.
4105 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
4107         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
4108         height is specified.
4110 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
4112         * tbl/table.c (struct vertical rule, class table_entry): Use int
4113         not short for start_row and end_row.
4115 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
4117         * troff/input.cc (trapping_blank_line, blank_line_macro): New
4118         functions.
4119         (diverted_space_node::reread, process_input_stack): Call
4120         trapping_blank_line() rather than blank_line().
4121         (init_input_requests): Bind "blm" to blank_line_macro().
4123         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
4125 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
4127         * troff/env.cc (environment::possibly_break_line): Require that
4128         width total excluding width of final space node be greater than
4129         the target text length.
4131 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
4133         * troff/node.cc (kern_pair_node::vertical_extent): New function.
4135 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
4137         * troff/node.cc (charinfo_node): New class.
4138         (glyph_node, composite_node): Derive from charinfo_node.  Change
4139         member functions accordingly.
4141 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
4143         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
4145 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
4147         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
4149         * devps/generate/textmap (notsubset): Add.
4151         * tmac/tmac.a4: New file.
4153 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
4155         * pic/main.cc (had_parse_error): New variable.
4156         (do_picture, do_whole_file): Set had_parse_error if yyparse()
4157         returns non-zero.
4158         (main): Return 1 if had_parse_error is true.
4160 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
4162         * grolj4/lj4.cc (main): Avoid use of strtoul.
4164 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
4166         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
4167         iso_8859_1 or $LESSCHARSET is latin1.
4169 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
4171         * hpftodit: New directory.
4172         * Makefile.in (CCPROGDIRS): Add hpftodit.
4173         * devlj4/generate: New directory.
4175 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
4177         * configure.in: Don't use AC_VFORK.
4178         * groff/pipeline.c (run_pipeline): Use fork() always.
4180 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
4182         * grops/ps.cc (main): Use %1 not %s in error message for -w.
4184         * Makefile.in (CCPROGDIRS): Add grolj4.
4185         (DEVDIRS): Add devlj4.
4186         * grolj4, devlj4: New directories.
4187         * tmac/troffrc: Handle lj4.
4188         * tmac/tmac.lj4: New file.
4190 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
4192         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
4194 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
4196         * troff/input.cc (do_if_request): At end of second string, switch
4197         environments before getting next token.
4199 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
4201         * devps/psstrip.sed: Split rule that strips whitespace on either
4202         side of delimiters.
4204 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
4206         * troff/node.h (font_family::make_definition): Add return value to
4207         declaration.  * troff/symbol.h (symbol::operator==,
4208         symbol::operator!=): Likewise.
4210 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
4212         * groff/groff.cc (main, help, synopsis): Handle -S.
4213         (possible_command::insert_arg): New function.
4215         * tmac/tmac.safer: New file.
4216         * tmac/msafer.man: New file.
4217         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
4219 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
4221         * pic/pic.h, pic/main.cc (safer_flag): New variable.
4222         * pic/pic.y (placeless_element): Avoid unsafe operations if
4223         `safer_flag' is set.
4224         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
4226 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
4228         * eqn/lex.cc (get_token): Put call to add_context() in block to
4229         work around Sun C++ 4.0 bug.
4231         * include/stringclass.h (operator +): Use ?: instead of `if' to
4232         work around Sun C++ 4.0 bug.
4234 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
4236         * tbl/main.cc (process_format): Accept - as a synonym for the _
4237         key letter.
4239         * libbib/index.cc (minus_one): Don't declare as const.
4241 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
4243         * troff/input.cc (get_char_for_escape_name): Push back a newline.
4245 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
4247         * troff/input.cc (write_macro_request): New function.
4248         (init_input_requests): Bind write_macro_request to writem.
4250 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
4252         * tmac/tmac.s (@EN): Turn filling back on even if there was no
4253         equation.
4255         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
4257         * tmac/tmac.s (@TS): Renamed from TS.
4258         (TS): Call LP then TS again.
4259         (cov*ab-init): Alias @TS to TS.
4261         * tmac/tmac.s: Allow QP or RS to initialize.
4263         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
4264         Move initializations of PS and LL here.
4265         (par@init): Don't initialize HY.  Avoid changing environment 0.
4266         (par*env-init): Don't all par@reset.
4268 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
4270         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
4272 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
4274         * Makefile.in (MDEFINES): Add LDFLAGS.
4275         (LDFLAGS): Add definition line.
4277 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
4279         * troff/input.cc (get_optional_char): Split off error check into...
4280         (check_missing_character): New function.
4281         * troff/token.h: Declare it.
4282         * troff/env.cc (margin_character): Don't call get_optional_char.
4283         Only call tok.next() after making the node.
4285         * include/lib.h (getopt): Make 2nd argument char *const *.
4287 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
4289         * nroff/conftest.sh: Deleted.
4291 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
4293         * pic/make-dos-dist: Deleted.
4295 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
4297         * devps/psstrip.sed: Strip comments before stripping trailing
4298         white space.
4300 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
4302         * Version 1.09 released.
4304 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
4306         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
4308 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
4310         * libgroff/font.cc (font::load_desc): Fix typo in error message.
4312 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
4314         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
4315         about returning without a value.
4317         * troff/charinfo.h (charinfo::get_special_translation): Cast
4318         TRANSLATE_NONE to int.
4320         * refer/token.cc (lookup_token, store_token): Remove bogus loop
4321         test.  Fix test so that it works with n unsigned.
4323         * pic/pic.y (defaults_table): Fully bracket initializer.
4324         * pic/lex.cc (lookup_keyword): Likewise.
4325         * eqn/lex.cc (token_table, def_table): Likewise.
4326         * eqn/box.cc (param_table): Likewise.
4327         * troff/input.cc (warning_table): Likewise.
4328         * libgroff/font.cc (table): Likewise.
4329         * grops/ps.cc (ps_printer::special): Likewise.
4330         * grops/psrm.cc (resource_manager::process_file): Likewise.
4331         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
4332         * refer/command.cc (command_table): Likewise.
4333         * addftinfo/addftinfo.cc (param_table): Likewise.
4335         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
4336         about temp's being unused.
4337         (unused): New function.
4339         * groff/pipeline.cc: Declare c_fatal.
4341         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
4342         uchar.
4344         * libbib/index.cc (index_search_item::load): Prevent compiler
4345         warnings about fd_closer's being unused.
4346         (unused): New function.
4348 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
4350         * troff/input.cc (copy_mode_error): Make `prefix' static.
4351         Fix typo.
4353         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
4354         defined.
4355         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
4356         HAVE_CC_OSFCN_H and modify accordingly.
4358         * troff/input.cc (init_charset_table): radicalex overlaps
4359         horizontally.
4361         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
4362         udodo!hans@relay.NL.net).
4363         * groff/configure.in: Call it.
4365         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
4366         * groff/configure.in: Call it.
4367         * include/lib.h: Conditionalize declaration of pclose.
4369         * troff/div.cc (last_page_number): New global variable.
4370         (top_level_diversion::begin_page): Exit if we just printed the
4371         last page.
4372         * troff/div.h (last_page_number): Declare it.
4373         * troff/input.cc (parse_output_page_list): Set last_page_number.
4375         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
4376         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
4377         tmac/tmac.X: Likewise.
4378         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
4379         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
4381 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
4383         * tmac/doc-ditroff (hK): Remove groff specific code which
4384         prevented page-breaks between separate manual entries.  If this is
4385         the first page, don't set the page number to 1.
4387         * acgroff.m4 (GROFF_POSIX): New macro.
4388         * configure.in: Use it.
4390         * troff/node.cc (class real_output_file,
4391         real_output_file::real_output_file,
4392         real_output_file::~real_output_file): Conditionalize use of
4393         popen/pclose on POPEN_MISSING.
4394         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
4395         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
4396         (pipe_source): Similarily.
4398         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
4400         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
4401         presence of declarations by trying to compile example with
4402         conflicting declarations.  (gcc only gives a warning for missing
4403         declarations.)
4405 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
4407         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
4408         (from Ulrich Lauther).
4410 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
4412         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
4414 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
4416         * indxbib/indxbib.cc (write_hash_table): Add code for case where
4417         pointers and ints have different sizes.
4419 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
4421         * tmac/tmac.s (par*env-init): Call par@reset.
4423 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
4425         * tmac/tmac.s (@IP): Switch to a new environment when diverting
4426         tag.
4427         (par*push-tag-env, par*pop-tag-env): New macros.
4429 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
4431         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
4432         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
4434         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
4435         comment.  Include <time.h>.
4437 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
4439         * grops/ps.cc (is_small_h, is_small_v): Deleted.
4440         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
4441         lines.
4443 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
4445         * troff/input.cc (read_request): Only print a prompt if reading
4446         from the terminal.  Also clearerr on EOF if reading from the
4447         terminal.  Declare isatty.
4449 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
4451         * refer/label.y: Rename map_t to map_func and extractor_t to
4452         extractor_func.
4454 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
4456         * include/assert.h: Don't use volatile.
4457         * libgroff/assert.cc: Likewise.
4459 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
4461         * troff/input.cc (abort_request): Look at character in tok before
4462         calling get_copy().
4464 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
4466         * troff/troff.h (NO_RETURN): Deleted.
4467         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
4468         * troff/input.cc (exit_troff): Likewise
4470         * Makefile.in: Remove `Making ...' messages since GNU make now
4471         gives these. 
4473         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4475 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
4477         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
4478         to constant 1 inch.
4480 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
4482         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
4484 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
4486         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
4487         MARK_REG if there was no left delimiter.
4489 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
4491         * pic/troff.cc (troff_output::text): Set line thickness to
4492         relative before outputting text.
4494         * tmac/tmac.e (@k): Don't zero ?T.
4495         ((z): Likewise.
4497 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
4499         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
4501 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
4503         * troff/input.cc (decode_args): Warn about unquoted tabs (from
4504         Paul Eggert).
4506 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
4508         * troff/input.cc (ignoring): New variable.
4509         (ignore): Set ignoring during call to do_define_macro.
4510         (do_define_macro): Clear ignoring before interpolating terminating
4511         macro.
4512         (copy_mode_error): New function.
4513         (get_char_for_escape_name, read_long_escape_name,
4514         interpolate_arg): Use copy_mode_error.
4515         (warning_table): Add WARN_IG.
4516         * troff/troff.h (WARN_IG): Declare.
4517         (WARN_TOTAL): Change accordingly.
4519         * groff/pipeline.c (strsignal): Rename to xstrsignal.
4520         * groff/groff.cc (strsignal): Delete declaration.
4522 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
4524         * troff/div.cc (page_offset): Use 'm' as default scaling.
4526 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
4528         * nroff/nroff.sh: Ignore -u.
4530 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
4532         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
4534 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
4536         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
4537         drawing box.
4538         (B2): With -Tascii, leave additional vertical space before
4539         and after. Ensure that the left and right indent is restored to
4540         what it was even if the point size changes.  Don't call
4541         par@finish. Change the indent, line length and title length
4542         directly.  With -Tascii, make the width of the box 1n less.
4543         (B1): Remember 1n at the current point size.  Don't call
4544         par@reset.  Change the indent, line length and title length
4545         directly.  Ensure that the temporary indent is preserved.
4546         (par*box-mark-top): Turn off no spacing mode.
4548 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
4550         * Makefile.in (dist): Use .gz suffix.
4552 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
4554         * troff/input.cc (main): Add return 0.
4555         * pic/main.cc (main): Use return instead of exit.
4556         * tbl/main.cc (main): Likewise.
4557         * eqn/main.cc (main): Likewise.
4558         * grops/ps.cc (main): Likewise.
4559         * grotty/tty.cc (main): Likewise.
4560         * groff/groff.cc (main): Likewise.
4561         * grodvi/dvi.cc (main): Likewise.
4562         * refer/refer.cc (main): Likewise.
4563         * indxbib/indxbib.cc (main): Likewise.
4564         * lkbib/lkbib.cc (main): Likewise.
4565         * soelim/soelim.cc (main): Likewise.
4566         * addftinfo/addftinfo.cc (main): Likewise.
4567         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
4568         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
4570         * troff/token.h (process_input_stack): Don't declare as static.
4571         * troff/input.cc: Likewise.
4573         * troff/node.c (invalidate_fontno): Make it a static member of
4574         class font_family.  Change callers.
4575         * troff/node.c: Change declaration.
4577         * tbl/main.cc (struct input_entry_format): Add explicit public
4578         specifier.
4579         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
4580         struct double_hline_stuff): Likewise.
4581         * tbl/table.h (struct entry_format): Likewise.
4582         * pic/object.h (struct saved_state): Likewise.
4584         * include/stringclass.h: Add forward declarations of friend
4585         functions that are later declared as inline.  Don't include inline
4586         specifier in friend declaration.
4588         * libgroff/lib.h: Declare popen and pclose.
4589         * acgroff.m4 (GROFF_POPEN): New macro.
4590         * configure.in: Call it.
4592         * include/lib.h (PI): New constant. Undef first if necessary.
4593         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
4594         * grops/ps.cc (degrees, radians): Likewise.
4595         * libgroff/font.cc (font::get_skew): Likewise.
4597         * grops/ps.cc (is_ascii): New function.
4598         (ps_output::put_string): Use is_ascii.  Use csprint rather than
4599         isprint.
4600         (ps_printer::define_encoding): Use csspace.
4601         * libgroff/strtol.c (ISASCII): New macro.
4602         (strtol): Cast arguments to is*() and tolower() to unsigned char.
4603         Use ISASCII rather than isascii.
4604         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
4605         * libgroff/cset.cc: Likewise.
4606         * libdriver/input.cc: Include cset.h.
4607         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
4608         than isdigit().
4610         * refer/refer.cc (main): Use %ld rather than %d for longs.
4612         * libbib/index.cc (index_search_item_iterator::get_tag): Use
4613         S_ISREG macro.
4615         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
4617 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
4619         * troff/input.cc (hyphenation_code): Skip white space between
4620         char/code pairs.
4622 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
4624         * tbl/table.h (table::entry_list_tailp): New member.
4625         (table::table): Initialize it.
4626         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
4627         behaviour.
4629 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
4631         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
4632         with negative horizontal positions. Remove casts of glyph::hpos to
4633         int.
4634         (USHRT_MAX): Delete definition.
4635         (SHRT_MAX, SHRT_MIN): New definitions.
4636         (glyph::hpos): Change type to short.
4637         (tty_printer::end_page): Output multiple backspaces if necessary.
4638          Remove casts of glyph::hpos to int.
4639         
4640 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
4642         * tmac/tmac.s (@RT): New definition.
4644 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
4646         * refer/refer.cc (do_file): Make sure current_filename is set when
4647         filename is "-".
4649         * pic/common.cc (common_output::dot_line): Handle zero length
4650         lines.
4652 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
4654         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
4655         (par@init): Initialize \n[HY].
4657 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
4659         * troff/dictionary.cc (dictionary::remove): Continue when
4660         r < j < i.
4662 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
4664         * Makefile.com (.y.cc): Avoid ending up with two versions of
4665         $(YTABH).
4667 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
4669         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
4670         (\(,C): Likewise.  Also fix typo.
4672 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
4674         * lib.h: Delete extraneous semi-colon.
4676         * Add pso request: `so' from a pipe.
4677         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
4678         (file_iterator::close): New function.
4679         (file_iterator::~file_iterator, file_iterator::next_file): Use
4680         file_iterator::close.
4681         (file_iterator::backtrace): Say `process' rather than `file' when
4682         the stream is popened.
4683         (pipe_source): New function.
4684         (init_input_requests): Bind ".pso" to pipe_source.
4686 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
4688         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
4690         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
4691         digits in lower case.
4693 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
4695         * Version 1.08 released.
4697         * Makefile.in (dist): Insert || true after ln -s commands that
4698         might fail.
4700         * mm: Update to mm 1.16.
4702         * acgroff.m4 (GROFF_CSH_HACK): New macro.
4703         * configure.in: Call GROFF_CSH_HACK.  Substitute for
4704         SH_SCRIPT_SED_CMD.
4705         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
4706         MDEFINES.
4707         * nroff/Makefile.sub (nroff): New target.
4708         (install_data): Install nroff.
4709         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
4710         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
4712 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
4714         * eqn/Makefile.sub (neqn): Add chmod +x.
4716         * grog/Makefile.sub (grog): Remove spurious semi-colon.
4718 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
4720         * troff/input.cc (string_iterator::string_iterator()): Initialize
4721         lineno and count.
4723 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
4725         * troff/div.cc (macro_diversion::space,
4726         top_level_diversion::space): Don't set high_water_mark.
4727         (macro_diversion::output, top_level_diversion::output): Don't
4728         include post line space in high water mark.
4730 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
4732         * eqn/eqn.y: Don't define YYDEBUG.
4733         * pic/pic.y: Likewise.
4735 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
4737         * tmac/tmac.e ([3): Add space after comma following editors.
4738         Change double spaces to single spaces.
4739         ([4): Change double spaces to single spaces.
4741         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
4742         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
4743         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
4744         after %!PS-Adobe- (for Newsprint).
4746         * troff/div.cc (top_level_diversion::begin_page): When
4747         before_first_page is 1, set page_number to 1.
4749 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
4751         * eqn/box.cc (box::top_level): Protect equation with \&.
4753 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
4755         * groff/groff.cc (possible_command::set_name): Delete old name.
4757         * groff/groff.cc (possible_command::~possible_command): Use
4758         a_delete.
4760         * troff/node.cc (troff_output_file::begun_page): New member.
4761         (troff_output_file::troff_output_file): Initialize it.
4762         (troff_output_file::really_begin_page): Only output V command if a
4763         page has been begun.
4765         * pic/pic.y (placeless_element): Delete argument to PRINT after
4766         use.
4768 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
4770         * Make wrapman work.
4771         * troff/div.h (class top_level_diversion): Replace
4772         first_page_begun by before_first_page (with opposite sense).
4773         * Change first_page_begun to before_first_page inverting sense.
4774         * troff/div.cc (class nl_reg): New class.
4775         (init_div_requests): Use class nl_reg for \n(nl.
4776         (top_level_diversion::begin_page): Don't call
4777         output_file::begin_page if before_first_page is 2;
4778         reset before_first_page afterwards.  If have_next_page_number is
4779         false, then always increment page_number.
4780         * tmac/tmac.an: Set traps within TH rather than at the top-level.
4781         Restore compatibility mode after loading, and then disable
4782         compatibility mode in TH.
4784 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
4786         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
4787         past last line.
4788         * troff/node.h (output_file::trailer): Declare.
4789         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
4790         * troff/node.cc (output_file::trailer): New function.
4791         (troff_output_file::~troff_output_file): Move most code into...
4792         (troff_output_file::trailer): New function.
4793         (class troff_output_file): Delete page_length member. Declare
4794         trailer().
4795         (troff_output_file::really_begin_page): Use current page length
4796         for final V command.
4798         * tbl/main.cc (struct options): New decimal_point_char member.
4799         (options::options): Initialize this.
4800         (process_options): Implement decimalpoint option.
4801         (process_data): Pass decimal_point_char option to table::table.
4802         * tbl/table.h (class table): New decimal_point_char member.
4803         (table::table): Add additional argument.
4804         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
4805         second argument specifying decimal point character.  Use this
4806         instead of '.'.
4807         (table::table): Initialize decimal_point_char.
4808         (table::add_entry): Change call to find_dot.
4810         * troff/input.cc (get_copy, token::next): Implement \V.
4811         (interpolate_environment_variable): New function.
4813 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
4815         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
4816         * pic/pic.y: Likewise.
4818         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
4819         Add casts to int.
4820         * refer/ref.cc (reference::insert_field, reference::delete_field):
4821         Likewise.
4822         * troff/number.cc (parse_term): Likewise.
4824         * acgroff.m4 (GROFF_PROG_YACC): New macro.
4825         * configure.in: Use GROFF_PROG_YACC.
4827         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
4828         and g++.
4829         * Makefile.in (OPTIMIZE): New define.
4830         (DEBUG): Empty by default.
4831         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
4833         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
4834         (GROFF_ARRAY_DELETE): Likewise.
4835         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
4837         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
4839         * devps/psstrip.sed: Use different delimiter on last line (so that
4840         it works with BSD 4.4 sed.)
4842 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
4844         * devps/psstrip.sed: Delete comments.
4846         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
4847         optind, opterr, optarg.
4848         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
4849         opterr, optarg.
4851 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
4853         * Makefile.in (check): Dummy target.
4855 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
4857         * Version 1.07 released.
4859         * Integrate mm 1.11.
4861         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
4862         where start_col was meant.
4864 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
4866         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
4868 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
4870         * troff/input.cc (token::next): Make \z\o'...' and similar things
4871         work.
4873         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
4874         constants.
4875         (environment): Add margin_character_flags member.
4876         * env.cc (environment::environment(symbol),
4877         environment::environment(const environment *): Initialize
4878         margin_character_flags.
4879         (margin_character): Rewrite.
4880         (environment::output_line): Add a margin character if
4881         margin_character_flags is non-zero.  Turn off the
4882         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
4883         zero, use margin_character_node without copying and then set
4884         margin_character_node to 0.
4886         * devps/DESC.in: Change minimum size to 1000.
4888 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
4890         * troff/symbol.h (symbol::hash): Change return type to unsigned
4891         long.
4892         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
4893         Add casts to int.
4895         * test-groff: Use -r rather than -x.
4897         * grops/psfig.diff: Include in distribution again.
4899 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
4901         * Makefile.in (dist): Use gzip.
4903 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
4905         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
4906         unistd.h as well as in stdlib.h.
4907         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
4908         defined; otherwise include <sys/types.h> and <unistd.h> if
4909         UNISTD_H_DECLARES_GETOPT is defined.
4911         * configure.in: use builtin(include, ... rather than include(...
4912         * configure: Regenerate with autoconf 1.3.
4914         * libdriver/print.cc (printer::adjust_arc_center): Use new
4915         algorithm suggested by Andy Fyfe.
4917         * libdriver/printer.cc (printer::adjust_arc_center): New function.
4918         * include/printer.h: Declare this.
4919         * grops/ps.cc (ps_printer::draw): Use it.
4920         * grodvi/dvi.cc (dvi_printer::draw): Use it.
4922 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
4924         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
4926 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
4928         * eqn/main.cc (main): Handle "eqn -".
4930 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
4932         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
4934         * mm: Integrate version 1.08.
4936         * pic/troff.cc (troff_output::finish_picture): Set
4937         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
4938         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
4939         if it's not defined. Check whether the register is non-zero rather
4940         than whether it's not defined.
4941         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
4943         * indxbib/indxbib.cc: Move all signal handling into...
4944         * indxbib/signal.c: New file.
4945         * configure.in: Call AC_RETSIGTYPE.
4947         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
4948         * configure.in: Call GROFF_STRUCT_EXCEPTION.
4949         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
4951         * troff/input.cc (token::token, token::operator=): Work round SGI
4952         C++ bug.
4953         * pic/object.cc (position::position): Likewise.
4955 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
4957         * pic/pic.h: Move declaration of hypot().
4959 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
4961         * pic/pic.h: Declare hypot().
4963         * pic/pic.h: Define M_PI if necessary.
4965 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
4967         * tmac/tmac.e (re): Add alternative version that doesn't use groff
4968         `.ta T' feature.
4970         * devps/prologue.ps (RE): Handle the possibility that the old font
4971         doesn't have a FontName entry.
4973 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
4975         * tmac/tmac.e (fam): Redefine to set family in environment 2.
4976         (@C): Use @fam not fam.
4978 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
4980         * lookbib/lookbib.cc (main): Change type of start to const char *.
4981         * lkbib/lkbib.cc (main): Likewise.
4983         * eqn/lex.cc (definition::definition): Don't use member
4984         initializer syntax for members of anonymous unions.
4986         * troff/input.cc (input_stack::backtrace): Change type of to const
4987         char *.
4989 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
4991         * include/stringclass.h (class string): Declare inline friend
4992         functions as inline in class declaration.
4993         * troff/hvunits.h (class hunits, class vunits): Likewise.
4994         * include/refid.h (class reference_id): Likewise
4995         * troff/troff.h (points_to_units(units), scale(units, double)):
4996         Delete declarations.
4997         * libdriver/input.cc (get_char): Delete declaration.
4998         * include/lib.h: Change 2nd argument of getopt from const char **
4999         to char **.
5000         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
5001         char **' before assigning to a `const char **'.
5002         * tbl/table.cc: Delete extra declarations of prints().
5004 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
5006         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
5007         char **' before assigning to a `const char **'.
5009         * libgroff/errarg.cc (errarg::errarg): Don't use member
5010         initializer syntax for members of anonymous unions.
5012 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
5014         * mm: Integrate version 1.07.
5016 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
5018         * troff/input.c (translate2): Rename to
5019         (translate_no_transparent).
5020         (init_input_requests): Rename tr2 to trnt.
5022 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
5024         * troff/charinfo.h (class charinfo): Add transparent_translate field.
5025         (charinfo::set_translation, charinfo::set_special_translation):
5026         Add second argument that specifies value for
5027         transparent_translate.
5028         (charinfo::get_translation, charinfo::get_special_translation):
5029         Add optional second argument that specifies whether translation is
5030         being used for transparent throughput.
5031         * troff/input.cc (charinfo::set_translation,
5032         charinfo::set_special_translation): Handle second argument.
5033         (charinfo::charinfo): Initialize transparent_translate.
5034         (translate): Split main part off into
5035         (do_translate): New function.  Pass argument saying whether
5036         translation applies to transparent throughput.
5037         (translate2): New request.
5038         (init_input_requests): Bind translate2 to `tr2'.
5040 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
5042         * tbl/table.h (class table): Add `nokeep' flag.
5043         * tbl/main.cc (process_options): Handle `nokeep' option.
5044         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
5045         table::do_bottom): Don't output keep/release macro definitions or
5046         calls when `nokeep' option has been specified.
5048 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
5050         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
5052 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
5054         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
5055         block_entry::divert, alphabetic_block_entry::divert): Add extra
5056         argument giving column separation.
5057         (table::compute_widths): Pass column separation to
5058         table_entry::divert().
5059         (block_entry::do_divert): If an entry spans multiple columns and a
5060         minimumum width has been specified for each column, then set the
5061         line length to the sum of the widths (plus possibly the column
5062         separations).
5064         * troff/input.cc (set_escape_char): Don't set the escape_char
5065         until after calling has_arg().
5067 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
5069         * tbl/table.cc (table::do_top): Add missing \s0 for double box
5070         case.
5072         * tbl/table.cc (table::print_double_hline): Avoid extra new line
5073         in case where r > nrows - 1.
5075         * tbl/table.cc (BODY_HEIGHT): Deleted.
5076         (LINE_SEP): New definition.
5077         (table::print_single_hline, table::print_double_hline,
5078         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
5079         table::do_row, table::do_top): Use LINE_SEP space before a line
5080         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
5082         * tbl/table.cc (text_entry::print_contents): New function.
5083         (text_string_name, right_text_string_name): Deleted.
5084         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
5085         (simple_text_entry::do_width, numeric_text_entry::do_width,
5086         alphabetic_text_entry::do_width): Don't store the contents of the
5087         entry in a string.
5088         (left_text_entry::simple_print, right_text_entry::simple_print,
5089         center_text_entry::simple_print,
5090         alphabetic_text_entry::simple_print,
5091         numeric_text_entry::simple_print): Print the entry directly
5092         instead of using the stored string.
5094 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
5096         * devps/Makefile: Strip PostScript files.
5097         * devps/prologue: Rename to...
5098         * devps/prologue.ps.
5099         * devps/psstrip.sed: New file.
5100         * devps/download: Use .pfa rather than .ps for installed versions
5101         of fonts.
5103 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
5105         * troff/env.cc (input_trap): Give a warning if the argument is out
5106         of range.
5108         * troff/env.cc (adjust): Treat negative argument as missing. Round
5109         argument > 5 down to 5.
5111         * troff/env.cc (center, right_justify): Make negative argument zero.
5113         * troff/div.cc (page_offset, vertical_position_traps): Treat
5114         invalid argument as missing.
5115         * troff/env.cc (line_spacing, line_length, title_length, indent,
5116         underline, hyphen_line_max_request, control_char,
5117         no_break_control_char, widow_control_request, adjust, input_trap,
5118         point_size): Likewise.
5119         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
5120         constant_space): Likewise.
5121         * troff/input.cc (compatible, shift, warn_request,
5122         set_escape_char): Likewise.
5124         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
5125         * tbl/table.cc (table::table): Likewise.
5127         * Makefile.dev (install_dev): depends on $(DEVFILES).
5129 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
5131         * devX75, devX75-12, devX100, devX100-12: New directories.
5132         * Makefile.in: Add these to DEVDIRS.
5134         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
5135         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
5136         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
5137         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
5138         targets.
5139         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
5140         (uninstall): New target.
5141         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
5142         uninstall_prog, uninstall_dev): New targets.
5144         * troff/div.cc (return_request): Treat an invalid argument as
5145         missing.
5147 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
5149         * tmac/tmac.e ((f): Set up the environment even when there's a
5150         current diversion.  Transperently throughput a call to @N.
5151         (@N): New macro.
5153 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
5155         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
5156         up to vertical resolution.
5158         * tbl/table.cc (table::do_row): Change row number after printing
5159         stuff list.
5161         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
5163 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
5165         * Rename CHANGES to NEWS.
5167 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
5169         * libgroff/new.cc (operator new): Avoid calling malloc(0).
5171 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
5173         * man.ultrix: Removed.
5175 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
5177         * Makefile.comm (extraclean): Delete files whose names begin with
5178         `='.
5180         * pic/troff.cc (troff_output::text): Fix typo in implementation of
5181         aligned text.
5183 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
5185         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
5186         * troff/div.cc (page_length, need_space, space_request): Treat
5187         invalid optional argument as missing.
5188         * troff/env.cc (number_lines): If the first argument is present
5189         but not a number, turn on line numbering, don't change the next
5190         line number and parse the remaining arguments.
5192         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
5194 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
5196         * eqn/box.h: Change declaration accordingly.
5197         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
5198         the specified size was bad but don't give an error.  Check for
5199         overflow.
5200         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
5201         * eqn/lex (do_size): Likewise.
5203 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
5205         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
5206         compatible headers.
5208 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
5210         * tbl/table.cc (table::init_output): Improve error message when
5211         table won't fit on one page.
5213 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
5215         * pic/troff.cc (troff_output::start_picture): Generate line
5216         containing a horizontal motion equal to the width of the picture.
5218         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
5219         using GROFF_COMMAND_PREFIX environment variable.
5221 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
5223         * mdate.sh: Use $NF rather than $(NF).
5225 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
5227         * pic/main.cc (main):  Use %1 not %c in argument to warning.
5229         * eqn/main.cc (main): Output code to check that geqn was given the
5230         correct -T option.
5232 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
5234         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
5235         `ln -s ../Makefile .; make; rm -f Makefile'.
5237         * troff/hyphen: Rename to...
5238         * troff/hyphen.us:
5239         * troff/input.cc (main): Delete -H option. Don't call
5240         read_hyphen_file().
5241         * troff/env.cc: Include searchpath.h and macropath.h.
5242         (exception_dictionary): Deleted.
5243         (ht): Deleted.
5244         (read_hyphen_file): Deleted.
5245         (hyphenation_language): New struct.
5246         (class trie, class hyphen_trie): Move declarations up.
5247         (trie_node::~trie_node): Deleted.
5248         (trie::delete_trie_node): New function.
5249         (trie::do_delete): New pure virtual function.
5250         (hyphen_trie::do_delete): New function.
5251         (trie::~trie): New function.
5252         (hyphen_trie::~hyphen_trie): New function.
5253         (trie::clear): No need to chcek that tp is not 0.
5254         (current_language, language_dictionary): New variables.
5255         (hyphen_word): Give an error if no current language.  Use
5256         exceptions dictionary in current language.
5257         (hyphen_trie::read_patterns_file): Find file using macro_path.
5258         Allow comments (starting with %) in patterns file.  Don't make it
5259         a fatal error if the file can't be found.
5260         (hyphenate): Return if no current language.  Get the exceptions
5261         dictionary and the hyphenation patterns from the current language.
5262         (set_hyphenation_language): New variable.
5263         (hyphenation_patterns_file): New function.
5264         (hyphenation_language_reg): New class.
5265         (hyphenation_language_reg::get_string): New function.
5266         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
5267         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
5268         register.
5269         * groff/groff.cc (main, help, synopsis): Delete -H option.
5270         * include/Makefile.sub: Don't define HYPHENFILE.
5271         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
5272         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
5273         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
5274         hyphenation patterns.
5276 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
5278         * eqn/neqn.sh: New file.
5279         * eqn/Makefile.sub: Handle neqn.sh.
5281         * eqn/eqn.h: Declare `nroff' variable.
5282         * eqn/box.cc (param_table): Add `nroff' param.
5283         (nroff): Define it.
5284         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
5285         variable.
5286         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
5288         * troff/troff.h (WARN_FONT): New warning.
5289         (WARN_TOTAL): Change accordingly.
5290         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
5291         (warning_table): Add WARN_FONT.
5292         * troff/node.cc (mount_font_no_translate): Pass argument to
5293         font::load_font.  If this is non-zero, give a warning.
5294         Don't give an error message when accessing a font that has already
5295         been found to be invalid.
5296         * include/font.h (font::load, font::load_font): Add additional
5297         optional argument which suppresses error message if the font is
5298         not found.
5299         * libgroff/font.cc (font::load_font): Handle additional argument.
5300         (font::load): Add additional argument. If this is non-null, set it
5301         to 1 and don't give error message.
5303         * include/printer.h (printer::end_page): Add argument giving
5304         length of page.
5305         * libdriver/input.cc (do_file): Pass this.
5306         * grops/ps.cc (ps_printer::end_page): Add argument.
5307         * grodvi/dvi.cc (dvi_printer::end_page,
5308         draw_dvi_printer::end_page): Add argument.
5309         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
5310         columns_per_page members. New member nlines.
5311         (DEFAULT_LINES_PER_PAGE): Deleted.
5312         (tty_printer::tty_printer): Don't compute lines_per_page from
5313         font::paperlength. Don't compute columns_per_page from
5314         font::paperwidth.
5315         (tty_printer::add_char): Don't check horizontal position against
5316         columns_per_page. Grow glyphs vector if neccessary.
5317         (tty_printer::end_page): Add argument giving page_length in units.
5318         Discard lines past end of page.
5320 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
5322         * tmac/tmac.tty-char: Fix definition of \(/l.
5324         * tmac/tmac.X: Define \(en.
5326 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
5328         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
5329         lpq, then use lp rather than lpr.
5331         * tmac/tmac.s (par@reset): Don't call `ad'.
5332         (par*env-init): Call `ad'.
5334 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
5336         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
5337         date.
5339         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
5340         * indxbib/indxbib.cc: Likewise.
5342 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
5344         * libgroff/putenv.c: New file.
5345         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
5346         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
5347         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
5348         stdlib.h with AC_HAVE_HEADERS.
5350 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
5352         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
5353         does not exist.
5355 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
5357         * eqn/box.cc (gsize): Make it an int.
5358         (set_gsize): Parse argument handling increment or decrement.
5359         (box::top_level): Convert gsize to a string.
5361         * troff/input.cc (exit_troff): Make buf unsigned char [].
5362         Call to make_temp_iterator casts buf to char*.
5364         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
5366         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
5367         * Makefile.cpg (depend.temp): Likewise.
5369         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
5371         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
5373 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
5375         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
5377 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
5379         * Version 1.06 released.
5381         * Integrate mm 1.04.
5383 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
5385         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
5387 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
5389         * afmtodit/afmtodit.pl: Add -n option that disables generation of
5390         ligatures command.
5391         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
5392         afmtodit. Regenerate.
5394         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
5395         @f back past the current position.
5397         * tmac/tmac.e: Change calls to @R so that comments are not part of
5398         arguments.
5400 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
5402         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
5404         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
5405         check that we can link a call to a function declared in <stdio.h>.
5406         (GROFF_UNISTD_H): New macro.
5407         * configure.in: Call it.
5408         * Makefile.in: Document it.
5409         * include/posix.h: New file.
5410         * troff/troff.h: Don't include <osfcn.h>
5411         * troff/input.cc: Include posix.h.
5412         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
5413         osfcn.h.
5414         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
5415         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
5416         <fcntl.h>.
5417         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
5418         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
5419         * libbib/search.cc (O_RDONLY): Delete definition.
5420         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
5421         Don't include <osfcn.h>.
5423         * acgroff.m4 (GROFF_TIME_T): New macro.
5424         * configure.in: Call it.
5425         * Makefile.in: Document it.
5427         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
5428         * configure.in: Call it.
5429         * Makefile.in: Document -DTRADITIONAL_CPP.
5430         * include/ptable.h: Don't include generic.h.
5431         (name2): Define it.
5433         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
5434         Afterwards remove [T1 and [T2.
5435         (ref*spec!0, ref*spec!2): Use T1 rather than T.
5436         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
5437         (ref*add-T2): Renamed from ref*add-T.
5438         (ref*add-T1): New macro.
5440 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
5442         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
5444         * libbib/index.cc: Include <fcntl.h>.
5445         (O_RDONLY): Define if necessary.
5446         (make_index_search_item, index_search_item_iterator::get_tag,
5447         index_search_item::check_files): Use O_RDONLY.
5448         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
5449         (O_RDONLY): Define if necessary.
5450         (search_list::add_file): Use O_RDONLY.
5451         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
5452         <sys/stat.h>.
5453         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
5454         (main): Use these.
5456         * libbib/index.cc (S_ISREG): Define it if necessary.
5457         (index_search_item::load): Use S_ISREG.
5459         * include/driver.h: Include <errno.h>.
5461 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
5463         * eqn/box.cc (body_height): Increase default value to 85.
5464         (body_depth): Increase default value to 35.
5466 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
5468         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
5469         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
5470         protected from expansion with \E.
5472         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
5474         * Makefile (Makefile): New target.
5476         * Makefile.sub (configure, distfiles): New targets.
5478         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
5479         construct.
5481 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
5483         * eqn/box.cc (param_table): Add body_height and body_depth.
5485         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
5487 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
5489         * psbb/Makefile.sub: Don't link with libgroff.a.
5491         * acgroff.m4 (GROFF_PUTENV): New macro.
5492         * configure.in: Call GROFF_PUTENV.
5493         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
5494         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
5495         is defined.
5497         * troff/env.cc (distribute_space): Rename force_forward argument
5498         to force_reverse.  Reverse the list if force_reverse is true.
5500 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
5502         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
5504         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
5505         height or depth to be negative.  Guard against SUP_RAISE quantity
5506         being negative.
5508 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
5510         * devps/generate/textmap: Add `an' (arrowhorizex).
5511         * tmac/tmac.ps: \(an overlaps horizontally.
5512         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
5514         * devps/symbolchars: Add arrowverttp, arrowvertbt.
5515         * devps/textmap: Add arrowvertex.
5516         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
5517         updownarrow delimiters.
5518         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
5520         * tbl/table.cc (simple_entry::position_vertically,
5521         block_entry::position_vertically):  For a centered entry, perform
5522         the motion in two stages.
5524         * refer/refer.cc (split_punct): Don't call lookup_token if there
5525         is no token.
5527 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
5529         * troff/input.cc (token::next): Delete token_node after copying
5530         token.
5532         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
5533         cur_point_size.
5535         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
5537         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
5539 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
5541         * grops/ps.cc (usage): -b option takes an argument.
5543         * devps/prologue (PLG): New procedure.
5544         * grops/ps.cc (main, usage): New -g option.
5545         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
5546         length using PLG.
5548 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
5550         * include/cset.h: Include <limits.h> if we have it.
5552         * libgroff/illegal.cc: New file.
5553         * include/lib.h (illegal_input_char): Use table.
5554         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
5555         * pic/lex.cc (ARG1): Renumber to 14.
5556         * eqn/lex.cc (ARG1: Likewise.
5558         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
5559         (eg 1.05.90) correctly.
5561 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
5563         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
5564         Rename $r and $R registers to $v and $V.
5565         ($r, $R): Initialize to 0.
5566         (@v, @V): New macros.
5567         (sz): Call @v.
5568         (@M): Call @V.
5570         * troff/input.cc (main, usage): Add -R option that says not to
5571         load troffrc.
5572         * eqn/main.cc (main, usage): Rename -n to -R.
5574 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
5576         * devps/DESC.in: Leave font positions 5-9 blank.
5577         * devdvi/DESC.in: Likewise.
5579         * grog/grog.pl: Handle `.PS <file' correctly.
5581         * troff/input.cc (input_stack::push): Improve error message when
5582         input stack limit exceeded.
5584 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
5586         * refer/refer.cc (main): Fix typo in handling of `a' option.
5588         * refer/refer.cc (do_bib): In state START after a newline remain
5589         in state START.
5591         * groff/groff.sh: Deleted.
5592         * groff/Makefile.sub: Delete handling of groff.sh.
5594         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
5595         to determine whether to use \X'ps:...'.
5596         * tmac/troffrc: Set 0p register to 0.
5597         * tmac/tmac.ps: Set 0p register to 1.
5599         * groff/groff.cc: Support -X option. Give warning for -TXps and
5600         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
5601         * tmac/troffrc: Support -r.X=1.
5603         * pic/troff.cc (troff_output::dot): Don't test
5604         zero_length_line_flag.
5606 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
5608         * include/lib.h: Declare getopt() and friends unless
5609         STDLIB_H_DECLARES_GETOPT is defined.
5611         * doc/chars.tr: Delete.
5612         * man/groff_char.man: New file.
5614 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
5616         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
5617         user has changed register format.
5619 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
5621         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
5622         `postpro' command in DESC file.  Get spooler command from `print'
5623         command in DESC file.  Execute spooler command with /bin/sh.
5625         * groff/groff.cc: Split Unix-specific parts into...
5626         * groff/pipeline.c: New file.
5628         * LICENSE: Delete.
5629         * COPYING: New file.
5630         * all files: Update copyright notices.
5632         * Rearrange files.  Redo Makefiles.  Use autoconf.
5634 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
5636         * troff/input.c (charinfo_to_node_list): Interpret character
5637         definition with escape_char of `\'.
5639 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
5641         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
5642         Define INT_DIGITS as big enough for 64-bit integer.
5643         * lib/strtol.c: Don't include lib.h.
5644         * lib/lib.h: Delete ifdef __cplusplus stuff.
5646 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
5648         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
5649         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
5650         get DESC from current directory.
5652 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
5654         * tbl/main.c (main): Always reset the line number when reading
5655         from stdin.
5657         * tbl/table.c (table::print_single_hline, table::print_double_hline,
5658         table::define_bottom_macro, table::do_row, table::do_top): Round
5659         vertical spacing up to vertical resolution.
5661 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
5663         * ps/ps.h (enum resource_type): Avoid comma at end of
5664         enumerator-list.
5665         * dvi/dvi.c (class dvi_printer): Likewise.
5666         * dvi/tfmtodit.c (gf::load): Likewise.
5667         * refer/label.y (struct expression): Likewise.
5668         * refer/refer.c (class label_processing_state): Likewise.
5669         * refer/indxbib.c (do_file): Likewise.
5670         * troff/troff.c (enum warning_type): Likewise.
5671         * tbl/main.c (process_data): Likewise.
5672         * troff/charinfo.h (class charinfo):
5674 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
5676         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
5678 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
5680         * groff.c: Move to new groff subdirectory.
5681         * groff/Makefile: New file.
5682         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
5684         * man/mdate.sh: Use ls -L if supported.
5686         * Consolidate all header files produced by gendef into lib/defs.h.
5687         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
5688         Don't include path.h.
5689         * lib/Makefile (path.h): Don't generate.
5690         * troff/input.c: Include defs.h. Don't include config.h.
5691         * troff/Makefile (config.h): Don't generate.
5692         * refer/index.h: Don't include suffix.h.
5693         * refer/index.c: Include defs.h.
5694         * refer/indxbib.c: Include defs.h.
5695         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
5696         defs.h.
5697         * refer/Makefile (suffix.h, path.h): Don't generate.
5698         * groff.c: Don't include config.h. Include defs.h.
5699         * Makefile (config.h): Don't generate.
5700         (lib/defs.h): Generate.
5701         (topclean): Remove lib/defs.h.
5703 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
5705         * lib/malloc.c, lib/getpagesize.h: Deleted.
5706         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
5707         related stuff.
5708         * lib/Makefile: Delete malloc-related stuff.
5709         * lib/new.c: Workaround COOKIE_BUG if necessary.
5711         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
5712         needed header files directly.
5713         * refer/refer.h: Omit definition of DEFAULT_INDEX.
5714         * Makefile: Include definition of DEFAULT_INDEX in path.h.
5716 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
5718         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
5719         argument.
5720         * lib/font (font::load_desc, font::load): Don't split argument of
5721         unknown command.
5722         (font::handle_unknown_font_command): Change type.
5723         * ps/ps.c (ps_font::handle_unknown_font_command,
5724         handle_unknown_desc_command): Change type.
5725         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
5727 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
5729         * lib/font.h (font::handle_unknown_font_command): Add file and
5730         line arguments.
5731         * lib/font.c (font::handle_unknown_font_command):
5732         * ps/ps.c (ps_font::handle_unknown_font_command):
5733         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
5734         lineno arguments.  Use _with_file_and_line functions for error
5735         reporting.
5737         * lib/fontfile.c (font::unknown_desc_command_handler): New static
5738         data member.
5739         * lib/font.c (font::set_unknown_desc_command_handler): New
5740         function.
5741         (font::load_desc): For unknown commands, call
5742         unknown_desc_command_handler if not null.
5743         * lib/font.h (class font): Declare them.
5744         (FONT_COMMAND_HANDLER): New typedef.
5745         * ps/ps.c (handle_unknown_desc_command): New function.
5746         (main): Set bflag if we had a -b option. Call
5747         font::set_unknown_desc_command_handler.
5748         (broken.h): Don't include.
5749         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
5750         submake 
5751         * ps/devps/Makefile: Add `broken' command to DESC file using
5752         BROKEN_SPOOLER_FLAGS.
5754         * macros/tmac.e ([, ]): Add as synonyms for { and }.
5756         * macros/tmac.e ($p): Only exdent if \$3 > 0.
5758         * macros/tmac.e (@R, @S): New macros.
5759         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
5760         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
5761         Declare $H, $[0-9], .. macros with @S.
5762         Declare |0, |1, |2, |3 strings with @S.
5764         * macros/tmac.e (@S): Rename to @U.
5766         * macros/tmac.e (@z): Define @b and bp as empty instead of
5767         deleting them,
5769         * macros/tmac.e (@m): Deleted.
5770         (@h): Don't call @m.
5771         (@z): Don't set @m trap.
5773         * macros/tmac.e ($h, $f): Define |z as empty string.
5775         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
5776         (@q): Likewise.
5778         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
5779         removing them.
5780         ()f): Likewise for * register.
5782         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
5783         argument is missing, don't change $R.  Call sr with three
5784         arguments when initializing.
5786 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
5788         * macros/tmac.e (sr): New macro.
5789         Initialize $r and $R using sr.
5791         * macros/tmac.e (,): Delete \*(#[.
5793         * troff/env.c (set_tabs): Read the tab type even if the position
5794         is bad.  Allow the position of the first tab stop to be negative.
5796 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
5798         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
5799         _POSIX_VERSION.
5800         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
5801         rather than -DPATHCONF_MISSING.
5802         * Makefile: Get rid of PATHCONF_MISSING.
5804         * refer/map.c: New file.
5805         * refer/index.c: Interface to mmap through map.c.  Rename map_size
5806         to map_len.
5807         * refer/Makefile: Handle map.c.
5808         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
5810 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
5812         * Makefile: RANLIB should be `true' if there is no ranlib.
5813         * lib/Makefile (libgroff.a): Simplify.
5814         * driver/Makefile (libdriver.a): Simplify.
5816         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
5817         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
5818         defined.
5820 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
5822         * troff/env.c (compare_ranges): Declare as extern "C".
5824         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
5826         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
5828 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
5830         * pic/troff.c (troff_output::text): Merge in grops_output::text,
5831         but conditionalize use of \X based on \*(.T.
5832         (grops_output::*): Deleted.
5833         * pic/output.h: Delete declaration of make_grops_output.
5834         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
5835         by default. -n sets it to 0.
5836         (usage): Corresponding changes.
5837         * groff.c (main): Don't pass -x or -p to pic.
5838         * groff.sh: Likewise.
5840         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
5841         to be non-zero.
5843         * ps/devps/afmtodit: Change calculation of asc_boundary and
5844         desc_boundary.  Make these bounds inclusive.
5845         * ps/devps: Regenerate font files.
5847 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
5849         * macros/tmac.latin1: New file.
5850         * macros/tmac.tty-char: Use tmac.latin1.
5851         (tmac.tty-tr): Deleted.
5852         * macros/Makefile: Install tmac.latin1.
5853         * macros/tmac.dvi: Use tmac.latin1.
5854         * macros/troffrc: Translate \[char160] onto no-break space here.
5855         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
5857 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
5859         * macros/tmac.Xps: Use `do' request.
5861         * macros/tmac.ps: Use `do' request.
5863         * macros/tmac.e (@C): Use `do' request.
5865         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
5866         * macros/Makefile: Install tmac.X*.
5868         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
5869         * tty/Makefile: Don't install tmac.tty*.
5870         * macros/Makefile: Install tmac.tty*.
5872         * dvi/tmac.dvi: Move to macros.
5873         * dvi/Makefile: Don't install tmac.dvi.
5874         * macros/Makefile: Install tmac.dvi.
5876         * ps/tmac.ps*: Move to macros.
5877         * ps/Makefile: Don't install tmac.ps*.
5878         * macros/Makefile: Install tmac.ps*.
5880         * eqn/box.c: Provide draw_lines parameter corresponding to -D
5881         option.
5882         * macros/eqnrc: Set draw_lines parameter based on device.
5883         * groff.c: Don't pass -D flag to eqn.
5884         * groff.sh: Likewise.
5885         * eqn/main.c: Warn about use of -D.
5887         * troff/input.c (process_startup_file): New function.
5888         (main): Call process_startup_file().
5889         * macros/troffrc: New file.
5890         * macros/Makefile: Install troffrc.
5891         * groff.c (main): Don't pass extra -m option to troff. For a 
5892         pseudo device pass the name of the pseudo device to troff using
5893         -d.
5894         * groff.sh: Likewise.
5895         * groff.c (possible_command::prepend_arg): Deleted.
5897         * troff/input.c (do_request): New function.
5898         (init_input_requests): Bind "do" to do_request.
5900         * eqn/main.c (main): Instead of loading eqnchar from device directory,
5901         load eqnrc from macro directory.
5902         * macros/eqnrc: New file.
5903         * macros/Makefile: Install eqnrc.
5904         * ps/devps/eqnchar: Deleted.
5905         * ps/devps/Makefile: Don't install eqnchar.
5906         * dvi/devdvi/eqnchar: Deleted.
5907         * dvi/devdvi/Makefile: Don't install eqnchar.
5908         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
5909         variable optM.
5911         * lib/device.[ch]: New files.
5912         * lib/font.h (font::set_device_name, font::get_device_name):
5913         Deleted.
5914         * lib/fontfile.c: Use device.h.
5915         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
5916         * troff/input.c: Delete definition of `device'.
5917         (main): Don't initialize device.
5918         * troff/troff.h: Include device.h rather than declaring device.
5919         * troff/Makefile: No need to handle DEVICE.
5920         * driver/input.c: Include device.h. Don't use
5921         font::{set,get}_device_name.
5922         * groff.c, Makefile: Rename device.h to config.h.
5923         * groff.c: Use library device variable.
5924         * eqn/main.c: Use library device variable.
5925         * eqn/Makefile: No need to handle DEVICE.
5927         * lib/searchpath.[ch]: New files.
5928         * lib/Makefile: Handle searchpath.[ch].
5929         * troff/input.c (open_file, init_dirs): Deleted.
5930         (macro_dirs): Deleted.
5931         (open_mac_file, macro_source): Use class search_path.
5932         (add_string, struct string_list): Move definition.
5933         (main): Change -M option to use macro_path. Delete call to
5934         init_dirs().
5935         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
5936         Rewrite to use class search_path.
5937         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
5938         * lib/Makefile: fontfile.c depends on searchpath.h.
5939         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
5940         MACROPATH.
5941         * lib/macropath.[ch]: New files.
5942         * troff/Makefile: No need to handle MACROPATH.
5944         * troff/input.c: Delete DUMP code.
5945         * lib/fontfile.c, lib/font.h: Delete
5946         font::forget_command_line_font_dirs.
5948         * troff/input.c (push_token): New function.
5949         (handle_first_page_transition): Use push_token().
5950         (process_input_stack): Change handling of a space at the beginning
5951         of the line.
5953 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
5955         * troff/input.c (font_dirs): Delete unused variable.
5957         * eqn/lex.c (do_set): Correct error messages.
5959 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
5961         * troff/input.c (do_define_string): Allow the string name to be
5962         followed immediately by a tab.
5963         (define_character): Likewise.
5965 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
5967         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
5968         be negative.
5970         * troff/input.c (input_iterator::is_file): New virtual function.
5971         (file_iterator::is_file): New function.
5972         (input_stack::end_file): New function.
5973         (input_stack::next_file): Handle the situation where there is no
5974         file on the input stack correctly.  Avoid making two passes over
5975         the input stack.
5976         (next_file): Make the filename optional; in this case call
5977         input_stack::end_file().
5979 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
5981         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
5982         produce a real _ charater when the current font is CW and _
5983         otherwise.
5985         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
5986         expression to work around gcc 2.2 bug.
5988 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
5990         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
5992         * troff/env.c (environment::add_padding): New function.
5993         (environment::add_char): Use add_padding().
5994         (environment::space): Likewise.
5995         (environment::wrap_up_field): Add some padding if there is none
5996         and there's no current tab.
5997         * troff/env.h: Declare environment::add_padding.
5999 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
6001         * pic/pic.y: undef fmod and rand before declaring them.
6003 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
6005         * troff/input.c (main): If the DESC file specifies a font name of
6006         0, then leave the corresponding font position empty.
6008         * nroff.sh: New file.
6009         * Makefile (install.nobin): Install nroff.sh.
6011         * tty/devlatin1/R.proto: Add ao as synonym for de.
6012         * tty/tmac.tty-char: Define ao as o.
6014         * tty/dev{ascii,latin1}/R.proto: Add aq.
6015         * tty/tmac.tty-char: Delete definition of aq.
6017 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
6019         * troff/input.c (init_charset_table): Don't translate 0240.
6020         * ps/tmac.ps: Translate char160 to space.
6021         * dvi/tmac.dvi: Likewise.
6022         * tty/tmac.tty: Likewise.
6024 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
6026         * dvi/tmac.dvi: Add support for all Latin-1 characters.
6028         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
6029         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
6030         \(oe, \(r?, \(r!.
6032         * tty/tmac.tty-char: Add \(ah.
6034         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
6035         No need to define \(FM and \(!/. Conditionalize all character
6036         definitions.
6038         * ps/devps/lgreekmap: Add +h, +f, +p.
6040         * ps/tmac.psnew: New file.
6041         * ps/Makefile: Install tmac.psnew.
6043         * troff/input.c (charinfo_to_node_list): Don't ever interpret
6044         character definitions in compatible mode.
6046         * troff/input.c (remove_character): New function.
6047         (init_input_requests): Bind remove_character to "rchar".
6049         * ps/tmac.psold: New file.
6050         * ps/Makefile: Install tmac.psold.
6051         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
6052         characters into tmac.psold.  Make these definitions unconditional.
6054         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
6056         * ps/tmac.ps: Don't define \('c and \('C.
6058         * ps/devps/textmap: Move Greek characters to...
6059         * ps/devps/symbolchars:
6061 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
6063         * ps/devps/text.enc: Add quotesingle.
6064         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
6065         * tty/tmac.tty-char: Likewise.
6066         * dvi/devdvi/texmi.map: Add +h, +f, +p.
6067         * dvi/devdvi/texi.map: Add Fn.
6068         * dvi/devdvi/msam.map: Add lz.
6069         * dvi/tmac.dvi: Handle Bq, bq, aq.
6071         * pic/lex.c (get_token): Recognize 'th.
6072         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
6074 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
6076         * ps/devps/textmap: Move di, mu, +- to...
6077         * ps/devps/symbolchars:
6079         * macros/tmac.s (@XS): Don't call par@reset or fi.
6080         (XA): Call LP. Turn off adjustment. Reduce line length.
6082         * macros/tmac.s: Initially alias XS to LP.
6083         (XS): Rename to @XS.
6084         (cov*ab-init): Alias XS to @XS.
6086 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
6088         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
6089         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
6090         (token::is_size, token::changes_env): Deleted.
6091         * troff/number.c (parse_term): No need to process \s explicitly.
6092         Call tok.next() only after scale indicator has been processed.
6093         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
6094         \f etc explicitly.
6095         (token::next): Handle \s, \f, \S, \H immediately rather than
6096         returning them as tokens.
6097         (token::operator==, token::description, token::add_to_node_list,
6098         token::process): Remove handling of deleted tokens.
6100         * troff/env.c (environment::add_char): When adding padding
6101         indicator character, call start_line() if necessary.
6103 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
6105         * ps/devps/afmtodit: Don't output 0 kerns.
6107         * ps/devps/afmtodit: Remove directory from name of encoding in
6108         font description file.
6110         * ps/devps/afmtodit: Improve error messages.
6112         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
6114         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
6115         * ps/devps/FontMakefile: Deleted.
6116         * ps/devps/afmname: New file.
6118         * ps/devps/symbol.sed: New file.
6119         * ps/devps/symbol.diff: Deleted.
6120         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
6121         Generate zapfdr.afm from zapfd.afm.
6123         * tty/tmac.tty (tty-char): Prefix definition with ".
6125         * macros/tmac.an (TP): Don't start a diversion if one has already
6126         been started.
6128         * tty/tmac.tty-char: Add Latin-1 characters.
6130         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
6132 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
6134         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
6135         Move declaration of struct horizontal_span.
6137         * tbl/table.c (table::table): Initialize span_list.
6138         (table::~table): Delete span_list.
6140         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
6142         * ps/devps/Makefile: Avoid dependency on GNU make.
6144         * ps/tmac.ps: Check that character does not already exist before
6145         defining it.
6147         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
6148         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
6149         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
6150         files.
6152         * tty/tmac.tty-char: New file.
6153         * tty/Makefile: Install tmac.tty-char.
6154         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
6155         tmac.tty-char.
6157         * tty/tmac.tty: Fix definition of \(34.
6159         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
6160         bracket-drawing characters onto |. Add *o.
6162         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
6163         only if current_field.
6165         * troff/dictionary.c (dictionary::lookup): Free old_table after
6166         rehashing. 
6168 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
6170         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
6171         whose glyphs are identical to glyphs of some Roman character.
6173         * tty/devlatin1/R.proto (bu): Deleted.
6174         * tty/devascii/R.proto (bu): Deleted.
6175         * tty/tmac.tty: Add definition of \(bu.
6177         * eqn/main.c (do_file): Pass FILE as argument.
6178         (main): Automatically load eqnchar.  New options -F and -n.
6179         Pass do_file an opened FILE.
6180         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
6181         No need to include font.h.
6182         * groff.sh: Likewise.  Don't need to use - for standard input.
6183         Prefix files with -- if first file starts with -.
6185         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
6187         * troff/env.c (environment::possibly_break_line): Don't set line
6188         to 0 across call to output_line().  Don't call output_line() until
6189         after discarding nodes after break.
6191 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
6193         * request.h (macro::empty): Declare it.
6194         * input.c (macro::empty): New method.
6195         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
6196         macro is empty.
6198 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
6200         * troff/env.c (environment::start_field): Decrement space_total
6201         when a space is frozen.
6203 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
6205         * macros/tmac.an (R): Delete macro.
6207         * troff/input.c (get_copy, token::next): Support \# (like \" but
6208         newline is ignored).
6210         * troff/input.c (token::next): Fix error message in 'Y' case.
6212 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
6214         * eqn/delim.c (define_extensible_string): Recognize any prefix of
6215         a delimiter name.
6217 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
6219         * c++test.c: Include <osfcn.h>.
6221         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
6222         <errno.h> doesn't.
6224 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
6226         * tbl/table.c (table::divide_span): Don't count column separation
6227         if expand was specified.
6229         * tbl/main.c (process_format): Don't ignore width specs in
6230         continued format.  Give warning for changing equal widths or
6231         column separation in continued format.
6232         (process_data): Set column separation, minimum width, equal
6233         columns at end of table.
6235 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
6237         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
6238         node::add_discretionary_hyphen): Use soft_hyphen_char.
6239         (set_soft_hyphen_char): New function.
6240         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
6242         * Makefile (c++tested): Give more helpful message if test fails.
6244 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
6246         * troff/input.c (init_charset_table): Translate 0240 to
6247         an unbreakable space.
6249         * troff/token.h (token::hyphen_indicator): New function.
6250         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
6251         translation.
6252         * troff/input.c (translate): Allow translation to \%.
6253         * troff/node.c (node::add_char): Handle
6254         TRANSLATE_HYPHEN_INDICATOR.     
6255         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
6257         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
6258         for \(hy.
6260         * tty/devlatin1/R.proto: \(hy and - should print as 055.
6262 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
6264         * groff.c (run_commands): If the last command gets a SIGPIPE send
6265         a SIGPIPE to all children than haven't yet terminated.  When
6266         command terminates, set pid field to -1.
6268 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
6270         * groff.c (main): Pass an appropriate -filename option to gxditview.
6272 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
6274         * Makefile.bd (install): Remove existing program before copying.
6276         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
6277         programs which have Unix counterparts to be installed with
6278         user-specified prefix.
6280         * troff/input.c (exit_troff): Don't check if exit_started.
6281         (exit_request): Don't call exit_troff if exit_started.
6283         * Makefile.bd (install.mm): Rename to install.dwbmm.
6285 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
6287         * driver/input.c (do_file): Add missing break for '#' case.
6289 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
6291         * troff/input.c (input_stack::clear):  Clear past any boundaries and
6292         then add the boundaries back.
6294         * troff/input.c (exit_troff): Return immediately if already
6295         exiting.
6297         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
6298         end macro.
6299         (pg*end-page): If the text has ended and there are no more
6300         footnotes or keeps, exit.
6302         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
6304         * troff/input.c (init_charset_table): Make \(rq transparent by
6305         default.
6307         * macros/tmac.an: Define lq and rq strings.
6309         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
6311 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
6313         * troff/env.c (environment::final_break): New function.
6314         (environment::newline): Set prev_line_interrupted to 2 if
6315         exit_started.
6316         * troff/env.h: Declare environment::final_break.
6317         * troff/input.c (exit_troff): Call environment::final_break()
6318         instead of environment::do_break().
6320         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
6321         doesn't already exist.
6322         * macros/man.local: New file.
6323         * macros/tmac.an: Load man.local.
6324         * macros/man.ultrix: New file.
6326 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
6328         * troff/input.c (exit_groff): Rename to...
6329         (exit_troff): New function.
6331         * troff/div.c (exit_started, done_end_macro,
6332         seen_last_page_ejector): New global variables.
6333         (began_page_in_end_macro): New static variable.
6334         (exit_flag): Deleted.
6335         (top_level_diversion::top_level_diversion): Initialize
6336         last_page_count.
6337         (top_level_diversion): More elaborate test for whether
6338         cleanup_and_exit() should be called.
6339         Set began_page_in_end_macro if the end macro isn't yet finished.
6340         * troff/div.h (top_level_diversion::last_page_count): New data
6341         member.
6342         (top_level_diversion::set_last_page): New function.
6343         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
6344         * troff/env.c (do_break): Zero prev_line_interrupted.
6345         * troff/input.c (exit_flag): Delete declaration.
6346         (LAST_PAGE_EJECTOR): New magic cookie.
6347         (token::next): Handle LAST_PAGE_EJECTOR.
6348         (exit_groff): Set exit_started and done_end_macro instead of
6349         exit_flag.  Call top_level_diversion::set_last_page.  Push a
6350         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
6351         another ejection after setting seen_last_page_ejector.
6353 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
6355         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
6357         * macros/tmac.e (TH): Make sure there's room for the initial
6358         header.
6360         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
6361         Set FVS in points rather than units.
6363 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
6365         * troff/div.c (top_level_diversion::add_trap): Don't consider the
6366         position of empty slots.
6368 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
6370         * ps/devps/S: Fix height and depth of parenrightex.
6371         * ps/devps/symbol.diff: Regenerate.
6373 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
6375         * tmac.e (u): Do underlining as in -mgs.
6377 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
6379         * tty/tty.c (tty_printer::end_page): If overstriking is
6380         suppressed, still turn overstruck horizontal and vertical lines
6381         into +.
6383         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
6384         2.1.
6386         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
6388 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
6390         * Version 1.05 released.
6392 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
6394         * tty/tty.c: Instead of keeping an array of glyphs and then
6395         sorting it, keep a ordered linked list of glyphs for each line.
6397         * driver/driver.h: Include stddef.h.
6399         * tty/tty.c (compare_glyph):
6400         * refer/refer.c (rcompare):
6401         * troff/env.c (compare_ranges): Arguments of qsort comparison
6402         function should be const void *.
6404         * troff/number.c (parse_term):
6405         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
6406         switch statement.
6408         * refer/label.y (consider_authors): Don't access variables
6409         constructed under a condition outside that condition: put braces
6410         round for statement containing declaration; redeclare use of same
6411         variable later.
6413         * pic/pic.y (text_expr): Delete production that allows
6414         parenthesised text_expr.
6415         (expr): Allow a conditional_expr to appear in parentheses.
6416         (conditional_expr): Rename to any_expr.
6418         * mm: Install new version 1.01 from jh.
6420         * lib/font.c (font::get_width): Cache scaled widths.
6421         (font::font): Initialize widths_cache.
6422         (font::~font): Destroy widths_cache.
6423         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
6425 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
6427         * c++test.c, c++test.ref: New files.
6428         * Makefile: Check that the C++ compiler works.
6430         * ps/tmac.pspic (PSPIC): Do a break.
6432         * ps/tmac.ps: Move definition of PSPIC into...
6433         * ps/tmac.pspic: New file.
6434         (PSPIC): Draw box around picture, but make it invisible to grops.
6435         * ps/tmac.ps: Load tmac.pspic.
6436         * ps/Makefile: Install tmac.pspic.
6438 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
6440         * lib/font.c (scale_round): If n is negative,
6441         subtract .5 before truncating floating point result.
6443         * lib/fontfile.c: Include <errno.h>.
6445 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
6447         * driver/input.c (get_char): Inline. Don't update current_lineno.
6448         Change callers to up date current_lineno if necessary.
6449         Use get_char() instead of getc(current_file).
6451 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
6453         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
6455 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
6457         * tty/tty.c (tmac.tty): Define \(rg as (R).
6459 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
6461         * lib/lib.h: New define a_delete.
6462         * Use a_delete instead of delete when deleting an array of objects
6463         without destructors.
6465         * lib/lib.h: Rename adelete to ad_delete.
6466         * Change uses of adelete.
6468 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
6470         * eqn/eqn.y: Include lib.h.
6472         * troff/node.c (grow_font_table): Delete old_font_table.
6474         * mm: Install new version from jh.
6476 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
6478         * tbl/table.h (format_type): Make global instead of local to class
6479         entry_format.  Prefix enumerators with FORMAT_.
6480         * tbl/table.c, tbl/main.c: Corresponding changes.
6481         * refer/token.h (token_type): Make global.  Prefix enumerators
6482         with TOKEN_.
6483         * refer/token.[ch]: Corresponding changes.
6484         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
6486         * troff/div.c (node::set_vertical_size): Don't name argument.
6488 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
6490         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
6491         * lib/lib.h: Define adelete accordingly.
6492         * pic/object.c (graphic_object::graphic_object):
6493         * tbl/main.c (format::~format):
6494         * tbl/table.c (table::~table):
6495         * refer/ref.c (reference::~reference, reference::merge,
6496         reference::insert_field, reference::delete_field): Use adelete.
6498         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
6499         * refer/token.h:
6500         * tbl/table.h: Corresponding changes.
6502         * common.c (common_output::dashed_arc, common_output::dotted_arc):
6503         Ensure total_angle is positive.
6505 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
6507         * refer/ref.c (reference::merge, reference::insert_field,
6508         reference::delete_field): Avoid delete[0].
6510         * refer/token.c (init_special_chars): Move calls to cmupper
6511         outside calls to init_two_char_letter to work around bug in gcc
6512         2.0.
6514 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
6516         * lib/new.c (operator new): Use __builtin_new for g++.
6518         * pic/object.c (graphic_object::~graphic_object):  Don't use
6519         delete [] on 0.
6521         * pic/object.c (output::compute_scale): Initialize max_width and
6522         max_height.
6524 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
6526         * troff/input.c (write_request): Call fflush.
6528         * troff/node.h (class composite_node): Move declaration to node.c
6529         * troff/input.c (charinfo_to_node): Rename to ...
6530         (charinfo_to_node_list): Return node list rather than composite
6531         node.
6532         * troff/node.c (make_composite_node): New function.
6533         (make_node, add_char): Call make_composite_node instead of
6534         charinfo_to_node.
6535         (class composite_node): Add a tfont * member.  Delete font_size
6536         member.
6537         (composite_node::composite_node, composite_node::copy,
6538         composite_node::size): Corresponding changes.
6539         (composite_node::tprint): Provide constant spacing, emboldening
6540         and track kerning as specified in tfont.
6541         (composite_node::width): Change width calculation accordingly.
6542         * troff/env.h (environment::composite): New member.
6543         (environment::is_composite, environment::set_composite): New
6544         functions.
6545         * troff/env.c (environment::environment): Initialize composite.
6546         * troff/input.c (charinfo_to_node): Call
6547         environment::set_composite.
6548         * troff/node.c (make_composite_node, make_glyph_node): Use the
6549         plain version of the tfont if the environment is composite.
6551         * troff/node.c (font_info::get_space_width): Additional argument
6552         giving space_size.  Handle constant space correctly. Scale by
6553         space_size unless constant spaced.
6554         (env_sentence_space_width): New function.
6555         * troff/node.h: Declare it.
6556         * troff/env.h (environment::get_space_size,
6557         environment::get_sentence_space_size,
6558         environment::get_narrow_space_width,
6559         environment::get_half_narrow_space_width): Make inline.
6560         (environment::get_space_width): Make inline.  Just call
6561         env_space_width.
6562         * troff/env.c: Delete definitions for funtions made inline.
6563         (environment::space_newline, environment::space): Use
6564         env_sentence_space_width(). Don't scale by space_size.
6565         * troff/node.h: Move declarations of env*space_width() functions
6566         into env.h.
6568 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
6570         * macros/tmac.s (PS): Don't try to set negative indent.
6572 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
6574         * pic/pic.y: Fix min function.
6576 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
6578         * man/mdate.sh: Clear LANGUAGE.
6580 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
6582         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
6583         * pic/lex.c: New COMMAND keyword.
6584         * pic/pic.y (print_args, print_arg): New rules.
6585         (placeless_element): Use print_args for PRINT.
6586         New COMMAND element.
6588 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
6590         * troff/input.c (terminal): Handle missing argument correctly.
6592         * pic/pic.y (text_expr): New rule.
6594         * pic/pic.y: Implement := operator.
6596 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
6598         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
6599         mdoc.
6601 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
6603         * ps/devps/dingbatsrmap: Include this in the distribution.
6605         * macros/tmac.doc: Replace with new version from 2nd Networking
6606         Release. Fix loading of doc-* files.
6607         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
6608         * macros/tmac.doc.old: New file.  Apply fixes that had been
6609         applied to old tmac.doc.
6610         * macros/tmac.andoc: Check that we're running under groff.
6611         * macros/Makefile: Rework.
6613 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
6615         * tbl/table.h (format_type): 
6616         * refer/token.h (token_type): If NESTED_TYPES is defined, use
6617         typedef to make these types visible at file scope.
6618         * Makefile: Add NESTED_TYPES configuration option.
6620         * troff/div.c (mark): At the top level use the value of
6621         nl_reg_contents rather than the current vertical position.
6623 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
6625         * tty/tty.c: Implement \D for horizontal or vertical lines.
6626         (tty_printer::set_char): Use vec_used+2 as serial number.
6627         Don't allow size of vector to exceed USHRT_MAX-2.
6628         Split off part into...
6629         (tty_printer::add_char): New function.
6630         (tty_printer::draw): New function.
6631         (compare_glyph): Handle equal serial numbers.
6632         (tty_printer::end_page): Handle overstruck characters from \D.
6633         (main, usage): Implement -d option.
6635 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
6637         * tbl/main.c (process_format):
6638         * eqn/text.c (split_text):
6639         * troff/input.c (token::next): Use inner block for declarations
6640         with initializers in switch statement.
6642 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
6644         * pic/common.c (common_output::dash_line): Cope with zero-length
6645         lines.
6647 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
6649         * Version 1.04 released.
6651 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
6653         * macros/tmac.an (TH): Define a macro an-init to define variables
6654         based on command line arguments.
6655         (an-header): Call it.
6657 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
6659         * Makefile (install.mm): Rename to install.dwbmm.
6661         * Makefile: Integrate mm.
6662         * mm: New directory.
6664 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
6666         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
6667         <sys/types.h>.
6669         * pic/troff.c (troff_output::simple_spline,
6670         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
6671         shadowing parameter.
6673         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
6675         * lib/ptable.h: Add explicit casts when converting from unsigned
6676         long to unsigned.
6678         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
6679         * dvi/devdvi/Makefile: Install SA, SB.
6681         * refer/indxbib.c: Add declaration of mktemp.
6683         * refer/lookbib.c: Add declaration of isatty.
6685 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
6687         * pic/lex.c (interpolate_macro_with_args):  While collecting
6688         arguments, keep track of whether we're in a string.
6690 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
6692         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
6693         down with \v, so as to avoid problems with top of page trap
6694         setting no space mode.
6696 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
6698         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
6700 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
6702         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
6703         Improve error message.
6705 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
6707         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
6708         printf("%03o");
6710 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
6712         * groff.c (possible_command::execp): Always use _exit() after a
6713         failed exec.
6715         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
6716         NO_SYS_WAIT_H   configuration options.
6717         * groff.c: Use these options.  Use POSIX-style macros to extract
6718         fields from the status returned by wait().
6720 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
6722         * tbl/table.c (table::compute_separation_factor): Allow the
6723         separation factor to drop to 0.
6725 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
6727         * refer/search.c: Include <errno.h>.
6729 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
6731         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
6733         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
6734         C++. 
6736         * pic/lex.c (input_stack::bol): Move definition out of class body.
6738         * pic/main.c: On MSDOS munge argv[0].
6740         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
6742         * lib/ptable.c (hash_string): Use unsigned long rather than
6743         unsigned.
6744         (next_ptable_size): Use unsigned rather than int.  Give an error
6745         message if we've hit the largest table size.
6746         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
6747         table size.
6749         * pic/object.h (object_spec): Make flags unsigned long.  Declare
6750         flags as const unisgned long rather than as enums.
6752         * pic/output.c: Deleted.
6754         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
6756         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
6757         Add additional argument.
6758         (line_entry::note_double_vrule_on_{left,right}): Set value of
6759         douvle_vrule_on_{right,left} flag according to argument.
6760         (simple_line_entry::simple_print,
6761         simple_line_entry::double_line_print): If adjacent to double vrule
6762         on a corner extend rather than shorten the rule by half the double
6763         vrule sep.
6765         * troff/number.c (parse_term): In checking for overflow, handle the
6766         case where the current horizontal position is negative.
6768 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
6770         * pic/object.c (draw_arrow): Check for object having zero length.
6772 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
6774         * eqn/main.c (do_file): Split off inline equation handling into...
6775         (inline_equation): New function.  Search for starting delimiter
6776         using...
6777         (delim_search): New function. Don't recognize a delimiter that
6778         occurs in the name of an escape sequence, number register, string
6779         etc.
6781 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
6783         * eqn/delim.c (delim_box::compute_metrics): Don't call
6784         define_extensible_string if left is 0.
6785         (delim_box::output):  Don't print the left delimiter if left is 0.
6786         (delim_box::debug_print): Check for left == 0 before calling printf.
6788 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
6790         * troff/Makefile (majorminor.c): Include only digits in
6791         minor_version.
6793 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
6795         * refer/dirnamemax.c: new file.
6796         * refer/genlimits.c: Deleted.
6797         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
6798         Don't check path length.
6799         * refer/Makefile: Add dir_name_max.o; delete genlimits.
6800         * Makefile: Add PATHCONF_MISSING option.
6802         * refer/indxbib.c (get_cwd): New function.
6803         (main): Use get_cwd().
6804         * lib/getcwd.c: New file.
6805         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
6806         GETCWD in SUBFLAGS.
6807         * lib/Makefile: Compile getcwd.o.
6809         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
6810         userdict.
6812         * refer/indxbib.c (main): Check success of mktemp.
6814         * lib/tmpfile.c: New file.
6815         * lib/Makefile: Add tmpfile.c.
6816         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
6817         * ps/ps.h: Delete declaration of mktemp().
6818         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
6819         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
6820         * driver/driver.h: No need now to include errno.h.
6822         * everywhere: Set errno to 0 before calling fopen().
6824         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
6825         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
6826         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
6828 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
6830         * troff/env.h (translate_space_to_dummy): Declare it.
6831         * troff/env.c (environment::space_newline, environment::space):
6832         If translate_space_to_dummy is set then make the width of spaces 0.
6833         * troff/input.c (translate): If the second character of a
6834         translation is a space, translate to unbreakable space.  If the
6835         first character is a space, set or clear translate_space_to_dummy
6836         according to whether the second character is \&.  Weird!
6838 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
6840         * groff.c (run_commands): Don't use non-zero exit code because a
6841         command gets SIGPIPE.
6843         * groff.c, groff.sh: Use -mXps with -TXps.
6845         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
6846         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
6847         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
6848         (ps_printer::special): New specials invis and endinvis.
6849         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
6850         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
6851         (ps_printer::end_page): Check that invis_count == 0.
6852         (ps_printer::invis_count): New member.
6853         (ps_printer::ps_printer): Initialize invis_count to 0.
6855         * troff/env.c (environment::hyphenate_line): Hyphenation
6856         indicator at beginning of word inhibits splitting after -, \(em
6857         etc.
6859         * pic/pic.y (element): Allow another element to follow } without
6860         any intervening separator.
6862 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
6864         * pic/lex.c (get_delimited): Allow tabs before delimiter.
6866 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
6868         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
6869         declaration of wait() in header files.
6870         * Makefile: Get rid of -DHAVE_UNION_WAIT.
6872         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
6874         * lib/lib.h: Declare return type of strerror as char *.
6876         * man/Makefile: Add g flag to sed substitutions.
6877         * Makefile (shgroff, bindist): Likewise.
6879 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
6881         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
6882         * ps/devps/prologue (PBEGIN): Define showpage after pushing
6883         userdict.
6885 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
6887         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
6888         userdict.
6890 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
6892         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
6893         group.
6895 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
6897         * troff/input.c (define_number_reg):  If currently undefined,
6898         don't define it if the argument is an invalid expression.
6900         * Makefile: Ignore return value of `if' commands without `else'
6901         parts.
6903         * Makefile: Split up CPPDEFINES into a series of separate
6904         configuration options.
6906         * troff/input.c (init_registers): Use time_t instead of long
6907         unless LONG_FOR_TIME_T is defined.  Use returned result rather
6908         than passing pointer.
6909         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
6911         * lib/Makefile (fontpath.h): Use gendef.
6913 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
6915         * troff/input.c (input_iterator::shift): Delete argument name.
6916         * troff/node.c (suppress_output_file::really_begin_page,
6917         suppress_output_file::really_transparent_char, node::ascii_print,
6918         node::tprint): Delete names of unused arguments.
6920 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
6922         * refer/label.y (string):  Pass $4 to command_error.
6924 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
6926         * Version 1.03 released.
6928 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
6930         * Makefile: Pass definition of SHELL in SUBFLAGS.
6932         * gendef: New file.
6933         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
6934         ps/Makefile: Use gendef to construct header files that are
6935         constructed from the Makefile.
6937         * macros/Makefile: make all should build stripped version of tmac.e.
6939         * refer/Makefile (clean): Remove y.output.
6941 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
6943         * ps/pfbtops.c (main): Add -v option which prints out a version
6944         number.
6945         * ps/Makefile (pfbtops): Link with libgroff.a.
6947 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
6949         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
6950         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
6952         * refer/lkbib.c (main): Always terminate reference with blank
6953         line.
6954         * refer/lookbib.c (main): Likewise.
6956         * refer/linear.c (file_buffer::load): Check that the file is not a
6957         binary file.
6959         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
6960         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
6961         Delete second inclusion of <sys/param.h>.
6963 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
6965         * troff/token.h (token::special): Deleted.
6967         * tbl/main.c (process_format): Rework so that opt->tab_char is
6968         recognized only when appropriate.
6970         * ps/Makefile (clean): Remove pfbtops.
6972 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
6974         * lib/font.c (text_file::next): Don't return if we have got a
6975         blank line.
6977 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
6979         * refer/refer.c (store_reference): Get hash code from old_table[i]
6980         when rehashing the table.
6982 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
6984         * eqn/box.c (box::top_level): Save size and prev size using \R and
6985         restore it afterwards. Set the size to the size at the beginning
6986         of the line.
6987         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
6988         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
6990         * refer/Makefile (limits.h): Use ./genlimits.
6992 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
6994         * refer/index.c: Delete declarations of stat() and fstat().
6996 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
6998         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
7000 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
7002         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
7004 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
7006         * troff/input.c (token::get_char): Handle \e.
7008         * refer/linear.c: Delete declarations of fstat() and stat().
7010 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
7012         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
7013         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
7015 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
7017         * troff/input.c (do_define_macro): Improve error handling for end
7018         of file while defining macro.
7020 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
7022         * eqn/box.h: Fix declaration of set_gsize.
7023         * eqn/box.c (set_gsize): Make argument const char *.
7024         (gsize): Declare as char *.
7025         * eqn/main.c (main): Don't convert gsize to int.
7026         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
7028         * Version 1.02 released.
7030 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
7032         * macros/tmac.andoc: New file.
7033         * macros/Makefile: Install tmac.andoc.
7035         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
7036         operator new and delete on OP_DELETE_BROKEN not being defined.
7037         * Makefile: Mention OP_DELETE_BROKEN.
7039 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
7041         * Makefile (bindist): Pass SUBFLAGS.
7043 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
7045         * Makefile, groff.c: Pass definitions to groff.c via device.h.
7047         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
7048         parameter.
7050         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
7052         * ps/ps.h, ps/psrm.c: Make comment_table and
7053         header_comment_table local to resource_manager::process_file.
7055         * groff.sh: With -TXps pass -printCommand option to gxditview.
7057         * groff.c (possible_command::print): Implement using
7058         append_arg_to_string.
7060         * xditview: Merge in new implementation with own ChangeLog.
7062 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
7064         * groff.c (main): Implement PRINT_OPTION.
7065         (append_arg_to_string): New command.
7066         (device_table): Set PRINT_OPTION flag for Xps.
7068 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
7070         * troff/groff.h: Rename to troff.h.
7072         * pic/lex.c (lookup_keyword, docmp): New functions.
7073         (get_token): Use new lookup_keyword.
7074         Don't include key.h.
7075         * pic/key.[ch], pic/pic.gperf: Deleted.
7076         * pic/Makefile: Remove gperf stuff.
7078         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
7079         into output.h.
7080         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
7082         * troff/Makefile, troff/node.c: Move definition of
7083         STORE_WIDTH into node.c.
7085         * etc/grog.pl, etc/grog.sh: Support -mdoc.
7087 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
7089         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
7090         dvi/devdvi/texb.map: Add lq and rq.
7091         dvi/devdvi: Regenerate fonts.
7092         * ps/devps/textmap: Add lq and rq.
7093         * ps/devps: Regenerate fonts.
7094         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
7095         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
7097         * pic/object.c (position_rectangle): When checking radius
7098         cope with possiblity that width or height is negative.
7099         (box_object::box_object): Have separate xrad and yrad with
7100         signs matching signs of dim components.
7101         (box_object::{north,south}_{east,west}): Use xrad and yrad.
7102         (box_object::print): With rounded boxes use absolute values
7103         for dim and rad arguments.
7105         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
7106         in fontpath.h.
7108         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
7110         * various files: Add explicit destructors to keep Saber CC +d
7111         happy.
7113 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
7115         * eqn/box.c (box::top_level): Restore fonts correctly after
7116         font changes in line containing inline equation.  Also
7117         restore previous font as well as current font.
7118         * eqn/pbox.h: Define necessary string and register names.
7120         * troff/input.c (token::next): Case 'R' calls do_register.
7121         (do_register): New function.
7123 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
7125         * groff.c, groff.sh: Support Xps device.  Allow each device
7126         to have a pseudo_name and a real_name.
7128         * groff.c (run_commands): Don't print `Broken pipe' messages.
7130         * ps/pfbtops.c: New file.
7131         * ps/Makefile: Add pfbtops.
7133         * troff/number.c (parse_term): Improved error message.
7135 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
7137         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
7139         * Makefile: Integrate refer.
7140         * refer: New directory.
7141         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
7142         man/lkbib.man: New files.
7143         * man/Makefile: Support refer man pages.
7145         * lib/lib.h: Declare is_prime.
7146         * lib/prime.c: New file.
7148         * troff/input.c (macro_source): New function.
7149         (init_input_requests): Bind "mso" to macro_source.
7151         * troff/env.c (environment::possibly_break_line): Maintain
7152         pointer to pointer to node to be split in ndp so as to avoid
7153         using address of freed node.
7155         * troff/env.c (environment::hyphenate_line): Maintain pointer to
7156         pointer to first node to be hyphenated in startp so as to
7157         avoid using address of freed node.
7159         * troff/env.c (class trie, class hyphen_trie): Make the
7160         elements of the trie be of type char not unsigned char.
7161         Declare arguments to be const char* instead of unsigned char *.
7162         
7163         * troff/env.c (hyphenate): Initialize hbuf[0].
7165         * troff/input.c (set_string): Declare p to be char * and cast
7166         *p to unsigned char when necessary.
7168         * troff/input.c (do_define_macro): Declare s to be const
7169         char*. Cast element to unisgned char when necessary, Declare
7170         d to be an int.  Handle EOF better.
7172         * troff/Makefile, troff/input.c: Different scheme for passing
7173         definitions of MACROPATH, HYPHENFILE and DEVICE.
7175 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
7177         * tty/devascii/R.proto: Delete entry for em.
7178         * tty/devlatin1/R.proto: Likewise.
7180 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
7182         * troff/input.c (translate): Stop when we get a space. Treat eof
7183         like newline.
7185         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
7187 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
7189         * tbl/main.c (process_format): A font name following a `f'
7190         modifier that starts with a digit can be only one character long.
7191         Also deal with EOF on the second character of the font name.
7193 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
7195         * troff/input.c (token::next): Turn \~ into an
7196         unbreakable_space_node.
7197         * troff/node.c (unbreakable_space_node): New class.
7198         * troff/node.h: Declare it.
7200 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
7202         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
7203         it's >= 0, before outputting it as a single byte.
7205 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
7207         * lib/font.c: Make font_char_metric::code an int.
7208         (font::get_code): Change return type to int.
7209         (font::load): Allow code to be arbitrary integer.
7210         * lib/font.h (font::get_code): Change return type to int.
7211         (font::number_to_index): Change argument type to int.
7212         * troff/input.c (token::next):  In case 'N', allow any value.
7213         Store value in token::val.
7214         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
7215         (token::get_char, token::add_to_node_list, token::process): Get
7216         number from val.
7217         (charinfo::set_number): Change argument to int.
7218         (charinfo::get_number):  Require that NUMBERED flag be set.
7219         (get_charinfo_by_number): Store numbered characters not between 0
7220         and 255 in a dictionary.
7221         * troff/charinfo.h (get_charinfo_by_number): Change argument type
7222         to int.
7223         (charinfo::number): Change type to int.
7224         (charinfo::set_number): Change type of set_number to int.
7225         * troff/node.c (troff_output_file::put_char_width,
7226         troff_output_file::put_char): Test whether character is numbered
7227         using charinfo::numbered().
7228         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
7229         values of num.
7230         * lib/nametoindex.c: New implementation to cope with arbitrary
7231         number characters.
7233         * troff/input.c (token::operator==): Test val for
7234         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
7235         TOKEN_SIZE.
7237         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
7238         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
7240 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
7242         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
7243         variable.
7245         * all Makefiles: rm targets of cp and >.
7247         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
7248         it.
7250         * eqn/lex.c (def_table): Add dollar.
7252 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
7254         * troff/input.c (do_width): Push back newline before closing delim
7255         like do_bracket.
7257 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
7259         * groff.c (possible_command::prepend_arg): New function.
7260         (main): Prepend device -m option.
7261         * groff.sh: Put device -m options before command-line options.
7263 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
7265         * macros/tmac.an (IP): Quote argument to TP.
7267         * ps/ps.c (main): New option -b, which sets...
7268         (broken_flags): New variable.
7269         (ps_printer::~ps_printer): Incorporate the setup section in the
7270         prolog if (broken_flags & NO_SETUP_SECTION).
7271         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
7272         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
7273         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
7274         ps_printer::print_needed_font_comment,
7275         ps_printer::print_supplied_font_comment,
7276         ps_printer::print_include_font_comments,
7277         ps_printer::lookup_doc_font, ps_printer::download_fonts,
7278         ps_printer::read_download_file, read_document_fonts, add_font,
7279         skip_line, parse_fonts_arg, document_font::document_font,
7280         document_font::~document_font, document_font::download,
7281         ps_output::include_file):  Deleted.
7282         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
7283         rather than %!PS-Adobe-2.0.  Make calls to
7284         resource_manager::need_font for each font that we used. Replace
7285         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
7286         print_supplied_font_comment, print_needed_font_comment by call to
7287         resource_manager::print_header_comments. Output %%Orientation
7288         comment. Output %%Requirements: numcopies comment if ncopies > 1.
7289         Don't output the prolog directly.  Instead call
7290         resource_manager::output_prolog.  Only define #copies when ncopies
7291         > 1.  Delete calls to print_include_font_comments  and
7292         download_fonts.  Add call to resource_manager::document_setup.
7293         (ps_printer::do_file): Call resource_manager::import_file instead
7294         of including it ourselves.
7295         (ps_printer::do_import): Likewise.  Also don't call
7296         merge_import_fonts. Push userdict on the dictionary stack before
7297         and pop it afterwards.
7298         Move declaration of ps_output into ps.h.
7299         * ps/psrm.c: New file implementing resource_manager class.
7300         * ps/ps.h: New file declaring ps_output and resource_manager
7301         classes.
7302         * ps/devps/zapfdr.ps:
7303         * ps/devps/symbolsl.ps:
7304         * ps/devps/prologue:  Use 3.0 conventions.
7305         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
7306         Add default definition of BROKEN_SPOOLER_FLAGS.
7307         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
7308         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
7310 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
7312         * etc/grog.pl: New file.
7313         * Makefile (GROG): New variable.
7314         Add GROG to SUBFLAGS.
7315         * etc/Makefile (GROG): New variable.
7316         (install.nobin): Install $(GROG) rather than grog.sh.
7318 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
7320         * eqn/special.c (special_box::compute_metrics): Make the input and
7321         output strings the same.  Get the new height and depth from the
7322         predefined height and depth registers.  Also make subscript kern
7323         and skew available.
7324         (special_box::compute_subscript_kern, special_box::compute_skew):
7325         New functions.
7327         * eqn/box.c (pointer_box::compute_skew,
7328         simple_box::compute_metrics, box::top_level)
7329         * eqn/text.c (prime_box::compute_metrics,
7330         prime_box::comput_subscript_kern)
7331         * eqn/limit.c (limit_box::compute_metrics):
7332         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
7333         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
7334         negative numbers in `nr' requests with a leading 0.
7336 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
7338         * eqn/special.c: New file.
7339         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
7340         Add new rule for simple.
7341         * eqn/lex.c (token_table): Add SPECIAL.
7342         * eqn/box.h: Declare make_special_box.
7343         * eqn/Makefile: Add special.[co].
7345 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
7347         * ps/devps/prologue: Possibly set packing to true while defining.
7348         Create grops dictionary here.  Initialize local variables before
7349         defining procedures.
7350         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
7351         the dictionary stack. Set strokeadjust and overprint to false if
7352         the relevant operators are defined.
7353         (PEND): New procedure.
7354         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
7355         prologue.  Do everything else in the setup section.
7356         (ps_printer::do_import): Just call PBEGIN and PEND around the
7357         picture. Also push userdict before, and pop it afterwards.
7359 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
7361         * troff/node.c (bracket_node::tprint): Brackets were being printed
7362         1m too low.
7364         * macros/tmac.an (SH, SS): Set fill mode.
7366 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
7368         * troff/div.c (top_level_diversion::begin_page): Set
7369         high_water_mark to 0.
7371 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
7373         * man/mdate.sh: New file.
7374         * man/mdate.c: Deleted.
7375         * man/Makefile: Use mdate.sh instead of mdate.
7376         (mdate): Deleted.
7378         * eqn/lex.c (do_gsize): Supply missing argument to error message.
7380 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
7382         * man/mdate.c: New file.
7383         * man/*.man: Replace modification date by @MDATE@.
7384         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
7385         (mdate): New target.
7387         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
7388         Remove illegal input characters.
7390 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
7392         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
7394 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
7396         * troff/div.c (begin_page): Change behaviour when
7397         !first_page_begun and !break_flag.
7399         * troff/input.c (do_name_test): Return 0 if argument is empty.
7401         * troff/input.c (read_long_escape_name): Require closing ] to be
7402         at same input level as opening [.
7404         * troff/input.c (read_increment_and_escape_name): New function.
7405         (get_copy, process_input_stack): Use this for \n.
7407 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
7409         * troff/div.c (top_level_diversion::begin_page): Ignore the
7410         current value of page_number if !first_page_begun.
7412         * groff.c (main): Fix declaration of buf.
7414         * troff/input.c (do_name_test): New function.
7415         (token::next): Implement \A.
7416         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
7417         (token::description, token::add_to_node_list, token::process):
7418         Handle TOKEN_ESCAPE.
7419         * troff/token.h: New token TOKEN_ESCAPE.
7421 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
7423         * pic/main.c (do_picture): Allow space before and after filename
7424         following `<'.  Check that the filename is not empty.
7426 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
7428         * Version 1.01 released. 
7430         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
7432         * dvi/tmac.dvi: ftr HR to H.
7434         * macros/tmac.e: Round up computation of $r.
7436         * xditview/tmac.X:  Don't give up completely in compatibility mode.
7437         Use \n(.s instead of \n[.s].
7439         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
7440         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
7441         Add u to factors inside \s[...]. Rename frac to dvi-frac.
7442         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
7443         short names in the char definitions.
7445         * ps/tmac.ps: Don't give up completely in compatibility mode.
7446         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
7447         quote in front of \n(.s. Add u to factors inside \s[...].
7449 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
7451         * tty/tmac.tty: Call the nroff request.
7453         * macros/tmac.e ((x, )x):  Better definitions that work properly
7454         in a diversion.
7455         (@0, @1): Helper macros for (x.
7457         * macros/tmac.e ($s, hl): Use \l rather than \D.
7459         * tty/tmac.tty: Make it work better in compatibility mode.
7460         (pchar): Rename to tty-char.
7462         * macros/tmac.e (@E): New macro.
7463         (r, i, b, rb, bi): Use @E.
7465         * macros/tmac.e (@F): Don't use (;...) syntax.
7467         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
7468         it was modified for groff.
7470         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
7472         * macros/tmac.e (<., .>): Removed.
7473         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
7475         * macros/tmac.e: Remove check that groff is being used.
7477         * macros/tmac.e (@C): Change families only if using groff; turn
7478         compatibility mode off while changing familes. Save compatibility
7479         mode before changing families and restore it afterwards.
7481         * macros/tmac.e (@h): Remove test for offset + line length.
7483         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
7484         (lo, th, ac): Define to call @S instead of using als.
7486         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
7487         the ratio of the vertical spacing to the point size in units
7488         expressed as a percentage.  Use these instead of $10r and $10R,
7489         Delete $10r and $10R.
7491         * lib/font.c (font::load): In default computation of space_width,
7492         divide by sizescale.  Use scale_round.
7494         * macros/tmac.an (TP): Don't call `nf'.
7495         (an-do-tag): Don't call `fi'.
7497 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
7499         * troff/input.c (process_input_stack): Handle the case where
7500         spaces at the beginning of an input line are followed by a
7501         newline.
7503 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
7505         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
7506         * groff.sh: Use pic -x with the dvi device.
7508         * dvi/devdvi/FontMakefile (H): Don't use -s.
7510         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
7511         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
7512         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
7513         in FONTS.
7515 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
7517         * ps/psfig.diff: New file.
7518         * ps/tmac.psfig: New file.
7520 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
7522         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
7523         (]-): Don't call ref*do-tl.
7525         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
7527         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
7528         (fn@do-FS): Rename to fn*do-FS.
7530         * troff/input.c (transparent_translate): New function.
7531         (process_input_stack): Apply transparent_translate before calling
7532         diversion::transparent_output(unsigned char).
7534 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
7536         * troff/input.c (do_define_macro): Define the macro before calling
7537         skip_line.
7539         * xditview/Makefile: Add DEVICES variable.  Change install target
7540         to use this.
7542 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
7544         * groff.c (run_commands): Handle the possibility that there are
7545         child processes other than those forked by us.
7547 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
7549         * lib/string.c (string::append): New function.
7550         * lib/stringclass.h: Declare it.
7552 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
7554         * eqn/main.c (main): New option -N which sets
7555         no_newline_in_delim_flag. 
7556         (do_file): If no_newline_in_delim_flag is set don't allow newlines
7557         in delimiters.
7558         * groff.c (main): Pass -N on to eqn.
7559         (help, synopsis): Mention -N.
7560         * groff.sh: Implement -N.
7562 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
7564         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
7565         (]-): Call ref*do-tl if ref*need-tl is non-zero.
7566         (XP): Allow as initializer.
7568 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
7570         * troff/env.c (environment::wrap_up_field): If field_spaces are
7571         non-zero and we have a current_tab, subtract padding from
7572         tab_distance.  If this makes tab_distance <= 0, use the next tab
7573         stop instead.  If there isn't any next tab or it's a left tab,
7574         wrap up the current tab.
7575         (environment::start_field): Initialize tab_precedes_field.
7576         (environment::wrap_up_tab): If there's a current field, update
7577         pre_field_width, field_distance and tab_precedes_field.
7578         * troff/env.h (environment::tab_precedes_field): New member.
7580 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
7582         * ps/ps.c (ps_printer::do_file): New function.
7583         (ps_printer::special): Bind to `file' special.
7584         (ps_printer::do_exec): Set ndefined_styles to 0.
7586 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
7588         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
7589         Avoid stripping first character from the start of unrecognized
7590         escapes.  Use lex_error instead of error to report errors.
7591         * eqn/lex.c (get_token): Rework handling of escapes.
7592         (lex_error): Move declaration into...
7593         * eqn/eqn.h.
7595         * xditview/xditview.c (main): Make -page option work.
7597         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
7599 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
7601         * macros/tmac.s (B2): Correct size of box.
7603 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
7605         * macros/tmac.s (B2): Postpone drawing the box until in the
7606         top-level diversion.
7608         * tty/tmac.tty: Add font translations for C, CR, CW.
7610         * groff.c (synopsis, help): Document -i.
7611         * groff.sh: Implement -i.
7613         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
7614         Simplify the construction of SN.
7616         * troff/number.c (parse_term): Give `|' a higher precedence.
7617         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
7618         accordingly.
7620         * macros/tmac.s (B2): Use par@finish instead of par@reset.
7622 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
7624         * lib/string.c (string::move): New function.
7625         * lib/stringclass.h: Declare it.
7627 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
7629         * troff/env.c (distribute_space): Add optional argument
7630         `force_forward'.
7631         (environment::wrap_up_field): Call distribute_space with
7632         `force_forward' argument of 1.
7634 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
7636         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
7637         Inline it.  Move reallocation into...
7638         (string::grow1): New function.
7639         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
7640         dependencies to include library header files.
7641         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
7643 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
7645         * macros/tmac.s (@NH): Use the same number registers than -ms does
7646         for the heading level counters.  Use the same string that -ms does
7647         for the number for this heading.
7649 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
7651         * lib/new.c (operator new): Cast result of malloc to char *.
7653         * troff/input.c (spring_trap, lookup_request): Add assert that nm
7654         is not null.
7656 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
7658         * groff.c (main): Support -i.
7660 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
7662         * pic/pic.h: Include <osfcn.h>.
7664         * ps/ps.c: Add declaration of mktemp.
7666         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
7667         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
7668         argument as union wait *.
7669         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
7670         argument to union wait *.
7672 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
7674         * tty/tmac.tty: Add definition of \(co.
7676         * pic/object.c (make_arc): Only increase radius when radius
7677         strictly less than d.
7678         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
7679         more than once.
7681         * troff/env.c (environment::environment(symbol),
7682         environment::environment(const environment *)):  Initialize
7683         input_trap_count.
7685 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
7687         * tbl/main.c (main): Add exit(0).
7689         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
7691         * pic/main.c (main):
7692         * eqn/main.c (main):
7693         * tbl/main.c (main):
7694         * etc/soelim.c (main):
7695         * driver/printer.c (printer::~printer):
7696         * troff/node.c (real_output_file::~real_output_file,
7697         real_output_file::flush):  Check for errors on stdout.
7699         * most files: Add 1991 to copyright notice.
7701         * macros/tmac.s: Don't test \n(.x and \n(.y.
7703         * troff/input.c (token::next): Rename `escape_char' label to
7704         `handle_escape_char' and `normal_char' label to
7705         `handle_normal_char'.
7707 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
7709         * groff.c (main, synopsis, help): Support -a option.
7710         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
7711         to trflags while parsing options.
7713 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
7715         * troff/number.c (parse_term): With `m', `M' and `n' scale
7716         indicators, convert scale factor to hunits before scaling.
7718 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
7720         * lib/font.c (scale_round): Better test for overflow when n is
7721         negative.
7723 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
7725         * tbl/main.c (process_format): Add second argument of type
7726         options*. Change callers.  Allow opt->tab_char as well as '\t'
7727         between format items.
7729 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
7731         * macros/tmac.an (PD): With no arguments, make sure register PD is
7732         at least \n[.V].
7733         (TH): Call PD with no argument, instead of setting register PD
7734         directly.
7736 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
7738         * Version 1.00 released.
7740 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
7742         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
7744         * dvi/devdvi/DESC: Mount CW instead of CR.
7746         * dvi/tmac.dvi: Add definition of \(tm.
7748         * dvi/devdvi/texsy.map: Add lh, and rh.
7749         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
7750         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
7752         * dvi/devdvi/FontMakefile: Generate H from cmss10.
7753         * dvi/devdvi/Makefile: Install H.
7754         * dvi/devdvi/H: New file.
7756 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
7758         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
7759         be 0.
7761 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
7763         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
7765         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
7767         * macros/tmac.s (@EN): Handle the case where the equation is empty
7768         but the label is not.
7770 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
7772         * troff/groff.h: New warning category WARN_SPACE.
7773         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
7774         WARN_SPACE to warning_table.
7775         (interpolate_macro): Give a warning of type WARN_SPACE if the name
7776         is longer than two characters and is not defined, but the first
7777         two characters do make a defined name.
7779         * PROBLEMS: New file.
7781         * CHANGES: New file.
7782         * README-0.6, README-1.00: Deleted.
7784         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
7785         * xditview/devX75/Makefile: Make devX75-12.
7786         * xditview/devX100/Makefile: Make devX100-12.
7788         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
7789         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
7791 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
7793         * README-0.7: Rename to README-1.00.
7795         * macros/tmac.pic: New file.
7796         * macros/Makefile (install.nobin): Install tmac.pic.
7798 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
7800         * troff/env.c (hyphen_word): Correct the test for whether the
7801         token is a hyphen.  Reset npos to 0.
7803         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
7805 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
7807         * macros/tmac.s (ds*common-end): Call par*reset.
7808         (PE): Likewise.
7809         (par@reset-indent): Deleted.
7811         * macros/tmac.s (@IP): Divert the label.
7813 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
7815         * xditview/draw.c (setGC): Use a line width of .1m rather than
7816         .04m by default; round rather than truncate value.
7818         * tbl/table.c (class empty_entry): New class.
7819         (empty_entry::empty_entry, empty_entry::line_type): New functions.
7820         (table::add_entry): Represent empty entries by objects of type
7821         empty_entry.
7822         (table_entry::line_type): Return -1.
7823         (table::determine_row_type): Ignore entries with line_type 0.
7824         Treat type -1 as non-lines.
7826 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
7828         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
7829         macros/tmac.s: Rename \(-d to \(Sd.
7831 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
7833         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
7834         * xditview/libXdvi/DviChar.c: Likewise.
7835         * dvi/devdvi/texsy.map: Add `<<', `>>'.
7837 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
7839         * troff/div.c (top_level_diversion::begin_page): Call
7840         init_output() if the_output is 0.
7842 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
7844         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
7845         ESCAPE_c.
7846         (get_copy): Turn \E into ESCAPE_E.
7847         (token::process, asciify): Handle ESCAPE_E.
7849         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
7850         (RD): New macro.
7851         (DS): Implement `.DS R'.
7853 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
7855         * macros/tmac.s (FS): New macro.
7857         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
7859         * macros/tmac.s (cov*tl-init): Remove after first execution
7860         instead of aliasing to @nop.  Call top of page macro explicitly
7861         instead of setting trap; call @init first.  Set pg@top as top of
7862         page macro.
7863         (cov*auto-init): Deleted.  Set cov*tl-init instead of
7864         cov*auto-init as top of page trap. 
7865         (TL, LP): Do a break instead of calling cov*tl-init.
7866         (cov*print): With RP format but no TL, alias FS and FE to @FS and
7867         @FE; in this case also give a warning and always start another
7868         page. No need to set pg@top here.
7869         (cov*tl-init): Rename to cov*first-page-init.
7871         * macros/tmac.s (RP): Do `.pn 0'.
7872         (cov*tl-init): With RP format don't do `.pn 0'.
7874         * macros/tmac.s (pg@cs-top): Set no space mode.
7876         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
7877         (cov*ab-init): Alias TL, AU and AI to these.
7879 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
7881         * macros/tmac.s (@EQ): Move the space before the equation into @EN
7882         (@EN): Do nothing unless \n[dl] is > 0.
7884 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
7886         * pic/object.c (ellipse_object::radius): New function.
7888         * VERSION: Change version to 0.7.
7890         * tbl/table.c (block_entry::do_divert): Declare return type as
7891         void.
7892         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
7894 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
7896         * troff/column.c: New file.
7897         * troff/Makefile: Corresponding changes.
7899         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
7900         Friend of vunits.
7902         * troff/div.c (top_level_diversion::space): If the space causes
7903         the first-page transition and springs a trap, truncate the space
7904         to 0.
7906 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
7908         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
7909         the document.
7911         * pic/troff.c (troff_output::line_thickness,
7912         troff_output::set_fill): Do a horizontal motion to compensate for
7913         the width of the \D escape sequence.
7915 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
7917         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
7918         (not X75).
7920         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
7921         to printf.
7923         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
7924         Supply empty definition.
7925         (text_entry::simple_print, simple_text_entry::simple_print):
7926         Delete declarations.
7927         (table::add_entry): Represent empty entries by objects of type
7928         `simple_entry'.
7930 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
7932         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
7934         * tbl/table.c (left_text_entry::add_tab): New function.
7936         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
7937         initialize like LP.
7939 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
7941         * troff/env.c (environment::start_field): Give an error message if
7942         there is no next tab.
7944 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
7946         * troff/env.c (hyphenate): Skip initial elements with zero
7947         hyphenation code.
7949         * macros/tmac.s (par@init): Keep VS in points rather than units.
7951 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
7953         * pic/main.c (main): Implement `-c' option.
7954         * pic/output.h: Declare make_tpic_output().
7955         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
7956         protected.
7957         (tpic_output): New class.
7958         (tpic_output::tpic_output, tpic_output::set_pen_size,
7959         tpic_output::command, make_tpic_output): New functions.
7961 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
7963         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
7964         if they're not already defined.
7965         * tbl/table.c (init_output): Don't test \n(.g.
7967         * troff/input.c (do_if_request): Delete `g' condition. Recognize
7968         `d', `r' and `c' conditions even in compatibility mode.
7970 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
7972         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
7973         box.
7975 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
7977         * troff/env.h (environment::prev_line_interrupted): New member.
7978         (environment::get_prev_line_interrupted): New function.
7979         * troff/env.c (environment::newline): Set prev_line_interrupted.
7980         (environment::environment(const environment *),
7981         environment::environment(symbol)): Initialize
7982         prev_line_interrupted.
7983         * troff/input.c (process_input_stack): Don't give special
7984         treatment to space and newline at the beginning of the line if the
7985         previous line was interrupted.
7987 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
7989         * eqn/eqn.y: Disallow PRIME by itself.
7990         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
7991         PRIME.
7992         (def_table): Remove definition of '.  Define prime to be `.
7994         * eqn/eqn.y: Split off part of rule `script' into a new rule
7995         `nonsup'.
7997 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
7999         * macros/tmac.s ({, }): New string aliases.
8001 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
8003         * README-0.7: New file.
8005 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
8007         * macros/tmac.s: New file.
8008         * man/groff_ms.man: New file.
8009         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
8010         * Makefile.bd: Similarily.
8011         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
8012         definition of TMAC_S.
8013         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
8014         * macros/TODO: New file.
8016 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
8018         * troff/env.c (right_justify): New function.
8019         (init_env_requests): Bind this to request "rj".
8020         (center_lines): Set right_justify_lines to 0. If we get a bad
8021         integer, center 1 line.
8022         (environment::environment(symbol), environment::environment(const
8023         environment *)): Initialize right_justify_lines.
8024         (environment::get_right_justify_lines): New function.
8025         (init_env_requests): Bind this to number_register ".rj".
8027         * troff/env.c (environment::choose_breakpoint): Implement
8028         hyphenation_margin and hyphenation_space.
8029         (environment::get_hyphenation_space,
8030         environment::get_hyphenation_margin): New functions.
8031         (init_env_requests): Bind these to .hys and .hym.
8032         (hyphenation_space_request, hyphenation_margin_request): New
8033         functions
8034         (init_env_requests): Bind these to hys and hym.
8035         (environment::environment(symbol), environment::environment(const
8036         environment *)): Initialize hyphenation_margin and
8037         hyphenation_space.
8038         * troff/env.h: Corresponding changes to class environment.
8040 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
8042         * troff/div.c (blank_line): Always do a break.
8044         * eqn/box.c (do_text): Turn off escapes while appending text to
8045         string.
8047 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
8049         * troff/input.c (while_break_request, while_continue_request): New
8050         functions.
8051         (init_input_requests): Bind these to "break" and "continue".
8052         (while_depth, while_break_flag): New variables.
8053         (while_request): Update while_depth.  Break out of loop if
8054         while_break_flag is set.
8056 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
8058         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
8059         rather than 0.
8061 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
8063         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
8065         * stringify: New file.
8066         * Makefile (groff.o): Use stringify.
8068         * xditview/tmac.X: Remove definition of \(rn.
8069         * xditview/libXdvi/DviChar.c: Remove radicalex from
8070         Adobe_symbol_map.
8072 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
8074         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
8075         (alphabetic_block_entry::alphabetic_block_entry,
8076         alphabetic_block_entry::divert, alphabetic_block_entry::print):
8077         New functions.
8078         (block_entry::divert): Split off body into ...
8079         (block_entry::do_divert): If the block is alphabetic, subtract 2n
8080         from the line length; also update the span width to dl+2n, and the
8081         alphabetic span width to dl.
8083         * driver/input.c (do_file):  While reading argument to D command,
8084         when expanding buffer, multiply szp by sizeof(int) rather than 2
8085         in the argument to memcpy.
8087         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
8088         width of alphabetic columns.
8090 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
8092         * troff/node.c (lookup_family): Supply second argument to lookup.
8094         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
8095         search, return immediately if v is 0.
8097         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
8098         (troff_output::start_picture): Set this reg.
8099         (troff_output::end_picture): Remove this reg
8100         * eqn/box.c (box::extra_space): Don't produce `\x's if
8101         EQN_NO_EXTRA_SPACE_REG is defined.
8103         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
8104         * eqn/text.c (split_text): Map ' to \(fm when it's the first
8105         character.
8107 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
8109         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
8110         requests.
8112         * troff/div.c (top_level_diversion::top_level_diversion):
8113         Initialize page_number to 0.
8115 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
8117         * groff/troff (environment::environment(const environment *)):
8118         Initialize name to e->name, rather than "anonymous".
8120 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
8122         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
8123         requested_page.  Split middle part into ...
8124         (FindPage): New function.
8125         (SetValues): If we don't yet know the last page, and the requested
8126         page is greater than the current page, call FindPage.
8127         Update the font_map_string before doing this.
8129         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
8130         Translate \(lh and \(rh into left and right double arrows.
8132         * troff/node.c (class hyphen_inhibitor_node): New class.
8133         (hyphen_inhibitor_node::hyphen_inhibitor_node,
8134         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
8135         hyphen_inhibitor_node::type,
8136         hyphen_inhibitor_node::get_hyphenation_type): New functions.
8137         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
8138         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
8139         word.
8141 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
8143         * troff/node.h (dummy_node::get_hyphenation_type,
8144         transparent_dummy_node::get_hyphenation_type):  Declare them.
8145         * troff/node.c: (dummy_node::get_hyphenation_type,
8146         transparent_dummy_node::get_hyphenation_type): New functions.
8148 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
8150         * xditview/libXdvi/draw.c: If M_PI not defined after including
8151         math.h, then define it.
8153         * xditview/Makefile: Add definition of AR. Pass it to the submake
8154         in libXdvi.
8155         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
8157 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
8159         * troff/dictionary.h (object_dictionary::alias): Declare return
8160         value as int.
8161         * troff/dictionary.c (object_dictionary::alias): Return non-zero
8162         if the old name was defined.
8163         * troff/input.c (alias_macro): Give a warning if the old name was
8164         not defined.
8165         * troff/reg.c (alias_reg): Likewise.
8167 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
8169         * troff/input.c (token::next): Delete implementation of \R.
8171         * macros/Makefile: Strip comments from tmac.e while installing it.
8173         * troff/input.c: New variable `nroff_mode'.
8174         (troff_request, nroff_request): New functions.
8175         (init_input_requests): Bind `troff' and `nroff' to troff_request
8176         and nroff_request.
8177         (do_if_request): Compute results of t and n conditions from
8178         nroff_mode.
8180         * text/text.c (split_text): Fix typo in >=.
8182         * eqn/lex.c: Add definition of `==' to def_table.
8184 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
8186         * pic/tex.c (tex_output::start_picture): Change the definitions of
8187         \graph and \graphtemp so that they work properly with Plain TeX.
8189         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
8190         argument to `ar' is not less than the first.
8192         * pic/pic.y: Allow a comma between elements of the variable list
8193         in the argument to `reset'.
8195         * pic/object.c (arc_object::arc_object): Fix computation of
8196         radius.
8198         * eqn/main.c (main): Add exit(0).
8200 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
8202         * troff/div.c (begin_page): Test no_space_mode after doing the
8203         break, but still push the page ejector cookie before doing the
8204         break.  Also set the next page number after doing the break.
8205         
8206         * xditview/xditview.c (NewFile): Don't set the title and icon name
8207         if this is the first file and its name is `-'.
8208         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
8209         the X75 and X100 devices.
8210         (main): If a device has the XT_OPTION flag set and there's exactly
8211         one file argument, pass the driver -xrm and -title options to set
8212         the icon name and window title to the name of the file.
8214         * troff/env.c (environment_switch): If there was an argument but
8215         it wasn't a valid number or name, then pop an environment but
8216         don't give an error message on underflow.
8218         * troff/number.c (start_number): Correct spelling in error message.
8220         * troff/input.c (token::delimiter): Don't print an error message
8221         if err is false.
8223         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
8224         ParseDrawFunction if dw->display_enable is true.
8226 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
8228         * pic/pic.y: Parse text positioning like normal attributes, so as
8229         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
8230         positioning attribute.
8232 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
8234         * tbl/main.c (process_data): When in state START while reading a
8235         text block, don't change to state MIDDLE if c is a newline.
8237 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
8239         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
8240         so as to avoid shadowing parameter.
8242 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
8244         * tbl/table.c (trim_space): Deleted.
8245         (table::add_entry): Don't call trim_space.
8247 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
8249         * VERSION: Change version to 0.6.
8251         * troff/number.c (parse_expr): Make == work.
8253 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
8255         * man/grog.man: New file.
8256         * man/Makefile: Add grog.n to MAN1PAGES.
8257         * etc/grog.sh: New file.
8258         * etc/Makefile: Install grog.sh as grog.
8260 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
8262         * troff/input.c (token::next): Implement \E.
8264 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
8266         * xditview/tmac.X: Change font translations to match tmac.ps.
8268         * troff/input.c (non_empty_name_warning): Don't give a warning if
8269         `\{' terminates the name.
8271 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
8273         * ps/devps/symbol.diff: New file.
8274         * ps/devps/FontMakefile: Mention symbol.diff.
8276 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
8278         * troff/node.c (font_position): Use get_long_name to read the
8279         external_name.
8281         * troff/env.c (environment_switch): If we get a number that's < 0
8282         or >= NENVIRONMENTS, treat it like a name.
8283         Change NENVIRONMENTS to 10.
8285         * troff/groff.h: Remove definition of FONTS_MAX.
8286         * troff/node.h (class font_family): Make map a pointer instead of
8287         an array. Add a map_size member. Make it a class. Make nm const
8288         and public. Make invalidate_fontno a friend.
8289         * troff/node.c: Define font_table_size. Make font_info a pointer
8290         rather than an array.
8291         (class troff_output_file): Allocate font_position dynamically. Add
8292         nfont_positions member.
8293         (troff_output_file::set_font): Grow font_position if necessary.
8294         (troff_output_file::~troff_output_file): Delete font_position.
8295         (troff_output_file::troff_output_file): Allocate font_position.
8296         (grow_font_table): New function.
8297         (troff_output_file::really_begin_page,
8298         troff_output_file:really_copy_page): Use nfont_positions rather
8299         than FONTS_MAX.
8300         (mount_font_no_translate, mount_style): Call grow_font_table if
8301         necessary.
8302         (font_family::font_family): Allocate map.
8303         (font_family::make_definite): Grow map if necessary. Use
8304         font_table_size instead of FONTS_MAX.
8305         (font_family::~font_family): New function.
8306         (invalidate_fontno): Use font_family::map_size.
8307         (get_fontno, env_space_width, env_half_narrow_space_width,
8308         env_narrow_space_width, symbol_fotno, is_good_fontno,
8309         get_bold_fontno, make_glyph_node): Use font_table_size rather than
8310         FONTS_MAX.
8311         (next_available_font_position): Never return 0.
8313 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
8315         * ps/tmac.ps: Add font translations for compatibility with dpost.
8317 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
8319         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
8320         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
8321         Move definitions baseline_sep, shift_down, column_sep,
8322         matrix_side_sep into...
8323         * eqn/box.c: Add them to param_table.
8324         * eqn/pbox.h: Add declarations to pbox.h.
8326         * troff/input.c (set_string): Cast value to unsigned char *.
8328         * troff/token.h (process_input_stack): Declare it static before
8329         declaring it a friend.
8331 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
8333         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
8334         and bottom.
8335         * dvi/devdvi/EX: Regenerate.
8337         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
8338         transparent.
8340 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
8342         * eqn/lex.c: In defaults_table, make definition of `dot' call
8343         `dot_def'.  Don't explicitly make it roman.  Similarily for other
8344         accents.
8346         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
8347         argument.
8348         (for_input::get, for_input::peek): Use this.
8349         (do_for): Add by_is_multiplicative argument.
8350         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
8351         Change semantic value of optional_by to be a double plus a flag
8352         saying whethet the by clause is multiplicative.
8354         * eqn/lex.c (get_delimited_text): Remember location of start of
8355         definition.  Improve error handling when EOF is encountered.
8357         * lib/font.h: Rename handle_x_command to
8358         handle_unknown_font_command.
8359         * lib/font.c (font::load): Call handle_unknown_font_command for
8360         any unknown command in the font description file.  Don't call
8361         handle_x_command. Include the name of the command in the argv.
8362         Improve message for unknown command after kernpairs or charset
8363         command.
8364         * ps/ps.c (ps_font::handle_x_command): Rename to
8365         handle_unknown_font_command.  Remove message about `x download'
8366         command.  Give error message for wrong number of arguments.
8367         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
8368         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
8369         handle_unknown_font_command. Give an error message for wrong
8370         number of arguments.  Rename design_size to designsize.
8371         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
8372         checksum', `designsize' instead of `design_size'.
8374 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
8376         * eqn/*.[chy]: Change underaccent to uaccent.
8378         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
8379         give it the same precedence as ACCENT.
8380         * eqn/other.c (make_underaccent_box): New function.
8381         * eqn/box.h: Declare it.
8382         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
8383         def_table.
8385 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
8387         * pic/pic.y (reset_all): New function. Called in rule for RESET.
8388         (parse_init): Call reset_all.
8389         (define_variable): When defining scale reset only those
8390         pre-defined variables that are scaled.
8391         (defaults_table): Add `scale' as non-scaled value.
8393         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
8394         together with the text; allow any number of positioning words;
8395         allow center as a positioning word.
8397         * pic/object.c (output::compute_scale): Get picture maximum height
8398         and width from variables called maxpswid and maxpsht.
8399         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
8401 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
8403         * pic/object.c (object_spec::make_text): Multiply textht by number
8404         of text items.
8406         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
8407         occur.
8408         (do_sprintf): New function.
8409         (pic.gperf): Add sprintf token.
8410         (text, sprintf): New rules.
8412         * pic/pic.y: `rand()' with no arguments returns a random number
8413         in the range [0,1).
8415         * pic/pic.y: Allow a bare expression to be an attribute: change
8416         precedences to support this.  Change optional_ordinal rule to
8417         optional_ordinal_last to avoid reduce/reduce conflict.
8418         * pic/object.c (object_spec::object_spec): Initialize direction.
8420         * pic/pic.y: Implement ^ operator meaning exponentiation.
8422         * troff/node.h: Add default argument to mount_font.
8423         * troff/node.c (font_position): Read an optional third argument
8424         giving the external_name.
8425         (mount_font): Add optional argument giving the external_name.
8426         (mount_font_not_translate): Have additional argument giving
8427         external name.  Use this name to load the font.  Pass both names
8428         to font_info::font_info.
8429         (font_info::font_info): Have additional argument giving
8430         external_name.
8431         (class tfont): New member external_name.
8432         (font_info::get_tfont): Use external name to construct tfont_spec.
8434 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
8436         * eqn/lex.c (init_table): Add argument giving device.  Define
8437         name of device to be "1".
8438         (do_ifdef): Counts as true if the argument has been defined with
8439         `define'.
8440         * eqn/main.c (main): Call init_table with device argument. Make
8441         device local to main.
8442         * eqn/eqn.h: Change declaration of init_table. Remove declaration
8443         of device.
8445         * pic/lex.c (get_delimited): Allow text to be delimited by
8446         matching {}s.  Don't recognize ending delimiter within a string.
8448         * troff/input.c (get_delim_name): New function.
8449         (token::next): Implement \C.
8451         * lib/font.c (font::load): Grok ---.  Add an alias for each
8452         character based on its code.
8453         (font::get_code_width): Deleted.
8454         * lib/font.h (class font): Declare font::number_to_index().
8455         Remove declaration of font::get_code_width.
8456         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
8457         to indices of named characters.
8458         (font::number_to_index): New function.
8459         * troff/input.c (font::number_to_index): New function.
8460         (get_charinfo_by_number, charinfo::get_number,
8461         charinfo::set_number): New functions.
8462         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
8463         (token::process, token::description, token::get_char,
8464         token::add_to_node_list, token::operator==): Handle
8465         TOKEN_NUMBERED_CHAR.
8466         * troff/charinfo.h: Declare get_charinfo_by_number,
8467         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
8468         charinfo class.
8469         (charinfo::numbered): New function.
8470         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
8471         * troff/env.h (class environment): Remove declaration of ...
8472         * troff/env.c (environment::make_numbered_char_node): Deleted.
8473         * troff/node.c (make_numbered_node): Deleted.
8474         (class numbered_glyph_node): Remove.
8475         (troff_output_file::put_char_width, troff_output_file::put_char):
8476         Handle numbered chars.
8477         (troff_output_file::numbered_char): Removed.
8478         (tfont::get_code_width): Removed.
8479         (make_glyph_node): Don't search special fonts for numbered
8480         characters.
8481         * troff/node.h: Remove declaration of make_numbered_node.
8482         * driver/input.c (do_file): Handle N command.
8483         * driver/printer.h: Add declaration of ...
8484         * driver/printer.c (printer::set_numbered_char): New function.
8485         * dvi/tfmtodit.c (main): Generate unnamed entries.
8486         * ps/devps/afmtodit: Likewise.
8487         * xditview/xtotroff.c (MapFont): Likewise.
8488         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
8490         * tbl/main.c (process_format): If multiple widths are specified
8491         for a column but all the widths are the same, don't give an error
8492         message.
8494         * tbl/table.c (table::do_row): If the current row is all lines and
8495         the stuff doesn't contains a line, mark the top of the row after
8496         printing stuff before the row.  If the current row is not all
8497         lines and the stuff doesn't contain a line, don't unnecessarily
8498         mark the top of the row before printing the stuff.
8499         
8500 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
8502         * troff/groff.h: Remove MAX_PATH.
8503         * troff/input.c (open_file): Dynamically allocate space for the
8504         path.
8505         (open_mac_file, process_macro_file): Corresponding changes.
8507 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
8509         * troff/node.h (class output_file): Make copy_file pure.  Add
8510         vspace method ifdef COLUMN. Add is_printing method.
8511         * troff/node.c: Add class printing_reg. Add class
8512         real_output_file. Derive other output_file classes from
8513         real_output_file; in these classes rename begin_page to
8514         really_begin_page, print_line to really_print_line, copy_file to
8515         really_copy_file, transparent_char to really_transparent_char.
8516         Move output_file::flush to real_output_file. Add printing member
8517         to class output_file.
8518         * troff/div.h: Remove printing member from top_level_diversion.
8519         Add vspace member function to class diversion ifdef COLUMN. Add
8520         some declarations ifdef COLUMN.
8521         * troff/div.c (top_level_diversion::copy_file,
8522         top_level_diversion::transparent_output,
8523         top_level_diversion::output): Don't test printing member before
8524         output.
8525         * troff/input.c: Handle initial variable_space_request ifdef
8526         COLUMN.
8527         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
8528         but comment it out.
8530 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
8532         * troff/div.c (diversion::need): Make any space forced.  If we
8533         sprung a trap, set truncated_space to minus the distance to the
8534         trap and set needed_space to the amount that was needed.
8535         (top_level_diversion::space): A forced space turns no_space_mode
8536         off.
8537         (class constant_vunits_reg): New class.
8538         (init_div_requests): Implement number registers .trunc and .ne
8539         using constant_vunits_reg.
8540         (class truncated_space_reg): Deleted.   
8542         * troff/div.h: Don't have a no_space_mode member in diversion.
8543         Instead have it in top_level_diversion.
8544         * troff/div.c (diversion::diversion): Don't initialize
8545         no_space_mode.
8546         (top_level_diversion::top_level_diversion): Initialize
8547         no_space_mode.
8548         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
8549         (macro_diversion::output): Don't clear no_space_mode.
8551         * troff/input.c (diverted_space_node::reread): Don't call
8552         environment::do_break.  In fill mode, act like a blank line.
8553         (diverted_copy_file_node::reread): Don't call
8554         environment::do_break.
8556         * troff/div.c (blank_line): New function.
8557         * troff/div.h: Declare it.
8558         * troff/input.c (process_input_stack): Call it.
8560         * troff/div.c (truncated_space_reg::get_string): New function.
8561         (init_div_requests): Bind to .trunc.
8562         (space_request, top_level_diversion::space,
8563         top_level_diversion::output, macro_diversion::space,
8564         macro_diversion::output): Update truncated_space.
8565         (macro_diversion::output): Redo calculations when trap sprung.
8566         (macro_diversion::output, macro_diversion::space): No need for
8567         trap_flag.
8569         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
8570         after truncating post line spacing.
8572 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
8574         * ps/devps/prologue (MF, SF): Make them work even if setfont is
8575         defined as a procedure rather than as an operator.
8577 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
8579         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
8581 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
8583         * troff/div.c (top_level_diversion::output): Merge
8584         output_file::print_line and output_file::end_of_line member
8585         functions.
8586         * troff/div.h (class output_file):
8587         * troff/node.c (troff_output_file::print_line,
8588         troff_output_file::end_of_line, output_file::end_of_line,
8589         ascii_output_file::print_line, suppress_output_file::print_line):
8590         Corresponding changes.  
8592 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
8594         * troff/input.c (token::next): Don't give a warning for `\.'.
8596         * troff/env.c (environment::get_center_lines): New function.
8597         (init_env_requests): Bind number register .ce to it.
8598         * troff/env.h: Declare it.
8599         * tbl/table.c (table::init_output): Define reset macro to restore
8600         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
8601         Then do .ce 0.
8602         (table::print): If center option not given, then imply center
8603         option if SAVED_CENTER_REG > 0.
8605 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
8607         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
8608         Troff.ps from DOWNLOAD.
8609         
8610         * troff/Makefile: Change comment in DEFINES to avoid confusing
8611         System V make.
8613         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
8614         code.  Don't try to catch errors with stopped.
8615         (check_line_lengths): New function.
8616         * ps/devps/prologue (EXEC): Deleted.
8617         (EBEGIN, EEND): New procedures.
8619 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
8621         * troff/input.c: Include request.h before node.h.
8622         * troff/node.c: Likewise.
8623         * troff/env.c: Likewise.
8624         * troff/div.c: Likewise.
8625         * troff/node.h (class special_node): Store argument as a macro
8626         rather than a char *.
8627         * troff/node.c (special_node::special_node, special_node::copy):
8628         Grok this.
8629         (special_node::~special_node): Deleted.
8630         (special_node::tprint): Deleted.
8631         (special_node::tprint_start, special_node::tprint_end,
8632         special_node::tprint_char): New functions.
8633         (troff_output_file::special): Deleted.
8634         (troff_output_file::start_special, troff_output_file::end_special,
8635         troff_output_file::special_char): New functions.
8636         * troff/input.c (special_node::tprint): New function.
8637         (do_special): Use macro not char *.
8638         (do_transparent_macro): Deleted.
8639         (token::next): Don't call do_transparent_macro.
8641         * troff/input.c (token::next): Add 'Y' case.
8642         (do_transparent_macro): New function.
8643         * troff/node.c (troff_output_file::special): Handle newlines with
8644         argument using new continuation convention.
8645         * driver/input.c (get_string): Cope with continuation convention.
8646         (do_file): Don't call skip_line after calling get_string(1).
8647         * ps/ps.c (ps_printer::special, ps_printer::do_import,
8648         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
8649         arg.
8650         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
8651         with +.
8653 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
8655         * troff/input.c (asciify): By default, illegal input characters
8656         should return empty string.
8658         * troff/input.c (copy_file): Handle first page transition like title.
8659         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
8661         * troff/input.c (token::next): Improve error message for EOF after
8662         escape character.
8663         (input_char_description): New function.
8664         (get_char_for_escape_name): Use input_char_description.
8665         (token::next): Warn about unrecognized escape sequences.
8666         (warning_table): Add WARN_ESCAPE.
8667         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
8668         accordingly.
8670         * troff/token.h: Remove declaration of process_input_stack.
8672         * troff/input.c: Remove declaration of init_hyphen_requests.
8673         * troff/request.h: Correct spelling in declaration of same.
8675         * troff/input.c (token::next): Check whether escape_char is 0.
8677 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
8679         * groff.c (main, usage, help): Implement -P and -L options.
8680         * groff.sh: Likewise.
8682         * troff/input.c (token::next): Use some gotos to avoid code
8683         duplication.
8685         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
8686         Avoid calling symbol::symbol if name empty.
8688 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
8690         * troff/input.c (init_input_requests): Make \n(.x return the major
8691         version number and \n(.y return the minor version number.
8692         * troff/Makefile: Construct file majorminor.c defining
8693         major_version and minor_version automatically from ../VERSION.
8695         * troff/node.c (class glyph_node): Make operator new and operator
8696         delete public.
8697         (class ligature_node): Similarily.
8699         * troff/input.c (operator==(const macro &, const macro &)): New
8700         function.
8701         (non_interpreted_node::same): Use this.
8702         (string_iterator::string_iterator): Make macro& argument const.
8704         * troff/input.c (input_iterator::get): New function. Don't make
8705         asciify_macro or class non_interpreted_node friends of class
8706         input_iterator.
8707         (non_interpreted_node::interpret): Use input_iterator::get.
8708         (asciify_macro): Likewise.
8710         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
8711         ~non_interpreted_node): Deleted.
8712         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
8713         Deleted.
8715         * troff/symbol.h: Make all symbol member functions const.
8717         * lib/strtol.c: New file.
8718         * lib/Makefile: Add strtol.c.
8719         * Makefile: Define STRTOL as strtol.o to include strtol in
8720         libgroff.a.
8722 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
8724         * pic/troff.c (troff_output::simple_circle): Divide by scale.
8726 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
8728         * troff/input.c (do_special): Use input_level.
8730         * troff/token.h (TOKEN_BACKSPACE): New token.
8731         (token::backspace): New function.
8732         * troff/input.c (token::description, token::next, token::process):
8733         Grok TOKEN_BACKSPACE.
8734         (do_special): Turn TOKEN_BACKSPACE back into \b.
8736         * troff/token.h (token::leader): New function.
8737         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
8739         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
8741         * troff/input.c (do_special): Use token::description in error
8742         message.
8744 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
8746         * troff/input.c (decode_args): Combine quoted and
8747         quote_input_level variables. Make it a for (;;) loop.
8749         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
8751         * troff/input.c (read_long_escape_name): The test for whether to
8752         expand buffer was off by 1.
8753         (read_string): Similarily.
8755 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
8757         * troff/input.c: Use `const int' rather than `static const int'.
8759         * troff/div.h (diversion::copy_file): Declare as pure virtual.
8760         (macro_diversion::copy_file): New function.
8761         * troff/node.h: New class diverted_copy_file_node.
8762         * troff/node.c: Implement it.
8763         * troff/input.c (copy_file): Use diversion::copy_file. Handle
8764         first page transition by pushing a diverted_copy_file_node.
8765         * troff/input.c (token::next, process_input_stack): Don't handle
8766         COPY_FILE_REQUEST.
8768 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
8770         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
8771         whether space widths need adjusting.
8773         * troff/charinfo.h: Generalize translated_to_space to
8774         special_translation so as to allow translation to \&.
8775         * troff/input.c (translate): Allow translation to \&.
8776         (charinfo::*): Corresponding changes.
8777         * troff/node.c (make_node, node::add_char): Corresponding changes.
8778         * troff/node.h (dummy_node::dummy_node): Allow optional first
8779         argument.
8781         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
8782         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
8783         TOKEN_REQUEST.
8784         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
8785         TOKEN_REQUEST with an argument of TITLE_REQUEST.
8786         (token::process): Grok that.
8787         * troff/input.c (copy_file): Handle first page transition like
8788         title by pushing a COPY_FILE_REQUEST cookie.
8789         (token::next, process_input_stack): Grok that.
8790         * troff/node.h (output_file::copy_file): Add x and y arguments.
8791         Make it non-pure.
8792         * troff/div.c (top_level_diversion::copy_file): Supply them.
8793         * troff/node.c (troff_output_file::copy_file): Add x and y
8794         arguments; moveto specified position.  Invalidate font_position
8795         array after copying file.
8796         (output_file::copy_file): New function.
8797         (suppressed_output_file::copy_file, ascii_output::copy_file):
8798         Removed.
8799         * troff/input.c (transparent_file): New function.
8800         (init_input_requests): Bind to "trf".
8801         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
8802         (process_input_stack): Likewise.
8804         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
8806         * troff/node.c (init_node_requests): New number registers .kern
8807         pointing to global_kern_mode, and .lg pointing to
8808         global_ligature_mode.
8810         * troff/node.c (ligature): Don't change it if we get a bad
8811         integer.
8813         * troff/input.c (do_define_string): Don't strip tabs.
8815         * troff/input.c (asciify_macro): Make the string_iterator auto.
8817         * troff/node.c (init_font_requests): Rename to...
8818         (init_node_requests):
8819         * troff/node.h: Change declaration.
8820         * troff/input.c (main): Change call.
8822         * troff/input.c (node::reread, diverted_space_node::reread): New
8823         methods.
8824         (process_input_stack): Call reread rather than
8825         get_diverted_space_node.
8826         * troff/node.c (node::get_diverted_space_node,
8827         diverted_space_node::get_diverted_space_node): Removed.
8828         * troff/node.h: Declare reread methods instead of
8829         get_diverted_space_node methods. Make `n' member private.
8830         * troff/input.c: (token::diverted_space): Removed.
8831         * troff/token.h: Removed declaration.
8832         
8834 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
8836         * eqn/script.c (script_box::compute_metrics): Don't let
8837         SUP_RAISE_FORMAT become negative.
8839         * tbl/table.c (table::do_row): Entries that don't end in the
8840         this row shouldn't make the row non-blank.
8841         
8842         * tbl/table.c (table::make_columns_equal): Only set the width of
8843         columns which are marked as equal.
8844         
8845         * tbl/main.c (process_data): Before issuing excess data error,
8846         if last character was a newline unget it; then get it again after
8847         the error.  Also include the contents of the entry in the message.
8849         * groff.c: New file.
8850         * Makefile: Build groff from groff.c.  Make it possible to use
8851         either groff.sh or groff.c as groff.
8852         * Makefile.bd: Similarily.
8854 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
8856         * groff.sh: Don't delay expansion of $@ in assignment to files.
8857         Remove occurrences of \".
8859 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
8861         * all Makefiles: Simplify and rearrange.
8863         * Makefile: Handle fmod like malloc.
8864         * lib/Makefile: Similarily.
8865         * lib/fmod.c: Remove #ifdef NEED_FMOD.
8867         * Makefile: Rename OPTIMISE to OPTIMIZE.
8869         * groff.sh: Remove assignment to PATH.
8870         * Makefile: Remove SHPATH variable.
8871         * Makefile.bd: Similarily.
8873         * groff.sh: Add -V option to print the pipeline instead of
8874         executing it.
8876 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
8878         * lib/font.c: Split off file searching into ...
8879         * lib/fontfile.c: New file.
8881         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
8883 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
8885         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
8886         Also change misleading comment.
8887         (table::do_vspan): Change similarily misleading comment.
8888         * tbl/main.c (process_data): A format row with an explicit `s'
8889         uses up a data line, even if all the other columns are `_' or `='.
8891         * troff/input.c (token::description): Fix description of
8892         TOKEN_DUMMY and TOKEN_EMPTY.
8894 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
8896         * groff.sh: Fix description of -Z in help message.
8898 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
8900         * pic/object.c (object_spec::make_object): Allow negative and zero
8901         line thicknesses.
8902         * pic/pic.y: Give linethick default value of -1.0.
8903         * pic/troff.c (troff_output::troff_output): Initialize
8904         last_line_thickness to BAD_THICKNESS.
8905         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
8906         (troff_output::line_thickness): Canonicalize negative thicknesses
8907         to RELATIVE_THICKNESS.
8908         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
8909         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
8910         to -1.0.
8911         (tex_output::start_picture): Set pen_size to -2.0.
8913         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
8914         0, then use 0 linewidth.
8915         (ps_printer::ps_printer): Initialize line_thickness to -1.
8917         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
8919         * ps/devps/symbolchars: Remove `or'.
8920         * ps/tmac.ps: Implement \(or with .char.
8922         * ps/devps/symbolchars: Move most characters into textmap.
8923         * ps/devps/textmap: Add names for troff bracket characters. Remove
8924         ul, ru, br, bv.
8926         * ps/devps/TSymbol.ps: Removed.
8927         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
8928         * ps/tmac.ps: Do with .char what TSymbol did.
8929         * ps/devps/download: Remove TSymbol.
8931         * ps/devps/T: Removed.
8932         * ps/devps/Troff.ps: Removed.
8933         * ps/devps/Troff.afm: Removed.
8934         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
8935         * ps/devps/download: Remove Troff.
8936         * ps/devps/FontMakefile: Remove T target.
8937         * ps/devps/DESC-A4: Remove T from font list.
8938         * ps/devps/DESC-letter: Likewise.
8940         * troff/input.c (macro_to_node): Rename to ...
8941         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
8942         character's definition while processing it.
8943         * troff/node.c (node::add_char, make_node): Change calls to
8944         macro_to_node accordingly.
8946         * troff/input.c (token::next): Translate \_ to \(ul.
8948         * tty/devascii/R.proto: Add `|'.
8949         * tty/devlatin1/R.proto: Likewise.
8951 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
8953         * man: Put the version number in all the man pages.
8955 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
8957         * Makefile.bd: New file.
8958         * README.bd: New file.
8960         * VERSION: New file.
8961         * lib/version.c: Removed.
8962         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
8963         in clean target.
8965         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
8966         environment variable.
8968         * all Makefiles: Split install target into install.bin for
8969         binaries, and install.nobin for everything else.
8970         * Makefile: Add bindist target.
8972         * man/afmtodit.man: New file.
8973         * man/Makefile: Add afmtodit.n to MAN1PAGES.
8974         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
8975         in BINDIR.
8976         * ps/Makefile: Pass BINDIR to make install in devps.
8978         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
8979         the space character.
8981         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
8983 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
8985         * ps/ps.c: Redo font downloading.
8986         * ps/devps/download: New file.
8987         * ps/devps/Makefile: Add download to DEVICEFILES.
8988         * ps/devps/afmtodit: Remove -d option.
8989         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
8990         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
8991         * ps/devps/zapfdr.ps: Likewise.
8992         * ps/devps/TSymbol.ps: Likewise.
8994 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
8996         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
8998 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
9000         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
9001         then strip the first line if it starts with %.
9002         * Makefile: Add a comment about this.
9004         * man/tfmtodit.man: New file.
9005         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
9006         * dvi/Makefile: Install tfmtodit in BINDIR.
9008         * dvi/tfmtodit.c (usage): Mention -v option.
9010 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
9012         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
9013         * troff/node.c (troff_output_file::transparent_char): Don't call
9014         flush_tbuf.
9016         * eqn: Add check_tabs method to most box classes.
9017         * eqn/box.c (box::top_level): Call check_tabs.
9019         * eqn/script.c (script_box::output): Use \Z.
9020         * eqn/limit.c (limit_box::output): Use \Z.
9022         * eqn/box.c (box::top_level): Use itoa.
9024 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
9026         * dvi/tmac.dvi: Add font translations for CR, C, TT.
9027         * dvi/devdvi/Makefile: Don't make links to CW.
9029         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
9030         HX, HD.
9031         * xditview/tmac.X: Likewise.
9033         * troff/node.c: Add font translation feature.
9034         (get_font_translation): New function.
9035         (symbol_fontno): Translate the font name.
9036         (mount_font_no_translate): Rename to mount_font to this.
9037         (mount_font): New function.
9038         (font_family::make_definite): Call mount_font_no_translate instead
9039         of mount_font.
9040         (mount_style): Translate the font name.
9041         (font_translate): New function.
9042         (init_font_requests): Bind "ftr" to font_translate.
9044         * ps/devps/prologue (SN): New procedure that rounds a position to
9045         the nearest (pixel + (.25,.25)).
9046         (DL): Use SN to round endpoints.
9048         * lib/version.c: Changed version to 0.5.
9050 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
9052         * Makefile: Move definition of PAGE to the very beginning, so that
9053         people are less likely to miss it.
9055 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
9057         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
9059         * troff/env.c (environment::choose_breakpoint): Make `can't find
9060         breakpoint' error a warning of type WARN_BREAK.  Change message to
9061         `can't break line'.
9062         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
9063         code 040000.
9064         * troff/input.c: Add WARN_BREAK to warning_table.  Include
9065         WARN_BREAK in DEFAULT_WARNING_MASK.
9067         * tty/tmac.tty: Add definition of \(+-.
9069         * groff.sh: Remove `--' option to set command.
9071         * dvi/devdvi/texsy.map: Remove duplicate md entry.
9073         * ps/devps/eqnchar: Better definition of cdot using md.
9074         * dvi/devdvi/eqnchar:  Likewise.
9075         * xditview/devX100/eqnchar:  Likewise.
9076         * xditview/devX75/eqnchar: Likewise.
9077         * eqn/lex.c: Add definition of cdot.
9079 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
9081         * troff/input.c (get_optional_char): New function.
9082         * troff/input.c (set_page_character): Use get_optional_char(),
9083         rather than has_arg() and tok.get_char(1).
9084         * troff/env.c (tab_character, leader_character, hyphen_char,
9085         field_characters): Likewise.
9086         (margin_character): Likewise.  Also always delete the
9087         margin_character_node.
9089         * troff/input.c (token::get_char): Use token::description.
9091         * troff/input.c (has_arg): Don't skip over tab and \}.
9092         * troff/number.c (start_number): Give a warning if the number
9093         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
9095 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
9097         * troff/input.c (empty_name_warning, non_empty_name_warning): New
9098         functions.
9099         (get_name, get_long_name): Use these.  Rename `warn' argument to
9100         `required'.
9102         * troff/node.c (get_fontno): Test that the symbol is not null.
9104         * troff/input.c (token::description): New function.
9105         * troff/number.c (parse_term): Use token::description in `numeric
9106         expression expected' message.
9107         * troff/groff.h: Add WARN_MISSING.
9108         * troff/number.c (start_number): New function.
9109         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
9110         get_incr_number): Use start_number().
9111         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
9112         default.
9113         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
9114         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
9115         token::descripion.
9116         * troff/input.c (token::get_char): Use WARN_MISSING.
9117         * troff/input.c (token::delimiter): Use token::description.
9118         * troff/env.c (environment_switch): Back out Aug 3 change.
9119         * troff/input.c (has_arg): Skip over \}s and tabs but give a
9120         warning.
9121         * troff/token.h (token::tab): New function.
9122         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
9123         * troff/reg.c (alter_format): Likewise.
9124         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
9126 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
9128         * troff (most files): Redo warnings. Divide warnings into various
9129         categories; warning() has an additional first argument indicating
9130         the category it falls into.
9131         * troff/input.c (main): -w now takes an argument. New option -W.
9132         (enable_warning, disable_warning): New functions.
9134         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
9135         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
9137 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
9139         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
9140         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
9141         * xditview/devX75/eqnchar: Likewise.
9142         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
9144         * eqn/other.c: When bar or over applies to a single character
9145         don't produce an overline_box or an underline_box. Instead produce
9146         an accent_box or an underaccent_box, with the accent a line
9147         whose width is accent_width.  New classes underaccent_box,
9148         overline_char_box and underline_char_box.
9149         * eqn/box.h: Move overline_box, underline_box, accent_box class
9150         declarations into eqn/other.c. Add declarations of
9151         make_underline_box, make_overline_box, make_accent_box.
9152         * eqn/eqn.y: Call make_overline_box, make_underline_box
9153         make_accent_box instead of constructors.
9154         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
9156         * eqn/other.c: Add accent_box::~accent_box.
9157         * eqn/box.h: Declare it.
9159         * groff.sh: With -Tps, use eqn -D.
9161         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
9162         rather than \l.
9163         (underline_box::output): Similarily.
9164         (accent_box::output): Use \Z.
9166         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
9167         bit smaller.)
9169 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
9171         * troff/div.c (top_level_diversion::transparent_output(unsigned
9172         char)): Use asciify.
9173         * troff/input.c (asciify): Don't make it static.
9174         * troff/token.h (asciify): Declare it.
9175         
9176         * troff/input.c (get_name, get_long_name, token::get_char,
9177         token::delimiter): Add an extra default argument which says
9178         whether a warning should be printed.
9179         * troff: Pass a non-zero argument to one of these rather than
9180         printing a warning directly.
9182 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
9184         * troff: Consistently use symbol::is_null.
9186         * troff/dictionary.h: Move some inline functions into
9187         dictionary.c.
9189         * troff/request.h: Move inline functions into input.c.
9190         (request_or_macro::invoke): Make it pure.
9192         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
9193         * troff/input.c (init_input_requests): Use class constant_int_reg.
9194         (class compatible_reg): Deleted.
9195         * troff/div.c (init_div_requests): Use class constant_int_reg.
9196         (class last_post_line_extra_space_reg): Deleted.
9198         * troff/env.c (tab_character): Don't change the tab character if
9199         we get an invalid argument.
9200         (hyphen_char): Similarily.
9202         * troff/reg.c (alter_format): Check that nm is not null.
9204         * Makefile, groff.sh: Make it possible to customize the commands
9205         used for printing PostScript and dvi files. Also make it possible
9206         to customize the path used by groff.sh.
9208         * eqn/eqn.y: Make `left' right associative.
9210 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
9212         * pic/pic.h: Added definition of M_SQRT2 for those systems that
9213         don't have it.
9215         * pic/pic.h: Removed definition of INT_MAX.
9217         * troff/node.c (italic_corrected_node::vertical_extent): Omit
9218         `return'.
9220         * troff/input.c (token::next):  Handle \R like \n.
9222 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
9224         * ps/tmac.pc (PSPIC): Simplify.
9226         * troff/env.c (tab_stops::to_string):
9227         * pic/pic.y (object_type_name):
9228         * pic/troff.c (simple_output::line):
9229         * pic/tex.c (tex_output::spline):
9230         * pic/object.c (object_spec::make_object):
9231         * tbl/main.c (process_data):  Add cases to switch statements to
9232         avoid cfront warnings. (Some of these are spurious, since the
9233         switch already has a default case.)
9235         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
9236         `ps-'.  Don't test systat; instead check number of arguments to
9237         ps-bb.
9239 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
9241         * macros/tmac.e: Do not decrease the page offset by 0.5i.
9243         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
9244         Unlink the file as soon as we have opened it, so that we don't
9245         have to bother with signal handlers.
9246         (handler): Deleted.
9247         (fatal_error_exit): Deleted.
9248         (main): Don't call signal.
9250         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
9251         can be ignored.
9252         * dvi/devdvi/Makefile: Use the -k option with S and MI.
9254         * pic/pic.y:  If there is a label, or an nth construction before
9255         the first `.' in the argument to `with', ignore it and generate a
9256         warning.
9257         * pic/lex.c (lex_warning): New function.
9259         * tbl/table.c (table::init_output): In section keep and release
9260         macro, use 0 indent when diverting and the correct indent when
9261         rereading.
9263         * troff/input.c (interpolate_number_format): Do not interpolate
9264         anything if the number register is not defined.
9266         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
9268 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
9270         * ps/devps/prologue (PICTURE): Set components of graphics state to
9271         their default values.
9273         * ps/devps/text.enc: Add trademark
9274         * ps/devps/textmap: Add names for club, spade, heart, diamond,
9275         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
9276         * ps/devps/symbolchars: Add names for summation and product.
9278         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
9279         suchthat. Add pp. Add upper-case letters.
9281         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
9282         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
9283         Upsilon.
9285         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
9286         rA (right angle bracket) to ra.  Introduce names for double-headed
9287         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
9288         * ps/devps/textmap: Likewise for ps device.
9289         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
9290         * tty/devascii/R.proto: Rename lA to la and rA to ra.
9291         * tty/devascii/R.proto: Likewise.
9292         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
9293         \(uA, \(dA.
9294         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
9296         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
9298         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
9299         def_table.
9301 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
9303         * troff/div.c (when_request): Use symbol::is_null rather than
9304         has_arg to determine whether we have an argument.
9305         (change_trap): Remove the trap if we get an invalid number. Give
9306         an error if we don't get at least the macro name.
9307         (diversion_trap): Remove trap if we get an invalid name or number.
9309         * troff/env.c (environment_switch): Pop if we get an invalid
9310         symbol or numeric expression.
9312         * troff/input.c (do_define_macro):  If EOF is encoutered while
9313         defining the macro, do tok.next() before returning.
9315         * troff/token.h (has_arg): Move definition from here, to ...
9316         * troff/input.c (has_arg): ... here
9318         * troff/env.c (space_size): Do nothing if we get an invalid argument.
9319         * troff/input.c (shift): Likewise.
9321         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
9322         for `.c'.
9324         * pic/troff.c (troff_output::start_picture):  Comment out calls to
9325         `..'.
9327         * eqn/main.c (do_file): Subtract 1 from current_lineno if
9328         interpret_lf_args succeeds.
9330         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
9331         \\.  This avoids problems with \$N.
9333         * groff.sh: Pass -C to preprocessors.
9335         * lib/lf.c (interpret_lf_args):  Be more flexible.
9337         * tbl/main.c (main): Add -C option.
9338         (table_input::get): Do not recognize TE if followed by character
9339         other than a space or newline unless -C option given.
9340         (process_input_file): Likewise for lf, TS.
9341         (process_data): Likewise for lf in text blocks.
9343         * eqn/main.c (main): Add -C option.
9344         (do_file): Don't recognize EQ, EN or lf if followed by character
9345         other than space or newline unless -C option given.
9346         * eqn/lex.c (file_input::read_line): Similarily.
9347         * eqn/eqn.h: Declare compatible_flag.
9349         * etc/soelim.c (main): Add -C option.
9350         (interpret_lf_args): Use version in libgroff.
9351         (do_file):
9353         * pic/main.c (main): Add -C option, which sets compatible_flag.
9354         (top_input::get), (top_input::peek):  If -C option not given,
9355         do not recognize .PS/.PE/.PF/.lf if followed by a character
9356         other than space or newline.
9357         * pic/lex.c (file_input::read_line): Similarily.
9358         * pic/pic.h: Add declaration of compatible_flag.
9360 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
9362         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
9364         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
9365         derived from node.  New class space_char_hmotion_node.
9366         * troff/input.c (asciify_macro): New function.
9367         * troff/input.c (init_input_requests): New request `asciify' bound
9368         to asciify_macro.
9369         * macros/mm.diff: New file.
9370         * Makefile:  In install.mm target use `patch' to apply
9371         macros/mm.diff.
9373         * troff/input.c (macro::print_size): Just print the size in bytes.
9375         * troff/div.c (return_request): Correct the argument
9376         interpretation.
9378 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
9380         * troff/node.h (class composite_node): Add sz member.
9381         * troff/node.c (composite_node::size): Return sz.
9382         * troff/input.c (macro_to_node):  Use the initial size in the
9383         environment as the size of the composite_node.
9385         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
9386         default.
9388 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
9390         * troff/div.c (change_trap): If we get a bad number expression,
9391         do nothing.
9393 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
9395         * lib/matherr.c (matherr): Define this only if math.h defines
9396         TLOSS.
9398 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
9400         * troff/div.c (macro_diversion::distance_to_next_trap): If there
9401         no diversion trap return vunits(INT_MAX - vresolution).
9403 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
9405         * troff/input.c (do_zero_width): New implementation that doesn't
9406         use a temporary environment. Use instead:
9407         (token::add_to_node_list): New function.
9408         * troff/env.c (environment::get_prev_char_height),
9409         (environment::get_prev_char_height),
9410         (environment::get_prev_char_skew): New functions.
9411         (environment::get_prev_char): New function.
9412         (environment::get_prev_char_width): Change to use get_prev_char.
9413         (init_env_request): Implement new registers .cht, .cdp, .csk.
9414         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
9415         \Z being processed in a separate environment.
9417 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
9419         * tbl/table.c: Removed TABLE_BOTTOM_REG.
9421         * tbl/table.c (table::init_output): In the section release macro,
9422         give a warning message if the section won't fit on one page.
9424         * tbl/table.c (table::do_top): Emit table keep only if table is
9425         boxed.
9426         (table::do_bottom): Likewise for table release.
9427         (table::table), (table::add_vertical_rule):  Remove reference to
9428         keep member.
9429         * tbl/table.h: Remove keep member.
9431         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
9432         SECTION_RELEASE_MACRO, if there's not enough space before the next
9433         trap to output the diversion, call T# ourselves, set
9434         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
9435         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
9436         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
9437         vertical position and return to it before turning traps on again.
9438         
9439 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
9441         * troff/node.c, troff/node.h: In classes derived from node,
9442         replace prev_char_width method by last_char_node method.
9443         * troff/env.c (environment::get_prev_char_width): Use
9444         node::last_char_node rather than node::get_prev_char_width.
9446         * Makefile: Added comment about -fno-inline on 68030-based
9447         Apollos.
9449         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
9450         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
9451         expressions using sizeof to int.
9452         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
9454         * macros/tmac.e (TS):  Don't move @f back past the current
9455         position.
9457 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
9459         * ps/ps.c (main): Buffer stderr.
9460         * dvi/dvi.c (main): Likewise.
9461         * tty/tty.c (main): Likewise.
9463         * ps/ps.c (ps_printer::do_import): Improve error handling.
9465         * troff/input.c (abort_request): Use asciify.
9467         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
9468         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
9469         type of first argument int rather than char.  This works around a
9470         bug on the 68030 based Apollo using g++ 1.37.1.
9472         * tbl/table.h (class table): Add `keep' member.
9473         * tbl/table.c (table::table): Initialize `keep'.
9474         (table::add_vertical_rule): Set `keep' to 1.
9475         (table::do_top): Only emit table keep macro is `keep' is non-zero.
9476         (table::do_bottom): Likewise for table release macro.
9477         (table::do_row): Emit section keep macro even if the row is 0.
9479 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
9481         * macros/tmac.e (@C): Preserve the font family across the change
9482         in environments.
9484 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
9486         * lib/font.c: Initialize font::hor and font::vert to 1.
9487         (font::load_desc): Check the values of font::hor and font::vert.
9489         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
9490         be included in a C compilation.
9491         (iftoa): Use INT_DIGITS. Include lib.h.
9492         (itoa): Likewise.
9493         (as_string): Likewise.
9494         * tbl/table.c: Removed definition of INT_DIGITS.
9495         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
9496         * troff/input.c (input_input_requests): Likewise.
9497         * ps/ps.c (make_encoding_name): Likewise.
9498         (ps_printer::set_style): Likewise.
9499         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
9501         * tty/devascii/R.proto: Map fm onto '.
9502         * tty/devlatin1/R.proto: Likewise.
9504 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
9506         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
9507         argument to \w is at a different input level.
9509         * tbl/table.c (table::init_output): Define a new macro
9510         REPEATED_VPT_MACRO, like vpt but if in a diversion also
9511         transparently outputs itself.
9512         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
9513         vpt.
9514         (table::do_row): Likewise.
9516         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
9517         TRANSPARENT_STRING_NAME.
9519         * tbl/table.c (table::init_output): In the table release macro
9520         print an error message and don't produce any output if after
9521         issuing the need request the table still will not fit.  Also
9522         remove the diversion after bringing it back.
9524         * tbl/table.c (table::init_output): Define a new macro
9525         REPEATED_MARK_MACRO, like mk but if in a diversion also
9526         transparently outputs itself.
9527         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
9528         is necessary because .TH might not call .T#.
9529         (table::do_top): Likewise TOP_REG.
9530         (table::define_bottom_macro): If TOP_REG is no longer valid, use
9531         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
9532         table header might contain just the two top rules.
9534 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
9536         * troff/div.c: Implement new request `ptr' to print all traps.
9538         * troff/env.c (init_env_requests): Implement `.tabs' reg with
9539         init_string_env_reg.
9540         * troff/env.c (class tab_reg): Deleted.
9542 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
9544         * troff/div.c: New number register .pn returns the number of the
9545         next page as set by the pn request.
9547         * macros/tmac.an: Redid headers and footers.  Number each manual
9548         entry starting from 1 unless \nC is > 0, like Sun.  Added an
9549         optional 5th argument to .TH which specifies the manual name and
9550         appears in the center of the header.  Understand the X, P and D
9551         registers like Sun.
9553 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
9555         * troff/env.c (init_env_requests): New number register `.lt' to
9556         return the title length.
9558         * troff/node.h (class transparent_dummy_node): New class.
9559         * troff/node.c (class transparent_dummy_node): Provide member
9560         functions. 
9561         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
9562         than a dummy_node.
9564         * troff/input.c (token::next): New escape sequence \).
9565         * troff/input.c (get_copy): Recognize \) in copy mode.
9567         * troff/input.c (input_stack::clear): New function.
9568         * troff/input.c (exit_request): Use input_stack::clear.
9570         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
9571         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
9573         * troff/env.c: Move set_page_character to input.c.  Move
9574         page_character to input.c also.
9575         * troff/env.c (title): Split off the reading of the parts of the
9576         title into read_title_parts.
9577         * troff/input.c (read_title_parts): New function.  Check the
9578         input_level when testing whether a token matches the delimiter.
9580         * troff/input.c (exit_request): New function.
9581         * troff/input.c (init_input_requests): Bind ex request to
9582         exit_request rather than exit_groff.
9584         * troff/input.c (exit_groff): Call tok.next() before
9585         process_input_stack().
9587 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
9589         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
9590         * troff/env.h: ditto.
9591         * troff/input.c: ditto.
9593         * troff/env.c (environment::is_empty): Test pending_lines.
9595         * troff/env.c (environment::have_pending_lines): Removed.
9597         * troff/input.c: Add request to flush pending lines from the
9598         environment.
9600         * troff/env.c, troff/env.h: Add automatic widow control feature.
9602         * troff/input.c (exit_groff):  Do process_input_stack() after
9603         do_break() but before setting exit_flag to 2.
9605         * troff/input.c: Remove FLUSH_PENDING_LINES and
9606         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
9607         environment after END_TRAP token seen, but only if there aren't
9608         any more traps still unfinished.
9609         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
9611 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
9613         * troff/env.c: Rename the `retain_size' member of class
9614         pending_output_line to `no_fill'.
9616         * troff/env.c (title): When the line is output, make the
9617         retain_size argument !fill.
9619         * troff/node.h: Add `hyphenated' member to struct breakpoint.
9620         * troff/node.c (space_node::get_breakpoints),
9621         (dbreak_node::get_breakpoints):  Fill this in.
9622         * troff/env.c:  Allow specification of maximum number of
9623         consecutive hyphenated lines.
9625         * troff/env.c (environment::is_empty): Add test for !current_tab.
9627 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
9629         * troff/env.c (environment::hyphenate_line): Don't completely give
9630         up if the word is not to be hyphenated; continue so that breaks
9631         can be made at break_char_node's.
9633         * lib/lib.h: Only define INT_MAX if it's not already defined;
9634         undef INT_MIN if it's already defined.
9636         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
9638         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
9639         This works around a bug in AT&T C++ 2.0 used with an ANSI C
9640         compiler.
9641         
9642         * macros/tmac.an (an-header): Set no-space mode.
9644         * macros/tmac.an (TH): Start a new page if necessary.
9646         * Started using ChangeLog at version 0.4.
9648 Local Variables:
9649 version-control: never
9650 coding: latin-1
9651 End: